airborne-server-sdk 0.18.1 → 0.18.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -624,9 +624,11 @@ const de_PostLoginCommand = async (output, context) => {
624
624
  });
625
625
  const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
626
626
  const doc = (0, smithy_client_1.take)(data, {
627
- 'organisations': smithy_client_1._json,
628
- 'user_id': smithy_client_1.expectString,
629
- 'user_token': smithy_client_1._json,
627
+ 'access_token': smithy_client_1.expectString,
628
+ 'expires_in': smithy_client_1.expectLong,
629
+ 'refresh_expires_in': smithy_client_1.expectLong,
630
+ 'refresh_token': smithy_client_1.expectString,
631
+ 'token_type': smithy_client_1.expectString,
630
632
  });
631
633
  Object.assign(contents, doc);
632
634
  return contents;
@@ -2,7 +2,7 @@ import { AirborneServiceException as __BaseException } from "../models/AirborneS
2
2
  import { BadRequestError, ForbiddenError, InternalServerError, NotFoundError, Unauthorized, } from "../models/models_0";
3
3
  import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
4
4
  import { requestBuilder as rb } from "@smithy/core";
5
- import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, _json, collectBody, isSerializableHeaderValue, map, take, withBaseException, } from "@smithy/smithy-client";
5
+ import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, _json, collectBody, isSerializableHeaderValue, map, take, withBaseException, } from "@smithy/smithy-client";
6
6
  export const se_CreateApplicationCommand = async (input, context) => {
7
7
  const b = rb(input, context);
8
8
  const headers = map({}, isSerializableHeaderValue, {
@@ -587,9 +587,11 @@ export const de_PostLoginCommand = async (output, context) => {
587
587
  });
588
588
  const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
589
589
  const doc = take(data, {
590
- 'organisations': _json,
591
- 'user_id': __expectString,
592
- 'user_token': _json,
590
+ 'access_token': __expectString,
591
+ 'expires_in': __expectLong,
592
+ 'refresh_expires_in': __expectLong,
593
+ 'refresh_token': __expectString,
594
+ 'token_type': __expectString,
593
595
  });
594
596
  Object.assign(contents, doc);
595
597
  return contents;
@@ -1,5 +1,5 @@
1
1
  import { AirborneClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AirborneClient";
2
- import { User, UserCredentials } from "../models/models_0";
2
+ import { UserCredentials, UserToken } from "../models/models_0";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
4
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
5
  /**
@@ -19,7 +19,7 @@ export interface PostLoginCommandInput extends UserCredentials {
19
19
  *
20
20
  * The output of {@link PostLoginCommand}.
21
21
  */
22
- export interface PostLoginCommandOutput extends User, __MetadataBearer {
22
+ export interface PostLoginCommandOutput extends UserToken, __MetadataBearer {
23
23
  }
24
24
  declare const PostLoginCommand_base: {
25
25
  new (input: PostLoginCommandInput): import("@smithy/smithy-client").CommandImpl<PostLoginCommandInput, PostLoginCommandOutput, AirborneClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
@@ -40,32 +40,12 @@ declare const PostLoginCommand_base: {
40
40
  * };
41
41
  * const command = new PostLoginCommand(input);
42
42
  * const response = await client.send(command);
43
- * // { // User
44
- * // user_id: "STRING_VALUE", // required
45
- * // organisations: [ // Organisations // required
46
- * // { // Organisation
47
- * // name: "STRING_VALUE", // required
48
- * // applications: [ // Applications // required
49
- * // { // Application
50
- * // application: "STRING_VALUE", // required
51
- * // organisation: "STRING_VALUE", // required
52
- * // access: [ // StringList // required
53
- * // "STRING_VALUE",
54
- * // ],
55
- * // },
56
- * // ],
57
- * // access: [ // required
58
- * // "STRING_VALUE",
59
- * // ],
60
- * // },
61
- * // ],
62
- * // user_token: { // UserToken
63
- * // access_token: "STRING_VALUE", // required
64
- * // token_type: "STRING_VALUE", // required
65
- * // expires_in: Number("long"), // required
66
- * // refresh_token: "STRING_VALUE", // required
67
- * // refresh_expires_in: Number("long"), // required
68
- * // },
43
+ * // { // UserToken
44
+ * // access_token: "STRING_VALUE", // required
45
+ * // token_type: "STRING_VALUE", // required
46
+ * // expires_in: Number("long"), // required
47
+ * // refresh_token: "STRING_VALUE", // required
48
+ * // refresh_expires_in: Number("long"), // required
69
49
  * // };
70
50
  *
71
51
  * ```
@@ -101,7 +81,7 @@ export declare class PostLoginCommand extends PostLoginCommand_base {
101
81
  protected static __types: {
102
82
  api: {
103
83
  input: UserCredentials;
104
- output: User;
84
+ output: UserToken;
105
85
  };
106
86
  sdk: {
107
87
  input: PostLoginCommandInput;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "airborne-server-sdk",
3
3
  "description": "airborne-server-sdk client",
4
- "version": "0.18.1",
4
+ "version": "0.18.3",
5
5
  "scripts": {
6
6
  "build": "npm run build:types && npm run build:cjs && npm run build:es",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",