Skip to content

Commit d1b58bf

Browse files
authored
Merge pull request #908 from aws-amplify/main
chore(release): merge main to release
2 parents a7737f6 + eba466f commit d1b58bf

File tree

3 files changed

+10
-12
lines changed

3 files changed

+10
-12
lines changed

packages/amplify-codegen-e2e-tests/src/gen2-codegen-tests-base/commands.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,6 @@ export const sandboxDeploy = async (cwd: string, props: Gen2DeployProps = {}): P
103103
spawn(ampxCli, ['sandbox'], commandOptions)
104104
.wait('Watching for file changes...')
105105
.sendCtrlC()
106-
.wait('Would you like to delete all the resources in your sandbox environment')
107-
.sendLine('N')
108106
.runAsync();
109107
};
110108

packages/appsync-modelgen-plugin/src/__tests__/visitors/__snapshots__/appsync-model-introspection-visitor.test.ts.snap

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ exports[`Conversation Route Introspection Visitor Metadata snapshot should gener
182182
\\"role\\": {
183183
\\"name\\": \\"role\\",
184184
\\"type\\": {
185-
\\"enum\\": \\"ConversationParticipantRole\\"
185+
\\"enum\\": \\"AmplifyAIConversationParticipantRole\\"
186186
},
187187
\\"attributes\\": [],
188188
\\"isArray\\": false,
@@ -191,7 +191,7 @@ exports[`Conversation Route Introspection Visitor Metadata snapshot should gener
191191
\\"content\\": {
192192
\\"name\\": \\"content\\",
193193
\\"type\\": {
194-
\\"nonModel\\": \\"ContentBlock\\"
194+
\\"nonModel\\": \\"AmplifyAIContentBlock\\"
195195
},
196196
\\"attributes\\": [],
197197
\\"isArray\\": true,
@@ -207,7 +207,7 @@ exports[`Conversation Route Introspection Visitor Metadata snapshot should gener
207207
\\"toolConfiguration\\": {
208208
\\"name\\": \\"toolConfiguration\\",
209209
\\"type\\": {
210-
\\"nonModel\\": \\"ToolConfiguration\\"
210+
\\"nonModel\\": \\"AmplifyAIToolConfiguration\\"
211211
},
212212
\\"attributes\\": [],
213213
\\"isArray\\": true,
@@ -270,7 +270,7 @@ exports[`Conversation Route Introspection Visitor Metadata snapshot should gener
270270
\\"nonModels\\": {},
271271
\\"enums\\": {
272272
\\"ConversationParticipantRole\\": {
273-
\\"name\\": \\"ConversationParticipantRole\\",
273+
\\"name\\": \\"AmplifyAIConversationParticipantRole\\",
274274
\\"values\\": [
275275
\\"user\\",
276276
\\"assistant\\"
@@ -326,7 +326,7 @@ exports[`Conversation Route Introspection Visitor Metadata snapshot should gener
326326
\\"isRequired\\": false,
327327
\\"name\\": \\"onCreateAssistantResponsePirateChat\\",
328328
\\"type\\": {
329-
\\"nonModel\\": \\"ConversationMessageStreamPart\\"
329+
\\"nonModel\\": \\"AmplifyAIConversationMessageStreamPart\\"
330330
},
331331
\\"arguments\\": {
332332
\\"conversationId\\": {

packages/appsync-modelgen-plugin/src/utils/process-conversation.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export function processConversationRoute(
2626
nonModels: {},
2727
enums: {
2828
ConversationParticipantRole: {
29-
name: 'ConversationParticipantRole',
29+
name: 'AmplifyAIConversationParticipantRole',
3030
values: ['user', 'assistant'],
3131
}
3232
},
@@ -91,10 +91,10 @@ function generateConversationMessageModel(conversationModelName: string, modelNa
9191
id: generateField('id', 'ID', { isRequired: true }),
9292
conversationId: generateField('conversationId', 'ID', { isRequired: true }),
9393
conversation: generateConversationField(conversationModelName),
94-
role: generateField('role', { enum: 'ConversationParticipantRole' }),
95-
content: generateField('content', { nonModel: 'ContentBlock' }, { isArray: true }),
94+
role: generateField('role', { enum: 'AmplifyAIConversationParticipantRole' }),
95+
content: generateField('content', { nonModel: 'AmplifyAIContentBlock' }, { isArray: true }),
9696
aiContext: generateField('aiContext', 'AWSJSON'),
97-
toolConfiguration: generateField('toolConfiguration', { nonModel: 'ToolConfiguration' }, { isArray: true, isArrayNullable: true }),
97+
toolConfiguration: generateField('toolConfiguration', { nonModel: 'AmplifyAIToolConfiguration' }, { isArray: true, isArrayNullable: true }),
9898
createdAt: generateTimestampField('createdAt'),
9999
updatedAt: generateTimestampField('updatedAt'),
100100
},
@@ -185,7 +185,7 @@ function generateSubscriptionMetadata(routeName: string, modelName: string): Sch
185185
isArray: false,
186186
isRequired: false,
187187
name: `onCreateAssistantResponse${routeName}`,
188-
type: { nonModel: 'ConversationMessageStreamPart' },
188+
type: { nonModel: 'AmplifyAIConversationMessageStreamPart' },
189189
arguments: {
190190
'conversationId': {
191191
name: 'conversationId',

0 commit comments

Comments
 (0)