Skip to content

Commit e7c6ed5

Browse files
author
awstools
committed
feat(client-qbusiness): Add a new field in chat response. This field can be used to support nested schemas in array fields
1 parent 568714e commit e7c6ed5

File tree

7 files changed

+28
-1
lines changed

7 files changed

+28
-1
lines changed

clients/client-qbusiness/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Amazon Q Business</a>
4848

4949
## Installing
5050

51-
To install the this package, simply type add or install @aws-sdk/client-qbusiness
51+
To install this package, simply type add or install @aws-sdk/client-qbusiness
5252
using your favorite package manager:
5353

5454
- `npm install @aws-sdk/client-qbusiness`

clients/client-qbusiness/src/commands/ChatCommand.ts

+1
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ export interface ChatCommandOutput extends ChatOutput, __MetadataBearer {}
215215
* // },
216216
* // ],
217217
* // allowedFormat: "STRING_VALUE",
218+
* // arrayItemJsonSchema: "DOCUMENT_VALUE",
218219
* // required: true || false,
219220
* // },
220221
* // },

clients/client-qbusiness/src/commands/ChatSyncCommand.ts

+1
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ export interface ChatSyncCommandOutput extends ChatSyncOutput, __MetadataBearer
177177
* // },
178178
* // ],
179179
* // allowedFormat: "STRING_VALUE",
180+
* // arrayItemJsonSchema: "DOCUMENT_VALUE",
180181
* // required: true || false,
181182
* // },
182183
* // },

clients/client-qbusiness/src/commands/ListMessagesCommand.ts

+1
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ export interface ListMessagesCommandOutput extends ListMessagesResponse, __Metad
9696
* // },
9797
* // ],
9898
* // allowedFormat: "STRING_VALUE",
99+
* // arrayItemJsonSchema: "DOCUMENT_VALUE",
99100
* // required: true || false,
100101
* // },
101102
* // },

clients/client-qbusiness/src/models/models_0.ts

+7
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,13 @@ export interface ActionReviewPayloadField {
362362
*/
363363
allowedFormat?: string;
364364

365+
/**
366+
* <p>Use to create a custom form with array fields (fields with nested objects inside an
367+
* array). </p>
368+
* @public
369+
*/
370+
arrayItemJsonSchema?: __DocumentType;
371+
365372
/**
366373
* <p>Information about whether the field is required.</p>
367374
* @public

clients/client-qbusiness/src/protocols/Aws_restJson1.ts

+8
Original file line numberDiff line numberDiff line change
@@ -3586,6 +3586,7 @@ const de_ActionReviewPayloadField = (output: any, context: __SerdeContext): Acti
35863586
return take(output, {
35873587
allowedFormat: __expectString,
35883588
allowedValues: (_: any) => de_ActionReviewPayloadFieldAllowedValues(_, context),
3589+
arrayItemJsonSchema: (_: any) => de_ActionReviewPayloadFieldArrayItemJsonSchema(_, context),
35893590
displayDescription: __expectString,
35903591
displayName: __expectString,
35913592
displayOrder: __expectInt32,
@@ -3623,6 +3624,13 @@ const de_ActionReviewPayloadFieldAllowedValues = (
36233624
return retVal;
36243625
};
36253626

3627+
/**
3628+
* deserializeAws_restJson1ActionReviewPayloadFieldArrayItemJsonSchema
3629+
*/
3630+
const de_ActionReviewPayloadFieldArrayItemJsonSchema = (output: any, context: __SerdeContext): __DocumentType => {
3631+
return output;
3632+
};
3633+
36263634
// de_APISchema omitted.
36273635

36283636
/**

codegen/sdk-codegen/aws-models/qbusiness.json

+9
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,12 @@
363363
"smithy.api#documentation": "<p>The expected data format for the action review input field value. For example, in PTO\n request, <code>from</code> and <code>to</code> would be of <code>datetime</code> allowed\n format. </p>"
364364
}
365365
},
366+
"arrayItemJsonSchema": {
367+
"target": "com.amazonaws.qbusiness#ActionReviewPayloadFieldArrayItemJsonSchema",
368+
"traits": {
369+
"smithy.api#documentation": "<p>Use to create a custom form with array fields (fields with nested objects inside an\n array). </p>"
370+
}
371+
},
366372
"required": {
367373
"target": "smithy.api#Boolean",
368374
"traits": {
@@ -400,6 +406,9 @@
400406
"target": "com.amazonaws.qbusiness#ActionReviewPayloadFieldAllowedValue"
401407
}
402408
},
409+
"com.amazonaws.qbusiness#ActionReviewPayloadFieldArrayItemJsonSchema": {
410+
"type": "document"
411+
},
403412
"com.amazonaws.qbusiness#AmazonResourceName": {
404413
"type": "string",
405414
"traits": {

0 commit comments

Comments
 (0)