@aws-sdk/client-bedrock-agent 3.613.0 → 3.616.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (115) hide show
  1. package/README.md +168 -0
  2. package/dist-cjs/index.js +2009 -16
  3. package/dist-es/BedrockAgent.js +42 -0
  4. package/dist-es/BedrockAgentClient.js +5 -5
  5. package/dist-es/commands/CreateDataSourceCommand.js +2 -1
  6. package/dist-es/commands/CreateFlowAliasCommand.js +24 -0
  7. package/dist-es/commands/CreateFlowCommand.js +25 -0
  8. package/dist-es/commands/CreateFlowVersionCommand.js +25 -0
  9. package/dist-es/commands/CreatePromptCommand.js +25 -0
  10. package/dist-es/commands/CreatePromptVersionCommand.js +25 -0
  11. package/dist-es/commands/DeleteFlowAliasCommand.js +24 -0
  12. package/dist-es/commands/DeleteFlowCommand.js +24 -0
  13. package/dist-es/commands/DeleteFlowVersionCommand.js +24 -0
  14. package/dist-es/commands/DeletePromptCommand.js +24 -0
  15. package/dist-es/commands/GetDataSourceCommand.js +2 -1
  16. package/dist-es/commands/GetFlowAliasCommand.js +24 -0
  17. package/dist-es/commands/GetFlowCommand.js +25 -0
  18. package/dist-es/commands/GetFlowVersionCommand.js +25 -0
  19. package/dist-es/commands/GetPromptCommand.js +25 -0
  20. package/dist-es/commands/ListFlowAliasesCommand.js +24 -0
  21. package/dist-es/commands/ListFlowVersionsCommand.js +24 -0
  22. package/dist-es/commands/ListFlowsCommand.js +24 -0
  23. package/dist-es/commands/ListPromptsCommand.js +24 -0
  24. package/dist-es/commands/PrepareFlowCommand.js +24 -0
  25. package/dist-es/commands/UpdateDataSourceCommand.js +2 -1
  26. package/dist-es/commands/UpdateFlowAliasCommand.js +24 -0
  27. package/dist-es/commands/UpdateFlowCommand.js +25 -0
  28. package/dist-es/commands/UpdatePromptCommand.js +25 -0
  29. package/dist-es/commands/index.js +21 -0
  30. package/dist-es/models/models_0.js +418 -0
  31. package/dist-es/pagination/ListFlowAliasesPaginator.js +4 -0
  32. package/dist-es/pagination/ListFlowVersionsPaginator.js +4 -0
  33. package/dist-es/pagination/ListFlowsPaginator.js +4 -0
  34. package/dist-es/pagination/ListPromptsPaginator.js +4 -0
  35. package/dist-es/pagination/index.js +4 -0
  36. package/dist-es/protocols/Aws_restJson1.js +1041 -25
  37. package/dist-types/BedrockAgent.d.ts +149 -0
  38. package/dist-types/BedrockAgentClient.d.ts +25 -4
  39. package/dist-types/commands/CreateAgentActionGroupCommand.d.ts +7 -3
  40. package/dist-types/commands/CreateAgentCommand.d.ts +18 -1
  41. package/dist-types/commands/CreateDataSourceCommand.d.ts +280 -6
  42. package/dist-types/commands/CreateFlowAliasCommand.d.ts +103 -0
  43. package/dist-types/commands/CreateFlowCommand.d.ts +318 -0
  44. package/dist-types/commands/CreateFlowVersionCommand.d.ts +203 -0
  45. package/dist-types/commands/CreatePromptCommand.d.ts +149 -0
  46. package/dist-types/commands/CreatePromptVersionCommand.d.ts +122 -0
  47. package/dist-types/commands/DeleteFlowAliasCommand.d.ts +80 -0
  48. package/dist-types/commands/DeleteFlowCommand.d.ts +79 -0
  49. package/dist-types/commands/DeleteFlowVersionCommand.d.ts +81 -0
  50. package/dist-types/commands/DeletePromptCommand.d.ts +80 -0
  51. package/dist-types/commands/GetAgentActionGroupCommand.d.ts +1 -1
  52. package/dist-types/commands/GetAgentCommand.d.ts +6 -0
  53. package/dist-types/commands/GetAgentVersionCommand.d.ts +6 -0
  54. package/dist-types/commands/GetDataSourceCommand.d.ts +139 -2
  55. package/dist-types/commands/GetFlowAliasCommand.d.ts +87 -0
  56. package/dist-types/commands/GetFlowCommand.d.ts +202 -0
  57. package/dist-types/commands/GetFlowVersionCommand.d.ts +196 -0
  58. package/dist-types/commands/GetPromptCommand.d.ts +112 -0
  59. package/dist-types/commands/ListFlowAliasesCommand.d.ts +93 -0
  60. package/dist-types/commands/ListFlowVersionsCommand.d.ts +86 -0
  61. package/dist-types/commands/ListFlowsCommand.d.ts +85 -0
  62. package/dist-types/commands/ListPromptsCommand.d.ts +88 -0
  63. package/dist-types/commands/PrepareFlowCommand.d.ts +82 -0
  64. package/dist-types/commands/UpdateAgentActionGroupCommand.d.ts +2 -2
  65. package/dist-types/commands/UpdateAgentCommand.d.ts +12 -0
  66. package/dist-types/commands/UpdateDataSourceCommand.d.ts +280 -6
  67. package/dist-types/commands/UpdateFlowAliasCommand.d.ts +100 -0
  68. package/dist-types/commands/UpdateFlowCommand.d.ts +318 -0
  69. package/dist-types/commands/UpdatePromptCommand.d.ts +149 -0
  70. package/dist-types/commands/index.d.ts +21 -0
  71. package/dist-types/models/models_0.d.ts +4252 -772
  72. package/dist-types/pagination/ListFlowAliasesPaginator.d.ts +7 -0
  73. package/dist-types/pagination/ListFlowVersionsPaginator.d.ts +7 -0
  74. package/dist-types/pagination/ListFlowsPaginator.d.ts +7 -0
  75. package/dist-types/pagination/ListPromptsPaginator.d.ts +7 -0
  76. package/dist-types/pagination/index.d.ts +4 -0
  77. package/dist-types/protocols/Aws_restJson1.d.ts +189 -0
  78. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  79. package/dist-types/runtimeConfig.d.ts +1 -1
  80. package/dist-types/runtimeConfig.native.d.ts +1 -1
  81. package/dist-types/ts3.4/BedrockAgent.d.ts +359 -0
  82. package/dist-types/ts3.4/BedrockAgentClient.d.ts +130 -4
  83. package/dist-types/ts3.4/commands/CreateFlowAliasCommand.d.ts +39 -0
  84. package/dist-types/ts3.4/commands/CreateFlowCommand.d.ts +36 -0
  85. package/dist-types/ts3.4/commands/CreateFlowVersionCommand.d.ts +40 -0
  86. package/dist-types/ts3.4/commands/CreatePromptCommand.d.ts +36 -0
  87. package/dist-types/ts3.4/commands/CreatePromptVersionCommand.d.ts +40 -0
  88. package/dist-types/ts3.4/commands/DeleteFlowAliasCommand.d.ts +39 -0
  89. package/dist-types/ts3.4/commands/DeleteFlowCommand.d.ts +36 -0
  90. package/dist-types/ts3.4/commands/DeleteFlowVersionCommand.d.ts +40 -0
  91. package/dist-types/ts3.4/commands/DeletePromptCommand.d.ts +36 -0
  92. package/dist-types/ts3.4/commands/GetFlowAliasCommand.d.ts +36 -0
  93. package/dist-types/ts3.4/commands/GetFlowCommand.d.ts +32 -0
  94. package/dist-types/ts3.4/commands/GetFlowVersionCommand.d.ts +39 -0
  95. package/dist-types/ts3.4/commands/GetPromptCommand.d.ts +36 -0
  96. package/dist-types/ts3.4/commands/ListFlowAliasesCommand.d.ts +39 -0
  97. package/dist-types/ts3.4/commands/ListFlowVersionsCommand.d.ts +39 -0
  98. package/dist-types/ts3.4/commands/ListFlowsCommand.d.ts +36 -0
  99. package/dist-types/ts3.4/commands/ListPromptsCommand.d.ts +36 -0
  100. package/dist-types/ts3.4/commands/PrepareFlowCommand.d.ts +36 -0
  101. package/dist-types/ts3.4/commands/UpdateFlowAliasCommand.d.ts +39 -0
  102. package/dist-types/ts3.4/commands/UpdateFlowCommand.d.ts +36 -0
  103. package/dist-types/ts3.4/commands/UpdatePromptCommand.d.ts +36 -0
  104. package/dist-types/ts3.4/commands/index.d.ts +21 -0
  105. package/dist-types/ts3.4/models/models_0.d.ts +1179 -0
  106. package/dist-types/ts3.4/pagination/ListFlowAliasesPaginator.d.ts +11 -0
  107. package/dist-types/ts3.4/pagination/ListFlowVersionsPaginator.d.ts +11 -0
  108. package/dist-types/ts3.4/pagination/ListFlowsPaginator.d.ts +11 -0
  109. package/dist-types/ts3.4/pagination/ListPromptsPaginator.d.ts +11 -0
  110. package/dist-types/ts3.4/pagination/index.d.ts +4 -0
  111. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +252 -0
  112. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  113. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  114. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  115. package/package.json +24 -24
@@ -118,6 +118,7 @@ export declare namespace FunctionSchema {
118
118
  const visit: <T>(value: FunctionSchema, visitor: Visitor<T>) => T;
119
119
  }
120
120
  export declare const ActionGroupSignature: {
121
+ readonly AMAZON_CODEINTERPRETER: "AMAZON.CodeInterpreter";
121
122
  readonly AMAZON_USERINPUT: "AMAZON.UserInput";
122
123
  };
123
124
  export type ActionGroupSignature =
@@ -254,6 +255,14 @@ export interface GuardrailConfiguration {
254
255
  guardrailIdentifier?: string;
255
256
  guardrailVersion?: string;
256
257
  }
258
+ export declare const MemoryType: {
259
+ readonly SESSION_SUMMARY: "SESSION_SUMMARY";
260
+ };
261
+ export type MemoryType = (typeof MemoryType)[keyof typeof MemoryType];
262
+ export interface MemoryConfiguration {
263
+ enabledMemoryTypes: MemoryType[] | undefined;
264
+ storageDays?: number;
265
+ }
257
266
  export interface InferenceConfiguration {
258
267
  temperature?: number;
259
268
  topP?: number;
@@ -310,6 +319,7 @@ export interface Agent {
310
319
  recommendedActions?: string[];
311
320
  promptOverrideConfiguration?: PromptOverrideConfiguration;
312
321
  guardrailConfiguration?: GuardrailConfiguration;
322
+ memoryConfiguration?: MemoryConfiguration;
313
323
  }
314
324
  export interface AgentAliasRoutingConfigurationListItem {
315
325
  agentVersion?: string;
@@ -352,6 +362,9 @@ export interface AgentAliasSummary {
352
362
  createdAt: Date | undefined;
353
363
  updatedAt: Date | undefined;
354
364
  }
365
+ export interface AgentFlowNodeConfiguration {
366
+ agentAliasArn: string | undefined;
367
+ }
355
368
  export declare const KnowledgeBaseState: {
356
369
  readonly DISABLED: "DISABLED";
357
370
  readonly ENABLED: "ENABLED";
@@ -385,6 +398,7 @@ export interface CreateAgentRequest {
385
398
  tags?: Record<string, string>;
386
399
  promptOverrideConfiguration?: PromptOverrideConfiguration;
387
400
  guardrailConfiguration?: GuardrailConfiguration;
401
+ memoryConfiguration?: MemoryConfiguration;
388
402
  }
389
403
  export interface CreateAgentResponse {
390
404
  agent: Agent | undefined;
@@ -440,6 +454,7 @@ export interface UpdateAgentRequest {
440
454
  customerEncryptionKeyArn?: string;
441
455
  promptOverrideConfiguration?: PromptOverrideConfiguration;
442
456
  guardrailConfiguration?: GuardrailConfiguration;
457
+ memoryConfiguration?: MemoryConfiguration;
443
458
  }
444
459
  export interface UpdateAgentResponse {
445
460
  agent: Agent | undefined;
@@ -462,6 +477,7 @@ export interface AgentVersion {
462
477
  recommendedActions?: string[];
463
478
  promptOverrideConfiguration?: PromptOverrideConfiguration;
464
479
  guardrailConfiguration?: GuardrailConfiguration;
480
+ memoryConfiguration?: MemoryConfiguration;
465
481
  }
466
482
  export interface AgentVersionSummary {
467
483
  agentName: string | undefined;
@@ -524,26 +540,146 @@ export declare const DataDeletionPolicy: {
524
540
  };
525
541
  export type DataDeletionPolicy =
526
542
  (typeof DataDeletionPolicy)[keyof typeof DataDeletionPolicy];
543
+ export interface PatternObjectFilter {
544
+ objectType: string | undefined;
545
+ inclusionFilters?: string[];
546
+ exclusionFilters?: string[];
547
+ }
548
+ export interface PatternObjectFilterConfiguration {
549
+ filters: PatternObjectFilter[] | undefined;
550
+ }
551
+ export declare const CrawlFilterConfigurationType: {
552
+ readonly PATTERN: "PATTERN";
553
+ };
554
+ export type CrawlFilterConfigurationType =
555
+ (typeof CrawlFilterConfigurationType)[keyof typeof CrawlFilterConfigurationType];
556
+ export interface CrawlFilterConfiguration {
557
+ type: CrawlFilterConfigurationType | undefined;
558
+ patternObjectFilter?: PatternObjectFilterConfiguration;
559
+ }
560
+ export interface ConfluenceCrawlerConfiguration {
561
+ filterConfiguration?: CrawlFilterConfiguration;
562
+ }
563
+ export declare const ConfluenceAuthType: {
564
+ readonly BASIC: "BASIC";
565
+ readonly OAUTH2_CLIENT_CREDENTIALS: "OAUTH2_CLIENT_CREDENTIALS";
566
+ };
567
+ export type ConfluenceAuthType =
568
+ (typeof ConfluenceAuthType)[keyof typeof ConfluenceAuthType];
569
+ export declare const ConfluenceHostType: {
570
+ readonly SAAS: "SAAS";
571
+ };
572
+ export type ConfluenceHostType =
573
+ (typeof ConfluenceHostType)[keyof typeof ConfluenceHostType];
574
+ export interface ConfluenceSourceConfiguration {
575
+ hostUrl: string | undefined;
576
+ hostType: ConfluenceHostType | undefined;
577
+ authType: ConfluenceAuthType | undefined;
578
+ credentialsSecretArn: string | undefined;
579
+ }
580
+ export interface ConfluenceDataSourceConfiguration {
581
+ sourceConfiguration: ConfluenceSourceConfiguration | undefined;
582
+ crawlerConfiguration?: ConfluenceCrawlerConfiguration;
583
+ }
527
584
  export interface S3DataSourceConfiguration {
528
585
  bucketArn: string | undefined;
529
586
  inclusionPrefixes?: string[];
530
587
  bucketOwnerAccountId?: string;
531
588
  }
589
+ export interface SalesforceCrawlerConfiguration {
590
+ filterConfiguration?: CrawlFilterConfiguration;
591
+ }
592
+ export declare const SalesforceAuthType: {
593
+ readonly OAUTH2_CLIENT_CREDENTIALS: "OAUTH2_CLIENT_CREDENTIALS";
594
+ };
595
+ export type SalesforceAuthType =
596
+ (typeof SalesforceAuthType)[keyof typeof SalesforceAuthType];
597
+ export interface SalesforceSourceConfiguration {
598
+ hostUrl: string | undefined;
599
+ authType: SalesforceAuthType | undefined;
600
+ credentialsSecretArn: string | undefined;
601
+ }
602
+ export interface SalesforceDataSourceConfiguration {
603
+ sourceConfiguration: SalesforceSourceConfiguration | undefined;
604
+ crawlerConfiguration?: SalesforceCrawlerConfiguration;
605
+ }
606
+ export interface SharePointCrawlerConfiguration {
607
+ filterConfiguration?: CrawlFilterConfiguration;
608
+ }
609
+ export declare const SharePointAuthType: {
610
+ readonly OAUTH2_CLIENT_CREDENTIALS: "OAUTH2_CLIENT_CREDENTIALS";
611
+ };
612
+ export type SharePointAuthType =
613
+ (typeof SharePointAuthType)[keyof typeof SharePointAuthType];
614
+ export declare const SharePointHostType: {
615
+ readonly ONLINE: "ONLINE";
616
+ };
617
+ export type SharePointHostType =
618
+ (typeof SharePointHostType)[keyof typeof SharePointHostType];
619
+ export interface SharePointSourceConfiguration {
620
+ tenantId?: string;
621
+ domain: string | undefined;
622
+ siteUrls: string[] | undefined;
623
+ hostType: SharePointHostType | undefined;
624
+ authType: SharePointAuthType | undefined;
625
+ credentialsSecretArn: string | undefined;
626
+ }
627
+ export interface SharePointDataSourceConfiguration {
628
+ sourceConfiguration: SharePointSourceConfiguration | undefined;
629
+ crawlerConfiguration?: SharePointCrawlerConfiguration;
630
+ }
532
631
  export declare const DataSourceType: {
632
+ readonly CONFLUENCE: "CONFLUENCE";
533
633
  readonly S3: "S3";
634
+ readonly SALESFORCE: "SALESFORCE";
635
+ readonly SHAREPOINT: "SHAREPOINT";
636
+ readonly WEB: "WEB";
534
637
  };
535
638
  export type DataSourceType =
536
639
  (typeof DataSourceType)[keyof typeof DataSourceType];
640
+ export interface WebCrawlerLimits {
641
+ rateLimit?: number;
642
+ }
643
+ export declare const WebScopeType: {
644
+ readonly HOST_ONLY: "HOST_ONLY";
645
+ readonly SUBDOMAINS: "SUBDOMAINS";
646
+ };
647
+ export type WebScopeType = (typeof WebScopeType)[keyof typeof WebScopeType];
648
+ export interface WebCrawlerConfiguration {
649
+ crawlerLimits?: WebCrawlerLimits;
650
+ inclusionFilters?: string[];
651
+ exclusionFilters?: string[];
652
+ scope?: WebScopeType;
653
+ }
654
+ export interface SeedUrl {
655
+ url?: string;
656
+ }
657
+ export interface UrlConfiguration {
658
+ seedUrls?: SeedUrl[];
659
+ }
660
+ export interface WebSourceConfiguration {
661
+ urlConfiguration: UrlConfiguration | undefined;
662
+ }
663
+ export interface WebDataSourceConfiguration {
664
+ sourceConfiguration: WebSourceConfiguration | undefined;
665
+ crawlerConfiguration?: WebCrawlerConfiguration;
666
+ }
537
667
  export interface DataSourceConfiguration {
538
668
  type: DataSourceType | undefined;
539
669
  s3Configuration?: S3DataSourceConfiguration;
670
+ webConfiguration?: WebDataSourceConfiguration;
671
+ confluenceConfiguration?: ConfluenceDataSourceConfiguration;
672
+ salesforceConfiguration?: SalesforceDataSourceConfiguration;
673
+ sharePointConfiguration?: SharePointDataSourceConfiguration;
540
674
  }
541
675
  export interface ServerSideEncryptionConfiguration {
542
676
  kmsKeyArn?: string;
543
677
  }
544
678
  export declare const ChunkingStrategy: {
545
679
  readonly FIXED_SIZE: "FIXED_SIZE";
680
+ readonly HIERARCHICAL: "HIERARCHICAL";
546
681
  readonly NONE: "NONE";
682
+ readonly SEMANTIC: "SEMANTIC";
547
683
  };
548
684
  export type ChunkingStrategy =
549
685
  (typeof ChunkingStrategy)[keyof typeof ChunkingStrategy];
@@ -551,12 +687,70 @@ export interface FixedSizeChunkingConfiguration {
551
687
  maxTokens: number | undefined;
552
688
  overlapPercentage: number | undefined;
553
689
  }
690
+ export interface HierarchicalChunkingLevelConfiguration {
691
+ maxTokens: number | undefined;
692
+ }
693
+ export interface HierarchicalChunkingConfiguration {
694
+ levelConfigurations: HierarchicalChunkingLevelConfiguration[] | undefined;
695
+ overlapTokens: number | undefined;
696
+ }
697
+ export interface SemanticChunkingConfiguration {
698
+ maxTokens: number | undefined;
699
+ bufferSize: number | undefined;
700
+ breakpointPercentileThreshold: number | undefined;
701
+ }
554
702
  export interface ChunkingConfiguration {
555
703
  chunkingStrategy: ChunkingStrategy | undefined;
556
704
  fixedSizeChunkingConfiguration?: FixedSizeChunkingConfiguration;
705
+ hierarchicalChunkingConfiguration?: HierarchicalChunkingConfiguration;
706
+ semanticChunkingConfiguration?: SemanticChunkingConfiguration;
707
+ }
708
+ export interface S3Location {
709
+ uri: string | undefined;
710
+ }
711
+ export interface IntermediateStorage {
712
+ s3Location: S3Location | undefined;
713
+ }
714
+ export declare const StepType: {
715
+ readonly POST_CHUNKING: "POST_CHUNKING";
716
+ };
717
+ export type StepType = (typeof StepType)[keyof typeof StepType];
718
+ export interface TransformationLambdaConfiguration {
719
+ lambdaArn: string | undefined;
720
+ }
721
+ export interface TransformationFunction {
722
+ transformationLambdaConfiguration:
723
+ | TransformationLambdaConfiguration
724
+ | undefined;
725
+ }
726
+ export interface Transformation {
727
+ transformationFunction: TransformationFunction | undefined;
728
+ stepToApply: StepType | undefined;
729
+ }
730
+ export interface CustomTransformationConfiguration {
731
+ intermediateStorage: IntermediateStorage | undefined;
732
+ transformations: Transformation[] | undefined;
733
+ }
734
+ export interface ParsingPrompt {
735
+ parsingPromptText: string | undefined;
736
+ }
737
+ export interface BedrockFoundationModelConfiguration {
738
+ modelArn: string | undefined;
739
+ parsingPrompt?: ParsingPrompt;
740
+ }
741
+ export declare const ParsingStrategy: {
742
+ readonly BEDROCK_FOUNDATION_MODEL: "BEDROCK_FOUNDATION_MODEL";
743
+ };
744
+ export type ParsingStrategy =
745
+ (typeof ParsingStrategy)[keyof typeof ParsingStrategy];
746
+ export interface ParsingConfiguration {
747
+ parsingStrategy: ParsingStrategy | undefined;
748
+ bedrockFoundationModelConfiguration?: BedrockFoundationModelConfiguration;
557
749
  }
558
750
  export interface VectorIngestionConfiguration {
559
751
  chunkingConfiguration?: ChunkingConfiguration;
752
+ customTransformationConfiguration?: CustomTransformationConfiguration;
753
+ parsingConfiguration?: ParsingConfiguration;
560
754
  }
561
755
  export interface CreateDataSourceRequest {
562
756
  knowledgeBaseId: string | undefined;
@@ -638,6 +832,752 @@ export interface UpdateDataSourceRequest {
638
832
  export interface UpdateDataSourceResponse {
639
833
  dataSource: DataSource | undefined;
640
834
  }
835
+ export interface FlowConditionalConnectionConfiguration {
836
+ condition: string | undefined;
837
+ }
838
+ export interface FlowDataConnectionConfiguration {
839
+ sourceOutput: string | undefined;
840
+ targetInput: string | undefined;
841
+ }
842
+ export type FlowConnectionConfiguration =
843
+ | FlowConnectionConfiguration.ConditionalMember
844
+ | FlowConnectionConfiguration.DataMember
845
+ | FlowConnectionConfiguration.$UnknownMember;
846
+ export declare namespace FlowConnectionConfiguration {
847
+ interface DataMember {
848
+ data: FlowDataConnectionConfiguration;
849
+ conditional?: never;
850
+ $unknown?: never;
851
+ }
852
+ interface ConditionalMember {
853
+ data?: never;
854
+ conditional: FlowConditionalConnectionConfiguration;
855
+ $unknown?: never;
856
+ }
857
+ interface $UnknownMember {
858
+ data?: never;
859
+ conditional?: never;
860
+ $unknown: [string, any];
861
+ }
862
+ interface Visitor<T> {
863
+ data: (value: FlowDataConnectionConfiguration) => T;
864
+ conditional: (value: FlowConditionalConnectionConfiguration) => T;
865
+ _: (name: string, value: any) => T;
866
+ }
867
+ const visit: <T>(
868
+ value: FlowConnectionConfiguration,
869
+ visitor: Visitor<T>
870
+ ) => T;
871
+ }
872
+ export declare const FlowConnectionType: {
873
+ readonly CONDITIONAL: "Conditional";
874
+ readonly DATA: "Data";
875
+ };
876
+ export type FlowConnectionType =
877
+ (typeof FlowConnectionType)[keyof typeof FlowConnectionType];
878
+ export interface FlowConnection {
879
+ type: FlowConnectionType | undefined;
880
+ name: string | undefined;
881
+ source: string | undefined;
882
+ target: string | undefined;
883
+ configuration?: FlowConnectionConfiguration;
884
+ }
885
+ export interface CollectorFlowNodeConfiguration {}
886
+ export interface FlowCondition {
887
+ name: string | undefined;
888
+ expression?: string;
889
+ }
890
+ export interface ConditionFlowNodeConfiguration {
891
+ conditions: FlowCondition[] | undefined;
892
+ }
893
+ export interface InputFlowNodeConfiguration {}
894
+ export interface IteratorFlowNodeConfiguration {}
895
+ export interface KnowledgeBaseFlowNodeConfiguration {
896
+ knowledgeBaseId: string | undefined;
897
+ modelId?: string;
898
+ }
899
+ export interface LambdaFunctionFlowNodeConfiguration {
900
+ lambdaArn: string | undefined;
901
+ }
902
+ export interface LexFlowNodeConfiguration {
903
+ botAliasArn: string | undefined;
904
+ localeId: string | undefined;
905
+ }
906
+ export interface OutputFlowNodeConfiguration {}
907
+ export interface PromptModelInferenceConfiguration {
908
+ temperature?: number;
909
+ topP?: number;
910
+ topK?: number;
911
+ maxTokens?: number;
912
+ stopSequences?: string[];
913
+ }
914
+ export type PromptInferenceConfiguration =
915
+ | PromptInferenceConfiguration.TextMember
916
+ | PromptInferenceConfiguration.$UnknownMember;
917
+ export declare namespace PromptInferenceConfiguration {
918
+ interface TextMember {
919
+ text: PromptModelInferenceConfiguration;
920
+ $unknown?: never;
921
+ }
922
+ interface $UnknownMember {
923
+ text?: never;
924
+ $unknown: [string, any];
925
+ }
926
+ interface Visitor<T> {
927
+ text: (value: PromptModelInferenceConfiguration) => T;
928
+ _: (name: string, value: any) => T;
929
+ }
930
+ const visit: <T>(
931
+ value: PromptInferenceConfiguration,
932
+ visitor: Visitor<T>
933
+ ) => T;
934
+ }
935
+ export interface PromptInputVariable {
936
+ name?: string;
937
+ }
938
+ export interface TextPromptTemplateConfiguration {
939
+ text: string | undefined;
940
+ inputVariables?: PromptInputVariable[];
941
+ }
942
+ export type PromptTemplateConfiguration =
943
+ | PromptTemplateConfiguration.TextMember
944
+ | PromptTemplateConfiguration.$UnknownMember;
945
+ export declare namespace PromptTemplateConfiguration {
946
+ interface TextMember {
947
+ text: TextPromptTemplateConfiguration;
948
+ $unknown?: never;
949
+ }
950
+ interface $UnknownMember {
951
+ text?: never;
952
+ $unknown: [string, any];
953
+ }
954
+ interface Visitor<T> {
955
+ text: (value: TextPromptTemplateConfiguration) => T;
956
+ _: (name: string, value: any) => T;
957
+ }
958
+ const visit: <T>(
959
+ value: PromptTemplateConfiguration,
960
+ visitor: Visitor<T>
961
+ ) => T;
962
+ }
963
+ export declare const PromptTemplateType: {
964
+ readonly TEXT: "TEXT";
965
+ };
966
+ export type PromptTemplateType =
967
+ (typeof PromptTemplateType)[keyof typeof PromptTemplateType];
968
+ export interface PromptFlowNodeInlineConfiguration {
969
+ templateType: PromptTemplateType | undefined;
970
+ templateConfiguration: PromptTemplateConfiguration | undefined;
971
+ modelId: string | undefined;
972
+ inferenceConfiguration?: PromptInferenceConfiguration;
973
+ }
974
+ export interface PromptFlowNodeResourceConfiguration {
975
+ promptArn: string | undefined;
976
+ }
977
+ export type PromptFlowNodeSourceConfiguration =
978
+ | PromptFlowNodeSourceConfiguration.InlineMember
979
+ | PromptFlowNodeSourceConfiguration.ResourceMember
980
+ | PromptFlowNodeSourceConfiguration.$UnknownMember;
981
+ export declare namespace PromptFlowNodeSourceConfiguration {
982
+ interface ResourceMember {
983
+ resource: PromptFlowNodeResourceConfiguration;
984
+ inline?: never;
985
+ $unknown?: never;
986
+ }
987
+ interface InlineMember {
988
+ resource?: never;
989
+ inline: PromptFlowNodeInlineConfiguration;
990
+ $unknown?: never;
991
+ }
992
+ interface $UnknownMember {
993
+ resource?: never;
994
+ inline?: never;
995
+ $unknown: [string, any];
996
+ }
997
+ interface Visitor<T> {
998
+ resource: (value: PromptFlowNodeResourceConfiguration) => T;
999
+ inline: (value: PromptFlowNodeInlineConfiguration) => T;
1000
+ _: (name: string, value: any) => T;
1001
+ }
1002
+ const visit: <T>(
1003
+ value: PromptFlowNodeSourceConfiguration,
1004
+ visitor: Visitor<T>
1005
+ ) => T;
1006
+ }
1007
+ export interface PromptFlowNodeConfiguration {
1008
+ sourceConfiguration: PromptFlowNodeSourceConfiguration | undefined;
1009
+ }
1010
+ export interface RetrievalFlowNodeS3Configuration {
1011
+ bucketName: string | undefined;
1012
+ }
1013
+ export type RetrievalFlowNodeServiceConfiguration =
1014
+ | RetrievalFlowNodeServiceConfiguration.S3Member
1015
+ | RetrievalFlowNodeServiceConfiguration.$UnknownMember;
1016
+ export declare namespace RetrievalFlowNodeServiceConfiguration {
1017
+ interface S3Member {
1018
+ s3: RetrievalFlowNodeS3Configuration;
1019
+ $unknown?: never;
1020
+ }
1021
+ interface $UnknownMember {
1022
+ s3?: never;
1023
+ $unknown: [string, any];
1024
+ }
1025
+ interface Visitor<T> {
1026
+ s3: (value: RetrievalFlowNodeS3Configuration) => T;
1027
+ _: (name: string, value: any) => T;
1028
+ }
1029
+ const visit: <T>(
1030
+ value: RetrievalFlowNodeServiceConfiguration,
1031
+ visitor: Visitor<T>
1032
+ ) => T;
1033
+ }
1034
+ export interface RetrievalFlowNodeConfiguration {
1035
+ serviceConfiguration: RetrievalFlowNodeServiceConfiguration | undefined;
1036
+ }
1037
+ export interface StorageFlowNodeS3Configuration {
1038
+ bucketName: string | undefined;
1039
+ }
1040
+ export type StorageFlowNodeServiceConfiguration =
1041
+ | StorageFlowNodeServiceConfiguration.S3Member
1042
+ | StorageFlowNodeServiceConfiguration.$UnknownMember;
1043
+ export declare namespace StorageFlowNodeServiceConfiguration {
1044
+ interface S3Member {
1045
+ s3: StorageFlowNodeS3Configuration;
1046
+ $unknown?: never;
1047
+ }
1048
+ interface $UnknownMember {
1049
+ s3?: never;
1050
+ $unknown: [string, any];
1051
+ }
1052
+ interface Visitor<T> {
1053
+ s3: (value: StorageFlowNodeS3Configuration) => T;
1054
+ _: (name: string, value: any) => T;
1055
+ }
1056
+ const visit: <T>(
1057
+ value: StorageFlowNodeServiceConfiguration,
1058
+ visitor: Visitor<T>
1059
+ ) => T;
1060
+ }
1061
+ export interface StorageFlowNodeConfiguration {
1062
+ serviceConfiguration: StorageFlowNodeServiceConfiguration | undefined;
1063
+ }
1064
+ export type FlowNodeConfiguration =
1065
+ | FlowNodeConfiguration.AgentMember
1066
+ | FlowNodeConfiguration.CollectorMember
1067
+ | FlowNodeConfiguration.ConditionMember
1068
+ | FlowNodeConfiguration.InputMember
1069
+ | FlowNodeConfiguration.IteratorMember
1070
+ | FlowNodeConfiguration.KnowledgeBaseMember
1071
+ | FlowNodeConfiguration.LambdaFunctionMember
1072
+ | FlowNodeConfiguration.LexMember
1073
+ | FlowNodeConfiguration.OutputMember
1074
+ | FlowNodeConfiguration.PromptMember
1075
+ | FlowNodeConfiguration.RetrievalMember
1076
+ | FlowNodeConfiguration.StorageMember
1077
+ | FlowNodeConfiguration.$UnknownMember;
1078
+ export declare namespace FlowNodeConfiguration {
1079
+ interface InputMember {
1080
+ input: InputFlowNodeConfiguration;
1081
+ output?: never;
1082
+ knowledgeBase?: never;
1083
+ condition?: never;
1084
+ lex?: never;
1085
+ prompt?: never;
1086
+ lambdaFunction?: never;
1087
+ storage?: never;
1088
+ agent?: never;
1089
+ retrieval?: never;
1090
+ iterator?: never;
1091
+ collector?: never;
1092
+ $unknown?: never;
1093
+ }
1094
+ interface OutputMember {
1095
+ input?: never;
1096
+ output: OutputFlowNodeConfiguration;
1097
+ knowledgeBase?: never;
1098
+ condition?: never;
1099
+ lex?: never;
1100
+ prompt?: never;
1101
+ lambdaFunction?: never;
1102
+ storage?: never;
1103
+ agent?: never;
1104
+ retrieval?: never;
1105
+ iterator?: never;
1106
+ collector?: never;
1107
+ $unknown?: never;
1108
+ }
1109
+ interface KnowledgeBaseMember {
1110
+ input?: never;
1111
+ output?: never;
1112
+ knowledgeBase: KnowledgeBaseFlowNodeConfiguration;
1113
+ condition?: never;
1114
+ lex?: never;
1115
+ prompt?: never;
1116
+ lambdaFunction?: never;
1117
+ storage?: never;
1118
+ agent?: never;
1119
+ retrieval?: never;
1120
+ iterator?: never;
1121
+ collector?: never;
1122
+ $unknown?: never;
1123
+ }
1124
+ interface ConditionMember {
1125
+ input?: never;
1126
+ output?: never;
1127
+ knowledgeBase?: never;
1128
+ condition: ConditionFlowNodeConfiguration;
1129
+ lex?: never;
1130
+ prompt?: never;
1131
+ lambdaFunction?: never;
1132
+ storage?: never;
1133
+ agent?: never;
1134
+ retrieval?: never;
1135
+ iterator?: never;
1136
+ collector?: never;
1137
+ $unknown?: never;
1138
+ }
1139
+ interface LexMember {
1140
+ input?: never;
1141
+ output?: never;
1142
+ knowledgeBase?: never;
1143
+ condition?: never;
1144
+ lex: LexFlowNodeConfiguration;
1145
+ prompt?: never;
1146
+ lambdaFunction?: never;
1147
+ storage?: never;
1148
+ agent?: never;
1149
+ retrieval?: never;
1150
+ iterator?: never;
1151
+ collector?: never;
1152
+ $unknown?: never;
1153
+ }
1154
+ interface PromptMember {
1155
+ input?: never;
1156
+ output?: never;
1157
+ knowledgeBase?: never;
1158
+ condition?: never;
1159
+ lex?: never;
1160
+ prompt: PromptFlowNodeConfiguration;
1161
+ lambdaFunction?: never;
1162
+ storage?: never;
1163
+ agent?: never;
1164
+ retrieval?: never;
1165
+ iterator?: never;
1166
+ collector?: never;
1167
+ $unknown?: never;
1168
+ }
1169
+ interface LambdaFunctionMember {
1170
+ input?: never;
1171
+ output?: never;
1172
+ knowledgeBase?: never;
1173
+ condition?: never;
1174
+ lex?: never;
1175
+ prompt?: never;
1176
+ lambdaFunction: LambdaFunctionFlowNodeConfiguration;
1177
+ storage?: never;
1178
+ agent?: never;
1179
+ retrieval?: never;
1180
+ iterator?: never;
1181
+ collector?: never;
1182
+ $unknown?: never;
1183
+ }
1184
+ interface StorageMember {
1185
+ input?: never;
1186
+ output?: never;
1187
+ knowledgeBase?: never;
1188
+ condition?: never;
1189
+ lex?: never;
1190
+ prompt?: never;
1191
+ lambdaFunction?: never;
1192
+ storage: StorageFlowNodeConfiguration;
1193
+ agent?: never;
1194
+ retrieval?: never;
1195
+ iterator?: never;
1196
+ collector?: never;
1197
+ $unknown?: never;
1198
+ }
1199
+ interface AgentMember {
1200
+ input?: never;
1201
+ output?: never;
1202
+ knowledgeBase?: never;
1203
+ condition?: never;
1204
+ lex?: never;
1205
+ prompt?: never;
1206
+ lambdaFunction?: never;
1207
+ storage?: never;
1208
+ agent: AgentFlowNodeConfiguration;
1209
+ retrieval?: never;
1210
+ iterator?: never;
1211
+ collector?: never;
1212
+ $unknown?: never;
1213
+ }
1214
+ interface RetrievalMember {
1215
+ input?: never;
1216
+ output?: never;
1217
+ knowledgeBase?: never;
1218
+ condition?: never;
1219
+ lex?: never;
1220
+ prompt?: never;
1221
+ lambdaFunction?: never;
1222
+ storage?: never;
1223
+ agent?: never;
1224
+ retrieval: RetrievalFlowNodeConfiguration;
1225
+ iterator?: never;
1226
+ collector?: never;
1227
+ $unknown?: never;
1228
+ }
1229
+ interface IteratorMember {
1230
+ input?: never;
1231
+ output?: never;
1232
+ knowledgeBase?: never;
1233
+ condition?: never;
1234
+ lex?: never;
1235
+ prompt?: never;
1236
+ lambdaFunction?: never;
1237
+ storage?: never;
1238
+ agent?: never;
1239
+ retrieval?: never;
1240
+ iterator: IteratorFlowNodeConfiguration;
1241
+ collector?: never;
1242
+ $unknown?: never;
1243
+ }
1244
+ interface CollectorMember {
1245
+ input?: never;
1246
+ output?: never;
1247
+ knowledgeBase?: never;
1248
+ condition?: never;
1249
+ lex?: never;
1250
+ prompt?: never;
1251
+ lambdaFunction?: never;
1252
+ storage?: never;
1253
+ agent?: never;
1254
+ retrieval?: never;
1255
+ iterator?: never;
1256
+ collector: CollectorFlowNodeConfiguration;
1257
+ $unknown?: never;
1258
+ }
1259
+ interface $UnknownMember {
1260
+ input?: never;
1261
+ output?: never;
1262
+ knowledgeBase?: never;
1263
+ condition?: never;
1264
+ lex?: never;
1265
+ prompt?: never;
1266
+ lambdaFunction?: never;
1267
+ storage?: never;
1268
+ agent?: never;
1269
+ retrieval?: never;
1270
+ iterator?: never;
1271
+ collector?: never;
1272
+ $unknown: [string, any];
1273
+ }
1274
+ interface Visitor<T> {
1275
+ input: (value: InputFlowNodeConfiguration) => T;
1276
+ output: (value: OutputFlowNodeConfiguration) => T;
1277
+ knowledgeBase: (value: KnowledgeBaseFlowNodeConfiguration) => T;
1278
+ condition: (value: ConditionFlowNodeConfiguration) => T;
1279
+ lex: (value: LexFlowNodeConfiguration) => T;
1280
+ prompt: (value: PromptFlowNodeConfiguration) => T;
1281
+ lambdaFunction: (value: LambdaFunctionFlowNodeConfiguration) => T;
1282
+ storage: (value: StorageFlowNodeConfiguration) => T;
1283
+ agent: (value: AgentFlowNodeConfiguration) => T;
1284
+ retrieval: (value: RetrievalFlowNodeConfiguration) => T;
1285
+ iterator: (value: IteratorFlowNodeConfiguration) => T;
1286
+ collector: (value: CollectorFlowNodeConfiguration) => T;
1287
+ _: (name: string, value: any) => T;
1288
+ }
1289
+ const visit: <T>(value: FlowNodeConfiguration, visitor: Visitor<T>) => T;
1290
+ }
1291
+ export declare const FlowNodeIODataType: {
1292
+ readonly ARRAY: "Array";
1293
+ readonly BOOLEAN: "Boolean";
1294
+ readonly NUMBER: "Number";
1295
+ readonly OBJECT: "Object";
1296
+ readonly STRING: "String";
1297
+ };
1298
+ export type FlowNodeIODataType =
1299
+ (typeof FlowNodeIODataType)[keyof typeof FlowNodeIODataType];
1300
+ export interface FlowNodeInput {
1301
+ name: string | undefined;
1302
+ type: FlowNodeIODataType | undefined;
1303
+ expression: string | undefined;
1304
+ }
1305
+ export interface FlowNodeOutput {
1306
+ name: string | undefined;
1307
+ type: FlowNodeIODataType | undefined;
1308
+ }
1309
+ export declare const FlowNodeType: {
1310
+ readonly AGENT: "Agent";
1311
+ readonly COLLECTOR: "Collector";
1312
+ readonly CONDITION: "Condition";
1313
+ readonly INPUT: "Input";
1314
+ readonly ITERATOR: "Iterator";
1315
+ readonly KNOWLEDGE_BASE: "KnowledgeBase";
1316
+ readonly LAMBDA_FUNCTION: "LambdaFunction";
1317
+ readonly LEX: "Lex";
1318
+ readonly OUTPUT: "Output";
1319
+ readonly PROMPT: "Prompt";
1320
+ readonly RETRIEVAL: "Retrieval";
1321
+ readonly STORAGE: "Storage";
1322
+ };
1323
+ export type FlowNodeType = (typeof FlowNodeType)[keyof typeof FlowNodeType];
1324
+ export interface FlowNode {
1325
+ name: string | undefined;
1326
+ type: FlowNodeType | undefined;
1327
+ configuration?: FlowNodeConfiguration;
1328
+ inputs?: FlowNodeInput[];
1329
+ outputs?: FlowNodeOutput[];
1330
+ }
1331
+ export interface FlowDefinition {
1332
+ nodes?: FlowNode[];
1333
+ connections?: FlowConnection[];
1334
+ }
1335
+ export interface CreateFlowRequest {
1336
+ name: string | undefined;
1337
+ description?: string;
1338
+ executionRoleArn: string | undefined;
1339
+ customerEncryptionKeyArn?: string;
1340
+ definition?: FlowDefinition;
1341
+ clientToken?: string;
1342
+ tags?: Record<string, string>;
1343
+ }
1344
+ export declare const FlowStatus: {
1345
+ readonly FAILED: "Failed";
1346
+ readonly NOT_PREPARED: "NotPrepared";
1347
+ readonly PREPARED: "Prepared";
1348
+ readonly PREPARING: "Preparing";
1349
+ };
1350
+ export type FlowStatus = (typeof FlowStatus)[keyof typeof FlowStatus];
1351
+ export interface CreateFlowResponse {
1352
+ name: string | undefined;
1353
+ description?: string;
1354
+ executionRoleArn: string | undefined;
1355
+ customerEncryptionKeyArn?: string;
1356
+ id: string | undefined;
1357
+ arn: string | undefined;
1358
+ status: FlowStatus | undefined;
1359
+ createdAt: Date | undefined;
1360
+ updatedAt: Date | undefined;
1361
+ version: string | undefined;
1362
+ definition?: FlowDefinition;
1363
+ }
1364
+ export interface DeleteFlowRequest {
1365
+ flowIdentifier: string | undefined;
1366
+ skipResourceInUseCheck?: boolean;
1367
+ }
1368
+ export interface DeleteFlowResponse {
1369
+ id: string | undefined;
1370
+ }
1371
+ export interface FlowAliasRoutingConfigurationListItem {
1372
+ flowVersion?: string;
1373
+ }
1374
+ export interface CreateFlowAliasRequest {
1375
+ name: string | undefined;
1376
+ description?: string;
1377
+ routingConfiguration: FlowAliasRoutingConfigurationListItem[] | undefined;
1378
+ flowIdentifier: string | undefined;
1379
+ clientToken?: string;
1380
+ tags?: Record<string, string>;
1381
+ }
1382
+ export interface CreateFlowAliasResponse {
1383
+ name: string | undefined;
1384
+ description?: string;
1385
+ routingConfiguration: FlowAliasRoutingConfigurationListItem[] | undefined;
1386
+ flowId: string | undefined;
1387
+ id: string | undefined;
1388
+ arn: string | undefined;
1389
+ createdAt: Date | undefined;
1390
+ updatedAt: Date | undefined;
1391
+ }
1392
+ export interface DeleteFlowAliasRequest {
1393
+ flowIdentifier: string | undefined;
1394
+ aliasIdentifier: string | undefined;
1395
+ }
1396
+ export interface DeleteFlowAliasResponse {
1397
+ flowId: string | undefined;
1398
+ id: string | undefined;
1399
+ }
1400
+ export interface GetFlowAliasRequest {
1401
+ flowIdentifier: string | undefined;
1402
+ aliasIdentifier: string | undefined;
1403
+ }
1404
+ export interface GetFlowAliasResponse {
1405
+ name: string | undefined;
1406
+ description?: string;
1407
+ routingConfiguration: FlowAliasRoutingConfigurationListItem[] | undefined;
1408
+ flowId: string | undefined;
1409
+ id: string | undefined;
1410
+ arn: string | undefined;
1411
+ createdAt: Date | undefined;
1412
+ updatedAt: Date | undefined;
1413
+ }
1414
+ export interface ListFlowAliasesRequest {
1415
+ flowIdentifier: string | undefined;
1416
+ maxResults?: number;
1417
+ nextToken?: string;
1418
+ }
1419
+ export interface FlowAliasSummary {
1420
+ name: string | undefined;
1421
+ description?: string;
1422
+ routingConfiguration: FlowAliasRoutingConfigurationListItem[] | undefined;
1423
+ flowId: string | undefined;
1424
+ id: string | undefined;
1425
+ arn: string | undefined;
1426
+ createdAt: Date | undefined;
1427
+ updatedAt: Date | undefined;
1428
+ }
1429
+ export interface ListFlowAliasesResponse {
1430
+ flowAliasSummaries: FlowAliasSummary[] | undefined;
1431
+ nextToken?: string;
1432
+ }
1433
+ export interface UpdateFlowAliasRequest {
1434
+ name: string | undefined;
1435
+ description?: string;
1436
+ routingConfiguration: FlowAliasRoutingConfigurationListItem[] | undefined;
1437
+ flowIdentifier: string | undefined;
1438
+ aliasIdentifier: string | undefined;
1439
+ }
1440
+ export interface UpdateFlowAliasResponse {
1441
+ name: string | undefined;
1442
+ description?: string;
1443
+ routingConfiguration: FlowAliasRoutingConfigurationListItem[] | undefined;
1444
+ flowId: string | undefined;
1445
+ id: string | undefined;
1446
+ arn: string | undefined;
1447
+ createdAt: Date | undefined;
1448
+ updatedAt: Date | undefined;
1449
+ }
1450
+ export interface CreateFlowVersionRequest {
1451
+ flowIdentifier: string | undefined;
1452
+ description?: string;
1453
+ clientToken?: string;
1454
+ }
1455
+ export interface CreateFlowVersionResponse {
1456
+ name: string | undefined;
1457
+ description?: string;
1458
+ executionRoleArn: string | undefined;
1459
+ customerEncryptionKeyArn?: string;
1460
+ id: string | undefined;
1461
+ arn: string | undefined;
1462
+ status: FlowStatus | undefined;
1463
+ createdAt: Date | undefined;
1464
+ version: string | undefined;
1465
+ definition?: FlowDefinition;
1466
+ }
1467
+ export interface DeleteFlowVersionRequest {
1468
+ flowIdentifier: string | undefined;
1469
+ flowVersion: string | undefined;
1470
+ skipResourceInUseCheck?: boolean;
1471
+ }
1472
+ export interface DeleteFlowVersionResponse {
1473
+ id: string | undefined;
1474
+ version: string | undefined;
1475
+ }
1476
+ export interface GetFlowVersionRequest {
1477
+ flowIdentifier: string | undefined;
1478
+ flowVersion: string | undefined;
1479
+ }
1480
+ export interface GetFlowVersionResponse {
1481
+ name: string | undefined;
1482
+ description?: string;
1483
+ executionRoleArn: string | undefined;
1484
+ customerEncryptionKeyArn?: string;
1485
+ id: string | undefined;
1486
+ arn: string | undefined;
1487
+ status: FlowStatus | undefined;
1488
+ createdAt: Date | undefined;
1489
+ version: string | undefined;
1490
+ definition?: FlowDefinition;
1491
+ }
1492
+ export interface ListFlowVersionsRequest {
1493
+ flowIdentifier: string | undefined;
1494
+ maxResults?: number;
1495
+ nextToken?: string;
1496
+ }
1497
+ export interface FlowVersionSummary {
1498
+ id: string | undefined;
1499
+ arn: string | undefined;
1500
+ status: FlowStatus | undefined;
1501
+ createdAt: Date | undefined;
1502
+ version: string | undefined;
1503
+ }
1504
+ export interface ListFlowVersionsResponse {
1505
+ flowVersionSummaries: FlowVersionSummary[] | undefined;
1506
+ nextToken?: string;
1507
+ }
1508
+ export interface GetFlowRequest {
1509
+ flowIdentifier: string | undefined;
1510
+ }
1511
+ export declare const FlowValidationSeverity: {
1512
+ readonly ERROR: "Error";
1513
+ readonly WARNING: "Warning";
1514
+ };
1515
+ export type FlowValidationSeverity =
1516
+ (typeof FlowValidationSeverity)[keyof typeof FlowValidationSeverity];
1517
+ export interface FlowValidation {
1518
+ message: string | undefined;
1519
+ severity: FlowValidationSeverity | undefined;
1520
+ }
1521
+ export interface GetFlowResponse {
1522
+ name: string | undefined;
1523
+ description?: string;
1524
+ executionRoleArn: string | undefined;
1525
+ customerEncryptionKeyArn?: string;
1526
+ id: string | undefined;
1527
+ arn: string | undefined;
1528
+ status: FlowStatus | undefined;
1529
+ createdAt: Date | undefined;
1530
+ updatedAt: Date | undefined;
1531
+ version: string | undefined;
1532
+ definition?: FlowDefinition;
1533
+ validations?: FlowValidation[];
1534
+ }
1535
+ export interface ListFlowsRequest {
1536
+ maxResults?: number;
1537
+ nextToken?: string;
1538
+ }
1539
+ export interface FlowSummary {
1540
+ name: string | undefined;
1541
+ description?: string;
1542
+ id: string | undefined;
1543
+ arn: string | undefined;
1544
+ status: FlowStatus | undefined;
1545
+ createdAt: Date | undefined;
1546
+ updatedAt: Date | undefined;
1547
+ version: string | undefined;
1548
+ }
1549
+ export interface ListFlowsResponse {
1550
+ flowSummaries: FlowSummary[] | undefined;
1551
+ nextToken?: string;
1552
+ }
1553
+ export interface PrepareFlowRequest {
1554
+ flowIdentifier: string | undefined;
1555
+ }
1556
+ export interface PrepareFlowResponse {
1557
+ id: string | undefined;
1558
+ status: FlowStatus | undefined;
1559
+ }
1560
+ export interface UpdateFlowRequest {
1561
+ name: string | undefined;
1562
+ description?: string;
1563
+ executionRoleArn: string | undefined;
1564
+ customerEncryptionKeyArn?: string;
1565
+ definition?: FlowDefinition;
1566
+ flowIdentifier: string | undefined;
1567
+ }
1568
+ export interface UpdateFlowResponse {
1569
+ name: string | undefined;
1570
+ description?: string;
1571
+ executionRoleArn: string | undefined;
1572
+ customerEncryptionKeyArn?: string;
1573
+ id: string | undefined;
1574
+ arn: string | undefined;
1575
+ status: FlowStatus | undefined;
1576
+ createdAt: Date | undefined;
1577
+ updatedAt: Date | undefined;
1578
+ version: string | undefined;
1579
+ definition?: FlowDefinition;
1580
+ }
641
1581
  export interface GetIngestionJobRequest {
642
1582
  knowledgeBaseId: string | undefined;
643
1583
  dataSourceId: string | undefined;
@@ -947,6 +1887,114 @@ export interface UpdateKnowledgeBaseRequest {
947
1887
  export interface UpdateKnowledgeBaseResponse {
948
1888
  knowledgeBase: KnowledgeBase | undefined;
949
1889
  }
1890
+ export interface PromptVariant {
1891
+ name: string | undefined;
1892
+ templateType: PromptTemplateType | undefined;
1893
+ templateConfiguration?: PromptTemplateConfiguration;
1894
+ modelId?: string;
1895
+ inferenceConfiguration?: PromptInferenceConfiguration;
1896
+ }
1897
+ export interface CreatePromptRequest {
1898
+ name: string | undefined;
1899
+ description?: string;
1900
+ customerEncryptionKeyArn?: string;
1901
+ defaultVariant?: string;
1902
+ variants?: PromptVariant[];
1903
+ clientToken?: string;
1904
+ tags?: Record<string, string>;
1905
+ }
1906
+ export interface CreatePromptResponse {
1907
+ name: string | undefined;
1908
+ description?: string;
1909
+ customerEncryptionKeyArn?: string;
1910
+ defaultVariant?: string;
1911
+ variants?: PromptVariant[];
1912
+ id: string | undefined;
1913
+ arn: string | undefined;
1914
+ version: string | undefined;
1915
+ createdAt: Date | undefined;
1916
+ updatedAt: Date | undefined;
1917
+ }
1918
+ export interface CreatePromptVersionRequest {
1919
+ promptIdentifier: string | undefined;
1920
+ description?: string;
1921
+ clientToken?: string;
1922
+ tags?: Record<string, string>;
1923
+ }
1924
+ export interface CreatePromptVersionResponse {
1925
+ name: string | undefined;
1926
+ description?: string;
1927
+ customerEncryptionKeyArn?: string;
1928
+ defaultVariant?: string;
1929
+ variants?: PromptVariant[];
1930
+ id: string | undefined;
1931
+ arn: string | undefined;
1932
+ version: string | undefined;
1933
+ createdAt: Date | undefined;
1934
+ updatedAt: Date | undefined;
1935
+ }
1936
+ export interface DeletePromptRequest {
1937
+ promptIdentifier: string | undefined;
1938
+ promptVersion?: string;
1939
+ }
1940
+ export interface DeletePromptResponse {
1941
+ id: string | undefined;
1942
+ version?: string;
1943
+ }
1944
+ export interface GetPromptRequest {
1945
+ promptIdentifier: string | undefined;
1946
+ promptVersion?: string;
1947
+ }
1948
+ export interface GetPromptResponse {
1949
+ name: string | undefined;
1950
+ description?: string;
1951
+ customerEncryptionKeyArn?: string;
1952
+ defaultVariant?: string;
1953
+ variants?: PromptVariant[];
1954
+ id: string | undefined;
1955
+ arn: string | undefined;
1956
+ version: string | undefined;
1957
+ createdAt: Date | undefined;
1958
+ updatedAt: Date | undefined;
1959
+ }
1960
+ export interface ListPromptsRequest {
1961
+ promptIdentifier?: string;
1962
+ maxResults?: number;
1963
+ nextToken?: string;
1964
+ }
1965
+ export interface PromptSummary {
1966
+ name: string | undefined;
1967
+ description?: string;
1968
+ id: string | undefined;
1969
+ arn: string | undefined;
1970
+ version: string | undefined;
1971
+ createdAt: Date | undefined;
1972
+ updatedAt: Date | undefined;
1973
+ }
1974
+ export interface ListPromptsResponse {
1975
+ promptSummaries: PromptSummary[] | undefined;
1976
+ nextToken?: string;
1977
+ }
1978
+ export interface UpdatePromptRequest {
1979
+ name: string | undefined;
1980
+ description?: string;
1981
+ customerEncryptionKeyArn?: string;
1982
+ defaultVariant?: string;
1983
+ variants?: PromptVariant[];
1984
+ promptIdentifier: string | undefined;
1985
+ }
1986
+ export interface UpdatePromptResponse {
1987
+ name: string | undefined;
1988
+ description?: string;
1989
+ customerEncryptionKeyArn?: string;
1990
+ defaultVariant?: string;
1991
+ variants?: PromptVariant[];
1992
+ id: string | undefined;
1993
+ arn: string | undefined;
1994
+ version: string | undefined;
1995
+ createdAt: Date | undefined;
1996
+ updatedAt: Date | undefined;
1997
+ }
950
1998
  export interface ListTagsForResourceRequest {
951
1999
  resourceArn: string | undefined;
952
2000
  }
@@ -1008,6 +2056,9 @@ export declare const UpdateAgentActionGroupRequestFilterSensitiveLog: (
1008
2056
  export declare const UpdateAgentActionGroupResponseFilterSensitiveLog: (
1009
2057
  obj: UpdateAgentActionGroupResponse
1010
2058
  ) => any;
2059
+ export declare const PromptConfigurationFilterSensitiveLog: (
2060
+ obj: PromptConfiguration
2061
+ ) => any;
1011
2062
  export declare const PromptOverrideConfigurationFilterSensitiveLog: (
1012
2063
  obj: PromptOverrideConfiguration
1013
2064
  ) => any;
@@ -1028,6 +2079,134 @@ export declare const UpdateAgentResponseFilterSensitiveLog: (
1028
2079
  obj: UpdateAgentResponse
1029
2080
  ) => any;
1030
2081
  export declare const AgentVersionFilterSensitiveLog: (obj: AgentVersion) => any;
2082
+ export declare const PatternObjectFilterFilterSensitiveLog: (
2083
+ obj: PatternObjectFilter
2084
+ ) => any;
2085
+ export declare const PatternObjectFilterConfigurationFilterSensitiveLog: (
2086
+ obj: PatternObjectFilterConfiguration
2087
+ ) => any;
2088
+ export declare const CrawlFilterConfigurationFilterSensitiveLog: (
2089
+ obj: CrawlFilterConfiguration
2090
+ ) => any;
2091
+ export declare const ConfluenceCrawlerConfigurationFilterSensitiveLog: (
2092
+ obj: ConfluenceCrawlerConfiguration
2093
+ ) => any;
2094
+ export declare const ConfluenceDataSourceConfigurationFilterSensitiveLog: (
2095
+ obj: ConfluenceDataSourceConfiguration
2096
+ ) => any;
2097
+ export declare const S3DataSourceConfigurationFilterSensitiveLog: (
2098
+ obj: S3DataSourceConfiguration
2099
+ ) => any;
2100
+ export declare const SalesforceCrawlerConfigurationFilterSensitiveLog: (
2101
+ obj: SalesforceCrawlerConfiguration
2102
+ ) => any;
2103
+ export declare const SalesforceDataSourceConfigurationFilterSensitiveLog: (
2104
+ obj: SalesforceDataSourceConfiguration
2105
+ ) => any;
2106
+ export declare const SharePointCrawlerConfigurationFilterSensitiveLog: (
2107
+ obj: SharePointCrawlerConfiguration
2108
+ ) => any;
2109
+ export declare const SharePointDataSourceConfigurationFilterSensitiveLog: (
2110
+ obj: SharePointDataSourceConfiguration
2111
+ ) => any;
2112
+ export declare const WebCrawlerConfigurationFilterSensitiveLog: (
2113
+ obj: WebCrawlerConfiguration
2114
+ ) => any;
2115
+ export declare const WebDataSourceConfigurationFilterSensitiveLog: (
2116
+ obj: WebDataSourceConfiguration
2117
+ ) => any;
2118
+ export declare const DataSourceConfigurationFilterSensitiveLog: (
2119
+ obj: DataSourceConfiguration
2120
+ ) => any;
2121
+ export declare const CreateDataSourceRequestFilterSensitiveLog: (
2122
+ obj: CreateDataSourceRequest
2123
+ ) => any;
2124
+ export declare const DataSourceFilterSensitiveLog: (obj: DataSource) => any;
2125
+ export declare const CreateDataSourceResponseFilterSensitiveLog: (
2126
+ obj: CreateDataSourceResponse
2127
+ ) => any;
2128
+ export declare const GetDataSourceResponseFilterSensitiveLog: (
2129
+ obj: GetDataSourceResponse
2130
+ ) => any;
2131
+ export declare const UpdateDataSourceRequestFilterSensitiveLog: (
2132
+ obj: UpdateDataSourceRequest
2133
+ ) => any;
2134
+ export declare const UpdateDataSourceResponseFilterSensitiveLog: (
2135
+ obj: UpdateDataSourceResponse
2136
+ ) => any;
2137
+ export declare const FlowConditionFilterSensitiveLog: (
2138
+ obj: FlowCondition
2139
+ ) => any;
2140
+ export declare const ConditionFlowNodeConfigurationFilterSensitiveLog: (
2141
+ obj: ConditionFlowNodeConfiguration
2142
+ ) => any;
2143
+ export declare const TextPromptTemplateConfigurationFilterSensitiveLog: (
2144
+ obj: TextPromptTemplateConfiguration
2145
+ ) => any;
2146
+ export declare const PromptTemplateConfigurationFilterSensitiveLog: (
2147
+ obj: PromptTemplateConfiguration
2148
+ ) => any;
2149
+ export declare const PromptFlowNodeInlineConfigurationFilterSensitiveLog: (
2150
+ obj: PromptFlowNodeInlineConfiguration
2151
+ ) => any;
2152
+ export declare const PromptFlowNodeSourceConfigurationFilterSensitiveLog: (
2153
+ obj: PromptFlowNodeSourceConfiguration
2154
+ ) => any;
2155
+ export declare const PromptFlowNodeConfigurationFilterSensitiveLog: (
2156
+ obj: PromptFlowNodeConfiguration
2157
+ ) => any;
2158
+ export declare const FlowNodeConfigurationFilterSensitiveLog: (
2159
+ obj: FlowNodeConfiguration
2160
+ ) => any;
2161
+ export declare const FlowNodeInputFilterSensitiveLog: (
2162
+ obj: FlowNodeInput
2163
+ ) => any;
2164
+ export declare const FlowNodeFilterSensitiveLog: (obj: FlowNode) => any;
2165
+ export declare const FlowDefinitionFilterSensitiveLog: (
2166
+ obj: FlowDefinition
2167
+ ) => any;
2168
+ export declare const CreateFlowRequestFilterSensitiveLog: (
2169
+ obj: CreateFlowRequest
2170
+ ) => any;
2171
+ export declare const CreateFlowResponseFilterSensitiveLog: (
2172
+ obj: CreateFlowResponse
2173
+ ) => any;
2174
+ export declare const CreateFlowVersionResponseFilterSensitiveLog: (
2175
+ obj: CreateFlowVersionResponse
2176
+ ) => any;
2177
+ export declare const GetFlowVersionResponseFilterSensitiveLog: (
2178
+ obj: GetFlowVersionResponse
2179
+ ) => any;
2180
+ export declare const GetFlowResponseFilterSensitiveLog: (
2181
+ obj: GetFlowResponse
2182
+ ) => any;
2183
+ export declare const UpdateFlowRequestFilterSensitiveLog: (
2184
+ obj: UpdateFlowRequest
2185
+ ) => any;
2186
+ export declare const UpdateFlowResponseFilterSensitiveLog: (
2187
+ obj: UpdateFlowResponse
2188
+ ) => any;
2189
+ export declare const PromptVariantFilterSensitiveLog: (
2190
+ obj: PromptVariant
2191
+ ) => any;
2192
+ export declare const CreatePromptRequestFilterSensitiveLog: (
2193
+ obj: CreatePromptRequest
2194
+ ) => any;
2195
+ export declare const CreatePromptResponseFilterSensitiveLog: (
2196
+ obj: CreatePromptResponse
2197
+ ) => any;
2198
+ export declare const CreatePromptVersionResponseFilterSensitiveLog: (
2199
+ obj: CreatePromptVersionResponse
2200
+ ) => any;
2201
+ export declare const GetPromptResponseFilterSensitiveLog: (
2202
+ obj: GetPromptResponse
2203
+ ) => any;
2204
+ export declare const UpdatePromptRequestFilterSensitiveLog: (
2205
+ obj: UpdatePromptRequest
2206
+ ) => any;
2207
+ export declare const UpdatePromptResponseFilterSensitiveLog: (
2208
+ obj: UpdatePromptResponse
2209
+ ) => any;
1031
2210
  export declare const GetAgentVersionResponseFilterSensitiveLog: (
1032
2211
  obj: GetAgentVersionResponse
1033
2212
  ) => any;