@aws/lsp-codewhisperer 0.0.3

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 (100) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/README.md +19 -0
  3. package/out/client/sigv4/codewhisperer.d.ts +3 -0
  4. package/out/client/sigv4/codewhisperer.js +14 -0
  5. package/out/client/sigv4/codewhisperer.js.map +1 -0
  6. package/out/client/sigv4/service.json +346 -0
  7. package/out/client/token/bearer-token-service.json +1627 -0
  8. package/out/client/token/codewhisperer.d.ts +14 -0
  9. package/out/client/token/codewhisperer.js +23 -0
  10. package/out/client/token/codewhisperer.js.map +1 -0
  11. package/out/index.d.ts +2 -0
  12. package/out/index.js +19 -0
  13. package/out/index.js.map +1 -0
  14. package/out/language-server/auto-trigger/autoTrigger.d.ts +38 -0
  15. package/out/language-server/auto-trigger/autoTrigger.js +119 -0
  16. package/out/language-server/auto-trigger/autoTrigger.js.map +1 -0
  17. package/out/language-server/auto-trigger/autoTrigger.test.d.ts +1 -0
  18. package/out/language-server/auto-trigger/autoTrigger.test.js +82 -0
  19. package/out/language-server/auto-trigger/autoTrigger.test.js.map +1 -0
  20. package/out/language-server/auto-trigger/coefficients.json +405 -0
  21. package/out/language-server/codeWhispererSecurityScanServer.d.ts +4 -0
  22. package/out/language-server/codeWhispererSecurityScanServer.js +76 -0
  23. package/out/language-server/codeWhispererSecurityScanServer.js.map +1 -0
  24. package/out/language-server/codeWhispererServer.d.ts +7 -0
  25. package/out/language-server/codeWhispererServer.js +425 -0
  26. package/out/language-server/codeWhispererServer.js.map +1 -0
  27. package/out/language-server/codeWhispererServer.test.d.ts +1 -0
  28. package/out/language-server/codeWhispererServer.test.js +1218 -0
  29. package/out/language-server/codeWhispererServer.test.js.map +1 -0
  30. package/out/language-server/codeWhispererService.d.ts +84 -0
  31. package/out/language-server/codeWhispererService.js +168 -0
  32. package/out/language-server/codeWhispererService.js.map +1 -0
  33. package/out/language-server/dependencyGraph/commonUtil.d.ts +2 -0
  34. package/out/language-server/dependencyGraph/commonUtil.js +20 -0
  35. package/out/language-server/dependencyGraph/commonUtil.js.map +1 -0
  36. package/out/language-server/dependencyGraph/constants.d.ts +2 -0
  37. package/out/language-server/dependencyGraph/constants.js +6 -0
  38. package/out/language-server/dependencyGraph/constants.js.map +1 -0
  39. package/out/language-server/dependencyGraph/csharpDependencyGraph.d.ts +27 -0
  40. package/out/language-server/dependencyGraph/csharpDependencyGraph.js +145 -0
  41. package/out/language-server/dependencyGraph/csharpDependencyGraph.js.map +1 -0
  42. package/out/language-server/dependencyGraph/csharpDependencyGraph.test.d.ts +1 -0
  43. package/out/language-server/dependencyGraph/csharpDependencyGraph.test.js +341 -0
  44. package/out/language-server/dependencyGraph/csharpDependencyGraph.test.js.map +1 -0
  45. package/out/language-server/dependencyGraph/dependencyGraph.d.ts +125 -0
  46. package/out/language-server/dependencyGraph/dependencyGraph.js +152 -0
  47. package/out/language-server/dependencyGraph/dependencyGraph.js.map +1 -0
  48. package/out/language-server/dependencyGraph/dependencyGraphFactory.d.ts +15 -0
  49. package/out/language-server/dependencyGraph/dependencyGraphFactory.js +22 -0
  50. package/out/language-server/dependencyGraph/dependencyGraphFactory.js.map +1 -0
  51. package/out/language-server/languageDetection.d.ts +3 -0
  52. package/out/language-server/languageDetection.js +56 -0
  53. package/out/language-server/languageDetection.js.map +1 -0
  54. package/out/language-server/mergeRightUtils.d.ts +6 -0
  55. package/out/language-server/mergeRightUtils.js +37 -0
  56. package/out/language-server/mergeRightUtils.js.map +1 -0
  57. package/out/language-server/mergeRightUtils.test.d.ts +1 -0
  58. package/out/language-server/mergeRightUtils.test.js +53 -0
  59. package/out/language-server/mergeRightUtils.test.js.map +1 -0
  60. package/out/language-server/proxy-server.d.ts +2 -0
  61. package/out/language-server/proxy-server.js +35 -0
  62. package/out/language-server/proxy-server.js.map +1 -0
  63. package/out/language-server/securityScan/securityScanHandler.d.ts +17 -0
  64. package/out/language-server/securityScan/securityScanHandler.js +139 -0
  65. package/out/language-server/securityScan/securityScanHandler.js.map +1 -0
  66. package/out/language-server/securityScan/securityScanHandler.test.d.ts +1 -0
  67. package/out/language-server/securityScan/securityScanHandler.test.js +170 -0
  68. package/out/language-server/securityScan/securityScanHandler.test.js.map +1 -0
  69. package/out/language-server/securityScan/types.d.ts +49 -0
  70. package/out/language-server/securityScan/types.js +3 -0
  71. package/out/language-server/securityScan/types.js.map +1 -0
  72. package/out/language-server/session/sessionManager.d.ts +91 -0
  73. package/out/language-server/session/sessionManager.js +234 -0
  74. package/out/language-server/session/sessionManager.js.map +1 -0
  75. package/out/language-server/session/sessionManager.test.d.ts +1 -0
  76. package/out/language-server/session/sessionManager.test.js +584 -0
  77. package/out/language-server/session/sessionManager.test.js.map +1 -0
  78. package/out/language-server/telemetry/codePercentage.d.ts +17 -0
  79. package/out/language-server/telemetry/codePercentage.js +82 -0
  80. package/out/language-server/telemetry/codePercentage.js.map +1 -0
  81. package/out/language-server/telemetry/codePercentage.test.d.ts +1 -0
  82. package/out/language-server/telemetry/codePercentage.test.js +85 -0
  83. package/out/language-server/telemetry/codePercentage.test.js.map +1 -0
  84. package/out/language-server/telemetry/types.d.ts +68 -0
  85. package/out/language-server/telemetry/types.js +3 -0
  86. package/out/language-server/telemetry/types.js.map +1 -0
  87. package/out/language-server/telemetry/userTriggerDecision.test.d.ts +1 -0
  88. package/out/language-server/telemetry/userTriggerDecision.test.js +946 -0
  89. package/out/language-server/telemetry/userTriggerDecision.test.js.map +1 -0
  90. package/out/language-server/telemetry.test.d.ts +1 -0
  91. package/out/language-server/telemetry.test.js +96 -0
  92. package/out/language-server/telemetry.test.js.map +1 -0
  93. package/out/language-server/testUtils.d.ts +69 -0
  94. package/out/language-server/testUtils.js +90 -0
  95. package/out/language-server/testUtils.js.map +1 -0
  96. package/out/language-server/utils.d.ts +6 -0
  97. package/out/language-server/utils.js +31 -0
  98. package/out/language-server/utils.js.map +1 -0
  99. package/package.json +53 -0
  100. package/script/generateServiceClient.ts +242 -0
@@ -0,0 +1,1627 @@
1
+ {
2
+ "version": "2.0",
3
+ "metadata": {
4
+ "apiVersion": "2022-11-11",
5
+ "endpointPrefix": "amazoncodewhispererservice",
6
+ "jsonVersion": "1.0",
7
+ "protocol": "json",
8
+ "serviceFullName": "Amazon CodeWhisperer",
9
+ "serviceId": "CodeWhispererRuntime",
10
+ "signingName": "amazoncodewhispererservice",
11
+ "targetPrefix": "AmazonCodeWhispererService",
12
+ "uid": "codewhispererruntime-2022-11-11"
13
+ },
14
+ "operations": {
15
+ "CreateArtifactUploadUrl": {
16
+ "name": "CreateArtifactUploadUrl",
17
+ "http": {
18
+ "method": "POST",
19
+ "requestUri": "/"
20
+ },
21
+ "input": { "shape": "CreateUploadUrlRequest" },
22
+ "output": { "shape": "CreateUploadUrlResponse" },
23
+ "errors": [
24
+ { "shape": "ThrottlingException" },
25
+ { "shape": "InternalServerException" },
26
+ { "shape": "ValidationException" },
27
+ { "shape": "AccessDeniedException" }
28
+ ],
29
+ "idempotent": true
30
+ },
31
+ "CreateTaskAssistConversation": {
32
+ "name": "CreateTaskAssistConversation",
33
+ "http": {
34
+ "method": "POST",
35
+ "requestUri": "/"
36
+ },
37
+ "input": { "shape": "CreateTaskAssistConversationRequest" },
38
+ "output": { "shape": "CreateTaskAssistConversationResponse" },
39
+ "errors": [
40
+ { "shape": "ThrottlingException" },
41
+ { "shape": "InternalServerException" },
42
+ { "shape": "ValidationException" },
43
+ { "shape": "AccessDeniedException" }
44
+ ]
45
+ },
46
+ "CreateUploadUrl": {
47
+ "name": "CreateUploadUrl",
48
+ "http": {
49
+ "method": "POST",
50
+ "requestUri": "/"
51
+ },
52
+ "input": { "shape": "CreateUploadUrlRequest" },
53
+ "output": { "shape": "CreateUploadUrlResponse" },
54
+ "errors": [
55
+ { "shape": "ThrottlingException" },
56
+ { "shape": "ConflictException" },
57
+ { "shape": "ResourceNotFoundException" },
58
+ { "shape": "InternalServerException" },
59
+ { "shape": "ValidationException" },
60
+ { "shape": "AccessDeniedException" }
61
+ ],
62
+ "idempotent": true
63
+ },
64
+ "DeleteTaskAssistConversation": {
65
+ "name": "DeleteTaskAssistConversation",
66
+ "http": {
67
+ "method": "POST",
68
+ "requestUri": "/"
69
+ },
70
+ "input": { "shape": "DeleteTaskAssistConversationRequest" },
71
+ "output": { "shape": "DeleteTaskAssistConversationResponse" },
72
+ "errors": [
73
+ { "shape": "ThrottlingException" },
74
+ { "shape": "ResourceNotFoundException" },
75
+ { "shape": "InternalServerException" },
76
+ { "shape": "ValidationException" },
77
+ { "shape": "AccessDeniedException" }
78
+ ]
79
+ },
80
+ "GenerateCompletions": {
81
+ "name": "GenerateCompletions",
82
+ "http": {
83
+ "method": "POST",
84
+ "requestUri": "/"
85
+ },
86
+ "input": { "shape": "GenerateCompletionsRequest" },
87
+ "output": { "shape": "GenerateCompletionsResponse" },
88
+ "errors": [
89
+ { "shape": "ThrottlingException" },
90
+ { "shape": "InternalServerException" },
91
+ { "shape": "ValidationException" },
92
+ { "shape": "AccessDeniedException" }
93
+ ]
94
+ },
95
+ "GetCodeAnalysis": {
96
+ "name": "GetCodeAnalysis",
97
+ "http": {
98
+ "method": "POST",
99
+ "requestUri": "/"
100
+ },
101
+ "input": { "shape": "GetCodeAnalysisRequest" },
102
+ "output": { "shape": "GetCodeAnalysisResponse" },
103
+ "errors": [
104
+ { "shape": "ThrottlingException" },
105
+ { "shape": "ResourceNotFoundException" },
106
+ { "shape": "InternalServerException" },
107
+ { "shape": "ValidationException" },
108
+ { "shape": "AccessDeniedException" }
109
+ ]
110
+ },
111
+ "GetTaskAssistCodeGeneration": {
112
+ "name": "GetTaskAssistCodeGeneration",
113
+ "http": {
114
+ "method": "POST",
115
+ "requestUri": "/"
116
+ },
117
+ "input": { "shape": "GetTaskAssistCodeGenerationRequest" },
118
+ "output": { "shape": "GetTaskAssistCodeGenerationResponse" },
119
+ "errors": [
120
+ { "shape": "ThrottlingException" },
121
+ { "shape": "ConflictException" },
122
+ { "shape": "ResourceNotFoundException" },
123
+ { "shape": "InternalServerException" },
124
+ { "shape": "ValidationException" },
125
+ { "shape": "AccessDeniedException" }
126
+ ]
127
+ },
128
+ "GetTransformation": {
129
+ "name": "GetTransformation",
130
+ "http": {
131
+ "method": "POST",
132
+ "requestUri": "/"
133
+ },
134
+ "input": { "shape": "GetTransformationRequest" },
135
+ "output": { "shape": "GetTransformationResponse" },
136
+ "errors": [
137
+ { "shape": "ThrottlingException" },
138
+ { "shape": "InternalServerException" },
139
+ { "shape": "ValidationException" },
140
+ { "shape": "AccessDeniedException" }
141
+ ]
142
+ },
143
+ "GetTransformationPlan": {
144
+ "name": "GetTransformationPlan",
145
+ "http": {
146
+ "method": "POST",
147
+ "requestUri": "/"
148
+ },
149
+ "input": { "shape": "GetTransformationPlanRequest" },
150
+ "output": { "shape": "GetTransformationPlanResponse" },
151
+ "errors": [
152
+ { "shape": "ThrottlingException" },
153
+ { "shape": "InternalServerException" },
154
+ { "shape": "ValidationException" },
155
+ { "shape": "AccessDeniedException" }
156
+ ]
157
+ },
158
+ "ListAvailableCustomizations": {
159
+ "name": "ListAvailableCustomizations",
160
+ "http": {
161
+ "method": "POST",
162
+ "requestUri": "/"
163
+ },
164
+ "input": { "shape": "ListAvailableCustomizationsRequest" },
165
+ "output": { "shape": "ListAvailableCustomizationsResponse" },
166
+ "errors": [
167
+ { "shape": "ThrottlingException" },
168
+ { "shape": "InternalServerException" },
169
+ { "shape": "ValidationException" },
170
+ { "shape": "AccessDeniedException" }
171
+ ]
172
+ },
173
+ "ListCodeAnalysisFindings": {
174
+ "name": "ListCodeAnalysisFindings",
175
+ "http": {
176
+ "method": "POST",
177
+ "requestUri": "/"
178
+ },
179
+ "input": { "shape": "ListCodeAnalysisFindingsRequest" },
180
+ "output": { "shape": "ListCodeAnalysisFindingsResponse" },
181
+ "errors": [
182
+ { "shape": "ThrottlingException" },
183
+ { "shape": "ResourceNotFoundException" },
184
+ { "shape": "InternalServerException" },
185
+ { "shape": "ValidationException" },
186
+ { "shape": "AccessDeniedException" }
187
+ ]
188
+ },
189
+ "ListFeatureEvaluations": {
190
+ "name": "ListFeatureEvaluations",
191
+ "http": {
192
+ "method": "POST",
193
+ "requestUri": "/"
194
+ },
195
+ "input": { "shape": "ListFeatureEvaluationsRequest" },
196
+ "output": { "shape": "ListFeatureEvaluationsResponse" },
197
+ "errors": [
198
+ { "shape": "ThrottlingException" },
199
+ { "shape": "InternalServerException" },
200
+ { "shape": "ValidationException" },
201
+ { "shape": "AccessDeniedException" }
202
+ ]
203
+ },
204
+ "SendTelemetryEvent": {
205
+ "name": "SendTelemetryEvent",
206
+ "http": {
207
+ "method": "POST",
208
+ "requestUri": "/"
209
+ },
210
+ "input": { "shape": "SendTelemetryEventRequest" },
211
+ "output": { "shape": "SendTelemetryEventResponse" },
212
+ "errors": [
213
+ { "shape": "ThrottlingException" },
214
+ { "shape": "InternalServerException" },
215
+ { "shape": "ValidationException" },
216
+ { "shape": "AccessDeniedException" }
217
+ ],
218
+ "idempotent": true
219
+ },
220
+ "StartCodeAnalysis": {
221
+ "name": "StartCodeAnalysis",
222
+ "http": {
223
+ "method": "POST",
224
+ "requestUri": "/"
225
+ },
226
+ "input": { "shape": "StartCodeAnalysisRequest" },
227
+ "output": { "shape": "StartCodeAnalysisResponse" },
228
+ "errors": [
229
+ { "shape": "ThrottlingException" },
230
+ { "shape": "ConflictException" },
231
+ { "shape": "ResourceNotFoundException" },
232
+ { "shape": "InternalServerException" },
233
+ { "shape": "ValidationException" },
234
+ { "shape": "AccessDeniedException" }
235
+ ],
236
+ "idempotent": true
237
+ },
238
+ "StartTaskAssistCodeGeneration": {
239
+ "name": "StartTaskAssistCodeGeneration",
240
+ "http": {
241
+ "method": "POST",
242
+ "requestUri": "/"
243
+ },
244
+ "input": { "shape": "StartTaskAssistCodeGenerationRequest" },
245
+ "output": { "shape": "StartTaskAssistCodeGenerationResponse" },
246
+ "errors": [
247
+ { "shape": "ThrottlingException" },
248
+ { "shape": "ConflictException" },
249
+ { "shape": "ResourceNotFoundException" },
250
+ { "shape": "InternalServerException" },
251
+ { "shape": "ValidationException" },
252
+ { "shape": "AccessDeniedException" }
253
+ ]
254
+ },
255
+ "StartTransformation": {
256
+ "name": "StartTransformation",
257
+ "http": {
258
+ "method": "POST",
259
+ "requestUri": "/"
260
+ },
261
+ "input": { "shape": "StartTransformationRequest" },
262
+ "output": { "shape": "StartTransformationResponse" },
263
+ "errors": [
264
+ { "shape": "ThrottlingException" },
265
+ { "shape": "InternalServerException" },
266
+ { "shape": "ValidationException" },
267
+ { "shape": "AccessDeniedException" }
268
+ ]
269
+ },
270
+ "StopTransformation": {
271
+ "name": "StopTransformation",
272
+ "http": {
273
+ "method": "POST",
274
+ "requestUri": "/"
275
+ },
276
+ "input": { "shape": "StopTransformationRequest" },
277
+ "output": { "shape": "StopTransformationResponse" },
278
+ "errors": [
279
+ { "shape": "ThrottlingException" },
280
+ { "shape": "InternalServerException" },
281
+ { "shape": "ValidationException" },
282
+ { "shape": "AccessDeniedException" }
283
+ ]
284
+ }
285
+ },
286
+ "shapes": {
287
+ "AccessDeniedException": {
288
+ "type": "structure",
289
+ "required": ["message"],
290
+ "members": {
291
+ "message": { "shape": "String" }
292
+ },
293
+ "exception": true
294
+ },
295
+ "ArtifactMap": {
296
+ "type": "map",
297
+ "key": { "shape": "ArtifactType" },
298
+ "value": { "shape": "UploadId" },
299
+ "max": 64,
300
+ "min": 1
301
+ },
302
+ "ArtifactType": {
303
+ "type": "string",
304
+ "enum": ["SourceCode", "BuiltJars"]
305
+ },
306
+ "AssistantResponseMessage": {
307
+ "type": "structure",
308
+ "required": ["content"],
309
+ "members": {
310
+ "messageId": { "shape": "MessageId" },
311
+ "content": { "shape": "AssistantResponseMessageContentString" },
312
+ "supplementaryWebLinks": { "shape": "SupplementaryWebLinks" },
313
+ "references": { "shape": "References" },
314
+ "followupPrompt": { "shape": "FollowupPrompt" }
315
+ }
316
+ },
317
+ "AssistantResponseMessageContentString": {
318
+ "type": "string",
319
+ "max": 4096,
320
+ "min": 0,
321
+ "sensitive": true
322
+ },
323
+ "Base64EncodedPaginationToken": {
324
+ "type": "string",
325
+ "max": 2048,
326
+ "min": 1,
327
+ "pattern": "(?:[A-Za-z0-9\\+/]{4})*(?:[A-Za-z0-9\\+/]{2}\\=\\=|[A-Za-z0-9\\+/]{3}\\=)?"
328
+ },
329
+ "Boolean": {
330
+ "type": "boolean",
331
+ "box": true
332
+ },
333
+ "ChatAddMessageEvent": {
334
+ "type": "structure",
335
+ "required": ["conversationId", "messageId"],
336
+ "members": {
337
+ "conversationId": { "shape": "ConversationId" },
338
+ "messageId": { "shape": "MessageId" },
339
+ "userIntent": { "shape": "UserIntent" },
340
+ "hasCodeSnippet": { "shape": "Boolean" },
341
+ "programmingLanguage": { "shape": "ProgrammingLanguage" },
342
+ "activeEditorTotalCharacters": { "shape": "Integer" },
343
+ "timeToFirstChunkMilliseconds": { "shape": "Double" },
344
+ "timeBetweenChunks": { "shape": "TimeBetweenChunks" },
345
+ "fullResponselatency": { "shape": "Double" },
346
+ "requestLength": { "shape": "Integer" },
347
+ "responseLength": { "shape": "Integer" }
348
+ }
349
+ },
350
+ "ChatHistory": {
351
+ "type": "list",
352
+ "member": { "shape": "ChatMessage" },
353
+ "max": 10,
354
+ "min": 0
355
+ },
356
+ "ChatInteractWithMessageEvent": {
357
+ "type": "structure",
358
+ "required": ["conversationId", "messageId"],
359
+ "members": {
360
+ "conversationId": { "shape": "ConversationId" },
361
+ "messageId": { "shape": "MessageId" },
362
+ "interactionType": { "shape": "ChatMessageInteractionType" },
363
+ "interactionTarget": { "shape": "String" },
364
+ "acceptedCharacterCount": { "shape": "Integer" },
365
+ "acceptedSnippetHasReference": { "shape": "Boolean" }
366
+ }
367
+ },
368
+ "ChatMessage": {
369
+ "type": "structure",
370
+ "members": {
371
+ "userInputMessage": { "shape": "UserInputMessage" },
372
+ "assistantResponseMessage": { "shape": "AssistantResponseMessage" }
373
+ },
374
+ "union": true
375
+ },
376
+ "ChatMessageInteractionType": {
377
+ "type": "string",
378
+ "enum": [
379
+ "INSERT_AT_CURSOR",
380
+ "COPY_SNIPPET",
381
+ "COPY",
382
+ "CLICK_LINK",
383
+ "CLICK_BODY_LINK",
384
+ "CLICK_FOLLOW_UP",
385
+ "HOVER_REFERENCE",
386
+ "UPVOTE",
387
+ "DOWNVOTE"
388
+ ]
389
+ },
390
+ "ChatUserModificationEvent": {
391
+ "type": "structure",
392
+ "required": ["conversationId", "messageId", "modificationPercentage"],
393
+ "members": {
394
+ "conversationId": { "shape": "ConversationId" },
395
+ "messageId": { "shape": "MessageId" },
396
+ "programmingLanguage": { "shape": "ProgrammingLanguage" },
397
+ "modificationPercentage": { "shape": "Double" }
398
+ }
399
+ },
400
+ "ChatTriggerType": {
401
+ "type": "string",
402
+ "enum": ["MANUAL", "DIAGNOSTIC"]
403
+ },
404
+ "CodeAnalysisFindingsSchema": {
405
+ "type": "string",
406
+ "enum": ["codeanalysis/findings/1.0"]
407
+ },
408
+ "CodeAnalysisStatus": {
409
+ "type": "string",
410
+ "enum": ["Completed", "Pending", "Failed"]
411
+ },
412
+ "CodeCoverageEvent": {
413
+ "type": "structure",
414
+ "required": ["programmingLanguage", "acceptedCharacterCount", "totalCharacterCount", "timestamp"],
415
+ "members": {
416
+ "customizationArn": { "shape": "CustomizationArn" },
417
+ "programmingLanguage": { "shape": "ProgrammingLanguage" },
418
+ "acceptedCharacterCount": { "shape": "PrimitiveInteger" },
419
+ "totalCharacterCount": { "shape": "PrimitiveInteger" },
420
+ "timestamp": { "shape": "Timestamp" },
421
+ "unmodifiedAcceptedCharacterCount": { "shape": "PrimitiveInteger" }
422
+ }
423
+ },
424
+ "CodeGenerationId": {
425
+ "type": "string",
426
+ "max": 128,
427
+ "min": 1
428
+ },
429
+ "CodeGenerationStatus": {
430
+ "type": "structure",
431
+ "required": ["status", "currentStage"],
432
+ "members": {
433
+ "status": { "shape": "CodeGenerationWorkflowStatus" },
434
+ "currentStage": { "shape": "CodeGenerationWorkflowStage" }
435
+ }
436
+ },
437
+ "CodeGenerationWorkflowStage": {
438
+ "type": "string",
439
+ "enum": ["InitialCodeGeneration", "CodeRefinement"]
440
+ },
441
+ "CodeGenerationWorkflowStatus": {
442
+ "type": "string",
443
+ "enum": ["InProgress", "Complete", "Failed"]
444
+ },
445
+ "CodeScanEvent": {
446
+ "type": "structure",
447
+ "required": ["programmingLanguage", "codeScanJobId", "timestamp"],
448
+ "members": {
449
+ "programmingLanguage": { "shape": "ProgrammingLanguage" },
450
+ "codeScanJobId": { "shape": "CodeScanJobId" },
451
+ "timestamp": { "shape": "Timestamp" }
452
+ }
453
+ },
454
+ "CodeScanJobId": {
455
+ "type": "string",
456
+ "max": 128,
457
+ "min": 1
458
+ },
459
+ "Completion": {
460
+ "type": "structure",
461
+ "required": ["content"],
462
+ "members": {
463
+ "content": { "shape": "CompletionContentString" },
464
+ "references": { "shape": "References" },
465
+ "mostRelevantMissingImports": { "shape": "Imports" }
466
+ }
467
+ },
468
+ "CompletionContentString": {
469
+ "type": "string",
470
+ "max": 5120,
471
+ "min": 1,
472
+ "sensitive": true
473
+ },
474
+ "CompletionType": {
475
+ "type": "string",
476
+ "enum": ["BLOCK", "LINE"]
477
+ },
478
+ "Completions": {
479
+ "type": "list",
480
+ "member": { "shape": "Completion" },
481
+ "max": 10,
482
+ "min": 0
483
+ },
484
+ "ConflictException": {
485
+ "type": "structure",
486
+ "required": ["message"],
487
+ "members": {
488
+ "message": { "shape": "String" }
489
+ },
490
+ "exception": true
491
+ },
492
+ "ContentChecksumType": {
493
+ "type": "string",
494
+ "enum": ["SHA_256"]
495
+ },
496
+ "ContextTruncationScheme": {
497
+ "type": "string",
498
+ "enum": ["ANALYSIS", "GUMBY"]
499
+ },
500
+ "ConversationId": {
501
+ "type": "string",
502
+ "max": 128,
503
+ "min": 1
504
+ },
505
+ "ConversationState": {
506
+ "type": "structure",
507
+ "required": ["currentMessage", "chatTriggerType"],
508
+ "members": {
509
+ "conversationId": { "shape": "ConversationId" },
510
+ "history": { "shape": "ChatHistory" },
511
+ "currentMessage": { "shape": "ChatMessage" },
512
+ "chatTriggerType": { "shape": "ChatTriggerType" }
513
+ }
514
+ },
515
+ "CreateTaskAssistConversationRequest": {
516
+ "type": "structure",
517
+ "members": {}
518
+ },
519
+ "CreateTaskAssistConversationResponse": {
520
+ "type": "structure",
521
+ "required": ["conversationId"],
522
+ "members": {
523
+ "conversationId": { "shape": "ConversationId" }
524
+ }
525
+ },
526
+ "CreateUploadUrlRequest": {
527
+ "type": "structure",
528
+ "members": {
529
+ "contentMd5": { "shape": "CreateUploadUrlRequestContentMd5String" },
530
+ "contentChecksum": { "shape": "CreateUploadUrlRequestContentChecksumString" },
531
+ "contentChecksumType": { "shape": "ContentChecksumType" },
532
+ "contentLength": { "shape": "CreateUploadUrlRequestContentLengthLong" },
533
+ "artifactType": { "shape": "ArtifactType" },
534
+ "uploadIntent": { "shape": "UploadIntent" },
535
+ "uploadContext": { "shape": "UploadContext" }
536
+ }
537
+ },
538
+ "CreateUploadUrlRequestContentChecksumString": {
539
+ "type": "string",
540
+ "max": 512,
541
+ "min": 1,
542
+ "sensitive": true
543
+ },
544
+ "CreateUploadUrlRequestContentLengthLong": {
545
+ "type": "long",
546
+ "box": true,
547
+ "min": 1
548
+ },
549
+ "CreateUploadUrlRequestContentMd5String": {
550
+ "type": "string",
551
+ "max": 128,
552
+ "min": 1,
553
+ "sensitive": true
554
+ },
555
+ "CreateUploadUrlResponse": {
556
+ "type": "structure",
557
+ "required": ["uploadId", "uploadUrl"],
558
+ "members": {
559
+ "uploadId": { "shape": "UploadId" },
560
+ "uploadUrl": { "shape": "PreSignedUrl" },
561
+ "kmsKeyArn": { "shape": "ResourceArn" }
562
+ }
563
+ },
564
+ "CursorState": {
565
+ "type": "structure",
566
+ "members": {
567
+ "position": { "shape": "Position" },
568
+ "range": { "shape": "Range" }
569
+ },
570
+ "union": true
571
+ },
572
+ "Customization": {
573
+ "type": "structure",
574
+ "required": ["arn"],
575
+ "members": {
576
+ "arn": { "shape": "CustomizationArn" },
577
+ "name": { "shape": "CustomizationName" },
578
+ "description": { "shape": "Description" }
579
+ }
580
+ },
581
+ "CustomizationArn": {
582
+ "type": "string",
583
+ "max": 950,
584
+ "min": 0,
585
+ "pattern": "arn:[-.a-z0-9]{1,63}:codewhisperer:([-.a-z0-9]{0,63}:){2}([a-zA-Z0-9-_:/]){1,1023}"
586
+ },
587
+ "CustomizationName": {
588
+ "type": "string",
589
+ "max": 100,
590
+ "min": 1,
591
+ "pattern": "[a-zA-Z][a-zA-Z0-9_-]*"
592
+ },
593
+ "Customizations": {
594
+ "type": "list",
595
+ "member": { "shape": "Customization" }
596
+ },
597
+ "DeleteTaskAssistConversationRequest": {
598
+ "type": "structure",
599
+ "required": ["conversationId"],
600
+ "members": {
601
+ "conversationId": { "shape": "ConversationId" }
602
+ }
603
+ },
604
+ "DeleteTaskAssistConversationResponse": {
605
+ "type": "structure",
606
+ "required": ["conversationId"],
607
+ "members": {
608
+ "conversationId": { "shape": "ConversationId" }
609
+ }
610
+ },
611
+ "Description": {
612
+ "type": "string",
613
+ "max": 256,
614
+ "min": 0,
615
+ "pattern": "[\\sa-zA-Z0-9_-]*"
616
+ },
617
+ "Diagnostic": {
618
+ "type": "structure",
619
+ "members": {
620
+ "textDocumentDiagnostic": { "shape": "TextDocumentDiagnostic" },
621
+ "runtimeDiagnostic": { "shape": "RuntimeDiagnostic" }
622
+ },
623
+ "union": true
624
+ },
625
+ "DiagnosticSeverity": {
626
+ "type": "string",
627
+ "enum": ["ERROR", "WARNING", "INFORMATION", "HINT"]
628
+ },
629
+ "Dimension": {
630
+ "type": "structure",
631
+ "members": {
632
+ "name": { "shape": "DimensionNameString" },
633
+ "value": { "shape": "DimensionValueString" }
634
+ }
635
+ },
636
+ "DimensionList": {
637
+ "type": "list",
638
+ "member": { "shape": "Dimension" },
639
+ "max": 30,
640
+ "min": 0
641
+ },
642
+ "DimensionNameString": {
643
+ "type": "string",
644
+ "max": 255,
645
+ "min": 1,
646
+ "pattern": "[-a-zA-Z0-9._]*"
647
+ },
648
+ "DimensionValueString": {
649
+ "type": "string",
650
+ "max": 1024,
651
+ "min": 1,
652
+ "pattern": "[-a-zA-Z0-9._]*"
653
+ },
654
+ "DocumentSymbol": {
655
+ "type": "structure",
656
+ "required": ["name", "type"],
657
+ "members": {
658
+ "name": { "shape": "DocumentSymbolNameString" },
659
+ "type": { "shape": "SymbolType" },
660
+ "source": { "shape": "DocumentSymbolSourceString" }
661
+ }
662
+ },
663
+ "DocumentSymbolNameString": {
664
+ "type": "string",
665
+ "max": 256,
666
+ "min": 1
667
+ },
668
+ "DocumentSymbolSourceString": {
669
+ "type": "string",
670
+ "max": 256,
671
+ "min": 1
672
+ },
673
+ "DocumentSymbols": {
674
+ "type": "list",
675
+ "member": { "shape": "DocumentSymbol" },
676
+ "max": 1000,
677
+ "min": 0
678
+ },
679
+ "Double": {
680
+ "type": "double",
681
+ "box": true
682
+ },
683
+ "EditorState": {
684
+ "type": "structure",
685
+ "members": {
686
+ "document": { "shape": "TextDocument" },
687
+ "cursorState": { "shape": "CursorState" }
688
+ }
689
+ },
690
+ "FeatureEvaluation": {
691
+ "type": "structure",
692
+ "required": ["feature", "variation", "value"],
693
+ "members": {
694
+ "feature": { "shape": "FeatureName" },
695
+ "variation": { "shape": "FeatureVariation" },
696
+ "value": { "shape": "FeatureValue" }
697
+ }
698
+ },
699
+ "FeatureEvaluationsList": {
700
+ "type": "list",
701
+ "member": { "shape": "FeatureEvaluation" },
702
+ "max": 50,
703
+ "min": 0
704
+ },
705
+ "FeatureName": {
706
+ "type": "string",
707
+ "max": 128,
708
+ "min": 1,
709
+ "pattern": "[-a-zA-Z0-9._]*"
710
+ },
711
+ "FeatureValue": {
712
+ "type": "structure",
713
+ "members": {
714
+ "boolValue": { "shape": "Boolean" },
715
+ "doubleValue": { "shape": "Double" },
716
+ "longValue": { "shape": "Long" },
717
+ "stringValue": { "shape": "FeatureValueStringType" }
718
+ },
719
+ "union": true
720
+ },
721
+ "FeatureValueStringType": {
722
+ "type": "string",
723
+ "max": 512,
724
+ "min": 0
725
+ },
726
+ "FeatureVariation": {
727
+ "type": "string",
728
+ "max": 128,
729
+ "min": 1,
730
+ "pattern": "[-a-zA-Z0-9._]*"
731
+ },
732
+ "FileContext": {
733
+ "type": "structure",
734
+ "required": ["leftFileContent", "rightFileContent", "filename", "programmingLanguage"],
735
+ "members": {
736
+ "leftFileContent": { "shape": "FileContextLeftFileContentString" },
737
+ "rightFileContent": { "shape": "FileContextRightFileContentString" },
738
+ "filename": { "shape": "FileContextFilenameString" },
739
+ "programmingLanguage": { "shape": "ProgrammingLanguage" }
740
+ }
741
+ },
742
+ "FileContextFilenameString": {
743
+ "type": "string",
744
+ "max": 1024,
745
+ "min": 1,
746
+ "sensitive": true
747
+ },
748
+ "FileContextLeftFileContentString": {
749
+ "type": "string",
750
+ "max": 10240,
751
+ "min": 0,
752
+ "sensitive": true
753
+ },
754
+ "FileContextRightFileContentString": {
755
+ "type": "string",
756
+ "max": 10240,
757
+ "min": 0,
758
+ "sensitive": true
759
+ },
760
+ "FollowupPrompt": {
761
+ "type": "structure",
762
+ "required": ["content"],
763
+ "members": {
764
+ "content": { "shape": "FollowupPromptContentString" },
765
+ "userIntent": { "shape": "UserIntent" }
766
+ }
767
+ },
768
+ "FollowupPromptContentString": {
769
+ "type": "string",
770
+ "max": 4096,
771
+ "min": 0,
772
+ "sensitive": true
773
+ },
774
+ "GenerateCompletionsRequest": {
775
+ "type": "structure",
776
+ "required": ["fileContext"],
777
+ "members": {
778
+ "fileContext": { "shape": "FileContext" },
779
+ "maxResults": { "shape": "GenerateCompletionsRequestMaxResultsInteger" },
780
+ "nextToken": { "shape": "GenerateCompletionsRequestNextTokenString" },
781
+ "referenceTrackerConfiguration": { "shape": "ReferenceTrackerConfiguration" },
782
+ "supplementalContexts": { "shape": "SupplementalContextList" },
783
+ "customizationArn": { "shape": "CustomizationArn" },
784
+ "optOutPreference": { "shape": "OptOutPreference" },
785
+ "userContext": { "shape": "UserContext" }
786
+ }
787
+ },
788
+ "GenerateCompletionsRequestMaxResultsInteger": {
789
+ "type": "integer",
790
+ "box": true,
791
+ "max": 10,
792
+ "min": 1
793
+ },
794
+ "GenerateCompletionsRequestNextTokenString": {
795
+ "type": "string",
796
+ "max": 2048,
797
+ "min": 0,
798
+ "pattern": "(?:[A-Za-z0-9\\+/]{4})*(?:[A-Za-z0-9\\+/]{2}\\=\\=|[A-Za-z0-9\\+/]{3}\\=)?",
799
+ "sensitive": true
800
+ },
801
+ "GenerateCompletionsResponse": {
802
+ "type": "structure",
803
+ "members": {
804
+ "completions": { "shape": "Completions" },
805
+ "nextToken": { "shape": "SensitiveString" }
806
+ }
807
+ },
808
+ "GetCodeAnalysisRequest": {
809
+ "type": "structure",
810
+ "required": ["jobId"],
811
+ "members": {
812
+ "jobId": { "shape": "GetCodeAnalysisRequestJobIdString" }
813
+ }
814
+ },
815
+ "GetCodeAnalysisRequestJobIdString": {
816
+ "type": "string",
817
+ "max": 256,
818
+ "min": 1
819
+ },
820
+ "GetCodeAnalysisResponse": {
821
+ "type": "structure",
822
+ "required": ["status"],
823
+ "members": {
824
+ "status": { "shape": "CodeAnalysisStatus" },
825
+ "errorMessage": { "shape": "SensitiveString" }
826
+ }
827
+ },
828
+ "GetTaskAssistCodeGenerationRequest": {
829
+ "type": "structure",
830
+ "required": ["conversationId", "codeGenerationId"],
831
+ "members": {
832
+ "conversationId": { "shape": "ConversationId" },
833
+ "codeGenerationId": { "shape": "CodeGenerationId" }
834
+ }
835
+ },
836
+ "GetTaskAssistCodeGenerationResponse": {
837
+ "type": "structure",
838
+ "required": ["conversationId", "codeGenerationStatus"],
839
+ "members": {
840
+ "conversationId": { "shape": "ConversationId" },
841
+ "codeGenerationStatus": { "shape": "CodeGenerationStatus" }
842
+ }
843
+ },
844
+ "GetTransformationPlanRequest": {
845
+ "type": "structure",
846
+ "required": ["transformationJobId"],
847
+ "members": {
848
+ "transformationJobId": { "shape": "TransformationJobId" }
849
+ }
850
+ },
851
+ "GetTransformationPlanResponse": {
852
+ "type": "structure",
853
+ "required": ["transformationPlan"],
854
+ "members": {
855
+ "transformationPlan": { "shape": "TransformationPlan" }
856
+ }
857
+ },
858
+ "GetTransformationRequest": {
859
+ "type": "structure",
860
+ "required": ["transformationJobId"],
861
+ "members": {
862
+ "transformationJobId": { "shape": "TransformationJobId" }
863
+ }
864
+ },
865
+ "GetTransformationResponse": {
866
+ "type": "structure",
867
+ "required": ["transformationJob"],
868
+ "members": {
869
+ "transformationJob": { "shape": "TransformationJob" }
870
+ }
871
+ },
872
+ "IdeCategory": {
873
+ "type": "string",
874
+ "enum": ["JETBRAINS", "VSCODE"],
875
+ "max": 64,
876
+ "min": 1
877
+ },
878
+ "IdempotencyToken": {
879
+ "type": "string",
880
+ "max": 256,
881
+ "min": 1
882
+ },
883
+ "Import": {
884
+ "type": "structure",
885
+ "members": {
886
+ "statement": { "shape": "ImportStatementString" }
887
+ }
888
+ },
889
+ "ImportStatementString": {
890
+ "type": "string",
891
+ "max": 1024,
892
+ "min": 1,
893
+ "sensitive": true
894
+ },
895
+ "Imports": {
896
+ "type": "list",
897
+ "member": { "shape": "Import" },
898
+ "max": 10,
899
+ "min": 0
900
+ },
901
+ "Integer": {
902
+ "type": "integer",
903
+ "box": true
904
+ },
905
+ "InternalServerException": {
906
+ "type": "structure",
907
+ "required": ["message"],
908
+ "members": {
909
+ "message": { "shape": "String" }
910
+ },
911
+ "exception": true,
912
+ "fault": true,
913
+ "retryable": { "throttling": false }
914
+ },
915
+ "ListAvailableCustomizationsRequest": {
916
+ "type": "structure",
917
+ "members": {
918
+ "maxResults": { "shape": "ListAvailableCustomizationsRequestMaxResultsInteger" },
919
+ "nextToken": { "shape": "Base64EncodedPaginationToken" }
920
+ }
921
+ },
922
+ "ListAvailableCustomizationsRequestMaxResultsInteger": {
923
+ "type": "integer",
924
+ "box": true,
925
+ "max": 100,
926
+ "min": 1
927
+ },
928
+ "ListAvailableCustomizationsResponse": {
929
+ "type": "structure",
930
+ "required": ["customizations"],
931
+ "members": {
932
+ "customizations": { "shape": "Customizations" },
933
+ "nextToken": { "shape": "Base64EncodedPaginationToken" }
934
+ }
935
+ },
936
+ "ListCodeAnalysisFindingsRequest": {
937
+ "type": "structure",
938
+ "required": ["jobId", "codeAnalysisFindingsSchema"],
939
+ "members": {
940
+ "jobId": { "shape": "ListCodeAnalysisFindingsRequestJobIdString" },
941
+ "nextToken": { "shape": "PaginationToken" },
942
+ "codeAnalysisFindingsSchema": { "shape": "CodeAnalysisFindingsSchema" }
943
+ }
944
+ },
945
+ "ListCodeAnalysisFindingsRequestJobIdString": {
946
+ "type": "string",
947
+ "max": 256,
948
+ "min": 1
949
+ },
950
+ "ListCodeAnalysisFindingsResponse": {
951
+ "type": "structure",
952
+ "required": ["codeAnalysisFindings"],
953
+ "members": {
954
+ "nextToken": { "shape": "PaginationToken" },
955
+ "codeAnalysisFindings": { "shape": "SensitiveString" }
956
+ }
957
+ },
958
+ "ListFeatureEvaluationsRequest": {
959
+ "type": "structure",
960
+ "required": ["userContext"],
961
+ "members": {
962
+ "userContext": { "shape": "UserContext" }
963
+ }
964
+ },
965
+ "ListFeatureEvaluationsResponse": {
966
+ "type": "structure",
967
+ "required": ["featureEvaluations"],
968
+ "members": {
969
+ "featureEvaluations": { "shape": "FeatureEvaluationsList" }
970
+ }
971
+ },
972
+ "Long": {
973
+ "type": "long",
974
+ "box": true
975
+ },
976
+ "MessageId": {
977
+ "type": "string",
978
+ "max": 128,
979
+ "min": 0
980
+ },
981
+ "MetricData": {
982
+ "type": "structure",
983
+ "required": ["metricName", "metricValue", "timestamp"],
984
+ "members": {
985
+ "metricName": { "shape": "MetricDataMetricNameString" },
986
+ "metricValue": { "shape": "Double" },
987
+ "timestamp": { "shape": "Timestamp" },
988
+ "dimensions": { "shape": "DimensionList" }
989
+ }
990
+ },
991
+ "MetricDataMetricNameString": {
992
+ "type": "string",
993
+ "max": 1024,
994
+ "min": 1,
995
+ "pattern": "[-a-zA-Z0-9._]*"
996
+ },
997
+ "OperatingSystem": {
998
+ "type": "string",
999
+ "enum": ["MAC", "WINDOWS", "LINUX"],
1000
+ "max": 64,
1001
+ "min": 1
1002
+ },
1003
+ "OptOutPreference": {
1004
+ "type": "string",
1005
+ "enum": ["OPTIN", "OPTOUT"]
1006
+ },
1007
+ "PaginationToken": {
1008
+ "type": "string",
1009
+ "max": 2048,
1010
+ "min": 1,
1011
+ "pattern": "\\S+"
1012
+ },
1013
+ "Position": {
1014
+ "type": "structure",
1015
+ "required": ["line", "character"],
1016
+ "members": {
1017
+ "line": { "shape": "Integer" },
1018
+ "character": { "shape": "Integer" }
1019
+ }
1020
+ },
1021
+ "PreSignedUrl": {
1022
+ "type": "string",
1023
+ "max": 2048,
1024
+ "min": 1,
1025
+ "sensitive": true
1026
+ },
1027
+ "PrimitiveInteger": { "type": "integer" },
1028
+ "ProgrammingLanguage": {
1029
+ "type": "structure",
1030
+ "required": ["languageName"],
1031
+ "members": {
1032
+ "languageName": { "shape": "ProgrammingLanguageLanguageNameString" }
1033
+ }
1034
+ },
1035
+ "ProgrammingLanguageLanguageNameString": {
1036
+ "type": "string",
1037
+ "max": 128,
1038
+ "min": 1,
1039
+ "pattern": "(python|javascript|java|csharp|typescript|c|cpp|go|kotlin|php|ruby|rust|scala|shell|sql|json|yaml|vue|tf)"
1040
+ },
1041
+ "ProgressUpdates": {
1042
+ "type": "list",
1043
+ "member": { "shape": "TransformationProgressUpdate" }
1044
+ },
1045
+ "Range": {
1046
+ "type": "structure",
1047
+ "required": ["start", "end"],
1048
+ "members": {
1049
+ "start": { "shape": "Position" },
1050
+ "end": { "shape": "Position" }
1051
+ }
1052
+ },
1053
+ "RecommendationsWithReferencesPreference": {
1054
+ "type": "string",
1055
+ "enum": ["BLOCK", "ALLOW"]
1056
+ },
1057
+ "Reference": {
1058
+ "type": "structure",
1059
+ "members": {
1060
+ "licenseName": { "shape": "ReferenceLicenseNameString" },
1061
+ "repository": { "shape": "ReferenceRepositoryString" },
1062
+ "url": { "shape": "ReferenceUrlString" },
1063
+ "recommendationContentSpan": { "shape": "Span" }
1064
+ }
1065
+ },
1066
+ "ReferenceLicenseNameString": {
1067
+ "type": "string",
1068
+ "max": 1024,
1069
+ "min": 1
1070
+ },
1071
+ "ReferenceRepositoryString": {
1072
+ "type": "string",
1073
+ "max": 1024,
1074
+ "min": 1
1075
+ },
1076
+ "ReferenceTrackerConfiguration": {
1077
+ "type": "structure",
1078
+ "required": ["recommendationsWithReferences"],
1079
+ "members": {
1080
+ "recommendationsWithReferences": { "shape": "RecommendationsWithReferencesPreference" }
1081
+ }
1082
+ },
1083
+ "ReferenceUrlString": {
1084
+ "type": "string",
1085
+ "max": 1024,
1086
+ "min": 1
1087
+ },
1088
+ "References": {
1089
+ "type": "list",
1090
+ "member": { "shape": "Reference" },
1091
+ "max": 10,
1092
+ "min": 0
1093
+ },
1094
+ "ResourceArn": {
1095
+ "type": "string",
1096
+ "max": 1224,
1097
+ "min": 0,
1098
+ "pattern": "arn:([-.a-z0-9]{1,63}:){2}([-.a-z0-9]{0,63}:){2}([a-zA-Z0-9-_:/]){1,1023}"
1099
+ },
1100
+ "ResourceNotFoundException": {
1101
+ "type": "structure",
1102
+ "required": ["message"],
1103
+ "members": {
1104
+ "message": { "shape": "String" }
1105
+ },
1106
+ "exception": true
1107
+ },
1108
+ "RuntimeDiagnostic": {
1109
+ "type": "structure",
1110
+ "required": ["source", "severity", "message"],
1111
+ "members": {
1112
+ "source": { "shape": "RuntimeDiagnosticSourceString" },
1113
+ "severity": { "shape": "DiagnosticSeverity" },
1114
+ "message": { "shape": "RuntimeDiagnosticMessageString" }
1115
+ }
1116
+ },
1117
+ "RuntimeDiagnosticMessageString": {
1118
+ "type": "string",
1119
+ "max": 1024,
1120
+ "min": 0,
1121
+ "sensitive": true
1122
+ },
1123
+ "RuntimeDiagnosticSourceString": {
1124
+ "type": "string",
1125
+ "max": 1024,
1126
+ "min": 0,
1127
+ "sensitive": true
1128
+ },
1129
+ "SendTelemetryEventRequest": {
1130
+ "type": "structure",
1131
+ "required": ["telemetryEvent"],
1132
+ "members": {
1133
+ "clientToken": {
1134
+ "shape": "IdempotencyToken",
1135
+ "idempotencyToken": true
1136
+ },
1137
+ "telemetryEvent": { "shape": "TelemetryEvent" },
1138
+ "optOutPreference": { "shape": "OptOutPreference" },
1139
+ "userContext": { "shape": "UserContext" }
1140
+ }
1141
+ },
1142
+ "SendTelemetryEventResponse": {
1143
+ "type": "structure",
1144
+ "members": {}
1145
+ },
1146
+ "SensitiveString": {
1147
+ "type": "string",
1148
+ "sensitive": true
1149
+ },
1150
+ "Span": {
1151
+ "type": "structure",
1152
+ "members": {
1153
+ "start": { "shape": "SpanStartInteger" },
1154
+ "end": { "shape": "SpanEndInteger" }
1155
+ }
1156
+ },
1157
+ "SpanEndInteger": {
1158
+ "type": "integer",
1159
+ "box": true,
1160
+ "min": 0
1161
+ },
1162
+ "SpanStartInteger": {
1163
+ "type": "integer",
1164
+ "box": true,
1165
+ "min": 0
1166
+ },
1167
+ "StartCodeAnalysisRequest": {
1168
+ "type": "structure",
1169
+ "required": ["artifacts", "programmingLanguage"],
1170
+ "members": {
1171
+ "artifacts": { "shape": "ArtifactMap" },
1172
+ "programmingLanguage": { "shape": "ProgrammingLanguage" },
1173
+ "clientToken": {
1174
+ "shape": "StartCodeAnalysisRequestClientTokenString",
1175
+ "idempotencyToken": true
1176
+ }
1177
+ }
1178
+ },
1179
+ "StartCodeAnalysisRequestClientTokenString": {
1180
+ "type": "string",
1181
+ "max": 256,
1182
+ "min": 1
1183
+ },
1184
+ "StartCodeAnalysisResponse": {
1185
+ "type": "structure",
1186
+ "required": ["jobId", "status"],
1187
+ "members": {
1188
+ "jobId": { "shape": "StartCodeAnalysisResponseJobIdString" },
1189
+ "status": { "shape": "CodeAnalysisStatus" },
1190
+ "errorMessage": { "shape": "SensitiveString" }
1191
+ }
1192
+ },
1193
+ "StartCodeAnalysisResponseJobIdString": {
1194
+ "type": "string",
1195
+ "max": 256,
1196
+ "min": 1
1197
+ },
1198
+ "StartTaskAssistCodeGenerationRequest": {
1199
+ "type": "structure",
1200
+ "required": ["conversationState", "workspaceState"],
1201
+ "members": {
1202
+ "conversationState": { "shape": "ConversationState" },
1203
+ "workspaceState": { "shape": "WorkspaceState" }
1204
+ }
1205
+ },
1206
+ "StartTaskAssistCodeGenerationResponse": {
1207
+ "type": "structure",
1208
+ "required": ["conversationId", "codeGenerationId"],
1209
+ "members": {
1210
+ "conversationId": { "shape": "ConversationId" },
1211
+ "codeGenerationId": { "shape": "CodeGenerationId" }
1212
+ }
1213
+ },
1214
+ "StartTransformationRequest": {
1215
+ "type": "structure",
1216
+ "required": ["workspaceState", "transformationSpec"],
1217
+ "members": {
1218
+ "workspaceState": { "shape": "WorkspaceState" },
1219
+ "transformationSpec": { "shape": "TransformationSpec" }
1220
+ }
1221
+ },
1222
+ "StartTransformationResponse": {
1223
+ "type": "structure",
1224
+ "required": ["transformationJobId"],
1225
+ "members": {
1226
+ "transformationJobId": { "shape": "TransformationJobId" }
1227
+ }
1228
+ },
1229
+ "StepId": {
1230
+ "type": "string",
1231
+ "max": 126,
1232
+ "min": 1
1233
+ },
1234
+ "StopTransformationRequest": {
1235
+ "type": "structure",
1236
+ "required": ["transformationJobId"],
1237
+ "members": {
1238
+ "transformationJobId": { "shape": "TransformationJobId" }
1239
+ }
1240
+ },
1241
+ "StopTransformationResponse": {
1242
+ "type": "structure",
1243
+ "required": ["transformationStatus"],
1244
+ "members": {
1245
+ "transformationStatus": { "shape": "TransformationStatus" }
1246
+ }
1247
+ },
1248
+ "String": { "type": "string" },
1249
+ "SuggestionState": {
1250
+ "type": "string",
1251
+ "enum": ["ACCEPT", "REJECT", "DISCARD", "EMPTY"]
1252
+ },
1253
+ "SupplementalContext": {
1254
+ "type": "structure",
1255
+ "required": ["filePath", "content"],
1256
+ "members": {
1257
+ "filePath": { "shape": "SupplementalContextFilePathString" },
1258
+ "content": { "shape": "SupplementalContextContentString" }
1259
+ }
1260
+ },
1261
+ "SupplementalContextContentString": {
1262
+ "type": "string",
1263
+ "max": 10240,
1264
+ "min": 1,
1265
+ "sensitive": true
1266
+ },
1267
+ "SupplementalContextFilePathString": {
1268
+ "type": "string",
1269
+ "max": 1024,
1270
+ "min": 1,
1271
+ "sensitive": true
1272
+ },
1273
+ "SupplementalContextList": {
1274
+ "type": "list",
1275
+ "member": { "shape": "SupplementalContext" },
1276
+ "max": 5,
1277
+ "min": 0
1278
+ },
1279
+ "SupplementaryWebLink": {
1280
+ "type": "structure",
1281
+ "required": ["url", "title"],
1282
+ "members": {
1283
+ "url": { "shape": "SupplementaryWebLinkUrlString" },
1284
+ "title": { "shape": "SupplementaryWebLinkTitleString" },
1285
+ "snippet": { "shape": "SupplementaryWebLinkSnippetString" }
1286
+ }
1287
+ },
1288
+ "SupplementaryWebLinkSnippetString": {
1289
+ "type": "string",
1290
+ "max": 1024,
1291
+ "min": 1,
1292
+ "sensitive": true
1293
+ },
1294
+ "SupplementaryWebLinkTitleString": {
1295
+ "type": "string",
1296
+ "max": 1024,
1297
+ "min": 1,
1298
+ "sensitive": true
1299
+ },
1300
+ "SupplementaryWebLinkUrlString": {
1301
+ "type": "string",
1302
+ "max": 1024,
1303
+ "min": 1,
1304
+ "sensitive": true
1305
+ },
1306
+ "SupplementaryWebLinks": {
1307
+ "type": "list",
1308
+ "member": { "shape": "SupplementaryWebLink" },
1309
+ "max": 10,
1310
+ "min": 0
1311
+ },
1312
+ "SymbolType": {
1313
+ "type": "string",
1314
+ "enum": ["DECLARATION", "USAGE"]
1315
+ },
1316
+ "TaskAssistPlanningUploadContext": {
1317
+ "type": "structure",
1318
+ "required": ["conversationId"],
1319
+ "members": {
1320
+ "conversationId": { "shape": "ConversationId" }
1321
+ }
1322
+ },
1323
+ "TelemetryEvent": {
1324
+ "type": "structure",
1325
+ "members": {
1326
+ "userTriggerDecisionEvent": { "shape": "UserTriggerDecisionEvent" },
1327
+ "codeCoverageEvent": { "shape": "CodeCoverageEvent" },
1328
+ "userModificationEvent": { "shape": "UserModificationEvent" },
1329
+ "codeScanEvent": { "shape": "CodeScanEvent" },
1330
+ "metricData": { "shape": "MetricData" },
1331
+ "chatAddMessageEvent": { "shape": "ChatAddMessageEvent" },
1332
+ "chatInteractWithMessageEvent": { "shape": "ChatInteractWithMessageEvent" },
1333
+ "chatUserModificationEvent": { "shape": "ChatUserModificationEvent" }
1334
+ },
1335
+ "union": true
1336
+ },
1337
+ "TextDocument": {
1338
+ "type": "structure",
1339
+ "required": ["relativeFilePath"],
1340
+ "members": {
1341
+ "relativeFilePath": { "shape": "TextDocumentRelativeFilePathString" },
1342
+ "programmingLanguage": { "shape": "ProgrammingLanguage" },
1343
+ "text": { "shape": "TextDocumentTextString" },
1344
+ "documentSymbols": { "shape": "DocumentSymbols" }
1345
+ }
1346
+ },
1347
+ "TextDocumentDiagnostic": {
1348
+ "type": "structure",
1349
+ "required": ["document", "range", "source", "severity", "message"],
1350
+ "members": {
1351
+ "document": { "shape": "TextDocument" },
1352
+ "range": { "shape": "Range" },
1353
+ "source": { "shape": "SensitiveString" },
1354
+ "severity": { "shape": "DiagnosticSeverity" },
1355
+ "message": { "shape": "TextDocumentDiagnosticMessageString" }
1356
+ }
1357
+ },
1358
+ "TextDocumentDiagnosticMessageString": {
1359
+ "type": "string",
1360
+ "max": 1024,
1361
+ "min": 0,
1362
+ "sensitive": true
1363
+ },
1364
+ "TextDocumentRelativeFilePathString": {
1365
+ "type": "string",
1366
+ "max": 4096,
1367
+ "min": 1,
1368
+ "sensitive": true
1369
+ },
1370
+ "TextDocumentTextString": {
1371
+ "type": "string",
1372
+ "max": 10240,
1373
+ "min": 0,
1374
+ "sensitive": true
1375
+ },
1376
+ "ThrottlingException": {
1377
+ "type": "structure",
1378
+ "required": ["message"],
1379
+ "members": {
1380
+ "message": { "shape": "String" }
1381
+ },
1382
+ "exception": true,
1383
+ "retryable": { "throttling": true }
1384
+ },
1385
+ "TimeBetweenChunks": {
1386
+ "type": "list",
1387
+ "member": { "shape": "Double" },
1388
+ "max": 100,
1389
+ "min": 0
1390
+ },
1391
+ "Timestamp": { "type": "timestamp" },
1392
+ "TransformationJob": {
1393
+ "type": "structure",
1394
+ "members": {
1395
+ "jobId": { "shape": "TransformationJobId" },
1396
+ "transformationSpec": { "shape": "TransformationSpec" },
1397
+ "status": { "shape": "TransformationStatus" },
1398
+ "reason": { "shape": "String" },
1399
+ "creationTime": { "shape": "Timestamp" },
1400
+ "startExecutionTime": { "shape": "Timestamp" },
1401
+ "endExecutionTime": { "shape": "Timestamp" }
1402
+ }
1403
+ },
1404
+ "TransformationJobId": {
1405
+ "type": "string",
1406
+ "max": 128,
1407
+ "min": 1
1408
+ },
1409
+ "TransformationLanguage": {
1410
+ "type": "string",
1411
+ "enum": ["JAVA_8", "JAVA_11", "JAVA_17"]
1412
+ },
1413
+ "TransformationPlan": {
1414
+ "type": "structure",
1415
+ "required": ["transformationSteps"],
1416
+ "members": {
1417
+ "transformationSteps": { "shape": "TransformationSteps" }
1418
+ }
1419
+ },
1420
+ "TransformationProgressUpdate": {
1421
+ "type": "structure",
1422
+ "required": ["name", "status"],
1423
+ "members": {
1424
+ "name": { "shape": "String" },
1425
+ "status": { "shape": "TransformationProgressUpdateStatus" },
1426
+ "description": { "shape": "String" },
1427
+ "startTime": { "shape": "Timestamp" },
1428
+ "endTime": { "shape": "Timestamp" }
1429
+ }
1430
+ },
1431
+ "TransformationProgressUpdateStatus": {
1432
+ "type": "string",
1433
+ "enum": ["IN_PROGRESS", "COMPLETED", "FAILED"]
1434
+ },
1435
+ "TransformationProjectState": {
1436
+ "type": "structure",
1437
+ "members": {
1438
+ "language": { "shape": "TransformationLanguage" }
1439
+ }
1440
+ },
1441
+ "TransformationSpec": {
1442
+ "type": "structure",
1443
+ "members": {
1444
+ "transformationType": { "shape": "TransformationType" },
1445
+ "source": { "shape": "TransformationProjectState" },
1446
+ "target": { "shape": "TransformationProjectState" }
1447
+ }
1448
+ },
1449
+ "TransformationStatus": {
1450
+ "type": "string",
1451
+ "enum": [
1452
+ "CREATED",
1453
+ "ACCEPTED",
1454
+ "REJECTED",
1455
+ "STARTED",
1456
+ "PREPARING",
1457
+ "PREPARED",
1458
+ "PLANNING",
1459
+ "PLANNED",
1460
+ "TRANSFORMING",
1461
+ "TRANSFORMED",
1462
+ "FAILED",
1463
+ "COMPLETED",
1464
+ "PARTIALLY_COMPLETED",
1465
+ "STOPPING",
1466
+ "STOPPED"
1467
+ ]
1468
+ },
1469
+ "TransformationStep": {
1470
+ "type": "structure",
1471
+ "required": ["id", "name", "description", "status"],
1472
+ "members": {
1473
+ "id": { "shape": "StepId" },
1474
+ "name": { "shape": "String" },
1475
+ "description": { "shape": "String" },
1476
+ "status": { "shape": "TransformationStepStatus" },
1477
+ "progressUpdates": { "shape": "ProgressUpdates" },
1478
+ "startTime": { "shape": "Timestamp" },
1479
+ "endTime": { "shape": "Timestamp" }
1480
+ }
1481
+ },
1482
+ "TransformationStepStatus": {
1483
+ "type": "string",
1484
+ "enum": ["CREATED", "COMPLETED", "PARTIALLY_COMPLETED", "STOPPED", "FAILED"]
1485
+ },
1486
+ "TransformationSteps": {
1487
+ "type": "list",
1488
+ "member": { "shape": "TransformationStep" }
1489
+ },
1490
+ "TransformationType": {
1491
+ "type": "string",
1492
+ "enum": ["LANGUAGE_UPGRADE"]
1493
+ },
1494
+ "UUID": {
1495
+ "type": "string",
1496
+ "max": 36,
1497
+ "min": 36
1498
+ },
1499
+ "UploadContext": {
1500
+ "type": "structure",
1501
+ "members": {
1502
+ "taskAssistPlanningUploadContext": { "shape": "TaskAssistPlanningUploadContext" }
1503
+ },
1504
+ "union": true
1505
+ },
1506
+ "UploadId": {
1507
+ "type": "string",
1508
+ "max": 128,
1509
+ "min": 1
1510
+ },
1511
+ "UploadIntent": {
1512
+ "type": "string",
1513
+ "enum": ["TRANSFORMATION", "TASK_ASSIST_PLANNING"]
1514
+ },
1515
+ "UserContext": {
1516
+ "type": "structure",
1517
+ "required": ["ideCategory", "operatingSystem", "product"],
1518
+ "members": {
1519
+ "ideCategory": { "shape": "IdeCategory" },
1520
+ "operatingSystem": { "shape": "OperatingSystem" },
1521
+ "product": { "shape": "UserContextProductString" },
1522
+ "clientId": { "shape": "UUID" },
1523
+ "ideVersion": { "shape": "String" }
1524
+ }
1525
+ },
1526
+ "UserContextProductString": {
1527
+ "type": "string",
1528
+ "max": 128,
1529
+ "min": 1,
1530
+ "pattern": "[-a-zA-Z0-9._]*"
1531
+ },
1532
+ "UserInputMessage": {
1533
+ "type": "structure",
1534
+ "required": ["content"],
1535
+ "members": {
1536
+ "content": { "shape": "UserInputMessageContentString" },
1537
+ "userInputMessageContext": { "shape": "UserInputMessageContext" },
1538
+ "userIntent": { "shape": "UserIntent" }
1539
+ }
1540
+ },
1541
+ "UserInputMessageContentString": {
1542
+ "type": "string",
1543
+ "max": 4096,
1544
+ "min": 0,
1545
+ "sensitive": true
1546
+ },
1547
+ "UserInputMessageContext": {
1548
+ "type": "structure",
1549
+ "members": {
1550
+ "editorState": { "shape": "EditorState" },
1551
+ "diagnostic": { "shape": "Diagnostic" }
1552
+ }
1553
+ },
1554
+ "UserIntent": {
1555
+ "type": "string",
1556
+ "enum": [
1557
+ "SUGGEST_ALTERNATE_IMPLEMENTATION",
1558
+ "APPLY_COMMON_BEST_PRACTICES",
1559
+ "IMPROVE_CODE",
1560
+ "SHOW_EXAMPLES",
1561
+ "CITE_SOURCES",
1562
+ "EXPLAIN_LINE_BY_LINE",
1563
+ "EXPLAIN_CODE_SELECTION"
1564
+ ]
1565
+ },
1566
+ "UserModificationEvent": {
1567
+ "type": "structure",
1568
+ "required": ["sessionId", "requestId", "programmingLanguage", "modificationPercentage", "timestamp"],
1569
+ "members": {
1570
+ "sessionId": { "shape": "UUID" },
1571
+ "requestId": { "shape": "UUID" },
1572
+ "programmingLanguage": { "shape": "ProgrammingLanguage" },
1573
+ "modificationPercentage": { "shape": "Double" },
1574
+ "customizationArn": { "shape": "CustomizationArn" },
1575
+ "timestamp": { "shape": "Timestamp" }
1576
+ }
1577
+ },
1578
+ "UserTriggerDecisionEvent": {
1579
+ "type": "structure",
1580
+ "required": [
1581
+ "sessionId",
1582
+ "requestId",
1583
+ "programmingLanguage",
1584
+ "completionType",
1585
+ "suggestionState",
1586
+ "recommendationLatencyMilliseconds",
1587
+ "timestamp"
1588
+ ],
1589
+ "members": {
1590
+ "sessionId": { "shape": "UUID" },
1591
+ "requestId": { "shape": "UUID" },
1592
+ "customizationArn": { "shape": "CustomizationArn" },
1593
+ "programmingLanguage": { "shape": "ProgrammingLanguage" },
1594
+ "completionType": { "shape": "CompletionType" },
1595
+ "suggestionState": { "shape": "SuggestionState" },
1596
+ "recommendationLatencyMilliseconds": { "shape": "Double" },
1597
+ "timestamp": { "shape": "Timestamp" },
1598
+ "triggerToResponseLatencyMilliseconds": { "shape": "Double" },
1599
+ "suggestionReferenceCount": { "shape": "PrimitiveInteger" },
1600
+ "generatedLine": { "shape": "PrimitiveInteger" },
1601
+ "numberOfRecommendations": { "shape": "PrimitiveInteger" }
1602
+ }
1603
+ },
1604
+ "ValidationException": {
1605
+ "type": "structure",
1606
+ "required": ["message"],
1607
+ "members": {
1608
+ "message": { "shape": "String" },
1609
+ "reason": { "shape": "ValidationExceptionReason" }
1610
+ },
1611
+ "exception": true
1612
+ },
1613
+ "ValidationExceptionReason": {
1614
+ "type": "string",
1615
+ "enum": ["INVALID_CONVERSATION_ID"]
1616
+ },
1617
+ "WorkspaceState": {
1618
+ "type": "structure",
1619
+ "required": ["uploadId", "programmingLanguage"],
1620
+ "members": {
1621
+ "uploadId": { "shape": "UploadId" },
1622
+ "programmingLanguage": { "shape": "ProgrammingLanguage" },
1623
+ "contextTruncationScheme": { "shape": "ContextTruncationScheme" }
1624
+ }
1625
+ }
1626
+ }
1627
+ }