first commit -> move some files from one-api

This commit is contained in:
2026-05-06 13:37:10 +07:00
parent a3144382c5
commit 55c6ed9779
7940 changed files with 628870 additions and 0 deletions

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,3 @@
<?php
// This file was auto-generated from sdk-root/src/data/models.lex.v2/2020-08-07/endpoint-rule-set-1.json
return [ 'version' => '1.0', 'parameters' => [ 'Region' => [ 'builtIn' => 'AWS::Region', 'required' => false, 'documentation' => 'The AWS region used to dispatch the request.', 'type' => 'String', ], 'UseDualStack' => [ 'builtIn' => 'AWS::UseDualStack', 'required' => true, 'default' => false, 'documentation' => 'When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.', 'type' => 'Boolean', ], 'UseFIPS' => [ 'builtIn' => 'AWS::UseFIPS', 'required' => true, 'default' => false, 'documentation' => 'When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.', 'type' => 'Boolean', ], 'Endpoint' => [ 'builtIn' => 'SDK::Endpoint', 'required' => false, 'documentation' => 'Override the endpoint used to send this request', 'type' => 'String', ], ], 'rules' => [ [ 'conditions' => [ [ 'fn' => 'isSet', 'argv' => [ [ 'ref' => 'Endpoint', ], ], ], ], 'rules' => [ [ 'conditions' => [ [ 'fn' => 'booleanEquals', 'argv' => [ [ 'ref' => 'UseFIPS', ], true, ], ], ], 'error' => 'Invalid Configuration: FIPS and custom endpoint are not supported', 'type' => 'error', ], [ 'conditions' => [ [ 'fn' => 'booleanEquals', 'argv' => [ [ 'ref' => 'UseDualStack', ], true, ], ], ], 'error' => 'Invalid Configuration: Dualstack and custom endpoint are not supported', 'type' => 'error', ], [ 'conditions' => [], 'endpoint' => [ 'url' => [ 'ref' => 'Endpoint', ], 'properties' => [], 'headers' => [], ], 'type' => 'endpoint', ], ], 'type' => 'tree', ], [ 'conditions' => [ [ 'fn' => 'isSet', 'argv' => [ [ 'ref' => 'Region', ], ], ], ], 'rules' => [ [ 'conditions' => [ [ 'fn' => 'aws.partition', 'argv' => [ [ 'ref' => 'Region', ], ], 'assign' => 'PartitionResult', ], ], 'rules' => [ [ 'conditions' => [ [ 'fn' => 'booleanEquals', 'argv' => [ [ 'ref' => 'UseFIPS', ], true, ], ], [ 'fn' => 'booleanEquals', 'argv' => [ [ 'ref' => 'UseDualStack', ], true, ], ], ], 'rules' => [ [ 'conditions' => [ [ 'fn' => 'booleanEquals', 'argv' => [ true, [ 'fn' => 'getAttr', 'argv' => [ [ 'ref' => 'PartitionResult', ], 'supportsFIPS', ], ], ], ], [ 'fn' => 'booleanEquals', 'argv' => [ true, [ 'fn' => 'getAttr', 'argv' => [ [ 'ref' => 'PartitionResult', ], 'supportsDualStack', ], ], ], ], ], 'rules' => [ [ 'conditions' => [], 'endpoint' => [ 'url' => 'https://models-v2-lex-fips.{Region}.{PartitionResult#dualStackDnsSuffix}', 'properties' => [], 'headers' => [], ], 'type' => 'endpoint', ], ], 'type' => 'tree', ], [ 'conditions' => [], 'error' => 'FIPS and DualStack are enabled, but this partition does not support one or both', 'type' => 'error', ], ], 'type' => 'tree', ], [ 'conditions' => [ [ 'fn' => 'booleanEquals', 'argv' => [ [ 'ref' => 'UseFIPS', ], true, ], ], ], 'rules' => [ [ 'conditions' => [ [ 'fn' => 'booleanEquals', 'argv' => [ [ 'fn' => 'getAttr', 'argv' => [ [ 'ref' => 'PartitionResult', ], 'supportsFIPS', ], ], true, ], ], ], 'rules' => [ [ 'conditions' => [], 'endpoint' => [ 'url' => 'https://models-v2-lex-fips.{Region}.{PartitionResult#dnsSuffix}', 'properties' => [], 'headers' => [], ], 'type' => 'endpoint', ], ], 'type' => 'tree', ], [ 'conditions' => [], 'error' => 'FIPS is enabled but this partition does not support FIPS', 'type' => 'error', ], ], 'type' => 'tree', ], [ 'conditions' => [ [ 'fn' => 'booleanEquals', 'argv' => [ [ 'ref' => 'UseDualStack', ], true, ], ], ], 'rules' => [ [ 'conditions' => [ [ 'fn' => 'booleanEquals', 'argv' => [ true, [ 'fn' => 'getAttr', 'argv' => [ [ 'ref' => 'PartitionResult', ], 'supportsDualStack', ], ], ], ], ], 'rules' => [ [ 'conditions' => [], 'endpoint' => [ 'url' => 'https://models-v2-lex.{Region}.{PartitionResult#dualStackDnsSuffix}', 'properties' => [], 'headers' => [], ], 'type' => 'endpoint', ], ], 'type' => 'tree', ], [ 'conditions' => [], 'error' => 'DualStack is enabled but this partition does not support DualStack', 'type' => 'error', ], ], 'type' => 'tree', ], [ 'conditions' => [], 'endpoint' => [ 'url' => 'https://models-v2-lex.{Region}.{PartitionResult#dnsSuffix}', 'properties' => [], 'headers' => [], ], 'type' => 'endpoint', ], ], 'type' => 'tree', ], ], 'type' => 'tree', ], [ 'conditions' => [], 'error' => 'Invalid Configuration: Missing Region', 'type' => 'error', ], ],];

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,3 @@
<?php
// This file was auto-generated from sdk-root/src/data/models.lex.v2/2020-08-07/paginators-1.json
return [ 'pagination' => [ 'ListAggregatedUtterances' => [ 'input_token' => 'nextToken', 'output_token' => 'nextToken', 'limit_key' => 'maxResults', ], 'ListBotAliasReplicas' => [ 'input_token' => 'nextToken', 'output_token' => 'nextToken', 'limit_key' => 'maxResults', ], 'ListBotAliases' => [ 'input_token' => 'nextToken', 'output_token' => 'nextToken', 'limit_key' => 'maxResults', ], 'ListBotLocales' => [ 'input_token' => 'nextToken', 'output_token' => 'nextToken', 'limit_key' => 'maxResults', ], 'ListBotRecommendations' => [ 'input_token' => 'nextToken', 'output_token' => 'nextToken', 'limit_key' => 'maxResults', ], 'ListBotResourceGenerations' => [ 'input_token' => 'nextToken', 'output_token' => 'nextToken', 'limit_key' => 'maxResults', ], 'ListBotVersionReplicas' => [ 'input_token' => 'nextToken', 'output_token' => 'nextToken', 'limit_key' => 'maxResults', ], 'ListBotVersions' => [ 'input_token' => 'nextToken', 'output_token' => 'nextToken', 'limit_key' => 'maxResults', ], 'ListBots' => [ 'input_token' => 'nextToken', 'output_token' => 'nextToken', 'limit_key' => 'maxResults', ], 'ListBuiltInIntents' => [ 'input_token' => 'nextToken', 'output_token' => 'nextToken', 'limit_key' => 'maxResults', ], 'ListBuiltInSlotTypes' => [ 'input_token' => 'nextToken', 'output_token' => 'nextToken', 'limit_key' => 'maxResults', ], 'ListCustomVocabularyItems' => [ 'input_token' => 'nextToken', 'output_token' => 'nextToken', 'limit_key' => 'maxResults', ], 'ListExports' => [ 'input_token' => 'nextToken', 'output_token' => 'nextToken', 'limit_key' => 'maxResults', ], 'ListImports' => [ 'input_token' => 'nextToken', 'output_token' => 'nextToken', 'limit_key' => 'maxResults', ], 'ListIntentMetrics' => [ 'input_token' => 'nextToken', 'output_token' => 'nextToken', 'limit_key' => 'maxResults', ], 'ListIntentStageMetrics' => [ 'input_token' => 'nextToken', 'output_token' => 'nextToken', 'limit_key' => 'maxResults', ], 'ListIntents' => [ 'input_token' => 'nextToken', 'output_token' => 'nextToken', 'limit_key' => 'maxResults', ], 'ListRecommendedIntents' => [ 'input_token' => 'nextToken', 'output_token' => 'nextToken', 'limit_key' => 'maxResults', ], 'ListSessionAnalyticsData' => [ 'input_token' => 'nextToken', 'output_token' => 'nextToken', 'limit_key' => 'maxResults', ], 'ListSessionMetrics' => [ 'input_token' => 'nextToken', 'output_token' => 'nextToken', 'limit_key' => 'maxResults', ], 'ListSlotTypes' => [ 'input_token' => 'nextToken', 'output_token' => 'nextToken', 'limit_key' => 'maxResults', ], 'ListSlots' => [ 'input_token' => 'nextToken', 'output_token' => 'nextToken', 'limit_key' => 'maxResults', ], 'ListTestExecutionResultItems' => [ 'input_token' => 'nextToken', 'output_token' => 'nextToken', 'limit_key' => 'maxResults', ], 'ListTestExecutions' => [ 'input_token' => 'nextToken', 'output_token' => 'nextToken', 'limit_key' => 'maxResults', ], 'ListTestSetRecords' => [ 'input_token' => 'nextToken', 'output_token' => 'nextToken', 'limit_key' => 'maxResults', ], 'ListTestSets' => [ 'input_token' => 'nextToken', 'output_token' => 'nextToken', 'limit_key' => 'maxResults', ], 'ListUtteranceAnalyticsData' => [ 'input_token' => 'nextToken', 'output_token' => 'nextToken', 'limit_key' => 'maxResults', ], 'ListUtteranceMetrics' => [ 'input_token' => 'nextToken', 'output_token' => 'nextToken', 'limit_key' => 'maxResults', ], ],];

View File

@@ -0,0 +1,3 @@
<?php
// This file was auto-generated from sdk-root/src/data/models.lex.v2/2020-08-07/waiters-2.json
return [ 'version' => 2, 'waiters' => [ 'BotAvailable' => [ 'delay' => 10, 'operation' => 'DescribeBot', 'maxAttempts' => 35, 'description' => 'Wait until a bot is available', 'acceptors' => [ [ 'expected' => 'Available', 'matcher' => 'path', 'state' => 'success', 'argument' => 'botStatus', ], [ 'expected' => 'Deleting', 'matcher' => 'path', 'state' => 'failure', 'argument' => 'botStatus', ], [ 'expected' => 'Failed', 'matcher' => 'path', 'state' => 'failure', 'argument' => 'botStatus', ], [ 'expected' => 'Inactive', 'matcher' => 'path', 'state' => 'failure', 'argument' => 'botStatus', ], ], ], 'BotAliasAvailable' => [ 'delay' => 10, 'operation' => 'DescribeBotAlias', 'maxAttempts' => 35, 'description' => 'Wait until a bot alias is available', 'acceptors' => [ [ 'expected' => 'Available', 'matcher' => 'path', 'state' => 'success', 'argument' => 'botAliasStatus', ], [ 'expected' => 'Failed', 'matcher' => 'path', 'state' => 'failure', 'argument' => 'botAliasStatus', ], [ 'expected' => 'Deleting', 'matcher' => 'path', 'state' => 'failure', 'argument' => 'botAliasStatus', ], ], ], 'BotExportCompleted' => [ 'delay' => 10, 'operation' => 'DescribeExport', 'maxAttempts' => 35, 'description' => 'Wait until a bot has been exported', 'acceptors' => [ [ 'expected' => 'Completed', 'matcher' => 'path', 'state' => 'success', 'argument' => 'exportStatus', ], [ 'expected' => 'Deleting', 'matcher' => 'path', 'state' => 'failure', 'argument' => 'exportStatus', ], [ 'expected' => 'Failed', 'matcher' => 'path', 'state' => 'failure', 'argument' => 'exportStatus', ], ], ], 'BotImportCompleted' => [ 'delay' => 10, 'operation' => 'DescribeImport', 'maxAttempts' => 35, 'description' => 'Wait until a bot has been imported', 'acceptors' => [ [ 'expected' => 'Completed', 'matcher' => 'path', 'state' => 'success', 'argument' => 'importStatus', ], [ 'expected' => 'Deleting', 'matcher' => 'path', 'state' => 'failure', 'argument' => 'importStatus', ], [ 'expected' => 'Failed', 'matcher' => 'path', 'state' => 'failure', 'argument' => 'importStatus', ], ], ], 'BotLocaleBuilt' => [ 'delay' => 10, 'operation' => 'DescribeBotLocale', 'maxAttempts' => 35, 'description' => 'Wait until a bot locale is built', 'acceptors' => [ [ 'expected' => 'Built', 'matcher' => 'path', 'state' => 'success', 'argument' => 'botLocaleStatus', ], [ 'expected' => 'Deleting', 'matcher' => 'path', 'state' => 'failure', 'argument' => 'botLocaleStatus', ], [ 'expected' => 'Failed', 'matcher' => 'path', 'state' => 'failure', 'argument' => 'botLocaleStatus', ], [ 'expected' => 'NotBuilt', 'matcher' => 'path', 'state' => 'failure', 'argument' => 'botLocaleStatus', ], ], ], 'BotLocaleExpressTestingAvailable' => [ 'delay' => 10, 'operation' => 'DescribeBotLocale', 'maxAttempts' => 35, 'description' => 'Wait until a bot locale build is ready for express testing', 'acceptors' => [ [ 'expected' => 'Built', 'matcher' => 'path', 'state' => 'success', 'argument' => 'botLocaleStatus', ], [ 'expected' => 'ReadyExpressTesting', 'matcher' => 'path', 'state' => 'success', 'argument' => 'botLocaleStatus', ], [ 'expected' => 'Deleting', 'matcher' => 'path', 'state' => 'failure', 'argument' => 'botLocaleStatus', ], [ 'expected' => 'Failed', 'matcher' => 'path', 'state' => 'failure', 'argument' => 'botLocaleStatus', ], [ 'expected' => 'NotBuilt', 'matcher' => 'path', 'state' => 'failure', 'argument' => 'botLocaleStatus', ], ], ], 'BotVersionAvailable' => [ 'delay' => 10, 'operation' => 'DescribeBotVersion', 'maxAttempts' => 35, 'description' => 'Wait until a bot version is available', 'acceptors' => [ [ 'expected' => 'Available', 'matcher' => 'path', 'state' => 'success', 'argument' => 'botStatus', ], [ 'expected' => 'Deleting', 'matcher' => 'path', 'state' => 'failure', 'argument' => 'botStatus', ], [ 'expected' => 'Failed', 'matcher' => 'path', 'state' => 'failure', 'argument' => 'botStatus', ], [ 'state' => 'retry', 'matcher' => 'status', 'expected' => 404, ], ], ], 'BotLocaleCreated' => [ 'delay' => 10, 'operation' => 'DescribeBotLocale', 'maxAttempts' => 35, 'description' => 'Wait unit a bot locale is created', 'acceptors' => [ [ 'expected' => 'Built', 'matcher' => 'path', 'state' => 'success', 'argument' => 'botLocaleStatus', ], [ 'expected' => 'ReadyExpressTesting', 'matcher' => 'path', 'state' => 'success', 'argument' => 'botLocaleStatus', ], [ 'expected' => 'NotBuilt', 'matcher' => 'path', 'state' => 'success', 'argument' => 'botLocaleStatus', ], [ 'expected' => 'Deleting', 'matcher' => 'path', 'state' => 'failure', 'argument' => 'botLocaleStatus', ], [ 'expected' => 'Failed', 'matcher' => 'path', 'state' => 'failure', 'argument' => 'botLocaleStatus', ], ], ], ],];