@aws-sdk/client-qapps 3.612.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 (187) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +397 -0
  3. package/dist-cjs/QApps.js +57 -0
  4. package/dist-cjs/QAppsClient.js +56 -0
  5. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
  6. package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
  7. package/dist-cjs/commands/AssociateLibraryItemReviewCommand.js +28 -0
  8. package/dist-cjs/commands/AssociateQAppWithUserCommand.js +28 -0
  9. package/dist-cjs/commands/CreateLibraryItemCommand.js +28 -0
  10. package/dist-cjs/commands/CreateQAppCommand.js +28 -0
  11. package/dist-cjs/commands/DeleteLibraryItemCommand.js +28 -0
  12. package/dist-cjs/commands/DeleteQAppCommand.js +28 -0
  13. package/dist-cjs/commands/DisassociateLibraryItemReviewCommand.js +28 -0
  14. package/dist-cjs/commands/DisassociateQAppFromUserCommand.js +28 -0
  15. package/dist-cjs/commands/GetLibraryItemCommand.js +28 -0
  16. package/dist-cjs/commands/GetQAppCommand.js +28 -0
  17. package/dist-cjs/commands/GetQAppSessionCommand.js +28 -0
  18. package/dist-cjs/commands/ImportDocumentCommand.js +28 -0
  19. package/dist-cjs/commands/ListLibraryItemsCommand.js +28 -0
  20. package/dist-cjs/commands/ListQAppsCommand.js +28 -0
  21. package/dist-cjs/commands/ListTagsForResourceCommand.js +28 -0
  22. package/dist-cjs/commands/PredictQAppCommand.js +28 -0
  23. package/dist-cjs/commands/StartQAppSessionCommand.js +28 -0
  24. package/dist-cjs/commands/StopQAppSessionCommand.js +28 -0
  25. package/dist-cjs/commands/TagResourceCommand.js +28 -0
  26. package/dist-cjs/commands/UntagResourceCommand.js +28 -0
  27. package/dist-cjs/commands/UpdateLibraryItemCommand.js +28 -0
  28. package/dist-cjs/commands/UpdateQAppCommand.js +28 -0
  29. package/dist-cjs/commands/UpdateQAppSessionCommand.js +28 -0
  30. package/dist-cjs/commands/index.js +26 -0
  31. package/dist-cjs/endpoint/EndpointParameters.js +18 -0
  32. package/dist-cjs/endpoint/endpointResolver.js +14 -0
  33. package/dist-cjs/endpoint/ruleset.js +7 -0
  34. package/dist-cjs/extensionConfiguration.js +2 -0
  35. package/dist-cjs/index.js +11 -0
  36. package/dist-cjs/models/QAppsServiceException.js +12 -0
  37. package/dist-cjs/models/index.js +4 -0
  38. package/dist-cjs/models/models_0.js +236 -0
  39. package/dist-cjs/pagination/Interfaces.js +2 -0
  40. package/dist-cjs/pagination/ListLibraryItemsPaginator.js +7 -0
  41. package/dist-cjs/pagination/ListQAppsPaginator.js +7 -0
  42. package/dist-cjs/pagination/index.js +6 -0
  43. package/dist-cjs/protocols/Aws_restJson1.js +1207 -0
  44. package/dist-cjs/runtimeConfig.browser.js +39 -0
  45. package/dist-cjs/runtimeConfig.js +49 -0
  46. package/dist-cjs/runtimeConfig.native.js +15 -0
  47. package/dist-cjs/runtimeConfig.shared.js +34 -0
  48. package/dist-cjs/runtimeExtensions.js +25 -0
  49. package/dist-es/QApps.js +53 -0
  50. package/dist-es/QAppsClient.js +52 -0
  51. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  52. package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
  53. package/dist-es/commands/AssociateLibraryItemReviewCommand.js +24 -0
  54. package/dist-es/commands/AssociateQAppWithUserCommand.js +24 -0
  55. package/dist-es/commands/CreateLibraryItemCommand.js +24 -0
  56. package/dist-es/commands/CreateQAppCommand.js +24 -0
  57. package/dist-es/commands/DeleteLibraryItemCommand.js +24 -0
  58. package/dist-es/commands/DeleteQAppCommand.js +24 -0
  59. package/dist-es/commands/DisassociateLibraryItemReviewCommand.js +24 -0
  60. package/dist-es/commands/DisassociateQAppFromUserCommand.js +24 -0
  61. package/dist-es/commands/GetLibraryItemCommand.js +24 -0
  62. package/dist-es/commands/GetQAppCommand.js +24 -0
  63. package/dist-es/commands/GetQAppSessionCommand.js +24 -0
  64. package/dist-es/commands/ImportDocumentCommand.js +24 -0
  65. package/dist-es/commands/ListLibraryItemsCommand.js +24 -0
  66. package/dist-es/commands/ListQAppsCommand.js +24 -0
  67. package/dist-es/commands/ListTagsForResourceCommand.js +24 -0
  68. package/dist-es/commands/PredictQAppCommand.js +24 -0
  69. package/dist-es/commands/StartQAppSessionCommand.js +24 -0
  70. package/dist-es/commands/StopQAppSessionCommand.js +24 -0
  71. package/dist-es/commands/TagResourceCommand.js +24 -0
  72. package/dist-es/commands/UntagResourceCommand.js +24 -0
  73. package/dist-es/commands/UpdateLibraryItemCommand.js +24 -0
  74. package/dist-es/commands/UpdateQAppCommand.js +24 -0
  75. package/dist-es/commands/UpdateQAppSessionCommand.js +24 -0
  76. package/dist-es/commands/index.js +23 -0
  77. package/dist-es/endpoint/EndpointParameters.js +14 -0
  78. package/dist-es/endpoint/endpointResolver.js +10 -0
  79. package/dist-es/endpoint/ruleset.js +4 -0
  80. package/dist-es/extensionConfiguration.js +1 -0
  81. package/dist-es/index.js +6 -0
  82. package/dist-es/models/QAppsServiceException.js +8 -0
  83. package/dist-es/models/index.js +1 -0
  84. package/dist-es/models/models_0.js +224 -0
  85. package/dist-es/pagination/Interfaces.js +1 -0
  86. package/dist-es/pagination/ListLibraryItemsPaginator.js +4 -0
  87. package/dist-es/pagination/ListQAppsPaginator.js +4 -0
  88. package/dist-es/pagination/index.js +3 -0
  89. package/dist-es/protocols/Aws_restJson1.js +1158 -0
  90. package/dist-es/runtimeConfig.browser.js +34 -0
  91. package/dist-es/runtimeConfig.js +44 -0
  92. package/dist-es/runtimeConfig.native.js +11 -0
  93. package/dist-es/runtimeConfig.shared.js +30 -0
  94. package/dist-es/runtimeExtensions.js +21 -0
  95. package/dist-types/QApps.d.ts +179 -0
  96. package/dist-types/QAppsClient.d.ts +202 -0
  97. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  98. package/dist-types/auth/httpAuthSchemeProvider.d.ts +61 -0
  99. package/dist-types/commands/AssociateLibraryItemReviewCommand.d.ts +83 -0
  100. package/dist-types/commands/AssociateQAppWithUserCommand.d.ts +85 -0
  101. package/dist-types/commands/CreateLibraryItemCommand.d.ts +95 -0
  102. package/dist-types/commands/CreateQAppCommand.d.ts +225 -0
  103. package/dist-types/commands/DeleteLibraryItemCommand.d.ts +83 -0
  104. package/dist-types/commands/DeleteQAppCommand.d.ts +78 -0
  105. package/dist-types/commands/DisassociateLibraryItemReviewCommand.d.ts +82 -0
  106. package/dist-types/commands/DisassociateQAppFromUserCommand.d.ts +79 -0
  107. package/dist-types/commands/GetLibraryItemCommand.d.ts +98 -0
  108. package/dist-types/commands/GetQAppCommand.d.ts +224 -0
  109. package/dist-types/commands/GetQAppSessionCommand.d.ts +92 -0
  110. package/dist-types/commands/ImportDocumentCommand.d.ts +97 -0
  111. package/dist-types/commands/ListLibraryItemsCommand.d.ts +103 -0
  112. package/dist-types/commands/ListQAppsCommand.d.ts +91 -0
  113. package/dist-types/commands/ListTagsForResourceCommand.d.ts +78 -0
  114. package/dist-types/commands/PredictQAppCommand.d.ts +209 -0
  115. package/dist-types/commands/StartQAppSessionCommand.d.ts +100 -0
  116. package/dist-types/commands/StopQAppSessionCommand.d.ts +84 -0
  117. package/dist-types/commands/TagResourceCommand.d.ts +81 -0
  118. package/dist-types/commands/UntagResourceCommand.d.ts +77 -0
  119. package/dist-types/commands/UpdateLibraryItemCommand.d.ts +100 -0
  120. package/dist-types/commands/UpdateQAppCommand.d.ts +216 -0
  121. package/dist-types/commands/UpdateQAppSessionCommand.d.ts +95 -0
  122. package/dist-types/commands/index.d.ts +23 -0
  123. package/dist-types/endpoint/EndpointParameters.d.ts +40 -0
  124. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  125. package/dist-types/endpoint/ruleset.d.ts +2 -0
  126. package/dist-types/extensionConfiguration.d.ts +9 -0
  127. package/dist-types/index.d.ts +22 -0
  128. package/dist-types/models/QAppsServiceException.d.ts +14 -0
  129. package/dist-types/models/index.d.ts +1 -0
  130. package/dist-types/models/models_0.d.ts +2138 -0
  131. package/dist-types/pagination/Interfaces.d.ts +8 -0
  132. package/dist-types/pagination/ListLibraryItemsPaginator.d.ts +7 -0
  133. package/dist-types/pagination/ListQAppsPaginator.d.ts +7 -0
  134. package/dist-types/pagination/index.d.ts +3 -0
  135. package/dist-types/protocols/Aws_restJson1.d.ts +209 -0
  136. package/dist-types/runtimeConfig.browser.d.ts +45 -0
  137. package/dist-types/runtimeConfig.d.ts +45 -0
  138. package/dist-types/runtimeConfig.native.d.ts +44 -0
  139. package/dist-types/runtimeConfig.shared.d.ts +21 -0
  140. package/dist-types/runtimeExtensions.d.ts +17 -0
  141. package/dist-types/ts3.4/QApps.d.ts +396 -0
  142. package/dist-types/ts3.4/QAppsClient.d.ts +258 -0
  143. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
  144. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +44 -0
  145. package/dist-types/ts3.4/commands/AssociateLibraryItemReviewCommand.d.ts +36 -0
  146. package/dist-types/ts3.4/commands/AssociateQAppWithUserCommand.d.ts +35 -0
  147. package/dist-types/ts3.4/commands/CreateLibraryItemCommand.d.ts +39 -0
  148. package/dist-types/ts3.4/commands/CreateQAppCommand.d.ts +36 -0
  149. package/dist-types/ts3.4/commands/DeleteLibraryItemCommand.d.ts +34 -0
  150. package/dist-types/ts3.4/commands/DeleteQAppCommand.d.ts +34 -0
  151. package/dist-types/ts3.4/commands/DisassociateLibraryItemReviewCommand.d.ts +36 -0
  152. package/dist-types/ts3.4/commands/DisassociateQAppFromUserCommand.d.ts +36 -0
  153. package/dist-types/ts3.4/commands/GetLibraryItemCommand.d.ts +36 -0
  154. package/dist-types/ts3.4/commands/GetQAppCommand.d.ts +30 -0
  155. package/dist-types/ts3.4/commands/GetQAppSessionCommand.d.ts +36 -0
  156. package/dist-types/ts3.4/commands/ImportDocumentCommand.d.ts +36 -0
  157. package/dist-types/ts3.4/commands/ListLibraryItemsCommand.d.ts +39 -0
  158. package/dist-types/ts3.4/commands/ListQAppsCommand.d.ts +36 -0
  159. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +40 -0
  160. package/dist-types/ts3.4/commands/PredictQAppCommand.d.ts +36 -0
  161. package/dist-types/ts3.4/commands/StartQAppSessionCommand.d.ts +39 -0
  162. package/dist-types/ts3.4/commands/StopQAppSessionCommand.d.ts +34 -0
  163. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +36 -0
  164. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +39 -0
  165. package/dist-types/ts3.4/commands/UpdateLibraryItemCommand.d.ts +39 -0
  166. package/dist-types/ts3.4/commands/UpdateQAppCommand.d.ts +36 -0
  167. package/dist-types/ts3.4/commands/UpdateQAppSessionCommand.d.ts +39 -0
  168. package/dist-types/ts3.4/commands/index.d.ts +23 -0
  169. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -0
  170. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  171. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  172. package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
  173. package/dist-types/ts3.4/index.d.ts +9 -0
  174. package/dist-types/ts3.4/models/QAppsServiceException.d.ts +9 -0
  175. package/dist-types/ts3.4/models/index.d.ts +1 -0
  176. package/dist-types/ts3.4/models/models_0.d.ts +681 -0
  177. package/dist-types/ts3.4/pagination/Interfaces.d.ts +5 -0
  178. package/dist-types/ts3.4/pagination/ListLibraryItemsPaginator.d.ts +11 -0
  179. package/dist-types/ts3.4/pagination/ListQAppsPaginator.d.ts +11 -0
  180. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  181. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +281 -0
  182. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +85 -0
  183. package/dist-types/ts3.4/runtimeConfig.d.ts +89 -0
  184. package/dist-types/ts3.4/runtimeConfig.native.d.ts +79 -0
  185. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +21 -0
  186. package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
  187. package/package.json +101 -0
@@ -0,0 +1,1207 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.de_UpdateQAppSessionCommand = exports.de_UpdateQAppCommand = exports.de_UpdateLibraryItemCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StopQAppSessionCommand = exports.de_StartQAppSessionCommand = exports.de_PredictQAppCommand = exports.de_ListTagsForResourceCommand = exports.de_ListQAppsCommand = exports.de_ListLibraryItemsCommand = exports.de_ImportDocumentCommand = exports.de_GetQAppSessionCommand = exports.de_GetQAppCommand = exports.de_GetLibraryItemCommand = exports.de_DisassociateQAppFromUserCommand = exports.de_DisassociateLibraryItemReviewCommand = exports.de_DeleteQAppCommand = exports.de_DeleteLibraryItemCommand = exports.de_CreateQAppCommand = exports.de_CreateLibraryItemCommand = exports.de_AssociateQAppWithUserCommand = exports.de_AssociateLibraryItemReviewCommand = exports.se_UpdateQAppSessionCommand = exports.se_UpdateQAppCommand = exports.se_UpdateLibraryItemCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StopQAppSessionCommand = exports.se_StartQAppSessionCommand = exports.se_PredictQAppCommand = exports.se_ListTagsForResourceCommand = exports.se_ListQAppsCommand = exports.se_ListLibraryItemsCommand = exports.se_ImportDocumentCommand = exports.se_GetQAppSessionCommand = exports.se_GetQAppCommand = exports.se_GetLibraryItemCommand = exports.se_DisassociateQAppFromUserCommand = exports.se_DisassociateLibraryItemReviewCommand = exports.se_DeleteQAppCommand = exports.se_DeleteLibraryItemCommand = exports.se_CreateQAppCommand = exports.se_CreateLibraryItemCommand = exports.se_AssociateQAppWithUserCommand = exports.se_AssociateLibraryItemReviewCommand = void 0;
4
+ const core_1 = require("@aws-sdk/core");
5
+ const core_2 = require("@smithy/core");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ const models_0_1 = require("../models/models_0");
8
+ const QAppsServiceException_1 = require("../models/QAppsServiceException");
9
+ const se_AssociateLibraryItemReviewCommand = async (input, context) => {
10
+ const b = (0, core_2.requestBuilder)(input, context);
11
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
12
+ "content-type": "application/json",
13
+ [_ii]: input[_iI],
14
+ });
15
+ b.bp("/catalog.associateItemRating");
16
+ let body;
17
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
18
+ libraryItemId: [],
19
+ }));
20
+ b.m("POST").h(headers).b(body);
21
+ return b.build();
22
+ };
23
+ exports.se_AssociateLibraryItemReviewCommand = se_AssociateLibraryItemReviewCommand;
24
+ const se_AssociateQAppWithUserCommand = async (input, context) => {
25
+ const b = (0, core_2.requestBuilder)(input, context);
26
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
27
+ "content-type": "application/json",
28
+ [_ii]: input[_iI],
29
+ });
30
+ b.bp("/apps.install");
31
+ let body;
32
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
33
+ appId: [],
34
+ }));
35
+ b.m("POST").h(headers).b(body);
36
+ return b.build();
37
+ };
38
+ exports.se_AssociateQAppWithUserCommand = se_AssociateQAppWithUserCommand;
39
+ const se_CreateLibraryItemCommand = async (input, context) => {
40
+ const b = (0, core_2.requestBuilder)(input, context);
41
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
42
+ "content-type": "application/json",
43
+ [_ii]: input[_iI],
44
+ });
45
+ b.bp("/catalog.createItem");
46
+ let body;
47
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
48
+ appId: [],
49
+ appVersion: [],
50
+ categories: (_) => (0, smithy_client_1._json)(_),
51
+ }));
52
+ b.m("POST").h(headers).b(body);
53
+ return b.build();
54
+ };
55
+ exports.se_CreateLibraryItemCommand = se_CreateLibraryItemCommand;
56
+ const se_CreateQAppCommand = async (input, context) => {
57
+ const b = (0, core_2.requestBuilder)(input, context);
58
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
59
+ "content-type": "application/json",
60
+ [_ii]: input[_iI],
61
+ });
62
+ b.bp("/apps.create");
63
+ let body;
64
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
65
+ appDefinition: (_) => se_AppDefinitionInput(_, context),
66
+ description: [],
67
+ tags: (_) => (0, smithy_client_1._json)(_),
68
+ title: [],
69
+ }));
70
+ b.m("POST").h(headers).b(body);
71
+ return b.build();
72
+ };
73
+ exports.se_CreateQAppCommand = se_CreateQAppCommand;
74
+ const se_DeleteLibraryItemCommand = async (input, context) => {
75
+ const b = (0, core_2.requestBuilder)(input, context);
76
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
77
+ "content-type": "application/json",
78
+ [_ii]: input[_iI],
79
+ });
80
+ b.bp("/catalog.deleteItem");
81
+ let body;
82
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
83
+ libraryItemId: [],
84
+ }));
85
+ b.m("POST").h(headers).b(body);
86
+ return b.build();
87
+ };
88
+ exports.se_DeleteLibraryItemCommand = se_DeleteLibraryItemCommand;
89
+ const se_DeleteQAppCommand = async (input, context) => {
90
+ const b = (0, core_2.requestBuilder)(input, context);
91
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
92
+ "content-type": "application/json",
93
+ [_ii]: input[_iI],
94
+ });
95
+ b.bp("/apps.delete");
96
+ let body;
97
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
98
+ appId: [],
99
+ }));
100
+ b.m("POST").h(headers).b(body);
101
+ return b.build();
102
+ };
103
+ exports.se_DeleteQAppCommand = se_DeleteQAppCommand;
104
+ const se_DisassociateLibraryItemReviewCommand = async (input, context) => {
105
+ const b = (0, core_2.requestBuilder)(input, context);
106
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
107
+ "content-type": "application/json",
108
+ [_ii]: input[_iI],
109
+ });
110
+ b.bp("/catalog.disassociateItemRating");
111
+ let body;
112
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
113
+ libraryItemId: [],
114
+ }));
115
+ b.m("POST").h(headers).b(body);
116
+ return b.build();
117
+ };
118
+ exports.se_DisassociateLibraryItemReviewCommand = se_DisassociateLibraryItemReviewCommand;
119
+ const se_DisassociateQAppFromUserCommand = async (input, context) => {
120
+ const b = (0, core_2.requestBuilder)(input, context);
121
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
122
+ "content-type": "application/json",
123
+ [_ii]: input[_iI],
124
+ });
125
+ b.bp("/apps.uninstall");
126
+ let body;
127
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
128
+ appId: [],
129
+ }));
130
+ b.m("POST").h(headers).b(body);
131
+ return b.build();
132
+ };
133
+ exports.se_DisassociateQAppFromUserCommand = se_DisassociateQAppFromUserCommand;
134
+ const se_GetLibraryItemCommand = async (input, context) => {
135
+ const b = (0, core_2.requestBuilder)(input, context);
136
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
137
+ [_ii]: input[_iI],
138
+ });
139
+ b.bp("/catalog.getItem");
140
+ const query = (0, smithy_client_1.map)({
141
+ [_lII]: [, (0, smithy_client_1.expectNonNull)(input[_lII], `libraryItemId`)],
142
+ [_aI]: [, input[_aI]],
143
+ });
144
+ let body;
145
+ b.m("GET").h(headers).q(query).b(body);
146
+ return b.build();
147
+ };
148
+ exports.se_GetLibraryItemCommand = se_GetLibraryItemCommand;
149
+ const se_GetQAppCommand = async (input, context) => {
150
+ const b = (0, core_2.requestBuilder)(input, context);
151
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
152
+ [_ii]: input[_iI],
153
+ });
154
+ b.bp("/apps.get");
155
+ const query = (0, smithy_client_1.map)({
156
+ [_aI]: [, (0, smithy_client_1.expectNonNull)(input[_aI], `appId`)],
157
+ });
158
+ let body;
159
+ b.m("GET").h(headers).q(query).b(body);
160
+ return b.build();
161
+ };
162
+ exports.se_GetQAppCommand = se_GetQAppCommand;
163
+ const se_GetQAppSessionCommand = async (input, context) => {
164
+ const b = (0, core_2.requestBuilder)(input, context);
165
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
166
+ [_ii]: input[_iI],
167
+ });
168
+ b.bp("/runtime.getQAppSession");
169
+ const query = (0, smithy_client_1.map)({
170
+ [_sI]: [, (0, smithy_client_1.expectNonNull)(input[_sI], `sessionId`)],
171
+ });
172
+ let body;
173
+ b.m("GET").h(headers).q(query).b(body);
174
+ return b.build();
175
+ };
176
+ exports.se_GetQAppSessionCommand = se_GetQAppSessionCommand;
177
+ const se_ImportDocumentCommand = async (input, context) => {
178
+ const b = (0, core_2.requestBuilder)(input, context);
179
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
180
+ "content-type": "application/json",
181
+ [_ii]: input[_iI],
182
+ });
183
+ b.bp("/apps.importDocument");
184
+ let body;
185
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
186
+ appId: [],
187
+ cardId: [],
188
+ fileContentsBase64: [],
189
+ fileName: [],
190
+ scope: [],
191
+ sessionId: [],
192
+ }));
193
+ b.m("POST").h(headers).b(body);
194
+ return b.build();
195
+ };
196
+ exports.se_ImportDocumentCommand = se_ImportDocumentCommand;
197
+ const se_ListLibraryItemsCommand = async (input, context) => {
198
+ const b = (0, core_2.requestBuilder)(input, context);
199
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
200
+ [_ii]: input[_iI],
201
+ });
202
+ b.bp("/catalog.list");
203
+ const query = (0, smithy_client_1.map)({
204
+ [_l]: [() => input.limit !== void 0, () => input[_l].toString()],
205
+ [_nT]: [, input[_nT]],
206
+ [_cI]: [, input[_cI]],
207
+ });
208
+ let body;
209
+ b.m("GET").h(headers).q(query).b(body);
210
+ return b.build();
211
+ };
212
+ exports.se_ListLibraryItemsCommand = se_ListLibraryItemsCommand;
213
+ const se_ListQAppsCommand = async (input, context) => {
214
+ const b = (0, core_2.requestBuilder)(input, context);
215
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
216
+ [_ii]: input[_iI],
217
+ });
218
+ b.bp("/apps.list");
219
+ const query = (0, smithy_client_1.map)({
220
+ [_l]: [() => input.limit !== void 0, () => input[_l].toString()],
221
+ [_nT]: [, input[_nT]],
222
+ });
223
+ let body;
224
+ b.m("GET").h(headers).q(query).b(body);
225
+ return b.build();
226
+ };
227
+ exports.se_ListQAppsCommand = se_ListQAppsCommand;
228
+ const se_ListTagsForResourceCommand = async (input, context) => {
229
+ const b = (0, core_2.requestBuilder)(input, context);
230
+ const headers = {};
231
+ b.bp("/tags/{resourceARN}");
232
+ b.p("resourceARN", () => input.resourceARN, "{resourceARN}", false);
233
+ let body;
234
+ b.m("GET").h(headers).b(body);
235
+ return b.build();
236
+ };
237
+ exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
238
+ const se_PredictQAppCommand = async (input, context) => {
239
+ const b = (0, core_2.requestBuilder)(input, context);
240
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
241
+ "content-type": "application/json",
242
+ [_ii]: input[_iI],
243
+ });
244
+ b.bp("/apps.predictQApp");
245
+ let body;
246
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
247
+ options: (_) => (0, smithy_client_1._json)(_),
248
+ }));
249
+ b.m("POST").h(headers).b(body);
250
+ return b.build();
251
+ };
252
+ exports.se_PredictQAppCommand = se_PredictQAppCommand;
253
+ const se_StartQAppSessionCommand = async (input, context) => {
254
+ const b = (0, core_2.requestBuilder)(input, context);
255
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
256
+ "content-type": "application/json",
257
+ [_ii]: input[_iI],
258
+ });
259
+ b.bp("/runtime.startQAppSession");
260
+ let body;
261
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
262
+ appId: [],
263
+ appVersion: [],
264
+ initialValues: (_) => (0, smithy_client_1._json)(_),
265
+ tags: (_) => (0, smithy_client_1._json)(_),
266
+ }));
267
+ b.m("POST").h(headers).b(body);
268
+ return b.build();
269
+ };
270
+ exports.se_StartQAppSessionCommand = se_StartQAppSessionCommand;
271
+ const se_StopQAppSessionCommand = async (input, context) => {
272
+ const b = (0, core_2.requestBuilder)(input, context);
273
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
274
+ "content-type": "application/json",
275
+ [_ii]: input[_iI],
276
+ });
277
+ b.bp("/runtime.deleteMiniAppRun");
278
+ let body;
279
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
280
+ sessionId: [],
281
+ }));
282
+ b.m("POST").h(headers).b(body);
283
+ return b.build();
284
+ };
285
+ exports.se_StopQAppSessionCommand = se_StopQAppSessionCommand;
286
+ const se_TagResourceCommand = async (input, context) => {
287
+ const b = (0, core_2.requestBuilder)(input, context);
288
+ const headers = {
289
+ "content-type": "application/json",
290
+ };
291
+ b.bp("/tags/{resourceARN}");
292
+ b.p("resourceARN", () => input.resourceARN, "{resourceARN}", false);
293
+ let body;
294
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
295
+ tags: (_) => (0, smithy_client_1._json)(_),
296
+ }));
297
+ b.m("POST").h(headers).b(body);
298
+ return b.build();
299
+ };
300
+ exports.se_TagResourceCommand = se_TagResourceCommand;
301
+ const se_UntagResourceCommand = async (input, context) => {
302
+ const b = (0, core_2.requestBuilder)(input, context);
303
+ const headers = {};
304
+ b.bp("/tags/{resourceARN}");
305
+ b.p("resourceARN", () => input.resourceARN, "{resourceARN}", false);
306
+ const query = (0, smithy_client_1.map)({
307
+ [_tK]: [
308
+ (0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
309
+ () => (input[_tK] || []).map((_entry) => _entry),
310
+ ],
311
+ });
312
+ let body;
313
+ b.m("DELETE").h(headers).q(query).b(body);
314
+ return b.build();
315
+ };
316
+ exports.se_UntagResourceCommand = se_UntagResourceCommand;
317
+ const se_UpdateLibraryItemCommand = async (input, context) => {
318
+ const b = (0, core_2.requestBuilder)(input, context);
319
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
320
+ "content-type": "application/json",
321
+ [_ii]: input[_iI],
322
+ });
323
+ b.bp("/catalog.updateItem");
324
+ let body;
325
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
326
+ categories: (_) => (0, smithy_client_1._json)(_),
327
+ libraryItemId: [],
328
+ status: [],
329
+ }));
330
+ b.m("POST").h(headers).b(body);
331
+ return b.build();
332
+ };
333
+ exports.se_UpdateLibraryItemCommand = se_UpdateLibraryItemCommand;
334
+ const se_UpdateQAppCommand = async (input, context) => {
335
+ const b = (0, core_2.requestBuilder)(input, context);
336
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
337
+ "content-type": "application/json",
338
+ [_ii]: input[_iI],
339
+ });
340
+ b.bp("/apps.update");
341
+ let body;
342
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
343
+ appDefinition: (_) => se_AppDefinitionInput(_, context),
344
+ appId: [],
345
+ description: [],
346
+ title: [],
347
+ }));
348
+ b.m("POST").h(headers).b(body);
349
+ return b.build();
350
+ };
351
+ exports.se_UpdateQAppCommand = se_UpdateQAppCommand;
352
+ const se_UpdateQAppSessionCommand = async (input, context) => {
353
+ const b = (0, core_2.requestBuilder)(input, context);
354
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
355
+ "content-type": "application/json",
356
+ [_ii]: input[_iI],
357
+ });
358
+ b.bp("/runtime.updateQAppSession");
359
+ let body;
360
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
361
+ sessionId: [],
362
+ values: (_) => (0, smithy_client_1._json)(_),
363
+ }));
364
+ b.m("POST").h(headers).b(body);
365
+ return b.build();
366
+ };
367
+ exports.se_UpdateQAppSessionCommand = se_UpdateQAppSessionCommand;
368
+ const de_AssociateLibraryItemReviewCommand = async (output, context) => {
369
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
370
+ return de_CommandError(output, context);
371
+ }
372
+ const contents = (0, smithy_client_1.map)({
373
+ $metadata: deserializeMetadata(output),
374
+ });
375
+ await (0, smithy_client_1.collectBody)(output.body, context);
376
+ return contents;
377
+ };
378
+ exports.de_AssociateLibraryItemReviewCommand = de_AssociateLibraryItemReviewCommand;
379
+ const de_AssociateQAppWithUserCommand = async (output, context) => {
380
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
381
+ return de_CommandError(output, context);
382
+ }
383
+ const contents = (0, smithy_client_1.map)({
384
+ $metadata: deserializeMetadata(output),
385
+ });
386
+ await (0, smithy_client_1.collectBody)(output.body, context);
387
+ return contents;
388
+ };
389
+ exports.de_AssociateQAppWithUserCommand = de_AssociateQAppWithUserCommand;
390
+ const de_CreateLibraryItemCommand = async (output, context) => {
391
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
392
+ return de_CommandError(output, context);
393
+ }
394
+ const contents = (0, smithy_client_1.map)({
395
+ $metadata: deserializeMetadata(output),
396
+ });
397
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
398
+ const doc = (0, smithy_client_1.take)(data, {
399
+ createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
400
+ createdBy: smithy_client_1.expectString,
401
+ libraryItemId: smithy_client_1.expectString,
402
+ ratingCount: smithy_client_1.expectInt32,
403
+ status: smithy_client_1.expectString,
404
+ updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
405
+ updatedBy: smithy_client_1.expectString,
406
+ });
407
+ Object.assign(contents, doc);
408
+ return contents;
409
+ };
410
+ exports.de_CreateLibraryItemCommand = de_CreateLibraryItemCommand;
411
+ const de_CreateQAppCommand = async (output, context) => {
412
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
413
+ return de_CommandError(output, context);
414
+ }
415
+ const contents = (0, smithy_client_1.map)({
416
+ $metadata: deserializeMetadata(output),
417
+ });
418
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
419
+ const doc = (0, smithy_client_1.take)(data, {
420
+ appArn: smithy_client_1.expectString,
421
+ appId: smithy_client_1.expectString,
422
+ appVersion: smithy_client_1.expectInt32,
423
+ createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
424
+ createdBy: smithy_client_1.expectString,
425
+ description: smithy_client_1.expectString,
426
+ initialPrompt: smithy_client_1.expectString,
427
+ requiredCapabilities: smithy_client_1._json,
428
+ status: smithy_client_1.expectString,
429
+ title: smithy_client_1.expectString,
430
+ updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
431
+ updatedBy: smithy_client_1.expectString,
432
+ });
433
+ Object.assign(contents, doc);
434
+ return contents;
435
+ };
436
+ exports.de_CreateQAppCommand = de_CreateQAppCommand;
437
+ const de_DeleteLibraryItemCommand = async (output, context) => {
438
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
439
+ return de_CommandError(output, context);
440
+ }
441
+ const contents = (0, smithy_client_1.map)({
442
+ $metadata: deserializeMetadata(output),
443
+ });
444
+ await (0, smithy_client_1.collectBody)(output.body, context);
445
+ return contents;
446
+ };
447
+ exports.de_DeleteLibraryItemCommand = de_DeleteLibraryItemCommand;
448
+ const de_DeleteQAppCommand = async (output, context) => {
449
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
450
+ return de_CommandError(output, context);
451
+ }
452
+ const contents = (0, smithy_client_1.map)({
453
+ $metadata: deserializeMetadata(output),
454
+ });
455
+ await (0, smithy_client_1.collectBody)(output.body, context);
456
+ return contents;
457
+ };
458
+ exports.de_DeleteQAppCommand = de_DeleteQAppCommand;
459
+ const de_DisassociateLibraryItemReviewCommand = async (output, context) => {
460
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
461
+ return de_CommandError(output, context);
462
+ }
463
+ const contents = (0, smithy_client_1.map)({
464
+ $metadata: deserializeMetadata(output),
465
+ });
466
+ await (0, smithy_client_1.collectBody)(output.body, context);
467
+ return contents;
468
+ };
469
+ exports.de_DisassociateLibraryItemReviewCommand = de_DisassociateLibraryItemReviewCommand;
470
+ const de_DisassociateQAppFromUserCommand = async (output, context) => {
471
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
472
+ return de_CommandError(output, context);
473
+ }
474
+ const contents = (0, smithy_client_1.map)({
475
+ $metadata: deserializeMetadata(output),
476
+ });
477
+ await (0, smithy_client_1.collectBody)(output.body, context);
478
+ return contents;
479
+ };
480
+ exports.de_DisassociateQAppFromUserCommand = de_DisassociateQAppFromUserCommand;
481
+ const de_GetLibraryItemCommand = async (output, context) => {
482
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
483
+ return de_CommandError(output, context);
484
+ }
485
+ const contents = (0, smithy_client_1.map)({
486
+ $metadata: deserializeMetadata(output),
487
+ });
488
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
489
+ const doc = (0, smithy_client_1.take)(data, {
490
+ appId: smithy_client_1.expectString,
491
+ appVersion: smithy_client_1.expectInt32,
492
+ categories: smithy_client_1._json,
493
+ createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
494
+ createdBy: smithy_client_1.expectString,
495
+ isRatedByUser: smithy_client_1.expectBoolean,
496
+ libraryItemId: smithy_client_1.expectString,
497
+ ratingCount: smithy_client_1.expectInt32,
498
+ status: smithy_client_1.expectString,
499
+ updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
500
+ updatedBy: smithy_client_1.expectString,
501
+ userCount: smithy_client_1.expectInt32,
502
+ });
503
+ Object.assign(contents, doc);
504
+ return contents;
505
+ };
506
+ exports.de_GetLibraryItemCommand = de_GetLibraryItemCommand;
507
+ const de_GetQAppCommand = async (output, context) => {
508
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
509
+ return de_CommandError(output, context);
510
+ }
511
+ const contents = (0, smithy_client_1.map)({
512
+ $metadata: deserializeMetadata(output),
513
+ });
514
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
515
+ const doc = (0, smithy_client_1.take)(data, {
516
+ appArn: smithy_client_1.expectString,
517
+ appDefinition: (_) => de_AppDefinition(_, context),
518
+ appId: smithy_client_1.expectString,
519
+ appVersion: smithy_client_1.expectInt32,
520
+ createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
521
+ createdBy: smithy_client_1.expectString,
522
+ description: smithy_client_1.expectString,
523
+ initialPrompt: smithy_client_1.expectString,
524
+ requiredCapabilities: smithy_client_1._json,
525
+ status: smithy_client_1.expectString,
526
+ title: smithy_client_1.expectString,
527
+ updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
528
+ updatedBy: smithy_client_1.expectString,
529
+ });
530
+ Object.assign(contents, doc);
531
+ return contents;
532
+ };
533
+ exports.de_GetQAppCommand = de_GetQAppCommand;
534
+ const de_GetQAppSessionCommand = async (output, context) => {
535
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
536
+ return de_CommandError(output, context);
537
+ }
538
+ const contents = (0, smithy_client_1.map)({
539
+ $metadata: deserializeMetadata(output),
540
+ });
541
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
542
+ const doc = (0, smithy_client_1.take)(data, {
543
+ cardStatus: smithy_client_1._json,
544
+ sessionArn: smithy_client_1.expectString,
545
+ sessionId: smithy_client_1.expectString,
546
+ status: smithy_client_1.expectString,
547
+ });
548
+ Object.assign(contents, doc);
549
+ return contents;
550
+ };
551
+ exports.de_GetQAppSessionCommand = de_GetQAppSessionCommand;
552
+ const de_ImportDocumentCommand = async (output, context) => {
553
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
554
+ return de_CommandError(output, context);
555
+ }
556
+ const contents = (0, smithy_client_1.map)({
557
+ $metadata: deserializeMetadata(output),
558
+ });
559
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
560
+ const doc = (0, smithy_client_1.take)(data, {
561
+ fileId: smithy_client_1.expectString,
562
+ });
563
+ Object.assign(contents, doc);
564
+ return contents;
565
+ };
566
+ exports.de_ImportDocumentCommand = de_ImportDocumentCommand;
567
+ const de_ListLibraryItemsCommand = async (output, context) => {
568
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
569
+ return de_CommandError(output, context);
570
+ }
571
+ const contents = (0, smithy_client_1.map)({
572
+ $metadata: deserializeMetadata(output),
573
+ });
574
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
575
+ const doc = (0, smithy_client_1.take)(data, {
576
+ libraryItems: (_) => de_LibraryItemList(_, context),
577
+ nextToken: smithy_client_1.expectString,
578
+ });
579
+ Object.assign(contents, doc);
580
+ return contents;
581
+ };
582
+ exports.de_ListLibraryItemsCommand = de_ListLibraryItemsCommand;
583
+ const de_ListQAppsCommand = async (output, context) => {
584
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
585
+ return de_CommandError(output, context);
586
+ }
587
+ const contents = (0, smithy_client_1.map)({
588
+ $metadata: deserializeMetadata(output),
589
+ });
590
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
591
+ const doc = (0, smithy_client_1.take)(data, {
592
+ apps: (_) => de_UserAppsList(_, context),
593
+ nextToken: smithy_client_1.expectString,
594
+ });
595
+ Object.assign(contents, doc);
596
+ return contents;
597
+ };
598
+ exports.de_ListQAppsCommand = de_ListQAppsCommand;
599
+ const de_ListTagsForResourceCommand = async (output, context) => {
600
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
601
+ return de_CommandError(output, context);
602
+ }
603
+ const contents = (0, smithy_client_1.map)({
604
+ $metadata: deserializeMetadata(output),
605
+ });
606
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
607
+ const doc = (0, smithy_client_1.take)(data, {
608
+ tags: smithy_client_1._json,
609
+ });
610
+ Object.assign(contents, doc);
611
+ return contents;
612
+ };
613
+ exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
614
+ const de_PredictQAppCommand = async (output, context) => {
615
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
616
+ return de_CommandError(output, context);
617
+ }
618
+ const contents = (0, smithy_client_1.map)({
619
+ $metadata: deserializeMetadata(output),
620
+ });
621
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
622
+ const doc = (0, smithy_client_1.take)(data, {
623
+ app: (_) => de_PredictAppDefinition(_, context),
624
+ problemStatement: smithy_client_1.expectString,
625
+ });
626
+ Object.assign(contents, doc);
627
+ return contents;
628
+ };
629
+ exports.de_PredictQAppCommand = de_PredictQAppCommand;
630
+ const de_StartQAppSessionCommand = async (output, context) => {
631
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
632
+ return de_CommandError(output, context);
633
+ }
634
+ const contents = (0, smithy_client_1.map)({
635
+ $metadata: deserializeMetadata(output),
636
+ });
637
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
638
+ const doc = (0, smithy_client_1.take)(data, {
639
+ sessionArn: smithy_client_1.expectString,
640
+ sessionId: smithy_client_1.expectString,
641
+ });
642
+ Object.assign(contents, doc);
643
+ return contents;
644
+ };
645
+ exports.de_StartQAppSessionCommand = de_StartQAppSessionCommand;
646
+ const de_StopQAppSessionCommand = async (output, context) => {
647
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
648
+ return de_CommandError(output, context);
649
+ }
650
+ const contents = (0, smithy_client_1.map)({
651
+ $metadata: deserializeMetadata(output),
652
+ });
653
+ await (0, smithy_client_1.collectBody)(output.body, context);
654
+ return contents;
655
+ };
656
+ exports.de_StopQAppSessionCommand = de_StopQAppSessionCommand;
657
+ const de_TagResourceCommand = async (output, context) => {
658
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
659
+ return de_CommandError(output, context);
660
+ }
661
+ const contents = (0, smithy_client_1.map)({
662
+ $metadata: deserializeMetadata(output),
663
+ });
664
+ await (0, smithy_client_1.collectBody)(output.body, context);
665
+ return contents;
666
+ };
667
+ exports.de_TagResourceCommand = de_TagResourceCommand;
668
+ const de_UntagResourceCommand = async (output, context) => {
669
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
670
+ return de_CommandError(output, context);
671
+ }
672
+ const contents = (0, smithy_client_1.map)({
673
+ $metadata: deserializeMetadata(output),
674
+ });
675
+ await (0, smithy_client_1.collectBody)(output.body, context);
676
+ return contents;
677
+ };
678
+ exports.de_UntagResourceCommand = de_UntagResourceCommand;
679
+ const de_UpdateLibraryItemCommand = async (output, context) => {
680
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
681
+ return de_CommandError(output, context);
682
+ }
683
+ const contents = (0, smithy_client_1.map)({
684
+ $metadata: deserializeMetadata(output),
685
+ });
686
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
687
+ const doc = (0, smithy_client_1.take)(data, {
688
+ appId: smithy_client_1.expectString,
689
+ appVersion: smithy_client_1.expectInt32,
690
+ categories: smithy_client_1._json,
691
+ createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
692
+ createdBy: smithy_client_1.expectString,
693
+ isRatedByUser: smithy_client_1.expectBoolean,
694
+ libraryItemId: smithy_client_1.expectString,
695
+ ratingCount: smithy_client_1.expectInt32,
696
+ status: smithy_client_1.expectString,
697
+ updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
698
+ updatedBy: smithy_client_1.expectString,
699
+ userCount: smithy_client_1.expectInt32,
700
+ });
701
+ Object.assign(contents, doc);
702
+ return contents;
703
+ };
704
+ exports.de_UpdateLibraryItemCommand = de_UpdateLibraryItemCommand;
705
+ const de_UpdateQAppCommand = async (output, context) => {
706
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
707
+ return de_CommandError(output, context);
708
+ }
709
+ const contents = (0, smithy_client_1.map)({
710
+ $metadata: deserializeMetadata(output),
711
+ });
712
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
713
+ const doc = (0, smithy_client_1.take)(data, {
714
+ appArn: smithy_client_1.expectString,
715
+ appId: smithy_client_1.expectString,
716
+ appVersion: smithy_client_1.expectInt32,
717
+ createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
718
+ createdBy: smithy_client_1.expectString,
719
+ description: smithy_client_1.expectString,
720
+ initialPrompt: smithy_client_1.expectString,
721
+ requiredCapabilities: smithy_client_1._json,
722
+ status: smithy_client_1.expectString,
723
+ title: smithy_client_1.expectString,
724
+ updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
725
+ updatedBy: smithy_client_1.expectString,
726
+ });
727
+ Object.assign(contents, doc);
728
+ return contents;
729
+ };
730
+ exports.de_UpdateQAppCommand = de_UpdateQAppCommand;
731
+ const de_UpdateQAppSessionCommand = async (output, context) => {
732
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
733
+ return de_CommandError(output, context);
734
+ }
735
+ const contents = (0, smithy_client_1.map)({
736
+ $metadata: deserializeMetadata(output),
737
+ });
738
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
739
+ const doc = (0, smithy_client_1.take)(data, {
740
+ sessionArn: smithy_client_1.expectString,
741
+ sessionId: smithy_client_1.expectString,
742
+ });
743
+ Object.assign(contents, doc);
744
+ return contents;
745
+ };
746
+ exports.de_UpdateQAppSessionCommand = de_UpdateQAppSessionCommand;
747
+ const de_CommandError = async (output, context) => {
748
+ const parsedOutput = {
749
+ ...output,
750
+ body: await (0, core_1.parseJsonErrorBody)(output.body, context),
751
+ };
752
+ const errorCode = (0, core_1.loadRestJsonErrorCode)(output, parsedOutput.body);
753
+ switch (errorCode) {
754
+ case "AccessDeniedException":
755
+ case "com.amazonaws.qapps#AccessDeniedException":
756
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
757
+ case "InternalServerException":
758
+ case "com.amazonaws.qapps#InternalServerException":
759
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
760
+ case "ResourceNotFoundException":
761
+ case "com.amazonaws.qapps#ResourceNotFoundException":
762
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
763
+ case "ServiceQuotaExceededException":
764
+ case "com.amazonaws.qapps#ServiceQuotaExceededException":
765
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
766
+ case "ThrottlingException":
767
+ case "com.amazonaws.qapps#ThrottlingException":
768
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
769
+ case "UnauthorizedException":
770
+ case "com.amazonaws.qapps#UnauthorizedException":
771
+ throw await de_UnauthorizedExceptionRes(parsedOutput, context);
772
+ case "ValidationException":
773
+ case "com.amazonaws.qapps#ValidationException":
774
+ throw await de_ValidationExceptionRes(parsedOutput, context);
775
+ case "ConflictException":
776
+ case "com.amazonaws.qapps#ConflictException":
777
+ throw await de_ConflictExceptionRes(parsedOutput, context);
778
+ case "ContentTooLargeException":
779
+ case "com.amazonaws.qapps#ContentTooLargeException":
780
+ throw await de_ContentTooLargeExceptionRes(parsedOutput, context);
781
+ default:
782
+ const parsedBody = parsedOutput.body;
783
+ return throwDefaultError({
784
+ output,
785
+ parsedBody,
786
+ errorCode,
787
+ });
788
+ }
789
+ };
790
+ const throwDefaultError = (0, smithy_client_1.withBaseException)(QAppsServiceException_1.QAppsServiceException);
791
+ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
792
+ const contents = (0, smithy_client_1.map)({});
793
+ const data = parsedOutput.body;
794
+ const doc = (0, smithy_client_1.take)(data, {
795
+ message: smithy_client_1.expectString,
796
+ });
797
+ Object.assign(contents, doc);
798
+ const exception = new models_0_1.AccessDeniedException({
799
+ $metadata: deserializeMetadata(parsedOutput),
800
+ ...contents,
801
+ });
802
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
803
+ };
804
+ const de_ConflictExceptionRes = async (parsedOutput, context) => {
805
+ const contents = (0, smithy_client_1.map)({});
806
+ const data = parsedOutput.body;
807
+ const doc = (0, smithy_client_1.take)(data, {
808
+ message: smithy_client_1.expectString,
809
+ resourceId: smithy_client_1.expectString,
810
+ resourceType: smithy_client_1.expectString,
811
+ });
812
+ Object.assign(contents, doc);
813
+ const exception = new models_0_1.ConflictException({
814
+ $metadata: deserializeMetadata(parsedOutput),
815
+ ...contents,
816
+ });
817
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
818
+ };
819
+ const de_ContentTooLargeExceptionRes = async (parsedOutput, context) => {
820
+ const contents = (0, smithy_client_1.map)({});
821
+ const data = parsedOutput.body;
822
+ const doc = (0, smithy_client_1.take)(data, {
823
+ message: smithy_client_1.expectString,
824
+ resourceId: smithy_client_1.expectString,
825
+ resourceType: smithy_client_1.expectString,
826
+ });
827
+ Object.assign(contents, doc);
828
+ const exception = new models_0_1.ContentTooLargeException({
829
+ $metadata: deserializeMetadata(parsedOutput),
830
+ ...contents,
831
+ });
832
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
833
+ };
834
+ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
835
+ const contents = (0, smithy_client_1.map)({
836
+ [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers[_ra])],
837
+ });
838
+ const data = parsedOutput.body;
839
+ const doc = (0, smithy_client_1.take)(data, {
840
+ message: smithy_client_1.expectString,
841
+ });
842
+ Object.assign(contents, doc);
843
+ const exception = new models_0_1.InternalServerException({
844
+ $metadata: deserializeMetadata(parsedOutput),
845
+ ...contents,
846
+ });
847
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
848
+ };
849
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
850
+ const contents = (0, smithy_client_1.map)({});
851
+ const data = parsedOutput.body;
852
+ const doc = (0, smithy_client_1.take)(data, {
853
+ message: smithy_client_1.expectString,
854
+ resourceId: smithy_client_1.expectString,
855
+ resourceType: smithy_client_1.expectString,
856
+ });
857
+ Object.assign(contents, doc);
858
+ const exception = new models_0_1.ResourceNotFoundException({
859
+ $metadata: deserializeMetadata(parsedOutput),
860
+ ...contents,
861
+ });
862
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
863
+ };
864
+ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
865
+ const contents = (0, smithy_client_1.map)({});
866
+ const data = parsedOutput.body;
867
+ const doc = (0, smithy_client_1.take)(data, {
868
+ message: smithy_client_1.expectString,
869
+ quotaCode: smithy_client_1.expectString,
870
+ resourceId: smithy_client_1.expectString,
871
+ resourceType: smithy_client_1.expectString,
872
+ serviceCode: smithy_client_1.expectString,
873
+ });
874
+ Object.assign(contents, doc);
875
+ const exception = new models_0_1.ServiceQuotaExceededException({
876
+ $metadata: deserializeMetadata(parsedOutput),
877
+ ...contents,
878
+ });
879
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
880
+ };
881
+ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
882
+ const contents = (0, smithy_client_1.map)({
883
+ [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers[_ra])],
884
+ });
885
+ const data = parsedOutput.body;
886
+ const doc = (0, smithy_client_1.take)(data, {
887
+ message: smithy_client_1.expectString,
888
+ quotaCode: smithy_client_1.expectString,
889
+ serviceCode: smithy_client_1.expectString,
890
+ });
891
+ Object.assign(contents, doc);
892
+ const exception = new models_0_1.ThrottlingException({
893
+ $metadata: deserializeMetadata(parsedOutput),
894
+ ...contents,
895
+ });
896
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
897
+ };
898
+ const de_UnauthorizedExceptionRes = async (parsedOutput, context) => {
899
+ const contents = (0, smithy_client_1.map)({});
900
+ const data = parsedOutput.body;
901
+ const doc = (0, smithy_client_1.take)(data, {
902
+ message: smithy_client_1.expectString,
903
+ });
904
+ Object.assign(contents, doc);
905
+ const exception = new models_0_1.UnauthorizedException({
906
+ $metadata: deserializeMetadata(parsedOutput),
907
+ ...contents,
908
+ });
909
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
910
+ };
911
+ const de_ValidationExceptionRes = async (parsedOutput, context) => {
912
+ const contents = (0, smithy_client_1.map)({});
913
+ const data = parsedOutput.body;
914
+ const doc = (0, smithy_client_1.take)(data, {
915
+ message: smithy_client_1.expectString,
916
+ });
917
+ Object.assign(contents, doc);
918
+ const exception = new models_0_1.ValidationException({
919
+ $metadata: deserializeMetadata(parsedOutput),
920
+ ...contents,
921
+ });
922
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
923
+ };
924
+ const se_AppDefinitionInput = (input, context) => {
925
+ return (0, smithy_client_1.take)(input, {
926
+ cards: (_) => se_CardList(_, context),
927
+ initialPrompt: [],
928
+ });
929
+ };
930
+ const se_AttributeFilter = (input, context) => {
931
+ return (0, smithy_client_1.take)(input, {
932
+ andAllFilters: (_) => se_AttributeFilters(_, context),
933
+ containsAll: (_) => se_DocumentAttribute(_, context),
934
+ containsAny: (_) => se_DocumentAttribute(_, context),
935
+ equalsTo: (_) => se_DocumentAttribute(_, context),
936
+ greaterThan: (_) => se_DocumentAttribute(_, context),
937
+ greaterThanOrEquals: (_) => se_DocumentAttribute(_, context),
938
+ lessThan: (_) => se_DocumentAttribute(_, context),
939
+ lessThanOrEquals: (_) => se_DocumentAttribute(_, context),
940
+ notFilter: (_) => se_AttributeFilter(_, context),
941
+ orAllFilters: (_) => se_AttributeFilters(_, context),
942
+ });
943
+ };
944
+ const se_AttributeFilters = (input, context) => {
945
+ return input
946
+ .filter((e) => e != null)
947
+ .map((entry) => {
948
+ return se_AttributeFilter(entry, context);
949
+ });
950
+ };
951
+ const se_CardInput = (input, context) => {
952
+ return models_0_1.CardInput.visit(input, {
953
+ fileUpload: (value) => ({ fileUpload: (0, smithy_client_1._json)(value) }),
954
+ qPlugin: (value) => ({ qPlugin: (0, smithy_client_1._json)(value) }),
955
+ qQuery: (value) => ({ qQuery: se_QQueryCardInput(value, context) }),
956
+ textInput: (value) => ({ textInput: (0, smithy_client_1._json)(value) }),
957
+ _: (name, value) => ({ name: value }),
958
+ });
959
+ };
960
+ const se_CardList = (input, context) => {
961
+ return input
962
+ .filter((e) => e != null)
963
+ .map((entry) => {
964
+ return se_CardInput(entry, context);
965
+ });
966
+ };
967
+ const se_DocumentAttribute = (input, context) => {
968
+ return (0, smithy_client_1.take)(input, {
969
+ name: [],
970
+ value: (_) => se_DocumentAttributeValue(_, context),
971
+ });
972
+ };
973
+ const se_DocumentAttributeValue = (input, context) => {
974
+ return models_0_1.DocumentAttributeValue.visit(input, {
975
+ dateValue: (value) => ({ dateValue: value.getTime() / 1000 }),
976
+ longValue: (value) => ({ longValue: value }),
977
+ stringListValue: (value) => ({ stringListValue: (0, smithy_client_1._json)(value) }),
978
+ stringValue: (value) => ({ stringValue: value }),
979
+ _: (name, value) => ({ name: value }),
980
+ });
981
+ };
982
+ const se_QQueryCardInput = (input, context) => {
983
+ return (0, smithy_client_1.take)(input, {
984
+ attributeFilter: (_) => se_AttributeFilter(_, context),
985
+ id: [],
986
+ outputSource: [],
987
+ prompt: [],
988
+ title: [],
989
+ type: [],
990
+ });
991
+ };
992
+ const de_AppDefinition = (output, context) => {
993
+ return (0, smithy_client_1.take)(output, {
994
+ appDefinitionVersion: smithy_client_1.expectString,
995
+ canEdit: smithy_client_1.expectBoolean,
996
+ cards: (_) => de_CardModelList(_, context),
997
+ });
998
+ };
999
+ const de_AppDefinitionInput = (output, context) => {
1000
+ return (0, smithy_client_1.take)(output, {
1001
+ cards: (_) => de_CardList(_, context),
1002
+ initialPrompt: smithy_client_1.expectString,
1003
+ });
1004
+ };
1005
+ const de_AttributeFilter = (output, context) => {
1006
+ return (0, smithy_client_1.take)(output, {
1007
+ andAllFilters: (_) => de_AttributeFilters(_, context),
1008
+ containsAll: (_) => de_DocumentAttribute(_, context),
1009
+ containsAny: (_) => de_DocumentAttribute(_, context),
1010
+ equalsTo: (_) => de_DocumentAttribute(_, context),
1011
+ greaterThan: (_) => de_DocumentAttribute(_, context),
1012
+ greaterThanOrEquals: (_) => de_DocumentAttribute(_, context),
1013
+ lessThan: (_) => de_DocumentAttribute(_, context),
1014
+ lessThanOrEquals: (_) => de_DocumentAttribute(_, context),
1015
+ notFilter: (_) => de_AttributeFilter(_, context),
1016
+ orAllFilters: (_) => de_AttributeFilters(_, context),
1017
+ });
1018
+ };
1019
+ const de_AttributeFilters = (output, context) => {
1020
+ const retVal = (output || [])
1021
+ .filter((e) => e != null)
1022
+ .map((entry) => {
1023
+ return de_AttributeFilter(entry, context);
1024
+ });
1025
+ return retVal;
1026
+ };
1027
+ const de_Card = (output, context) => {
1028
+ if (output.fileUpload != null) {
1029
+ return {
1030
+ fileUpload: (0, smithy_client_1._json)(output.fileUpload),
1031
+ };
1032
+ }
1033
+ if (output.qPlugin != null) {
1034
+ return {
1035
+ qPlugin: (0, smithy_client_1._json)(output.qPlugin),
1036
+ };
1037
+ }
1038
+ if (output.qQuery != null) {
1039
+ return {
1040
+ qQuery: de_QQueryCard(output.qQuery, context),
1041
+ };
1042
+ }
1043
+ if (output.textInput != null) {
1044
+ return {
1045
+ textInput: (0, smithy_client_1._json)(output.textInput),
1046
+ };
1047
+ }
1048
+ return { $unknown: Object.entries(output)[0] };
1049
+ };
1050
+ const de_CardInput = (output, context) => {
1051
+ if (output.fileUpload != null) {
1052
+ return {
1053
+ fileUpload: (0, smithy_client_1._json)(output.fileUpload),
1054
+ };
1055
+ }
1056
+ if (output.qPlugin != null) {
1057
+ return {
1058
+ qPlugin: (0, smithy_client_1._json)(output.qPlugin),
1059
+ };
1060
+ }
1061
+ if (output.qQuery != null) {
1062
+ return {
1063
+ qQuery: de_QQueryCardInput(output.qQuery, context),
1064
+ };
1065
+ }
1066
+ if (output.textInput != null) {
1067
+ return {
1068
+ textInput: (0, smithy_client_1._json)(output.textInput),
1069
+ };
1070
+ }
1071
+ return { $unknown: Object.entries(output)[0] };
1072
+ };
1073
+ const de_CardList = (output, context) => {
1074
+ const retVal = (output || [])
1075
+ .filter((e) => e != null)
1076
+ .map((entry) => {
1077
+ return de_CardInput((0, core_1.awsExpectUnion)(entry), context);
1078
+ });
1079
+ return retVal;
1080
+ };
1081
+ const de_CardModelList = (output, context) => {
1082
+ const retVal = (output || [])
1083
+ .filter((e) => e != null)
1084
+ .map((entry) => {
1085
+ return de_Card((0, core_1.awsExpectUnion)(entry), context);
1086
+ });
1087
+ return retVal;
1088
+ };
1089
+ const de_DocumentAttribute = (output, context) => {
1090
+ return (0, smithy_client_1.take)(output, {
1091
+ name: smithy_client_1.expectString,
1092
+ value: (_) => de_DocumentAttributeValue((0, core_1.awsExpectUnion)(_), context),
1093
+ });
1094
+ };
1095
+ const de_DocumentAttributeValue = (output, context) => {
1096
+ if (output.dateValue != null) {
1097
+ return {
1098
+ dateValue: (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.dateValue))),
1099
+ };
1100
+ }
1101
+ if ((0, smithy_client_1.expectLong)(output.longValue) !== undefined) {
1102
+ return { longValue: (0, smithy_client_1.expectLong)(output.longValue) };
1103
+ }
1104
+ if (output.stringListValue != null) {
1105
+ return {
1106
+ stringListValue: (0, smithy_client_1._json)(output.stringListValue),
1107
+ };
1108
+ }
1109
+ if ((0, smithy_client_1.expectString)(output.stringValue) !== undefined) {
1110
+ return { stringValue: (0, smithy_client_1.expectString)(output.stringValue) };
1111
+ }
1112
+ return { $unknown: Object.entries(output)[0] };
1113
+ };
1114
+ const de_LibraryItemList = (output, context) => {
1115
+ const retVal = (output || [])
1116
+ .filter((e) => e != null)
1117
+ .map((entry) => {
1118
+ return de_LibraryItemMember(entry, context);
1119
+ });
1120
+ return retVal;
1121
+ };
1122
+ const de_LibraryItemMember = (output, context) => {
1123
+ return (0, smithy_client_1.take)(output, {
1124
+ appId: smithy_client_1.expectString,
1125
+ appVersion: smithy_client_1.expectInt32,
1126
+ categories: smithy_client_1._json,
1127
+ createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1128
+ createdBy: smithy_client_1.expectString,
1129
+ isRatedByUser: smithy_client_1.expectBoolean,
1130
+ libraryItemId: smithy_client_1.expectString,
1131
+ ratingCount: smithy_client_1.expectInt32,
1132
+ status: smithy_client_1.expectString,
1133
+ updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1134
+ updatedBy: smithy_client_1.expectString,
1135
+ userCount: smithy_client_1.expectInt32,
1136
+ });
1137
+ };
1138
+ const de_PredictAppDefinition = (output, context) => {
1139
+ return (0, smithy_client_1.take)(output, {
1140
+ appDefinition: (_) => de_AppDefinitionInput(_, context),
1141
+ description: smithy_client_1.expectString,
1142
+ title: smithy_client_1.expectString,
1143
+ });
1144
+ };
1145
+ const de_QQueryCard = (output, context) => {
1146
+ return (0, smithy_client_1.take)(output, {
1147
+ attributeFilter: (_) => de_AttributeFilter(_, context),
1148
+ dependencies: smithy_client_1._json,
1149
+ id: smithy_client_1.expectString,
1150
+ outputSource: smithy_client_1.expectString,
1151
+ prompt: smithy_client_1.expectString,
1152
+ title: smithy_client_1.expectString,
1153
+ type: smithy_client_1.expectString,
1154
+ });
1155
+ };
1156
+ const de_QQueryCardInput = (output, context) => {
1157
+ return (0, smithy_client_1.take)(output, {
1158
+ attributeFilter: (_) => de_AttributeFilter(_, context),
1159
+ id: smithy_client_1.expectString,
1160
+ outputSource: smithy_client_1.expectString,
1161
+ prompt: smithy_client_1.expectString,
1162
+ title: smithy_client_1.expectString,
1163
+ type: smithy_client_1.expectString,
1164
+ });
1165
+ };
1166
+ const de_UserAppItem = (output, context) => {
1167
+ return (0, smithy_client_1.take)(output, {
1168
+ appArn: smithy_client_1.expectString,
1169
+ appId: smithy_client_1.expectString,
1170
+ canEdit: smithy_client_1.expectBoolean,
1171
+ createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1172
+ description: smithy_client_1.expectString,
1173
+ status: smithy_client_1.expectString,
1174
+ title: smithy_client_1.expectString,
1175
+ });
1176
+ };
1177
+ const de_UserAppsList = (output, context) => {
1178
+ const retVal = (output || [])
1179
+ .filter((e) => e != null)
1180
+ .map((entry) => {
1181
+ return de_UserAppItem(entry, context);
1182
+ });
1183
+ return retVal;
1184
+ };
1185
+ const deserializeMetadata = (output) => ({
1186
+ httpStatusCode: output.statusCode,
1187
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1188
+ extendedRequestId: output.headers["x-amz-id-2"],
1189
+ cfId: output.headers["x-amz-cf-id"],
1190
+ });
1191
+ const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
1192
+ const isSerializableHeaderValue = (value) => value !== undefined &&
1193
+ value !== null &&
1194
+ value !== "" &&
1195
+ (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
1196
+ (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
1197
+ const _aI = "appId";
1198
+ const _cI = "categoryId";
1199
+ const _iI = "instanceId";
1200
+ const _ii = "instance-id";
1201
+ const _l = "limit";
1202
+ const _lII = "libraryItemId";
1203
+ const _nT = "nextToken";
1204
+ const _rAS = "retryAfterSeconds";
1205
+ const _ra = "retry-after";
1206
+ const _sI = "sessionId";
1207
+ const _tK = "tagKeys";