@aws-sdk/client-sso 3.33.0 → 3.36.1

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 (141) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/{dist/cjs → dist-cjs}/SSO.js +1 -20
  3. package/dist-cjs/SSOClient.js +32 -0
  4. package/{dist/cjs → dist-cjs}/commands/GetRoleCredentialsCommand.js +2 -28
  5. package/{dist/cjs → dist-cjs}/commands/ListAccountRolesCommand.js +2 -27
  6. package/{dist/cjs → dist-cjs}/commands/ListAccountsCommand.js +2 -29
  7. package/{dist/cjs → dist-cjs}/commands/LogoutCommand.js +2 -27
  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 -43
  12. package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
  13. package/{dist/cjs → dist-cjs}/pagination/ListAccountRolesPaginator.js +1 -12
  14. package/{dist/cjs → dist-cjs}/pagination/ListAccountsPaginator.js +1 -12
  15. package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +4 -10
  16. package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +1 -5
  17. package/{dist/cjs → dist-cjs}/runtimeConfig.js +1 -5
  18. package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -4
  19. package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -5
  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 +7 -35
  57. package/dist-types/ts3.4/SSOClient.d.ts +68 -0
  58. package/dist-types/ts3.4/commands/GetRoleCredentialsCommand.d.ts +17 -0
  59. package/dist-types/ts3.4/commands/ListAccountRolesCommand.d.ts +17 -0
  60. package/dist-types/ts3.4/commands/ListAccountsCommand.d.ts +17 -0
  61. package/dist-types/ts3.4/commands/LogoutCommand.d.ts +17 -0
  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/ts3.4/models/models_0.d.ts +154 -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 +1 -3
  71. package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +1 -3
  72. package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -3
  73. package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +1 -3
  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 +0 -56
  83. package/dist/cjs/SSOClient.js.map +0 -1
  84. package/dist/cjs/commands/GetRoleCredentialsCommand.js.map +0 -1
  85. package/dist/cjs/commands/ListAccountRolesCommand.js.map +0 -1
  86. package/dist/cjs/commands/ListAccountsCommand.js.map +0 -1
  87. package/dist/cjs/commands/LogoutCommand.js.map +0 -1
  88. package/dist/cjs/endpoints.js.map +0 -1
  89. package/dist/cjs/index.js.map +0 -1
  90. package/dist/cjs/models/index.js.map +0 -1
  91. package/dist/cjs/models/models_0.js.map +0 -1
  92. package/dist/cjs/package.json +0 -88
  93. package/dist/cjs/pagination/Interfaces.js.map +0 -1
  94. package/dist/cjs/pagination/ListAccountRolesPaginator.js.map +0 -1
  95. package/dist/cjs/pagination/ListAccountsPaginator.js.map +0 -1
  96. package/dist/cjs/protocols/Aws_restJson1.js.map +0 -1
  97. package/dist/cjs/runtimeConfig.browser.js.map +0 -1
  98. package/dist/cjs/runtimeConfig.js.map +0 -1
  99. package/dist/cjs/runtimeConfig.native.js.map +0 -1
  100. package/dist/cjs/runtimeConfig.shared.js.map +0 -1
  101. package/dist/es/SSO.js.map +0 -1
  102. package/dist/es/SSOClient.js.map +0 -1
  103. package/dist/es/commands/GetRoleCredentialsCommand.js.map +0 -1
  104. package/dist/es/commands/ListAccountRolesCommand.js.map +0 -1
  105. package/dist/es/commands/ListAccountsCommand.js.map +0 -1
  106. package/dist/es/commands/LogoutCommand.js.map +0 -1
  107. package/dist/es/endpoints.js.map +0 -1
  108. package/dist/es/index.js +0 -11
  109. package/dist/es/index.js.map +0 -1
  110. package/dist/es/models/index.js +0 -2
  111. package/dist/es/models/index.js.map +0 -1
  112. package/dist/es/models/models_0.js.map +0 -1
  113. package/dist/es/package.json +0 -88
  114. package/dist/es/pagination/Interfaces.js +0 -2
  115. package/dist/es/pagination/Interfaces.js.map +0 -1
  116. package/dist/es/pagination/ListAccountRolesPaginator.js.map +0 -1
  117. package/dist/es/pagination/ListAccountsPaginator.js.map +0 -1
  118. package/dist/es/protocols/Aws_restJson1.js.map +0 -1
  119. package/dist/es/runtimeConfig.browser.js.map +0 -1
  120. package/dist/es/runtimeConfig.js.map +0 -1
  121. package/dist/es/runtimeConfig.native.js.map +0 -1
  122. package/dist/es/runtimeConfig.shared.js.map +0 -1
  123. package/dist/types/ts3.4/SSOClient.d.ts +0 -145
  124. package/dist/types/ts3.4/commands/GetRoleCredentialsCommand.d.ts +0 -36
  125. package/dist/types/ts3.4/commands/ListAccountRolesCommand.d.ts +0 -35
  126. package/dist/types/ts3.4/commands/ListAccountsCommand.d.ts +0 -37
  127. package/dist/types/ts3.4/commands/LogoutCommand.d.ts +0 -35
  128. package/dist/types/ts3.4/models/models_0.d.ts +0 -255
  129. package/endpoints.ts +0 -94
  130. package/jest.config.js +0 -4
  131. package/models/models_0.ts +0 -334
  132. package/pagination/Interfaces.ts +0 -7
  133. package/pagination/ListAccountRolesPaginator.ts +0 -58
  134. package/pagination/ListAccountsPaginator.ts +0 -58
  135. package/protocols/Aws_restJson1.ts +0 -621
  136. package/runtimeConfig.browser.ts +0 -38
  137. package/runtimeConfig.native.ts +0 -16
  138. package/runtimeConfig.shared.ts +0 -16
  139. package/runtimeConfig.ts +0 -41
  140. package/tsconfig.es.json +0 -12
  141. package/tsconfig.json +0 -32
@@ -1,58 +0,0 @@
1
- import { SSO } from "../SSO";
2
- import { SSOClient } from "../SSOClient";
3
- import {
4
- ListAccountRolesCommand,
5
- ListAccountRolesCommandInput,
6
- ListAccountRolesCommandOutput,
7
- } from "../commands/ListAccountRolesCommand";
8
- import { SSOPaginationConfiguration } from "./Interfaces";
9
- import { Paginator } from "@aws-sdk/types";
10
-
11
- /**
12
- * @private
13
- */
14
- const makePagedClientRequest = async (
15
- client: SSOClient,
16
- input: ListAccountRolesCommandInput,
17
- ...args: any
18
- ): Promise<ListAccountRolesCommandOutput> => {
19
- // @ts-ignore
20
- return await client.send(new ListAccountRolesCommand(input), ...args);
21
- };
22
- /**
23
- * @private
24
- */
25
- const makePagedRequest = async (
26
- client: SSO,
27
- input: ListAccountRolesCommandInput,
28
- ...args: any
29
- ): Promise<ListAccountRolesCommandOutput> => {
30
- // @ts-ignore
31
- return await client.listAccountRoles(input, ...args);
32
- };
33
- export async function* paginateListAccountRoles(
34
- config: SSOPaginationConfiguration,
35
- input: ListAccountRolesCommandInput,
36
- ...additionalArguments: any
37
- ): Paginator<ListAccountRolesCommandOutput> {
38
- // ToDo: replace with actual type instead of typeof input.nextToken
39
- let token: typeof input.nextToken | undefined = config.startingToken || undefined;
40
- let hasNext = true;
41
- let page: ListAccountRolesCommandOutput;
42
- while (hasNext) {
43
- input.nextToken = token;
44
- input["maxResults"] = config.pageSize;
45
- if (config.client instanceof SSO) {
46
- page = await makePagedRequest(config.client, input, ...additionalArguments);
47
- } else if (config.client instanceof SSOClient) {
48
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
49
- } else {
50
- throw new Error("Invalid client, expected SSO | SSOClient");
51
- }
52
- yield page;
53
- token = page.nextToken;
54
- hasNext = !!token;
55
- }
56
- // @ts-ignore
57
- return undefined;
58
- }
@@ -1,58 +0,0 @@
1
- import { SSO } from "../SSO";
2
- import { SSOClient } from "../SSOClient";
3
- import {
4
- ListAccountsCommand,
5
- ListAccountsCommandInput,
6
- ListAccountsCommandOutput,
7
- } from "../commands/ListAccountsCommand";
8
- import { SSOPaginationConfiguration } from "./Interfaces";
9
- import { Paginator } from "@aws-sdk/types";
10
-
11
- /**
12
- * @private
13
- */
14
- const makePagedClientRequest = async (
15
- client: SSOClient,
16
- input: ListAccountsCommandInput,
17
- ...args: any
18
- ): Promise<ListAccountsCommandOutput> => {
19
- // @ts-ignore
20
- return await client.send(new ListAccountsCommand(input), ...args);
21
- };
22
- /**
23
- * @private
24
- */
25
- const makePagedRequest = async (
26
- client: SSO,
27
- input: ListAccountsCommandInput,
28
- ...args: any
29
- ): Promise<ListAccountsCommandOutput> => {
30
- // @ts-ignore
31
- return await client.listAccounts(input, ...args);
32
- };
33
- export async function* paginateListAccounts(
34
- config: SSOPaginationConfiguration,
35
- input: ListAccountsCommandInput,
36
- ...additionalArguments: any
37
- ): Paginator<ListAccountsCommandOutput> {
38
- // ToDo: replace with actual type instead of typeof input.nextToken
39
- let token: typeof input.nextToken | undefined = config.startingToken || undefined;
40
- let hasNext = true;
41
- let page: ListAccountsCommandOutput;
42
- while (hasNext) {
43
- input.nextToken = token;
44
- input["maxResults"] = config.pageSize;
45
- if (config.client instanceof SSO) {
46
- page = await makePagedRequest(config.client, input, ...additionalArguments);
47
- } else if (config.client instanceof SSOClient) {
48
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
49
- } else {
50
- throw new Error("Invalid client, expected SSO | SSOClient");
51
- }
52
- yield page;
53
- token = page.nextToken;
54
- hasNext = !!token;
55
- }
56
- // @ts-ignore
57
- return undefined;
58
- }