diff options
Diffstat (limited to 'data/pailangstudio/2024-07-10')
| -rw-r--r-- | data/pailangstudio/2024-07-10/api-docs.php | 3715 |
1 files changed, 1376 insertions, 2339 deletions
diff --git a/data/pailangstudio/2024-07-10/api-docs.php b/data/pailangstudio/2024-07-10/api-docs.php index de4101d..089b373 100644 --- a/data/pailangstudio/2024-07-10/api-docs.php +++ b/data/pailangstudio/2024-07-10/api-docs.php @@ -1,139 +1,34 @@ <?php return [ 'version' => '1.0', - 'info' => [ - 'style' => 'ROA', - 'product' => 'PAILangStudio', - 'version' => '2024-07-10', - ], + 'info' => ['style' => 'ROA', 'product' => 'PAILangStudio', 'version' => '2024-07-10'], 'components' => [ 'schemas' => [ - 'AutoUpdateConfig' => [ - 'type' => 'object', - 'properties' => [ - 'Status' => [ - 'type' => 'string', - ], - 'ResourceId' => [ - 'type' => 'string', - ], - 'MaxRunningTimeInSeconds' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'EmbeddingConfig' => [ - 'type' => 'object', - 'properties' => [ - 'BatchSize' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'Concurrency' => [ - 'type' => 'integer', - 'format' => 'int32', - 'minimum' => '1', - 'maximum' => '200', - ], - ], - ], - 'UserVpc' => [ - '$ref' => '#/components/schemas/UserVpc', - ], - 'EcsSpecs' => [ - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'Type' => [ - 'type' => 'string', - ], - 'InstanceType' => [ - 'type' => 'string', - ], - 'PodCount' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'GPUType' => [ - 'type' => 'string', - ], - 'CPU' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'GPU' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'Memory' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'SharedMemory' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'Driver' => [ - 'type' => 'string', - ], - ], - ], - ], - ], - ], 'Connection' => [ 'type' => 'object', 'properties' => [ - 'WorkspaceId' => [ - 'type' => 'string', - ], - 'Accessibility' => [ - 'type' => 'string', - ], - 'ConnectionId' => [ - 'type' => 'string', - ], - 'ConnectionType' => [ - 'type' => 'string', - ], - 'ConnectionName' => [ - 'type' => 'string', - ], - 'CustomType' => [ - 'type' => 'string', - ], - 'Description' => [ - 'type' => 'string', - ], + 'WorkspaceId' => ['type' => 'string'], + 'Accessibility' => ['type' => 'string'], + 'ConnectionId' => ['type' => 'string'], + 'ConnectionType' => ['type' => 'string'], + 'ConnectionName' => ['type' => 'string'], + 'CustomType' => ['type' => 'string'], + 'Description' => ['type' => 'string'], 'Configs' => [ 'type' => 'object', - 'additionalProperties' => [ - 'type' => 'string', - ], + 'additionalProperties' => ['type' => 'string'], ], 'Secrets' => [ 'type' => 'object', - 'additionalProperties' => [ - 'type' => 'string', - ], - ], - 'GmtCreateTime' => [ - 'type' => 'string', - ], - 'GmtModifiedTime' => [ - 'type' => 'string', - ], - 'Creator' => [ - 'type' => 'string', + 'additionalProperties' => ['type' => 'string'], ], + 'GmtCreateTime' => ['type' => 'string'], + 'GmtModifiedTime' => ['type' => 'string'], + 'Creator' => ['type' => 'string'], 'ResourceMeta' => [ 'type' => 'object', 'properties' => [ - 'InstanceName' => [ - 'type' => 'string', - ], - 'InstanceId' => [ - 'type' => 'string', - ], + 'InstanceName' => ['type' => 'string'], + 'InstanceId' => ['type' => 'string'], ], ], 'Models' => [ @@ -141,31 +36,14 @@ 'items' => [ 'type' => 'object', 'properties' => [ - 'Model' => [ - 'type' => 'string', - ], - 'ModelType' => [ - 'type' => 'string', - ], - 'DisplayName' => [ - 'type' => 'string', - ], - 'ToolCall' => [ - 'type' => 'boolean', - ], - 'SupportVision' => [ - 'type' => 'boolean', - ], - 'SupportReasoning' => [ - 'type' => 'boolean', - ], - 'SupportResponseSchema' => [ - 'type' => 'boolean', - ], - 'MaxModelLength' => [ - 'type' => 'integer', - 'format' => 'int32', - ], + 'Model' => ['type' => 'string'], + 'ModelType' => ['type' => 'string'], + 'DisplayName' => ['type' => 'string'], + 'ToolCall' => ['type' => 'boolean'], + 'SupportVision' => ['type' => 'boolean'], + 'SupportReasoning' => ['type' => 'boolean'], + 'SupportResponseSchema' => ['type' => 'boolean'], + 'MaxModelLength' => ['type' => 'integer', 'format' => 'int32'], ], ], ], @@ -174,552 +52,145 @@ 'Deployment' => [ 'type' => 'object', 'properties' => [ - 'WorkspaceId' => [ - 'type' => 'string', - ], - 'Accessibility' => [ - 'type' => 'string', - ], - 'Creator' => [ - 'type' => 'string', - ], - 'GmtCreateTime' => [ - 'type' => 'string', - ], - 'GmtModifiedTime' => [ - 'type' => 'string', - ], - 'DeploymentId' => [ - 'type' => 'string', - ], - 'DeploymentStatus' => [ - 'type' => 'string', - ], - 'OperationType' => [ - 'type' => 'string', - ], - 'ResourceType' => [ - 'type' => 'string', - ], - 'ResourceId' => [ - 'type' => 'string', - ], - 'ResourceSnapshotId' => [ - 'type' => 'string', - ], - 'ServiceName' => [ - 'type' => 'string', - ], - 'ServiceGroup' => [ - 'type' => 'string', - ], - 'Description' => [ - 'type' => 'string', - ], - 'WorkDir' => [ - 'type' => 'string', - ], - 'EcsSpec' => [ - 'type' => 'object', - 'properties' => [ - 'ResourceId' => [ - 'type' => 'string', - ], - 'ResourceBurstable' => [ - 'type' => 'boolean', - ], - 'InstanceType' => [ - 'type' => 'string', - ], - 'GPUType' => [ - 'type' => 'string', - ], - 'CPU' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'GPU' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'Memory' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'SharedMemory' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'PodCount' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'GPUMemory' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'GPUCorePercentage' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'ExtraEphemeralStorage' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'QuotaId' => [ - 'type' => 'string', - ], - 'QuotaType' => [ - 'type' => 'string', - ], - 'ComputingInstanceConfig' => [ - 'type' => 'object', - 'properties' => [ - 'DisableSpotProtectionPeriod' => [ - 'type' => 'boolean', - ], - 'ComputingInstances' => [ - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'Type' => [ - 'type' => 'string', - ], - 'SpotPriceLimit' => [ - 'type' => 'number', - 'format' => 'float', - ], - ], - ], - ], - ], - ], - ], - ], - 'UserVpc' => [ - 'type' => 'object', - 'properties' => [ - 'VpcId' => [ - 'type' => 'string', - ], - 'VSwitchId' => [ - 'type' => 'string', - ], - 'SecurityGroupId' => [ - 'type' => 'string', - ], - ], - ], - 'Envs' => [ - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'Key' => [ - 'type' => 'string', - ], - 'Value' => [ - 'type' => 'string', - ], - ], - ], - ], - 'Labels' => [ - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'Key' => [ - 'type' => 'string', - ], - 'Value' => [ - 'type' => 'string', - ], - ], - ], - ], - 'DataSources' => [ - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'DatasetId' => [ - 'type' => 'string', - ], - 'Uri' => [ - 'type' => 'string', - ], - 'MountPath' => [ - 'type' => 'string', - ], - ], - ], - ], - 'CredentialConfig' => [ - 'type' => 'object', - 'properties' => [ - 'EnableCredentialInject' => [ - 'type' => 'boolean', - ], - 'AliyunEnvRoleKey' => [ - 'type' => 'string', - ], - 'CredentialConfigItems' => [ - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'Key' => [ - 'type' => 'string', - ], - 'Type' => [ - 'type' => 'string', - ], - 'Roles' => [ - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'AssumeRoleFor' => [ - 'type' => 'string', - ], - 'RoleType' => [ - 'type' => 'string', - ], - 'RoleArn' => [ - 'type' => 'string', - ], - ], - ], - ], - ], - ], - ], - ], - ], - 'EnableTrace' => [ - 'type' => 'boolean', - ], + 'WorkspaceId' => ['type' => 'string'], + 'Accessibility' => ['type' => 'string'], + 'Creator' => ['type' => 'string'], + 'GmtCreateTime' => ['type' => 'string'], + 'GmtModifiedTime' => ['type' => 'string'], + 'DeploymentId' => ['type' => 'string'], + 'DeploymentStatus' => ['type' => 'string'], + 'OperationType' => ['type' => 'string'], + 'ResourceType' => ['type' => 'string'], + 'ResourceId' => ['type' => 'string'], + 'ResourceSnapshotId' => ['type' => 'string'], + 'ServiceName' => ['type' => 'string'], + 'Description' => ['type' => 'string'], + 'WorkDir' => ['type' => 'string'], + 'EnableTrace' => ['type' => 'boolean'], 'ChatHistoryConfig' => [ 'type' => 'object', 'properties' => [ 'StorageType' => [ 'type' => 'string', - 'enum' => [ - 'LOCAL', - 'CLOUD', - ], - ], - 'ConnectionName' => [ - 'type' => 'string', + 'enum' => ['LOCAL', 'RDS', 'OSS'], ], + 'ConnectionName' => ['type' => 'string'], ], ], 'ContentModerationConfig' => [ 'type' => 'object', 'properties' => [ - 'EnableInputModeration' => [ - 'type' => 'boolean', - ], - 'EnableOutputModeration' => [ - 'type' => 'boolean', - ], - 'StreamingModerationThreshold' => [ - 'type' => 'integer', - 'format' => 'int32', - ], + 'EnableInputModeration' => ['type' => 'boolean'], + 'EnableOutputModeration' => ['type' => 'boolean'], + 'StreamingModerationThreshold' => ['type' => 'integer', 'format' => 'int32'], ], ], - 'DeploymentConfig' => [ - 'type' => 'string', - ], + 'DeploymentConfig' => ['type' => 'string'], 'DeploymentStages' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ - 'Stage' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'StageName' => [ - 'type' => 'string', - ], - 'Description' => [ - 'type' => 'string', - ], - 'GmtStartTime' => [ - 'type' => 'string', - ], - 'GmtEndTime' => [ - 'type' => 'string', - ], - 'StageStatus' => [ - 'type' => 'string', - ], - 'ErrorMessage' => [ - 'type' => 'string', - ], - 'StageInfo' => [ - 'type' => 'string', - ], + 'Stage' => ['type' => 'integer', 'format' => 'int32'], + 'StageName' => ['type' => 'string'], + 'Description' => ['type' => 'string'], + 'GmtStartTime' => ['type' => 'string'], + 'GmtEndTime' => ['type' => 'string'], + 'StageStatus' => ['type' => 'string'], + 'ErrorMessage' => ['type' => 'string'], + 'StageInfo' => ['type' => 'string'], ], ], ], - 'ErrorMessage' => [ - 'type' => 'string', - ], - 'AutoApproval' => [ - 'type' => 'boolean', - ], - ], - ], - 'EcsSpec' => [ - 'type' => 'object', - 'properties' => [ - 'Type' => [ - 'type' => 'string', - ], - 'InstanceType' => [ - 'type' => 'string', - ], - 'PodCount' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'CPU' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'GPU' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'Memory' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'SharedMemory' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'GPUType' => [ - 'type' => 'string', - ], - 'Driver' => [ - 'type' => 'string', - ], + 'ErrorMessage' => ['type' => 'string'], + 'AutoApproval' => ['type' => 'boolean'], ], ], 'Flow' => [ 'type' => 'object', 'properties' => [ - 'WorkspaceId' => [ - 'type' => 'string', - ], - 'Accessibility' => [ - 'type' => 'string', - ], - 'Description' => [ - 'type' => 'string', - ], - 'FlowId' => [ - 'type' => 'string', - ], - 'FlowName' => [ - 'type' => 'string', - ], - 'FlowStoragePath' => [ - 'type' => 'string', - ], - 'FlowType' => [ - 'type' => 'string', - ], - 'GmtCreateTime' => [ - 'type' => 'string', - ], - 'GmtModifiedTime' => [ - 'type' => 'string', - ], - 'WorkDir' => [ - 'type' => 'string', - ], - 'Creator' => [ - 'type' => 'string', - ], - 'CreateFrom' => [ - 'type' => 'string', - ], - 'FlowTemplateId' => [ - 'type' => 'string', - ], + 'WorkspaceId' => ['type' => 'string'], + 'Accessibility' => ['type' => 'string'], + 'Description' => ['type' => 'string'], + 'FlowId' => ['type' => 'string'], + 'FlowName' => ['type' => 'string'], + 'FlowStoragePath' => ['type' => 'string'], + 'FlowType' => ['type' => 'string'], + 'GmtCreateTime' => ['type' => 'string'], + 'GmtModifiedTime' => ['type' => 'string'], + 'WorkDir' => ['type' => 'string'], + 'Creator' => ['type' => 'string'], + 'CreateFrom' => ['type' => 'string'], + 'FlowTemplateId' => ['type' => 'string'], 'Runtime' => [ 'type' => 'object', 'properties' => [ - 'RuntimeId' => [ - 'type' => 'string', - ], - 'RuntimeName' => [ - 'type' => 'string', - ], - 'RuntimeType' => [ - 'type' => 'string', - ], - 'RuntimeStatus' => [ - 'type' => 'string', - ], - 'SupportSSEStream' => [ - 'type' => 'boolean', - ], + 'RuntimeId' => ['type' => 'string'], + 'RuntimeName' => ['type' => 'string'], + 'RuntimeType' => ['type' => 'string'], + 'RuntimeStatus' => ['type' => 'string'], + 'SupportSSEStream' => ['type' => 'boolean'], ], ], - 'Version' => [ - 'type' => 'string', - ], - 'RuntimeId' => [ - 'type' => 'string', - ], - 'SourceUri' => [ - 'type' => 'string', - ], - 'CodeModeRunInfo' => [ - 'type' => 'string', - ], + 'Version' => ['type' => 'string'], + 'RuntimeId' => ['type' => 'string'], + 'SourceUri' => ['type' => 'string'], + 'CodeModeRunInfo' => ['type' => 'string'], ], ], 'FlowRun' => [ 'type' => 'object', 'properties' => [ - 'WorkspaceId' => [ - 'type' => 'string', - ], - 'Accessibility' => [ - 'type' => 'string', - ], - 'FlowId' => [ - 'type' => 'string', - ], - 'FlowName' => [ - 'type' => 'string', - ], - 'FlowRunId' => [ - 'type' => 'string', - ], - 'RunStatus' => [ - 'type' => 'string', - ], - 'RunMode' => [ - 'type' => 'string', - ], - 'NodeName' => [ - 'type' => 'string', - ], - 'Variant' => [ - 'type' => 'string', - ], - 'Exception' => [ - 'type' => 'string', - ], - 'RunResult' => [ - 'type' => 'string', - ], - 'GmtCreateTime' => [ - 'type' => 'string', - ], - 'GmtModifiedTime' => [ - 'type' => 'string', - ], - 'GmtStartTime' => [ - 'type' => 'string', - ], - 'GmtFinishTime' => [ - 'type' => 'string', - ], - 'Duration' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'Creator' => [ - 'type' => 'string', - ], - 'RunName' => [ - 'type' => 'string', - ], + 'WorkspaceId' => ['type' => 'string'], + 'Accessibility' => ['type' => 'string'], + 'FlowId' => ['type' => 'string'], + 'FlowName' => ['type' => 'string'], + 'FlowRunId' => ['type' => 'string'], + 'RunStatus' => ['type' => 'string'], + 'RunMode' => ['type' => 'string'], + 'NodeName' => ['type' => 'string'], + 'Variant' => ['type' => 'string'], + 'Exception' => ['type' => 'string'], + 'RunResult' => ['type' => 'string'], + 'GmtCreateTime' => ['type' => 'string'], + 'GmtModifiedTime' => ['type' => 'string'], + 'GmtStartTime' => ['type' => 'string'], + 'GmtFinishTime' => ['type' => 'string'], + 'Duration' => ['type' => 'integer', 'format' => 'int32'], + 'Creator' => ['type' => 'string'], + 'RunName' => ['type' => 'string'], 'EcsSpec' => [ 'type' => 'object', 'properties' => [ - 'InstanceType' => [ - 'type' => 'string', - ], - 'GPUType' => [ - 'type' => 'string', - ], - 'CPU' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'GPU' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'Memory' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'SharedMemory' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'PodCount' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'GPUMemory' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'GPUCorePercentage' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'ExtraEphemeralStorage' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'QuotaId' => [ - 'type' => 'string', - ], - 'QuotaType' => [ - 'type' => 'string', - ], + 'InstanceType' => ['type' => 'string'], + 'GPUType' => ['type' => 'string'], + 'CPU' => ['type' => 'integer', 'format' => 'int32'], + 'GPU' => ['type' => 'integer', 'format' => 'int32'], + 'Memory' => ['type' => 'integer', 'format' => 'int32'], + 'SharedMemory' => ['type' => 'integer', 'format' => 'int32'], + 'PodCount' => ['type' => 'integer', 'format' => 'int32'], + 'GPUMemory' => ['type' => 'integer', 'format' => 'int32'], + 'GPUCorePercentage' => ['type' => 'integer', 'format' => 'int32'], + 'ExtraEphemeralStorage' => ['type' => 'integer', 'format' => 'int32'], + 'QuotaId' => ['type' => 'string'], + 'QuotaType' => ['type' => 'string'], ], ], - 'ResourceId' => [ - 'type' => 'string', - ], + 'ResourceId' => ['type' => 'string'], 'DataSources' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ - 'DatasetId' => [ - 'type' => 'string', - ], - 'Uri' => [ - 'type' => 'string', - ], - 'MountPath' => [ - 'type' => 'string', - ], + 'DatasetId' => ['type' => 'string'], + 'Uri' => ['type' => 'string'], + 'MountPath' => ['type' => 'string'], ], ], ], 'DataColumnMapping' => [ 'type' => 'object', - 'additionalProperties' => [ - 'type' => 'string', - ], + 'additionalProperties' => ['type' => 'string'], ], 'EvaluationConfigs' => [ 'type' => 'array', @@ -729,50 +200,28 @@ 'FlowSource' => [ 'type' => 'object', 'properties' => [ - 'Id' => [ - 'type' => 'string', - ], - 'Type' => [ - 'type' => 'string', - ], - 'Name' => [ - 'type' => 'string', - ], + 'Id' => ['type' => 'string'], + 'Type' => ['type' => 'string'], + 'Name' => ['type' => 'string'], ], ], 'DataColumnMapping' => [ 'type' => 'object', - 'additionalProperties' => [ - 'type' => 'string', - ], - ], - 'InputsOverrideConfig' => [ - 'type' => 'string', - ], - 'Name' => [ - 'type' => 'string', - ], - 'Type' => [ - 'type' => 'string', - ], - 'Inputs' => [ - 'type' => 'string', + 'additionalProperties' => ['type' => 'string'], ], + 'InputsOverrideConfig' => ['type' => 'string'], + 'Name' => ['type' => 'string'], + 'Type' => ['type' => 'string'], + 'Inputs' => ['type' => 'string'], ], ], ], 'UserVpc' => [ 'type' => 'object', 'properties' => [ - 'VpcId' => [ - 'type' => 'string', - ], - 'VSwitchId' => [ - 'type' => 'string', - ], - 'SecurityGroupId' => [ - 'type' => 'string', - ], + 'VpcId' => ['type' => 'string'], + 'VSwitchId' => ['type' => 'string'], + 'SecurityGroupId' => ['type' => 'string'], ], ], 'Envs' => [ @@ -780,12 +229,8 @@ 'items' => [ 'type' => 'object', 'properties' => [ - 'Key' => [ - 'type' => 'string', - ], - 'Value' => [ - 'type' => 'string', - ], + 'Key' => ['type' => 'string'], + 'Value' => ['type' => 'string'], ], ], ], @@ -794,49 +239,31 @@ 'items' => [ 'type' => 'object', 'properties' => [ - 'Key' => [ - 'type' => 'string', - ], - 'Value' => [ - 'type' => 'string', - ], + 'Key' => ['type' => 'string'], + 'Value' => ['type' => 'string'], ], ], ], 'CredentialConfig' => [ 'type' => 'object', 'properties' => [ - 'EnableCredentialInject' => [ - 'type' => 'boolean', - ], - 'AliyunEnvRoleKey' => [ - 'type' => 'string', - ], + 'EnableCredentialInject' => ['type' => 'boolean'], + 'AliyunEnvRoleKey' => ['type' => 'string'], 'CredentialConfigItems' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ - 'Key' => [ - 'type' => 'string', - ], - 'Type' => [ - 'type' => 'string', - ], + 'Key' => ['type' => 'string'], + 'Type' => ['type' => 'string'], 'Roles' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ - 'AssumeRoleFor' => [ - 'type' => 'string', - ], - 'RoleType' => [ - 'type' => 'string', - ], - 'RoleArn' => [ - 'type' => 'string', - ], + 'AssumeRoleFor' => ['type' => 'string'], + 'RoleType' => ['type' => 'string'], + 'RoleArn' => ['type' => 'string'], ], ], ], @@ -845,68 +272,36 @@ ], ], ], - 'RunTimeout' => [ - 'type' => 'integer', - 'format' => 'int32', - ], + 'RunTimeout' => ['type' => 'integer', 'format' => 'int32'], 'ChildRuns' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ - 'FlowRunId' => [ - 'type' => 'string', - ], - 'RunName' => [ - 'type' => 'string', - ], - 'RunMode' => [ - 'type' => 'string', - ], - 'RunStatus' => [ - 'type' => 'string', - ], - 'GmtCreateTime' => [ - 'type' => 'string', - ], - 'GmtModifiedTime' => [ - 'type' => 'string', - ], - 'GmtStartTime' => [ - 'type' => 'string', - ], - 'GmtFinishTime' => [ - 'type' => 'string', - ], - 'Duration' => [ - 'type' => 'integer', - 'format' => 'int32', - ], + 'FlowRunId' => ['type' => 'string'], + 'RunName' => ['type' => 'string'], + 'RunMode' => ['type' => 'string'], + 'RunStatus' => ['type' => 'string'], + 'GmtCreateTime' => ['type' => 'string'], + 'GmtModifiedTime' => ['type' => 'string'], + 'GmtStartTime' => ['type' => 'string'], + 'GmtFinishTime' => ['type' => 'string'], + 'Duration' => ['type' => 'integer', 'format' => 'int32'], 'FlowSource' => [ 'type' => 'object', 'properties' => [ - 'Id' => [ - 'type' => 'string', - ], - 'Type' => [ - 'type' => 'string', - ], - 'Name' => [ - 'type' => 'string', - ], + 'Id' => ['type' => 'string'], + 'Type' => ['type' => 'string'], + 'Name' => ['type' => 'string'], ], ], 'JobInfo' => [ 'type' => 'object', 'properties' => [ - 'JobId' => [ - 'type' => 'string', - ], + 'JobId' => ['type' => 'string'], ], ], - 'RunResult' => [ - 'type' => 'string', - ], + 'RunResult' => ['type' => 'string'], ], ], ], @@ -915,108 +310,52 @@ 'items' => [ 'type' => 'object', 'properties' => [ - 'NodeName' => [ - 'type' => 'string', - ], - 'Status' => [ - 'type' => 'string', - ], - 'Inputs' => [ - 'type' => 'string', - ], - 'Output' => [ - 'type' => 'string', - ], - 'ErrorMessage' => [ - 'type' => 'string', - ], - 'Duration' => [ - 'type' => 'string', - ], - 'Stdout' => [ - 'type' => 'string', - ], + 'NodeName' => ['type' => 'string'], + 'Status' => ['type' => 'string'], + 'Inputs' => ['type' => 'string'], + 'Output' => ['type' => 'string'], + 'ErrorMessage' => ['type' => 'string'], + 'Duration' => ['type' => 'string'], + 'Stdout' => ['type' => 'string'], ], ], ], - 'EvaluationWorkerCount' => [ - 'type' => 'integer', - 'format' => 'int32', - ], + 'EvaluationWorkerCount' => ['type' => 'integer', 'format' => 'int32'], ], ], 'FlowTemplate' => [ 'type' => 'object', 'properties' => [ - 'WorkspaceId' => [ - 'type' => 'string', - ], - 'Accessibility' => [ - 'type' => 'string', - ], - 'Description' => [ - 'type' => 'string', - ], - 'FlowStoragePath' => [ - 'type' => 'string', - ], - 'FlowTemplateId' => [ - 'type' => 'string', - ], - 'FlowType' => [ - 'type' => 'string', - ], - 'TemplateGroup' => [ - 'type' => 'string', - ], - 'TemplateName' => [ - 'type' => 'string', - ], - 'Url' => [ - 'type' => 'string', - ], - 'FlowFiles' => [ - 'type' => 'string', - ], - 'DisplayName' => [ - 'type' => 'string', - ], + 'WorkspaceId' => ['type' => 'string'], + 'Accessibility' => ['type' => 'string'], + 'Description' => ['type' => 'string'], + 'FlowStoragePath' => ['type' => 'string'], + 'FlowTemplateId' => ['type' => 'string'], + 'FlowType' => ['type' => 'string'], + 'TemplateGroup' => ['type' => 'string'], + 'TemplateName' => ['type' => 'string'], + 'Url' => ['type' => 'string'], + 'FlowFiles' => ['type' => 'string'], + 'DisplayName' => ['type' => 'string'], 'DisplayNameI18N' => [ 'type' => 'object', - 'additionalProperties' => [ - 'type' => 'string', - ], + 'additionalProperties' => ['type' => 'string'], ], 'DescriptionI18N' => [ 'type' => 'object', - 'additionalProperties' => [ - 'type' => 'string', - ], - ], - 'Version' => [ - 'type' => 'string', - ], - 'Locale' => [ - 'type' => 'string', - ], - 'ReferenceCount' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'AliyunDocumentId' => [ - 'type' => 'string', + 'additionalProperties' => ['type' => 'string'], ], + 'Version' => ['type' => 'string'], + 'Locale' => ['type' => 'string'], + 'ReferenceCount' => ['type' => 'integer', 'format' => 'int32'], + 'AliyunDocumentId' => ['type' => 'string'], 'Labels' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ - 'Key' => [ - 'type' => 'string', - ], - 'Value' => [ - 'type' => 'string', - ], + 'Key' => ['type' => 'string'], + 'Value' => ['type' => 'string'], ], ], ], @@ -1025,104 +364,53 @@ 'KnowledgeBase' => [ 'type' => 'object', 'properties' => [ - 'WorkspaceId' => [ - 'type' => 'string', - ], - 'Accessibility' => [ - 'type' => 'string', - ], - 'GmtCreateTime' => [ - 'type' => 'string', - ], - 'GmtModifiedTime' => [ - 'type' => 'string', - ], - 'Name' => [ - 'type' => 'string', - ], - 'KnowledgeBaseId' => [ - 'type' => 'string', - ], - 'Description' => [ - 'type' => 'string', - ], - 'KnowledgeBaseType' => [ - 'type' => 'string', - ], - 'DatasetId' => [ - 'type' => 'string', - ], + 'WorkspaceId' => ['type' => 'string'], + 'Accessibility' => ['type' => 'string'], + 'GmtCreateTime' => ['type' => 'string'], + 'GmtModifiedTime' => ['type' => 'string'], + 'Name' => ['type' => 'string'], + 'KnowledgeBaseId' => ['type' => 'string'], + 'Description' => ['type' => 'string'], + 'KnowledgeBaseType' => ['type' => 'string'], + 'DatasetId' => ['type' => 'string'], 'DataSources' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ - 'Uri' => [ - 'type' => 'string', - ], + 'Uri' => ['type' => 'string'], ], ], ], - 'OutputDir' => [ - 'type' => 'string', - ], + 'OutputDir' => ['type' => 'string'], 'ChunkConfig' => [ 'type' => 'object', 'properties' => [ - 'ChunkSize' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'ChunkOverlap' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'ChunkDuration' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'ChunkStrategy' => [ - 'type' => 'string', - ], + 'ChunkSize' => ['type' => 'integer', 'format' => 'int32'], + 'ChunkOverlap' => ['type' => 'integer', 'format' => 'int32'], + 'ChunkDuration' => ['type' => 'integer', 'format' => 'int32'], + 'ChunkStrategy' => ['type' => 'string'], ], ], 'EmbeddingConfig' => [ 'type' => 'object', 'properties' => [ - 'ConnectionName' => [ - 'type' => 'string', - ], - 'ConnectionId' => [ - 'type' => 'string', - ], - 'Model' => [ - 'type' => 'string', - ], + 'ConnectionName' => ['type' => 'string'], + 'ConnectionId' => ['type' => 'string'], + 'Model' => ['type' => 'string'], ], ], 'VectorDBConfig' => [ 'type' => 'object', 'properties' => [ - 'VectorDBType' => [ - 'type' => 'string', - ], - 'ConnectionName' => [ - 'type' => 'string', - ], - 'ConnectionId' => [ - 'type' => 'string', - ], - 'CollectionName' => [ - 'type' => 'string', - ], + 'VectorDBType' => ['type' => 'string'], + 'ConnectionName' => ['type' => 'string'], + 'ConnectionId' => ['type' => 'string'], + 'CollectionName' => ['type' => 'string'], ], ], - 'Creator' => [ - 'type' => 'string', - ], - 'RuntimeId' => [ - 'type' => 'string', - ], + 'Creator' => ['type' => 'string'], + 'RuntimeId' => ['type' => 'string'], 'MetaDataConfig' => [ 'type' => 'object', 'properties' => [ @@ -1131,20 +419,10 @@ 'items' => [ 'type' => 'object', 'properties' => [ - 'Key' => [ - 'type' => 'string', - ], - 'ValueType' => [ - 'type' => 'string', - ], - 'ReferenceCount' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'ValueCount' => [ - 'type' => 'integer', - 'format' => 'int32', - ], + 'Key' => ['type' => 'string'], + 'ValueType' => ['type' => 'string'], + 'ReferenceCount' => ['type' => 'integer', 'format' => 'int32'], + 'ValueCount' => ['type' => 'integer', 'format' => 'int32'], ], ], ], @@ -1153,79 +431,37 @@ 'AutoUpdateConfig' => [ 'type' => 'object', 'properties' => [ - 'Status' => [ - 'type' => 'string', - ], - 'ResourceId' => [ - 'type' => 'string', - ], - 'MaxRunningTimeInSeconds' => [ - 'type' => 'integer', - 'format' => 'int32', - ], + 'Status' => ['type' => 'string'], + 'ResourceId' => ['type' => 'string'], + 'MaxRunningTimeInSeconds' => ['type' => 'integer', 'format' => 'int32'], 'EmbeddingConfig' => [ 'type' => 'object', 'properties' => [ - 'BatchSize' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'Concurrency' => [ - 'type' => 'integer', - 'format' => 'int32', - 'minimum' => '1', - 'maximum' => '200', - ], + 'BatchSize' => ['type' => 'integer', 'format' => 'int32'], + 'Concurrency' => ['type' => 'integer', 'format' => 'int32', 'minimum' => '1', 'maximum' => '200'], ], ], - 'UserVpc' => [ - '$ref' => '#/components/schemas/UserVpc', - ], + 'UserVpc' => ['$ref' => '#/components/schemas/UserVpc'], 'EcsSpecs' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ - 'Type' => [ - 'type' => 'string', - ], - 'InstanceType' => [ - 'type' => 'string', - ], - 'PodCount' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'GPUType' => [ - 'type' => 'string', - ], - 'CPU' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'GPU' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'Memory' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'SharedMemory' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'Driver' => [ - 'type' => 'string', - ], + 'Type' => ['type' => 'string'], + 'InstanceType' => ['type' => 'string'], + 'PodCount' => ['type' => 'integer', 'format' => 'int32'], + 'GPUType' => ['type' => 'string'], + 'CPU' => ['type' => 'integer', 'format' => 'int32'], + 'GPU' => ['type' => 'integer', 'format' => 'int32'], + 'Memory' => ['type' => 'integer', 'format' => 'int32'], + 'SharedMemory' => ['type' => 'integer', 'format' => 'int32'], + 'Driver' => ['type' => 'string'], ], ], ], ], ], - 'VersionName' => [ - 'type' => 'string', - ], + 'VersionName' => ['type' => 'string'], 'IndexColumnConfig' => [ 'type' => 'object', 'properties' => [ @@ -1234,9 +470,7 @@ 'items' => [ 'type' => 'object', 'properties' => [ - 'Key' => [ - 'type' => 'string', - ], + 'Key' => ['type' => 'string'], ], ], ], @@ -1245,9 +479,7 @@ 'items' => [ 'type' => 'object', 'properties' => [ - 'Key' => [ - 'type' => 'string', - ], + 'Key' => ['type' => 'string'], ], ], ], @@ -1256,9 +488,7 @@ 'items' => [ 'type' => 'object', 'properties' => [ - 'Key' => [ - 'type' => 'string', - ], + 'Key' => ['type' => 'string'], ], ], ], @@ -1269,73 +499,34 @@ 'KnowledgeBaseFileChunk' => [ 'type' => 'object', 'properties' => [ - 'Score' => [ - 'type' => 'number', - 'format' => 'float', - ], - 'ChunkId' => [ - 'type' => 'string', - ], - 'ChunkStart' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'ChunkEnd' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'ChunkSequence' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'ChunkContent' => [ - 'type' => 'string', - ], - 'ChunkSize' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'ChunkStatus' => [ - 'type' => 'string', - ], - 'DownloadUrl' => [ - 'type' => 'string', - ], - 'ThumbnailUrl' => [ - 'type' => 'string', - ], + 'Score' => ['type' => 'number', 'format' => 'float'], + 'ChunkId' => ['type' => 'string'], + 'ChunkStart' => ['type' => 'integer', 'format' => 'int32'], + 'ChunkEnd' => ['type' => 'integer', 'format' => 'int32'], + 'ChunkSequence' => ['type' => 'integer', 'format' => 'int32'], + 'ChunkContent' => ['type' => 'string'], + 'ChunkSize' => ['type' => 'integer', 'format' => 'int32'], + 'ChunkStatus' => ['type' => 'string'], + 'DownloadUrl' => ['type' => 'string'], + 'ThumbnailUrl' => ['type' => 'string'], 'ChunkAttachment' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ - 'PlaceholderId' => [ - 'type' => 'string', - ], - 'Type' => [ - 'type' => 'string', - ], - 'Uri' => [ - 'type' => 'string', - ], - 'DownloadUrl' => [ - 'type' => 'string', - ], + 'PlaceholderId' => ['type' => 'string'], + 'Type' => ['type' => 'string'], + 'Uri' => ['type' => 'string'], + 'DownloadUrl' => ['type' => 'string'], ], ], ], 'MetaData' => [ 'type' => 'object', 'properties' => [ - 'FileName' => [ - 'type' => 'string', - ], - 'FileUri' => [ - 'type' => 'string', - ], - 'FileMetaId' => [ - 'type' => 'string', - ], + 'FileName' => ['type' => 'string'], + 'FileUri' => ['type' => 'string'], + 'FileMetaId' => ['type' => 'string'], ], ], ], @@ -1343,242 +534,64 @@ 'KnowledgeBaseJob' => [ 'type' => 'object', 'properties' => [ - 'WorkspaceId' => [ - 'type' => 'string', - ], - 'Accessibility' => [ - 'type' => 'string', - ], - 'Creator' => [ - 'type' => 'string', - ], - 'GmtCreateTime' => [ - 'type' => 'string', - ], - 'GmtModifiedTime' => [ - 'type' => 'string', - ], - 'KnowledgeBaseId' => [ - 'type' => 'string', - ], - 'KnowledgeBaseJobId' => [ - 'type' => 'string', - ], - 'JobAction' => [ - 'type' => 'string', - ], - 'Description' => [ - 'type' => 'string', - ], - 'Status' => [ - 'type' => 'string', - ], - 'ResourceId' => [ - 'type' => 'string', - ], + 'WorkspaceId' => ['type' => 'string'], + 'Accessibility' => ['type' => 'string'], + 'Creator' => ['type' => 'string'], + 'GmtCreateTime' => ['type' => 'string'], + 'GmtModifiedTime' => ['type' => 'string'], + 'KnowledgeBaseId' => ['type' => 'string'], + 'KnowledgeBaseJobId' => ['type' => 'string'], + 'JobAction' => ['type' => 'string'], + 'Description' => ['type' => 'string'], + 'Status' => ['type' => 'string'], + 'ResourceId' => ['type' => 'string'], 'EcsSpecs' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ - 'Type' => [ - 'type' => 'string', - ], - 'InstanceType' => [ - 'type' => 'string', - ], - 'PodCount' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'CPU' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'GPU' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'Memory' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'SharedMemory' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'GPUType' => [ - 'type' => 'string', - ], - 'Driver' => [ - 'type' => 'string', - ], + 'Type' => ['type' => 'string'], + 'InstanceType' => ['type' => 'string'], + 'PodCount' => ['type' => 'integer', 'format' => 'int32'], + 'CPU' => ['type' => 'integer', 'format' => 'int32'], + 'GPU' => ['type' => 'integer', 'format' => 'int32'], + 'Memory' => ['type' => 'integer', 'format' => 'int32'], + 'SharedMemory' => ['type' => 'integer', 'format' => 'int32'], + 'GPUType' => ['type' => 'string'], + 'Driver' => ['type' => 'string'], ], ], ], 'UserVpc' => [ 'type' => 'object', 'properties' => [ - 'VpcId' => [ - 'type' => 'string', - ], - 'VSwitchId' => [ - 'type' => 'string', - ], - 'SecurityGroupId' => [ - 'type' => 'string', - ], + 'VpcId' => ['type' => 'string'], + 'VSwitchId' => ['type' => 'string'], + 'SecurityGroupId' => ['type' => 'string'], ], ], - 'MaxRunningTimeInSeconds' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'GmtFinishTime' => [ - 'type' => 'string', - ], - 'ErrorMessage' => [ - 'type' => 'string', - ], + 'MaxRunningTimeInSeconds' => ['type' => 'integer', 'format' => 'int32'], + 'GmtFinishTime' => ['type' => 'string'], + 'ErrorMessage' => ['type' => 'string'], 'PipelineRunInfo' => [ 'type' => 'object', 'properties' => [ - 'PipelineRunId' => [ - 'type' => 'string', - ], + 'PipelineRunId' => ['type' => 'string'], ], ], 'KnowledgeBaseJobResult' => [ 'type' => 'object', 'properties' => [ - 'TotalFileCount' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'AddChunkCount' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'DeleteChunkCount' => [ - 'type' => 'integer', - 'format' => 'int32', - ], + 'TotalFileCount' => ['type' => 'integer', 'format' => 'int32'], + 'AddChunkCount' => ['type' => 'integer', 'format' => 'int32'], + 'DeleteChunkCount' => ['type' => 'integer', 'format' => 'int32'], ], ], 'EmbeddingConfig' => [ 'type' => 'object', 'properties' => [ - 'BatchSize' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'Concurrency' => [ - 'type' => 'integer', - 'format' => 'int32', - 'minimum' => '1', - 'maximum' => '200', - ], - ], - ], - ], - ], - 'KnowledgeBaseMeta' => [ - 'type' => 'object', - 'properties' => [ - 'FileMetaId' => [ - 'type' => 'string', - ], - 'FileName' => [ - 'type' => 'string', - ], - 'FileUri' => [ - 'type' => 'string', - ], - 'FileCreateTime' => [ - 'type' => 'string', - ], - 'FileUpdateTime' => [ - 'type' => 'string', - ], - 'FileSize' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'FileType' => [ - 'type' => 'string', - ], - 'FileContentType' => [ - 'type' => 'string', - ], - 'FileStatus' => [ - 'type' => 'string', - ], - 'FileMetaData' => [ - 'type' => 'string', - ], - 'ChunkId' => [ - 'type' => 'string', - ], - 'ChunkStart' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'ChunkEnd' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'ChunkSequence' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'ChunkContent' => [ - 'type' => 'string', - ], - 'ChunkSize' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'ChunkStatus' => [ - 'type' => 'string', - ], - 'DownloadUrl' => [ - 'type' => 'string', - ], - 'ThumbnailUrl' => [ - 'type' => 'string', - ], - 'ChunkAttachment' => [ - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'PlaceholderId' => [ - 'type' => 'string', - ], - 'Type' => [ - 'type' => 'string', - ], - 'Uri' => [ - 'type' => 'string', - ], - 'DownloadUrl' => [ - 'type' => 'string', - ], - ], - ], - ], - 'MetaData' => [ - 'type' => 'object', - 'properties' => [ - 'FileName' => [ - 'type' => 'string', - ], - 'FileUri' => [ - 'type' => 'string', - ], - 'FileMetaId' => [ - 'type' => 'string', - ], + 'BatchSize' => ['type' => 'integer', 'format' => 'int32'], + 'Concurrency' => ['type' => 'integer', 'format' => 'int32', 'minimum' => '1', 'maximum' => '200'], ], ], ], @@ -1586,112 +599,38 @@ 'Runtime' => [ 'type' => 'object', 'properties' => [ - 'WorkspaceId' => [ - 'type' => 'string', - ], - 'RuntimeId' => [ - 'type' => 'string', - ], - 'RuntimeName' => [ - 'type' => 'string', - ], - 'RuntimeType' => [ - 'type' => 'string', - ], - 'RuntimeStatus' => [ - 'type' => 'string', - ], - 'IdleTimeout' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'GmtCreateTime' => [ - 'type' => 'string', - ], - 'GmtModifiedTime' => [ - 'type' => 'string', - ], - 'Creator' => [ - 'type' => 'string', - ], - 'Accessibility' => [ - 'type' => 'string', - ], - 'FlowId' => [ - 'type' => 'string', - ], + 'WorkspaceId' => ['type' => 'string'], + 'RuntimeId' => ['type' => 'string'], + 'RuntimeName' => ['type' => 'string'], + 'RuntimeType' => ['type' => 'string'], + 'RuntimeStatus' => ['type' => 'string'], + 'GmtCreateTime' => ['type' => 'string'], + 'GmtModifiedTime' => ['type' => 'string'], + 'Creator' => ['type' => 'string'], + 'Accessibility' => ['type' => 'string'], 'EcsSpec' => [ 'type' => 'object', 'properties' => [ - 'InstanceType' => [ - 'type' => 'string', - ], - 'GPUType' => [ - 'type' => 'string', - ], - 'CPU' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'GPU' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'Memory' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'SharedMemory' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'PodCount' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'GPUMemory' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'GPUCorePercentage' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'ExtraEphemeralStorage' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - 'QuotaId' => [ - 'type' => 'string', - ], - 'QuotaType' => [ - 'type' => 'string', - ], + 'InstanceType' => ['type' => 'string'], + 'GPUType' => ['type' => 'string'], + 'CPU' => ['type' => 'integer', 'format' => 'int32'], + 'GPU' => ['type' => 'integer', 'format' => 'int32'], + 'Memory' => ['type' => 'integer', 'format' => 'int32'], + 'SharedMemory' => ['type' => 'integer', 'format' => 'int32'], + 'Driver' => ['type' => 'string'], ], ], - 'ResourceId' => [ - 'type' => 'string', - ], + 'ResourceId' => ['type' => 'string'], 'UserVpc' => [ 'type' => 'object', 'properties' => [ - 'VpcId' => [ - 'type' => 'string', - ], - 'VSwitchId' => [ - 'type' => 'string', - ], - 'SecurityGroupId' => [ - 'type' => 'string', - ], - 'DefaultRoute' => [ - 'type' => 'string', - ], + 'VpcId' => ['type' => 'string'], + 'VSwitchId' => ['type' => 'string'], + 'SecurityGroupId' => ['type' => 'string'], + 'DefaultRoute' => ['type' => 'string'], 'ExtendedCIDRs' => [ 'type' => 'array', - 'items' => [ - 'type' => 'string', - ], + 'items' => ['type' => 'string'], ], ], ], @@ -1700,12 +639,8 @@ 'items' => [ 'type' => 'object', 'properties' => [ - 'Key' => [ - 'type' => 'string', - ], - 'Value' => [ - 'type' => 'string', - ], + 'Key' => ['type' => 'string'], + 'Value' => ['type' => 'string'], ], ], ], @@ -1714,12 +649,8 @@ 'items' => [ 'type' => 'object', 'properties' => [ - 'Key' => [ - 'type' => 'string', - ], - 'Value' => [ - 'type' => 'string', - ], + 'Key' => ['type' => 'string'], + 'Value' => ['type' => 'string'], ], ], ], @@ -1728,56 +659,33 @@ 'items' => [ 'type' => 'object', 'properties' => [ - 'DatasetId' => [ - 'type' => 'string', - ], - 'Uri' => [ - 'type' => 'string', - ], - 'MountPath' => [ - 'type' => 'string', - ], + 'DatasetId' => ['type' => 'string'], + 'Uri' => ['type' => 'string'], + 'MountPath' => ['type' => 'string'], ], ], ], - 'RunTimeout' => [ - 'type' => 'integer', - 'format' => 'int32', - ], + 'RunTimeout' => ['type' => 'integer', 'format' => 'int32'], 'CredentialConfig' => [ 'type' => 'object', 'properties' => [ - 'EnableCredentialInject' => [ - 'type' => 'boolean', - ], - 'AliyunEnvRoleKey' => [ - 'type' => 'string', - ], + 'EnableCredentialInject' => ['type' => 'boolean'], + 'AliyunEnvRoleKey' => ['type' => 'string'], 'CredentialConfigItems' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ - 'Key' => [ - 'type' => 'string', - ], - 'Type' => [ - 'type' => 'string', - ], + 'Key' => ['type' => 'string'], + 'Type' => ['type' => 'string'], 'Roles' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ - 'AssumeRoleFor' => [ - 'type' => 'string', - ], - 'RoleType' => [ - 'type' => 'string', - ], - 'RoleArn' => [ - 'type' => 'string', - ], + 'AssumeRoleFor' => ['type' => 'string'], + 'RoleType' => ['type' => 'string'], + 'RoleArn' => ['type' => 'string'], ], ], ], @@ -1786,161 +694,55 @@ ], ], ], - 'SupportSSEStream' => [ - 'type' => 'boolean', - ], - 'WorkDir' => [ - 'type' => 'string', - ], - 'Flows' => [ - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'FlowId' => [ - 'type' => 'string', - ], - 'FlowName' => [ - 'type' => 'string', - ], - ], - ], - ], - 'Version' => [ - 'type' => 'string', - ], - 'LatestVersion' => [ - 'type' => 'string', - ], - 'MCPConfig' => [ - 'type' => 'string', - ], - 'RuntimeLog' => [ - 'type' => 'string', - ], + 'WorkDir' => ['type' => 'string'], + 'Version' => ['type' => 'string'], + 'RuntimeLog' => ['type' => 'string'], + 'AutoUpdateImage' => ['type' => 'boolean'], ], ], 'Snapshot' => [ 'type' => 'object', 'properties' => [ - 'WorkspaceId' => [ - 'type' => 'string', - ], - 'Accessibility' => [ - 'type' => 'string', - ], - 'Creator' => [ - 'type' => 'string', - ], - 'GmtCreateTime' => [ - 'type' => 'string', - ], - 'GmtModifiedTime' => [ - 'type' => 'string', - ], - 'SnapshotId' => [ - 'type' => 'string', - ], - 'SnapshotName' => [ - 'type' => 'string', - ], - 'Description' => [ - 'type' => 'string', - ], - 'SnapshotResourceType' => [ - 'type' => 'string', - ], - 'SnapshotResourceId' => [ - 'type' => 'string', - ], - 'CreationType' => [ - 'type' => 'string', - ], - 'SnapshotStoragePath' => [ - 'type' => 'string', - ], - 'WorkDir' => [ - 'type' => 'string', - ], - 'SnapshotUrl' => [ - 'type' => 'string', - ], - ], - ], - 'Toolset' => [ - 'type' => 'object', - 'properties' => [ - 'WorkspaceId' => [ - 'type' => 'string', - ], - 'Accessibility' => [ - 'type' => 'string', - ], - 'Creator' => [ - 'type' => 'string', - ], - 'GmtCreateTime' => [ - 'type' => 'string', - ], - 'GmtModifiedTime' => [ - 'type' => 'string', - ], - 'ToolsetId' => [ - 'type' => 'string', - ], - 'ToolsetName' => [ - 'type' => 'string', - ], - 'ToolsetType' => [ - 'type' => 'string', - ], - 'ToolsetConfig' => [ - 'type' => 'string', - ], - 'Description' => [ - 'type' => 'string', - ], - 'Tools' => [ - 'type' => 'string', - ], + 'WorkspaceId' => ['type' => 'string'], + 'Accessibility' => ['type' => 'string'], + 'Creator' => ['type' => 'string'], + 'GmtCreateTime' => ['type' => 'string'], + 'GmtModifiedTime' => ['type' => 'string'], + 'SnapshotId' => ['type' => 'string'], + 'SnapshotName' => ['type' => 'string'], + 'Description' => ['type' => 'string'], + 'SnapshotResourceType' => ['type' => 'string'], + 'SnapshotResourceId' => ['type' => 'string'], + 'CreationType' => ['type' => 'string'], + 'SnapshotStoragePath' => ['type' => 'string'], + 'WorkDir' => ['type' => 'string'], + 'SnapshotUrl' => ['type' => 'string'], + 'SnapshotStatus' => ['type' => 'string'], + 'ErrorMessage' => ['type' => 'string'], ], ], 'UserVpc' => [ 'type' => 'object', 'properties' => [ - 'VpcId' => [ - 'type' => 'string', - ], - 'VSwitchId' => [ - 'type' => 'string', - ], - 'SecurityGroupId' => [ - 'type' => 'string', - ], + 'VpcId' => ['type' => 'string'], + 'VSwitchId' => ['type' => 'string'], + 'SecurityGroupId' => ['type' => 'string'], ], ], ], ], 'apis' => [ - 'CreateKnowledgeBase' => [ - 'path' => '/api/v1/langstudio/knowledgebases', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'CreateDeployment' => [ + 'path' => '/api/v1/langstudio/deployments', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'parameters' => [ [ 'name' => 'body', @@ -1950,34 +752,77 @@ 'type' => 'object', 'required' => false, 'properties' => [ - 'WorkspaceId' => [ - 'type' => 'string', - 'required' => true, - ], + 'WorkspaceId' => ['type' => 'string', 'required' => false], 'Accessibility' => [ 'type' => 'string', 'required' => false, - 'enum' => [ - 'PUBLIC', - 'PRIVATE', + 'enum' => ['PUBLIC', 'PRIVATE'], + ], + 'ResourceType' => ['type' => 'string', 'required' => false], + 'ResourceId' => ['type' => 'string', 'required' => false], + 'ResourceSnapshotId' => ['type' => 'string', 'required' => false], + 'ServiceName' => ['type' => 'string', 'required' => false], + 'Description' => ['type' => 'string', 'required' => false], + 'EnableTrace' => ['type' => 'boolean', 'required' => false], + 'ChatHistoryConfig' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'StorageType' => [ + 'type' => 'string', + 'required' => false, + 'enum' => ['LOCAL', 'RDS', 'OSS'], + ], + 'ConnectionName' => ['type' => 'string', 'required' => false], ], ], - 'Name' => [ - 'type' => 'string', - 'required' => true, - ], - 'Description' => [ - 'type' => 'string', + 'WorkDir' => ['type' => 'string', 'required' => false], + 'ContentModerationConfig' => [ + 'type' => 'object', 'required' => false, + 'properties' => [ + 'EnableInputModeration' => ['type' => 'boolean', 'required' => false], + 'EnableOutputModeration' => ['type' => 'boolean', 'required' => false], + 'StreamingModerationThreshold' => ['type' => 'integer', 'format' => 'int32', 'required' => false], + ], ], - 'KnowledgeBaseType' => [ - 'type' => 'string', - 'required' => true, - ], - 'OutputDir' => [ + 'DeploymentConfig' => ['type' => 'string', 'required' => false], + 'AutoApproval' => ['type' => 'boolean', 'required' => false], + ], + ], + ], + ], + ], + 'CreateKnowledgeBase' => [ + 'path' => '/api/v1/langstudio/knowledgebases', + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'parameters' => [ + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'WorkspaceId' => ['type' => 'string', 'required' => true], + 'Accessibility' => [ 'type' => 'string', - 'required' => true, + 'required' => false, + 'enum' => ['PUBLIC', 'PRIVATE'], ], + 'Name' => ['type' => 'string', 'required' => true], + 'Description' => ['type' => 'string', 'required' => false], + 'KnowledgeBaseType' => ['type' => 'string', 'required' => true], + 'OutputDir' => ['type' => 'string', 'required' => true], 'DataSources' => [ 'type' => 'array', 'required' => true, @@ -1985,10 +830,7 @@ 'type' => 'object', 'required' => false, 'properties' => [ - 'Uri' => [ - 'type' => 'string', - 'required' => false, - ], + 'Uri' => ['type' => 'string', 'required' => false], ], ], ], @@ -1996,63 +838,30 @@ 'type' => 'object', 'required' => true, 'properties' => [ - 'ChunkSize' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - ], - 'ChunkOverlap' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - ], - 'ChunkDuration' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - ], - 'ChunkStrategy' => [ - 'type' => 'string', - 'required' => false, - ], + 'ChunkSize' => ['type' => 'integer', 'format' => 'int32', 'required' => false], + 'ChunkOverlap' => ['type' => 'integer', 'format' => 'int32', 'required' => false], + 'ChunkDuration' => ['type' => 'integer', 'format' => 'int32', 'required' => false], + 'ChunkStrategy' => ['type' => 'string', 'required' => false], ], ], 'EmbeddingConfig' => [ 'type' => 'object', 'required' => true, 'properties' => [ - 'ConnectionId' => [ - 'type' => 'string', - 'required' => true, - ], - 'Model' => [ - 'type' => 'string', - 'required' => true, - ], + 'ConnectionId' => ['type' => 'string', 'required' => true], + 'Model' => ['type' => 'string', 'required' => true], ], ], 'VectorDBConfig' => [ 'type' => 'object', 'required' => true, 'properties' => [ - 'VectorDBType' => [ - 'type' => 'string', - 'required' => true, - ], - 'ConnectionId' => [ - 'type' => 'string', - 'required' => false, - ], - 'CollectionName' => [ - 'type' => 'string', - 'required' => false, - ], + 'VectorDBType' => ['type' => 'string', 'required' => true], + 'ConnectionId' => ['type' => 'string', 'required' => false], + 'CollectionName' => ['type' => 'string', 'required' => false], ], ], - 'RuntimeId' => [ - 'type' => 'string', - 'required' => false, - ], + 'RuntimeId' => ['type' => 'string', 'required' => false], 'MetaDataConfig' => [ 'type' => 'object', 'required' => false, @@ -2064,14 +873,8 @@ 'type' => 'object', 'required' => false, 'properties' => [ - 'Key' => [ - 'type' => 'string', - 'required' => false, - ], - 'ValueType' => [ - 'type' => 'string', - 'required' => false, - ], + 'Key' => ['type' => 'string', 'required' => false], + 'ValueType' => ['type' => 'string', 'required' => false], ], ], ], @@ -2088,10 +891,7 @@ 'type' => 'object', 'required' => false, 'properties' => [ - 'Key' => [ - 'type' => 'string', - 'required' => false, - ], + 'Key' => ['type' => 'string', 'required' => false], ], ], ], @@ -2102,10 +902,7 @@ 'type' => 'object', 'required' => false, 'properties' => [ - 'Key' => [ - 'type' => 'string', - 'required' => false, - ], + 'Key' => ['type' => 'string', 'required' => false], ], ], ], @@ -2116,10 +913,7 @@ 'type' => 'object', 'required' => false, 'properties' => [ - 'Key' => [ - 'type' => 'string', - 'required' => false, - ], + 'Key' => ['type' => 'string', 'required' => false], ], ], ], @@ -2130,81 +924,95 @@ ], ], ], - 'GetKnowledgeBase' => [ - 'path' => '/api/v1/langstudio/knowledgebases/{KnowledgeBaseId}', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'https', - ], + 'CreateKnowledgeBaseJob' => [ + 'path' => '/api/v1/langstudio/knowledgebases/{KnowledgeBaseId}/knowledgebasejobs', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'parameters' => [ [ - 'name' => 'WorkspaceId', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], - ], - [ 'name' => 'KnowledgeBaseId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'VersionName', - 'in' => 'query', + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', 'schema' => [ - 'type' => 'string', + 'type' => 'object', 'required' => false, + 'properties' => [ + 'WorkspaceId' => ['type' => 'string', 'required' => true], + 'Accessibility' => [ + 'type' => 'string', + 'required' => false, + 'enum' => ['PUBLIC', 'PRIVATE'], + ], + 'Description' => ['type' => 'string', 'required' => false], + 'JobAction' => ['type' => 'string', 'required' => false], + 'MaxRunningTimeInSeconds' => ['type' => 'integer', 'format' => 'int32', 'required' => false], + 'ResourceId' => ['type' => 'string', 'required' => false], + 'EcsSpecs' => [ + 'type' => 'array', + 'required' => false, + 'items' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'Type' => ['type' => 'string', 'required' => false], + 'InstanceType' => ['type' => 'string', 'required' => false], + 'PodCount' => ['type' => 'integer', 'format' => 'int32', 'required' => false], + 'CPU' => ['type' => 'integer', 'format' => 'int32', 'required' => false], + 'GPU' => ['type' => 'integer', 'format' => 'int32', 'required' => false], + 'Memory' => ['type' => 'integer', 'format' => 'int32', 'required' => false], + 'SharedMemory' => ['type' => 'integer', 'format' => 'int32', 'required' => false], + 'GPUType' => ['type' => 'string', 'required' => false], + 'Driver' => ['type' => 'string', 'required' => false], + ], + ], + ], + 'UserVpc' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'VpcId' => ['type' => 'string', 'required' => false], + 'VSwitchId' => ['type' => 'string', 'required' => false], + 'SecurityGroupId' => ['type' => 'string', 'required' => false], + ], + ], + 'EmbeddingConfig' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'BatchSize' => ['type' => 'integer', 'format' => 'int32', 'required' => false], + 'Concurrency' => ['type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '1', 'maximum' => '200'], + ], + ], + ], ], ], ], ], - 'UpdateKnowledgeBase' => [ - 'path' => '/api/v1/langstudio/knowledgebases/{KnowledgeBaseId}', - 'methods' => [ - 'put', - ], - 'schemes' => [ - 'https', - ], + 'CreateRuntime' => [ + 'path' => '/api/v1/langstudio/runtimes', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'parameters' => [ [ - 'name' => 'KnowledgeBaseId', - 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], - ], - [ 'name' => 'body', 'in' => 'body', 'style' => 'json', @@ -2212,832 +1020,983 @@ 'type' => 'object', 'required' => false, 'properties' => [ - 'WorkspaceId' => [ - 'type' => 'string', - 'required' => true, - ], - 'Description' => [ + 'Accessibility' => [ 'type' => 'string', 'required' => false, + 'enum' => ['PUBLIC', 'PRIVATE'], ], - 'RuntimeId' => [ + 'WorkspaceId' => ['type' => 'string', 'required' => false], + 'RuntimeName' => ['type' => 'string', 'required' => false], + 'RuntimeType' => [ 'type' => 'string', 'required' => false, + 'enum' => ['DSW'], ], - 'BindRuntime' => [ - 'type' => 'boolean', + 'EcsSpec' => [ + 'type' => 'object', 'required' => false, + 'properties' => [ + 'InstanceType' => ['type' => 'string', 'required' => false], + 'GPUType' => ['type' => 'string', 'required' => false], + 'CPU' => ['type' => 'integer', 'format' => 'int32', 'required' => false], + 'GPU' => ['type' => 'integer', 'format' => 'int32', 'required' => false], + 'Memory' => ['type' => 'integer', 'format' => 'int32', 'required' => false], + 'SharedMemory' => ['type' => 'integer', 'format' => 'int32', 'required' => false], + 'Driver' => ['type' => 'string', 'required' => false], + ], ], - 'MetaDataConfig' => [ + 'ResourceId' => ['type' => 'string', 'required' => false], + 'UserVpc' => [ 'type' => 'object', 'required' => false, 'properties' => [ - 'CustomMetaData' => [ + 'VpcId' => ['type' => 'string', 'required' => false], + 'VSwitchId' => ['type' => 'string', 'required' => false], + 'SecurityGroupId' => ['type' => 'string', 'required' => false], + 'DefaultRoute' => ['type' => 'string', 'required' => false], + 'ExtendedCIDRs' => [ 'type' => 'array', 'required' => false, - 'items' => [ - 'type' => 'object', - 'required' => false, - 'properties' => [ - 'Key' => [ - 'type' => 'string', - 'required' => false, - ], - 'ValueType' => [ - 'type' => 'string', - 'required' => false, - ], - ], - ], + 'items' => ['type' => 'string', 'required' => false], ], ], ], - 'AutoUpdateConfig' => [ - 'type' => 'object', + 'Envs' => [ + 'type' => 'array', 'required' => false, - 'properties' => [ - 'Status' => [ - 'type' => 'string', - 'required' => false, - ], - 'ResourceId' => [ - 'type' => 'string', - 'required' => false, - ], - 'MaxRunningTimeInSeconds' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, + 'items' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'Key' => ['type' => 'string', 'required' => false], + 'Value' => ['type' => 'string', 'required' => false], ], - 'EmbeddingConfig' => [ - 'type' => 'object', - 'required' => false, - 'properties' => [ - 'BatchSize' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - ], - 'Concurrency' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'minimum' => '1', - 'maximum' => '200', - ], - ], + ], + ], + 'Labels' => [ + 'type' => 'array', + 'required' => false, + 'items' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'Key' => ['type' => 'string', 'required' => false], + 'Value' => ['type' => 'string', 'required' => false], ], - 'UserVpc' => [ - '$ref' => '#/components/schemas/UserVpc', - 'required' => false, + ], + ], + 'DataSources' => [ + 'type' => 'array', + 'required' => false, + 'items' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'DatasetId' => ['type' => 'string', 'required' => false], + 'Uri' => ['type' => 'string', 'required' => false], + 'MountPath' => ['type' => 'string', 'required' => false], ], - 'EcsSpecs' => [ + ], + ], + 'CredentialConfig' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'EnableCredentialInject' => ['type' => 'boolean', 'required' => false], + 'AliyunEnvRoleKey' => ['type' => 'string', 'required' => false], + 'CredentialConfigItems' => [ 'type' => 'array', 'required' => false, 'items' => [ 'type' => 'object', 'required' => false, 'properties' => [ - 'Type' => [ - 'type' => 'string', - 'required' => false, - ], - 'InstanceType' => [ - 'type' => 'string', - 'required' => false, - ], - 'PodCount' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - ], - 'GPUType' => [ - 'type' => 'string', - 'required' => false, - ], - 'CPU' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - ], - 'GPU' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - ], - 'Memory' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - ], - 'SharedMemory' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - ], - 'Driver' => [ - 'type' => 'string', + 'Key' => ['type' => 'string', 'required' => false], + 'Type' => ['type' => 'string', 'required' => false], + 'Roles' => [ + 'type' => 'array', 'required' => false, + 'items' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'AssumeRoleFor' => ['type' => 'string', 'required' => false], + 'RoleType' => ['type' => 'string', 'required' => false], + 'RoleArn' => ['type' => 'string', 'required' => false], + ], + ], ], ], ], ], ], ], + 'RunTimeout' => ['type' => 'integer', 'format' => 'int32', 'required' => false], + 'WorkDir' => ['type' => 'string', 'required' => false], + 'AutoUpdateImage' => ['type' => 'boolean'], ], ], ], ], ], - 'DeleteKnowledgeBase' => [ - 'path' => '/api/v1/langstudio/knowledgebases/{KnowledgeBaseId}', - 'methods' => [ - 'delete', - ], - 'schemes' => [ - 'https', - ], + 'CreateSnapshot' => [ + 'path' => '/api/v1/langstudio/snapshots', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'parameters' => [ + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'Accessibility' => [ + 'type' => 'string', + 'required' => false, + 'enum' => ['PUBLIC', 'PRIVATE'], + ], + 'CreationType' => [ + 'type' => 'string', + 'required' => false, + 'enum' => ['ManualCreated', 'DeploymentAutoCreated', 'EvaluationAutoCreated'], + ], + 'SnapshotName' => ['type' => 'string', 'required' => false], + 'Description' => ['type' => 'string', 'required' => false], + 'WorkDir' => ['type' => 'string', 'required' => false], + 'WorkspaceId' => ['type' => 'string', 'required' => false], + 'SnapshotResourceType' => [ + 'type' => 'string', + 'required' => false, + 'enum' => ['Flow'], + ], + 'SnapshotResourceId' => ['type' => 'string', 'required' => false], + 'SourceStoragePath' => ['type' => 'string', 'required' => false], + ], + ], + ], ], - 'produces' => [ - 'application/json', + ], + 'DeleteDeployment' => [ + 'path' => '/api/v1/langstudio/deployments/{DeploymentId}', + 'methods' => ['delete'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'parameters' => [ [ 'name' => 'WorkspaceId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'KnowledgeBaseId', + 'name' => 'DeploymentId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => false], ], ], ], - 'ListKnowledgeBases' => [ - 'path' => '/api/v1/langstudio/knowledgebases', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'https', - ], + 'DeleteKnowledgeBase' => [ + 'path' => '/api/v1/langstudio/knowledgebases/{KnowledgeBaseId}', + 'methods' => ['delete'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'parameters' => [ [ 'name' => 'WorkspaceId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'Name', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'name' => 'KnowledgeBaseId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], ], + ], + ], + 'DeleteKnowledgeBaseJob' => [ + 'path' => '/api/v1/langstudio/knowledgebases/{KnowledgeBaseId}/knowledgebasejobs/{KnowledgeBaseJobId}', + 'methods' => ['delete'], + 'schemes' => ['https'], + 'security' => [ [ - 'name' => 'KnowledgeBaseId', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'AK' => [], ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'parameters' => [ [ - 'name' => 'NextToken', + 'name' => 'WorkspaceId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'MaxResults', - 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - ], + 'name' => 'KnowledgeBaseId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'SortBy', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'name' => 'KnowledgeBaseJobId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], ], + ], + ], + 'DeleteRuntime' => [ + 'path' => '/api/v1/langstudio/runtimes/{RuntimeId}', + 'methods' => ['delete'], + 'schemes' => ['https'], + 'security' => [ [ - 'name' => 'Order', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'AK' => [], ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'parameters' => [ [ - 'name' => 'PageNumber', + 'name' => 'WorkspaceId', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'PageSize', - 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - ], + 'name' => 'RuntimeId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => false], ], + ], + ], + 'DeleteSnapshot' => [ + 'path' => '/api/v1/langstudio/snapshots/{SnapshotId}', + 'methods' => ['delete'], + 'schemes' => ['https'], + 'security' => [ [ - 'name' => 'Creator', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'AK' => [], ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'parameters' => [ [ - 'name' => 'KnowledgeBaseType', + 'name' => 'WorkspaceId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'SnapshotId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => false], ], ], ], - 'RetrieveKnowledgeBase' => [ - 'path' => '/api/v1/langstudio/knowledgebases/{KnowledgeBaseId}/action/retrieve', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'GetDeployment' => [ + 'path' => '/api/v1/langstudio/deployments/{DeploymentId}', + 'methods' => ['get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'parameters' => [ [ - 'name' => 'KnowledgeBaseId', - 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'name' => 'WorkspaceId', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'body', - 'in' => 'body', - 'style' => 'json', - 'schema' => [ - 'type' => 'object', - 'required' => false, - 'properties' => [ - 'WorkspaceId' => [ - 'type' => 'string', - 'required' => true, - ], - 'Query' => [ - 'type' => 'string', - 'required' => true, - ], - 'TopK' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - ], - 'ScoreThreshold' => [ - 'type' => 'number', - 'format' => 'float', - 'required' => false, - ], - 'MetaDataFilterConditions' => [ - 'type' => 'string', - 'required' => false, - ], - 'QueryMode' => [ - 'type' => 'string', - 'required' => false, - ], - 'VersionName' => [ - 'type' => 'string', - 'required' => false, - ], - 'RerankConfig' => [ - 'type' => 'string', - 'required' => false, - ], - 'RewriteConfig' => [ - 'type' => 'string', - 'required' => false, - ], - 'HybridStrategyConfig' => [ - 'type' => 'string', - 'required' => false, - ], - ], - ], + 'name' => 'DeploymentId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => false], ], ], ], - 'CreateKnowledgeBaseJob' => [ - 'path' => '/api/v1/langstudio/knowledgebases/{KnowledgeBaseId}/knowledgebasejobs', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'GetKnowledgeBase' => [ + 'path' => '/api/v1/langstudio/knowledgebases/{KnowledgeBaseId}', + 'methods' => ['get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'parameters' => [ [ + 'name' => 'WorkspaceId', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ 'name' => 'KnowledgeBaseId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'body', - 'in' => 'body', - 'style' => 'json', - 'schema' => [ - 'type' => 'object', - 'required' => false, - 'properties' => [ - 'WorkspaceId' => [ - 'type' => 'string', - 'required' => true, - ], - 'Accessibility' => [ - 'type' => 'string', - 'required' => false, - 'enum' => [ - 'PUBLIC', - 'PRIVATE', - ], - ], - 'Description' => [ - 'type' => 'string', - 'required' => false, - ], - 'JobAction' => [ - 'type' => 'string', - 'required' => false, - ], - 'MaxRunningTimeInSeconds' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - ], - 'ResourceId' => [ - 'type' => 'string', - 'required' => false, - ], - 'EcsSpecs' => [ - 'type' => 'array', - 'required' => false, - 'items' => [ - 'type' => 'object', - 'required' => false, - 'properties' => [ - 'Type' => [ - 'type' => 'string', - 'required' => false, - ], - 'InstanceType' => [ - 'type' => 'string', - 'required' => false, - ], - 'PodCount' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - ], - 'CPU' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - ], - 'GPU' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - ], - 'Memory' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - ], - 'SharedMemory' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - ], - 'GPUType' => [ - 'type' => 'string', - 'required' => false, - ], - 'Driver' => [ - 'type' => 'string', - 'required' => false, - ], - ], - ], - ], - 'UserVpc' => [ - 'type' => 'object', - 'required' => false, - 'properties' => [ - 'VpcId' => [ - 'type' => 'string', - 'required' => false, - ], - 'VSwitchId' => [ - 'type' => 'string', - 'required' => false, - ], - 'SecurityGroupId' => [ - 'type' => 'string', - 'required' => false, - ], - ], - ], - 'EmbeddingConfig' => [ - 'type' => 'object', - 'required' => false, - 'properties' => [ - 'BatchSize' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - ], - 'Concurrency' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'minimum' => '1', - 'maximum' => '200', - ], - ], - ], - ], - ], + 'name' => 'VersionName', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], ], ], ], 'GetKnowledgeBaseJob' => [ 'path' => '/api/v1/langstudio/knowledgebases/{KnowledgeBaseId}/knowledgebasejobs/{KnowledgeBaseJobId}', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'parameters' => [ [ 'name' => 'WorkspaceId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'KnowledgeBaseId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'KnowledgeBaseJobId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], ], ], - 'UpdateKnowledgeBaseJob' => [ - 'path' => '/api/v1/langstudio/knowledgebases/{KnowledgeBaseId}/knowledgebasejobs/{KnowledgeBaseJobId}', - 'methods' => [ - 'put', + 'GetRuntime' => [ + 'path' => '/api/v1/langstudio/runtimes/{RuntimeId}', + 'methods' => ['get'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], ], - 'schemes' => [ - 'https', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'parameters' => [ + [ + 'name' => 'WorkspaceId', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'RuntimeId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => false], + ], ], + ], + 'GetSnapshot' => [ + 'path' => '/api/v1/langstudio/snapshots/{SnapshotId}', + 'methods' => ['get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'parameters' => [ + [ + 'name' => 'WorkspaceId', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'SnapshotId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => false], + ], ], - 'produces' => [ - 'application/json', + ], + 'ListDeployments' => [ + 'path' => '/api/v1/langstudio/deployments', + 'methods' => ['get'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'parameters' => [ + [ + 'name' => 'WorkspaceId', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'NextToken', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'MaxResults', + 'in' => 'query', + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], + ], + [ + 'name' => 'SortBy', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'Order', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'DeploymentId', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'ResourceType', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'ResourceId', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], + ], + [ + 'name' => 'Creator', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'ResourceSnapshotId', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'ServiceName', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'DeploymentStatus', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'OperationType', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'Accessibility', + 'in' => 'query', + 'schema' => ['type' => 'string'], + ], + ], + ], + 'ListKnowledgeBaseChunks' => [ + 'path' => '/api/v1/langstudio/knowledgebases/{KnowledgeBaseId}/knowledgebasechunks', + 'methods' => ['get'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'parameters' => [ [ 'name' => 'KnowledgeBaseId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'KnowledgeBaseJobId', - 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'name' => 'VersionName', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'body', - 'in' => 'body', - 'style' => 'json', + 'name' => 'MetaData', + 'in' => 'query', 'schema' => [ 'type' => 'object', 'required' => false, 'properties' => [ - 'WorkspaceId' => [ - 'type' => 'string', - 'required' => true, - ], - 'Description' => [ - 'type' => 'string', - 'required' => false, - ], + 'FileUri' => ['type' => 'string', 'required' => false], + 'FileMetaId' => ['type' => 'string', 'required' => false], ], ], ], + [ + 'name' => 'ChunkStatus', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], + ], ], ], - 'DeleteKnowledgeBaseJob' => [ - 'path' => '/api/v1/langstudio/knowledgebases/{KnowledgeBaseId}/knowledgebasejobs/{KnowledgeBaseJobId}', - 'methods' => [ - 'delete', - ], - 'schemes' => [ - 'https', - ], + 'ListKnowledgeBaseJobs' => [ + 'path' => '/api/v1/langstudio/knowledgebases/{KnowledgeBaseId}/knowledgebasejobs', + 'methods' => ['get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'parameters' => [ [ 'name' => 'WorkspaceId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'KnowledgeBaseId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'KnowledgeBaseJobId', - 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'Status', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'JobAction', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'NextToken', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'MaxResults', + 'in' => 'query', + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], + ], + [ + 'name' => 'SortBy', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'Order', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], + ], + [ + 'name' => 'Accessibility', + 'in' => 'query', + 'schema' => ['type' => 'string'], ], ], ], - 'ListKnowledgeBaseJobs' => [ - 'path' => '/api/v1/langstudio/knowledgebases/{KnowledgeBaseId}/knowledgebasejobs', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'https', - ], + 'ListKnowledgeBases' => [ + 'path' => '/api/v1/langstudio/knowledgebases', + 'methods' => ['get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'parameters' => [ + [ + 'name' => 'WorkspaceId', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'Name', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'KnowledgeBaseId', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'NextToken', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'MaxResults', + 'in' => 'query', + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], + ], + [ + 'name' => 'SortBy', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'Order', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], + ], + [ + 'name' => 'Creator', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'KnowledgeBaseType', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'Accessibility', + 'in' => 'query', + 'schema' => ['type' => 'string'], + ], ], - 'produces' => [ - 'application/json', + ], + 'ListRuntimes' => [ + 'path' => '/api/v1/langstudio/runtimes', + 'methods' => ['get'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'parameters' => [ [ 'name' => 'WorkspaceId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'KnowledgeBaseId', - 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'name' => 'NextToken', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'KnowledgeBaseJobId', + 'name' => 'MaxResults', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], ], [ - 'name' => 'Status', + 'name' => 'PageNumber', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], ], [ - 'name' => 'JobAction', + 'name' => 'PageSize', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], + ], + [ + 'name' => 'RuntimeName', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'RuntimeId', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'WorkDir', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'RuntimeStatus', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'Creator', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'SortBy', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'Order', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'Version', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'Accessibility', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + ], + ], + 'ListSnapshots' => [ + 'path' => '/api/v1/langstudio/snapshots', + 'methods' => ['get'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'parameters' => [ + [ + 'name' => 'WorkspaceId', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'NextToken', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'MaxResults', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - ], + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], ], [ 'name' => 'SortBy', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'Order', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'SnapshotId', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'PageNumber', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - ], + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], ], [ 'name' => 'PageSize', 'in' => 'query', + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], + ], + [ + 'name' => 'SnapshotResourceType', + 'in' => 'query', 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', + 'type' => 'string', 'required' => false, + 'enum' => ['Flow'], ], ], + [ + 'name' => 'SnapshotResourceId', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'Creator', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'CreationType', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'SnapshotStatus', + 'in' => 'query', + 'schema' => ['type' => 'string'], + ], + [ + 'name' => 'Accessibility', + 'in' => 'query', + 'schema' => ['type' => 'string'], + ], ], ], - 'UpdateKnowledgeBaseChunk' => [ - 'path' => '/api/v1/langstudio/knowledgebases/{KnowledgeBaseId}/knowledgebasechunks/{KnowledgeBaseChunkId}', - 'methods' => [ - 'put', - ], - 'schemes' => [ - 'https', - ], + 'RetrieveKnowledgeBase' => [ + 'path' => '/api/v1/langstudio/knowledgebases/{KnowledgeBaseId}/action/retrieve', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'parameters' => [ [ 'name' => 'KnowledgeBaseId', 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', 'schema' => [ - 'type' => 'string', - 'required' => true, + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'WorkspaceId' => ['type' => 'string', 'required' => true], + 'Query' => ['type' => 'string', 'required' => true], + 'TopK' => ['type' => 'integer', 'format' => 'int32', 'required' => false], + 'ScoreThreshold' => ['type' => 'number', 'format' => 'float', 'required' => false], + 'MetaDataFilterConditions' => ['type' => 'string', 'required' => false], + 'QueryMode' => ['type' => 'string', 'required' => false], + 'VersionName' => ['type' => 'string', 'required' => false], + 'RerankConfig' => ['type' => 'string', 'required' => false], + 'RewriteConfig' => ['type' => 'string', 'required' => false], + 'HybridStrategyConfig' => ['type' => 'string', 'required' => false], + ], ], ], + ], + ], + 'UpdateDeployment' => [ + 'path' => '/api/v1/langstudio/deployments/{DeploymentId}', + 'methods' => ['put'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'parameters' => [ [ - 'name' => 'KnowledgeBaseChunkId', + 'name' => 'DeploymentId', 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', 'schema' => [ - 'type' => 'string', - 'required' => true, + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'Description' => ['type' => 'string', 'required' => false], + 'WorkspaceId' => ['type' => 'string', 'required' => false], + 'DeploymentConfig' => ['type' => 'string', 'required' => false], + 'StageAction' => ['type' => 'string', 'required' => false], + 'AutoApproval' => ['type' => 'boolean', 'required' => false], + ], ], ], + ], + ], + 'UpdateKnowledgeBase' => [ + 'path' => '/api/v1/langstudio/knowledgebases/{KnowledgeBaseId}', + 'methods' => ['put'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'parameters' => [ + [ + 'name' => 'KnowledgeBaseId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], [ 'name' => 'body', 'in' => 'body', @@ -3046,146 +2005,224 @@ 'type' => 'object', 'required' => false, 'properties' => [ - 'ChunkStatus' => [ - 'type' => 'string', + 'WorkspaceId' => ['type' => 'string', 'required' => true], + 'Description' => ['type' => 'string', 'required' => false], + 'RuntimeId' => ['type' => 'string', 'required' => false], + 'BindRuntime' => ['type' => 'boolean', 'required' => false], + 'MetaDataConfig' => [ + 'type' => 'object', 'required' => false, + 'properties' => [ + 'CustomMetaData' => [ + 'type' => 'array', + 'required' => false, + 'items' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'Key' => ['type' => 'string', 'required' => false], + 'ValueType' => ['type' => 'string', 'required' => false], + ], + ], + ], + ], ], - 'ChunkContent' => [ - 'type' => 'string', + 'AutoUpdateConfig' => [ + 'type' => 'object', 'required' => false, + 'properties' => [ + 'Status' => ['type' => 'string', 'required' => false], + 'ResourceId' => ['type' => 'string', 'required' => false], + 'MaxRunningTimeInSeconds' => ['type' => 'integer', 'format' => 'int32', 'required' => false], + 'EmbeddingConfig' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'BatchSize' => ['type' => 'integer', 'format' => 'int32', 'required' => false], + 'Concurrency' => ['type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '1', 'maximum' => '200'], + ], + ], + 'UserVpc' => ['$ref' => '#/components/schemas/UserVpc', 'required' => false], + 'EcsSpecs' => [ + 'type' => 'array', + 'required' => false, + 'items' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'Type' => ['type' => 'string', 'required' => false], + 'InstanceType' => ['type' => 'string', 'required' => false], + 'PodCount' => ['type' => 'integer', 'format' => 'int32', 'required' => false], + 'GPUType' => ['type' => 'string', 'required' => false], + 'CPU' => ['type' => 'integer', 'format' => 'int32', 'required' => false], + 'GPU' => ['type' => 'integer', 'format' => 'int32', 'required' => false], + 'Memory' => ['type' => 'integer', 'format' => 'int32', 'required' => false], + 'SharedMemory' => ['type' => 'integer', 'format' => 'int32', 'required' => false], + 'Driver' => ['type' => 'string', 'required' => false], + ], + ], + ], + ], ], ], ], ], ], ], - 'ListKnowledgeBaseChunks' => [ - 'path' => '/api/v1/langstudio/knowledgebases/{KnowledgeBaseId}/knowledgebasechunks', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'https', - ], + 'UpdateKnowledgeBaseChunk' => [ + 'path' => '/api/v1/langstudio/knowledgebases/{KnowledgeBaseId}/knowledgebasechunks/{KnowledgeBaseChunkId}', + 'methods' => ['put'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'parameters' => [ [ 'name' => 'KnowledgeBaseId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'VersionName', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'name' => 'KnowledgeBaseChunkId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'MetaData', - 'in' => 'query', + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', 'schema' => [ 'type' => 'object', 'required' => false, 'properties' => [ - 'FileUri' => [ - 'type' => 'string', - 'required' => false, - ], - 'FileMetaId' => [ - 'type' => 'string', - 'required' => false, - ], + 'ChunkStatus' => ['type' => 'string', 'required' => false], + 'ChunkContent' => ['type' => 'string', 'required' => false], ], ], ], + ], + ], + 'UpdateKnowledgeBaseJob' => [ + 'path' => '/api/v1/langstudio/knowledgebases/{KnowledgeBaseId}/knowledgebasejobs/{KnowledgeBaseJobId}', + 'methods' => ['put'], + 'schemes' => ['https'], + 'security' => [ [ - 'name' => 'ChunkStatus', - 'in' => 'query', + 'AK' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'parameters' => [ + [ + 'name' => 'KnowledgeBaseId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'KnowledgeBaseJobId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', 'schema' => [ - 'type' => 'string', + 'type' => 'object', 'required' => false, + 'properties' => [ + 'WorkspaceId' => ['type' => 'string', 'required' => true], + 'Description' => ['type' => 'string', 'required' => false], + ], ], ], + ], + ], + 'UpdateRuntime' => [ + 'path' => '/api/v1/langstudio/runtimes/{RuntimeId}', + 'methods' => ['put'], + 'schemes' => ['https'], + 'security' => [ [ - 'name' => 'PageNumber', - 'in' => 'query', + 'AK' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'parameters' => [ + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', + 'type' => 'object', 'required' => false, + 'properties' => [ + 'WorkspaceId' => ['type' => 'string', 'required' => false], + 'RunTimeout' => ['type' => 'integer', 'format' => 'int32', 'required' => false], + 'Version' => ['type' => 'string', 'required' => false], + 'Action' => ['type' => 'string', 'required' => false], + 'AutoUpdateImage' => ['type' => 'boolean'], + ], ], ], [ - 'name' => 'PageSize', - 'in' => 'query', + 'name' => 'RuntimeId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => false], + ], + ], + ], + 'UpdateSnapshot' => [ + 'path' => '/api/v1/langstudio/snapshots/{SnapshotId}', + 'methods' => ['put'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'parameters' => [ + [ + 'name' => 'SnapshotId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', + 'type' => 'object', 'required' => false, + 'properties' => [ + 'Description' => ['type' => 'string', 'required' => false], + 'WorkspaceId' => ['type' => 'string', 'required' => false], + 'SnapshotName' => ['type' => 'string', 'required' => false], + ], ], ], ], ], ], 'endpoints' => [ - [ - 'regionId' => 'eu-central-1', - 'endpoint' => 'pailangstudio.eu-central-1.aliyuncs.com', - ], - [ - 'regionId' => 'cn-beijing', - 'endpoint' => 'pailangstudio.cn-beijing.aliyuncs.com', - ], - [ - 'regionId' => 'cn-wulanchabu', - 'endpoint' => 'pailangstudio.cn-wulanchabu.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou', - 'endpoint' => 'pailangstudio.cn-hangzhou.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shanghai', - 'endpoint' => 'pailangstudio.cn-shanghai.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shenzhen', - 'endpoint' => 'pailangstudio.cn-shenzhen.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hongkong', - 'endpoint' => 'pailangstudio.cn-hongkong.aliyuncs.com', - ], - [ - 'regionId' => 'ap-northeast-1', - 'endpoint' => 'pailangstudio.ap-northeast-1.aliyuncs.com', - ], - [ - 'regionId' => 'ap-southeast-1', - 'endpoint' => 'pailangstudio.ap-southeast-1.aliyuncs.com', - ], - [ - 'regionId' => 'ap-southeast-5', - 'endpoint' => 'pailangstudio.ap-southeast-5.aliyuncs.com', - ], - [ - 'regionId' => 'us-east-1', - 'endpoint' => 'pailangstudio.us-east-1.aliyuncs.com', - ], + ['regionId' => 'ap-northeast-1', 'regionName' => '日本(东京)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'pailangstudio.ap-northeast-1.aliyuncs.com', 'endpoint' => 'pailangstudio.ap-northeast-1.aliyuncs.com', 'vpc' => 'pailangstudio-vpc.ap-northeast-1.aliyuncs.com'], + ['regionId' => 'ap-southeast-1', 'regionName' => '新加坡', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'pailangstudio.ap-southeast-1.aliyuncs.com', 'endpoint' => 'pailangstudio.ap-southeast-1.aliyuncs.com', 'vpc' => 'pailangstudio-vpc.ap-southeast-1.aliyuncs.com'], + ['regionId' => 'ap-southeast-5', 'regionName' => '印度尼西亚(雅加达)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'pailangstudio.ap-southeast-5.aliyuncs.com', 'endpoint' => 'pailangstudio.ap-southeast-5.aliyuncs.com', 'vpc' => 'pailangstudio-vpc.ap-southeast-5.aliyuncs.com'], + ['regionId' => 'cn-beijing', 'regionName' => '华北2(北京)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'pailangstudio.cn-beijing.aliyuncs.com', 'endpoint' => 'pailangstudio.cn-beijing.aliyuncs.com', 'vpc' => 'pailangstudio-vpc.cn-beijing.aliyuncs.com'], + ['regionId' => 'cn-hangzhou', 'regionName' => '华东1(杭州)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'pailangstudio.cn-hangzhou.aliyuncs.com', 'endpoint' => 'pailangstudio.cn-hangzhou.aliyuncs.com', 'vpc' => 'pailangstudio-vpc.cn-hangzhou.aliyuncs.com'], + ['regionId' => 'cn-hongkong', 'regionName' => '中国香港', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'pailangstudio.cn-hongkong.aliyuncs.com', 'endpoint' => 'pailangstudio.cn-hongkong.aliyuncs.com', 'vpc' => 'pailangstudio-vpc.cn-hongkong.aliyuncs.com'], + ['regionId' => 'cn-shanghai', 'regionName' => '华东2(上海)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'pailangstudio.cn-shanghai.aliyuncs.com', 'endpoint' => 'pailangstudio.cn-shanghai.aliyuncs.com', 'vpc' => 'pailangstudio-vpc.cn-shanghai.aliyuncs.com'], + ['regionId' => 'cn-shenzhen', 'regionName' => '华南1(深圳)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'pailangstudio.cn-shenzhen.aliyuncs.com', 'endpoint' => 'pailangstudio.cn-shenzhen.aliyuncs.com', 'vpc' => 'pailangstudio-vpc.cn-shenzhen.aliyuncs.com'], + ['regionId' => 'cn-wulanchabu', 'regionName' => '华北6(乌兰察布)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'pailangstudio.cn-wulanchabu.aliyuncs.com', 'endpoint' => 'pailangstudio.cn-wulanchabu.aliyuncs.com', 'vpc' => 'pailangstudio-vpc.cn-wulanchabu.aliyuncs.com'], + ['regionId' => 'us-east-1', 'regionName' => '美国(弗吉尼亚)', 'areaId' => 'europeAmerica', 'areaName' => '欧洲与美洲', 'public' => 'pailangstudio.us-east-1.aliyuncs.com', 'endpoint' => 'pailangstudio.us-east-1.aliyuncs.com', 'vpc' => 'pailangstudio-vpc.us-east-1.aliyuncs.com'], + ['regionId' => 'eu-central-1', 'regionName' => '德国(法兰克福)', 'areaId' => 'europeAmerica', 'areaName' => '欧洲与美洲', 'public' => 'pailangstudio.eu-central-1.aliyuncs.com', 'endpoint' => 'pailangstudio.eu-central-1.aliyuncs.com', 'vpc' => 'pailangstudio-vpc.eu-central-1.aliyuncs.com'], ], ]; |
