@aws/lsp-codewhisperer 0.0.103 → 0.0.104

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 (80) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/node_modules/@amzn/codewhisperer-runtime/LICENSE +1 -1
  3. package/node_modules/@amzn/codewhisperer-runtime/README.md +161 -14
  4. package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/GetUsageLimitsCommand.js +2 -2
  5. package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/commands/ListAvailableProfilesCommand.js +2 -1
  6. package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/models/models_0.js +140 -80
  7. package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/models/models_1.js +25 -1
  8. package/node_modules/@amzn/codewhisperer-runtime/dist-cjs/protocols/Aws_restJson1.js +86 -3
  9. package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/GetUsageLimitsCommand.js +1 -1
  10. package/node_modules/@amzn/codewhisperer-runtime/dist-es/commands/ListAvailableProfilesCommand.js +2 -1
  11. package/node_modules/@amzn/codewhisperer-runtime/dist-es/models/models_0.js +128 -71
  12. package/node_modules/@amzn/codewhisperer-runtime/dist-es/models/models_1.js +24 -2
  13. package/node_modules/@amzn/codewhisperer-runtime/dist-es/protocols/Aws_restJson1.js +86 -3
  14. package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/CreateSubscriptionTokenCommand.d.ts +1 -0
  15. package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/CreateTaskAssistConversationCommand.d.ts +1 -1
  16. package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/DeleteTaskAssistConversationCommand.d.ts +1 -2
  17. package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/GetProfileCommand.d.ts +7 -0
  18. package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/GetUsageLimitsCommand.d.ts +32 -1
  19. package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/ListAvailableModelsCommand.d.ts +10 -2
  20. package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/ListAvailableProfilesCommand.d.ts +13 -0
  21. package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/ListAvailableSubscriptionsCommand.d.ts +4 -2
  22. package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/SendTelemetryEventCommand.d.ts +44 -0
  23. package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/SetUserPreferenceCommand.d.ts +2 -1
  24. package/node_modules/@amzn/codewhisperer-runtime/dist-types/commands/UpdateUsageLimitsCommand.d.ts +1 -1
  25. package/node_modules/@amzn/codewhisperer-runtime/dist-types/models/models_0.d.ts +595 -330
  26. package/node_modules/@amzn/codewhisperer-runtime/dist-types/models/models_1.d.ts +271 -1
  27. package/node_modules/@amzn/codewhisperer-runtime/dist-types/runtimeConfig.browser.d.ts +6 -1
  28. package/node_modules/@amzn/codewhisperer-runtime/dist-types/runtimeConfig.d.ts +6 -1
  29. package/node_modules/@amzn/codewhisperer-runtime/dist-types/runtimeConfig.native.d.ts +6 -1
  30. package/node_modules/@amzn/codewhisperer-runtime/node_modules/@smithy/abort-controller/package.json +3 -3
  31. package/node_modules/@amzn/codewhisperer-runtime/node_modules/@smithy/node-http-handler/dist-cjs/index.js +2 -2
  32. package/node_modules/@amzn/codewhisperer-runtime/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +2 -2
  33. package/node_modules/@amzn/codewhisperer-runtime/node_modules/@smithy/node-http-handler/package.json +9 -9
  34. package/node_modules/@amzn/codewhisperer-runtime/node_modules/@smithy/types/dist-types/schema/schema-deprecated.d.ts +7 -0
  35. package/node_modules/@amzn/codewhisperer-runtime/node_modules/@smithy/types/dist-types/schema/schema.d.ts +6 -0
  36. package/node_modules/@amzn/codewhisperer-runtime/node_modules/@smithy/types/dist-types/schema/static-schemas.d.ts +19 -2
  37. package/node_modules/@amzn/codewhisperer-runtime/node_modules/@smithy/types/dist-types/ts3.4/schema/schema-deprecated.d.ts +7 -0
  38. package/node_modules/@amzn/codewhisperer-runtime/node_modules/@smithy/types/dist-types/ts3.4/schema/schema.d.ts +6 -0
  39. package/node_modules/@amzn/codewhisperer-runtime/node_modules/@smithy/types/dist-types/ts3.4/schema/static-schemas.d.ts +19 -2
  40. package/node_modules/@amzn/codewhisperer-runtime/node_modules/@smithy/types/package.json +2 -2
  41. package/out/language-server/agenticChat/agenticChatController.js +5 -2
  42. package/out/language-server/agenticChat/agenticChatController.js.map +1 -1
  43. package/out/language-server/agenticChat/tools/executeBash.d.ts +1 -1
  44. package/out/language-server/agenticChat/tools/executeBash.js +11 -2
  45. package/out/language-server/agenticChat/tools/executeBash.js.map +1 -1
  46. package/out/language-server/agenticChat/tools/fileSearch.d.ts +1 -1
  47. package/out/language-server/agenticChat/tools/fileSearch.js +1 -1
  48. package/out/language-server/agenticChat/tools/fileSearch.js.map +1 -1
  49. package/out/language-server/agenticChat/tools/fsRead.d.ts +1 -1
  50. package/out/language-server/agenticChat/tools/fsRead.js +1 -1
  51. package/out/language-server/agenticChat/tools/fsRead.js.map +1 -1
  52. package/out/language-server/agenticChat/tools/fsReplace.d.ts +1 -1
  53. package/out/language-server/agenticChat/tools/fsReplace.js +1 -1
  54. package/out/language-server/agenticChat/tools/fsReplace.js.map +1 -1
  55. package/out/language-server/agenticChat/tools/fsWrite.d.ts +1 -1
  56. package/out/language-server/agenticChat/tools/fsWrite.js +1 -1
  57. package/out/language-server/agenticChat/tools/fsWrite.js.map +1 -1
  58. package/out/language-server/agenticChat/tools/listDirectory.d.ts +1 -1
  59. package/out/language-server/agenticChat/tools/listDirectory.js +1 -1
  60. package/out/language-server/agenticChat/tools/listDirectory.js.map +1 -1
  61. package/out/language-server/agenticChat/tools/mcp/mcpManager.d.ts +5 -0
  62. package/out/language-server/agenticChat/tools/mcp/mcpManager.js +36 -1
  63. package/out/language-server/agenticChat/tools/mcp/mcpManager.js.map +1 -1
  64. package/out/language-server/agenticChat/tools/toolShared.d.ts +18 -5
  65. package/out/language-server/agenticChat/tools/toolShared.js +51 -10
  66. package/out/language-server/agenticChat/tools/toolShared.js.map +1 -1
  67. package/out/language-server/chat/chatSessionService.d.ts +4 -3
  68. package/out/language-server/chat/chatSessionService.js +9 -5
  69. package/out/language-server/chat/chatSessionService.js.map +1 -1
  70. package/out/language-server/chat/telemetry/chatTelemetryController.d.ts +1 -1
  71. package/out/language-server/chat/telemetry/chatTelemetryController.js +2 -2
  72. package/out/language-server/chat/telemetry/chatTelemetryController.js.map +1 -1
  73. package/out/language-server/netTransform/atxTransformHandler.js +5 -0
  74. package/out/language-server/netTransform/atxTransformHandler.js.map +1 -1
  75. package/out/language-server/workspaceContext/workspaceFolderManager.js +1 -1
  76. package/out/language-server/workspaceContext/workspaceFolderManager.js.map +1 -1
  77. package/out/shared/telemetry/telemetryService.js +3 -0
  78. package/out/shared/telemetry/telemetryService.js.map +1 -1
  79. package/out/shared/telemetry/types.d.ts +1 -0
  80. package/package.json +1 -1
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RuntimeDiagnosticFilterSensitiveLog = exports.DiagnosticSeverity = exports.ConsoleStateFilterSensitiveLog = exports.Origin = exports.ImageBlockFilterSensitiveLog = exports.ImageSourceFilterSensitiveLog = exports.ImageSource = exports.ImageFormat = exports.ChangeLogGranularityType = exports.ContentChecksumType = exports.ImportFilterSensitiveLog = exports.SupplementalContextFilterSensitiveLog = exports.SupplementalContextType = exports.SupplementalContextMetadata = exports.FileContextFilterSensitiveLog = exports.ProfileStatus = exports.IdentityDetails = exports.OptInFeaturesType = exports.ResourcePolicyEffect = exports.RecommendationsWithReferencesPreference = exports.ProfileType = exports.OverageStatus = exports.OptInFeatureToggle = exports.SubscriptionStartType = exports.ConflictException = exports.ConflictExceptionReason = exports.AssistantResponseMessageFilterSensitiveLog = exports.ToolUseFilterSensitiveLog = exports.SupplementaryWebLinkFilterSensitiveLog = exports.ReasoningContentFilterSensitiveLog = exports.ReasoningContent = exports.ReasoningTextFilterSensitiveLog = exports.FollowupPromptFilterSensitiveLog = exports.UserIntent = exports.CachePointType = exports.ArtifactType = exports.AppStudioStateFilterSensitiveLog = exports.AgentTaskType = exports.AgenticChatEventStatus = exports.AdditionalContentEntryFilterSensitiveLog = exports.FunctionalityName = exports.ValidationException = exports.ValidationExceptionReason = exports.ThrottlingException = exports.ThrottlingExceptionReason = exports.ResourceNotFoundException = exports.InternalServerException = exports.InternalServerExceptionReason = exports.AccessDeniedException = exports.AccessDeniedExceptionReason = void 0;
4
- exports.UploadContextFilterSensitiveLog = exports.UploadContext = exports.WorkspaceContextUploadContextFilterSensitiveLog = exports.TransformationUploadArtifactType = exports.ConversationStateFilterSensitiveLog = exports.ContextTruncationScheme = exports.CompletionType = exports.CompletionFilterSensitiveLog = exports.CodeScanRemediationsEventType = exports.CodeGenerationWorkflowStatus = exports.CodeGenerationWorkflowStage = exports.CodeFixJobStatus = exports.CodeAnalysisStatus = exports.CodeAnalysisScope = exports.CodeAnalysisFindingsSchema = exports.ChatTriggerType = exports.ChatInteractWithMessageEventFilterSensitiveLog = exports.ChatMessageInteractionType = exports.IdeDiagnosticFilterSensitiveLog = exports.IdeDiagnosticType = exports.ChatMessageFilterSensitiveLog = exports.ChatMessage = exports.UserInputMessageFilterSensitiveLog = exports.UserInputMessageContextFilterSensitiveLog = exports.ToolFilterSensitiveLog = exports.Tool = exports.ToolSpecificationFilterSensitiveLog = exports.ToolInputSchemaFilterSensitiveLog = exports.ToolResultFilterSensitiveLog = exports.ToolResultStatus = exports.ToolResultContentBlockFilterSensitiveLog = exports.ToolResultContentBlock = exports.ShellStateFilterSensitiveLog = exports.ShellHistoryEntryFilterSensitiveLog = exports.GitStateFilterSensitiveLog = exports.EnvStateFilterSensitiveLog = exports.EnvironmentVariableFilterSensitiveLog = exports.EditorStateFilterSensitiveLog = exports.RelevantTextDocumentFilterSensitiveLog = exports.ContentType = exports.CursorState = exports.DiagnosticFilterSensitiveLog = exports.Diagnostic = exports.TextDocumentDiagnosticFilterSensitiveLog = exports.DiagnosticTag = exports.DiagnosticRelatedInformationFilterSensitiveLog = exports.DiagnosticLocationFilterSensitiveLog = exports.TextDocumentFilterSensitiveLog = exports.SymbolType = exports.CodeDescriptionFilterSensitiveLog = void 0;
5
- exports.TransformationLanguage = exports.TransformationStatus = exports.TransformationJavaRuntimeEnv = exports.TransformationDotNetRuntimeEnv = exports.TestGenerationJobFilterSensitiveLog = exports.TestGenerationJobStatus = exports.TaskAssistPlanStepAction = exports.TargetCodeFilterSensitiveLog = exports.StartCodeFixJobRequestFilterSensitiveLog = exports.StartCodeAnalysisResponseFilterSensitiveLog = exports.ServiceQuotaExceededException = exports.ServiceQuotaExceededExceptionReason = exports.SendTelemetryEventRequestFilterSensitiveLog = exports.TelemetryEventFilterSensitiveLog = exports.TelemetryEvent = exports.UserTriggerDecisionEventFilterSensitiveLog = exports.UserDecisionReason = exports.SuggestionType = exports.SuggestionState = exports.TerminalUserInteractionEventType = exports.TransformationProgressUpdateStatus = exports.PackageInfoFilterSensitiveLog = exports.TargetFileInfoFilterSensitiveLog = exports.ListCodeAnalysisFindingsResponseFilterSensitiveLog = exports.IntentContextFilterSensitiveLog = exports.IntentContext = exports.Intent = exports.InlineChatUserDecision = exports.GetCodeFixJobResponseFilterSensitiveLog = exports.SuggestedFixFilterSensitiveLog = exports.GetCodeAnalysisResponseFilterSensitiveLog = exports.GenerateCompletionsResponseFilterSensitiveLog = exports.PredictionFilterSensitiveLog = exports.Prediction = exports.GenerateCompletionsRequestFilterSensitiveLog = exports.OperatingSystem = exports.IdeCategory = exports.PredictionType = exports.OptOutPreference = exports.FeatureValue = exports.TransformationDownloadArtifactType = exports.EditFilterSensitiveLog = exports.DocumentationIntentContextFilterSensitiveLog = exports.DocumentationType = exports.DocUserDecision = exports.DocInteractionType = exports.DocFolderLevel = exports.CreateUploadUrlResponseFilterSensitiveLog = exports.CreateUploadUrlRequestFilterSensitiveLog = exports.UploadIntent = void 0;
6
- exports.UpdateUsageLimitQuotaExceededException = exports.GetUsageLimitsResponseFilterSensitiveLog = exports.FreeTrialStatus = exports.UpgradeCapability = exports.SubscriptionManagementTarget = exports.OverageCapability = exports.ResourceType = exports.StartTestGenerationResponseFilterSensitiveLog = exports.StartTestGenerationRequestFilterSensitiveLog = exports.GetTestGenerationResponseFilterSensitiveLog = exports.Currency = exports.SubscriptionName = exports.SubscriptionStatus = exports.SubscriptionType = exports.SubscriptionProvider = exports.ListUserMemoryEntriesOutputFilterSensitiveLog = exports.CreateUserMemoryEntryOutputFilterSensitiveLog = exports.MemoryEntryFilterSensitiveLog = exports.MemoryEntryMetadataFilterSensitiveLog = exports.MemoryStatus = exports.CreateUserMemoryEntryInputFilterSensitiveLog = exports.InputType = exports.ModelProvider = exports.ListEventsResponseFilterSensitiveLog = exports.EventFilterSensitiveLog = exports.UserInfoFilterSensitiveLog = exports.UsageLimitUpdateRequestStatus = exports.UsageLimitType = exports.TransformationUserActionStatus = exports.TransformationStepStatus = exports.TransformationType = exports.TransformationProjectArtifactDescriptor = exports.TransformationRuntimeEnv = exports.TransformationMainframeRuntimeEnv = exports.TransformationOperatingSystemFamily = void 0;
3
+ exports.ImageSource = exports.ImageFormat = exports.ChangeLogGranularityType = exports.ContentChecksumType = exports.ImportFilterSensitiveLog = exports.SupplementalContextFilterSensitiveLog = exports.SupplementalContextType = exports.SupplementalContextMetadata = exports.FileContextFilterSensitiveLog = exports.ProfileFilterSensitiveLog = exports.ProfileStatus = exports.IdentityDetailsFilterSensitiveLog = exports.IdentityDetails = exports.ExternalIdentityDetailsFilterSensitiveLog = exports.OptInFeaturesType = exports.ResourcePolicyEffect = exports.RecommendationsWithReferencesPreference = exports.ProfileType = exports.OverageStatus = exports.SubscriptionStartType = exports.OIDCClaimKeysFilterSensitiveLog = exports.OptInFeatureToggle = exports.AssistantResponseMessageFilterSensitiveLog = exports.ToolUseFilterSensitiveLog = exports.SupplementaryWebLinkFilterSensitiveLog = exports.ReasoningContentFilterSensitiveLog = exports.ReasoningContent = exports.ReasoningTextFilterSensitiveLog = exports.FollowupPromptFilterSensitiveLog = exports.UserIntent = exports.CachePointType = exports.ArtifactType = exports.AppStudioStateFilterSensitiveLog = exports.AgentTaskType = exports.AgenticChatEventStatus = exports.AdditionalContentEntryFilterSensitiveLog = exports.FunctionalityName = exports.ServiceQuotaExceededException = exports.ServiceQuotaExceededExceptionReason = exports.ResourceNotFoundException = exports.ValidationException = exports.ValidationExceptionReason = exports.ThrottlingException = exports.ThrottlingExceptionReason = exports.InternalServerException = exports.InternalServerExceptionReason = exports.ConflictException = exports.ConflictExceptionReason = exports.AccessDeniedException = exports.AccessDeniedExceptionReason = void 0;
4
+ exports.CompletionType = exports.CompletionFilterSensitiveLog = exports.CodeScanRemediationsEventType = exports.CodeGenerationWorkflowStatus = exports.CodeGenerationWorkflowStage = exports.CodeFixJobStatus = exports.CodeAnalysisStatus = exports.CodeAnalysisScope = exports.CodeAnalysisFindingsSchema = exports.ChatTriggerType = exports.ChatInteractWithMessageEventFilterSensitiveLog = exports.ChatMessageInteractionType = exports.IdeDiagnosticFilterSensitiveLog = exports.IdeDiagnosticType = exports.ChatMessageFilterSensitiveLog = exports.ChatMessage = exports.UserInputMessageFilterSensitiveLog = exports.UserInputMessageContextFilterSensitiveLog = exports.ToolFilterSensitiveLog = exports.Tool = exports.ToolSpecificationFilterSensitiveLog = exports.ToolInputSchemaFilterSensitiveLog = exports.ToolResultFilterSensitiveLog = exports.ToolResultStatus = exports.ToolResultContentBlockFilterSensitiveLog = exports.ToolResultContentBlock = exports.ShellStateFilterSensitiveLog = exports.ShellHistoryEntryFilterSensitiveLog = exports.GitStateFilterSensitiveLog = exports.EnvStateFilterSensitiveLog = exports.EnvironmentVariableFilterSensitiveLog = exports.EditorStateFilterSensitiveLog = exports.RelevantTextDocumentFilterSensitiveLog = exports.ContentType = exports.CursorState = exports.DiagnosticFilterSensitiveLog = exports.Diagnostic = exports.TextDocumentDiagnosticFilterSensitiveLog = exports.DiagnosticTag = exports.DiagnosticRelatedInformationFilterSensitiveLog = exports.DiagnosticLocationFilterSensitiveLog = exports.TextDocumentFilterSensitiveLog = exports.SymbolType = exports.CodeDescriptionFilterSensitiveLog = exports.RuntimeDiagnosticFilterSensitiveLog = exports.DiagnosticSeverity = exports.ConsoleStateFilterSensitiveLog = exports.Origin = exports.ImageBlockFilterSensitiveLog = exports.ImageSourceFilterSensitiveLog = void 0;
5
+ exports.TargetCodeFilterSensitiveLog = exports.StartCodeFixJobRequestFilterSensitiveLog = exports.StartCodeAnalysisResponseFilterSensitiveLog = exports.SendTelemetryEventRequestFilterSensitiveLog = exports.TelemetryEventFilterSensitiveLog = exports.TelemetryEvent = exports.UserTriggerDecisionEventFilterSensitiveLog = exports.UserDecisionReason = exports.SuggestionType = exports.SuggestionState = exports.TerminalUserInteractionEventType = exports.TransformationProgressUpdateStatus = exports.PackageInfoFilterSensitiveLog = exports.TargetFileInfoFilterSensitiveLog = exports.ListCodeAnalysisFindingsResponseFilterSensitiveLog = exports.KiroSubscriptionType = exports.ChatAutonomyMode = exports.ChatAgentMode = exports.IntentContextFilterSensitiveLog = exports.IntentContext = exports.Intent = exports.InlineChatUserDecision = exports.GetCodeFixJobResponseFilterSensitiveLog = exports.SuggestedFixFilterSensitiveLog = exports.GetCodeAnalysisResponseFilterSensitiveLog = exports.GenerateCompletionsResponseFilterSensitiveLog = exports.PredictionFilterSensitiveLog = exports.Prediction = exports.GenerateCompletionsRequestFilterSensitiveLog = exports.OperatingSystem = exports.IdeCategory = exports.PredictionType = exports.OptOutPreference = exports.FeatureValue = exports.TransformationDownloadArtifactType = exports.EditFilterSensitiveLog = exports.DocumentationIntentContextFilterSensitiveLog = exports.DocumentationType = exports.DocUserDecision = exports.DocInteractionType = exports.DocFolderLevel = exports.CreateUploadUrlResponseFilterSensitiveLog = exports.CreateUploadUrlRequestFilterSensitiveLog = exports.UploadIntent = exports.UploadContextFilterSensitiveLog = exports.UploadContext = exports.WorkspaceContextUploadContextFilterSensitiveLog = exports.TransformationUploadArtifactType = exports.ConversationStateFilterSensitiveLog = exports.ContextTruncationScheme = void 0;
6
+ exports.BonusStatus = exports.UpgradeCapability = exports.SubscriptionManagementTarget = exports.OverageCapability = exports.ResourceType = exports.StartTestGenerationResponseFilterSensitiveLog = exports.StartTestGenerationRequestFilterSensitiveLog = exports.GetTestGenerationResponseFilterSensitiveLog = exports.Currency = exports.SubscriptionName = exports.SubscriptionStatus = exports.SubscriptionType = exports.SubscriptionProvider = exports.ListUserMemoryEntriesOutputFilterSensitiveLog = exports.CreateUserMemoryEntryOutputFilterSensitiveLog = exports.MemoryEntryFilterSensitiveLog = exports.MemoryEntryMetadataFilterSensitiveLog = exports.MemoryStatus = exports.CreateUserMemoryEntryInputFilterSensitiveLog = exports.ListAvailableProfilesResponseFilterSensitiveLog = exports.InputType = exports.ModelProvider = exports.ListEventsResponseFilterSensitiveLog = exports.EventFilterSensitiveLog = exports.UserInfoFilterSensitiveLog = exports.UsageLimitUpdateRequestStatus = exports.UsageLimitType = exports.TransformationUserActionStatus = exports.TransformationStepStatus = exports.TransformationType = exports.TransformationProjectArtifactDescriptor = exports.TransformationRuntimeEnv = exports.TransformationMainframeRuntimeEnv = exports.TransformationOperatingSystemFamily = exports.TransformationLanguage = exports.TransformationStatus = exports.TransformationJavaRuntimeEnv = exports.TransformationDotNetRuntimeEnv = exports.TestGenerationJobFilterSensitiveLog = exports.TestGenerationJobStatus = exports.TaskAssistPlanStepAction = void 0;
7
7
  const CodeWhispererRuntimeServiceException_1 = require("./CodeWhispererRuntimeServiceException");
8
8
  const smithy_client_1 = require("@smithy/smithy-client");
9
9
  exports.AccessDeniedExceptionReason = {
@@ -27,6 +27,26 @@ class AccessDeniedException extends CodeWhispererRuntimeServiceException_1.CodeW
27
27
  }
28
28
  }
29
29
  exports.AccessDeniedException = AccessDeniedException;
30
+ exports.ConflictExceptionReason = {
31
+ CUSTOMER_KMS_KEY_DISABLED: "CUSTOMER_KMS_KEY_DISABLED",
32
+ CUSTOMER_KMS_KEY_INVALID_KEY_POLICY: "CUSTOMER_KMS_KEY_INVALID_KEY_POLICY",
33
+ MISMATCHED_KMS_KEY: "MISMATCHED_KMS_KEY",
34
+ };
35
+ class ConflictException extends CodeWhispererRuntimeServiceException_1.CodeWhispererRuntimeServiceException {
36
+ name = "ConflictException";
37
+ $fault = "client";
38
+ reason;
39
+ constructor(opts) {
40
+ super({
41
+ name: "ConflictException",
42
+ $fault: "client",
43
+ ...opts
44
+ });
45
+ Object.setPrototypeOf(this, ConflictException.prototype);
46
+ this.reason = opts.reason;
47
+ }
48
+ }
49
+ exports.ConflictException = ConflictException;
30
50
  exports.InternalServerExceptionReason = {
31
51
  MODEL_TEMPORARILY_UNAVAILABLE: "MODEL_TEMPORARILY_UNAVAILABLE",
32
52
  };
@@ -46,19 +66,6 @@ class InternalServerException extends CodeWhispererRuntimeServiceException_1.Cod
46
66
  }
47
67
  }
48
68
  exports.InternalServerException = InternalServerException;
49
- class ResourceNotFoundException extends CodeWhispererRuntimeServiceException_1.CodeWhispererRuntimeServiceException {
50
- name = "ResourceNotFoundException";
51
- $fault = "client";
52
- constructor(opts) {
53
- super({
54
- name: "ResourceNotFoundException",
55
- $fault: "client",
56
- ...opts
57
- });
58
- Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
59
- }
60
- }
61
- exports.ResourceNotFoundException = ResourceNotFoundException;
62
69
  exports.ThrottlingExceptionReason = {
63
70
  DAILY_REQUEST_COUNT: "DAILY_REQUEST_COUNT",
64
71
  INSUFFICIENT_MODEL_CAPACITY: "INSUFFICIENT_MODEL_CAPACITY",
@@ -103,6 +110,39 @@ class ValidationException extends CodeWhispererRuntimeServiceException_1.CodeWhi
103
110
  }
104
111
  }
105
112
  exports.ValidationException = ValidationException;
113
+ class ResourceNotFoundException extends CodeWhispererRuntimeServiceException_1.CodeWhispererRuntimeServiceException {
114
+ name = "ResourceNotFoundException";
115
+ $fault = "client";
116
+ constructor(opts) {
117
+ super({
118
+ name: "ResourceNotFoundException",
119
+ $fault: "client",
120
+ ...opts
121
+ });
122
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
123
+ }
124
+ }
125
+ exports.ResourceNotFoundException = ResourceNotFoundException;
126
+ exports.ServiceQuotaExceededExceptionReason = {
127
+ CONVERSATION_LIMIT_EXCEEDED: "CONVERSATION_LIMIT_EXCEEDED",
128
+ MONTHLY_REQUEST_COUNT: "MONTHLY_REQUEST_COUNT",
129
+ OVERAGE_REQUEST_LIMIT_EXCEEDED: "OVERAGE_REQUEST_LIMIT_EXCEEDED",
130
+ };
131
+ class ServiceQuotaExceededException extends CodeWhispererRuntimeServiceException_1.CodeWhispererRuntimeServiceException {
132
+ name = "ServiceQuotaExceededException";
133
+ $fault = "client";
134
+ reason;
135
+ constructor(opts) {
136
+ super({
137
+ name: "ServiceQuotaExceededException",
138
+ $fault: "client",
139
+ ...opts
140
+ });
141
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
142
+ this.reason = opts.reason;
143
+ }
144
+ }
145
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
106
146
  exports.FunctionalityName = {
107
147
  Analysis: "ANALYSIS",
108
148
  ChatCustomization: "CHAT_CUSTOMIZATION",
@@ -230,34 +270,24 @@ const AssistantResponseMessageFilterSensitiveLog = (obj) => ({
230
270
  }),
231
271
  });
232
272
  exports.AssistantResponseMessageFilterSensitiveLog = AssistantResponseMessageFilterSensitiveLog;
233
- exports.ConflictExceptionReason = {
234
- CUSTOMER_KMS_KEY_DISABLED: "CUSTOMER_KMS_KEY_DISABLED",
235
- CUSTOMER_KMS_KEY_INVALID_KEY_POLICY: "CUSTOMER_KMS_KEY_INVALID_KEY_POLICY",
236
- MISMATCHED_KMS_KEY: "MISMATCHED_KMS_KEY",
273
+ exports.OptInFeatureToggle = {
274
+ OFF: "OFF",
275
+ ON: "ON",
237
276
  };
238
- class ConflictException extends CodeWhispererRuntimeServiceException_1.CodeWhispererRuntimeServiceException {
239
- name = "ConflictException";
240
- $fault = "client";
241
- reason;
242
- constructor(opts) {
243
- super({
244
- name: "ConflictException",
245
- $fault: "client",
246
- ...opts
247
- });
248
- Object.setPrototypeOf(this, ConflictException.prototype);
249
- this.reason = opts.reason;
250
- }
251
- }
252
- exports.ConflictException = ConflictException;
277
+ const OIDCClaimKeysFilterSensitiveLog = (obj) => ({
278
+ ...obj,
279
+ ...(obj.tokenIdClaimKey && { tokenIdClaimKey: smithy_client_1.SENSITIVE_STRING
280
+ }),
281
+ ...(obj.userIdClaimKey && { userIdClaimKey: smithy_client_1.SENSITIVE_STRING
282
+ }),
283
+ ...(obj.appClaimKey && { appClaimKey: smithy_client_1.SENSITIVE_STRING
284
+ }),
285
+ });
286
+ exports.OIDCClaimKeysFilterSensitiveLog = OIDCClaimKeysFilterSensitiveLog;
253
287
  exports.SubscriptionStartType = {
254
288
  ADMIN: "ADMIN",
255
289
  JUST_IN_TIME: "JUST_IN_TIME",
256
290
  };
257
- exports.OptInFeatureToggle = {
258
- OFF: "OFF",
259
- ON: "ON",
260
- };
261
291
  exports.OverageStatus = {
262
292
  DISABLED: "DISABLED",
263
293
  ENABLED: "ENABLED",
@@ -279,6 +309,16 @@ exports.OptInFeaturesType = {
279
309
  KIRO: "KIRO",
280
310
  Q_DEVELOPER: "Q_DEVELOPER",
281
311
  };
312
+ const ExternalIdentityDetailsFilterSensitiveLog = (obj) => ({
313
+ ...obj,
314
+ ...(obj.issuerUrl && { issuerUrl: smithy_client_1.SENSITIVE_STRING
315
+ }),
316
+ ...(obj.clientId && { clientId: smithy_client_1.SENSITIVE_STRING
317
+ }),
318
+ ...(obj.oidcClaimKeys && { oidcClaimKeys: (0, exports.OIDCClaimKeysFilterSensitiveLog)(obj.oidcClaimKeys)
319
+ }),
320
+ });
321
+ exports.ExternalIdentityDetailsFilterSensitiveLog = ExternalIdentityDetailsFilterSensitiveLog;
282
322
  var IdentityDetails;
283
323
  (function (IdentityDetails) {
284
324
  IdentityDetails.visit = (value, visitor) => {
@@ -289,6 +329,17 @@ var IdentityDetails;
289
329
  return visitor._(value.$unknown[0], value.$unknown[1]);
290
330
  };
291
331
  })(IdentityDetails || (exports.IdentityDetails = IdentityDetails = {}));
332
+ const IdentityDetailsFilterSensitiveLog = (obj) => {
333
+ if (obj.ssoIdentityDetails !== undefined)
334
+ return { ssoIdentityDetails: obj.ssoIdentityDetails
335
+ };
336
+ if (obj.externalIdentityDetails !== undefined)
337
+ return { externalIdentityDetails: (0, exports.ExternalIdentityDetailsFilterSensitiveLog)(obj.externalIdentityDetails)
338
+ };
339
+ if (obj.$unknown !== undefined)
340
+ return { [obj.$unknown[0]]: 'UNKNOWN' };
341
+ };
342
+ exports.IdentityDetailsFilterSensitiveLog = IdentityDetailsFilterSensitiveLog;
292
343
  exports.ProfileStatus = {
293
344
  ACTIVE: "ACTIVE",
294
345
  CREATE_FAILED: "CREATE_FAILED",
@@ -298,6 +349,12 @@ exports.ProfileStatus = {
298
349
  UPDATE_FAILED: "UPDATE_FAILED",
299
350
  UPDATING: "UPDATING",
300
351
  };
352
+ const ProfileFilterSensitiveLog = (obj) => ({
353
+ ...obj,
354
+ ...(obj.identityDetails && { identityDetails: (0, exports.IdentityDetailsFilterSensitiveLog)(obj.identityDetails)
355
+ }),
356
+ });
357
+ exports.ProfileFilterSensitiveLog = ProfileFilterSensitiveLog;
301
358
  const FileContextFilterSensitiveLog = (obj) => ({
302
359
  ...obj,
303
360
  ...(obj.leftFileContent && { leftFileContent: smithy_client_1.SENSITIVE_STRING
@@ -1019,6 +1076,31 @@ const IntentContextFilterSensitiveLog = (obj) => {
1019
1076
  return { [obj.$unknown[0]]: 'UNKNOWN' };
1020
1077
  };
1021
1078
  exports.IntentContextFilterSensitiveLog = IntentContextFilterSensitiveLog;
1079
+ exports.ChatAgentMode = {
1080
+ AUTOCOMPLETE: "AUTOCOMPLETE",
1081
+ EXECUTE_HOOK: "EXECUTE_HOOK",
1082
+ GENERATE_HOOK: "GENERATE_HOOK",
1083
+ GENERATE_STEERING: "GENERATE_STEERING",
1084
+ INTENT_CLASSIFICATION: "INTENT_CLASSIFICATION",
1085
+ OTHER: "OTHER",
1086
+ REFINE_DESIGN: "REFINE_DESIGN",
1087
+ REFINE_REQUIREMENTS: "REFINE_REQUIREMENTS",
1088
+ REFINE_STEERING: "REFINE_STEERING",
1089
+ SPEC: "SPEC",
1090
+ SUMMARIZATION: "SUMMARIZATION",
1091
+ UPDATE_TASKS: "UPDATE_TASKS",
1092
+ VIBE: "VIBE",
1093
+ };
1094
+ exports.ChatAutonomyMode = {
1095
+ AUTOPILOT: "AUTOPILOT",
1096
+ OTHER: "OTHER",
1097
+ SUPERVISED: "SUPERVISED",
1098
+ };
1099
+ exports.KiroSubscriptionType = {
1100
+ POWER: "POWER",
1101
+ PRO: "PRO",
1102
+ PRO_PLUS: "PRO_PLUS",
1103
+ };
1022
1104
  const ListCodeAnalysisFindingsResponseFilterSensitiveLog = (obj) => ({
1023
1105
  ...obj,
1024
1106
  ...(obj.codeAnalysisFindings && { codeAnalysisFindings: smithy_client_1.SENSITIVE_STRING
@@ -1135,6 +1217,10 @@ var TelemetryEvent;
1135
1217
  return visitor.docV2AcceptanceEvent(value.docV2AcceptanceEvent);
1136
1218
  if (value.testGenerationEvent !== undefined)
1137
1219
  return visitor.testGenerationEvent(value.testGenerationEvent);
1220
+ if (value.kiroEnterpriseTelemetryEvent !== undefined)
1221
+ return visitor.kiroEnterpriseTelemetryEvent(value.kiroEnterpriseTelemetryEvent);
1222
+ if (value.kiroChatMessageEvent !== undefined)
1223
+ return visitor.kiroChatMessageEvent(value.kiroChatMessageEvent);
1138
1224
  return visitor._(value.$unknown[0], value.$unknown[1]);
1139
1225
  };
1140
1226
  })(TelemetryEvent || (exports.TelemetryEvent = TelemetryEvent = {}));
@@ -1208,6 +1294,12 @@ const TelemetryEventFilterSensitiveLog = (obj) => {
1208
1294
  if (obj.testGenerationEvent !== undefined)
1209
1295
  return { testGenerationEvent: obj.testGenerationEvent
1210
1296
  };
1297
+ if (obj.kiroEnterpriseTelemetryEvent !== undefined)
1298
+ return { kiroEnterpriseTelemetryEvent: obj.kiroEnterpriseTelemetryEvent
1299
+ };
1300
+ if (obj.kiroChatMessageEvent !== undefined)
1301
+ return { kiroChatMessageEvent: obj.kiroChatMessageEvent
1302
+ };
1211
1303
  if (obj.$unknown !== undefined)
1212
1304
  return { [obj.$unknown[0]]: 'UNKNOWN' };
1213
1305
  };
@@ -1218,26 +1310,6 @@ const SendTelemetryEventRequestFilterSensitiveLog = (obj) => ({
1218
1310
  }),
1219
1311
  });
1220
1312
  exports.SendTelemetryEventRequestFilterSensitiveLog = SendTelemetryEventRequestFilterSensitiveLog;
1221
- exports.ServiceQuotaExceededExceptionReason = {
1222
- CONVERSATION_LIMIT_EXCEEDED: "CONVERSATION_LIMIT_EXCEEDED",
1223
- MONTHLY_REQUEST_COUNT: "MONTHLY_REQUEST_COUNT",
1224
- OVERAGE_REQUEST_LIMIT_EXCEEDED: "OVERAGE_REQUEST_LIMIT_EXCEEDED",
1225
- };
1226
- class ServiceQuotaExceededException extends CodeWhispererRuntimeServiceException_1.CodeWhispererRuntimeServiceException {
1227
- name = "ServiceQuotaExceededException";
1228
- $fault = "client";
1229
- reason;
1230
- constructor(opts) {
1231
- super({
1232
- name: "ServiceQuotaExceededException",
1233
- $fault: "client",
1234
- ...opts
1235
- });
1236
- Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
1237
- this.reason = opts.reason;
1238
- }
1239
- }
1240
- exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
1241
1313
  const StartCodeAnalysisResponseFilterSensitiveLog = (obj) => ({
1242
1314
  ...obj,
1243
1315
  ...(obj.errorMessage && { errorMessage: smithy_client_1.SENSITIVE_STRING
@@ -1402,6 +1474,12 @@ exports.InputType = {
1402
1474
  IMAGE: "IMAGE",
1403
1475
  TEXT: "TEXT",
1404
1476
  };
1477
+ const ListAvailableProfilesResponseFilterSensitiveLog = (obj) => ({
1478
+ ...obj,
1479
+ ...(obj.profiles && { profiles: obj.profiles.map(item => (0, exports.ProfileFilterSensitiveLog)(item))
1480
+ }),
1481
+ });
1482
+ exports.ListAvailableProfilesResponseFilterSensitiveLog = ListAvailableProfilesResponseFilterSensitiveLog;
1405
1483
  const CreateUserMemoryEntryInputFilterSensitiveLog = (obj) => ({
1406
1484
  ...obj,
1407
1485
  ...(obj.memoryEntryString && { memoryEntryString: smithy_client_1.SENSITIVE_STRING
@@ -1503,26 +1581,8 @@ exports.UpgradeCapability = {
1503
1581
  UPGRADE_CAPABLE: "UPGRADE_CAPABLE",
1504
1582
  UPGRADE_INCAPABLE: "UPGRADE_INCAPABLE",
1505
1583
  };
1506
- exports.FreeTrialStatus = {
1584
+ exports.BonusStatus = {
1507
1585
  ACTIVE: "ACTIVE",
1586
+ EXHAUSTED: "EXHAUSTED",
1508
1587
  EXPIRED: "EXPIRED",
1509
1588
  };
1510
- const GetUsageLimitsResponseFilterSensitiveLog = (obj) => ({
1511
- ...obj,
1512
- ...(obj.userInfo && { userInfo: (0, exports.UserInfoFilterSensitiveLog)(obj.userInfo)
1513
- }),
1514
- });
1515
- exports.GetUsageLimitsResponseFilterSensitiveLog = GetUsageLimitsResponseFilterSensitiveLog;
1516
- class UpdateUsageLimitQuotaExceededException extends CodeWhispererRuntimeServiceException_1.CodeWhispererRuntimeServiceException {
1517
- name = "UpdateUsageLimitQuotaExceededException";
1518
- $fault = "client";
1519
- constructor(opts) {
1520
- super({
1521
- name: "UpdateUsageLimitQuotaExceededException",
1522
- $fault: "client",
1523
- ...opts
1524
- });
1525
- Object.setPrototypeOf(this, UpdateUsageLimitQuotaExceededException.prototype);
1526
- }
1527
- }
1528
- exports.UpdateUsageLimitQuotaExceededException = UpdateUsageLimitQuotaExceededException;
@@ -1,8 +1,32 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ListWorkspaceMetadataResponseFilterSensitiveLog = exports.ListWorkspaceMetadataRequestFilterSensitiveLog = exports.CreateWorkspaceResponseFilterSensitiveLog = exports.WorkspaceMetadataFilterSensitiveLog = exports.WorkspaceStatus = exports.CreateWorkspaceRequestFilterSensitiveLog = exports.StartTaskAssistCodeGenerationRequestFilterSensitiveLog = exports.GetTaskAssistCodeGenerationResponseFilterSensitiveLog = void 0;
3
+ exports.ListWorkspaceMetadataResponseFilterSensitiveLog = exports.ListWorkspaceMetadataRequestFilterSensitiveLog = exports.CreateWorkspaceResponseFilterSensitiveLog = exports.WorkspaceMetadataFilterSensitiveLog = exports.WorkspaceStatus = exports.CreateWorkspaceRequestFilterSensitiveLog = exports.StartTaskAssistCodeGenerationRequestFilterSensitiveLog = exports.GetTaskAssistCodeGenerationResponseFilterSensitiveLog = exports.UpdateUsageLimitQuotaExceededException = exports.GetUsageLimitsResponseFilterSensitiveLog = exports.FreeTrialStatus = void 0;
4
+ const CodeWhispererRuntimeServiceException_1 = require("./CodeWhispererRuntimeServiceException");
4
5
  const models_0_1 = require("./models_0");
5
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
+ exports.FreeTrialStatus = {
8
+ ACTIVE: "ACTIVE",
9
+ EXPIRED: "EXPIRED",
10
+ };
11
+ const GetUsageLimitsResponseFilterSensitiveLog = (obj) => ({
12
+ ...obj,
13
+ ...(obj.userInfo && { userInfo: (0, models_0_1.UserInfoFilterSensitiveLog)(obj.userInfo)
14
+ }),
15
+ });
16
+ exports.GetUsageLimitsResponseFilterSensitiveLog = GetUsageLimitsResponseFilterSensitiveLog;
17
+ class UpdateUsageLimitQuotaExceededException extends CodeWhispererRuntimeServiceException_1.CodeWhispererRuntimeServiceException {
18
+ name = "UpdateUsageLimitQuotaExceededException";
19
+ $fault = "client";
20
+ constructor(opts) {
21
+ super({
22
+ name: "UpdateUsageLimitQuotaExceededException",
23
+ $fault: "client",
24
+ ...opts
25
+ });
26
+ Object.setPrototypeOf(this, UpdateUsageLimitQuotaExceededException.prototype);
27
+ }
28
+ }
29
+ exports.UpdateUsageLimitQuotaExceededException = UpdateUsageLimitQuotaExceededException;
6
30
  const GetTaskAssistCodeGenerationResponseFilterSensitiveLog = (obj) => ({
7
31
  ...obj,
8
32
  ...(obj.codeGenerationStatusDetail && { codeGenerationStatusDetail: smithy_client_1.SENSITIVE_STRING
@@ -4,6 +4,7 @@ exports.de_GetCodeAnalysisCommand = exports.de_GenerateCompletionsCommand = expo
4
4
  exports.de_UpdateUsageLimitsCommand = exports.de_StopTransformationCommand = exports.de_StartTransformationCommand = exports.de_StartTestGenerationCommand = exports.de_StartTaskAssistCodeGenerationCommand = exports.de_StartCodeFixJobCommand = exports.de_StartCodeAnalysisCommand = exports.de_SetUserPreferenceCommand = exports.de_SendTelemetryEventCommand = exports.de_ResumeTransformationCommand = exports.de_PushTelemetryEventCommand = exports.de_ListWorkspaceMetadataCommand = exports.de_ListUserMemoryEntriesCommand = exports.de_ListFeatureEvaluationsCommand = exports.de_ListEventsCommand = exports.de_ListCodeAnalysisFindingsCommand = exports.de_ListAvailableSubscriptionsCommand = exports.de_ListAvailableProfilesCommand = exports.de_ListAvailableModelsCommand = exports.de_ListAvailableCustomizationsCommand = exports.de_GetUsageLimitsCommand = exports.de_GetTransformationPlanCommand = exports.de_GetTransformationCommand = exports.de_GetTestGenerationCommand = exports.de_GetTaskAssistCodeGenerationCommand = exports.de_GetRetrievalsCommand = exports.de_GetProfileCommand = exports.de_GetCodeFixJobCommand = void 0;
5
5
  const CodeWhispererRuntimeServiceException_1 = require("../models/CodeWhispererRuntimeServiceException");
6
6
  const models_0_1 = require("../models/models_0");
7
+ const models_1_1 = require("../models/models_1");
7
8
  const core_1 = require("@aws-sdk/core");
8
9
  const core_2 = require("@smithy/core");
9
10
  const smithy_client_1 = require("@smithy/smithy-client");
@@ -42,6 +43,7 @@ const se_CreateSubscriptionTokenCommand = async (input, context) => {
42
43
  body = JSON.stringify((0, smithy_client_1.take)(input, {
43
44
  'cancelUrl': [],
44
45
  'clientToken': [true, _ => _ ?? (0, uuid_1.v4)()],
46
+ 'profileArn': [],
45
47
  'provider': [],
46
48
  'statusOnly': [],
47
49
  'subscriptionType': [],
@@ -415,9 +417,14 @@ const se_ListAvailableProfilesCommand = async (input, context) => {
415
417
  exports.se_ListAvailableProfilesCommand = se_ListAvailableProfilesCommand;
416
418
  const se_ListAvailableSubscriptionsCommand = async (input, context) => {
417
419
  const b = (0, core_2.requestBuilder)(input, context);
418
- const headers = {};
420
+ const headers = {
421
+ 'content-type': 'application/json',
422
+ };
419
423
  b.bp("/listAvailableSubscriptions");
420
424
  let body;
425
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
426
+ 'profileArn': [],
427
+ }));
421
428
  b.m("POST")
422
429
  .h(headers)
423
430
  .b(body);
@@ -1028,6 +1035,7 @@ const de_GetUsageLimitsCommand = async (output, context) => {
1028
1035
  'nextDateReset': _ => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1029
1036
  'overageConfiguration': smithy_client_1._json,
1030
1037
  'subscriptionInfo': smithy_client_1._json,
1038
+ 'totalUsage': _ => de_TotalUsage(_, context),
1031
1039
  'usageBreakdown': _ => de_UsageBreakdown(_, context),
1032
1040
  'usageBreakdownList': _ => de_UsageBreakdownList(_, context),
1033
1041
  'userInfo': smithy_client_1._json,
@@ -1485,7 +1493,7 @@ const de_UpdateUsageLimitQuotaExceededExceptionRes = async (parsedOutput, contex
1485
1493
  'message': smithy_client_1.expectString,
1486
1494
  });
1487
1495
  Object.assign(contents, doc);
1488
- const exception = new models_0_1.UpdateUsageLimitQuotaExceededException({
1496
+ const exception = new models_1_1.UpdateUsageLimitQuotaExceededException({
1489
1497
  $metadata: deserializeMetadata(parsedOutput),
1490
1498
  ...contents
1491
1499
  });
@@ -1644,6 +1652,53 @@ const se_InlineChatEvent = (input, context) => {
1644
1652
  'userDecision': [],
1645
1653
  });
1646
1654
  };
1655
+ const se_KiroChatMessageEvent = (input, context) => {
1656
+ return (0, smithy_client_1.take)(input, {
1657
+ 'chatAgentMode': [],
1658
+ 'chatAutonomyMode': [],
1659
+ 'chatMessageDuration': smithy_client_1.serializeFloat,
1660
+ 'conversationId': [],
1661
+ 'creditsUsed': smithy_client_1.serializeFloat,
1662
+ 'date': [],
1663
+ 'messageId': [],
1664
+ 'modelId': [],
1665
+ 'newUser': [],
1666
+ 'origin': [],
1667
+ 'overageCap': smithy_client_1.serializeFloat,
1668
+ 'overageCreditsUsed': smithy_client_1.serializeFloat,
1669
+ 'overageEnabled': [],
1670
+ 'profileId': [],
1671
+ 'subscriptionTier': [],
1672
+ 'userId': [],
1673
+ });
1674
+ };
1675
+ const se_KiroEnterpriseTelemetryEvent = (input, context) => {
1676
+ return (0, smithy_client_1.take)(input, {
1677
+ 'chatConversationsTrusted': [],
1678
+ 'chatMessageDuration': smithy_client_1.serializeFloat,
1679
+ 'chatMessages': [],
1680
+ 'chatMessagesOthers': [],
1681
+ 'chatMessagesSpec': [],
1682
+ 'chatMessagesVibe': [],
1683
+ 'codeBlocksGenerated': [],
1684
+ 'codeBlocksInserted': [],
1685
+ 'contextFiles': [],
1686
+ 'conversationId': [],
1687
+ 'creditsUsed': smithy_client_1.serializeFloat,
1688
+ 'date': [],
1689
+ 'messageId': [],
1690
+ 'modelId': [],
1691
+ 'newUser': [],
1692
+ 'origin': [],
1693
+ 'overageCap': [],
1694
+ 'overageCreditsUsed': smithy_client_1.serializeFloat,
1695
+ 'overageEnabled': [],
1696
+ 'profileId': [],
1697
+ 'specsImplemented': [],
1698
+ 'subscriptionTier': [],
1699
+ 'userId': [],
1700
+ });
1701
+ };
1647
1702
  const se_MetricData = (input, context) => {
1648
1703
  return (0, smithy_client_1.take)(input, {
1649
1704
  'dimensions': smithy_client_1._json,
@@ -1682,6 +1737,8 @@ const se_TelemetryEvent = (input, context) => {
1682
1737
  featureDevCodeGenerationEvent: value => ({ "featureDevCodeGenerationEvent": (0, smithy_client_1._json)(value) }),
1683
1738
  featureDevEvent: value => ({ "featureDevEvent": (0, smithy_client_1._json)(value) }),
1684
1739
  inlineChatEvent: value => ({ "inlineChatEvent": se_InlineChatEvent(value, context) }),
1740
+ kiroChatMessageEvent: value => ({ "kiroChatMessageEvent": se_KiroChatMessageEvent(value, context) }),
1741
+ kiroEnterpriseTelemetryEvent: value => ({ "kiroEnterpriseTelemetryEvent": se_KiroEnterpriseTelemetryEvent(value, context) }),
1685
1742
  metricData: value => ({ "metricData": se_MetricData(value, context) }),
1686
1743
  terminalUserInteractionEvent: value => ({ "terminalUserInteractionEvent": (0, smithy_client_1._json)(value) }),
1687
1744
  testGenerationEvent: value => ({ "testGenerationEvent": se_TestGenerationEvent(value, context) }),
@@ -1956,6 +2013,24 @@ const de_UsageLimits = (output, context) => {
1956
2013
  });
1957
2014
  return retVal;
1958
2015
  };
2016
+ const de_Bonus = (output, context) => {
2017
+ return (0, smithy_client_1.take)(output, {
2018
+ 'bonusCode': smithy_client_1.expectString,
2019
+ 'currentUsage': smithy_client_1.limitedParseDouble,
2020
+ 'description': smithy_client_1.expectString,
2021
+ 'displayName': smithy_client_1.expectString,
2022
+ 'expiresAt': (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2023
+ 'redeemedAt': (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2024
+ 'status': smithy_client_1.expectString,
2025
+ 'usageLimit': smithy_client_1.limitedParseDouble,
2026
+ });
2027
+ };
2028
+ const de_BonusList = (output, context) => {
2029
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2030
+ return de_Bonus(entry, context);
2031
+ });
2032
+ return retVal;
2033
+ };
1959
2034
  const de_Event = (output, context) => {
1960
2035
  return (0, smithy_client_1.take)(output, {
1961
2036
  'eventBlob': context.base64Decoder,
@@ -2025,8 +2100,16 @@ const de_SubscriptionPlanList = (output, context) => {
2025
2100
  });
2026
2101
  return retVal;
2027
2102
  };
2103
+ const de_TotalUsage = (output, context) => {
2104
+ return (0, smithy_client_1.take)(output, {
2105
+ 'maxOverageLimit': smithy_client_1.limitedParseDouble,
2106
+ 'overageLimit': smithy_client_1.limitedParseDouble,
2107
+ 'totalOverageCharges': smithy_client_1.limitedParseDouble,
2108
+ });
2109
+ };
2028
2110
  const de_UsageBreakdown = (output, context) => {
2029
2111
  return (0, smithy_client_1.take)(output, {
2112
+ 'bonuses': (_) => de_BonusList(_, context),
2030
2113
  'currency': smithy_client_1.expectString,
2031
2114
  'currentOverages': smithy_client_1.expectInt32,
2032
2115
  'currentOveragesWithPrecision': smithy_client_1.limitedParseDouble,
@@ -2057,10 +2140,10 @@ const de_Model = (output, context) => {
2057
2140
  'description': smithy_client_1.expectString,
2058
2141
  'modelId': smithy_client_1.expectString,
2059
2142
  'modelName': smithy_client_1.expectString,
2143
+ 'promptCaching': smithy_client_1._json,
2060
2144
  'rateMultiplier': smithy_client_1.limitedParseDouble,
2061
2145
  'rateUnit': smithy_client_1.expectString,
2062
2146
  'supportedInputTypes': smithy_client_1._json,
2063
- 'supportsPromptCache': smithy_client_1.expectBoolean,
2064
2147
  'tokenLimits': smithy_client_1._json,
2065
2148
  });
2066
2149
  };
@@ -1,5 +1,5 @@
1
1
  import { commonParams } from "../endpoint/EndpointParameters";
2
- import { GetUsageLimitsResponseFilterSensitiveLog, } from "../models/models_0";
2
+ import { GetUsageLimitsResponseFilterSensitiveLog, } from "../models/models_1";
3
3
  import { de_GetUsageLimitsCommand, se_GetUsageLimitsCommand, } from "../protocols/Aws_restJson1";
4
4
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
5
5
  import { getSerdePlugin } from "@smithy/middleware-serde";
@@ -1,4 +1,5 @@
1
1
  import { commonParams } from "../endpoint/EndpointParameters";
2
+ import { ListAvailableProfilesResponseFilterSensitiveLog, } from "../models/models_0";
2
3
  import { de_ListAvailableProfilesCommand, se_ListAvailableProfilesCommand, } from "../protocols/Aws_restJson1";
3
4
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
4
5
  import { getSerdePlugin } from "@smithy/middleware-serde";
@@ -14,7 +15,7 @@ export class ListAvailableProfilesCommand extends $Command.classBuilder()
14
15
  })
15
16
  .s("AmazonCodeWhispererService", "ListAvailableProfiles", {})
16
17
  .n("CodeWhispererRuntimeClient", "ListAvailableProfilesCommand")
17
- .f(void 0, void 0)
18
+ .f(void 0, ListAvailableProfilesResponseFilterSensitiveLog)
18
19
  .ser(se_ListAvailableProfilesCommand)
19
20
  .de(de_ListAvailableProfilesCommand)
20
21
  .build() {