@aws-sdk/client-sso 3.32.0 → 3.36.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.
Files changed (134) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/{dist/cjs → dist-cjs}/SSO.js +1 -2
  3. package/{dist/cjs → dist-cjs}/SSOClient.js +7 -8
  4. package/{dist/cjs → dist-cjs}/commands/GetRoleCredentialsCommand.js +2 -3
  5. package/{dist/cjs → dist-cjs}/commands/ListAccountRolesCommand.js +2 -3
  6. package/{dist/cjs → dist-cjs}/commands/ListAccountsCommand.js +2 -3
  7. package/{dist/cjs → dist-cjs}/commands/LogoutCommand.js +2 -3
  8. package/{dist/cjs → dist-cjs}/endpoints.js +0 -1
  9. package/{dist/cjs → dist-cjs}/index.js +0 -1
  10. package/{dist/cjs → dist-cjs}/models/index.js +0 -1
  11. package/{dist/cjs → dist-cjs}/models/models_0.js +0 -1
  12. package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
  13. package/{dist/cjs → dist-cjs}/pagination/ListAccountRolesPaginator.js +1 -2
  14. package/{dist/cjs → dist-cjs}/pagination/ListAccountsPaginator.js +1 -2
  15. package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +4 -5
  16. package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +2 -2
  17. package/{dist/cjs → dist-cjs}/runtimeConfig.js +2 -2
  18. package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -1
  19. package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -2
  20. package/{dist/es → dist-es}/SSO.js +2 -21
  21. package/{dist/es → dist-es}/SSOClient.js +2 -26
  22. package/{dist/es → dist-es}/commands/GetRoleCredentialsCommand.js +4 -31
  23. package/{dist/es → dist-es}/commands/ListAccountRolesCommand.js +4 -30
  24. package/{dist/es → dist-es}/commands/ListAccountsCommand.js +4 -32
  25. package/{dist/es → dist-es}/commands/LogoutCommand.js +4 -30
  26. package/{dist/es → dist-es}/endpoints.js +1 -2
  27. package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
  28. package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
  29. package/{dist/es → dist-es}/models/models_0.js +0 -43
  30. package/dist-es/pagination/Interfaces.js +1 -0
  31. package/{dist/es → dist-es}/pagination/ListAccountRolesPaginator.js +17 -30
  32. package/{dist/es → dist-es}/pagination/ListAccountsPaginator.js +17 -30
  33. package/{dist/es → dist-es}/protocols/Aws_restJson1.js +96 -102
  34. package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -5
  35. package/{dist/es → dist-es}/runtimeConfig.js +1 -5
  36. package/{dist/es → dist-es}/runtimeConfig.native.js +0 -4
  37. package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -5
  38. package/{dist/types → dist-types}/SSO.d.ts +2 -2
  39. package/{dist/types → dist-types}/SSOClient.d.ts +5 -5
  40. package/{dist/types → dist-types}/commands/GetRoleCredentialsCommand.d.ts +3 -3
  41. package/{dist/types → dist-types}/commands/ListAccountRolesCommand.d.ts +3 -3
  42. package/{dist/types → dist-types}/commands/ListAccountsCommand.d.ts +3 -3
  43. package/{dist/types → dist-types}/commands/LogoutCommand.d.ts +3 -3
  44. package/{dist/types → dist-types}/endpoints.d.ts +0 -0
  45. package/{index.ts → dist-types/index.d.ts} +0 -0
  46. package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
  47. package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
  48. package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
  49. package/{dist/types → dist-types}/pagination/ListAccountRolesPaginator.d.ts +1 -1
  50. package/{dist/types → dist-types}/pagination/ListAccountsPaginator.d.ts +1 -1
  51. package/{dist/types → dist-types}/protocols/Aws_restJson1.d.ts +2 -2
  52. package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +0 -0
  53. package/{dist/types → dist-types}/runtimeConfig.d.ts +0 -0
  54. package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
  55. package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
  56. package/{dist/types → dist-types}/ts3.4/SSO.d.ts +2 -2
  57. package/{dist/types → dist-types}/ts3.4/SSOClient.d.ts +5 -5
  58. package/{dist/types → dist-types}/ts3.4/commands/GetRoleCredentialsCommand.d.ts +3 -3
  59. package/{dist/types → dist-types}/ts3.4/commands/ListAccountRolesCommand.d.ts +3 -3
  60. package/{dist/types → dist-types}/ts3.4/commands/ListAccountsCommand.d.ts +3 -3
  61. package/{dist/types → dist-types}/ts3.4/commands/LogoutCommand.d.ts +3 -3
  62. package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
  63. package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
  64. package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
  65. package/{dist/types → dist-types}/ts3.4/models/models_0.d.ts +0 -0
  66. package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
  67. package/{dist/types → dist-types}/ts3.4/pagination/ListAccountRolesPaginator.d.ts +1 -1
  68. package/{dist/types → dist-types}/ts3.4/pagination/ListAccountsPaginator.d.ts +1 -1
  69. package/{dist/types → dist-types}/ts3.4/protocols/Aws_restJson1.d.ts +2 -2
  70. package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +0 -0
  71. package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +0 -0
  72. package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +0 -0
  73. package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +0 -0
  74. package/package.json +49 -46
  75. package/SSO.ts +0 -160
  76. package/SSOClient.ts +0 -245
  77. package/commands/GetRoleCredentialsCommand.ts +0 -95
  78. package/commands/ListAccountRolesCommand.ts +0 -94
  79. package/commands/ListAccountsCommand.ts +0 -96
  80. package/commands/LogoutCommand.ts +0 -87
  81. package/dist/cjs/SSO.js.map +0 -1
  82. package/dist/cjs/SSOClient.js.map +0 -1
  83. package/dist/cjs/commands/GetRoleCredentialsCommand.js.map +0 -1
  84. package/dist/cjs/commands/ListAccountRolesCommand.js.map +0 -1
  85. package/dist/cjs/commands/ListAccountsCommand.js.map +0 -1
  86. package/dist/cjs/commands/LogoutCommand.js.map +0 -1
  87. package/dist/cjs/endpoints.js.map +0 -1
  88. package/dist/cjs/index.js.map +0 -1
  89. package/dist/cjs/models/index.js.map +0 -1
  90. package/dist/cjs/models/models_0.js.map +0 -1
  91. package/dist/cjs/package.json +0 -88
  92. package/dist/cjs/pagination/Interfaces.js.map +0 -1
  93. package/dist/cjs/pagination/ListAccountRolesPaginator.js.map +0 -1
  94. package/dist/cjs/pagination/ListAccountsPaginator.js.map +0 -1
  95. package/dist/cjs/protocols/Aws_restJson1.js.map +0 -1
  96. package/dist/cjs/runtimeConfig.browser.js.map +0 -1
  97. package/dist/cjs/runtimeConfig.js.map +0 -1
  98. package/dist/cjs/runtimeConfig.native.js.map +0 -1
  99. package/dist/cjs/runtimeConfig.shared.js.map +0 -1
  100. package/dist/es/SSO.js.map +0 -1
  101. package/dist/es/SSOClient.js.map +0 -1
  102. package/dist/es/commands/GetRoleCredentialsCommand.js.map +0 -1
  103. package/dist/es/commands/ListAccountRolesCommand.js.map +0 -1
  104. package/dist/es/commands/ListAccountsCommand.js.map +0 -1
  105. package/dist/es/commands/LogoutCommand.js.map +0 -1
  106. package/dist/es/endpoints.js.map +0 -1
  107. package/dist/es/index.js +0 -11
  108. package/dist/es/index.js.map +0 -1
  109. package/dist/es/models/index.js +0 -2
  110. package/dist/es/models/index.js.map +0 -1
  111. package/dist/es/models/models_0.js.map +0 -1
  112. package/dist/es/package.json +0 -88
  113. package/dist/es/pagination/Interfaces.js +0 -2
  114. package/dist/es/pagination/Interfaces.js.map +0 -1
  115. package/dist/es/pagination/ListAccountRolesPaginator.js.map +0 -1
  116. package/dist/es/pagination/ListAccountsPaginator.js.map +0 -1
  117. package/dist/es/protocols/Aws_restJson1.js.map +0 -1
  118. package/dist/es/runtimeConfig.browser.js.map +0 -1
  119. package/dist/es/runtimeConfig.js.map +0 -1
  120. package/dist/es/runtimeConfig.native.js.map +0 -1
  121. package/dist/es/runtimeConfig.shared.js.map +0 -1
  122. package/endpoints.ts +0 -94
  123. package/jest.config.js +0 -4
  124. package/models/models_0.ts +0 -334
  125. package/pagination/Interfaces.ts +0 -7
  126. package/pagination/ListAccountRolesPaginator.ts +0 -58
  127. package/pagination/ListAccountsPaginator.ts +0 -58
  128. package/protocols/Aws_restJson1.ts +0 -621
  129. package/runtimeConfig.browser.ts +0 -38
  130. package/runtimeConfig.native.ts +0 -16
  131. package/runtimeConfig.shared.ts +0 -16
  132. package/runtimeConfig.ts +0 -41
  133. package/tsconfig.es.json +0 -12
  134. package/tsconfig.json +0 -32
@@ -84,7 +84,6 @@ var partitionHash = {
84
84
  };
85
85
  export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
86
86
  return __generator(this, function (_a) {
87
- return [2 /*return*/, getRegionInfo(region, __assign(__assign({}, options), { signingService: "awsssoportal", regionHash: regionHash, partitionHash: partitionHash }))];
87
+ return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "awsssoportal", regionHash: regionHash, partitionHash: partitionHash }))];
88
88
  });
89
89
  }); };
90
- //# sourceMappingURL=endpoints.js.map
File without changes
@@ -2,100 +2,57 @@ import { __assign } from "tslib";
2
2
  import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
3
3
  export var AccountInfo;
4
4
  (function (AccountInfo) {
5
- /**
6
- * @internal
7
- */
8
5
  AccountInfo.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
9
6
  })(AccountInfo || (AccountInfo = {}));
10
7
  export var GetRoleCredentialsRequest;
11
8
  (function (GetRoleCredentialsRequest) {
12
- /**
13
- * @internal
14
- */
15
9
  GetRoleCredentialsRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.accessToken && { accessToken: SENSITIVE_STRING }))); };
16
10
  })(GetRoleCredentialsRequest || (GetRoleCredentialsRequest = {}));
17
11
  export var RoleCredentials;
18
12
  (function (RoleCredentials) {
19
- /**
20
- * @internal
21
- */
22
13
  RoleCredentials.filterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.secretAccessKey && { secretAccessKey: SENSITIVE_STRING })), (obj.sessionToken && { sessionToken: SENSITIVE_STRING }))); };
23
14
  })(RoleCredentials || (RoleCredentials = {}));
24
15
  export var GetRoleCredentialsResponse;
25
16
  (function (GetRoleCredentialsResponse) {
26
- /**
27
- * @internal
28
- */
29
17
  GetRoleCredentialsResponse.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.roleCredentials && { roleCredentials: RoleCredentials.filterSensitiveLog(obj.roleCredentials) }))); };
30
18
  })(GetRoleCredentialsResponse || (GetRoleCredentialsResponse = {}));
31
19
  export var InvalidRequestException;
32
20
  (function (InvalidRequestException) {
33
- /**
34
- * @internal
35
- */
36
21
  InvalidRequestException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
37
22
  })(InvalidRequestException || (InvalidRequestException = {}));
38
23
  export var ResourceNotFoundException;
39
24
  (function (ResourceNotFoundException) {
40
- /**
41
- * @internal
42
- */
43
25
  ResourceNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
44
26
  })(ResourceNotFoundException || (ResourceNotFoundException = {}));
45
27
  export var TooManyRequestsException;
46
28
  (function (TooManyRequestsException) {
47
- /**
48
- * @internal
49
- */
50
29
  TooManyRequestsException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
51
30
  })(TooManyRequestsException || (TooManyRequestsException = {}));
52
31
  export var UnauthorizedException;
53
32
  (function (UnauthorizedException) {
54
- /**
55
- * @internal
56
- */
57
33
  UnauthorizedException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
58
34
  })(UnauthorizedException || (UnauthorizedException = {}));
59
35
  export var ListAccountRolesRequest;
60
36
  (function (ListAccountRolesRequest) {
61
- /**
62
- * @internal
63
- */
64
37
  ListAccountRolesRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.accessToken && { accessToken: SENSITIVE_STRING }))); };
65
38
  })(ListAccountRolesRequest || (ListAccountRolesRequest = {}));
66
39
  export var RoleInfo;
67
40
  (function (RoleInfo) {
68
- /**
69
- * @internal
70
- */
71
41
  RoleInfo.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
72
42
  })(RoleInfo || (RoleInfo = {}));
73
43
  export var ListAccountRolesResponse;
74
44
  (function (ListAccountRolesResponse) {
75
- /**
76
- * @internal
77
- */
78
45
  ListAccountRolesResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
79
46
  })(ListAccountRolesResponse || (ListAccountRolesResponse = {}));
80
47
  export var ListAccountsRequest;
81
48
  (function (ListAccountsRequest) {
82
- /**
83
- * @internal
84
- */
85
49
  ListAccountsRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.accessToken && { accessToken: SENSITIVE_STRING }))); };
86
50
  })(ListAccountsRequest || (ListAccountsRequest = {}));
87
51
  export var ListAccountsResponse;
88
52
  (function (ListAccountsResponse) {
89
- /**
90
- * @internal
91
- */
92
53
  ListAccountsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
93
54
  })(ListAccountsResponse || (ListAccountsResponse = {}));
94
55
  export var LogoutRequest;
95
56
  (function (LogoutRequest) {
96
- /**
97
- * @internal
98
- */
99
57
  LogoutRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.accessToken && { accessToken: SENSITIVE_STRING }))); };
100
58
  })(LogoutRequest || (LogoutRequest = {}));
101
- //# sourceMappingURL=models_0.js.map
@@ -0,0 +1 @@
1
+ export {};
@@ -1,10 +1,7 @@
1
1
  import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
2
+ import { ListAccountRolesCommand, } from "../commands/ListAccountRolesCommand";
2
3
  import { SSO } from "../SSO";
3
4
  import { SSOClient } from "../SSOClient";
4
- import { ListAccountRolesCommand, } from "../commands/ListAccountRolesCommand";
5
- /**
6
- * @private
7
- */
8
5
  var makePagedClientRequest = function (client, input) {
9
6
  var args = [];
10
7
  for (var _i = 2; _i < arguments.length; _i++) {
@@ -13,17 +10,12 @@ var makePagedClientRequest = function (client, input) {
13
10
  return __awaiter(void 0, void 0, void 0, function () {
14
11
  return __generator(this, function (_a) {
15
12
  switch (_a.label) {
16
- case 0: return [4 /*yield*/, client.send.apply(client, __spreadArray([new ListAccountRolesCommand(input)], __read(args)))];
17
- case 1:
18
- // @ts-ignore
19
- return [2 /*return*/, _a.sent()];
13
+ case 0: return [4, client.send.apply(client, __spreadArray([new ListAccountRolesCommand(input)], __read(args)))];
14
+ case 1: return [2, _a.sent()];
20
15
  }
21
16
  });
22
17
  });
23
18
  };
24
- /**
25
- * @private
26
- */
27
19
  var makePagedRequest = function (client, input) {
28
20
  var args = [];
29
21
  for (var _i = 2; _i < arguments.length; _i++) {
@@ -32,10 +24,8 @@ var makePagedRequest = function (client, input) {
32
24
  return __awaiter(void 0, void 0, void 0, function () {
33
25
  return __generator(this, function (_a) {
34
26
  switch (_a.label) {
35
- case 0: return [4 /*yield*/, client.listAccountRoles.apply(client, __spreadArray([input], __read(args)))];
36
- case 1:
37
- // @ts-ignore
38
- return [2 /*return*/, _a.sent()];
27
+ case 0: return [4, client.listAccountRoles.apply(client, __spreadArray([input], __read(args)))];
28
+ case 1: return [2, _a.sent()];
39
29
  }
40
30
  });
41
31
  });
@@ -54,34 +44,31 @@ export function paginateListAccountRoles(config, input) {
54
44
  hasNext = true;
55
45
  _a.label = 1;
56
46
  case 1:
57
- if (!hasNext) return [3 /*break*/, 9];
47
+ if (!hasNext) return [3, 9];
58
48
  input.nextToken = token;
59
49
  input["maxResults"] = config.pageSize;
60
- if (!(config.client instanceof SSO)) return [3 /*break*/, 3];
61
- return [4 /*yield*/, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
50
+ if (!(config.client instanceof SSO)) return [3, 3];
51
+ return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
62
52
  case 2:
63
53
  page = _a.sent();
64
- return [3 /*break*/, 6];
54
+ return [3, 6];
65
55
  case 3:
66
- if (!(config.client instanceof SSOClient)) return [3 /*break*/, 5];
67
- return [4 /*yield*/, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
56
+ if (!(config.client instanceof SSOClient)) return [3, 5];
57
+ return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
68
58
  case 4:
69
59
  page = _a.sent();
70
- return [3 /*break*/, 6];
60
+ return [3, 6];
71
61
  case 5: throw new Error("Invalid client, expected SSO | SSOClient");
72
- case 6: return [4 /*yield*/, __await(page)];
73
- case 7: return [4 /*yield*/, _a.sent()];
62
+ case 6: return [4, __await(page)];
63
+ case 7: return [4, _a.sent()];
74
64
  case 8:
75
65
  _a.sent();
76
66
  token = page.nextToken;
77
67
  hasNext = !!token;
78
- return [3 /*break*/, 1];
79
- case 9: return [4 /*yield*/, __await(undefined)];
80
- case 10:
81
- // @ts-ignore
82
- return [2 /*return*/, _a.sent()];
68
+ return [3, 1];
69
+ case 9: return [4, __await(undefined)];
70
+ case 10: return [2, _a.sent()];
83
71
  }
84
72
  });
85
73
  });
86
74
  }
87
- //# sourceMappingURL=ListAccountRolesPaginator.js.map
@@ -1,10 +1,7 @@
1
1
  import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
2
+ import { ListAccountsCommand, } from "../commands/ListAccountsCommand";
2
3
  import { SSO } from "../SSO";
3
4
  import { SSOClient } from "../SSOClient";
4
- import { ListAccountsCommand, } from "../commands/ListAccountsCommand";
5
- /**
6
- * @private
7
- */
8
5
  var makePagedClientRequest = function (client, input) {
9
6
  var args = [];
10
7
  for (var _i = 2; _i < arguments.length; _i++) {
@@ -13,17 +10,12 @@ var makePagedClientRequest = function (client, input) {
13
10
  return __awaiter(void 0, void 0, void 0, function () {
14
11
  return __generator(this, function (_a) {
15
12
  switch (_a.label) {
16
- case 0: return [4 /*yield*/, client.send.apply(client, __spreadArray([new ListAccountsCommand(input)], __read(args)))];
17
- case 1:
18
- // @ts-ignore
19
- return [2 /*return*/, _a.sent()];
13
+ case 0: return [4, client.send.apply(client, __spreadArray([new ListAccountsCommand(input)], __read(args)))];
14
+ case 1: return [2, _a.sent()];
20
15
  }
21
16
  });
22
17
  });
23
18
  };
24
- /**
25
- * @private
26
- */
27
19
  var makePagedRequest = function (client, input) {
28
20
  var args = [];
29
21
  for (var _i = 2; _i < arguments.length; _i++) {
@@ -32,10 +24,8 @@ var makePagedRequest = function (client, input) {
32
24
  return __awaiter(void 0, void 0, void 0, function () {
33
25
  return __generator(this, function (_a) {
34
26
  switch (_a.label) {
35
- case 0: return [4 /*yield*/, client.listAccounts.apply(client, __spreadArray([input], __read(args)))];
36
- case 1:
37
- // @ts-ignore
38
- return [2 /*return*/, _a.sent()];
27
+ case 0: return [4, client.listAccounts.apply(client, __spreadArray([input], __read(args)))];
28
+ case 1: return [2, _a.sent()];
39
29
  }
40
30
  });
41
31
  });
@@ -54,34 +44,31 @@ export function paginateListAccounts(config, input) {
54
44
  hasNext = true;
55
45
  _a.label = 1;
56
46
  case 1:
57
- if (!hasNext) return [3 /*break*/, 9];
47
+ if (!hasNext) return [3, 9];
58
48
  input.nextToken = token;
59
49
  input["maxResults"] = config.pageSize;
60
- if (!(config.client instanceof SSO)) return [3 /*break*/, 3];
61
- return [4 /*yield*/, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
50
+ if (!(config.client instanceof SSO)) return [3, 3];
51
+ return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
62
52
  case 2:
63
53
  page = _a.sent();
64
- return [3 /*break*/, 6];
54
+ return [3, 6];
65
55
  case 3:
66
- if (!(config.client instanceof SSOClient)) return [3 /*break*/, 5];
67
- return [4 /*yield*/, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
56
+ if (!(config.client instanceof SSOClient)) return [3, 5];
57
+ return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
68
58
  case 4:
69
59
  page = _a.sent();
70
- return [3 /*break*/, 6];
60
+ return [3, 6];
71
61
  case 5: throw new Error("Invalid client, expected SSO | SSOClient");
72
- case 6: return [4 /*yield*/, __await(page)];
73
- case 7: return [4 /*yield*/, _a.sent()];
62
+ case 6: return [4, __await(page)];
63
+ case 7: return [4, _a.sent()];
74
64
  case 8:
75
65
  _a.sent();
76
66
  token = page.nextToken;
77
67
  hasNext = !!token;
78
- return [3 /*break*/, 1];
79
- case 9: return [4 /*yield*/, __await(undefined)];
80
- case 10:
81
- // @ts-ignore
82
- return [2 /*return*/, _a.sent()];
68
+ return [3, 1];
69
+ case 9: return [4, __await(undefined)];
70
+ case 10: return [2, _a.sent()];
83
71
  }
84
72
  });
85
73
  });
86
74
  }
87
- //# sourceMappingURL=ListAccountsPaginator.js.map