@ourskyai/sda-api 1.3.8815 → 1.4.118
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/.openapi-generator/FILES +90 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +180 -4
- package/api.ts +1188 -2831
- package/base.ts +14 -24
- package/common.ts +20 -44
- package/configuration.ts +37 -17
- package/dist/api.d.ts +662 -2682
- package/dist/api.js +783 -298
- package/dist/base.d.ts +11 -23
- package/dist/base.js +5 -18
- package/dist/common.d.ts +6 -37
- package/dist/common.js +18 -40
- package/dist/configuration.d.ts +30 -15
- package/dist/configuration.js +5 -3
- package/dist/esm/api.d.ts +662 -2682
- package/dist/esm/api.js +783 -298
- package/dist/esm/base.d.ts +11 -23
- package/dist/esm/base.js +4 -17
- package/dist/esm/common.d.ts +6 -37
- package/dist/esm/common.js +16 -39
- package/dist/esm/configuration.d.ts +30 -15
- package/dist/esm/configuration.js +5 -3
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/AstrometricOffsets.md +31 -0
- package/docs/DefaultApi.md +3166 -0
- package/docs/EmptySuccess.md +20 -0
- package/docs/FilterType.md +60 -0
- package/docs/FitsHeader.md +22 -0
- package/docs/ImageSetType.md +24 -0
- package/docs/Location.md +25 -0
- package/docs/MountGeometry.md +10 -0
- package/docs/MountType.md +10 -0
- package/docs/ObservationBoundingBox.md +26 -0
- package/docs/ObservationQuality.md +26 -0
- package/docs/ObservationResult.md +57 -0
- package/docs/ObservationState.md +16 -0
- package/docs/OrbitType.md +42 -0
- package/docs/SatelliteTargetTrackingStatus.md +12 -0
- package/docs/SearchCompletedReason.md +17 -0
- package/docs/ShutterType.md +10 -0
- package/docs/SuccessfulCreate.md +20 -0
- package/docs/SuccessfulDelete.md +20 -0
- package/docs/TrackingType.md +12 -0
- package/docs/V1AllSkyPredictionLabel.md +16 -0
- package/docs/V1BlackoutVolumeRequest.md +23 -0
- package/docs/V1CreateDirectTaskInstructionRequest.md +28 -0
- package/docs/V1CreateImageMetadataRequest.md +26 -0
- package/docs/V1CreateImageSetImageRequest.md +32 -0
- package/docs/V1CreateImageSetImageResponse.md +23 -0
- package/docs/V1CreateImageSetRequest.md +28 -0
- package/docs/V1CreateOrganizationTargetRequest.md +26 -0
- package/docs/V1CreateSatelliteTargetRequest.md +32 -0
- package/docs/V1CreateSearchInstructionRequest.md +24 -0
- package/docs/V1CreateSurveyInstructionRequest.md +24 -0
- package/docs/V1CreateWebhookConfigurationRequest.md +28 -0
- package/docs/V1CreateWebhookTestRequest.md +20 -0
- package/docs/V1GetSatelliteTargetsResponse.md +20 -0
- package/docs/V1GroundStationParticipant.md +52 -0
- package/docs/V1HFRStar.md +25 -0
- package/docs/V1ImageFileType.md +10 -0
- package/docs/V1ImageMetadata.md +32 -0
- package/docs/V1ImageRejectionReason.md +64 -0
- package/docs/V1ImageSet.md +43 -0
- package/docs/V1ImageSetImage.md +77 -0
- package/docs/V1MatchedStar.md +39 -0
- package/docs/V1NodeCalibrationResult.md +48 -0
- package/docs/V1ObservationFeature.md +39 -0
- package/docs/V1ObservationSequenceResult.md +37 -0
- package/docs/V1ObservationSequenceResultImageSetsInner.md +28 -0
- package/docs/V1ObservationStatus.md +56 -0
- package/docs/V1ObservationWeather.md +22 -0
- package/docs/V1ObservedWeather.md +23 -0
- package/docs/V1ObserverLocation.md +24 -0
- package/docs/V1OrganizationTarget.md +32 -0
- package/docs/V1PassStage.md +12 -0
- package/docs/V1PixelCoordinates.md +23 -0
- package/docs/V1PlaneScanRequest.md +25 -0
- package/docs/V1PlateSolveResult.md +40 -0
- package/docs/V1PlateSolveStatus.md +12 -0
- package/docs/V1Point.md +25 -0
- package/docs/V1PredictedStreakLocation.md +26 -0
- package/docs/V1PredictedWeather.md +21 -0
- package/docs/V1PutOrbitProviderTLERequest.md +33 -0
- package/docs/V1ResolvedImageMetadata.md +52 -0
- package/docs/V1ResolvedImageObservation.md +37 -0
- package/docs/V1ResolvedImagePair.md +41 -0
- package/docs/V1ResolvedImageSet.md +25 -0
- package/docs/V1RicVolumeSearchRequest.md +29 -0
- package/docs/V1SIPCoefficients.md +40 -0
- package/docs/V1SatelliteCalibrationFamily.md +12 -0
- package/docs/V1SatellitePotential.md +37 -0
- package/docs/V1SatelliteTarget.md +83 -0
- package/docs/V1SearchInstruction.md +29 -0
- package/docs/V1SearchInstructionStep.md +27 -0
- package/docs/V1SharpeningMethod.md +10 -0
- package/docs/V1StateVector.md +43 -0
- package/docs/V1SurveyInstruction.md +28 -0
- package/docs/V1SurveyInstructionStep.md +33 -0
- package/docs/V1TargetCorrelation.md +31 -0
- package/docs/V1Tdm.md +35 -0
- package/docs/V1TimeTaggedRaDec.md +28 -0
- package/docs/V1Track.md +24 -0
- package/docs/V1Transformation.md +77 -0
- package/docs/V1UpdateEmailConfigurationRequest.md +20 -0
- package/docs/V1UpdateOrganizationTargetRequest.md +24 -0
- package/docs/V1UpdateSatelliteTargetRequest.md +34 -0
- package/docs/V1UpdateWebhookConfigurationRequest.md +22 -0
- package/docs/V1WebhookConfiguration.md +34 -0
- package/docs/V1WebhookLog.md +30 -0
- package/docs/V2Search.md +29 -0
- package/docs/WeatherCondition.md +20 -0
- package/docs/WebhookAuthType.md +13 -0
- package/docs/WebhookEvent.md +35 -0
- package/index.ts +1 -1
- package/package.json +4 -4
package/base.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* OurSky SDA
|
|
5
5
|
* The basic flow for a new organization is as follows: 1. View the available satellite targets with the [satellite targets](#tag/satellite-targets/GET/v1/satellite-targets) endpoint. Copy the id of the target you want to observe. 2. Create an organization target with the [organization target](#tag/organization-targets/GET/v1/organization-targets) endpoint. Use the id copied from above. 3. Create a webhook with the [webhook](#tag/webhooks/POST/v1/communications/webhook) endpoint to receive OSRs automatically (preferred) or use the [OSRs](#tag/observation-sequence-results/GET/v1/observation-sequence-results) endpoint to poll for OSRs. Check out our [examples](https://github.com/ourskyai/oursky-examples) repository to see usage in each language.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.4.118
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -16,15 +16,11 @@
|
|
|
16
16
|
import type { Configuration } from './configuration';
|
|
17
17
|
// Some imports not used depending on template conditions
|
|
18
18
|
// @ts-ignore
|
|
19
|
-
import type { AxiosPromise, AxiosInstance,
|
|
19
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
20
20
|
import globalAxios from 'axios';
|
|
21
21
|
|
|
22
22
|
export const BASE_PATH = "https://api.prod.oursky.ai".replace(/\/+$/, "");
|
|
23
23
|
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @export
|
|
27
|
-
*/
|
|
28
24
|
export const COLLECTION_FORMATS = {
|
|
29
25
|
csv: ",",
|
|
30
26
|
ssv: " ",
|
|
@@ -32,41 +28,35 @@ export const COLLECTION_FORMATS = {
|
|
|
32
28
|
pipes: "|",
|
|
33
29
|
};
|
|
34
30
|
|
|
35
|
-
/**
|
|
36
|
-
*
|
|
37
|
-
* @export
|
|
38
|
-
* @interface RequestArgs
|
|
39
|
-
*/
|
|
40
31
|
export interface RequestArgs {
|
|
41
32
|
url: string;
|
|
42
|
-
options:
|
|
33
|
+
options: RawAxiosRequestConfig;
|
|
43
34
|
}
|
|
44
35
|
|
|
45
|
-
/**
|
|
46
|
-
*
|
|
47
|
-
* @export
|
|
48
|
-
* @class BaseAPI
|
|
49
|
-
*/
|
|
50
36
|
export class BaseAPI {
|
|
51
37
|
protected configuration: Configuration | undefined;
|
|
52
38
|
|
|
53
39
|
constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) {
|
|
54
40
|
if (configuration) {
|
|
55
41
|
this.configuration = configuration;
|
|
56
|
-
this.basePath = configuration.basePath
|
|
42
|
+
this.basePath = configuration.basePath ?? basePath;
|
|
57
43
|
}
|
|
58
44
|
}
|
|
59
45
|
};
|
|
60
46
|
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
* @export
|
|
64
|
-
* @class RequiredError
|
|
65
|
-
* @extends {Error}
|
|
66
|
-
*/
|
|
67
47
|
export class RequiredError extends Error {
|
|
68
48
|
constructor(public field: string, msg?: string) {
|
|
69
49
|
super(msg);
|
|
70
50
|
this.name = "RequiredError"
|
|
71
51
|
}
|
|
72
52
|
}
|
|
53
|
+
|
|
54
|
+
interface ServerMap {
|
|
55
|
+
[key: string]: {
|
|
56
|
+
url: string,
|
|
57
|
+
description: string,
|
|
58
|
+
}[];
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export const operationServerMap: ServerMap = {
|
|
62
|
+
}
|
package/common.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* OurSky SDA
|
|
5
5
|
* The basic flow for a new organization is as follows: 1. View the available satellite targets with the [satellite targets](#tag/satellite-targets/GET/v1/satellite-targets) endpoint. Copy the id of the target you want to observe. 2. Create an organization target with the [organization target](#tag/organization-targets/GET/v1/organization-targets) endpoint. Use the id copied from above. 3. Create a webhook with the [webhook](#tag/webhooks/POST/v1/communications/webhook) endpoint to receive OSRs automatically (preferred) or use the [OSRs](#tag/observation-sequence-results/GET/v1/observation-sequence-results) endpoint to poll for OSRs. Check out our [examples](https://github.com/ourskyai/oursky-examples) repository to see usage in each language.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.4.118
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -12,22 +12,16 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
|
|
16
15
|
import type { Configuration } from "./configuration";
|
|
17
16
|
import type { RequestArgs } from "./base";
|
|
18
17
|
import type { AxiosInstance, AxiosResponse } from 'axios';
|
|
19
18
|
import { RequiredError } from "./base";
|
|
20
19
|
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
* @export
|
|
24
|
-
*/
|
|
25
20
|
export const DUMMY_BASE_URL = 'https://example.com'
|
|
26
21
|
|
|
27
22
|
/**
|
|
28
23
|
*
|
|
29
24
|
* @throws {RequiredError}
|
|
30
|
-
* @export
|
|
31
25
|
*/
|
|
32
26
|
export const assertParamExists = function (functionName: string, paramName: string, paramValue: unknown) {
|
|
33
27
|
if (paramValue === null || paramValue === undefined) {
|
|
@@ -35,10 +29,6 @@ export const assertParamExists = function (functionName: string, paramName: stri
|
|
|
35
29
|
}
|
|
36
30
|
}
|
|
37
31
|
|
|
38
|
-
/**
|
|
39
|
-
*
|
|
40
|
-
* @export
|
|
41
|
-
*/
|
|
42
32
|
export const setApiKeyToObject = async function (object: any, keyParamName: string, configuration?: Configuration) {
|
|
43
33
|
if (configuration && configuration.apiKey) {
|
|
44
34
|
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
@@ -48,20 +38,12 @@ export const setApiKeyToObject = async function (object: any, keyParamName: stri
|
|
|
48
38
|
}
|
|
49
39
|
}
|
|
50
40
|
|
|
51
|
-
/**
|
|
52
|
-
*
|
|
53
|
-
* @export
|
|
54
|
-
*/
|
|
55
41
|
export const setBasicAuthToObject = function (object: any, configuration?: Configuration) {
|
|
56
42
|
if (configuration && (configuration.username || configuration.password)) {
|
|
57
43
|
object["auth"] = { username: configuration.username, password: configuration.password };
|
|
58
44
|
}
|
|
59
45
|
}
|
|
60
46
|
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
* @export
|
|
64
|
-
*/
|
|
65
47
|
export const setBearerAuthToObject = async function (object: any, configuration?: Configuration) {
|
|
66
48
|
if (configuration && configuration.accessToken) {
|
|
67
49
|
const accessToken = typeof configuration.accessToken === 'function'
|
|
@@ -71,10 +53,6 @@ export const setBearerAuthToObject = async function (object: any, configuration?
|
|
|
71
53
|
}
|
|
72
54
|
}
|
|
73
55
|
|
|
74
|
-
/**
|
|
75
|
-
*
|
|
76
|
-
* @export
|
|
77
|
-
*/
|
|
78
56
|
export const setOAuthToObject = async function (object: any, name: string, scopes: string[], configuration?: Configuration) {
|
|
79
57
|
if (configuration && configuration.accessToken) {
|
|
80
58
|
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
@@ -84,32 +62,29 @@ export const setOAuthToObject = async function (object: any, name: string, scope
|
|
|
84
62
|
}
|
|
85
63
|
}
|
|
86
64
|
|
|
65
|
+
|
|
87
66
|
function setFlattenedQueryParams(urlSearchParams: URLSearchParams, parameter: any, key: string = ""): void {
|
|
88
67
|
if (parameter == null) return;
|
|
89
68
|
if (typeof parameter === "object") {
|
|
90
|
-
if (Array.isArray(parameter)) {
|
|
69
|
+
if (Array.isArray(parameter) || parameter instanceof Set) {
|
|
91
70
|
(parameter as any[]).forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));
|
|
92
|
-
}
|
|
71
|
+
}
|
|
93
72
|
else {
|
|
94
|
-
Object.keys(parameter).forEach(currentKey =>
|
|
73
|
+
Object.keys(parameter).forEach(currentKey =>
|
|
95
74
|
setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`)
|
|
96
75
|
);
|
|
97
76
|
}
|
|
98
|
-
}
|
|
77
|
+
}
|
|
99
78
|
else {
|
|
100
79
|
if (urlSearchParams.has(key)) {
|
|
101
80
|
urlSearchParams.append(key, parameter);
|
|
102
|
-
}
|
|
81
|
+
}
|
|
103
82
|
else {
|
|
104
83
|
urlSearchParams.set(key, parameter);
|
|
105
84
|
}
|
|
106
85
|
}
|
|
107
86
|
}
|
|
108
87
|
|
|
109
|
-
/**
|
|
110
|
-
*
|
|
111
|
-
* @export
|
|
112
|
-
*/
|
|
113
88
|
export const setSearchParams = function (url: URL, ...objects: any[]) {
|
|
114
89
|
const searchParams = new URLSearchParams(url.search);
|
|
115
90
|
setFlattenedQueryParams(searchParams, objects);
|
|
@@ -117,34 +92,35 @@ export const setSearchParams = function (url: URL, ...objects: any[]) {
|
|
|
117
92
|
}
|
|
118
93
|
|
|
119
94
|
/**
|
|
120
|
-
*
|
|
121
|
-
*
|
|
95
|
+
* JSON serialization helper function which replaces instances of unserializable types with serializable ones.
|
|
96
|
+
* This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
|
|
97
|
+
* Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
|
|
122
98
|
*/
|
|
99
|
+
export const replaceWithSerializableTypeIfNeeded = function(key: any, value: any) {
|
|
100
|
+
if (value instanceof Set) {
|
|
101
|
+
return Array.from(value);
|
|
102
|
+
} else {
|
|
103
|
+
return value;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
123
107
|
export const serializeDataIfNeeded = function (value: any, requestOptions: any, configuration?: Configuration) {
|
|
124
108
|
const nonString = typeof value !== 'string';
|
|
125
109
|
const needsSerialization = nonString && configuration && configuration.isJsonMime
|
|
126
110
|
? configuration.isJsonMime(requestOptions.headers['Content-Type'])
|
|
127
111
|
: nonString;
|
|
128
112
|
return needsSerialization
|
|
129
|
-
? JSON.stringify(value !== undefined ? value : {})
|
|
113
|
+
? JSON.stringify(value !== undefined ? value : {}, replaceWithSerializableTypeIfNeeded)
|
|
130
114
|
: (value || "");
|
|
131
115
|
}
|
|
132
116
|
|
|
133
|
-
/**
|
|
134
|
-
*
|
|
135
|
-
* @export
|
|
136
|
-
*/
|
|
137
117
|
export const toPathString = function (url: URL) {
|
|
138
118
|
return url.pathname + url.search + url.hash
|
|
139
119
|
}
|
|
140
120
|
|
|
141
|
-
/**
|
|
142
|
-
*
|
|
143
|
-
* @export
|
|
144
|
-
*/
|
|
145
121
|
export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) {
|
|
146
122
|
return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
|
147
|
-
const axiosRequestArgs = {...axiosArgs.options, url: (
|
|
123
|
+
const axiosRequestArgs = {...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url};
|
|
148
124
|
return axios.request<T, R>(axiosRequestArgs);
|
|
149
125
|
};
|
|
150
126
|
}
|
package/configuration.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
2
|
/**
|
|
4
3
|
* OurSky SDA
|
|
5
4
|
* The basic flow for a new organization is as follows: 1. View the available satellite targets with the [satellite targets](#tag/satellite-targets/GET/v1/satellite-targets) endpoint. Copy the id of the target you want to observe. 2. Create an organization target with the [organization target](#tag/organization-targets/GET/v1/organization-targets) endpoint. Use the id copied from above. 3. Create a webhook with the [webhook](#tag/webhooks/POST/v1/communications/webhook) endpoint to receive OSRs automatically (preferred) or use the [OSRs](#tag/observation-sequence-results/GET/v1/observation-sequence-results) endpoint to poll for OSRs. Check out our [examples](https://github.com/ourskyai/oursky-examples) repository to see usage in each language.
|
|
6
5
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
6
|
+
* The version of the OpenAPI document: 1.4.118
|
|
8
7
|
*
|
|
9
8
|
*
|
|
10
9
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -12,13 +11,26 @@
|
|
|
12
11
|
* Do not edit the class manually.
|
|
13
12
|
*/
|
|
14
13
|
|
|
14
|
+
interface AWSv4Configuration {
|
|
15
|
+
options?: {
|
|
16
|
+
region?: string
|
|
17
|
+
service?: string
|
|
18
|
+
}
|
|
19
|
+
credentials?: {
|
|
20
|
+
accessKeyId?: string
|
|
21
|
+
secretAccessKey?: string,
|
|
22
|
+
sessionToken?: string
|
|
23
|
+
}
|
|
24
|
+
}
|
|
15
25
|
|
|
16
26
|
export interface ConfigurationParameters {
|
|
17
27
|
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
18
28
|
username?: string;
|
|
19
29
|
password?: string;
|
|
20
30
|
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
31
|
+
awsv4?: AWSv4Configuration;
|
|
21
32
|
basePath?: string;
|
|
33
|
+
serverIndex?: number;
|
|
22
34
|
baseOptions?: any;
|
|
23
35
|
formDataCtor?: new () => any;
|
|
24
36
|
}
|
|
@@ -27,42 +39,43 @@ export class Configuration {
|
|
|
27
39
|
/**
|
|
28
40
|
* parameter for apiKey security
|
|
29
41
|
* @param name security name
|
|
30
|
-
* @memberof Configuration
|
|
31
42
|
*/
|
|
32
43
|
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
33
44
|
/**
|
|
34
45
|
* parameter for basic security
|
|
35
|
-
*
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof Configuration
|
|
38
46
|
*/
|
|
39
47
|
username?: string;
|
|
40
48
|
/**
|
|
41
49
|
* parameter for basic security
|
|
42
|
-
*
|
|
43
|
-
* @type {string}
|
|
44
|
-
* @memberof Configuration
|
|
45
50
|
*/
|
|
46
51
|
password?: string;
|
|
47
52
|
/**
|
|
48
53
|
* parameter for oauth2 security
|
|
49
54
|
* @param name security name
|
|
50
55
|
* @param scopes oauth2 scope
|
|
51
|
-
* @memberof Configuration
|
|
52
56
|
*/
|
|
53
57
|
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
54
58
|
/**
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
* @
|
|
59
|
+
* parameter for aws4 signature security
|
|
60
|
+
* @param {Object} AWS4Signature - AWS4 Signature security
|
|
61
|
+
* @param {string} options.region - aws region
|
|
62
|
+
* @param {string} options.service - name of the service.
|
|
63
|
+
* @param {string} credentials.accessKeyId - aws access key id
|
|
64
|
+
* @param {string} credentials.secretAccessKey - aws access key
|
|
65
|
+
* @param {string} credentials.sessionToken - aws session token
|
|
58
66
|
* @memberof Configuration
|
|
59
67
|
*/
|
|
68
|
+
awsv4?: AWSv4Configuration;
|
|
69
|
+
/**
|
|
70
|
+
* override base path
|
|
71
|
+
*/
|
|
60
72
|
basePath?: string;
|
|
73
|
+
/**
|
|
74
|
+
* override server index
|
|
75
|
+
*/
|
|
76
|
+
serverIndex?: number;
|
|
61
77
|
/**
|
|
62
78
|
* base options for axios calls
|
|
63
|
-
*
|
|
64
|
-
* @type {any}
|
|
65
|
-
* @memberof Configuration
|
|
66
79
|
*/
|
|
67
80
|
baseOptions?: any;
|
|
68
81
|
/**
|
|
@@ -79,8 +92,15 @@ export class Configuration {
|
|
|
79
92
|
this.username = param.username;
|
|
80
93
|
this.password = param.password;
|
|
81
94
|
this.accessToken = param.accessToken;
|
|
95
|
+
this.awsv4 = param.awsv4;
|
|
82
96
|
this.basePath = param.basePath;
|
|
83
|
-
this.
|
|
97
|
+
this.serverIndex = param.serverIndex;
|
|
98
|
+
this.baseOptions = {
|
|
99
|
+
...param.baseOptions,
|
|
100
|
+
headers: {
|
|
101
|
+
...param.baseOptions?.headers,
|
|
102
|
+
},
|
|
103
|
+
};
|
|
84
104
|
this.formDataCtor = param.formDataCtor;
|
|
85
105
|
}
|
|
86
106
|
|