airborne-server-sdk 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/Airborne.js +51 -0
- package/dist-cjs/AirborneClient.js +47 -0
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +49 -0
- package/dist-cjs/commands/CreateApplicationCommand.js +21 -0
- package/dist-cjs/commands/CreateDimensionCommand.js +21 -0
- package/dist-cjs/commands/CreateFileCommand.js +21 -0
- package/dist-cjs/commands/CreateOrganisationCommand.js +21 -0
- package/dist-cjs/commands/CreatePackageCommand.js +21 -0
- package/dist-cjs/commands/CreateReleaseCommand.js +21 -0
- package/dist-cjs/commands/DeleteDimensionCommand.js +21 -0
- package/dist-cjs/commands/GetReleaseCommand.js +21 -0
- package/dist-cjs/commands/GetUserCommand.js +21 -0
- package/dist-cjs/commands/ListDimensionsCommand.js +21 -0
- package/dist-cjs/commands/ListFilesCommand.js +21 -0
- package/dist-cjs/commands/ListOrganisationsCommand.js +21 -0
- package/dist-cjs/commands/ListPackagesCommand.js +21 -0
- package/dist-cjs/commands/ListReleasesCommand.js +21 -0
- package/dist-cjs/commands/PostLoginCommand.js +21 -0
- package/dist-cjs/commands/RequestOrganisationCommand.js +21 -0
- package/dist-cjs/commands/ServeReleaseCommand.js +21 -0
- package/dist-cjs/commands/ServeReleaseV2Command.js +21 -0
- package/dist-cjs/commands/UpdateDimensionCommand.js +21 -0
- package/dist-cjs/commands/UploadFileCommand.js +22 -0
- package/dist-cjs/commands/index.js +23 -0
- package/dist-cjs/extensionConfiguration.js +2 -0
- package/dist-cjs/index.js +10 -0
- package/dist-cjs/models/AirborneServiceException.js +12 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +77 -0
- package/dist-cjs/protocols/Aws_restJson1.js +953 -0
- package/dist-cjs/runtimeConfig.browser.js +32 -0
- package/dist-cjs/runtimeConfig.js +38 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +33 -0
- package/dist-cjs/runtimeExtensions.js +12 -0
- package/dist-es/Airborne.js +47 -0
- package/dist-es/AirborneClient.js +43 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +43 -0
- package/dist-es/commands/CreateApplicationCommand.js +17 -0
- package/dist-es/commands/CreateDimensionCommand.js +17 -0
- package/dist-es/commands/CreateFileCommand.js +17 -0
- package/dist-es/commands/CreateOrganisationCommand.js +17 -0
- package/dist-es/commands/CreatePackageCommand.js +17 -0
- package/dist-es/commands/CreateReleaseCommand.js +17 -0
- package/dist-es/commands/DeleteDimensionCommand.js +17 -0
- package/dist-es/commands/GetReleaseCommand.js +17 -0
- package/dist-es/commands/GetUserCommand.js +17 -0
- package/dist-es/commands/ListDimensionsCommand.js +17 -0
- package/dist-es/commands/ListFilesCommand.js +17 -0
- package/dist-es/commands/ListOrganisationsCommand.js +17 -0
- package/dist-es/commands/ListPackagesCommand.js +17 -0
- package/dist-es/commands/ListReleasesCommand.js +17 -0
- package/dist-es/commands/PostLoginCommand.js +17 -0
- package/dist-es/commands/RequestOrganisationCommand.js +17 -0
- package/dist-es/commands/ServeReleaseCommand.js +17 -0
- package/dist-es/commands/ServeReleaseV2Command.js +17 -0
- package/dist-es/commands/UpdateDimensionCommand.js +17 -0
- package/dist-es/commands/UploadFileCommand.js +18 -0
- package/dist-es/commands/index.js +20 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +5 -0
- package/dist-es/models/AirborneServiceException.js +8 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +68 -0
- package/dist-es/protocols/Aws_restJson1.js +910 -0
- package/dist-es/runtimeConfig.browser.js +27 -0
- package/dist-es/runtimeConfig.js +33 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +29 -0
- package/dist-es/runtimeExtensions.js +8 -0
- package/dist-types/Airborne.d.ts +152 -0
- package/dist-types/AirborneClient.d.ts +182 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +67 -0
- package/dist-types/commands/CreateApplicationCommand.d.ts +91 -0
- package/dist-types/commands/CreateDimensionCommand.d.ts +95 -0
- package/dist-types/commands/CreateFileCommand.d.ts +100 -0
- package/dist-types/commands/CreateOrganisationCommand.d.ts +98 -0
- package/dist-types/commands/CreatePackageCommand.d.ts +97 -0
- package/dist-types/commands/CreateReleaseCommand.d.ts +152 -0
- package/dist-types/commands/DeleteDimensionCommand.d.ts +86 -0
- package/dist-types/commands/GetReleaseCommand.d.ts +139 -0
- package/dist-types/commands/GetUserCommand.d.ts +108 -0
- package/dist-types/commands/ListDimensionsCommand.d.ts +100 -0
- package/dist-types/commands/ListFilesCommand.d.ts +108 -0
- package/dist-types/commands/ListOrganisationsCommand.d.ts +100 -0
- package/dist-types/commands/ListPackagesCommand.d.ts +102 -0
- package/dist-types/commands/ListReleasesCommand.d.ts +143 -0
- package/dist-types/commands/PostLoginCommand.d.ts +111 -0
- package/dist-types/commands/RequestOrganisationCommand.d.ts +92 -0
- package/dist-types/commands/ServeReleaseCommand.d.ts +103 -0
- package/dist-types/commands/ServeReleaseV2Command.d.ts +103 -0
- package/dist-types/commands/UpdateDimensionCommand.d.ts +95 -0
- package/dist-types/commands/UploadFileCommand.d.ts +101 -0
- package/dist-types/commands/index.d.ts +20 -0
- package/dist-types/extensionConfiguration.d.ts +8 -0
- package/dist-types/index.d.ts +12 -0
- package/dist-types/models/AirborneServiceException.d.ts +14 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +961 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +182 -0
- package/dist-types/runtimeConfig.browser.d.ts +44 -0
- package/dist-types/runtimeConfig.d.ts +44 -0
- package/dist-types/runtimeConfig.native.d.ts +43 -0
- package/dist-types/runtimeConfig.shared.d.ts +27 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/package.json +81 -0
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { AirborneClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AirborneClient";
|
|
2
|
+
import { CreateFileResponse, UploadFileRequest } from "../models/models_0";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { StreamingBlobPayloadInputTypes, MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link UploadFileCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface UploadFileCommandInput extends Omit<UploadFileRequest, "file"> {
|
|
16
|
+
file: StreamingBlobPayloadInputTypes;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* @public
|
|
20
|
+
*
|
|
21
|
+
* The output of {@link UploadFileCommand}.
|
|
22
|
+
*/
|
|
23
|
+
export interface UploadFileCommandOutput extends CreateFileResponse, __MetadataBearer {
|
|
24
|
+
}
|
|
25
|
+
declare const UploadFileCommand_base: {
|
|
26
|
+
new (input: UploadFileCommandInput): import("@smithy/smithy-client").CommandImpl<UploadFileCommandInput, UploadFileCommandOutput, AirborneClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
new (__0_0: UploadFileCommandInput): import("@smithy/smithy-client").CommandImpl<UploadFileCommandInput, UploadFileCommandOutput, AirborneClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
28
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Upload file request operation
|
|
32
|
+
* @example
|
|
33
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
34
|
+
* ```javascript
|
|
35
|
+
* import { AirborneClient, UploadFileCommand } from "airborne-server-sdk"; // ES Modules import
|
|
36
|
+
* // const { AirborneClient, UploadFileCommand } = require("airborne-server-sdk"); // CommonJS import
|
|
37
|
+
* const client = new AirborneClient(config);
|
|
38
|
+
* const input = { // UploadFileRequest
|
|
39
|
+
* file: "MULTIPLE_TYPES_ACCEPTED", // see \@smithy/types -> StreamingBlobPayloadInputTypes // required
|
|
40
|
+
* file_path: "STRING_VALUE", // required
|
|
41
|
+
* tag: "STRING_VALUE",
|
|
42
|
+
* checksum: "STRING_VALUE", // required
|
|
43
|
+
* organisation: "STRING_VALUE", // required
|
|
44
|
+
* application: "STRING_VALUE", // required
|
|
45
|
+
* };
|
|
46
|
+
* const command = new UploadFileCommand(input);
|
|
47
|
+
* const response = await client.send(command);
|
|
48
|
+
* // { // CreateFileResponse
|
|
49
|
+
* // id: "STRING_VALUE", // required
|
|
50
|
+
* // file_path: "STRING_VALUE", // required
|
|
51
|
+
* // url: "STRING_VALUE", // required
|
|
52
|
+
* // version: Number("int"), // required
|
|
53
|
+
* // tag: "STRING_VALUE",
|
|
54
|
+
* // size: Number("int"), // required
|
|
55
|
+
* // checksum: "STRING_VALUE", // required
|
|
56
|
+
* // metadata: "DOCUMENT_VALUE", // required
|
|
57
|
+
* // status: "STRING_VALUE", // required
|
|
58
|
+
* // created_at: "STRING_VALUE", // required
|
|
59
|
+
* // };
|
|
60
|
+
*
|
|
61
|
+
* ```
|
|
62
|
+
*
|
|
63
|
+
* @param UploadFileCommandInput - {@link UploadFileCommandInput}
|
|
64
|
+
* @returns {@link UploadFileCommandOutput}
|
|
65
|
+
* @see {@link UploadFileCommandInput} for command's `input` shape.
|
|
66
|
+
* @see {@link UploadFileCommandOutput} for command's `response` shape.
|
|
67
|
+
* @see {@link AirborneClientResolvedConfig | config} for AirborneClient's `config` shape.
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link Unauthorized} (client fault)
|
|
70
|
+
* Unauthorized error
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link BadRequestError} (client fault)
|
|
73
|
+
* Bad request error
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link NotFoundError} (client fault)
|
|
76
|
+
* Not found error
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link InternalServerError} (server fault)
|
|
79
|
+
* Internal server error
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link ForbiddenError} (client fault)
|
|
82
|
+
*
|
|
83
|
+
* @throws {@link AirborneServiceException}
|
|
84
|
+
* <p>Base exception class for all service exceptions from Airborne service.</p>
|
|
85
|
+
*
|
|
86
|
+
*
|
|
87
|
+
* @public
|
|
88
|
+
*/
|
|
89
|
+
export declare class UploadFileCommand extends UploadFileCommand_base {
|
|
90
|
+
/** @internal type navigation helper, not in runtime. */
|
|
91
|
+
protected static __types: {
|
|
92
|
+
api: {
|
|
93
|
+
input: UploadFileRequest;
|
|
94
|
+
output: CreateFileResponse;
|
|
95
|
+
};
|
|
96
|
+
sdk: {
|
|
97
|
+
input: UploadFileCommandInput;
|
|
98
|
+
output: UploadFileCommandOutput;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export * from "./CreateApplicationCommand";
|
|
2
|
+
export * from "./CreateDimensionCommand";
|
|
3
|
+
export * from "./CreateFileCommand";
|
|
4
|
+
export * from "./CreateOrganisationCommand";
|
|
5
|
+
export * from "./CreatePackageCommand";
|
|
6
|
+
export * from "./CreateReleaseCommand";
|
|
7
|
+
export * from "./DeleteDimensionCommand";
|
|
8
|
+
export * from "./GetReleaseCommand";
|
|
9
|
+
export * from "./GetUserCommand";
|
|
10
|
+
export * from "./ListDimensionsCommand";
|
|
11
|
+
export * from "./ListFilesCommand";
|
|
12
|
+
export * from "./ListOrganisationsCommand";
|
|
13
|
+
export * from "./ListPackagesCommand";
|
|
14
|
+
export * from "./ListReleasesCommand";
|
|
15
|
+
export * from "./PostLoginCommand";
|
|
16
|
+
export * from "./RequestOrganisationCommand";
|
|
17
|
+
export * from "./ServeReleaseCommand";
|
|
18
|
+
export * from "./ServeReleaseV2Command";
|
|
19
|
+
export * from "./UpdateDimensionCommand";
|
|
20
|
+
export * from "./UploadFileCommand";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { HttpAuthExtensionConfiguration } from "./auth/httpAuthExtensionConfiguration";
|
|
2
|
+
import { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http";
|
|
3
|
+
import { DefaultExtensionConfiguration } from "@smithy/types";
|
|
4
|
+
/**
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
export interface AirborneExtensionConfiguration extends HttpHandlerExtensionConfiguration, DefaultExtensionConfiguration, HttpAuthExtensionConfiguration {
|
|
8
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Service for managing OTA updates and configurations
|
|
3
|
+
*
|
|
4
|
+
* @packageDocumentation
|
|
5
|
+
*/
|
|
6
|
+
export * from "./AirborneClient";
|
|
7
|
+
export * from "./Airborne";
|
|
8
|
+
export type { RuntimeExtension } from "./runtimeExtensions";
|
|
9
|
+
export type { AirborneExtensionConfiguration } from "./extensionConfiguration";
|
|
10
|
+
export * from "./commands";
|
|
11
|
+
export * from "./models";
|
|
12
|
+
export { AirborneServiceException } from "./models/AirborneServiceException";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@smithy/smithy-client";
|
|
2
|
+
export type { __ServiceExceptionOptions };
|
|
3
|
+
export { __ServiceException };
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*
|
|
7
|
+
* Base exception class for all service exceptions from Airborne service.
|
|
8
|
+
*/
|
|
9
|
+
export declare class AirborneServiceException extends __ServiceException {
|
|
10
|
+
/**
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
constructor(options: __ServiceExceptionOptions);
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./models_0";
|