@aws-sdk/client-bedrock-agent 3.613.0 → 3.614.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 (108) hide show
  1. package/README.md +168 -0
  2. package/dist-cjs/index.js +2007 -14
  3. package/dist-es/BedrockAgent.js +42 -0
  4. package/dist-es/commands/CreateDataSourceCommand.js +2 -1
  5. package/dist-es/commands/CreateFlowAliasCommand.js +24 -0
  6. package/dist-es/commands/CreateFlowCommand.js +25 -0
  7. package/dist-es/commands/CreateFlowVersionCommand.js +25 -0
  8. package/dist-es/commands/CreatePromptCommand.js +25 -0
  9. package/dist-es/commands/CreatePromptVersionCommand.js +25 -0
  10. package/dist-es/commands/DeleteFlowAliasCommand.js +24 -0
  11. package/dist-es/commands/DeleteFlowCommand.js +24 -0
  12. package/dist-es/commands/DeleteFlowVersionCommand.js +24 -0
  13. package/dist-es/commands/DeletePromptCommand.js +24 -0
  14. package/dist-es/commands/GetDataSourceCommand.js +2 -1
  15. package/dist-es/commands/GetFlowAliasCommand.js +24 -0
  16. package/dist-es/commands/GetFlowCommand.js +25 -0
  17. package/dist-es/commands/GetFlowVersionCommand.js +25 -0
  18. package/dist-es/commands/GetPromptCommand.js +25 -0
  19. package/dist-es/commands/ListFlowAliasesCommand.js +24 -0
  20. package/dist-es/commands/ListFlowVersionsCommand.js +24 -0
  21. package/dist-es/commands/ListFlowsCommand.js +24 -0
  22. package/dist-es/commands/ListPromptsCommand.js +24 -0
  23. package/dist-es/commands/PrepareFlowCommand.js +24 -0
  24. package/dist-es/commands/UpdateDataSourceCommand.js +2 -1
  25. package/dist-es/commands/UpdateFlowAliasCommand.js +24 -0
  26. package/dist-es/commands/UpdateFlowCommand.js +25 -0
  27. package/dist-es/commands/UpdatePromptCommand.js +25 -0
  28. package/dist-es/commands/index.js +21 -0
  29. package/dist-es/models/models_0.js +418 -0
  30. package/dist-es/pagination/ListFlowAliasesPaginator.js +4 -0
  31. package/dist-es/pagination/ListFlowVersionsPaginator.js +4 -0
  32. package/dist-es/pagination/ListFlowsPaginator.js +4 -0
  33. package/dist-es/pagination/ListPromptsPaginator.js +4 -0
  34. package/dist-es/pagination/index.js +4 -0
  35. package/dist-es/protocols/Aws_restJson1.js +1041 -25
  36. package/dist-types/BedrockAgent.d.ts +149 -0
  37. package/dist-types/BedrockAgentClient.d.ts +23 -2
  38. package/dist-types/commands/CreateAgentActionGroupCommand.d.ts +7 -3
  39. package/dist-types/commands/CreateAgentCommand.d.ts +18 -1
  40. package/dist-types/commands/CreateDataSourceCommand.d.ts +280 -6
  41. package/dist-types/commands/CreateFlowAliasCommand.d.ts +103 -0
  42. package/dist-types/commands/CreateFlowCommand.d.ts +318 -0
  43. package/dist-types/commands/CreateFlowVersionCommand.d.ts +203 -0
  44. package/dist-types/commands/CreatePromptCommand.d.ts +149 -0
  45. package/dist-types/commands/CreatePromptVersionCommand.d.ts +122 -0
  46. package/dist-types/commands/DeleteFlowAliasCommand.d.ts +80 -0
  47. package/dist-types/commands/DeleteFlowCommand.d.ts +79 -0
  48. package/dist-types/commands/DeleteFlowVersionCommand.d.ts +81 -0
  49. package/dist-types/commands/DeletePromptCommand.d.ts +80 -0
  50. package/dist-types/commands/GetAgentActionGroupCommand.d.ts +1 -1
  51. package/dist-types/commands/GetAgentCommand.d.ts +6 -0
  52. package/dist-types/commands/GetAgentVersionCommand.d.ts +6 -0
  53. package/dist-types/commands/GetDataSourceCommand.d.ts +139 -2
  54. package/dist-types/commands/GetFlowAliasCommand.d.ts +87 -0
  55. package/dist-types/commands/GetFlowCommand.d.ts +202 -0
  56. package/dist-types/commands/GetFlowVersionCommand.d.ts +196 -0
  57. package/dist-types/commands/GetPromptCommand.d.ts +112 -0
  58. package/dist-types/commands/ListFlowAliasesCommand.d.ts +93 -0
  59. package/dist-types/commands/ListFlowVersionsCommand.d.ts +86 -0
  60. package/dist-types/commands/ListFlowsCommand.d.ts +85 -0
  61. package/dist-types/commands/ListPromptsCommand.d.ts +88 -0
  62. package/dist-types/commands/PrepareFlowCommand.d.ts +82 -0
  63. package/dist-types/commands/UpdateAgentActionGroupCommand.d.ts +2 -2
  64. package/dist-types/commands/UpdateAgentCommand.d.ts +12 -0
  65. package/dist-types/commands/UpdateDataSourceCommand.d.ts +280 -6
  66. package/dist-types/commands/UpdateFlowAliasCommand.d.ts +100 -0
  67. package/dist-types/commands/UpdateFlowCommand.d.ts +318 -0
  68. package/dist-types/commands/UpdatePromptCommand.d.ts +149 -0
  69. package/dist-types/commands/index.d.ts +21 -0
  70. package/dist-types/models/models_0.d.ts +4252 -772
  71. package/dist-types/pagination/ListFlowAliasesPaginator.d.ts +7 -0
  72. package/dist-types/pagination/ListFlowVersionsPaginator.d.ts +7 -0
  73. package/dist-types/pagination/ListFlowsPaginator.d.ts +7 -0
  74. package/dist-types/pagination/ListPromptsPaginator.d.ts +7 -0
  75. package/dist-types/pagination/index.d.ts +4 -0
  76. package/dist-types/protocols/Aws_restJson1.d.ts +189 -0
  77. package/dist-types/ts3.4/BedrockAgent.d.ts +359 -0
  78. package/dist-types/ts3.4/BedrockAgentClient.d.ts +128 -2
  79. package/dist-types/ts3.4/commands/CreateFlowAliasCommand.d.ts +39 -0
  80. package/dist-types/ts3.4/commands/CreateFlowCommand.d.ts +36 -0
  81. package/dist-types/ts3.4/commands/CreateFlowVersionCommand.d.ts +40 -0
  82. package/dist-types/ts3.4/commands/CreatePromptCommand.d.ts +36 -0
  83. package/dist-types/ts3.4/commands/CreatePromptVersionCommand.d.ts +40 -0
  84. package/dist-types/ts3.4/commands/DeleteFlowAliasCommand.d.ts +39 -0
  85. package/dist-types/ts3.4/commands/DeleteFlowCommand.d.ts +36 -0
  86. package/dist-types/ts3.4/commands/DeleteFlowVersionCommand.d.ts +40 -0
  87. package/dist-types/ts3.4/commands/DeletePromptCommand.d.ts +36 -0
  88. package/dist-types/ts3.4/commands/GetFlowAliasCommand.d.ts +36 -0
  89. package/dist-types/ts3.4/commands/GetFlowCommand.d.ts +32 -0
  90. package/dist-types/ts3.4/commands/GetFlowVersionCommand.d.ts +39 -0
  91. package/dist-types/ts3.4/commands/GetPromptCommand.d.ts +36 -0
  92. package/dist-types/ts3.4/commands/ListFlowAliasesCommand.d.ts +39 -0
  93. package/dist-types/ts3.4/commands/ListFlowVersionsCommand.d.ts +39 -0
  94. package/dist-types/ts3.4/commands/ListFlowsCommand.d.ts +36 -0
  95. package/dist-types/ts3.4/commands/ListPromptsCommand.d.ts +36 -0
  96. package/dist-types/ts3.4/commands/PrepareFlowCommand.d.ts +36 -0
  97. package/dist-types/ts3.4/commands/UpdateFlowAliasCommand.d.ts +39 -0
  98. package/dist-types/ts3.4/commands/UpdateFlowCommand.d.ts +36 -0
  99. package/dist-types/ts3.4/commands/UpdatePromptCommand.d.ts +36 -0
  100. package/dist-types/ts3.4/commands/index.d.ts +21 -0
  101. package/dist-types/ts3.4/models/models_0.d.ts +1179 -0
  102. package/dist-types/ts3.4/pagination/ListFlowAliasesPaginator.d.ts +11 -0
  103. package/dist-types/ts3.4/pagination/ListFlowVersionsPaginator.d.ts +11 -0
  104. package/dist-types/ts3.4/pagination/ListFlowsPaginator.d.ts +11 -0
  105. package/dist-types/ts3.4/pagination/ListPromptsPaginator.d.ts +11 -0
  106. package/dist-types/ts3.4/pagination/index.d.ts +4 -0
  107. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +252 -0
  108. package/package.json +20 -20
@@ -3,7 +3,7 @@ import { requestBuilder as rb } from "@smithy/core";
3
3
  import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseFloat32 as __limitedParseFloat32, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
4
4
  import { v4 as generateIdempotencyToken } from "uuid";
5
5
  import { BedrockAgentServiceException as __BaseException } from "../models/BedrockAgentServiceException";
6
- import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
6
+ import { AccessDeniedException, ConflictException, FlowNodeConfiguration, InternalServerException, PromptFlowNodeSourceConfiguration, PromptInferenceConfiguration, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
7
7
  export const se_AssociateAgentKnowledgeBaseCommand = async (input, context) => {
8
8
  const b = rb(input, context);
9
9
  const headers = {
@@ -38,6 +38,7 @@ export const se_CreateAgentCommand = async (input, context) => {
38
38
  guardrailConfiguration: (_) => _json(_),
39
39
  idleSessionTTLInSeconds: [],
40
40
  instruction: [],
41
+ memoryConfiguration: (_) => _json(_),
41
42
  promptOverrideConfiguration: (_) => se_PromptOverrideConfiguration(_, context),
42
43
  tags: (_) => _json(_),
43
44
  }));
@@ -104,6 +105,58 @@ export const se_CreateDataSourceCommand = async (input, context) => {
104
105
  b.m("PUT").h(headers).b(body);
105
106
  return b.build();
106
107
  };
108
+ export const se_CreateFlowCommand = async (input, context) => {
109
+ const b = rb(input, context);
110
+ const headers = {
111
+ "content-type": "application/json",
112
+ };
113
+ b.bp("/flows");
114
+ let body;
115
+ body = JSON.stringify(take(input, {
116
+ clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
117
+ customerEncryptionKeyArn: [],
118
+ definition: (_) => se_FlowDefinition(_, context),
119
+ description: [],
120
+ executionRoleArn: [],
121
+ name: [],
122
+ tags: (_) => _json(_),
123
+ }));
124
+ b.m("POST").h(headers).b(body);
125
+ return b.build();
126
+ };
127
+ export const se_CreateFlowAliasCommand = async (input, context) => {
128
+ const b = rb(input, context);
129
+ const headers = {
130
+ "content-type": "application/json",
131
+ };
132
+ b.bp("/flows/{flowIdentifier}/aliases");
133
+ b.p("flowIdentifier", () => input.flowIdentifier, "{flowIdentifier}", false);
134
+ let body;
135
+ body = JSON.stringify(take(input, {
136
+ clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
137
+ description: [],
138
+ name: [],
139
+ routingConfiguration: (_) => _json(_),
140
+ tags: (_) => _json(_),
141
+ }));
142
+ b.m("POST").h(headers).b(body);
143
+ return b.build();
144
+ };
145
+ export const se_CreateFlowVersionCommand = async (input, context) => {
146
+ const b = rb(input, context);
147
+ const headers = {
148
+ "content-type": "application/json",
149
+ };
150
+ b.bp("/flows/{flowIdentifier}/versions");
151
+ b.p("flowIdentifier", () => input.flowIdentifier, "{flowIdentifier}", false);
152
+ let body;
153
+ body = JSON.stringify(take(input, {
154
+ clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
155
+ description: [],
156
+ }));
157
+ b.m("POST").h(headers).b(body);
158
+ return b.build();
159
+ };
107
160
  export const se_CreateKnowledgeBaseCommand = async (input, context) => {
108
161
  const b = rb(input, context);
109
162
  const headers = {
@@ -123,6 +176,41 @@ export const se_CreateKnowledgeBaseCommand = async (input, context) => {
123
176
  b.m("PUT").h(headers).b(body);
124
177
  return b.build();
125
178
  };
179
+ export const se_CreatePromptCommand = async (input, context) => {
180
+ const b = rb(input, context);
181
+ const headers = {
182
+ "content-type": "application/json",
183
+ };
184
+ b.bp("/prompts");
185
+ let body;
186
+ body = JSON.stringify(take(input, {
187
+ clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
188
+ customerEncryptionKeyArn: [],
189
+ defaultVariant: [],
190
+ description: [],
191
+ name: [],
192
+ tags: (_) => _json(_),
193
+ variants: (_) => se_PromptVariantList(_, context),
194
+ }));
195
+ b.m("POST").h(headers).b(body);
196
+ return b.build();
197
+ };
198
+ export const se_CreatePromptVersionCommand = async (input, context) => {
199
+ const b = rb(input, context);
200
+ const headers = {
201
+ "content-type": "application/json",
202
+ };
203
+ b.bp("/prompts/{promptIdentifier}/versions");
204
+ b.p("promptIdentifier", () => input.promptIdentifier, "{promptIdentifier}", false);
205
+ let body;
206
+ body = JSON.stringify(take(input, {
207
+ clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
208
+ description: [],
209
+ tags: (_) => _json(_),
210
+ }));
211
+ b.m("POST").h(headers).b(body);
212
+ return b.build();
213
+ };
126
214
  export const se_DeleteAgentCommand = async (input, context) => {
127
215
  const b = rb(input, context);
128
216
  const headers = {};
@@ -182,6 +270,41 @@ export const se_DeleteDataSourceCommand = async (input, context) => {
182
270
  b.m("DELETE").h(headers).b(body);
183
271
  return b.build();
184
272
  };
273
+ export const se_DeleteFlowCommand = async (input, context) => {
274
+ const b = rb(input, context);
275
+ const headers = {};
276
+ b.bp("/flows/{flowIdentifier}");
277
+ b.p("flowIdentifier", () => input.flowIdentifier, "{flowIdentifier}", false);
278
+ const query = map({
279
+ [_sRIUC]: [() => input.skipResourceInUseCheck !== void 0, () => input[_sRIUC].toString()],
280
+ });
281
+ let body;
282
+ b.m("DELETE").h(headers).q(query).b(body);
283
+ return b.build();
284
+ };
285
+ export const se_DeleteFlowAliasCommand = async (input, context) => {
286
+ const b = rb(input, context);
287
+ const headers = {};
288
+ b.bp("/flows/{flowIdentifier}/aliases/{aliasIdentifier}");
289
+ b.p("flowIdentifier", () => input.flowIdentifier, "{flowIdentifier}", false);
290
+ b.p("aliasIdentifier", () => input.aliasIdentifier, "{aliasIdentifier}", false);
291
+ let body;
292
+ b.m("DELETE").h(headers).b(body);
293
+ return b.build();
294
+ };
295
+ export const se_DeleteFlowVersionCommand = async (input, context) => {
296
+ const b = rb(input, context);
297
+ const headers = {};
298
+ b.bp("/flows/{flowIdentifier}/versions/{flowVersion}");
299
+ b.p("flowIdentifier", () => input.flowIdentifier, "{flowIdentifier}", false);
300
+ b.p("flowVersion", () => input.flowVersion, "{flowVersion}", false);
301
+ const query = map({
302
+ [_sRIUC]: [() => input.skipResourceInUseCheck !== void 0, () => input[_sRIUC].toString()],
303
+ });
304
+ let body;
305
+ b.m("DELETE").h(headers).q(query).b(body);
306
+ return b.build();
307
+ };
185
308
  export const se_DeleteKnowledgeBaseCommand = async (input, context) => {
186
309
  const b = rb(input, context);
187
310
  const headers = {};
@@ -191,6 +314,18 @@ export const se_DeleteKnowledgeBaseCommand = async (input, context) => {
191
314
  b.m("DELETE").h(headers).b(body);
192
315
  return b.build();
193
316
  };
317
+ export const se_DeletePromptCommand = async (input, context) => {
318
+ const b = rb(input, context);
319
+ const headers = {};
320
+ b.bp("/prompts/{promptIdentifier}");
321
+ b.p("promptIdentifier", () => input.promptIdentifier, "{promptIdentifier}", false);
322
+ const query = map({
323
+ [_pV]: [, input[_pV]],
324
+ });
325
+ let body;
326
+ b.m("DELETE").h(headers).q(query).b(body);
327
+ return b.build();
328
+ };
194
329
  export const se_DisassociateAgentKnowledgeBaseCommand = async (input, context) => {
195
330
  const b = rb(input, context);
196
331
  const headers = {};
@@ -263,6 +398,35 @@ export const se_GetDataSourceCommand = async (input, context) => {
263
398
  b.m("GET").h(headers).b(body);
264
399
  return b.build();
265
400
  };
401
+ export const se_GetFlowCommand = async (input, context) => {
402
+ const b = rb(input, context);
403
+ const headers = {};
404
+ b.bp("/flows/{flowIdentifier}");
405
+ b.p("flowIdentifier", () => input.flowIdentifier, "{flowIdentifier}", false);
406
+ let body;
407
+ b.m("GET").h(headers).b(body);
408
+ return b.build();
409
+ };
410
+ export const se_GetFlowAliasCommand = async (input, context) => {
411
+ const b = rb(input, context);
412
+ const headers = {};
413
+ b.bp("/flows/{flowIdentifier}/aliases/{aliasIdentifier}");
414
+ b.p("flowIdentifier", () => input.flowIdentifier, "{flowIdentifier}", false);
415
+ b.p("aliasIdentifier", () => input.aliasIdentifier, "{aliasIdentifier}", false);
416
+ let body;
417
+ b.m("GET").h(headers).b(body);
418
+ return b.build();
419
+ };
420
+ export const se_GetFlowVersionCommand = async (input, context) => {
421
+ const b = rb(input, context);
422
+ const headers = {};
423
+ b.bp("/flows/{flowIdentifier}/versions/{flowVersion}");
424
+ b.p("flowIdentifier", () => input.flowIdentifier, "{flowIdentifier}", false);
425
+ b.p("flowVersion", () => input.flowVersion, "{flowVersion}", false);
426
+ let body;
427
+ b.m("GET").h(headers).b(body);
428
+ return b.build();
429
+ };
266
430
  export const se_GetIngestionJobCommand = async (input, context) => {
267
431
  const b = rb(input, context);
268
432
  const headers = {};
@@ -283,6 +447,18 @@ export const se_GetKnowledgeBaseCommand = async (input, context) => {
283
447
  b.m("GET").h(headers).b(body);
284
448
  return b.build();
285
449
  };
450
+ export const se_GetPromptCommand = async (input, context) => {
451
+ const b = rb(input, context);
452
+ const headers = {};
453
+ b.bp("/prompts/{promptIdentifier}");
454
+ b.p("promptIdentifier", () => input.promptIdentifier, "{promptIdentifier}", false);
455
+ const query = map({
456
+ [_pV]: [, input[_pV]],
457
+ });
458
+ let body;
459
+ b.m("GET").h(headers).q(query).b(body);
460
+ return b.build();
461
+ };
286
462
  export const se_ListAgentActionGroupsCommand = async (input, context) => {
287
463
  const b = rb(input, context);
288
464
  const headers = {
@@ -374,6 +550,44 @@ export const se_ListDataSourcesCommand = async (input, context) => {
374
550
  b.m("POST").h(headers).b(body);
375
551
  return b.build();
376
552
  };
553
+ export const se_ListFlowAliasesCommand = async (input, context) => {
554
+ const b = rb(input, context);
555
+ const headers = {};
556
+ b.bp("/flows/{flowIdentifier}/aliases");
557
+ b.p("flowIdentifier", () => input.flowIdentifier, "{flowIdentifier}", false);
558
+ const query = map({
559
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
560
+ [_nT]: [, input[_nT]],
561
+ });
562
+ let body;
563
+ b.m("GET").h(headers).q(query).b(body);
564
+ return b.build();
565
+ };
566
+ export const se_ListFlowsCommand = async (input, context) => {
567
+ const b = rb(input, context);
568
+ const headers = {};
569
+ b.bp("/flows");
570
+ const query = map({
571
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
572
+ [_nT]: [, input[_nT]],
573
+ });
574
+ let body;
575
+ b.m("GET").h(headers).q(query).b(body);
576
+ return b.build();
577
+ };
578
+ export const se_ListFlowVersionsCommand = async (input, context) => {
579
+ const b = rb(input, context);
580
+ const headers = {};
581
+ b.bp("/flows/{flowIdentifier}/versions");
582
+ b.p("flowIdentifier", () => input.flowIdentifier, "{flowIdentifier}", false);
583
+ const query = map({
584
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
585
+ [_nT]: [, input[_nT]],
586
+ });
587
+ let body;
588
+ b.m("GET").h(headers).q(query).b(body);
589
+ return b.build();
590
+ };
377
591
  export const se_ListIngestionJobsCommand = async (input, context) => {
378
592
  const b = rb(input, context);
379
593
  const headers = {
@@ -406,6 +620,19 @@ export const se_ListKnowledgeBasesCommand = async (input, context) => {
406
620
  b.m("POST").h(headers).b(body);
407
621
  return b.build();
408
622
  };
623
+ export const se_ListPromptsCommand = async (input, context) => {
624
+ const b = rb(input, context);
625
+ const headers = {};
626
+ b.bp("/prompts");
627
+ const query = map({
628
+ [_pI]: [, input[_pI]],
629
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
630
+ [_nT]: [, input[_nT]],
631
+ });
632
+ let body;
633
+ b.m("GET").h(headers).q(query).b(body);
634
+ return b.build();
635
+ };
409
636
  export const se_ListTagsForResourceCommand = async (input, context) => {
410
637
  const b = rb(input, context);
411
638
  const headers = {};
@@ -424,6 +651,15 @@ export const se_PrepareAgentCommand = async (input, context) => {
424
651
  b.m("POST").h(headers).b(body);
425
652
  return b.build();
426
653
  };
654
+ export const se_PrepareFlowCommand = async (input, context) => {
655
+ const b = rb(input, context);
656
+ const headers = {};
657
+ b.bp("/flows/{flowIdentifier}");
658
+ b.p("flowIdentifier", () => input.flowIdentifier, "{flowIdentifier}", false);
659
+ let body;
660
+ b.m("POST").h(headers).b(body);
661
+ return b.build();
662
+ };
427
663
  export const se_StartIngestionJobCommand = async (input, context) => {
428
664
  const b = rb(input, context);
429
665
  const headers = {
@@ -486,6 +722,7 @@ export const se_UpdateAgentCommand = async (input, context) => {
486
722
  guardrailConfiguration: (_) => _json(_),
487
723
  idleSessionTTLInSeconds: [],
488
724
  instruction: [],
725
+ memoryConfiguration: (_) => _json(_),
489
726
  promptOverrideConfiguration: (_) => se_PromptOverrideConfiguration(_, context),
490
727
  }));
491
728
  b.m("PUT").h(headers).b(body);
@@ -567,6 +804,41 @@ export const se_UpdateDataSourceCommand = async (input, context) => {
567
804
  b.m("PUT").h(headers).b(body);
568
805
  return b.build();
569
806
  };
807
+ export const se_UpdateFlowCommand = async (input, context) => {
808
+ const b = rb(input, context);
809
+ const headers = {
810
+ "content-type": "application/json",
811
+ };
812
+ b.bp("/flows/{flowIdentifier}");
813
+ b.p("flowIdentifier", () => input.flowIdentifier, "{flowIdentifier}", false);
814
+ let body;
815
+ body = JSON.stringify(take(input, {
816
+ customerEncryptionKeyArn: [],
817
+ definition: (_) => se_FlowDefinition(_, context),
818
+ description: [],
819
+ executionRoleArn: [],
820
+ name: [],
821
+ }));
822
+ b.m("PUT").h(headers).b(body);
823
+ return b.build();
824
+ };
825
+ export const se_UpdateFlowAliasCommand = async (input, context) => {
826
+ const b = rb(input, context);
827
+ const headers = {
828
+ "content-type": "application/json",
829
+ };
830
+ b.bp("/flows/{flowIdentifier}/aliases/{aliasIdentifier}");
831
+ b.p("flowIdentifier", () => input.flowIdentifier, "{flowIdentifier}", false);
832
+ b.p("aliasIdentifier", () => input.aliasIdentifier, "{aliasIdentifier}", false);
833
+ let body;
834
+ body = JSON.stringify(take(input, {
835
+ description: [],
836
+ name: [],
837
+ routingConfiguration: (_) => _json(_),
838
+ }));
839
+ b.m("PUT").h(headers).b(body);
840
+ return b.build();
841
+ };
570
842
  export const se_UpdateKnowledgeBaseCommand = async (input, context) => {
571
843
  const b = rb(input, context);
572
844
  const headers = {
@@ -585,6 +857,24 @@ export const se_UpdateKnowledgeBaseCommand = async (input, context) => {
585
857
  b.m("PUT").h(headers).b(body);
586
858
  return b.build();
587
859
  };
860
+ export const se_UpdatePromptCommand = async (input, context) => {
861
+ const b = rb(input, context);
862
+ const headers = {
863
+ "content-type": "application/json",
864
+ };
865
+ b.bp("/prompts/{promptIdentifier}");
866
+ b.p("promptIdentifier", () => input.promptIdentifier, "{promptIdentifier}", false);
867
+ let body;
868
+ body = JSON.stringify(take(input, {
869
+ customerEncryptionKeyArn: [],
870
+ defaultVariant: [],
871
+ description: [],
872
+ name: [],
873
+ variants: (_) => se_PromptVariantList(_, context),
874
+ }));
875
+ b.m("PUT").h(headers).b(body);
876
+ return b.build();
877
+ };
588
878
  export const de_AssociateAgentKnowledgeBaseCommand = async (output, context) => {
589
879
  if (output.statusCode !== 200 && output.statusCode >= 300) {
590
880
  return de_CommandError(output, context);
@@ -655,6 +945,74 @@ export const de_CreateDataSourceCommand = async (output, context) => {
655
945
  Object.assign(contents, doc);
656
946
  return contents;
657
947
  };
948
+ export const de_CreateFlowCommand = async (output, context) => {
949
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
950
+ return de_CommandError(output, context);
951
+ }
952
+ const contents = map({
953
+ $metadata: deserializeMetadata(output),
954
+ });
955
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
956
+ const doc = take(data, {
957
+ arn: __expectString,
958
+ createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
959
+ customerEncryptionKeyArn: __expectString,
960
+ definition: (_) => de_FlowDefinition(_, context),
961
+ description: __expectString,
962
+ executionRoleArn: __expectString,
963
+ id: __expectString,
964
+ name: __expectString,
965
+ status: __expectString,
966
+ updatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
967
+ version: __expectString,
968
+ });
969
+ Object.assign(contents, doc);
970
+ return contents;
971
+ };
972
+ export const de_CreateFlowAliasCommand = async (output, context) => {
973
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
974
+ return de_CommandError(output, context);
975
+ }
976
+ const contents = map({
977
+ $metadata: deserializeMetadata(output),
978
+ });
979
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
980
+ const doc = take(data, {
981
+ arn: __expectString,
982
+ createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
983
+ description: __expectString,
984
+ flowId: __expectString,
985
+ id: __expectString,
986
+ name: __expectString,
987
+ routingConfiguration: _json,
988
+ updatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
989
+ });
990
+ Object.assign(contents, doc);
991
+ return contents;
992
+ };
993
+ export const de_CreateFlowVersionCommand = async (output, context) => {
994
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
995
+ return de_CommandError(output, context);
996
+ }
997
+ const contents = map({
998
+ $metadata: deserializeMetadata(output),
999
+ });
1000
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1001
+ const doc = take(data, {
1002
+ arn: __expectString,
1003
+ createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1004
+ customerEncryptionKeyArn: __expectString,
1005
+ definition: (_) => de_FlowDefinition(_, context),
1006
+ description: __expectString,
1007
+ executionRoleArn: __expectString,
1008
+ id: __expectString,
1009
+ name: __expectString,
1010
+ status: __expectString,
1011
+ version: __expectString,
1012
+ });
1013
+ Object.assign(contents, doc);
1014
+ return contents;
1015
+ };
658
1016
  export const de_CreateKnowledgeBaseCommand = async (output, context) => {
659
1017
  if (output.statusCode !== 202 && output.statusCode >= 300) {
660
1018
  return de_CommandError(output, context);
@@ -669,6 +1027,52 @@ export const de_CreateKnowledgeBaseCommand = async (output, context) => {
669
1027
  Object.assign(contents, doc);
670
1028
  return contents;
671
1029
  };
1030
+ export const de_CreatePromptCommand = async (output, context) => {
1031
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
1032
+ return de_CommandError(output, context);
1033
+ }
1034
+ const contents = map({
1035
+ $metadata: deserializeMetadata(output),
1036
+ });
1037
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1038
+ const doc = take(data, {
1039
+ arn: __expectString,
1040
+ createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1041
+ customerEncryptionKeyArn: __expectString,
1042
+ defaultVariant: __expectString,
1043
+ description: __expectString,
1044
+ id: __expectString,
1045
+ name: __expectString,
1046
+ updatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1047
+ variants: (_) => de_PromptVariantList(_, context),
1048
+ version: __expectString,
1049
+ });
1050
+ Object.assign(contents, doc);
1051
+ return contents;
1052
+ };
1053
+ export const de_CreatePromptVersionCommand = async (output, context) => {
1054
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
1055
+ return de_CommandError(output, context);
1056
+ }
1057
+ const contents = map({
1058
+ $metadata: deserializeMetadata(output),
1059
+ });
1060
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1061
+ const doc = take(data, {
1062
+ arn: __expectString,
1063
+ createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1064
+ customerEncryptionKeyArn: __expectString,
1065
+ defaultVariant: __expectString,
1066
+ description: __expectString,
1067
+ id: __expectString,
1068
+ name: __expectString,
1069
+ updatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1070
+ variants: (_) => de_PromptVariantList(_, context),
1071
+ version: __expectString,
1072
+ });
1073
+ Object.assign(contents, doc);
1074
+ return contents;
1075
+ };
672
1076
  export const de_DeleteAgentCommand = async (output, context) => {
673
1077
  if (output.statusCode !== 202 && output.statusCode >= 300) {
674
1078
  return de_CommandError(output, context);
@@ -742,6 +1146,50 @@ export const de_DeleteDataSourceCommand = async (output, context) => {
742
1146
  Object.assign(contents, doc);
743
1147
  return contents;
744
1148
  };
1149
+ export const de_DeleteFlowCommand = async (output, context) => {
1150
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1151
+ return de_CommandError(output, context);
1152
+ }
1153
+ const contents = map({
1154
+ $metadata: deserializeMetadata(output),
1155
+ });
1156
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1157
+ const doc = take(data, {
1158
+ id: __expectString,
1159
+ });
1160
+ Object.assign(contents, doc);
1161
+ return contents;
1162
+ };
1163
+ export const de_DeleteFlowAliasCommand = async (output, context) => {
1164
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1165
+ return de_CommandError(output, context);
1166
+ }
1167
+ const contents = map({
1168
+ $metadata: deserializeMetadata(output),
1169
+ });
1170
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1171
+ const doc = take(data, {
1172
+ flowId: __expectString,
1173
+ id: __expectString,
1174
+ });
1175
+ Object.assign(contents, doc);
1176
+ return contents;
1177
+ };
1178
+ export const de_DeleteFlowVersionCommand = async (output, context) => {
1179
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1180
+ return de_CommandError(output, context);
1181
+ }
1182
+ const contents = map({
1183
+ $metadata: deserializeMetadata(output),
1184
+ });
1185
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1186
+ const doc = take(data, {
1187
+ id: __expectString,
1188
+ version: __expectString,
1189
+ });
1190
+ Object.assign(contents, doc);
1191
+ return contents;
1192
+ };
745
1193
  export const de_DeleteKnowledgeBaseCommand = async (output, context) => {
746
1194
  if (output.statusCode !== 202 && output.statusCode >= 300) {
747
1195
  return de_CommandError(output, context);
@@ -757,6 +1205,21 @@ export const de_DeleteKnowledgeBaseCommand = async (output, context) => {
757
1205
  Object.assign(contents, doc);
758
1206
  return contents;
759
1207
  };
1208
+ export const de_DeletePromptCommand = async (output, context) => {
1209
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1210
+ return de_CommandError(output, context);
1211
+ }
1212
+ const contents = map({
1213
+ $metadata: deserializeMetadata(output),
1214
+ });
1215
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1216
+ const doc = take(data, {
1217
+ id: __expectString,
1218
+ version: __expectString,
1219
+ });
1220
+ Object.assign(contents, doc);
1221
+ return contents;
1222
+ };
760
1223
  export const de_DisassociateAgentKnowledgeBaseCommand = async (output, context) => {
761
1224
  if (output.statusCode !== 204 && output.statusCode >= 300) {
762
1225
  return de_CommandError(output, context);
@@ -823,7 +1286,155 @@ export const de_GetAgentKnowledgeBaseCommand = async (output, context) => {
823
1286
  Object.assign(contents, doc);
824
1287
  return contents;
825
1288
  };
826
- export const de_GetAgentVersionCommand = async (output, context) => {
1289
+ export const de_GetAgentVersionCommand = async (output, context) => {
1290
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1291
+ return de_CommandError(output, context);
1292
+ }
1293
+ const contents = map({
1294
+ $metadata: deserializeMetadata(output),
1295
+ });
1296
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1297
+ const doc = take(data, {
1298
+ agentVersion: (_) => de_AgentVersion(_, context),
1299
+ });
1300
+ Object.assign(contents, doc);
1301
+ return contents;
1302
+ };
1303
+ export const de_GetDataSourceCommand = async (output, context) => {
1304
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1305
+ return de_CommandError(output, context);
1306
+ }
1307
+ const contents = map({
1308
+ $metadata: deserializeMetadata(output),
1309
+ });
1310
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1311
+ const doc = take(data, {
1312
+ dataSource: (_) => de_DataSource(_, context),
1313
+ });
1314
+ Object.assign(contents, doc);
1315
+ return contents;
1316
+ };
1317
+ export const de_GetFlowCommand = async (output, context) => {
1318
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1319
+ return de_CommandError(output, context);
1320
+ }
1321
+ const contents = map({
1322
+ $metadata: deserializeMetadata(output),
1323
+ });
1324
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1325
+ const doc = take(data, {
1326
+ arn: __expectString,
1327
+ createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1328
+ customerEncryptionKeyArn: __expectString,
1329
+ definition: (_) => de_FlowDefinition(_, context),
1330
+ description: __expectString,
1331
+ executionRoleArn: __expectString,
1332
+ id: __expectString,
1333
+ name: __expectString,
1334
+ status: __expectString,
1335
+ updatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1336
+ validations: _json,
1337
+ version: __expectString,
1338
+ });
1339
+ Object.assign(contents, doc);
1340
+ return contents;
1341
+ };
1342
+ export const de_GetFlowAliasCommand = async (output, context) => {
1343
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1344
+ return de_CommandError(output, context);
1345
+ }
1346
+ const contents = map({
1347
+ $metadata: deserializeMetadata(output),
1348
+ });
1349
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1350
+ const doc = take(data, {
1351
+ arn: __expectString,
1352
+ createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1353
+ description: __expectString,
1354
+ flowId: __expectString,
1355
+ id: __expectString,
1356
+ name: __expectString,
1357
+ routingConfiguration: _json,
1358
+ updatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1359
+ });
1360
+ Object.assign(contents, doc);
1361
+ return contents;
1362
+ };
1363
+ export const de_GetFlowVersionCommand = async (output, context) => {
1364
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1365
+ return de_CommandError(output, context);
1366
+ }
1367
+ const contents = map({
1368
+ $metadata: deserializeMetadata(output),
1369
+ });
1370
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1371
+ const doc = take(data, {
1372
+ arn: __expectString,
1373
+ createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1374
+ customerEncryptionKeyArn: __expectString,
1375
+ definition: (_) => de_FlowDefinition(_, context),
1376
+ description: __expectString,
1377
+ executionRoleArn: __expectString,
1378
+ id: __expectString,
1379
+ name: __expectString,
1380
+ status: __expectString,
1381
+ version: __expectString,
1382
+ });
1383
+ Object.assign(contents, doc);
1384
+ return contents;
1385
+ };
1386
+ export const de_GetIngestionJobCommand = async (output, context) => {
1387
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1388
+ return de_CommandError(output, context);
1389
+ }
1390
+ const contents = map({
1391
+ $metadata: deserializeMetadata(output),
1392
+ });
1393
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1394
+ const doc = take(data, {
1395
+ ingestionJob: (_) => de_IngestionJob(_, context),
1396
+ });
1397
+ Object.assign(contents, doc);
1398
+ return contents;
1399
+ };
1400
+ export const de_GetKnowledgeBaseCommand = async (output, context) => {
1401
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1402
+ return de_CommandError(output, context);
1403
+ }
1404
+ const contents = map({
1405
+ $metadata: deserializeMetadata(output),
1406
+ });
1407
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1408
+ const doc = take(data, {
1409
+ knowledgeBase: (_) => de_KnowledgeBase(_, context),
1410
+ });
1411
+ Object.assign(contents, doc);
1412
+ return contents;
1413
+ };
1414
+ export const de_GetPromptCommand = async (output, context) => {
1415
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1416
+ return de_CommandError(output, context);
1417
+ }
1418
+ const contents = map({
1419
+ $metadata: deserializeMetadata(output),
1420
+ });
1421
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1422
+ const doc = take(data, {
1423
+ arn: __expectString,
1424
+ createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1425
+ customerEncryptionKeyArn: __expectString,
1426
+ defaultVariant: __expectString,
1427
+ description: __expectString,
1428
+ id: __expectString,
1429
+ name: __expectString,
1430
+ updatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1431
+ variants: (_) => de_PromptVariantList(_, context),
1432
+ version: __expectString,
1433
+ });
1434
+ Object.assign(contents, doc);
1435
+ return contents;
1436
+ };
1437
+ export const de_ListAgentActionGroupsCommand = async (output, context) => {
827
1438
  if (output.statusCode !== 200 && output.statusCode >= 300) {
828
1439
  return de_CommandError(output, context);
829
1440
  }
@@ -832,12 +1443,13 @@ export const de_GetAgentVersionCommand = async (output, context) => {
832
1443
  });
833
1444
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
834
1445
  const doc = take(data, {
835
- agentVersion: (_) => de_AgentVersion(_, context),
1446
+ actionGroupSummaries: (_) => de_ActionGroupSummaries(_, context),
1447
+ nextToken: __expectString,
836
1448
  });
837
1449
  Object.assign(contents, doc);
838
1450
  return contents;
839
1451
  };
840
- export const de_GetDataSourceCommand = async (output, context) => {
1452
+ export const de_ListAgentAliasesCommand = async (output, context) => {
841
1453
  if (output.statusCode !== 200 && output.statusCode >= 300) {
842
1454
  return de_CommandError(output, context);
843
1455
  }
@@ -846,12 +1458,13 @@ export const de_GetDataSourceCommand = async (output, context) => {
846
1458
  });
847
1459
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
848
1460
  const doc = take(data, {
849
- dataSource: (_) => de_DataSource(_, context),
1461
+ agentAliasSummaries: (_) => de_AgentAliasSummaries(_, context),
1462
+ nextToken: __expectString,
850
1463
  });
851
1464
  Object.assign(contents, doc);
852
1465
  return contents;
853
1466
  };
854
- export const de_GetIngestionJobCommand = async (output, context) => {
1467
+ export const de_ListAgentKnowledgeBasesCommand = async (output, context) => {
855
1468
  if (output.statusCode !== 200 && output.statusCode >= 300) {
856
1469
  return de_CommandError(output, context);
857
1470
  }
@@ -860,12 +1473,13 @@ export const de_GetIngestionJobCommand = async (output, context) => {
860
1473
  });
861
1474
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
862
1475
  const doc = take(data, {
863
- ingestionJob: (_) => de_IngestionJob(_, context),
1476
+ agentKnowledgeBaseSummaries: (_) => de_AgentKnowledgeBaseSummaries(_, context),
1477
+ nextToken: __expectString,
864
1478
  });
865
1479
  Object.assign(contents, doc);
866
1480
  return contents;
867
1481
  };
868
- export const de_GetKnowledgeBaseCommand = async (output, context) => {
1482
+ export const de_ListAgentsCommand = async (output, context) => {
869
1483
  if (output.statusCode !== 200 && output.statusCode >= 300) {
870
1484
  return de_CommandError(output, context);
871
1485
  }
@@ -874,12 +1488,13 @@ export const de_GetKnowledgeBaseCommand = async (output, context) => {
874
1488
  });
875
1489
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
876
1490
  const doc = take(data, {
877
- knowledgeBase: (_) => de_KnowledgeBase(_, context),
1491
+ agentSummaries: (_) => de_AgentSummaries(_, context),
1492
+ nextToken: __expectString,
878
1493
  });
879
1494
  Object.assign(contents, doc);
880
1495
  return contents;
881
1496
  };
882
- export const de_ListAgentActionGroupsCommand = async (output, context) => {
1497
+ export const de_ListAgentVersionsCommand = async (output, context) => {
883
1498
  if (output.statusCode !== 200 && output.statusCode >= 300) {
884
1499
  return de_CommandError(output, context);
885
1500
  }
@@ -888,13 +1503,13 @@ export const de_ListAgentActionGroupsCommand = async (output, context) => {
888
1503
  });
889
1504
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
890
1505
  const doc = take(data, {
891
- actionGroupSummaries: (_) => de_ActionGroupSummaries(_, context),
1506
+ agentVersionSummaries: (_) => de_AgentVersionSummaries(_, context),
892
1507
  nextToken: __expectString,
893
1508
  });
894
1509
  Object.assign(contents, doc);
895
1510
  return contents;
896
1511
  };
897
- export const de_ListAgentAliasesCommand = async (output, context) => {
1512
+ export const de_ListDataSourcesCommand = async (output, context) => {
898
1513
  if (output.statusCode !== 200 && output.statusCode >= 300) {
899
1514
  return de_CommandError(output, context);
900
1515
  }
@@ -903,13 +1518,13 @@ export const de_ListAgentAliasesCommand = async (output, context) => {
903
1518
  });
904
1519
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
905
1520
  const doc = take(data, {
906
- agentAliasSummaries: (_) => de_AgentAliasSummaries(_, context),
1521
+ dataSourceSummaries: (_) => de_DataSourceSummaries(_, context),
907
1522
  nextToken: __expectString,
908
1523
  });
909
1524
  Object.assign(contents, doc);
910
1525
  return contents;
911
1526
  };
912
- export const de_ListAgentKnowledgeBasesCommand = async (output, context) => {
1527
+ export const de_ListFlowAliasesCommand = async (output, context) => {
913
1528
  if (output.statusCode !== 200 && output.statusCode >= 300) {
914
1529
  return de_CommandError(output, context);
915
1530
  }
@@ -918,13 +1533,13 @@ export const de_ListAgentKnowledgeBasesCommand = async (output, context) => {
918
1533
  });
919
1534
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
920
1535
  const doc = take(data, {
921
- agentKnowledgeBaseSummaries: (_) => de_AgentKnowledgeBaseSummaries(_, context),
1536
+ flowAliasSummaries: (_) => de_FlowAliasSummaries(_, context),
922
1537
  nextToken: __expectString,
923
1538
  });
924
1539
  Object.assign(contents, doc);
925
1540
  return contents;
926
1541
  };
927
- export const de_ListAgentsCommand = async (output, context) => {
1542
+ export const de_ListFlowsCommand = async (output, context) => {
928
1543
  if (output.statusCode !== 200 && output.statusCode >= 300) {
929
1544
  return de_CommandError(output, context);
930
1545
  }
@@ -933,13 +1548,13 @@ export const de_ListAgentsCommand = async (output, context) => {
933
1548
  });
934
1549
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
935
1550
  const doc = take(data, {
936
- agentSummaries: (_) => de_AgentSummaries(_, context),
1551
+ flowSummaries: (_) => de_FlowSummaries(_, context),
937
1552
  nextToken: __expectString,
938
1553
  });
939
1554
  Object.assign(contents, doc);
940
1555
  return contents;
941
1556
  };
942
- export const de_ListAgentVersionsCommand = async (output, context) => {
1557
+ export const de_ListFlowVersionsCommand = async (output, context) => {
943
1558
  if (output.statusCode !== 200 && output.statusCode >= 300) {
944
1559
  return de_CommandError(output, context);
945
1560
  }
@@ -948,13 +1563,13 @@ export const de_ListAgentVersionsCommand = async (output, context) => {
948
1563
  });
949
1564
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
950
1565
  const doc = take(data, {
951
- agentVersionSummaries: (_) => de_AgentVersionSummaries(_, context),
1566
+ flowVersionSummaries: (_) => de_FlowVersionSummaries(_, context),
952
1567
  nextToken: __expectString,
953
1568
  });
954
1569
  Object.assign(contents, doc);
955
1570
  return contents;
956
1571
  };
957
- export const de_ListDataSourcesCommand = async (output, context) => {
1572
+ export const de_ListIngestionJobsCommand = async (output, context) => {
958
1573
  if (output.statusCode !== 200 && output.statusCode >= 300) {
959
1574
  return de_CommandError(output, context);
960
1575
  }
@@ -963,13 +1578,13 @@ export const de_ListDataSourcesCommand = async (output, context) => {
963
1578
  });
964
1579
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
965
1580
  const doc = take(data, {
966
- dataSourceSummaries: (_) => de_DataSourceSummaries(_, context),
1581
+ ingestionJobSummaries: (_) => de_IngestionJobSummaries(_, context),
967
1582
  nextToken: __expectString,
968
1583
  });
969
1584
  Object.assign(contents, doc);
970
1585
  return contents;
971
1586
  };
972
- export const de_ListIngestionJobsCommand = async (output, context) => {
1587
+ export const de_ListKnowledgeBasesCommand = async (output, context) => {
973
1588
  if (output.statusCode !== 200 && output.statusCode >= 300) {
974
1589
  return de_CommandError(output, context);
975
1590
  }
@@ -978,13 +1593,13 @@ export const de_ListIngestionJobsCommand = async (output, context) => {
978
1593
  });
979
1594
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
980
1595
  const doc = take(data, {
981
- ingestionJobSummaries: (_) => de_IngestionJobSummaries(_, context),
1596
+ knowledgeBaseSummaries: (_) => de_KnowledgeBaseSummaries(_, context),
982
1597
  nextToken: __expectString,
983
1598
  });
984
1599
  Object.assign(contents, doc);
985
1600
  return contents;
986
1601
  };
987
- export const de_ListKnowledgeBasesCommand = async (output, context) => {
1602
+ export const de_ListPromptsCommand = async (output, context) => {
988
1603
  if (output.statusCode !== 200 && output.statusCode >= 300) {
989
1604
  return de_CommandError(output, context);
990
1605
  }
@@ -993,8 +1608,8 @@ export const de_ListKnowledgeBasesCommand = async (output, context) => {
993
1608
  });
994
1609
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
995
1610
  const doc = take(data, {
996
- knowledgeBaseSummaries: (_) => de_KnowledgeBaseSummaries(_, context),
997
1611
  nextToken: __expectString,
1612
+ promptSummaries: (_) => de_PromptSummaries(_, context),
998
1613
  });
999
1614
  Object.assign(contents, doc);
1000
1615
  return contents;
@@ -1030,6 +1645,21 @@ export const de_PrepareAgentCommand = async (output, context) => {
1030
1645
  Object.assign(contents, doc);
1031
1646
  return contents;
1032
1647
  };
1648
+ export const de_PrepareFlowCommand = async (output, context) => {
1649
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
1650
+ return de_CommandError(output, context);
1651
+ }
1652
+ const contents = map({
1653
+ $metadata: deserializeMetadata(output),
1654
+ });
1655
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1656
+ const doc = take(data, {
1657
+ id: __expectString,
1658
+ status: __expectString,
1659
+ });
1660
+ Object.assign(contents, doc);
1661
+ return contents;
1662
+ };
1033
1663
  export const de_StartIngestionJobCommand = async (output, context) => {
1034
1664
  if (output.statusCode !== 202 && output.statusCode >= 300) {
1035
1665
  return de_CommandError(output, context);
@@ -1134,6 +1764,51 @@ export const de_UpdateDataSourceCommand = async (output, context) => {
1134
1764
  Object.assign(contents, doc);
1135
1765
  return contents;
1136
1766
  };
1767
+ export const de_UpdateFlowCommand = async (output, context) => {
1768
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1769
+ return de_CommandError(output, context);
1770
+ }
1771
+ const contents = map({
1772
+ $metadata: deserializeMetadata(output),
1773
+ });
1774
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1775
+ const doc = take(data, {
1776
+ arn: __expectString,
1777
+ createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1778
+ customerEncryptionKeyArn: __expectString,
1779
+ definition: (_) => de_FlowDefinition(_, context),
1780
+ description: __expectString,
1781
+ executionRoleArn: __expectString,
1782
+ id: __expectString,
1783
+ name: __expectString,
1784
+ status: __expectString,
1785
+ updatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1786
+ version: __expectString,
1787
+ });
1788
+ Object.assign(contents, doc);
1789
+ return contents;
1790
+ };
1791
+ export const de_UpdateFlowAliasCommand = async (output, context) => {
1792
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1793
+ return de_CommandError(output, context);
1794
+ }
1795
+ const contents = map({
1796
+ $metadata: deserializeMetadata(output),
1797
+ });
1798
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1799
+ const doc = take(data, {
1800
+ arn: __expectString,
1801
+ createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1802
+ description: __expectString,
1803
+ flowId: __expectString,
1804
+ id: __expectString,
1805
+ name: __expectString,
1806
+ routingConfiguration: _json,
1807
+ updatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1808
+ });
1809
+ Object.assign(contents, doc);
1810
+ return contents;
1811
+ };
1137
1812
  export const de_UpdateKnowledgeBaseCommand = async (output, context) => {
1138
1813
  if (output.statusCode !== 202 && output.statusCode >= 300) {
1139
1814
  return de_CommandError(output, context);
@@ -1148,6 +1823,29 @@ export const de_UpdateKnowledgeBaseCommand = async (output, context) => {
1148
1823
  Object.assign(contents, doc);
1149
1824
  return contents;
1150
1825
  };
1826
+ export const de_UpdatePromptCommand = async (output, context) => {
1827
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1828
+ return de_CommandError(output, context);
1829
+ }
1830
+ const contents = map({
1831
+ $metadata: deserializeMetadata(output),
1832
+ });
1833
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1834
+ const doc = take(data, {
1835
+ arn: __expectString,
1836
+ createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1837
+ customerEncryptionKeyArn: __expectString,
1838
+ defaultVariant: __expectString,
1839
+ description: __expectString,
1840
+ id: __expectString,
1841
+ name: __expectString,
1842
+ updatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1843
+ variants: (_) => de_PromptVariantList(_, context),
1844
+ version: __expectString,
1845
+ });
1846
+ Object.assign(contents, doc);
1847
+ return contents;
1848
+ };
1151
1849
  const de_CommandError = async (output, context) => {
1152
1850
  const parsedOutput = {
1153
1851
  ...output,
@@ -1278,6 +1976,45 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
1278
1976
  });
1279
1977
  return __decorateServiceException(exception, parsedOutput.body);
1280
1978
  };
1979
+ const se_FlowDefinition = (input, context) => {
1980
+ return take(input, {
1981
+ connections: _json,
1982
+ nodes: (_) => se_FlowNodes(_, context),
1983
+ });
1984
+ };
1985
+ const se_FlowNode = (input, context) => {
1986
+ return take(input, {
1987
+ configuration: (_) => se_FlowNodeConfiguration(_, context),
1988
+ inputs: _json,
1989
+ name: [],
1990
+ outputs: _json,
1991
+ type: [],
1992
+ });
1993
+ };
1994
+ const se_FlowNodeConfiguration = (input, context) => {
1995
+ return FlowNodeConfiguration.visit(input, {
1996
+ agent: (value) => ({ agent: _json(value) }),
1997
+ collector: (value) => ({ collector: _json(value) }),
1998
+ condition: (value) => ({ condition: _json(value) }),
1999
+ input: (value) => ({ input: _json(value) }),
2000
+ iterator: (value) => ({ iterator: _json(value) }),
2001
+ knowledgeBase: (value) => ({ knowledgeBase: _json(value) }),
2002
+ lambdaFunction: (value) => ({ lambdaFunction: _json(value) }),
2003
+ lex: (value) => ({ lex: _json(value) }),
2004
+ output: (value) => ({ output: _json(value) }),
2005
+ prompt: (value) => ({ prompt: se_PromptFlowNodeConfiguration(value, context) }),
2006
+ retrieval: (value) => ({ retrieval: _json(value) }),
2007
+ storage: (value) => ({ storage: _json(value) }),
2008
+ _: (name, value) => ({ name: value }),
2009
+ });
2010
+ };
2011
+ const se_FlowNodes = (input, context) => {
2012
+ return input
2013
+ .filter((e) => e != null)
2014
+ .map((entry) => {
2015
+ return se_FlowNode(entry, context);
2016
+ });
2017
+ };
1281
2018
  const se_InferenceConfiguration = (input, context) => {
1282
2019
  return take(input, {
1283
2020
  maximumLength: [],
@@ -1304,12 +2041,63 @@ const se_PromptConfigurations = (input, context) => {
1304
2041
  return se_PromptConfiguration(entry, context);
1305
2042
  });
1306
2043
  };
2044
+ const se_PromptFlowNodeConfiguration = (input, context) => {
2045
+ return take(input, {
2046
+ sourceConfiguration: (_) => se_PromptFlowNodeSourceConfiguration(_, context),
2047
+ });
2048
+ };
2049
+ const se_PromptFlowNodeInlineConfiguration = (input, context) => {
2050
+ return take(input, {
2051
+ inferenceConfiguration: (_) => se_PromptInferenceConfiguration(_, context),
2052
+ modelId: [],
2053
+ templateConfiguration: _json,
2054
+ templateType: [],
2055
+ });
2056
+ };
2057
+ const se_PromptFlowNodeSourceConfiguration = (input, context) => {
2058
+ return PromptFlowNodeSourceConfiguration.visit(input, {
2059
+ inline: (value) => ({ inline: se_PromptFlowNodeInlineConfiguration(value, context) }),
2060
+ resource: (value) => ({ resource: _json(value) }),
2061
+ _: (name, value) => ({ name: value }),
2062
+ });
2063
+ };
2064
+ const se_PromptInferenceConfiguration = (input, context) => {
2065
+ return PromptInferenceConfiguration.visit(input, {
2066
+ text: (value) => ({ text: se_PromptModelInferenceConfiguration(value, context) }),
2067
+ _: (name, value) => ({ name: value }),
2068
+ });
2069
+ };
2070
+ const se_PromptModelInferenceConfiguration = (input, context) => {
2071
+ return take(input, {
2072
+ maxTokens: [],
2073
+ stopSequences: _json,
2074
+ temperature: __serializeFloat,
2075
+ topK: [],
2076
+ topP: __serializeFloat,
2077
+ });
2078
+ };
1307
2079
  const se_PromptOverrideConfiguration = (input, context) => {
1308
2080
  return take(input, {
1309
2081
  overrideLambda: [],
1310
2082
  promptConfigurations: (_) => se_PromptConfigurations(_, context),
1311
2083
  });
1312
2084
  };
2085
+ const se_PromptVariant = (input, context) => {
2086
+ return take(input, {
2087
+ inferenceConfiguration: (_) => se_PromptInferenceConfiguration(_, context),
2088
+ modelId: [],
2089
+ name: [],
2090
+ templateConfiguration: _json,
2091
+ templateType: [],
2092
+ });
2093
+ };
2094
+ const se_PromptVariantList = (input, context) => {
2095
+ return input
2096
+ .filter((e) => e != null)
2097
+ .map((entry) => {
2098
+ return se_PromptVariant(entry, context);
2099
+ });
2100
+ };
1313
2101
  const de_ActionGroupSummaries = (output, context) => {
1314
2102
  const retVal = (output || [])
1315
2103
  .filter((e) => e != null)
@@ -1344,6 +2132,7 @@ const de_Agent = (output, context) => {
1344
2132
  guardrailConfiguration: _json,
1345
2133
  idleSessionTTLInSeconds: __expectInt32,
1346
2134
  instruction: __expectString,
2135
+ memoryConfiguration: _json,
1347
2136
  preparedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1348
2137
  promptOverrideConfiguration: (_) => de_PromptOverrideConfiguration(_, context),
1349
2138
  recommendedActions: _json,
@@ -1478,6 +2267,7 @@ const de_AgentVersion = (output, context) => {
1478
2267
  guardrailConfiguration: _json,
1479
2268
  idleSessionTTLInSeconds: __expectInt32,
1480
2269
  instruction: __expectString,
2270
+ memoryConfiguration: _json,
1481
2271
  promptOverrideConfiguration: (_) => de_PromptOverrideConfiguration(_, context),
1482
2272
  recommendedActions: _json,
1483
2273
  updatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
@@ -1537,6 +2327,149 @@ const de_DataSourceSummary = (output, context) => {
1537
2327
  updatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
1538
2328
  });
1539
2329
  };
2330
+ const de_FlowAliasSummaries = (output, context) => {
2331
+ const retVal = (output || [])
2332
+ .filter((e) => e != null)
2333
+ .map((entry) => {
2334
+ return de_FlowAliasSummary(entry, context);
2335
+ });
2336
+ return retVal;
2337
+ };
2338
+ const de_FlowAliasSummary = (output, context) => {
2339
+ return take(output, {
2340
+ arn: __expectString,
2341
+ createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
2342
+ description: __expectString,
2343
+ flowId: __expectString,
2344
+ id: __expectString,
2345
+ name: __expectString,
2346
+ routingConfiguration: _json,
2347
+ updatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
2348
+ });
2349
+ };
2350
+ const de_FlowDefinition = (output, context) => {
2351
+ return take(output, {
2352
+ connections: _json,
2353
+ nodes: (_) => de_FlowNodes(_, context),
2354
+ });
2355
+ };
2356
+ const de_FlowNode = (output, context) => {
2357
+ return take(output, {
2358
+ configuration: (_) => de_FlowNodeConfiguration(__expectUnion(_), context),
2359
+ inputs: _json,
2360
+ name: __expectString,
2361
+ outputs: _json,
2362
+ type: __expectString,
2363
+ });
2364
+ };
2365
+ const de_FlowNodeConfiguration = (output, context) => {
2366
+ if (output.agent != null) {
2367
+ return {
2368
+ agent: _json(output.agent),
2369
+ };
2370
+ }
2371
+ if (output.collector != null) {
2372
+ return {
2373
+ collector: _json(output.collector),
2374
+ };
2375
+ }
2376
+ if (output.condition != null) {
2377
+ return {
2378
+ condition: _json(output.condition),
2379
+ };
2380
+ }
2381
+ if (output.input != null) {
2382
+ return {
2383
+ input: _json(output.input),
2384
+ };
2385
+ }
2386
+ if (output.iterator != null) {
2387
+ return {
2388
+ iterator: _json(output.iterator),
2389
+ };
2390
+ }
2391
+ if (output.knowledgeBase != null) {
2392
+ return {
2393
+ knowledgeBase: _json(output.knowledgeBase),
2394
+ };
2395
+ }
2396
+ if (output.lambdaFunction != null) {
2397
+ return {
2398
+ lambdaFunction: _json(output.lambdaFunction),
2399
+ };
2400
+ }
2401
+ if (output.lex != null) {
2402
+ return {
2403
+ lex: _json(output.lex),
2404
+ };
2405
+ }
2406
+ if (output.output != null) {
2407
+ return {
2408
+ output: _json(output.output),
2409
+ };
2410
+ }
2411
+ if (output.prompt != null) {
2412
+ return {
2413
+ prompt: de_PromptFlowNodeConfiguration(output.prompt, context),
2414
+ };
2415
+ }
2416
+ if (output.retrieval != null) {
2417
+ return {
2418
+ retrieval: _json(output.retrieval),
2419
+ };
2420
+ }
2421
+ if (output.storage != null) {
2422
+ return {
2423
+ storage: _json(output.storage),
2424
+ };
2425
+ }
2426
+ return { $unknown: Object.entries(output)[0] };
2427
+ };
2428
+ const de_FlowNodes = (output, context) => {
2429
+ const retVal = (output || [])
2430
+ .filter((e) => e != null)
2431
+ .map((entry) => {
2432
+ return de_FlowNode(entry, context);
2433
+ });
2434
+ return retVal;
2435
+ };
2436
+ const de_FlowSummaries = (output, context) => {
2437
+ const retVal = (output || [])
2438
+ .filter((e) => e != null)
2439
+ .map((entry) => {
2440
+ return de_FlowSummary(entry, context);
2441
+ });
2442
+ return retVal;
2443
+ };
2444
+ const de_FlowSummary = (output, context) => {
2445
+ return take(output, {
2446
+ arn: __expectString,
2447
+ createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
2448
+ description: __expectString,
2449
+ id: __expectString,
2450
+ name: __expectString,
2451
+ status: __expectString,
2452
+ updatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
2453
+ version: __expectString,
2454
+ });
2455
+ };
2456
+ const de_FlowVersionSummaries = (output, context) => {
2457
+ const retVal = (output || [])
2458
+ .filter((e) => e != null)
2459
+ .map((entry) => {
2460
+ return de_FlowVersionSummary(entry, context);
2461
+ });
2462
+ return retVal;
2463
+ };
2464
+ const de_FlowVersionSummary = (output, context) => {
2465
+ return take(output, {
2466
+ arn: __expectString,
2467
+ createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
2468
+ id: __expectString,
2469
+ status: __expectString,
2470
+ version: __expectString,
2471
+ });
2472
+ };
1540
2473
  const de_InferenceConfiguration = (output, context) => {
1541
2474
  return take(output, {
1542
2475
  maximumLength: __expectInt32,
@@ -1629,12 +2562,91 @@ const de_PromptConfigurations = (output, context) => {
1629
2562
  });
1630
2563
  return retVal;
1631
2564
  };
2565
+ const de_PromptFlowNodeConfiguration = (output, context) => {
2566
+ return take(output, {
2567
+ sourceConfiguration: (_) => de_PromptFlowNodeSourceConfiguration(__expectUnion(_), context),
2568
+ });
2569
+ };
2570
+ const de_PromptFlowNodeInlineConfiguration = (output, context) => {
2571
+ return take(output, {
2572
+ inferenceConfiguration: (_) => de_PromptInferenceConfiguration(__expectUnion(_), context),
2573
+ modelId: __expectString,
2574
+ templateConfiguration: (_) => _json(__expectUnion(_)),
2575
+ templateType: __expectString,
2576
+ });
2577
+ };
2578
+ const de_PromptFlowNodeSourceConfiguration = (output, context) => {
2579
+ if (output.inline != null) {
2580
+ return {
2581
+ inline: de_PromptFlowNodeInlineConfiguration(output.inline, context),
2582
+ };
2583
+ }
2584
+ if (output.resource != null) {
2585
+ return {
2586
+ resource: _json(output.resource),
2587
+ };
2588
+ }
2589
+ return { $unknown: Object.entries(output)[0] };
2590
+ };
2591
+ const de_PromptInferenceConfiguration = (output, context) => {
2592
+ if (output.text != null) {
2593
+ return {
2594
+ text: de_PromptModelInferenceConfiguration(output.text, context),
2595
+ };
2596
+ }
2597
+ return { $unknown: Object.entries(output)[0] };
2598
+ };
2599
+ const de_PromptModelInferenceConfiguration = (output, context) => {
2600
+ return take(output, {
2601
+ maxTokens: __expectInt32,
2602
+ stopSequences: _json,
2603
+ temperature: __limitedParseFloat32,
2604
+ topK: __expectInt32,
2605
+ topP: __limitedParseFloat32,
2606
+ });
2607
+ };
1632
2608
  const de_PromptOverrideConfiguration = (output, context) => {
1633
2609
  return take(output, {
1634
2610
  overrideLambda: __expectString,
1635
2611
  promptConfigurations: (_) => de_PromptConfigurations(_, context),
1636
2612
  });
1637
2613
  };
2614
+ const de_PromptSummaries = (output, context) => {
2615
+ const retVal = (output || [])
2616
+ .filter((e) => e != null)
2617
+ .map((entry) => {
2618
+ return de_PromptSummary(entry, context);
2619
+ });
2620
+ return retVal;
2621
+ };
2622
+ const de_PromptSummary = (output, context) => {
2623
+ return take(output, {
2624
+ arn: __expectString,
2625
+ createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
2626
+ description: __expectString,
2627
+ id: __expectString,
2628
+ name: __expectString,
2629
+ updatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
2630
+ version: __expectString,
2631
+ });
2632
+ };
2633
+ const de_PromptVariant = (output, context) => {
2634
+ return take(output, {
2635
+ inferenceConfiguration: (_) => de_PromptInferenceConfiguration(__expectUnion(_), context),
2636
+ modelId: __expectString,
2637
+ name: __expectString,
2638
+ templateConfiguration: (_) => _json(__expectUnion(_)),
2639
+ templateType: __expectString,
2640
+ });
2641
+ };
2642
+ const de_PromptVariantList = (output, context) => {
2643
+ const retVal = (output || [])
2644
+ .filter((e) => e != null)
2645
+ .map((entry) => {
2646
+ return de_PromptVariant(entry, context);
2647
+ });
2648
+ return retVal;
2649
+ };
1638
2650
  const deserializeMetadata = (output) => ({
1639
2651
  httpStatusCode: output.statusCode,
1640
2652
  requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
@@ -1647,5 +2659,9 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
1647
2659
  value !== "" &&
1648
2660
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
1649
2661
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
2662
+ const _mR = "maxResults";
2663
+ const _nT = "nextToken";
2664
+ const _pI = "promptIdentifier";
2665
+ const _pV = "promptVersion";
1650
2666
  const _sRIUC = "skipResourceInUseCheck";
1651
2667
  const _tK = "tagKeys";