From ff51ad419d80d4cac470940eb68e1e2d47cdd520 Mon Sep 17 00:00:00 2001 From: "quantcloud[bot]" Date: Wed, 28 Jan 2026 03:58:53 +0000 Subject: [PATCH] feat(sdk): v4.9.0 - Auto-generated from unified API spec Generated from unified API spec v4.9.0 Changes: - Auto-generated SDK updates This PR was automatically created by the API generation pipeline. --- .openapi-generator/FILES | 72 +- README.md | 51 +- composer.json | 2 +- composer.lock | 28 +- docs/Api/AIAgentsApi.md | 2 +- docs/Api/AIFileStorageApi.md | 263 +++ docs/Api/AIInferenceApi.md | 132 +- docs/Api/AITaskManagementApi.md | 399 ++++ docs/Api/AIToolsApi.md | 63 + docs/Api/AIVectorDatabaseApi.md | 2 +- docs/Api/BackupManagementApi.md | 24 +- docs/Api/CommandsApi.md | 14 +- docs/Api/ComposeApi.md | 14 +- docs/Api/ContainersApi.md | 14 +- docs/Api/CrawlerSchedulesApi.md | 6 +- docs/Api/CrawlersApi.md | 61 +- docs/Api/CronApi.md | 46 +- docs/Api/DomainsApi.md | 32 +- docs/Api/EnvironmentsApi.md | 50 +- docs/Api/HeadersApi.md | 24 +- docs/Api/KVApi.md | 86 +- docs/Api/OrchestrationApi.md | 70 + docs/Api/OrganizationsApi.md | 4 +- docs/Api/ProjectsApi.md | 32 +- docs/Api/PurgeApi.md | 8 +- docs/Api/SSHAccessApi.md | 12 +- docs/Api/ScalingPolicyApi.md | 18 +- docs/Api/VariablesApi.md | 18 +- docs/Api/VolumesApi.md | 24 +- docs/Model/ChatInference202Response.md | 13 + docs/Model/ChatInferenceRequest.md | 4 +- docs/Model/ChatInferenceStreamRequest.md | 4 +- docs/Model/ChatWithAIAgent202Response.md | 15 + docs/Model/ChatWithAIAgentRequest.md | 2 + docs/Model/CrawlersRunRequest.md | 2 +- ...erMetadata.md => CreateTask201Response.md} | 8 +- docs/Model/CreateTaskRequest.md | 19 + docs/Model/DeleteFile200Response.md | 10 + docs/Model/DeleteTask200Response.md | 11 + docs/Model/DeleteTask409Response.md | 11 + .../GetAIOrchestrationStatus200Response.md | 17 + ...rchestrationStatus200ResponseToolsInner.md | 13 + .../GetAIOrchestrationStatus404Response.md | 10 + docs/Model/GetDependencyGraph200Response.md | 13 + .../GetDurableExecutionStatus200Response.md | 16 + ...tDurableExecutionStatus200ResponseError.md | 10 + ...utionStatus200ResponsePendingToolsInner.md | 11 + ...DurableExecutionStatus200ResponseResult.md | 11 + ...xecutionStatus200ResponseResultResponse.md | 10 + ...leExecutionStatus200ResponseResultUsage.md | 11 + docs/Model/GetFile200Response.md | 16 + docs/Model/GetTask200Response.md | 32 + docs/Model/ListFiles200Response.md | 11 + docs/Model/ListFiles200ResponseFilesInner.md | 14 + docs/Model/ListTasks200Response.md | 12 + docs/Model/ListTasks200ResponseTasksInner.md | 20 + .../Model/QueryVectorCollection200Response.md | 12 +- ...ryVectorCollection200ResponsePagination.md | 11 + ...VectorCollection200ResponseResultsInner.md | 8 +- docs/Model/QueryVectorCollectionRequest.md | 12 +- .../QueryVectorCollectionRequestFilter.md | 10 + docs/Model/SubmitToolCallback200Response.md | 11 + docs/Model/SubmitToolCallbackRequest.md | 10 + ...bmitToolCallbackRequestToolResultsInner.md | 10 + docs/Model/UpdateTask200Response.md | 11 + docs/Model/UpdateTaskRequest.md | 23 + docs/Model/UploadFile201Response.md | 19 + docs/Model/UploadFileRequest.md | 14 + src/Api/AIAgentsApi.php | 20 +- src/Api/AICustomToolsApi.php | 2 +- src/Api/AIFileStorageApi.php | 1393 +++++++++++ src/Api/AIInferenceApi.php | 717 +++++- src/Api/AIModelsApi.php | 2 +- src/Api/AIMonitoringApi.php | 2 +- src/Api/AISessionsApi.php | 2 +- src/Api/AITaskManagementApi.php | 2079 +++++++++++++++++ src/Api/AIToolsApi.php | 314 ++- src/Api/AIVectorDatabaseApi.php | 2 +- src/Api/ApplicationsApi.php | 2 +- src/Api/BackupManagementApi.php | 2 +- src/Api/CommandsApi.php | 2 +- src/Api/ComposeApi.php | 2 +- src/Api/ContainersApi.php | 2 +- src/Api/CrawlerSchedulesApi.php | 2 +- src/Api/CrawlersApi.php | 132 +- src/Api/CronApi.php | 2 +- src/Api/DomainsApi.php | 32 +- src/Api/EnvironmentsApi.php | 2 +- src/Api/HeadersApi.php | 62 +- src/Api/KVApi.php | 182 +- src/Api/OrchestrationApi.php | 498 ++++ src/Api/OrganizationsApi.php | 30 +- src/Api/ProjectsApi.php | 82 +- src/Api/PurgeApi.php | 22 +- src/Api/RulesApi.php | 2 +- src/Api/SSHAccessApi.php | 32 +- src/Api/ScalingPolicyApi.php | 2 +- src/Api/VariablesApi.php | 2 +- src/Api/VolumesApi.php | 2 +- src/ApiException.php | 2 +- src/Configuration.php | 8 +- src/FormDataProcessor.php | 2 +- src/HeaderSelector.php | 2 +- src/Model/Application.php | 2 +- src/Model/ApplicationDatabase.php | 2 +- .../ApplicationDeploymentInformationInner.php | 2 +- src/Model/ApplicationEnvironmentsInner.php | 2 +- src/Model/ApplicationFilesystem.php | 2 +- src/Model/ApplicationImageReference.php | 2 +- .../BulkSetEnvironmentVariablesRequest.php | 2 +- ...onmentVariablesRequestEnvironmentInner.php | 2 +- src/Model/ChatInference200Response.php | 2 +- .../ChatInference200ResponseResponse.php | 2 +- ...hatInference200ResponseResponseToolUse.php | 2 +- ...ference200ResponseResponseToolUseOneOf.php | 2 +- ...e200ResponseResponseToolUseOneOf1Inner.php | 2 +- ...e200ResponseResponseToolUseOneOfResult.php | 2 +- src/Model/ChatInference200ResponseUsage.php | 2 +- src/Model/ChatInference202Response.php | 586 +++++ src/Model/ChatInferenceRequest.php | 94 +- .../ChatInferenceRequestMessagesInner.php | 2 +- ...atInferenceRequestMessagesInnerContent.php | 2 +- ...eRequestMessagesInnerContentOneOfInner.php | 2 +- ...estMessagesInnerContentOneOfInnerOneOf.php | 2 +- ...stMessagesInnerContentOneOfInnerOneOf1.php | 2 +- ...sagesInnerContentOneOfInnerOneOf1Image.php | 2 +- ...nnerContentOneOfInnerOneOf1ImageSource.php | 2 +- ...stMessagesInnerContentOneOfInnerOneOf2.php | 2 +- ...sagesInnerContentOneOfInnerOneOf2Video.php | 2 +- ...nnerContentOneOfInnerOneOf2VideoSource.php | 2 +- ...stMessagesInnerContentOneOfInnerOneOf3.php | 2 +- ...esInnerContentOneOfInnerOneOf3Document.php | 2 +- ...rContentOneOfInnerOneOf3DocumentSource.php | 2 +- .../ChatInferenceRequestResponseFormat.php | 2 +- src/Model/ChatInferenceRequestToolConfig.php | 2 +- ...atInferenceRequestToolConfigToolsInner.php | 2 +- ...nceRequestToolConfigToolsInnerToolSpec.php | 2 +- ...oolConfigToolsInnerToolSpecInputSchema.php | 2 +- src/Model/ChatInferenceStreamRequest.php | 94 +- ...hatInferenceStreamRequestMessagesInner.php | 2 +- ...renceStreamRequestMessagesInnerContent.php | 2 +- src/Model/ChatWithAIAgent200Response.php | 2 +- .../ChatWithAIAgent200ResponseResponse.php | 2 +- ...hatWithAIAgent200ResponseResponseUsage.php | 2 +- src/Model/ChatWithAIAgent202Response.php | 657 ++++++ src/Model/ChatWithAIAgentRequest.php | 82 +- src/Model/Command.php | 2 +- src/Model/Compose.php | 2 +- src/Model/Container.php | 2 +- src/Model/ContainerDependsOnInner.php | 2 +- src/Model/ContainerEnvironmentInner.php | 2 +- src/Model/ContainerHealthCheck.php | 2 +- src/Model/ContainerImageReference.php | 2 +- src/Model/ContainerMountPointsInner.php | 2 +- src/Model/ContainerOriginProtectionConfig.php | 2 +- src/Model/ContainerSecretsInner.php | 2 +- src/Model/CrawlersRun200Response.php | 2 +- src/Model/CrawlersRunRequest.php | 4 +- src/Model/CreateAIAgent201Response.php | 2 +- src/Model/CreateAIAgentRequest.php | 2 +- src/Model/CreateAISession201Response.php | 2 +- src/Model/CreateAISessionRequest.php | 2 +- ...teAISessionRequestInitialMessagesInner.php | 2 +- src/Model/CreateApplication403Response.php | 2 +- src/Model/CreateApplicationRequest.php | 2 +- .../CreateApplicationRequestDatabase.php | 2 +- ...eateApplicationRequestEnvironmentInner.php | 2 +- .../CreateApplicationRequestFilesystem.php | 2 +- src/Model/CreateBackup202Response.php | 2 +- src/Model/CreateBackupRequest.php | 2 +- src/Model/CreateCommandRequest.php | 2 +- src/Model/CreateCronJobRequest.php | 2 +- src/Model/CreateCustomTool201Response.php | 2 +- src/Model/CreateCustomToolRequest.php | 2 +- src/Model/CreateEnvironment403Response.php | 2 +- src/Model/CreateEnvironmentRequest.php | 2 +- ...eateEnvironmentRequestEnvironmentInner.php | 2 +- src/Model/CreateTask201Response.php | 545 +++++ src/Model/CreateTaskRequest.php | 810 +++++++ .../CreateVectorCollection201Response.php | 2 +- ...eVectorCollection201ResponseCollection.php | 2 +- src/Model/CreateVectorCollectionRequest.php | 2 +- src/Model/CreateVolumeRequest.php | 2 +- src/Model/Cron.php | 2 +- src/Model/CronRun.php | 2 +- src/Model/DeleteAIAgent200Response.php | 2 +- src/Model/DeleteAISession200Response.php | 2 +- src/Model/DeleteBackup200Response.php | 2 +- src/Model/DeleteCustomTool200Response.php | 2 +- src/Model/DeleteFile200Response.php | 443 ++++ src/Model/DeleteTask200Response.php | 477 ++++ src/Model/DeleteTask409Response.php | 477 ++++ .../DeleteVectorCollection200Response.php | 2 +- src/Model/DownloadBackup200Response.php | 2 +- src/Model/Embeddings200Response.php | 2 +- src/Model/Embeddings200ResponseEmbeddings.php | 2 +- src/Model/Embeddings200ResponseUsage.php | 2 +- src/Model/EmbeddingsRequest.php | 2 +- src/Model/EmbeddingsRequestInput.php | 2 +- src/Model/Environment.php | 2 +- src/Model/EnvironmentResponse.php | 2 +- src/Model/EnvironmentSummary.php | 2 +- src/Model/ExtendAISession200Response.php | 2 +- src/Model/ExtendAISessionRequest.php | 2 +- src/Model/GetAIAgent200Response.php | 2 +- src/Model/GetAIAgent200ResponseAgent.php | 2 +- src/Model/GetAIModel200Response.php | 2 +- .../GetAIModel200ResponseCapabilities.php | 2 +- src/Model/GetAIModel200ResponsePricing.php | 2 +- src/Model/GetAIModel404Response.php | 2 +- .../GetAIOrchestrationStatus200Response.php | 733 ++++++ ...chestrationStatus200ResponseToolsInner.php | 583 +++++ .../GetAIOrchestrationStatus404Response.php | 443 ++++ src/Model/GetAISession200Response.php | 2 +- .../GetAIToolExecutionStatus200Response.php | 2 +- ...AIToolExecutionStatus200ResponseResult.php | 2 +- .../GetAIToolExecutionStatus404Response.php | 2 +- src/Model/GetAIUsageStats200Response.php | 2 +- ...GetAIUsageStats200ResponseByModelValue.php | 2 +- src/Model/GetDependencyGraph200Response.php | 545 +++++ .../GetDurableExecutionStatus200Response.php | 687 ++++++ ...DurableExecutionStatus200ResponseError.php | 444 ++++ ...ionStatus200ResponsePendingToolsInner.php} | 108 +- ...urableExecutionStatus200ResponseResult.php | 478 ++++ ...ecutionStatus200ResponseResultResponse.php | 443 ++++ ...eExecutionStatus200ResponseResultUsage.php | 477 ++++ .../GetEcrLoginCredentials200Response.php | 2 +- src/Model/GetEnvironmentLogs200Response.php | 2 +- ...vironmentLogs200ResponseLogEventsInner.php | 2 +- src/Model/GetFile200Response.php | 647 +++++ .../GetSshAccessCredentials200Response.php | 2 +- ...ccessCredentials200ResponseCredentials.php | 2 +- src/Model/GetTask200Response.php | 1326 +++++++++++ src/Model/GetVectorCollection200Response.php | 2 +- ...tVectorCollection200ResponseCollection.php | 2 +- src/Model/ImageGeneration200Response.php | 2 +- src/Model/ImageGenerationRequest.php | 2 +- ...nerationRequestBackgroundRemovalParams.php | 2 +- ...tionRequestColorGuidedGenerationParams.php | 2 +- ...GenerationRequestImageGenerationConfig.php | 2 +- ...eGenerationRequestImageVariationParams.php | 2 +- ...ImageGenerationRequestInPaintingParams.php | 2 +- ...mageGenerationRequestOutPaintingParams.php | 2 +- ...mageGenerationRequestTextToImageParams.php | 2 +- src/Model/KVItemsCreate200Response.php | 2 +- src/Model/KVItemsDelete200Response.php | 2 +- src/Model/KVItemsShow200Response.php | 2 +- src/Model/KVItemsShow200ResponseValue.php | 2 +- src/Model/ListAIAgents200Response.php | 2 +- .../ListAIAgents200ResponseAgentsInner.php | 2 +- src/Model/ListAIModels200Response.php | 2 +- .../ListAIModels200ResponseModelsInner.php | 2 +- ...dels200ResponseModelsInnerCapabilities.php | 2 +- src/Model/ListAISessions200ResponseInner.php | 2 +- src/Model/ListAIToolExecutions200Response.php | 2 +- ...olExecutions200ResponseExecutionsInner.php | 2 +- src/Model/ListAIToolNames200Response.php | 2 +- src/Model/ListAITools200Response.php | 2 +- .../ListAITools200ResponseToolsInner.php | 2 +- ...stAITools200ResponseToolsInnerToolSpec.php | 2 +- ...0ResponseToolsInnerToolSpecInputSchema.php | 2 +- src/Model/ListBackups200Response.php | 2 +- .../ListBackups200ResponseBackupsInner.php | 2 +- src/Model/ListBackups422Response.php | 2 +- src/Model/ListCustomTools200Response.php | 2 +- .../ListCustomTools200ResponseToolsInner.php | 2 +- src/Model/ListFiles200Response.php | 484 ++++ src/Model/ListFiles200ResponseFilesInner.php | 579 +++++ src/Model/ListTasks200Response.php | 511 ++++ src/Model/ListTasks200ResponseTasksInner.php | 869 +++++++ .../ListVectorCollections200Response.php | 2 +- ...Collections200ResponseCollectionsInner.php | 2 +- src/Model/ModelInterface.php | 2 +- .../OrganizationsList200ResponseInner.php | 2 +- .../PatchEnvironmentCompose202Response.php | 2 +- ...entCompose202ResponseSpotConfiguration.php | 2 +- .../PatchEnvironmentCompose400Response.php | 2 +- src/Model/PatchEnvironmentComposeRequest.php | 2 +- ...ronmentComposeRequestSpotConfiguration.php | 2 +- src/Model/PurgeCreateRequest.php | 2 +- .../QueryVectorCollection200Response.php | 292 ++- ...yVectorCollection200ResponsePagination.php | 546 +++++ ...ectorCollection200ResponseResultsInner.php | 136 +- src/Model/QueryVectorCollectionRequest.php | 426 +++- .../QueryVectorCollectionRequestFilter.php | 444 ++++ src/Model/ScalingPolicy.php | 2 +- src/Model/SpotConfiguration.php | 2 +- src/Model/SubmitToolCallback200Response.php | 477 ++++ src/Model/SubmitToolCallbackRequest.php | 449 ++++ ...mitToolCallbackRequestToolResultsInner.php | 449 ++++ src/Model/SyncOperation.php | 2 +- src/Model/SyncToEnvironmentRequest.php | 2 +- src/Model/UpdateAIAgent200Response.php | 2 +- src/Model/UpdateAIAgentRequest.php | 2 +- src/Model/UpdateAISession200Response.php | 2 +- src/Model/UpdateAISessionRequest.php | 2 +- ...UpdateAISessionRequestNewMessagesInner.php | 2 +- src/Model/UpdateCronJobRequest.php | 2 +- src/Model/UpdateEnvironmentRequest.php | 2 +- src/Model/UpdateEnvironmentStateRequest.php | 2 +- .../UpdateEnvironmentVariableRequest.php | 2 +- src/Model/UpdateTask200Response.php | 477 ++++ src/Model/UpdateTaskRequest.php | 1003 ++++++++ src/Model/UploadFile201Response.php | 749 ++++++ src/Model/UploadFileRequest.php | 582 +++++ .../UploadVectorDocuments200Response.php | 2 +- src/Model/UploadVectorDocumentsRequest.php | 2 +- ...adVectorDocumentsRequestDocumentsInner.php | 2 +- ...DocumentsRequestDocumentsInnerMetadata.php | 2 +- src/Model/V1ContentItem.php | 2 +- src/Model/V1ContentListResponse.php | 2 +- src/Model/V1ContentRequest.php | 2 +- src/Model/V1DeleteResponse.php | 2 +- src/Model/V1Error.php | 2 +- src/Model/V1FormSubmissionItem.php | 2 +- src/Model/V1FormSubmissionListResponse.php | 2 +- src/Model/V1GetMetricSeriesResponse.php | 2 +- src/Model/V1GetMetricSeriesResponseData.php | 2 +- src/Model/V1GetMetricsResponse.php | 2 +- src/Model/V1GetMetricsResponseData.php | 2 +- src/Model/V1GlobalMetaResponse.php | 2 +- src/Model/V1GlobalMetaResponseGlobalMeta.php | 2 +- src/Model/V1Info.php | 2 +- src/Model/V1Meta.php | 2 +- src/Model/V1MetricDayStats.php | 2 +- src/Model/V1MetricMinuteStats.php | 2 +- src/Model/V1MetricMonthStats.php | 2 +- src/Model/V1PingResponse.php | 2 +- src/Model/V1ProxyItem.php | 2 +- src/Model/V1ProxyListResponse.php | 2 +- src/Model/V1RedirectItem.php | 2 +- src/Model/V1RedirectListResponse.php | 2 +- src/Model/V1RedirectRequest.php | 2 +- src/Model/V1RedirectResponse.php | 2 +- src/Model/V1Revision.php | 2 +- src/Model/V1RevisionsResponse.php | 2 +- src/Model/V1SearchHit.php | 2 +- src/Model/V1SearchItemsResponse.php | 2 +- src/Model/V1SearchMutationResponse.php | 2 +- src/Model/V1SearchRecord.php | 2 +- src/Model/V1SearchResponse.php | 2 +- src/Model/V1SeriesPointDay.php | 2 +- src/Model/V1SeriesPointMonth.php | 2 +- src/Model/V1Transition.php | 2 +- src/Model/V1UploadResponse.php | 2 +- src/Model/V1UrlMetaRequest.php | 2 +- src/Model/V1UrlMetaResponse.php | 2 +- src/Model/V1WafLogItem.php | 2 +- src/Model/V1WafLogListResponse.php | 2 +- src/Model/V2Crawler.php | 2 +- src/Model/V2CrawlerAssets.php | 2 +- src/Model/V2CrawlerAssetsNetworkIntercept.php | 2 +- src/Model/V2CrawlerAssetsParser.php | 2 +- src/Model/V2CrawlerRequest.php | 2 +- src/Model/V2CrawlerRun.php | 2 +- src/Model/V2CrawlerSchedule.php | 2 +- src/Model/V2CrawlerScheduleRequest.php | 2 +- src/Model/V2CrawlerSitemapInner.php | 2 +- src/Model/V2CustomHeaderRequest.php | 2 +- src/Model/V2Domain.php | 2 +- src/Model/V2DomainDnsGoLiveRecordsInner.php | 2 +- .../V2DomainDnsValidationRecordsInner.php | 2 +- src/Model/V2DomainRequest.php | 2 +- src/Model/V2Error.php | 2 +- src/Model/V2Organization.php | 2 +- src/Model/V2OrganizationRequest.php | 2 +- src/Model/V2Project.php | 2 +- src/Model/V2ProjectRequest.php | 2 +- src/Model/V2Rule.php | 2 +- src/Model/V2RuleAuth.php | 2 +- src/Model/V2RuleAuthAction.php | 2 +- src/Model/V2RuleAuthRequest.php | 2 +- src/Model/V2RuleBotChallenge.php | 2 +- src/Model/V2RuleBotChallengeAction.php | 2 +- src/Model/V2RuleBotChallengeRequest.php | 2 +- src/Model/V2RuleContentFilter.php | 2 +- src/Model/V2RuleContentFilterAction.php | 2 +- src/Model/V2RuleContentFilterRequest.php | 2 +- src/Model/V2RuleCustomResponse.php | 2 +- src/Model/V2RuleCustomResponseAction.php | 2 +- src/Model/V2RuleCustomResponseRequest.php | 2 +- src/Model/V2RuleFunction.php | 2 +- src/Model/V2RuleFunctionAction.php | 2 +- src/Model/V2RuleFunctionRequest.php | 2 +- src/Model/V2RuleHeader.php | 2 +- src/Model/V2RuleHeaderAction.php | 2 +- src/Model/V2RuleHeaderRequest.php | 2 +- src/Model/V2RuleProxy.php | 2 +- src/Model/V2RuleProxyAction.php | 2 +- src/Model/V2RuleProxyActionNotifyConfig.php | 2 +- .../V2RuleProxyActionQuantCloudSelection.php | 2 +- src/Model/V2RuleProxyRequest.php | 2 +- src/Model/V2RuleRedirect.php | 2 +- src/Model/V2RuleRedirectAction.php | 2 +- src/Model/V2RuleRedirectRequest.php | 2 +- src/Model/V2RuleRequest.php | 2 +- src/Model/V2RuleServeStatic.php | 2 +- src/Model/V2RuleServeStaticAction.php | 2 +- src/Model/V2RuleServeStaticRequest.php | 2 +- src/Model/V2SecretStore.php | 2 +- src/Model/V2SecretStoreRequest.php | 2 +- src/Model/V2Store.php | 2 +- src/Model/V2StoreItem.php | 2 +- src/Model/V2StoreItemRequest.php | 2 +- src/Model/V2StoreItemUpdateRequest.php | 2 +- src/Model/V2StoreItemsListResponse.php | 2 +- src/Model/V2StoreRequest.php | 2 +- src/Model/ValidateCompose200Response.php | 2 +- src/Model/ValidateCompose422Response.php | 2 +- src/Model/ValidateComposeRequest.php | 2 +- src/Model/Variable.php | 2 +- src/Model/Volume.php | 2 +- src/Model/WafConfig.php | 2 +- src/Model/WafConfigBlockLists.php | 2 +- src/Model/WafConfigHttpbl.php | 2 +- src/Model/WafConfigThresholdsInner.php | 2 +- src/ObjectSerializer.php | 2 +- test/Api/AIServicesApiTest.php | 284 --- test/Model/GetAIConfig200ResponseTest.php | 118 - ...olExecutionStatus200ResponseResultTest.php | 100 - .../GetToolExecutionStatus200ResponseTest.php | 163 -- .../GetToolExecutionStatus404ResponseTest.php | 100 - ...ecutions200ResponseExecutionsInnerTest.php | 127 - .../ListToolExecutions200ResponseTest.php | 118 - test/Model/UpdateAIConfigRequestTest.php | 118 - 425 files changed, 26791 insertions(+), 2234 deletions(-) create mode 100644 docs/Api/AIFileStorageApi.md create mode 100644 docs/Api/AITaskManagementApi.md create mode 100644 docs/Api/OrchestrationApi.md create mode 100644 docs/Model/ChatInference202Response.md create mode 100644 docs/Model/ChatWithAIAgent202Response.md rename docs/Model/{QueryVectorCollection200ResponseResultsInnerMetadata.md => CreateTask201Response.md} (60%) create mode 100644 docs/Model/CreateTaskRequest.md create mode 100644 docs/Model/DeleteFile200Response.md create mode 100644 docs/Model/DeleteTask200Response.md create mode 100644 docs/Model/DeleteTask409Response.md create mode 100644 docs/Model/GetAIOrchestrationStatus200Response.md create mode 100644 docs/Model/GetAIOrchestrationStatus200ResponseToolsInner.md create mode 100644 docs/Model/GetAIOrchestrationStatus404Response.md create mode 100644 docs/Model/GetDependencyGraph200Response.md create mode 100644 docs/Model/GetDurableExecutionStatus200Response.md create mode 100644 docs/Model/GetDurableExecutionStatus200ResponseError.md create mode 100644 docs/Model/GetDurableExecutionStatus200ResponsePendingToolsInner.md create mode 100644 docs/Model/GetDurableExecutionStatus200ResponseResult.md create mode 100644 docs/Model/GetDurableExecutionStatus200ResponseResultResponse.md create mode 100644 docs/Model/GetDurableExecutionStatus200ResponseResultUsage.md create mode 100644 docs/Model/GetFile200Response.md create mode 100644 docs/Model/GetTask200Response.md create mode 100644 docs/Model/ListFiles200Response.md create mode 100644 docs/Model/ListFiles200ResponseFilesInner.md create mode 100644 docs/Model/ListTasks200Response.md create mode 100644 docs/Model/ListTasks200ResponseTasksInner.md create mode 100644 docs/Model/QueryVectorCollection200ResponsePagination.md create mode 100644 docs/Model/QueryVectorCollectionRequestFilter.md create mode 100644 docs/Model/SubmitToolCallback200Response.md create mode 100644 docs/Model/SubmitToolCallbackRequest.md create mode 100644 docs/Model/SubmitToolCallbackRequestToolResultsInner.md create mode 100644 docs/Model/UpdateTask200Response.md create mode 100644 docs/Model/UpdateTaskRequest.md create mode 100644 docs/Model/UploadFile201Response.md create mode 100644 docs/Model/UploadFileRequest.md create mode 100644 src/Api/AIFileStorageApi.php create mode 100644 src/Api/AITaskManagementApi.php create mode 100644 src/Api/OrchestrationApi.php create mode 100644 src/Model/ChatInference202Response.php create mode 100644 src/Model/ChatWithAIAgent202Response.php create mode 100644 src/Model/CreateTask201Response.php create mode 100644 src/Model/CreateTaskRequest.php create mode 100644 src/Model/DeleteFile200Response.php create mode 100644 src/Model/DeleteTask200Response.php create mode 100644 src/Model/DeleteTask409Response.php create mode 100644 src/Model/GetAIOrchestrationStatus200Response.php create mode 100644 src/Model/GetAIOrchestrationStatus200ResponseToolsInner.php create mode 100644 src/Model/GetAIOrchestrationStatus404Response.php create mode 100644 src/Model/GetDependencyGraph200Response.php create mode 100644 src/Model/GetDurableExecutionStatus200Response.php create mode 100644 src/Model/GetDurableExecutionStatus200ResponseError.php rename src/Model/{QueryVectorCollection200ResponseResultsInnerMetadata.php => GetDurableExecutionStatus200ResponsePendingToolsInner.php} (79%) create mode 100644 src/Model/GetDurableExecutionStatus200ResponseResult.php create mode 100644 src/Model/GetDurableExecutionStatus200ResponseResultResponse.php create mode 100644 src/Model/GetDurableExecutionStatus200ResponseResultUsage.php create mode 100644 src/Model/GetFile200Response.php create mode 100644 src/Model/GetTask200Response.php create mode 100644 src/Model/ListFiles200Response.php create mode 100644 src/Model/ListFiles200ResponseFilesInner.php create mode 100644 src/Model/ListTasks200Response.php create mode 100644 src/Model/ListTasks200ResponseTasksInner.php create mode 100644 src/Model/QueryVectorCollection200ResponsePagination.php create mode 100644 src/Model/QueryVectorCollectionRequestFilter.php create mode 100644 src/Model/SubmitToolCallback200Response.php create mode 100644 src/Model/SubmitToolCallbackRequest.php create mode 100644 src/Model/SubmitToolCallbackRequestToolResultsInner.php create mode 100644 src/Model/UpdateTask200Response.php create mode 100644 src/Model/UpdateTaskRequest.php create mode 100644 src/Model/UploadFile201Response.php create mode 100644 src/Model/UploadFileRequest.php delete mode 100644 test/Api/AIServicesApiTest.php delete mode 100644 test/Model/GetAIConfig200ResponseTest.php delete mode 100644 test/Model/GetToolExecutionStatus200ResponseResultTest.php delete mode 100644 test/Model/GetToolExecutionStatus200ResponseTest.php delete mode 100644 test/Model/GetToolExecutionStatus404ResponseTest.php delete mode 100644 test/Model/ListToolExecutions200ResponseExecutionsInnerTest.php delete mode 100644 test/Model/ListToolExecutions200ResponseTest.php delete mode 100644 test/Model/UpdateAIConfigRequestTest.php diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 8f7a519..c2443d1 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -4,10 +4,12 @@ README.md docs/Api/AIAgentsApi.md docs/Api/AICustomToolsApi.md +docs/Api/AIFileStorageApi.md docs/Api/AIInferenceApi.md docs/Api/AIModelsApi.md docs/Api/AIMonitoringApi.md docs/Api/AISessionsApi.md +docs/Api/AITaskManagementApi.md docs/Api/AIToolsApi.md docs/Api/AIVectorDatabaseApi.md docs/Api/ApplicationsApi.md @@ -22,6 +24,7 @@ docs/Api/DomainsApi.md docs/Api/EnvironmentsApi.md docs/Api/HeadersApi.md docs/Api/KVApi.md +docs/Api/OrchestrationApi.md docs/Api/OrganizationsApi.md docs/Api/ProjectsApi.md docs/Api/PurgeApi.md @@ -45,6 +48,7 @@ docs/Model/ChatInference200ResponseResponseToolUseOneOf.md docs/Model/ChatInference200ResponseResponseToolUseOneOf1Inner.md docs/Model/ChatInference200ResponseResponseToolUseOneOfResult.md docs/Model/ChatInference200ResponseUsage.md +docs/Model/ChatInference202Response.md docs/Model/ChatInferenceRequest.md docs/Model/ChatInferenceRequestMessagesInner.md docs/Model/ChatInferenceRequestMessagesInnerContent.md @@ -70,6 +74,7 @@ docs/Model/ChatInferenceStreamRequestMessagesInnerContent.md docs/Model/ChatWithAIAgent200Response.md docs/Model/ChatWithAIAgent200ResponseResponse.md docs/Model/ChatWithAIAgent200ResponseResponseUsage.md +docs/Model/ChatWithAIAgent202Response.md docs/Model/ChatWithAIAgentRequest.md docs/Model/Command.md docs/Model/Compose.md @@ -102,6 +107,8 @@ docs/Model/CreateCustomToolRequest.md docs/Model/CreateEnvironment403Response.md docs/Model/CreateEnvironmentRequest.md docs/Model/CreateEnvironmentRequestEnvironmentInner.md +docs/Model/CreateTask201Response.md +docs/Model/CreateTaskRequest.md docs/Model/CreateVectorCollection201Response.md docs/Model/CreateVectorCollection201ResponseCollection.md docs/Model/CreateVectorCollectionRequest.md @@ -112,6 +119,9 @@ docs/Model/DeleteAIAgent200Response.md docs/Model/DeleteAISession200Response.md docs/Model/DeleteBackup200Response.md docs/Model/DeleteCustomTool200Response.md +docs/Model/DeleteFile200Response.md +docs/Model/DeleteTask200Response.md +docs/Model/DeleteTask409Response.md docs/Model/DeleteVectorCollection200Response.md docs/Model/DownloadBackup200Response.md docs/Model/Embeddings200Response.md @@ -130,17 +140,29 @@ docs/Model/GetAIModel200Response.md docs/Model/GetAIModel200ResponseCapabilities.md docs/Model/GetAIModel200ResponsePricing.md docs/Model/GetAIModel404Response.md +docs/Model/GetAIOrchestrationStatus200Response.md +docs/Model/GetAIOrchestrationStatus200ResponseToolsInner.md +docs/Model/GetAIOrchestrationStatus404Response.md docs/Model/GetAISession200Response.md docs/Model/GetAIToolExecutionStatus200Response.md docs/Model/GetAIToolExecutionStatus200ResponseResult.md docs/Model/GetAIToolExecutionStatus404Response.md docs/Model/GetAIUsageStats200Response.md docs/Model/GetAIUsageStats200ResponseByModelValue.md +docs/Model/GetDependencyGraph200Response.md +docs/Model/GetDurableExecutionStatus200Response.md +docs/Model/GetDurableExecutionStatus200ResponseError.md +docs/Model/GetDurableExecutionStatus200ResponsePendingToolsInner.md +docs/Model/GetDurableExecutionStatus200ResponseResult.md +docs/Model/GetDurableExecutionStatus200ResponseResultResponse.md +docs/Model/GetDurableExecutionStatus200ResponseResultUsage.md docs/Model/GetEcrLoginCredentials200Response.md docs/Model/GetEnvironmentLogs200Response.md docs/Model/GetEnvironmentLogs200ResponseLogEventsInner.md +docs/Model/GetFile200Response.md docs/Model/GetSshAccessCredentials200Response.md docs/Model/GetSshAccessCredentials200ResponseCredentials.md +docs/Model/GetTask200Response.md docs/Model/GetVectorCollection200Response.md docs/Model/GetVectorCollection200ResponseCollection.md docs/Model/ImageGeneration200Response.md @@ -174,6 +196,10 @@ docs/Model/ListBackups200ResponseBackupsInner.md docs/Model/ListBackups422Response.md docs/Model/ListCustomTools200Response.md docs/Model/ListCustomTools200ResponseToolsInner.md +docs/Model/ListFiles200Response.md +docs/Model/ListFiles200ResponseFilesInner.md +docs/Model/ListTasks200Response.md +docs/Model/ListTasks200ResponseTasksInner.md docs/Model/ListVectorCollections200Response.md docs/Model/ListVectorCollections200ResponseCollectionsInner.md docs/Model/OrganizationsList200ResponseInner.md @@ -184,11 +210,15 @@ docs/Model/PatchEnvironmentComposeRequest.md docs/Model/PatchEnvironmentComposeRequestSpotConfiguration.md docs/Model/PurgeCreateRequest.md docs/Model/QueryVectorCollection200Response.md +docs/Model/QueryVectorCollection200ResponsePagination.md docs/Model/QueryVectorCollection200ResponseResultsInner.md -docs/Model/QueryVectorCollection200ResponseResultsInnerMetadata.md docs/Model/QueryVectorCollectionRequest.md +docs/Model/QueryVectorCollectionRequestFilter.md docs/Model/ScalingPolicy.md docs/Model/SpotConfiguration.md +docs/Model/SubmitToolCallback200Response.md +docs/Model/SubmitToolCallbackRequest.md +docs/Model/SubmitToolCallbackRequestToolResultsInner.md docs/Model/SyncOperation.md docs/Model/SyncToEnvironmentRequest.md docs/Model/UpdateAIAgent200Response.md @@ -200,6 +230,10 @@ docs/Model/UpdateCronJobRequest.md docs/Model/UpdateEnvironmentRequest.md docs/Model/UpdateEnvironmentStateRequest.md docs/Model/UpdateEnvironmentVariableRequest.md +docs/Model/UpdateTask200Response.md +docs/Model/UpdateTaskRequest.md +docs/Model/UploadFile201Response.md +docs/Model/UploadFileRequest.md docs/Model/UploadVectorDocuments200Response.md docs/Model/UploadVectorDocumentsRequest.md docs/Model/UploadVectorDocumentsRequestDocumentsInner.md @@ -315,10 +349,12 @@ git_push.sh phpunit.xml.dist src/Api/AIAgentsApi.php src/Api/AICustomToolsApi.php +src/Api/AIFileStorageApi.php src/Api/AIInferenceApi.php src/Api/AIModelsApi.php src/Api/AIMonitoringApi.php src/Api/AISessionsApi.php +src/Api/AITaskManagementApi.php src/Api/AIToolsApi.php src/Api/AIVectorDatabaseApi.php src/Api/ApplicationsApi.php @@ -333,6 +369,7 @@ src/Api/DomainsApi.php src/Api/EnvironmentsApi.php src/Api/HeadersApi.php src/Api/KVApi.php +src/Api/OrchestrationApi.php src/Api/OrganizationsApi.php src/Api/ProjectsApi.php src/Api/PurgeApi.php @@ -360,6 +397,7 @@ src/Model/ChatInference200ResponseResponseToolUseOneOf.php src/Model/ChatInference200ResponseResponseToolUseOneOf1Inner.php src/Model/ChatInference200ResponseResponseToolUseOneOfResult.php src/Model/ChatInference200ResponseUsage.php +src/Model/ChatInference202Response.php src/Model/ChatInferenceRequest.php src/Model/ChatInferenceRequestMessagesInner.php src/Model/ChatInferenceRequestMessagesInnerContent.php @@ -385,6 +423,7 @@ src/Model/ChatInferenceStreamRequestMessagesInnerContent.php src/Model/ChatWithAIAgent200Response.php src/Model/ChatWithAIAgent200ResponseResponse.php src/Model/ChatWithAIAgent200ResponseResponseUsage.php +src/Model/ChatWithAIAgent202Response.php src/Model/ChatWithAIAgentRequest.php src/Model/Command.php src/Model/Compose.php @@ -417,6 +456,8 @@ src/Model/CreateCustomToolRequest.php src/Model/CreateEnvironment403Response.php src/Model/CreateEnvironmentRequest.php src/Model/CreateEnvironmentRequestEnvironmentInner.php +src/Model/CreateTask201Response.php +src/Model/CreateTaskRequest.php src/Model/CreateVectorCollection201Response.php src/Model/CreateVectorCollection201ResponseCollection.php src/Model/CreateVectorCollectionRequest.php @@ -427,6 +468,9 @@ src/Model/DeleteAIAgent200Response.php src/Model/DeleteAISession200Response.php src/Model/DeleteBackup200Response.php src/Model/DeleteCustomTool200Response.php +src/Model/DeleteFile200Response.php +src/Model/DeleteTask200Response.php +src/Model/DeleteTask409Response.php src/Model/DeleteVectorCollection200Response.php src/Model/DownloadBackup200Response.php src/Model/Embeddings200Response.php @@ -445,17 +489,29 @@ src/Model/GetAIModel200Response.php src/Model/GetAIModel200ResponseCapabilities.php src/Model/GetAIModel200ResponsePricing.php src/Model/GetAIModel404Response.php +src/Model/GetAIOrchestrationStatus200Response.php +src/Model/GetAIOrchestrationStatus200ResponseToolsInner.php +src/Model/GetAIOrchestrationStatus404Response.php src/Model/GetAISession200Response.php src/Model/GetAIToolExecutionStatus200Response.php src/Model/GetAIToolExecutionStatus200ResponseResult.php src/Model/GetAIToolExecutionStatus404Response.php src/Model/GetAIUsageStats200Response.php src/Model/GetAIUsageStats200ResponseByModelValue.php +src/Model/GetDependencyGraph200Response.php +src/Model/GetDurableExecutionStatus200Response.php +src/Model/GetDurableExecutionStatus200ResponseError.php +src/Model/GetDurableExecutionStatus200ResponsePendingToolsInner.php +src/Model/GetDurableExecutionStatus200ResponseResult.php +src/Model/GetDurableExecutionStatus200ResponseResultResponse.php +src/Model/GetDurableExecutionStatus200ResponseResultUsage.php src/Model/GetEcrLoginCredentials200Response.php src/Model/GetEnvironmentLogs200Response.php src/Model/GetEnvironmentLogs200ResponseLogEventsInner.php +src/Model/GetFile200Response.php src/Model/GetSshAccessCredentials200Response.php src/Model/GetSshAccessCredentials200ResponseCredentials.php +src/Model/GetTask200Response.php src/Model/GetVectorCollection200Response.php src/Model/GetVectorCollection200ResponseCollection.php src/Model/ImageGeneration200Response.php @@ -489,6 +545,10 @@ src/Model/ListBackups200ResponseBackupsInner.php src/Model/ListBackups422Response.php src/Model/ListCustomTools200Response.php src/Model/ListCustomTools200ResponseToolsInner.php +src/Model/ListFiles200Response.php +src/Model/ListFiles200ResponseFilesInner.php +src/Model/ListTasks200Response.php +src/Model/ListTasks200ResponseTasksInner.php src/Model/ListVectorCollections200Response.php src/Model/ListVectorCollections200ResponseCollectionsInner.php src/Model/ModelInterface.php @@ -500,11 +560,15 @@ src/Model/PatchEnvironmentComposeRequest.php src/Model/PatchEnvironmentComposeRequestSpotConfiguration.php src/Model/PurgeCreateRequest.php src/Model/QueryVectorCollection200Response.php +src/Model/QueryVectorCollection200ResponsePagination.php src/Model/QueryVectorCollection200ResponseResultsInner.php -src/Model/QueryVectorCollection200ResponseResultsInnerMetadata.php src/Model/QueryVectorCollectionRequest.php +src/Model/QueryVectorCollectionRequestFilter.php src/Model/ScalingPolicy.php src/Model/SpotConfiguration.php +src/Model/SubmitToolCallback200Response.php +src/Model/SubmitToolCallbackRequest.php +src/Model/SubmitToolCallbackRequestToolResultsInner.php src/Model/SyncOperation.php src/Model/SyncToEnvironmentRequest.php src/Model/UpdateAIAgent200Response.php @@ -516,6 +580,10 @@ src/Model/UpdateCronJobRequest.php src/Model/UpdateEnvironmentRequest.php src/Model/UpdateEnvironmentStateRequest.php src/Model/UpdateEnvironmentVariableRequest.php +src/Model/UpdateTask200Response.php +src/Model/UpdateTaskRequest.php +src/Model/UploadFile201Response.php +src/Model/UploadFileRequest.php src/Model/UploadVectorDocuments200Response.php src/Model/UploadVectorDocumentsRequest.php src/Model/UploadVectorDocumentsRequestDocumentsInner.php diff --git a/README.md b/README.md index 7f61fd2..6f5f058 100644 --- a/README.md +++ b/README.md @@ -86,10 +86,16 @@ Class | Method | HTTP request | Description *AICustomToolsApi* | [**createCustomTool**](docs/Api/AICustomToolsApi.md#createcustomtool) | **POST** /api/v3/organizations/{organisation}/ai/custom-tools | Register Custom Edge Function Tool *AICustomToolsApi* | [**deleteCustomTool**](docs/Api/AICustomToolsApi.md#deletecustomtool) | **DELETE** /api/v3/organizations/{organisation}/ai/custom-tools/{toolName} | Delete Custom Tool *AICustomToolsApi* | [**listCustomTools**](docs/Api/AICustomToolsApi.md#listcustomtools) | **GET** /api/v3/organizations/{organisation}/ai/custom-tools | List Custom Tools +*AIFileStorageApi* | [**deleteFile**](docs/Api/AIFileStorageApi.md#deletefile) | **DELETE** /api/v3/organizations/{organisation}/ai/files/{fileId} | Delete File +*AIFileStorageApi* | [**getFile**](docs/Api/AIFileStorageApi.md#getfile) | **GET** /api/v3/organizations/{organisation}/ai/files/{fileId} | Get File +*AIFileStorageApi* | [**listFiles**](docs/Api/AIFileStorageApi.md#listfiles) | **GET** /api/v3/organizations/{organisation}/ai/files | List Files +*AIFileStorageApi* | [**uploadFile**](docs/Api/AIFileStorageApi.md#uploadfile) | **POST** /api/v3/organizations/{organisation}/ai/files | Upload File to S3 *AIInferenceApi* | [**chatInference**](docs/Api/AIInferenceApi.md#chatinference) | **POST** /api/v3/organizations/{organisation}/ai/chat | Chat inference via API Gateway (buffered responses) with multimodal support *AIInferenceApi* | [**chatInferenceStream**](docs/Api/AIInferenceApi.md#chatinferencestream) | **POST** /api/v3/organizations/{organisation}/ai/chat/stream | Chat inference via streaming endpoint (true HTTP streaming) with multimodal support *AIInferenceApi* | [**embeddings**](docs/Api/AIInferenceApi.md#embeddings) | **POST** /api/v3/organizations/{organisation}/ai/embeddings | Generate text embeddings for semantic search and RAG applications +*AIInferenceApi* | [**getDurableExecutionStatus**](docs/Api/AIInferenceApi.md#getdurableexecutionstatus) | **GET** /api/v3/organizations/{organisation}/ai/chat/executions/{identifier} | Get Durable Execution Status *AIInferenceApi* | [**imageGeneration**](docs/Api/AIInferenceApi.md#imagegeneration) | **POST** /api/v3/organizations/{organisation}/ai/image-generation | Generate images with Amazon Nova Canvas +*AIInferenceApi* | [**submitToolCallback**](docs/Api/AIInferenceApi.md#submittoolcallback) | **POST** /api/v3/organizations/{organisation}/ai/chat/callback | Submit Client Tool Results (Callback) *AIModelsApi* | [**getAIModel**](docs/Api/AIModelsApi.md#getaimodel) | **GET** /api/v3/organizations/{organisation}/ai/models/{modelId} | Get AI Model Details *AIModelsApi* | [**listAIModels**](docs/Api/AIModelsApi.md#listaimodels) | **GET** /api/v3/organizations/{organisation}/ai/models | List available AI models for an organization *AIMonitoringApi* | [**getAIUsageStats**](docs/Api/AIMonitoringApi.md#getaiusagestats) | **GET** /api/v3/organizations/{organisation}/ai/usage | Get AI usage statistics @@ -99,6 +105,13 @@ Class | Method | HTTP request | Description *AISessionsApi* | [**getAISession**](docs/Api/AISessionsApi.md#getaisession) | **GET** /api/v3/organizations/{organisation}/ai/sessions/{sessionId} | Get a specific chat session *AISessionsApi* | [**listAISessions**](docs/Api/AISessionsApi.md#listaisessions) | **GET** /api/v3/organizations/{organisation}/ai/sessions | List chat sessions with multi-tenant filtering *AISessionsApi* | [**updateAISession**](docs/Api/AISessionsApi.md#updateaisession) | **PUT** /api/v3/organizations/{organisation}/ai/sessions/{sessionId} | Update Session +*AITaskManagementApi* | [**createTask**](docs/Api/AITaskManagementApi.md#createtask) | **POST** /api/v3/organizations/{organisation}/ai/tasks | Create a new task +*AITaskManagementApi* | [**deleteTask**](docs/Api/AITaskManagementApi.md#deletetask) | **DELETE** /api/v3/organizations/{organisation}/ai/tasks/{taskId} | Delete a task +*AITaskManagementApi* | [**getDependencyGraph**](docs/Api/AITaskManagementApi.md#getdependencygraph) | **GET** /api/v3/organizations/{organisation}/ai/tasks/{taskListId}/dependency-graph | Get dependency graph for a task list +*AITaskManagementApi* | [**getTask**](docs/Api/AITaskManagementApi.md#gettask) | **GET** /api/v3/organizations/{organisation}/ai/tasks/{taskId} | Get task details +*AITaskManagementApi* | [**listTasks**](docs/Api/AITaskManagementApi.md#listtasks) | **GET** /api/v3/organizations/{organisation}/ai/tasks | List tasks with optional filtering +*AITaskManagementApi* | [**updateTask**](docs/Api/AITaskManagementApi.md#updatetask) | **PUT** /api/v3/organizations/{organisation}/ai/tasks/{taskId} | Update a task +*AIToolsApi* | [**getAIOrchestrationStatus**](docs/Api/AIToolsApi.md#getaiorchestrationstatus) | **GET** /api/v3/organizations/{organisation}/ai/tools/orchestrations/{orchestrationId} | Get Orchestration Status *AIToolsApi* | [**getAIToolExecutionStatus**](docs/Api/AIToolsApi.md#getaitoolexecutionstatus) | **GET** /api/v3/organizations/{organisation}/ai/tools/executions/{executionId} | Get async tool execution status and result *AIToolsApi* | [**listAIToolExecutions**](docs/Api/AIToolsApi.md#listaitoolexecutions) | **GET** /api/v3/organizations/{organisation}/ai/tools/executions | List tool executions for monitoring and debugging *AIToolsApi* | [**listAIToolNames**](docs/Api/AIToolsApi.md#listaitoolnames) | **GET** /api/v3/organizations/{organisation}/ai/tools/names | List tool names only (lightweight response) @@ -173,6 +186,7 @@ Class | Method | HTTP request | Description *KVApi* | [**kVItemsUpdate**](docs/Api/KVApi.md#kvitemsupdate) | **PUT** /api/v2/organizations/{organization}/projects/{project}/kv/{store_id}/items/{key} | Update an item in a kv store *KVApi* | [**kVList**](docs/Api/KVApi.md#kvlist) | **GET** /api/v2/organizations/{organization}/projects/{project}/kv | List key-value stores *KVApi* | [**kVShow**](docs/Api/KVApi.md#kvshow) | **GET** /api/v2/organizations/{organization}/projects/{project}/kv/{store_id} | Get a kv store +*OrchestrationApi* | [**getAIOrchestrationStatus**](docs/Api/OrchestrationApi.md#getaiorchestrationstatus) | **GET** /api/v3/organizations/{organisation}/ai/tools/orchestrations/{orchestrationId} | Get Orchestration Status *OrganizationsApi* | [**organizationsList**](docs/Api/OrganizationsApi.md#organizationslist) | **GET** /api/v2/organizations | Retrieve all organizations *OrganizationsApi* | [**organizationsRead**](docs/Api/OrganizationsApi.md#organizationsread) | **GET** /api/v2/organizations/{organization} | Get details of a single organization *ProjectsApi* | [**projectsCreate**](docs/Api/ProjectsApi.md#projectscreate) | **POST** /api/v2/organizations/{organization}/projects | Create a new project @@ -256,6 +270,7 @@ Class | Method | HTTP request | Description - [ChatInference200ResponseResponseToolUseOneOf1Inner](docs/Model/ChatInference200ResponseResponseToolUseOneOf1Inner.md) - [ChatInference200ResponseResponseToolUseOneOfResult](docs/Model/ChatInference200ResponseResponseToolUseOneOfResult.md) - [ChatInference200ResponseUsage](docs/Model/ChatInference200ResponseUsage.md) +- [ChatInference202Response](docs/Model/ChatInference202Response.md) - [ChatInferenceRequest](docs/Model/ChatInferenceRequest.md) - [ChatInferenceRequestMessagesInner](docs/Model/ChatInferenceRequestMessagesInner.md) - [ChatInferenceRequestMessagesInnerContent](docs/Model/ChatInferenceRequestMessagesInnerContent.md) @@ -281,6 +296,7 @@ Class | Method | HTTP request | Description - [ChatWithAIAgent200Response](docs/Model/ChatWithAIAgent200Response.md) - [ChatWithAIAgent200ResponseResponse](docs/Model/ChatWithAIAgent200ResponseResponse.md) - [ChatWithAIAgent200ResponseResponseUsage](docs/Model/ChatWithAIAgent200ResponseResponseUsage.md) +- [ChatWithAIAgent202Response](docs/Model/ChatWithAIAgent202Response.md) - [ChatWithAIAgentRequest](docs/Model/ChatWithAIAgentRequest.md) - [Command](docs/Model/Command.md) - [Compose](docs/Model/Compose.md) @@ -313,6 +329,8 @@ Class | Method | HTTP request | Description - [CreateEnvironment403Response](docs/Model/CreateEnvironment403Response.md) - [CreateEnvironmentRequest](docs/Model/CreateEnvironmentRequest.md) - [CreateEnvironmentRequestEnvironmentInner](docs/Model/CreateEnvironmentRequestEnvironmentInner.md) +- [CreateTask201Response](docs/Model/CreateTask201Response.md) +- [CreateTaskRequest](docs/Model/CreateTaskRequest.md) - [CreateVectorCollection201Response](docs/Model/CreateVectorCollection201Response.md) - [CreateVectorCollection201ResponseCollection](docs/Model/CreateVectorCollection201ResponseCollection.md) - [CreateVectorCollectionRequest](docs/Model/CreateVectorCollectionRequest.md) @@ -323,6 +341,9 @@ Class | Method | HTTP request | Description - [DeleteAISession200Response](docs/Model/DeleteAISession200Response.md) - [DeleteBackup200Response](docs/Model/DeleteBackup200Response.md) - [DeleteCustomTool200Response](docs/Model/DeleteCustomTool200Response.md) +- [DeleteFile200Response](docs/Model/DeleteFile200Response.md) +- [DeleteTask200Response](docs/Model/DeleteTask200Response.md) +- [DeleteTask409Response](docs/Model/DeleteTask409Response.md) - [DeleteVectorCollection200Response](docs/Model/DeleteVectorCollection200Response.md) - [DownloadBackup200Response](docs/Model/DownloadBackup200Response.md) - [Embeddings200Response](docs/Model/Embeddings200Response.md) @@ -341,17 +362,29 @@ Class | Method | HTTP request | Description - [GetAIModel200ResponseCapabilities](docs/Model/GetAIModel200ResponseCapabilities.md) - [GetAIModel200ResponsePricing](docs/Model/GetAIModel200ResponsePricing.md) - [GetAIModel404Response](docs/Model/GetAIModel404Response.md) +- [GetAIOrchestrationStatus200Response](docs/Model/GetAIOrchestrationStatus200Response.md) +- [GetAIOrchestrationStatus200ResponseToolsInner](docs/Model/GetAIOrchestrationStatus200ResponseToolsInner.md) +- [GetAIOrchestrationStatus404Response](docs/Model/GetAIOrchestrationStatus404Response.md) - [GetAISession200Response](docs/Model/GetAISession200Response.md) - [GetAIToolExecutionStatus200Response](docs/Model/GetAIToolExecutionStatus200Response.md) - [GetAIToolExecutionStatus200ResponseResult](docs/Model/GetAIToolExecutionStatus200ResponseResult.md) - [GetAIToolExecutionStatus404Response](docs/Model/GetAIToolExecutionStatus404Response.md) - [GetAIUsageStats200Response](docs/Model/GetAIUsageStats200Response.md) - [GetAIUsageStats200ResponseByModelValue](docs/Model/GetAIUsageStats200ResponseByModelValue.md) +- [GetDependencyGraph200Response](docs/Model/GetDependencyGraph200Response.md) +- [GetDurableExecutionStatus200Response](docs/Model/GetDurableExecutionStatus200Response.md) +- [GetDurableExecutionStatus200ResponseError](docs/Model/GetDurableExecutionStatus200ResponseError.md) +- [GetDurableExecutionStatus200ResponsePendingToolsInner](docs/Model/GetDurableExecutionStatus200ResponsePendingToolsInner.md) +- [GetDurableExecutionStatus200ResponseResult](docs/Model/GetDurableExecutionStatus200ResponseResult.md) +- [GetDurableExecutionStatus200ResponseResultResponse](docs/Model/GetDurableExecutionStatus200ResponseResultResponse.md) +- [GetDurableExecutionStatus200ResponseResultUsage](docs/Model/GetDurableExecutionStatus200ResponseResultUsage.md) - [GetEcrLoginCredentials200Response](docs/Model/GetEcrLoginCredentials200Response.md) - [GetEnvironmentLogs200Response](docs/Model/GetEnvironmentLogs200Response.md) - [GetEnvironmentLogs200ResponseLogEventsInner](docs/Model/GetEnvironmentLogs200ResponseLogEventsInner.md) +- [GetFile200Response](docs/Model/GetFile200Response.md) - [GetSshAccessCredentials200Response](docs/Model/GetSshAccessCredentials200Response.md) - [GetSshAccessCredentials200ResponseCredentials](docs/Model/GetSshAccessCredentials200ResponseCredentials.md) +- [GetTask200Response](docs/Model/GetTask200Response.md) - [GetVectorCollection200Response](docs/Model/GetVectorCollection200Response.md) - [GetVectorCollection200ResponseCollection](docs/Model/GetVectorCollection200ResponseCollection.md) - [ImageGeneration200Response](docs/Model/ImageGeneration200Response.md) @@ -385,6 +418,10 @@ Class | Method | HTTP request | Description - [ListBackups422Response](docs/Model/ListBackups422Response.md) - [ListCustomTools200Response](docs/Model/ListCustomTools200Response.md) - [ListCustomTools200ResponseToolsInner](docs/Model/ListCustomTools200ResponseToolsInner.md) +- [ListFiles200Response](docs/Model/ListFiles200Response.md) +- [ListFiles200ResponseFilesInner](docs/Model/ListFiles200ResponseFilesInner.md) +- [ListTasks200Response](docs/Model/ListTasks200Response.md) +- [ListTasks200ResponseTasksInner](docs/Model/ListTasks200ResponseTasksInner.md) - [ListVectorCollections200Response](docs/Model/ListVectorCollections200Response.md) - [ListVectorCollections200ResponseCollectionsInner](docs/Model/ListVectorCollections200ResponseCollectionsInner.md) - [OrganizationsList200ResponseInner](docs/Model/OrganizationsList200ResponseInner.md) @@ -395,11 +432,15 @@ Class | Method | HTTP request | Description - [PatchEnvironmentComposeRequestSpotConfiguration](docs/Model/PatchEnvironmentComposeRequestSpotConfiguration.md) - [PurgeCreateRequest](docs/Model/PurgeCreateRequest.md) - [QueryVectorCollection200Response](docs/Model/QueryVectorCollection200Response.md) +- [QueryVectorCollection200ResponsePagination](docs/Model/QueryVectorCollection200ResponsePagination.md) - [QueryVectorCollection200ResponseResultsInner](docs/Model/QueryVectorCollection200ResponseResultsInner.md) -- [QueryVectorCollection200ResponseResultsInnerMetadata](docs/Model/QueryVectorCollection200ResponseResultsInnerMetadata.md) - [QueryVectorCollectionRequest](docs/Model/QueryVectorCollectionRequest.md) +- [QueryVectorCollectionRequestFilter](docs/Model/QueryVectorCollectionRequestFilter.md) - [ScalingPolicy](docs/Model/ScalingPolicy.md) - [SpotConfiguration](docs/Model/SpotConfiguration.md) +- [SubmitToolCallback200Response](docs/Model/SubmitToolCallback200Response.md) +- [SubmitToolCallbackRequest](docs/Model/SubmitToolCallbackRequest.md) +- [SubmitToolCallbackRequestToolResultsInner](docs/Model/SubmitToolCallbackRequestToolResultsInner.md) - [SyncOperation](docs/Model/SyncOperation.md) - [SyncToEnvironmentRequest](docs/Model/SyncToEnvironmentRequest.md) - [UpdateAIAgent200Response](docs/Model/UpdateAIAgent200Response.md) @@ -411,6 +452,10 @@ Class | Method | HTTP request | Description - [UpdateEnvironmentRequest](docs/Model/UpdateEnvironmentRequest.md) - [UpdateEnvironmentStateRequest](docs/Model/UpdateEnvironmentStateRequest.md) - [UpdateEnvironmentVariableRequest](docs/Model/UpdateEnvironmentVariableRequest.md) +- [UpdateTask200Response](docs/Model/UpdateTask200Response.md) +- [UpdateTaskRequest](docs/Model/UpdateTaskRequest.md) +- [UploadFile201Response](docs/Model/UploadFile201Response.md) +- [UploadFileRequest](docs/Model/UploadFileRequest.md) - [UploadVectorDocuments200Response](docs/Model/UploadVectorDocuments200Response.md) - [UploadVectorDocumentsRequest](docs/Model/UploadVectorDocumentsRequest.md) - [UploadVectorDocumentsRequestDocumentsInner](docs/Model/UploadVectorDocumentsRequestDocumentsInner.md) @@ -547,7 +592,7 @@ vendor/bin/phpunit This PHP package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: `4.8.0` - - Package version: `4.8.0` +- API version: `4.9.0` + - Package version: `4.9.0` - Generator version: `7.13.0` - Build package: `org.openapitools.codegen.languages.PhpClientCodegen` diff --git a/composer.json b/composer.json index 004469d..986243d 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "quantcdn/quant-php-client", - "version": "4.8.0", + "version": "4.9.0", "description": "Unified API for QuantCDN Admin and QuantCloud Platform services", "keywords": [ "openapitools", diff --git a/composer.lock b/composer.lock index d60e330..e229c57 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "75dc8c3a936e147271a9d8eef325e8f9", + "content-hash": "19a99b66d2ea6c5b2a893f8f295c1a24", "packages": [ { "name": "guzzlehttp/guzzle", @@ -1231,16 +1231,16 @@ }, { "name": "phpunit/phpunit", - "version": "9.6.31", + "version": "9.6.34", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "945d0b7f346a084ce5549e95289962972c4272e5" + "reference": "b36f02317466907a230d3aa1d34467041271ef4a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/945d0b7f346a084ce5549e95289962972c4272e5", - "reference": "945d0b7f346a084ce5549e95289962972c4272e5", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/b36f02317466907a230d3aa1d34467041271ef4a", + "reference": "b36f02317466907a230d3aa1d34467041271ef4a", "shasum": "" }, "require": { @@ -1262,7 +1262,7 @@ "phpunit/php-timer": "^5.0.3", "sebastian/cli-parser": "^1.0.2", "sebastian/code-unit": "^1.0.8", - "sebastian/comparator": "^4.0.9", + "sebastian/comparator": "^4.0.10", "sebastian/diff": "^4.0.6", "sebastian/environment": "^5.1.5", "sebastian/exporter": "^4.0.8", @@ -1314,7 +1314,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/phpunit/issues", "security": "https://github.com/sebastianbergmann/phpunit/security/policy", - "source": "https://github.com/sebastianbergmann/phpunit/tree/9.6.31" + "source": "https://github.com/sebastianbergmann/phpunit/tree/9.6.34" }, "funding": [ { @@ -1338,7 +1338,7 @@ "type": "tidelift" } ], - "time": "2025-12-06T07:45:52+00:00" + "time": "2026-01-27T05:45:00+00:00" }, { "name": "sebastian/cli-parser", @@ -1509,16 +1509,16 @@ }, { "name": "sebastian/comparator", - "version": "4.0.9", + "version": "4.0.10", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/comparator.git", - "reference": "67a2df3a62639eab2cc5906065e9805d4fd5dfc5" + "reference": "e4df00b9b3571187db2831ae9aada2c6efbd715d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/67a2df3a62639eab2cc5906065e9805d4fd5dfc5", - "reference": "67a2df3a62639eab2cc5906065e9805d4fd5dfc5", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/e4df00b9b3571187db2831ae9aada2c6efbd715d", + "reference": "e4df00b9b3571187db2831ae9aada2c6efbd715d", "shasum": "" }, "require": { @@ -1571,7 +1571,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/comparator/issues", - "source": "https://github.com/sebastianbergmann/comparator/tree/4.0.9" + "source": "https://github.com/sebastianbergmann/comparator/tree/4.0.10" }, "funding": [ { @@ -1591,7 +1591,7 @@ "type": "tidelift" } ], - "time": "2025-08-10T06:51:50+00:00" + "time": "2026-01-24T09:22:56+00:00" }, { "name": "sebastian/complexity", diff --git a/docs/Api/AIAgentsApi.md b/docs/Api/AIAgentsApi.md index 80efc0b..0108a8b 100644 --- a/docs/Api/AIAgentsApi.md +++ b/docs/Api/AIAgentsApi.md @@ -20,7 +20,7 @@ chatWithAIAgent($organisation, $agent_id, $chat_with_ai_agent_request): \QuantCl Chat with AI Agent -Initiates a chat session with a specific AI agent. The agent's configuration (system prompt, temperature, model, allowed tools) is automatically applied. * * **Key Features:** * - **Session Management**: Automatic session creation and state tracking * - **Multi-turn Conversations**: Full conversation history maintained server-side * - Agent's system prompt is prepended to conversation * - Only agent's allowed tools are available * - All tools are auto-executed (no client confirmation) * - Temperature and model from agent config * * **Session Support:** * - Omit `sessionId` to create a new session automatically * - Include `sessionId` to continue an existing conversation * - Sessions expire after 60 minutes of inactivity * - Use `/sessions/{sessionId}` to retrieve full conversation history +Initiates a chat session with a specific AI agent. The agent's configuration (system prompt, temperature, model, allowed tools) is automatically applied. * * **Key Features:** * - **Session Management**: Automatic session creation and state tracking * - **Multi-turn Conversations**: Full conversation history maintained server-side * - Agent's system prompt is prepended to conversation * - Only agent's allowed tools are available * - All tools are auto-executed on cloud (no client confirmation needed) * - Temperature and model from agent config * - Supports sync, streaming, and async modes * * **Execution Modes:** * - **Sync Mode** (default): Standard JSON response, waits for completion * - **Streaming Mode**: Set `stream: true` for SSE token-by-token responses * - **Async Mode**: Set `async: true` for long-running tasks with polling * * **Async/Durable Mode (`async: true`):** * - Returns immediately with `requestId` and `pollUrl` (HTTP 202) * - Uses AWS Lambda Durable Functions for long-running agent tasks * - All tools are auto-executed on cloud (no `waiting_callback` state) * - Poll `/ai/chat/executions/{requestId}` for status * - Ideal for agents with slow tools (image generation, web search, etc.) * * **Session Support:** * - Omit `sessionId` to create a new session automatically * - Include `sessionId` to continue an existing conversation * - Sessions expire after 60 minutes of inactivity * - Sessions work in all modes (sync, streaming, async) * - Use `/sessions/{sessionId}` to retrieve full conversation history ### Example diff --git a/docs/Api/AIFileStorageApi.md b/docs/Api/AIFileStorageApi.md new file mode 100644 index 0000000..7015246 --- /dev/null +++ b/docs/Api/AIFileStorageApi.md @@ -0,0 +1,263 @@ +# QuantClient\AIFileStorageApi + +All URIs are relative to https://dashboard.quantcdn.io, except if the operation defines another base path. + +| Method | HTTP request | Description | +| ------------- | ------------- | ------------- | +| [**deleteFile()**](AIFileStorageApi.md#deleteFile) | **DELETE** /api/v3/organizations/{organisation}/ai/files/{fileId} | Delete File | +| [**getFile()**](AIFileStorageApi.md#getFile) | **GET** /api/v3/organizations/{organisation}/ai/files/{fileId} | Get File | +| [**listFiles()**](AIFileStorageApi.md#listFiles) | **GET** /api/v3/organizations/{organisation}/ai/files | List Files | +| [**uploadFile()**](AIFileStorageApi.md#uploadFile) | **POST** /api/v3/organizations/{organisation}/ai/files | Upload File to S3 | + + +## `deleteFile()` + +```php +deleteFile($organisation, $file_id): \QuantClient\Model\DeleteFile200Response +``` + +Delete File + +Deletes a file from S3 storage. + +### Example + +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + + +$apiInstance = new QuantClient\Api\AIFileStorageApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$organisation = 'organisation_example'; // string | The organisation ID +$file_id = 'file_id_example'; // string | The file ID + +try { + $result = $apiInstance->deleteFile($organisation, $file_id); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling AIFileStorageApi->deleteFile: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **organisation** | **string**| The organisation ID | | +| **file_id** | **string**| The file ID | | + +### Return type + +[**\QuantClient\Model\DeleteFile200Response**](../Model/DeleteFile200Response.md) + +### Authorization + +[BearerAuth](../../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + +[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) +[[Back to Model list]](../../README.md#models) +[[Back to README]](../../README.md) + +## `getFile()` + +```php +getFile($organisation, $file_id): \QuantClient\Model\GetFile200Response +``` + +Get File + +Retrieves file metadata and a presigned download URL (valid for 1 hour). + +### Example + +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + + +$apiInstance = new QuantClient\Api\AIFileStorageApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$organisation = 'organisation_example'; // string | The organisation ID +$file_id = 'file_id_example'; // string | The file ID + +try { + $result = $apiInstance->getFile($organisation, $file_id); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling AIFileStorageApi->getFile: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **organisation** | **string**| The organisation ID | | +| **file_id** | **string**| The file ID | | + +### Return type + +[**\QuantClient\Model\GetFile200Response**](../Model/GetFile200Response.md) + +### Authorization + +[BearerAuth](../../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + +[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) +[[Back to Model list]](../../README.md#models) +[[Back to README]](../../README.md) + +## `listFiles()` + +```php +listFiles($organisation, $filter, $limit, $cursor): \QuantClient\Model\ListFiles200Response +``` + +List Files + +Lists files stored in S3 for this organization with optional metadata filtering and pagination. + +### Example + +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + + +$apiInstance = new QuantClient\Api\AIFileStorageApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$organisation = 'organisation_example'; // string | The organisation ID +$filter = {}; // string | JSON-encoded metadata filter. Supports exact match and array contains filters. +$limit = 50; // int | Maximum files to return +$cursor = 'cursor_example'; // string | Pagination cursor from previous response + +try { + $result = $apiInstance->listFiles($organisation, $filter, $limit, $cursor); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling AIFileStorageApi->listFiles: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **organisation** | **string**| The organisation ID | | +| **filter** | **string**| JSON-encoded metadata filter. Supports exact match and array contains filters. | [optional] | +| **limit** | **int**| Maximum files to return | [optional] [default to 50] | +| **cursor** | **string**| Pagination cursor from previous response | [optional] | + +### Return type + +[**\QuantClient\Model\ListFiles200Response**](../Model/ListFiles200Response.md) + +### Authorization + +[BearerAuth](../../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + +[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) +[[Back to Model list]](../../README.md#models) +[[Back to README]](../../README.md) + +## `uploadFile()` + +```php +uploadFile($organisation, $upload_file_request): \QuantClient\Model\UploadFile201Response +``` + +Upload File to S3 + +Uploads a file to S3 storage for later retrieval. * * **Two Upload Modes:** * * 1. **Direct Upload (≤7MB):** Send base64-encoded content in request body. * * 2. **Presigned URL Upload (any size):** Set `requestUploadUrl: true` to get a presigned S3 PUT URL, then upload directly to S3. * * **Supported Content Types:** * - Images: image/png, image/jpeg, image/gif, image/webp, image/svg+xml * - Documents: application/pdf, text/plain, text/markdown, text/html * - Code: text/javascript, application/json, text/css, text/yaml * - Archives: application/zip, application/gzip * - Video: video/mp4, video/webm (use presigned URL for large files) * * **Metadata:** * Attach any custom metadata for filtering. `artifactType` is auto-populated from contentType if not provided. + +### Example + +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + + +$apiInstance = new QuantClient\Api\AIFileStorageApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$organisation = 'organisation_example'; // string | The organisation ID +$upload_file_request = new \QuantClient\Model\UploadFileRequest(); // \QuantClient\Model\UploadFileRequest + +try { + $result = $apiInstance->uploadFile($organisation, $upload_file_request); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling AIFileStorageApi->uploadFile: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **organisation** | **string**| The organisation ID | | +| **upload_file_request** | [**\QuantClient\Model\UploadFileRequest**](../Model/UploadFileRequest.md)| | | + +### Return type + +[**\QuantClient\Model\UploadFile201Response**](../Model/UploadFile201Response.md) + +### Authorization + +[BearerAuth](../../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: `application/json` +- **Accept**: `application/json` + +[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) +[[Back to Model list]](../../README.md#models) +[[Back to README]](../../README.md) diff --git a/docs/Api/AIInferenceApi.md b/docs/Api/AIInferenceApi.md index 13ddb17..04b1cd9 100644 --- a/docs/Api/AIInferenceApi.md +++ b/docs/Api/AIInferenceApi.md @@ -7,7 +7,9 @@ All URIs are relative to https://dashboard.quantcdn.io, except if the operation | [**chatInference()**](AIInferenceApi.md#chatInference) | **POST** /api/v3/organizations/{organisation}/ai/chat | Chat inference via API Gateway (buffered responses) with multimodal support | | [**chatInferenceStream()**](AIInferenceApi.md#chatInferenceStream) | **POST** /api/v3/organizations/{organisation}/ai/chat/stream | Chat inference via streaming endpoint (true HTTP streaming) with multimodal support | | [**embeddings()**](AIInferenceApi.md#embeddings) | **POST** /api/v3/organizations/{organisation}/ai/embeddings | Generate text embeddings for semantic search and RAG applications | +| [**getDurableExecutionStatus()**](AIInferenceApi.md#getDurableExecutionStatus) | **GET** /api/v3/organizations/{organisation}/ai/chat/executions/{identifier} | Get Durable Execution Status | | [**imageGeneration()**](AIInferenceApi.md#imageGeneration) | **POST** /api/v3/organizations/{organisation}/ai/image-generation | Generate images with Amazon Nova Canvas | +| [**submitToolCallback()**](AIInferenceApi.md#submitToolCallback) | **POST** /api/v3/organizations/{organisation}/ai/chat/callback | Submit Client Tool Results (Callback) | ## `chatInference()` @@ -18,7 +20,7 @@ chatInference($organisation, $chat_inference_request): \QuantClient\Model\ChatIn Chat inference via API Gateway (buffered responses) with multimodal support -Sends requests to the AI API Gateway endpoint which buffers responses. Supports text, images, videos, and documents via base64 encoding. * * **Multimodal Support:** * - **Text**: Simple string content * - **Images**: Base64-encoded PNG, JPEG, GIF, WebP (up to 25MB) * - **Videos**: Base64-encoded MP4, MOV, WebM, etc. (up to 25MB) * - **Documents**: Base64-encoded PDF, DOCX, CSV, etc. (up to 25MB) * * **Supported Models:** * - Amazon Nova Lite, Micro, Pro (all support multimodal) * - Claude models (text only) * * **Usage Tips:** * - Use base64 encoding for images/videos < 5-10MB * - Place media before text prompts for best results * - Label multiple media files (e.g., 'Image 1:', 'Image 2:') * - Maximum 25MB total payload size * * **Response Patterns:** * - **Text-only**: Returns simple text response when no tools requested * - **Single tool**: Returns `toolUse` object when AI requests one tool * - **Multiple tools**: Returns `toolUse` array when AI requests multiple tools * - **Auto-execute sync**: Automatically executes tool and returns final text response * - **Auto-execute async**: Returns toolUse with `executionId` and `status` for polling +Sends requests to the AI API Gateway endpoint which buffers responses. Supports text, images, videos, and documents via base64 encoding. * * **Execution Modes:** * - **Sync Mode** (default): Standard JSON response, waits for completion (200 response) * - **Async Mode**: Set `async: true` for long-running tasks with polling (202 response) * * **Async/Durable Mode (`async: true`):** * - Returns immediately with `requestId` and `pollUrl` (HTTP 202) * - Uses AWS Lambda Durable Functions for long-running inference * - Supports client-executed tools via `waiting_callback` state * - Poll `/ai/chat/executions/{requestId}` for status * - Submit client tool results via `/ai/chat/callback` * - Ideal for complex prompts, large contexts, or client-side tools * * **Multimodal Support:** * - **Text**: Simple string content * - **Images**: Base64-encoded PNG, JPEG, GIF, WebP (up to 25MB) * - **Videos**: Base64-encoded MP4, MOV, WebM, etc. (up to 25MB) * - **Documents**: Base64-encoded PDF, DOCX, CSV, etc. (up to 25MB) * * **Supported Models (Multimodal):** * - **Claude 4.5 Series**: Sonnet 4.5, Haiku 4.5, Opus 4.5 (images, up to 20 per request) * - **Claude 3.5 Series**: Sonnet v1/v2 (images, up to 20 per request) * - **Amazon Nova**: Lite, Pro, Micro (images, videos, documents) * * **Usage Tips:** * - Use base64 encoding for images/videos < 5-10MB * - Place media before text prompts for best results * - Label multiple media files (e.g., 'Image 1:', 'Image 2:') * - Maximum 25MB total payload size * * **Response Patterns:** * - **Text-only**: Returns simple text response when no tools requested * - **Single tool**: Returns `toolUse` object when AI requests one tool * - **Multiple tools**: Returns `toolUse` array when AI requests multiple tools * - **Auto-execute sync**: Automatically executes tool and returns final text response * - **Auto-execute async**: Returns toolUse with `executionId` and `status` for polling ### Example @@ -80,7 +82,7 @@ chatInferenceStream($organisation, $chat_inference_stream_request): string Chat inference via streaming endpoint (true HTTP streaming) with multimodal support -Streams responses from the AI streaming subdomain using Server-Sent Events (SSE). Tokens are streamed in real-time as they are generated. * * **Multimodal Support:** * - **Text**: Simple string content * - **Images**: Base64-encoded PNG, JPEG, GIF, WebP (up to 25MB) * - **Videos**: Base64-encoded MP4, MOV, WebM, etc. (up to 25MB) * - **Documents**: Base64-encoded PDF, DOCX, CSV, etc. (up to 25MB) * * **Supported Models:** * - Amazon Nova Lite, Micro, Pro (all support multimodal) * - Claude models (text only) * * **Usage Tips:** * - Use base64 encoding for images/videos < 5-10MB * - Place media before text prompts for best results * - Label multiple media files (e.g., 'Image 1:', 'Image 2:') * - Maximum 25MB total payload size * - Streaming works with all content types (text, image, video, document) +Streams responses from the AI streaming subdomain using Server-Sent Events (SSE). Tokens are streamed in real-time as they are generated. * * **Execution Modes:** * - **Streaming Mode** (default): Real-time SSE token-by-token responses * - **Async Mode**: Set `async: true` for long-running tasks with polling (202 response) * * **Async/Durable Mode (`async: true`):** * - Returns immediately with `requestId` and `pollUrl` (HTTP 202) * - Uses AWS Lambda Durable Functions for long-running inference * - Supports client-executed tools via `waiting_callback` state * - Poll `/ai/chat/executions/{requestId}` for status * - Submit client tool results via `/ai/chat/callback` * * **Multimodal Support:** * - **Text**: Simple string content * - **Images**: Base64-encoded PNG, JPEG, GIF, WebP (up to 25MB) * - **Videos**: Base64-encoded MP4, MOV, WebM, etc. (up to 25MB) * - **Documents**: Base64-encoded PDF, DOCX, CSV, etc. (up to 25MB) * * **Supported Models (Multimodal):** * - **Claude 4.5 Series**: Sonnet 4.5, Haiku 4.5, Opus 4.5 (images, up to 20 per request) * - **Claude 3.5 Series**: Sonnet v1/v2 (images, up to 20 per request) * - **Amazon Nova**: Lite, Pro, Micro (images, videos, documents) * * **Usage Tips:** * - Use base64 encoding for images/videos < 5-10MB * - Place media before text prompts for best results * - Label multiple media files (e.g., 'Image 1:', 'Image 2:') * - Maximum 25MB total payload size * - Streaming works with all content types (text, image, video, document) ### Example @@ -128,7 +130,7 @@ try { ### HTTP request headers - **Content-Type**: `application/json` -- **Accept**: `text/event-stream` +- **Accept**: `text/event-stream`, `application/json` [[Back to top]](#) [[Back to API list]](../../README.md#endpoints) [[Back to Model list]](../../README.md#models) @@ -196,6 +198,68 @@ try { [[Back to Model list]](../../README.md#models) [[Back to README]](../../README.md) +## `getDurableExecutionStatus()` + +```php +getDurableExecutionStatus($organisation, $identifier): \QuantClient\Model\GetDurableExecutionStatus200Response +``` + +Get Durable Execution Status + +Poll the status of an async/durable chat execution. * * **When to use:** After starting chat inference with `async: true`, poll this endpoint * to check execution status and retrieve results when complete. * * **Identifier:** Accepts either: * - `requestId` (recommended): The short ID returned from the async request * - `executionArn`: The full AWS Lambda durable execution ARN (must be URL-encoded) * * **Statuses:** * - `pending`: Execution is starting (retry shortly) * - `running`: Execution is in progress * - `waiting_callback`: Execution paused, waiting for client tool results * - `complete`: Execution finished successfully * - `failed`: Execution failed with error * * **Client Tool Callback:** * When status is `waiting_callback`, submit tool results via `POST /ai/chat/callback`. * * **Polling Recommendations:** * - Start with 1 second delay, exponential backoff up to 30 seconds * - Stop polling after 15 minutes (consider failed) + +### Example + +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + + +$apiInstance = new QuantClient\Api\AIInferenceApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$organisation = 'organisation_example'; // string | The organisation ID +$identifier = XkdVWiEfSwMEPrw=; // string | Either the requestId from async response, or full executionArn (URL-encoded) + +try { + $result = $apiInstance->getDurableExecutionStatus($organisation, $identifier); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling AIInferenceApi->getDurableExecutionStatus: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **organisation** | **string**| The organisation ID | | +| **identifier** | **string**| Either the requestId from async response, or full executionArn (URL-encoded) | | + +### Return type + +[**\QuantClient\Model\GetDurableExecutionStatus200Response**](../Model/GetDurableExecutionStatus200Response.md) + +### Authorization + +[BearerAuth](../../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + +[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) +[[Back to Model list]](../../README.md#models) +[[Back to README]](../../README.md) + ## `imageGeneration()` ```php @@ -257,3 +321,65 @@ try { [[Back to top]](#) [[Back to API list]](../../README.md#endpoints) [[Back to Model list]](../../README.md#models) [[Back to README]](../../README.md) + +## `submitToolCallback()` + +```php +submitToolCallback($organisation, $submit_tool_callback_request): \QuantClient\Model\SubmitToolCallback200Response +``` + +Submit Client Tool Results (Callback) + +Submit tool execution results to resume a suspended durable execution. * * **When to use:** When polling the execution status returns `waiting_callback`, use this endpoint * to submit the results of client-executed tools. The execution will then resume. * * **Flow:** * 1. Start async chat with client-executed tools (`autoExecute: []` or tools not in autoExecute list) * 2. Poll status until `waiting_callback` * 3. Execute tools locally using `pendingTools` from status response * 4. Submit results here with the `callbackId` * 5. Poll status until `complete` * * **Important:** Each `callbackId` can only be used once. After submission, poll the execution * status to see the updated state. + +### Example + +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + + +$apiInstance = new QuantClient\Api\AIInferenceApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$organisation = 'organisation_example'; // string | The organisation ID +$submit_tool_callback_request = new \QuantClient\Model\SubmitToolCallbackRequest(); // \QuantClient\Model\SubmitToolCallbackRequest + +try { + $result = $apiInstance->submitToolCallback($organisation, $submit_tool_callback_request); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling AIInferenceApi->submitToolCallback: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **organisation** | **string**| The organisation ID | | +| **submit_tool_callback_request** | [**\QuantClient\Model\SubmitToolCallbackRequest**](../Model/SubmitToolCallbackRequest.md)| | | + +### Return type + +[**\QuantClient\Model\SubmitToolCallback200Response**](../Model/SubmitToolCallback200Response.md) + +### Authorization + +[BearerAuth](../../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: `application/json` +- **Accept**: `application/json` + +[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) +[[Back to Model list]](../../README.md#models) +[[Back to README]](../../README.md) diff --git a/docs/Api/AITaskManagementApi.md b/docs/Api/AITaskManagementApi.md new file mode 100644 index 0000000..83af273 --- /dev/null +++ b/docs/Api/AITaskManagementApi.md @@ -0,0 +1,399 @@ +# QuantClient\AITaskManagementApi + +All URIs are relative to https://dashboard.quantcdn.io, except if the operation defines another base path. + +| Method | HTTP request | Description | +| ------------- | ------------- | ------------- | +| [**createTask()**](AITaskManagementApi.md#createTask) | **POST** /api/v3/organizations/{organisation}/ai/tasks | Create a new task | +| [**deleteTask()**](AITaskManagementApi.md#deleteTask) | **DELETE** /api/v3/organizations/{organisation}/ai/tasks/{taskId} | Delete a task | +| [**getDependencyGraph()**](AITaskManagementApi.md#getDependencyGraph) | **GET** /api/v3/organizations/{organisation}/ai/tasks/{taskListId}/dependency-graph | Get dependency graph for a task list | +| [**getTask()**](AITaskManagementApi.md#getTask) | **GET** /api/v3/organizations/{organisation}/ai/tasks/{taskId} | Get task details | +| [**listTasks()**](AITaskManagementApi.md#listTasks) | **GET** /api/v3/organizations/{organisation}/ai/tasks | List tasks with optional filtering | +| [**updateTask()**](AITaskManagementApi.md#updateTask) | **PUT** /api/v3/organizations/{organisation}/ai/tasks/{taskId} | Update a task | + + +## `createTask()` + +```php +createTask($organisation, $create_task_request): \QuantClient\Model\CreateTask201Response +``` + +Create a new task + +Creates a new task for multi-agent coordination and workflow orchestration. * * **Key Features:** * - **Persistent State**: Tasks survive across conversations and sessions * - **Agent Assignment**: Pre-assign tasks to specific agents * - **Task Lists**: Group related tasks using taskListId (implicit - no need to create lists first) * - **Dependencies**: Define task dependencies for workflow orchestration * - **Metadata**: Store flexible JSON metadata for task-specific data * - **Progress Tracking**: Track progress from 0.0 to 1.0 * * **Use Cases:** * - Break down complex requests into manageable steps * - Assign work to specialized agents * - Track long-running operations * - Coordinate multi-agent workflows + +### Example + +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + + +$apiInstance = new QuantClient\Api\AITaskManagementApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$organisation = 'organisation_example'; // string | The organisation ID +$create_task_request = new \QuantClient\Model\CreateTaskRequest(); // \QuantClient\Model\CreateTaskRequest + +try { + $result = $apiInstance->createTask($organisation, $create_task_request); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling AITaskManagementApi->createTask: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **organisation** | **string**| The organisation ID | | +| **create_task_request** | [**\QuantClient\Model\CreateTaskRequest**](../Model/CreateTaskRequest.md)| | | + +### Return type + +[**\QuantClient\Model\CreateTask201Response**](../Model/CreateTask201Response.md) + +### Authorization + +[BearerAuth](../../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: `application/json` +- **Accept**: `application/json` + +[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) +[[Back to Model list]](../../README.md#models) +[[Back to README]](../../README.md) + +## `deleteTask()` + +```php +deleteTask($organisation, $task_id, $cascade): \QuantClient\Model\DeleteTask200Response +``` + +Delete a task + +Permanently deletes a task. This action cannot be undone. * * **Dependency Protection:** * By default, deletion is blocked if other tasks depend on this task (TASK_HAS_DEPENDENTS error). * This prevents breaking workflows. * * **Cascade Delete:** * Use `?cascade=true` to delete the task AND all tasks that depend on it recursively. * Useful for cleaning up entire dependency chains. * * **Examples:** * - DELETE /tasks/{id} - Deletes task if no dependents, otherwise returns 409 error * - DELETE /tasks/{id}?cascade=true - Deletes task and all dependent tasks + +### Example + +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + + +$apiInstance = new QuantClient\Api\AITaskManagementApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$organisation = 'organisation_example'; // string | The organisation ID +$task_id = 'task_id_example'; // string | The task UUID +$cascade = false; // bool | If true, delete task and all dependent tasks recursively + +try { + $result = $apiInstance->deleteTask($organisation, $task_id, $cascade); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling AITaskManagementApi->deleteTask: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **organisation** | **string**| The organisation ID | | +| **task_id** | **string**| The task UUID | | +| **cascade** | **bool**| If true, delete task and all dependent tasks recursively | [optional] [default to false] | + +### Return type + +[**\QuantClient\Model\DeleteTask200Response**](../Model/DeleteTask200Response.md) + +### Authorization + +[BearerAuth](../../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + +[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) +[[Back to Model list]](../../README.md#models) +[[Back to README]](../../README.md) + +## `getDependencyGraph()` + +```php +getDependencyGraph($organisation, $task_list_id): \QuantClient\Model\GetDependencyGraph200Response +``` + +Get dependency graph for a task list + +Returns the full dependency graph for all tasks in a task list. * * **Use Cases:** * - Visualize task dependencies in a UI (DAG diagram) * - Analyze workflow structure and critical paths * - Find starting tasks (roots) and terminal tasks (leaves) * - Plan parallel execution by identifying independent task groups * * **Response Structure:** * - `taskCount`: Total number of tasks in the list * - `roots`: Task IDs with no dependencies (starting points) * - `leaves`: Task IDs with no dependents (terminal tasks) * - `graph`: Adjacency list with each task's dependencies and dependents + +### Example + +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + + +$apiInstance = new QuantClient\Api\AITaskManagementApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$organisation = 'organisation_example'; // string | The organisation ID +$task_list_id = world-1; // string | The task list ID to get the dependency graph for + +try { + $result = $apiInstance->getDependencyGraph($organisation, $task_list_id); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling AITaskManagementApi->getDependencyGraph: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **organisation** | **string**| The organisation ID | | +| **task_list_id** | **string**| The task list ID to get the dependency graph for | | + +### Return type + +[**\QuantClient\Model\GetDependencyGraph200Response**](../Model/GetDependencyGraph200Response.md) + +### Authorization + +[BearerAuth](../../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + +[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) +[[Back to Model list]](../../README.md#models) +[[Back to README]](../../README.md) + +## `getTask()` + +```php +getTask($organisation, $task_id): \QuantClient\Model\GetTask200Response +``` + +Get task details + +Retrieves detailed information about a specific task including status, progress, dependencies, and results. + +### Example + +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + + +$apiInstance = new QuantClient\Api\AITaskManagementApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$organisation = 'organisation_example'; // string | The organisation ID +$task_id = 'task_id_example'; // string | The task UUID + +try { + $result = $apiInstance->getTask($organisation, $task_id); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling AITaskManagementApi->getTask: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **organisation** | **string**| The organisation ID | | +| **task_id** | **string**| The task UUID | | + +### Return type + +[**\QuantClient\Model\GetTask200Response**](../Model/GetTask200Response.md) + +### Authorization + +[BearerAuth](../../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + +[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) +[[Back to Model list]](../../README.md#models) +[[Back to README]](../../README.md) + +## `listTasks()` + +```php +listTasks($organisation, $task_list_id, $status, $assigned_agent_id, $limit, $depends_on, $include_details): \QuantClient\Model\ListTasks200Response +``` + +List tasks with optional filtering + +Lists tasks for an organization with optional filtering. Filters can be combined for powerful queries. * * **Filter Examples:** * - All tasks in a list: ?taskListId=world-1 * - Pending tasks in a list: ?taskListId=world-1&status=pending * - Tasks assigned to an agent: ?assignedAgentId=agent-code-reviewer * - Combined: ?taskListId=world-1&status=in_progress&assignedAgentId=agent-1 * * **Reverse Dependency Lookup:** * Use `dependsOn` to find tasks that depend on a specific task (waiting for it to complete): * - ?dependsOn=task-123 - Returns task IDs only (lightweight) * - ?dependsOn=task-123&includeDetails=true - Returns full task objects * - ?dependsOn=task-123&status=pending - Pending tasks waiting for task-123 * * **Ordering:** * Tasks are returned in reverse chronological order (most recent first). + +### Example + +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + + +$apiInstance = new QuantClient\Api\AITaskManagementApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$organisation = 'organisation_example'; // string | The organisation ID +$task_list_id = world-1; // string | Filter tasks by task list ID. Task lists are implicit groupings - any string can be used. +$status = pending; // string | Filter tasks by status +$assigned_agent_id = agent-code-reviewer; // string | Filter tasks by assigned agent ID +$limit = 50; // int | Maximum number of tasks to return (default 50, max 100) +$depends_on = 550e8400-e29b-41d4-a716-446655440000; // string | Reverse lookup: find tasks that depend on this task ID. Returns tasks waiting for the specified task to complete. +$include_details = false; // bool | When using dependsOn, return full task objects in addition to IDs. Default false (IDs only for lightweight responses). + +try { + $result = $apiInstance->listTasks($organisation, $task_list_id, $status, $assigned_agent_id, $limit, $depends_on, $include_details); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling AITaskManagementApi->listTasks: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **organisation** | **string**| The organisation ID | | +| **task_list_id** | **string**| Filter tasks by task list ID. Task lists are implicit groupings - any string can be used. | [optional] | +| **status** | **string**| Filter tasks by status | [optional] | +| **assigned_agent_id** | **string**| Filter tasks by assigned agent ID | [optional] | +| **limit** | **int**| Maximum number of tasks to return (default 50, max 100) | [optional] [default to 50] | +| **depends_on** | **string**| Reverse lookup: find tasks that depend on this task ID. Returns tasks waiting for the specified task to complete. | [optional] | +| **include_details** | **bool**| When using dependsOn, return full task objects in addition to IDs. Default false (IDs only for lightweight responses). | [optional] [default to false] | + +### Return type + +[**\QuantClient\Model\ListTasks200Response**](../Model/ListTasks200Response.md) + +### Authorization + +[BearerAuth](../../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + +[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) +[[Back to Model list]](../../README.md#models) +[[Back to README]](../../README.md) + +## `updateTask()` + +```php +updateTask($organisation, $task_id, $update_task_request): \QuantClient\Model\UpdateTask200Response +``` + +Update a task + +Updates an existing task. All fields are optional - only provided fields will be updated. * * **Status Transitions:** * - Changing from **pending** to **in_progress** automatically sets startedAt timestamp * - Changing to **completed**, **failed**, or **cancelled** automatically sets completedAt timestamp * - Changing to **blocked** automatically sets blockedAt timestamp * - Changing from **blocked** to **in_progress** or **pending** clears blocked fields * - Completed tasks get a 30-day TTL for automatic cleanup * * **Progress Updates:** * - Update progress (0.0 to 1.0) to track completion percentage * - Update progressMessage for human-readable status updates * - Set result object when task completes successfully * - Set error string when task fails * - Set blockedReason and blockedByTaskIds when blocking a task + +### Example + +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + + +$apiInstance = new QuantClient\Api\AITaskManagementApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$organisation = 'organisation_example'; // string | The organisation ID +$task_id = 550e8400-e29b-41d4-a716-446655440000; // string | The task UUID +$update_task_request = new \QuantClient\Model\UpdateTaskRequest(); // \QuantClient\Model\UpdateTaskRequest + +try { + $result = $apiInstance->updateTask($organisation, $task_id, $update_task_request); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling AITaskManagementApi->updateTask: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **organisation** | **string**| The organisation ID | | +| **task_id** | **string**| The task UUID | | +| **update_task_request** | [**\QuantClient\Model\UpdateTaskRequest**](../Model/UpdateTaskRequest.md)| | | + +### Return type + +[**\QuantClient\Model\UpdateTask200Response**](../Model/UpdateTask200Response.md) + +### Authorization + +[BearerAuth](../../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: `application/json` +- **Accept**: `application/json` + +[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) +[[Back to Model list]](../../README.md#models) +[[Back to README]](../../README.md) diff --git a/docs/Api/AIToolsApi.md b/docs/Api/AIToolsApi.md index 83cca3a..a2bffdc 100644 --- a/docs/Api/AIToolsApi.md +++ b/docs/Api/AIToolsApi.md @@ -4,12 +4,75 @@ All URIs are relative to https://dashboard.quantcdn.io, except if the operation | Method | HTTP request | Description | | ------------- | ------------- | ------------- | +| [**getAIOrchestrationStatus()**](AIToolsApi.md#getAIOrchestrationStatus) | **GET** /api/v3/organizations/{organisation}/ai/tools/orchestrations/{orchestrationId} | Get Orchestration Status | | [**getAIToolExecutionStatus()**](AIToolsApi.md#getAIToolExecutionStatus) | **GET** /api/v3/organizations/{organisation}/ai/tools/executions/{executionId} | Get async tool execution status and result | | [**listAIToolExecutions()**](AIToolsApi.md#listAIToolExecutions) | **GET** /api/v3/organizations/{organisation}/ai/tools/executions | List tool executions for monitoring and debugging | | [**listAIToolNames()**](AIToolsApi.md#listAIToolNames) | **GET** /api/v3/organizations/{organisation}/ai/tools/names | List tool names only (lightweight response) | | [**listAITools()**](AIToolsApi.md#listAITools) | **GET** /api/v3/organizations/{organisation}/ai/tools | List available built-in tools for function calling | +## `getAIOrchestrationStatus()` + +```php +getAIOrchestrationStatus($organisation, $orchestration_id): \QuantClient\Model\GetAIOrchestrationStatus200Response +``` + +Get Orchestration Status + +Retrieves the status and synthesized result of a multi-tool orchestration. * * **Orchestration Pattern:** * When the AI requests multiple async tools simultaneously, an orchestration is created * to track all tool executions and synthesize their results into a single coherent response. * * **Flow:** * 1. AI requests multiple async tools (e.g., image generation + web search) * 2. Chat API creates orchestration and returns orchestrationId * 3. Tool Orchestrator Lambda polls all async tools * 4. When all tools complete, Orchestrator synthesizes results using AI * 5. Client polls this endpoint and receives final synthesized response * * **Status Values:** * - pending: Orchestration created, tools not yet started * - polling: Orchestrator is actively polling async tools * - synthesizing: All tools complete, AI is synthesizing response * - complete: Orchestration finished, synthesizedResponse available * - failed: Orchestration failed, error available * * **Polling Recommendations:** * - Poll every 2 seconds * - Maximum poll time: 10 minutes * - Orchestrator handles tool polling internally * * **Benefits over individual polling:** * - Single poll endpoint for multiple async tools * - AI synthesizes all results into coherent response * - Answers the original user question, not just tool summaries + +### Example + +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + + +$apiInstance = new QuantClient\Api\AIToolsApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$organisation = 'organisation_example'; // string | The organisation ID +$orchestration_id = orch_abc123def456789012345678901234; // string | Orchestration identifier for aggregated async tool executions + +try { + $result = $apiInstance->getAIOrchestrationStatus($organisation, $orchestration_id); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling AIToolsApi->getAIOrchestrationStatus: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **organisation** | **string**| The organisation ID | | +| **orchestration_id** | **string**| Orchestration identifier for aggregated async tool executions | | + +### Return type + +[**\QuantClient\Model\GetAIOrchestrationStatus200Response**](../Model/GetAIOrchestrationStatus200Response.md) + +### Authorization + +[BearerAuth](../../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + +[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) +[[Back to Model list]](../../README.md#models) +[[Back to README]](../../README.md) + ## `getAIToolExecutionStatus()` ```php diff --git a/docs/Api/AIVectorDatabaseApi.md b/docs/Api/AIVectorDatabaseApi.md index 03ba48f..78a6581 100644 --- a/docs/Api/AIVectorDatabaseApi.md +++ b/docs/Api/AIVectorDatabaseApi.md @@ -266,7 +266,7 @@ queryVectorCollection($organisation, $collection_id, $query_vector_collection_re Semantic Search Query -Performs semantic search on a collection using vector similarity. Returns the most relevant documents based on meaning, not keyword matching. * * **Use Cases:** * - Find relevant documentation for user questions * - Power RAG (Retrieval Augmented Generation) in AI assistants * - Semantic search across knowledge bases +Performs semantic search on a collection using vector similarity. Returns the most relevant documents based on meaning, not keyword matching. * * **Three Search Modes:** * * 1. **Text Query** - Provide `query` string, server generates embedding * - Query text is embedded using the collection's embedding model * - Embeddings are cached for repeated queries * * 2. **Vector Query** - Provide pre-computed `vector` array * - Skip embedding generation (faster) * - Useful when you've already embedded the query elsewhere * - Vector dimension must match collection (e.g., 1024 for Titan v2) * * 3. **Metadata List** - Set `listByMetadata: true` with `filter` * - Skip semantic search entirely * - Return all documents matching the filter * - Supports cursor-based pagination for large datasets * - Results ordered by sortBy/sortOrder (default: created_at DESC) * * **Filtering:** * - `filter.exact`: Exact match on metadata fields (AND logic) * - `filter.contains`: Array contains filter for tags (ANY match) * - Filters can be combined with semantic search or used alone with listByMetadata * * **Pagination (listByMetadata mode only):** * - Use `cursor` from previous response's `nextCursor` to get next page * - Uses keyset pagination for efficient traversal of large datasets * - Control sort with `sortBy` and `sortOrder` * * **Use Cases:** * - Find relevant documentation for user questions * - Power RAG (Retrieval Augmented Generation) in AI assistants * - Semantic search across knowledge bases * - List all artifacts by building/worker/tag ### Example diff --git a/docs/Api/BackupManagementApi.md b/docs/Api/BackupManagementApi.md index 727644c..47e1838 100644 --- a/docs/Api/BackupManagementApi.md +++ b/docs/Api/BackupManagementApi.md @@ -35,9 +35,9 @@ $apiInstance = new QuantClient\Api\BackupManagementApi( new GuzzleHttp\Client(), $config ); -$organisation = 'organisation_example'; // string | The organisation ID -$application = 'application_example'; // string | The application ID -$environment = 'environment_example'; // string | The environment ID +$organisation = test-org; // string | The organisation ID +$application = test-app; // string | The application ID +$environment = test-env; // string | The environment ID $type = 'type_example'; // string | The backup type $create_backup_request = new \QuantClient\Model\CreateBackupRequest(); // \QuantClient\Model\CreateBackupRequest @@ -101,9 +101,9 @@ $apiInstance = new QuantClient\Api\BackupManagementApi( new GuzzleHttp\Client(), $config ); -$organisation = 'organisation_example'; // string | The organisation ID -$application = 'application_example'; // string | The application ID -$environment = 'environment_example'; // string | The environment ID +$organisation = test-org; // string | The organisation ID +$application = test-app; // string | The application ID +$environment = test-env; // string | The environment ID $type = 'type_example'; // string | The backup type $backup_id = 'backup_id_example'; // string | The backup ID @@ -167,9 +167,9 @@ $apiInstance = new QuantClient\Api\BackupManagementApi( new GuzzleHttp\Client(), $config ); -$organisation = 'organisation_example'; // string | The organisation ID -$application = 'application_example'; // string | The application ID -$environment = 'environment_example'; // string | The environment ID +$organisation = test-org; // string | The organisation ID +$application = test-app; // string | The application ID +$environment = test-env; // string | The environment ID $type = 'type_example'; // string | The backup type $backup_id = 'backup_id_example'; // string | The backup ID @@ -235,9 +235,9 @@ $apiInstance = new QuantClient\Api\BackupManagementApi( new GuzzleHttp\Client(), $config ); -$organisation = 'organisation_example'; // string | The organisation ID -$application = 'application_example'; // string | The application ID -$environment = 'environment_example'; // string | The environment ID +$organisation = test-org; // string | The organisation ID +$application = test-app; // string | The application ID +$environment = test-env; // string | The environment ID $type = 'type_example'; // string | The backup type $order = 'desc'; // string | Sort order for backups by creation date (asc = oldest first, desc = newest first) $limit = 50; // int | Maximum number of backups to return (max 100) diff --git a/docs/Api/CommandsApi.md b/docs/Api/CommandsApi.md index f88d0a5..739b5ee 100644 --- a/docs/Api/CommandsApi.md +++ b/docs/Api/CommandsApi.md @@ -34,8 +34,8 @@ $apiInstance = new QuantClient\Api\CommandsApi( new GuzzleHttp\Client(), $config ); -$organisation = 'organisation_example'; // string | The organisation ID -$environment = 'environment_example'; // string | The environment ID +$organisation = test-org; // string | The organisation ID +$environment = test-env; // string | The environment ID $create_command_request = new \QuantClient\Model\CreateCommandRequest(); // \QuantClient\Model\CreateCommandRequest try { @@ -96,9 +96,9 @@ $apiInstance = new QuantClient\Api\CommandsApi( new GuzzleHttp\Client(), $config ); -$organisation = 'organisation_example'; // string | The organisation ID -$environment = 'environment_example'; // string | The environment ID -$command = 'command_example'; // string | The command ID +$organisation = test-org; // string | The organisation ID +$environment = test-env; // string | The environment ID +$command = test-cmd; // string | The command ID try { $result = $apiInstance->getCommand($organisation, $environment, $command); @@ -158,8 +158,8 @@ $apiInstance = new QuantClient\Api\CommandsApi( new GuzzleHttp\Client(), $config ); -$organisation = 'organisation_example'; // string | The organisation ID -$environment = 'environment_example'; // string | The environment ID +$organisation = test-org; // string | The organisation ID +$environment = test-env; // string | The environment ID try { $result = $apiInstance->listCommands($organisation, $environment); diff --git a/docs/Api/ComposeApi.md b/docs/Api/ComposeApi.md index 9c88c8f..4e6c866 100644 --- a/docs/Api/ComposeApi.md +++ b/docs/Api/ComposeApi.md @@ -34,9 +34,9 @@ $apiInstance = new QuantClient\Api\ComposeApi( new GuzzleHttp\Client(), $config ); -$organisation = 'organisation_example'; // string | The organisation ID -$application = 'application_example'; // string | The application ID -$environment = 'environment_example'; // string | The environment ID +$organisation = test-org; // string | The organisation ID +$application = test-app; // string | The application ID +$environment = test-env; // string | The environment ID try { $result = $apiInstance->getEnvironmentCompose($organisation, $application, $environment); @@ -98,9 +98,9 @@ $apiInstance = new QuantClient\Api\ComposeApi( new GuzzleHttp\Client(), $config ); -$organisation = 'organisation_example'; // string | The organisation ID -$application = 'application_example'; // string | The application ID -$environment = 'environment_example'; // string | The environment ID +$organisation = test-org; // string | The organisation ID +$application = test-app; // string | The application ID +$environment = test-env; // string | The environment ID $patch_environment_compose_request = new \QuantClient\Model\PatchEnvironmentComposeRequest(); // \QuantClient\Model\PatchEnvironmentComposeRequest | Partial compose definition updates. All fields are optional. try { @@ -164,7 +164,7 @@ $apiInstance = new QuantClient\Api\ComposeApi( new GuzzleHttp\Client(), $config ); -$organisation = 'organisation_example'; // string | The organisation ID +$organisation = test-org; // string | The organisation ID $validate_compose_request = new \QuantClient\Model\ValidateComposeRequest(); // \QuantClient\Model\ValidateComposeRequest | The docker-compose.yml file content. Can be sent as raw YAML string or as a JSON wrapper containing both yamlContent (string) and imageSuffix (string) fields. Query parameter imageSuffix takes precedence if both are provided. $image_suffix = pr-456; // string | Optional. Image tag suffix to apply during translation. Transforms internal image tags to consistent '{containerName}-{suffix}' format (e.g., 'nginx-pr-456'). External images are left unchanged. Useful for feature branch deployments. diff --git a/docs/Api/ContainersApi.md b/docs/Api/ContainersApi.md index 37eec84..8542727 100644 --- a/docs/Api/ContainersApi.md +++ b/docs/Api/ContainersApi.md @@ -33,9 +33,9 @@ $apiInstance = new QuantClient\Api\ContainersApi( new GuzzleHttp\Client(), $config ); -$organisation = 'organisation_example'; // string | The organisation ID -$application = 'application_example'; // string | The application ID -$environment = 'environment_example'; // string | The environment ID +$organisation = test-org; // string | The organisation ID +$application = test-app; // string | The application ID +$environment = test-env; // string | The environment ID try { $apiInstance->listContainers($organisation, $application, $environment); @@ -94,10 +94,10 @@ $apiInstance = new QuantClient\Api\ContainersApi( new GuzzleHttp\Client(), $config ); -$organisation = 'organisation_example'; // string | The organisation ID -$application = 'application_example'; // string | The application ID -$environment = 'environment_example'; // string | The environment ID -$container = 'container_example'; // string | The container ID +$organisation = test-org; // string | The organisation ID +$application = test-app; // string | The application ID +$environment = test-env; // string | The environment ID +$container = test-container; // string | The container ID $container2 = new \QuantClient\Model\Container(); // \QuantClient\Model\Container try { diff --git a/docs/Api/CrawlerSchedulesApi.md b/docs/Api/CrawlerSchedulesApi.md index 520d928..5e9d12f 100644 --- a/docs/Api/CrawlerSchedulesApi.md +++ b/docs/Api/CrawlerSchedulesApi.md @@ -229,9 +229,9 @@ $apiInstance = new QuantClient\Api\CrawlerSchedulesApi( new GuzzleHttp\Client(), $config ); -$organization = 'organization_example'; // string -$project = 'project_example'; // string -$crawler = 'crawler_example'; // string +$organization = test-org; // string +$project = test-project; // string +$crawler = 00000000-0000-0000-0000-000000000000; // string try { $result = $apiInstance->crawlerSchedulesList($organization, $project, $crawler); diff --git a/docs/Api/CrawlersApi.md b/docs/Api/CrawlersApi.md index 2e5f259..8c29ac6 100644 --- a/docs/Api/CrawlersApi.md +++ b/docs/Api/CrawlersApi.md @@ -39,8 +39,8 @@ $apiInstance = new QuantClient\Api\CrawlersApi( new GuzzleHttp\Client(), $config ); -$organization = 'organization_example'; // string | Organization identifier -$project = 'project_example'; // string | Project identifier +$organization = test-org; // string | Organization identifier +$project = test-project; // string | Project identifier $v2_crawler_request = new \QuantClient\Model\V2CrawlerRequest(); // \QuantClient\Model\V2CrawlerRequest try { @@ -101,9 +101,9 @@ $apiInstance = new QuantClient\Api\CrawlersApi( new GuzzleHttp\Client(), $config ); -$organization = 'organization_example'; // string | Organization identifier -$project = 'project_example'; // string | Project identifier -$crawler = 'crawler_example'; // string +$organization = test-org; // string | Organization identifier +$project = test-project; // string | Project identifier +$crawler = 00000000-0000-0000-0000-000000000000; // string | The UUID of the crawler try { $apiInstance->crawlersDelete($organization, $project, $crawler); @@ -118,7 +118,7 @@ try { | ------------- | ------------- | ------------- | ------------- | | **organization** | **string**| Organization identifier | | | **project** | **string**| Project identifier | | -| **crawler** | **string**| | | +| **crawler** | **string**| The UUID of the crawler | | ### Return type @@ -162,10 +162,10 @@ $apiInstance = new QuantClient\Api\CrawlersApi( new GuzzleHttp\Client(), $config ); -$organization = 'organization_example'; // string | Organization identifier -$project = 'project_example'; // string | Project identifier -$crawler = 'crawler_example'; // string | Crawler identifier -$run_id = 56; // int | Run identifier +$organization = test-org; // string | Organization identifier +$project = test-project; // string | Project identifier +$crawler = 00000000-0000-0000-0000-000000000000; // string | Crawler identifier +$run_id = 1; // int | Run identifier try { $result = $apiInstance->crawlersGetRunById($organization, $project, $crawler, $run_id); @@ -226,9 +226,9 @@ $apiInstance = new QuantClient\Api\CrawlersApi( new GuzzleHttp\Client(), $config ); -$organization = 'organization_example'; // string | Organization identifier -$project = 'project_example'; // string | Project identifier -$crawler = 'crawler_example'; // string | Crawler identifier +$organization = test-org; // string | Organization identifier +$project = test-project; // string | Project identifier +$crawler = 00000000-0000-0000-0000-000000000000; // string | Crawler identifier try { $result = $apiInstance->crawlersGetRuns($organization, $project, $crawler); @@ -266,7 +266,7 @@ try { ## `crawlersList()` ```php -crawlersList($organization, $project): \QuantClient\Model\V2Crawler[] +crawlersList($organization, $project) ``` List crawlers for the project @@ -288,12 +288,11 @@ $apiInstance = new QuantClient\Api\CrawlersApi( new GuzzleHttp\Client(), $config ); -$organization = 'organization_example'; // string | Organization identifier -$project = 'project_example'; // string | Project identifier +$organization = test-org; // string | Organization identifier +$project = test-project; // string | Project identifier try { - $result = $apiInstance->crawlersList($organization, $project); - print_r($result); + $apiInstance->crawlersList($organization, $project); } catch (Exception $e) { echo 'Exception when calling CrawlersApi->crawlersList: ', $e->getMessage(), PHP_EOL; } @@ -308,7 +307,7 @@ try { ### Return type -[**\QuantClient\Model\V2Crawler[]**](../Model/V2Crawler.md) +void (empty response body) ### Authorization @@ -348,9 +347,9 @@ $apiInstance = new QuantClient\Api\CrawlersApi( new GuzzleHttp\Client(), $config ); -$organization = 'organization_example'; // string | Organization identifier -$project = 'project_example'; // string | Project identifier -$crawler = 'crawler_example'; // string +$organization = test-org; // string | Organization identifier +$project = test-project; // string | Project identifier +$crawler = 00000000-0000-0000-0000-000000000000; // string | The UUID of the crawler try { $result = $apiInstance->crawlersRead($organization, $project, $crawler); @@ -366,7 +365,7 @@ try { | ------------- | ------------- | ------------- | ------------- | | **organization** | **string**| Organization identifier | | | **project** | **string**| Project identifier | | -| **crawler** | **string**| | | +| **crawler** | **string**| The UUID of the crawler | | ### Return type @@ -410,9 +409,9 @@ $apiInstance = new QuantClient\Api\CrawlersApi( new GuzzleHttp\Client(), $config ); -$organization = 'organization_example'; // string | Organization identifier -$project = 'project_example'; // string | Project identifier -$crawler = 'crawler_example'; // string | Crawler identifier +$organization = test-org; // string | Organization identifier +$project = test-project; // string | Project identifier +$crawler = 00000000-0000-0000-0000-000000000000; // string | Crawler identifier $crawlers_run_request = new \QuantClient\Model\CrawlersRunRequest(); // \QuantClient\Model\CrawlersRunRequest try { @@ -430,7 +429,7 @@ try { | **organization** | **string**| Organization identifier | | | **project** | **string**| Project identifier | | | **crawler** | **string**| Crawler identifier | | -| **crawlers_run_request** | [**\QuantClient\Model\CrawlersRunRequest**](../Model/CrawlersRunRequest.md)| | | +| **crawlers_run_request** | [**\QuantClient\Model\CrawlersRunRequest**](../Model/CrawlersRunRequest.md)| | [optional] | ### Return type @@ -474,9 +473,9 @@ $apiInstance = new QuantClient\Api\CrawlersApi( new GuzzleHttp\Client(), $config ); -$organization = 'organization_example'; // string | Organization identifier -$project = 'project_example'; // string | Project identifier -$crawler = 'crawler_example'; // string +$organization = test-org; // string | Organization identifier +$project = test-project; // string | Project identifier +$crawler = 00000000-0000-0000-0000-000000000000; // string | The UUID of the crawler $v2_crawler_request = new \QuantClient\Model\V2CrawlerRequest(); // \QuantClient\Model\V2CrawlerRequest try { @@ -493,7 +492,7 @@ try { | ------------- | ------------- | ------------- | ------------- | | **organization** | **string**| Organization identifier | | | **project** | **string**| Project identifier | | -| **crawler** | **string**| | | +| **crawler** | **string**| The UUID of the crawler | | | **v2_crawler_request** | [**\QuantClient\Model\V2CrawlerRequest**](../Model/V2CrawlerRequest.md)| | | ### Return type diff --git a/docs/Api/CronApi.md b/docs/Api/CronApi.md index 1468fa3..eb9c7e8 100644 --- a/docs/Api/CronApi.md +++ b/docs/Api/CronApi.md @@ -38,9 +38,9 @@ $apiInstance = new QuantClient\Api\CronApi( new GuzzleHttp\Client(), $config ); -$organisation = 'organisation_example'; // string | The organisation ID -$application = 'application_example'; // string | The application ID -$environment = 'environment_example'; // string | The environment ID +$organisation = test-org; // string | The organisation ID +$application = test-app; // string | The application ID +$environment = test-env; // string | The environment ID $create_cron_job_request = new \QuantClient\Model\CreateCronJobRequest(); // \QuantClient\Model\CreateCronJobRequest try { @@ -102,9 +102,9 @@ $apiInstance = new QuantClient\Api\CronApi( new GuzzleHttp\Client(), $config ); -$organisation = 'organisation_example'; // string | The organisation ID -$application = 'application_example'; // string | The application ID -$environment = 'environment_example'; // string | The environment ID +$organisation = test-org; // string | The organisation ID +$application = test-app; // string | The application ID +$environment = test-env; // string | The environment ID $cron = 'cron_example'; // string | The cron job ID try { @@ -165,9 +165,9 @@ $apiInstance = new QuantClient\Api\CronApi( new GuzzleHttp\Client(), $config ); -$organisation = 'organisation_example'; // string | The organisation ID -$application = 'application_example'; // string | The application ID -$environment = 'environment_example'; // string | The environment ID +$organisation = test-org; // string | The organisation ID +$application = test-app; // string | The application ID +$environment = test-env; // string | The environment ID $cron = 'cron_example'; // string | The cron job ID try { @@ -229,10 +229,10 @@ $apiInstance = new QuantClient\Api\CronApi( new GuzzleHttp\Client(), $config ); -$organisation = 'organisation_example'; // string | The organisation ID -$application = 'application_example'; // string | The application ID -$environment = 'environment_example'; // string | The environment ID -$cron = 'cron_example'; // string | The cron job ID +$organisation = test-org; // string | The organisation ID +$application = test-app; // string | The application ID +$environment = test-env; // string | The environment ID +$cron = test-cron; // string | The cron job ID $run = 'run_example'; // string | The cron run ID try { @@ -295,10 +295,10 @@ $apiInstance = new QuantClient\Api\CronApi( new GuzzleHttp\Client(), $config ); -$organisation = 'organisation_example'; // string | The organisation ID -$application = 'application_example'; // string | The application ID -$environment = 'environment_example'; // string | The environment ID -$cron = 'cron_example'; // string | The cron job ID +$organisation = test-org; // string | The organisation ID +$application = test-app; // string | The application ID +$environment = test-env; // string | The environment ID +$cron = test-cron; // string | The cron job ID try { $result = $apiInstance->listCronJobRuns($organisation, $application, $environment, $cron); @@ -359,9 +359,9 @@ $apiInstance = new QuantClient\Api\CronApi( new GuzzleHttp\Client(), $config ); -$organisation = 'organisation_example'; // string | The organisation ID -$application = 'application_example'; // string | The application ID -$environment = 'environment_example'; // string | The environment ID +$organisation = test-org; // string | The organisation ID +$application = test-app; // string | The application ID +$environment = test-env; // string | The environment ID try { $result = $apiInstance->listCronJobs($organisation, $application, $environment); @@ -421,9 +421,9 @@ $apiInstance = new QuantClient\Api\CronApi( new GuzzleHttp\Client(), $config ); -$organisation = 'organisation_example'; // string | The organisation ID -$application = 'application_example'; // string | The application ID -$environment = 'environment_example'; // string | The environment ID +$organisation = test-org; // string | The organisation ID +$application = test-app; // string | The application ID +$environment = test-env; // string | The environment ID $cron = 'cron_example'; // string | The cron job ID $update_cron_job_request = new \QuantClient\Model\UpdateCronJobRequest(); // \QuantClient\Model\UpdateCronJobRequest diff --git a/docs/Api/DomainsApi.md b/docs/Api/DomainsApi.md index 68a3a79..bb54073 100644 --- a/docs/Api/DomainsApi.md +++ b/docs/Api/DomainsApi.md @@ -36,8 +36,8 @@ $apiInstance = new QuantClient\Api\DomainsApi( new GuzzleHttp\Client(), $config ); -$organization = 'organization_example'; // string | Organization identifier -$project = 'project_example'; // string | Project identifier +$organization = test-org; // string | Organization identifier +$project = test-project; // string | Project identifier $v2_domain_request = new \QuantClient\Model\V2DomainRequest(); // \QuantClient\Model\V2DomainRequest try { @@ -98,9 +98,9 @@ $apiInstance = new QuantClient\Api\DomainsApi( new GuzzleHttp\Client(), $config ); -$organization = 'organization_example'; // string | Organization identifier -$project = 'project_example'; // string | Project identifier -$domain = 'domain_example'; // string | Domain identifier +$organization = test-org; // string | Organization identifier +$project = test-project; // string | Project identifier +$domain = 0000; // string | Domain id try { $apiInstance->domainsDelete($organization, $project, $domain); @@ -115,7 +115,7 @@ try { | ------------- | ------------- | ------------- | ------------- | | **organization** | **string**| Organization identifier | | | **project** | **string**| Project identifier | | -| **domain** | **string**| Domain identifier | | +| **domain** | **string**| Domain id | | ### Return type @@ -159,8 +159,8 @@ $apiInstance = new QuantClient\Api\DomainsApi( new GuzzleHttp\Client(), $config ); -$organization = 'organization_example'; // string | Organization identifier -$project = 'project_example'; // string | Project identifier +$organization = test-org; // string | Organization identifier +$project = test-project; // string | Project identifier try { $result = $apiInstance->domainsList($organization, $project); @@ -219,9 +219,9 @@ $apiInstance = new QuantClient\Api\DomainsApi( new GuzzleHttp\Client(), $config ); -$organization = 'organization_example'; // string | Organization identifier -$project = 'project_example'; // string | Project identifier -$domain = 'domain_example'; // string | Domain identifier +$organization = test-org; // string | Organization identifier +$project = test-project; // string | Project identifier +$domain = 0000; // string | Domain id try { $result = $apiInstance->domainsRead($organization, $project, $domain); @@ -237,7 +237,7 @@ try { | ------------- | ------------- | ------------- | ------------- | | **organization** | **string**| Organization identifier | | | **project** | **string**| Project identifier | | -| **domain** | **string**| Domain identifier | | +| **domain** | **string**| Domain id | | ### Return type @@ -281,9 +281,9 @@ $apiInstance = new QuantClient\Api\DomainsApi( new GuzzleHttp\Client(), $config ); -$organization = 'organization_example'; // string | Organization identifier -$project = 'project_example'; // string | Project identifier -$domain = 'domain_example'; // string | Domain identifier +$organization = test-org; // string | Organization identifier +$project = test-project; // string | Project identifier +$domain = 0000; // string | Domain id try { $apiInstance->domainsRenew($organization, $project, $domain); @@ -298,7 +298,7 @@ try { | ------------- | ------------- | ------------- | ------------- | | **organization** | **string**| Organization identifier | | | **project** | **string**| Project identifier | | -| **domain** | **string**| Domain identifier | | +| **domain** | **string**| Domain id | | ### Return type diff --git a/docs/Api/EnvironmentsApi.md b/docs/Api/EnvironmentsApi.md index 8549fbf..6da7583 100644 --- a/docs/Api/EnvironmentsApi.md +++ b/docs/Api/EnvironmentsApi.md @@ -41,8 +41,8 @@ $apiInstance = new QuantClient\Api\EnvironmentsApi( new GuzzleHttp\Client(), $config ); -$organisation = 'organisation_example'; // string | The organisation ID -$application = 'application_example'; // string | The application ID +$organisation = test-org; // string | The organisation ID +$application = test-app; // string | The application ID $create_environment_request = new \QuantClient\Model\CreateEnvironmentRequest(); // \QuantClient\Model\CreateEnvironmentRequest try { @@ -103,9 +103,9 @@ $apiInstance = new QuantClient\Api\EnvironmentsApi( new GuzzleHttp\Client(), $config ); -$organisation = 'organisation_example'; // string | The organisation ID -$application = 'application_example'; // string | The application ID -$environment = 'environment_example'; // string | The environment ID +$organisation = test-org; // string | The organisation ID +$application = test-app; // string | The application ID +$environment = test-env; // string | The environment ID try { $apiInstance->deleteEnvironment($organisation, $application, $environment); @@ -164,9 +164,9 @@ $apiInstance = new QuantClient\Api\EnvironmentsApi( new GuzzleHttp\Client(), $config ); -$organisation = 'organisation_example'; // string | The organisation ID -$application = 'application_example'; // string | The application ID -$environment = 'environment_example'; // string | The environment ID +$organisation = test-org; // string | The organisation ID +$application = test-app; // string | The application ID +$environment = test-env; // string | The environment ID try { $result = $apiInstance->getEnvironment($organisation, $application, $environment); @@ -228,9 +228,9 @@ $apiInstance = new QuantClient\Api\EnvironmentsApi( new GuzzleHttp\Client(), $config ); -$organisation = 'organisation_example'; // string | The organisation ID -$application = 'application_example'; // string | The application ID -$environment = 'environment_example'; // string | The environment ID +$organisation = test-org; // string | The organisation ID +$application = test-app; // string | The application ID +$environment = test-env; // string | The environment ID $start_time = 'start_time_example'; // string | Start time for log retrieval (ISO 8601 format or Unix timestamp) $end_time = 'end_time_example'; // string | End time for log retrieval (ISO 8601 format or Unix timestamp) $container_name = 'container_name_example'; // string | Filter logs by specific container name @@ -304,9 +304,9 @@ $apiInstance = new QuantClient\Api\EnvironmentsApi( new GuzzleHttp\Client(), $config ); -$organisation = 'organisation_example'; // string | The organisation ID -$application = 'application_example'; // string | The application ID -$environment = 'environment_example'; // string | The environment ID +$organisation = test-org; // string | The organisation ID +$application = test-app; // string | The application ID +$environment = test-env; // string | The environment ID $start_time = 56; // int | Start time for metrics retrieval (Unix timestamp in milliseconds) $end_time = 56; // int | End time for metrics retrieval (Unix timestamp in milliseconds) $period = 56; // int | Period in seconds for metric aggregation (e.g., 60 for 1 minute, 300 for 5 minutes) @@ -376,8 +376,8 @@ $apiInstance = new QuantClient\Api\EnvironmentsApi( new GuzzleHttp\Client(), $config ); -$organisation = 'organisation_example'; // string | The organisation ID -$application = 'application_example'; // string | The application ID +$organisation = test-org; // string | The organisation ID +$application = test-app; // string | The application ID try { $result = $apiInstance->listEnvironments($organisation, $application); @@ -436,9 +436,9 @@ $apiInstance = new QuantClient\Api\EnvironmentsApi( new GuzzleHttp\Client(), $config ); -$organisation = 'organisation_example'; // string | The organisation ID -$application = 'application_example'; // string | The application ID -$environment = 'environment_example'; // string | The environment ID +$organisation = test-org; // string | The organisation ID +$application = test-app; // string | The application ID +$environment = test-env; // string | The environment ID $type = 'type_example'; // string | The sync type try { @@ -500,9 +500,9 @@ $apiInstance = new QuantClient\Api\EnvironmentsApi( new GuzzleHttp\Client(), $config ); -$organisation = 'organisation_example'; // string | The organisation ID -$application = 'application_example'; // string | The application ID -$environment = 'environment_example'; // string | The environment ID +$organisation = test-org; // string | The organisation ID +$application = test-app; // string | The application ID +$environment = test-env; // string | The environment ID $type = 'type_example'; // string | The sync type $sync_to_environment_request = new \QuantClient\Model\SyncToEnvironmentRequest(); // \QuantClient\Model\SyncToEnvironmentRequest @@ -631,9 +631,9 @@ $apiInstance = new QuantClient\Api\EnvironmentsApi( new GuzzleHttp\Client(), $config ); -$organisation = 'organisation_example'; // string | The organisation ID -$application = 'application_example'; // string | The application ID -$environment = 'environment_example'; // string | The environment ID +$organisation = test-org; // string | The organisation ID +$application = test-app; // string | The application ID +$environment = test-env; // string | The environment ID $update_environment_state_request = new \QuantClient\Model\UpdateEnvironmentStateRequest(); // \QuantClient\Model\UpdateEnvironmentStateRequest try { diff --git a/docs/Api/HeadersApi.md b/docs/Api/HeadersApi.md index dca5b61..6b9b48e 100644 --- a/docs/Api/HeadersApi.md +++ b/docs/Api/HeadersApi.md @@ -34,8 +34,8 @@ $apiInstance = new QuantClient\Api\HeadersApi( new GuzzleHttp\Client(), $config ); -$organization = 'organization_example'; // string -$project = 'project_example'; // string +$organization = test-org; // string | Organization identifier +$project = test-project; // string | Project identifier $v2_custom_header_request = new \QuantClient\Model\V2CustomHeaderRequest(); // \QuantClient\Model\V2CustomHeaderRequest try { @@ -50,8 +50,8 @@ try { | Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | -| **organization** | **string**| | | -| **project** | **string**| | | +| **organization** | **string**| Organization identifier | | +| **project** | **string**| Project identifier | | | **v2_custom_header_request** | [**\QuantClient\Model\V2CustomHeaderRequest**](../Model/V2CustomHeaderRequest.md)| | | ### Return type @@ -96,8 +96,8 @@ $apiInstance = new QuantClient\Api\HeadersApi( new GuzzleHttp\Client(), $config ); -$organization = 'organization_example'; // string -$project = 'project_example'; // string +$organization = test-org; // string | Organization identifier +$project = test-project; // string | Project identifier $v2_custom_header_request = new \QuantClient\Model\V2CustomHeaderRequest(); // \QuantClient\Model\V2CustomHeaderRequest try { @@ -111,8 +111,8 @@ try { | Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | -| **organization** | **string**| | | -| **project** | **string**| | | +| **organization** | **string**| Organization identifier | | +| **project** | **string**| Project identifier | | | **v2_custom_header_request** | [**\QuantClient\Model\V2CustomHeaderRequest**](../Model/V2CustomHeaderRequest.md)| | | ### Return type @@ -157,8 +157,8 @@ $apiInstance = new QuantClient\Api\HeadersApi( new GuzzleHttp\Client(), $config ); -$organization = 'organization_example'; // string -$project = 'project_example'; // string +$organization = test-org; // string | Organization identifier +$project = test-project; // string | Project identifier try { $result = $apiInstance->headersList($organization, $project); @@ -172,8 +172,8 @@ try { | Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | -| **organization** | **string**| | | -| **project** | **string**| | | +| **organization** | **string**| Organization identifier | | +| **project** | **string**| Project identifier | | ### Return type diff --git a/docs/Api/KVApi.md b/docs/Api/KVApi.md index abd928f..136f671 100644 --- a/docs/Api/KVApi.md +++ b/docs/Api/KVApi.md @@ -40,8 +40,8 @@ $apiInstance = new QuantClient\Api\KVApi( new GuzzleHttp\Client(), $config ); -$organization = 'organization_example'; // string -$project = 'project_example'; // string +$organization = test-org; // string | Organization identifier +$project = test-project; // string | Project identifier $v2_store_request = new \QuantClient\Model\V2StoreRequest(); // \QuantClient\Model\V2StoreRequest try { @@ -56,8 +56,8 @@ try { | Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | -| **organization** | **string**| | | -| **project** | **string**| | | +| **organization** | **string**| Organization identifier | | +| **project** | **string**| Project identifier | | | **v2_store_request** | [**\QuantClient\Model\V2StoreRequest**](../Model/V2StoreRequest.md)| | | ### Return type @@ -102,9 +102,9 @@ $apiInstance = new QuantClient\Api\KVApi( new GuzzleHttp\Client(), $config ); -$organization = 'organization_example'; // string -$project = 'project_example'; // string -$store_id = 'store_id_example'; // string +$organization = test-org; // string | Organization identifier +$project = test-project; // string | Project identifier +$store_id = 0000; // string try { $apiInstance->kVDelete($organization, $project, $store_id); @@ -117,8 +117,8 @@ try { | Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | -| **organization** | **string**| | | -| **project** | **string**| | | +| **organization** | **string**| Organization identifier | | +| **project** | **string**| Project identifier | | | **store_id** | **string**| | | ### Return type @@ -163,9 +163,9 @@ $apiInstance = new QuantClient\Api\KVApi( new GuzzleHttp\Client(), $config ); -$organization = 'organization_example'; // string -$project = 'project_example'; // string -$store_id = 'store_id_example'; // string +$organization = test-org; // string | Organization identifier +$project = test-project; // string | Project identifier +$store_id = 0000; // string $v2_store_item_request = new \QuantClient\Model\V2StoreItemRequest(); // \QuantClient\Model\V2StoreItemRequest try { @@ -180,8 +180,8 @@ try { | Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | -| **organization** | **string**| | | -| **project** | **string**| | | +| **organization** | **string**| Organization identifier | | +| **project** | **string**| Project identifier | | | **store_id** | **string**| | | | **v2_store_item_request** | [**\QuantClient\Model\V2StoreItemRequest**](../Model/V2StoreItemRequest.md)| | | @@ -227,9 +227,9 @@ $apiInstance = new QuantClient\Api\KVApi( new GuzzleHttp\Client(), $config ); -$organization = 'organization_example'; // string -$project = 'project_example'; // string -$store_id = 'store_id_example'; // string +$organization = test-org; // string | Organization identifier +$project = test-project; // string | Project identifier +$store_id = 0000; // string $key = 'key_example'; // string try { @@ -244,8 +244,8 @@ try { | Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | -| **organization** | **string**| | | -| **project** | **string**| | | +| **organization** | **string**| Organization identifier | | +| **project** | **string**| Project identifier | | | **store_id** | **string**| | | | **key** | **string**| | | @@ -291,9 +291,9 @@ $apiInstance = new QuantClient\Api\KVApi( new GuzzleHttp\Client(), $config ); -$organization = 'organization_example'; // string -$project = 'project_example'; // string -$store_id = 'store_id_example'; // string +$organization = test-org; // string | Organization identifier +$project = test-project; // string | Project identifier +$store_id = 0000; // string $cursor = 'cursor_example'; // string | Cursor for pagination $limit = 10; // int | Number of items to return $search = 'search_example'; // string | Search filter for keys @@ -311,8 +311,8 @@ try { | Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | -| **organization** | **string**| | | -| **project** | **string**| | | +| **organization** | **string**| Organization identifier | | +| **project** | **string**| Project identifier | | | **store_id** | **string**| | | | **cursor** | **string**| Cursor for pagination | [optional] | | **limit** | **int**| Number of items to return | [optional] [default to 10] | @@ -363,9 +363,9 @@ $apiInstance = new QuantClient\Api\KVApi( new GuzzleHttp\Client(), $config ); -$organization = 'organization_example'; // string -$project = 'project_example'; // string -$store_id = 'store_id_example'; // string +$organization = test-org; // string | Organization identifier +$project = test-project; // string | Project identifier +$store_id = 0000; // string $key = 'key_example'; // string try { @@ -380,8 +380,8 @@ try { | Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | -| **organization** | **string**| | | -| **project** | **string**| | | +| **organization** | **string**| Organization identifier | | +| **project** | **string**| Project identifier | | | **store_id** | **string**| | | | **key** | **string**| | | @@ -427,9 +427,9 @@ $apiInstance = new QuantClient\Api\KVApi( new GuzzleHttp\Client(), $config ); -$organization = 'organization_example'; // string -$project = 'project_example'; // string -$store_id = 'store_id_example'; // string +$organization = test-org; // string | Organization identifier +$project = test-project; // string | Project identifier +$store_id = 0000; // string $key = 'key_example'; // string $v2_store_item_update_request = new \QuantClient\Model\V2StoreItemUpdateRequest(); // \QuantClient\Model\V2StoreItemUpdateRequest @@ -445,8 +445,8 @@ try { | Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | -| **organization** | **string**| | | -| **project** | **string**| | | +| **organization** | **string**| Organization identifier | | +| **project** | **string**| Project identifier | | | **store_id** | **string**| | | | **key** | **string**| | | | **v2_store_item_update_request** | [**\QuantClient\Model\V2StoreItemUpdateRequest**](../Model/V2StoreItemUpdateRequest.md)| | | @@ -493,8 +493,8 @@ $apiInstance = new QuantClient\Api\KVApi( new GuzzleHttp\Client(), $config ); -$organization = 'organization_example'; // string -$project = 'project_example'; // string +$organization = test-org; // string | Organization identifier +$project = test-project; // string | Project identifier try { $result = $apiInstance->kVList($organization, $project); @@ -508,8 +508,8 @@ try { | Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | -| **organization** | **string**| | | -| **project** | **string**| | | +| **organization** | **string**| Organization identifier | | +| **project** | **string**| Project identifier | | ### Return type @@ -553,9 +553,9 @@ $apiInstance = new QuantClient\Api\KVApi( new GuzzleHttp\Client(), $config ); -$organization = 'organization_example'; // string -$project = 'project_example'; // string -$store_id = 'store_id_example'; // string +$organization = test-org; // string | Organization identifier +$project = test-project; // string | Project identifier +$store_id = 0000; // string try { $result = $apiInstance->kVShow($organization, $project, $store_id); @@ -569,8 +569,8 @@ try { | Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | -| **organization** | **string**| | | -| **project** | **string**| | | +| **organization** | **string**| Organization identifier | | +| **project** | **string**| Project identifier | | | **store_id** | **string**| | | ### Return type diff --git a/docs/Api/OrchestrationApi.md b/docs/Api/OrchestrationApi.md new file mode 100644 index 0000000..d0e36f4 --- /dev/null +++ b/docs/Api/OrchestrationApi.md @@ -0,0 +1,70 @@ +# QuantClient\OrchestrationApi + +All URIs are relative to https://dashboard.quantcdn.io, except if the operation defines another base path. + +| Method | HTTP request | Description | +| ------------- | ------------- | ------------- | +| [**getAIOrchestrationStatus()**](OrchestrationApi.md#getAIOrchestrationStatus) | **GET** /api/v3/organizations/{organisation}/ai/tools/orchestrations/{orchestrationId} | Get Orchestration Status | + + +## `getAIOrchestrationStatus()` + +```php +getAIOrchestrationStatus($organisation, $orchestration_id): \QuantClient\Model\GetAIOrchestrationStatus200Response +``` + +Get Orchestration Status + +Retrieves the status and synthesized result of a multi-tool orchestration. * * **Orchestration Pattern:** * When the AI requests multiple async tools simultaneously, an orchestration is created * to track all tool executions and synthesize their results into a single coherent response. * * **Flow:** * 1. AI requests multiple async tools (e.g., image generation + web search) * 2. Chat API creates orchestration and returns orchestrationId * 3. Tool Orchestrator Lambda polls all async tools * 4. When all tools complete, Orchestrator synthesizes results using AI * 5. Client polls this endpoint and receives final synthesized response * * **Status Values:** * - pending: Orchestration created, tools not yet started * - polling: Orchestrator is actively polling async tools * - synthesizing: All tools complete, AI is synthesizing response * - complete: Orchestration finished, synthesizedResponse available * - failed: Orchestration failed, error available * * **Polling Recommendations:** * - Poll every 2 seconds * - Maximum poll time: 10 minutes * - Orchestrator handles tool polling internally * * **Benefits over individual polling:** * - Single poll endpoint for multiple async tools * - AI synthesizes all results into coherent response * - Answers the original user question, not just tool summaries + +### Example + +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + + +$apiInstance = new QuantClient\Api\OrchestrationApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$organisation = 'organisation_example'; // string | The organisation ID +$orchestration_id = orch_abc123def456789012345678901234; // string | Orchestration identifier for aggregated async tool executions + +try { + $result = $apiInstance->getAIOrchestrationStatus($organisation, $orchestration_id); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling OrchestrationApi->getAIOrchestrationStatus: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **organisation** | **string**| The organisation ID | | +| **orchestration_id** | **string**| Orchestration identifier for aggregated async tool executions | | + +### Return type + +[**\QuantClient\Model\GetAIOrchestrationStatus200Response**](../Model/GetAIOrchestrationStatus200Response.md) + +### Authorization + +[BearerAuth](../../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + +[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) +[[Back to Model list]](../../README.md#models) +[[Back to README]](../../README.md) diff --git a/docs/Api/OrganizationsApi.md b/docs/Api/OrganizationsApi.md index a686013..282ae50 100644 --- a/docs/Api/OrganizationsApi.md +++ b/docs/Api/OrganizationsApi.md @@ -88,7 +88,7 @@ $apiInstance = new QuantClient\Api\OrganizationsApi( new GuzzleHttp\Client(), $config ); -$organization = 'organization_example'; // string +$organization = test-org; // string | Organization identifier try { $result = $apiInstance->organizationsRead($organization); @@ -102,7 +102,7 @@ try { | Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | -| **organization** | **string**| | | +| **organization** | **string**| Organization identifier | | ### Return type diff --git a/docs/Api/ProjectsApi.md b/docs/Api/ProjectsApi.md index 7f9d287..4225809 100644 --- a/docs/Api/ProjectsApi.md +++ b/docs/Api/ProjectsApi.md @@ -36,7 +36,7 @@ $apiInstance = new QuantClient\Api\ProjectsApi( new GuzzleHttp\Client(), $config ); -$organization = 'organization_example'; // string +$organization = test-org; // string | Organization identifier $v2_project_request = new \QuantClient\Model\V2ProjectRequest(); // \QuantClient\Model\V2ProjectRequest try { @@ -51,7 +51,7 @@ try { | Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | -| **organization** | **string**| | | +| **organization** | **string**| Organization identifier | | | **v2_project_request** | [**\QuantClient\Model\V2ProjectRequest**](../Model/V2ProjectRequest.md)| | | ### Return type @@ -96,8 +96,8 @@ $apiInstance = new QuantClient\Api\ProjectsApi( new GuzzleHttp\Client(), $config ); -$organization = 'organization_example'; // string -$project = 'project_example'; // string +$organization = test-org; // string | Organization identifier +$project = test-project; // string | Project identifier try { $apiInstance->projectsDelete($organization, $project); @@ -110,8 +110,8 @@ try { | Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | -| **organization** | **string**| | | -| **project** | **string**| | | +| **organization** | **string**| Organization identifier | | +| **project** | **string**| Project identifier | | ### Return type @@ -155,7 +155,7 @@ $apiInstance = new QuantClient\Api\ProjectsApi( new GuzzleHttp\Client(), $config ); -$organization = 'organization_example'; // string +$organization = test-org; // string | Organization identifier try { $result = $apiInstance->projectsList($organization); @@ -169,7 +169,7 @@ try { | Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | -| **organization** | **string**| | | +| **organization** | **string**| Organization identifier | | ### Return type @@ -213,8 +213,8 @@ $apiInstance = new QuantClient\Api\ProjectsApi( new GuzzleHttp\Client(), $config ); -$organization = 'organization_example'; // string -$project = 'project_example'; // string +$organization = test-org; // string | Organization identifier +$project = test-project; // string | Project identifier $with_token = false; // bool try { @@ -229,8 +229,8 @@ try { | Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | -| **organization** | **string**| | | -| **project** | **string**| | | +| **organization** | **string**| Organization identifier | | +| **project** | **string**| Project identifier | | | **with_token** | **bool**| | [default to false] | ### Return type @@ -275,8 +275,8 @@ $apiInstance = new QuantClient\Api\ProjectsApi( new GuzzleHttp\Client(), $config ); -$organization = 'organization_example'; // string -$project = 'project_example'; // string +$organization = test-org; // string | Organization identifier +$project = test-project; // string | Project identifier $v2_project_request = new \QuantClient\Model\V2ProjectRequest(); // \QuantClient\Model\V2ProjectRequest try { @@ -291,8 +291,8 @@ try { | Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | -| **organization** | **string**| | | -| **project** | **string**| | | +| **organization** | **string**| Organization identifier | | +| **project** | **string**| Project identifier | | | **v2_project_request** | [**\QuantClient\Model\V2ProjectRequest**](../Model/V2ProjectRequest.md)| | | ### Return type diff --git a/docs/Api/PurgeApi.md b/docs/Api/PurgeApi.md index 4382b49..9867270 100644 --- a/docs/Api/PurgeApi.md +++ b/docs/Api/PurgeApi.md @@ -32,8 +32,8 @@ $apiInstance = new QuantClient\Api\PurgeApi( new GuzzleHttp\Client(), $config ); -$organization = 'organization_example'; // string -$project = 'project_example'; // string +$organization = test-org; // string | Organization identifier +$project = test-project; // string | Project identifier $purge_create_request = new \QuantClient\Model\PurgeCreateRequest(); // \QuantClient\Model\PurgeCreateRequest try { @@ -48,8 +48,8 @@ try { | Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | -| **organization** | **string**| | | -| **project** | **string**| | | +| **organization** | **string**| Organization identifier | | +| **project** | **string**| Project identifier | | | **purge_create_request** | [**\QuantClient\Model\PurgeCreateRequest**](../Model/PurgeCreateRequest.md)| | | ### Return type diff --git a/docs/Api/SSHAccessApi.md b/docs/Api/SSHAccessApi.md index 0dd19cb..bda27f4 100644 --- a/docs/Api/SSHAccessApi.md +++ b/docs/Api/SSHAccessApi.md @@ -32,9 +32,9 @@ $apiInstance = new QuantClient\Api\SSHAccessApi( new GuzzleHttp\Client(), $config ); -$organisation = 'organisation_example'; // string | The organisation machine name -$application = 'application_example'; // string | The application name -$environment = 'environment_example'; // string | The environment name +$organisation = test-org; // string | The organisation ID +$application = test-app; // string | The application ID +$environment = test-env; // string | The environment ID try { $result = $apiInstance->getSshAccessCredentials($organisation, $application, $environment); @@ -48,9 +48,9 @@ try { | Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | -| **organisation** | **string**| The organisation machine name | | -| **application** | **string**| The application name | | -| **environment** | **string**| The environment name | | +| **organisation** | **string**| The organisation ID | | +| **application** | **string**| The application ID | | +| **environment** | **string**| The environment ID | | ### Return type diff --git a/docs/Api/ScalingPolicyApi.md b/docs/Api/ScalingPolicyApi.md index befed8b..4542b7c 100644 --- a/docs/Api/ScalingPolicyApi.md +++ b/docs/Api/ScalingPolicyApi.md @@ -34,9 +34,9 @@ $apiInstance = new QuantClient\Api\ScalingPolicyApi( new GuzzleHttp\Client(), $config ); -$organisation = 'organisation_example'; // string | The organisation ID -$application = 'application_example'; // string | The application ID -$environment = 'environment_example'; // string | The environment ID +$organisation = test-org; // string | The organisation ID +$application = test-app; // string | The application ID +$environment = test-env; // string | The environment ID $policy_name = 'policy_name_example'; // string | The policy name try { @@ -97,9 +97,9 @@ $apiInstance = new QuantClient\Api\ScalingPolicyApi( new GuzzleHttp\Client(), $config ); -$organisation = 'organisation_example'; // string | The organisation ID -$application = 'application_example'; // string | The application ID -$environment = 'environment_example'; // string | The environment ID +$organisation = test-org; // string | The organisation ID +$application = test-app; // string | The application ID +$environment = test-env; // string | The environment ID try { $apiInstance->getScalingPolicies($organisation, $application, $environment); @@ -158,9 +158,9 @@ $apiInstance = new QuantClient\Api\ScalingPolicyApi( new GuzzleHttp\Client(), $config ); -$organisation = 'organisation_example'; // string | The organisation ID -$application = 'application_example'; // string | The application ID -$environment = 'environment_example'; // string | The environment ID +$organisation = test-org; // string | The organisation ID +$application = test-app; // string | The application ID +$environment = test-env; // string | The environment ID $scaling_policy = new \QuantClient\Model\ScalingPolicy(); // \QuantClient\Model\ScalingPolicy try { diff --git a/docs/Api/VariablesApi.md b/docs/Api/VariablesApi.md index 107b218..2e5d7f1 100644 --- a/docs/Api/VariablesApi.md +++ b/docs/Api/VariablesApi.md @@ -35,9 +35,9 @@ $apiInstance = new QuantClient\Api\VariablesApi( new GuzzleHttp\Client(), $config ); -$api_organisation = 'api_organisation_example'; // string | The organisation ID -$api_application = 'api_application_example'; // string | The application ID -$api_environment = 'api_environment_example'; // string | The environment ID +$api_organisation = test-org; // string | The organisation ID +$api_application = test-app; // string | The application ID +$api_environment = test-env; // string | The environment ID $bulk_set_environment_variables_request = new \QuantClient\Model\BulkSetEnvironmentVariablesRequest(); // \QuantClient\Model\BulkSetEnvironmentVariablesRequest try { @@ -161,9 +161,9 @@ $apiInstance = new QuantClient\Api\VariablesApi( new GuzzleHttp\Client(), $config ); -$api_organisation = 'api_organisation_example'; // string | The organisation ID -$api_application = 'api_application_example'; // string | The application ID -$api_environment = 'api_environment_example'; // string | The environment ID +$api_organisation = test-org; // string | The organisation ID +$api_application = test-app; // string | The application ID +$api_environment = test-env; // string | The environment ID try { $apiInstance->listEnvironmentVariables($api_organisation, $api_application, $api_environment); @@ -222,9 +222,9 @@ $apiInstance = new QuantClient\Api\VariablesApi( new GuzzleHttp\Client(), $config ); -$api_organisation = 'api_organisation_example'; // string | The organisation ID -$api_application = 'api_application_example'; // string | The application ID -$api_environment = 'api_environment_example'; // string | The environment ID +$api_organisation = test-org; // string | The organisation ID +$api_application = test-app; // string | The application ID +$api_environment = test-env; // string | The environment ID $api_variable = 'api_variable_example'; // string | The variable key $update_environment_variable_request = new \QuantClient\Model\UpdateEnvironmentVariableRequest(); // \QuantClient\Model\UpdateEnvironmentVariableRequest diff --git a/docs/Api/VolumesApi.md b/docs/Api/VolumesApi.md index a795ffa..9ec1b07 100644 --- a/docs/Api/VolumesApi.md +++ b/docs/Api/VolumesApi.md @@ -35,9 +35,9 @@ $apiInstance = new QuantClient\Api\VolumesApi( new GuzzleHttp\Client(), $config ); -$organisation = 'organisation_example'; // string | The organisation ID -$application = 'application_example'; // string | The application ID -$environment = 'environment_example'; // string | The environment ID +$organisation = test-org; // string | The organisation ID +$application = test-app; // string | The application ID +$environment = test-env; // string | The environment ID $create_volume_request = new \QuantClient\Model\CreateVolumeRequest(); // \QuantClient\Model\CreateVolumeRequest try { @@ -99,9 +99,9 @@ $apiInstance = new QuantClient\Api\VolumesApi( new GuzzleHttp\Client(), $config ); -$organisation = 'organisation_example'; // string | The organisation ID -$application = 'application_example'; // string | The application ID -$environment = 'environment_example'; // string | The environment ID +$organisation = test-org; // string | The organisation ID +$application = test-app; // string | The application ID +$environment = test-env; // string | The environment ID $volume = 'volume_example'; // string | The volume ID try { @@ -162,9 +162,9 @@ $apiInstance = new QuantClient\Api\VolumesApi( new GuzzleHttp\Client(), $config ); -$organisation = 'organisation_example'; // string | The organisation ID -$application = 'application_example'; // string | The application ID -$environment = 'environment_example'; // string | The environment ID +$organisation = test-org; // string | The organisation ID +$application = test-app; // string | The application ID +$environment = test-env; // string | The environment ID $volume = 'volume_example'; // string | The volume ID try { @@ -226,9 +226,9 @@ $apiInstance = new QuantClient\Api\VolumesApi( new GuzzleHttp\Client(), $config ); -$organisation = 'organisation_example'; // string | The organisation ID -$application = 'application_example'; // string | The application ID -$environment = 'environment_example'; // string | The environment ID +$organisation = test-org; // string | The organisation ID +$application = test-app; // string | The application ID +$environment = test-env; // string | The environment ID try { $result = $apiInstance->listVolumes($organisation, $application, $environment); diff --git a/docs/Model/ChatInference202Response.md b/docs/Model/ChatInference202Response.md new file mode 100644 index 0000000..382401d --- /dev/null +++ b/docs/Model/ChatInference202Response.md @@ -0,0 +1,13 @@ +# # ChatInference202Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**request_id** | **string** | Unique request identifier for polling | +**session_id** | **string** | Session ID for conversation continuity | [optional] +**status** | **string** | Initial execution status | +**message** | **string** | Human-readable status message | [optional] +**poll_url** | **string** | URL to poll for execution status | + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/ChatInferenceRequest.md b/docs/Model/ChatInferenceRequest.md index bc18f63..73cbe07 100644 --- a/docs/Model/ChatInferenceRequest.md +++ b/docs/Model/ChatInferenceRequest.md @@ -7,12 +7,14 @@ Name | Type | Description | Notes **messages** | [**\QuantClient\Model\ChatInferenceRequestMessagesInner[]**](ChatInferenceRequestMessagesInner.md) | Array of chat messages. Content can be a simple string or an array of content blocks for multimodal input. | **model_id** | **string** | Model ID. Use Nova models for multimodal support. | **temperature** | **float** | | [optional] [default to 0.7] -**max_tokens** | **int** | | [optional] [default to 1024] +**max_tokens** | **int** | Max tokens. Claude 4.5 supports up to 64k. | [optional] [default to 4096] **top_p** | **float** | | [optional] **stream** | **bool** | Ignored in buffered mode, always returns complete response | [optional] **system_prompt** | **string** | Optional custom system prompt. When tools are enabled, this is prepended with tool usage guidance. | [optional] **stop_sequences** | **string[]** | Custom stop sequences | [optional] **response_format** | [**\QuantClient\Model\ChatInferenceRequestResponseFormat**](ChatInferenceRequestResponseFormat.md) | | [optional] **tool_config** | [**\QuantClient\Model\ChatInferenceRequestToolConfig**](ChatInferenceRequestToolConfig.md) | | [optional] +**session_id** | **string** | Optional session ID for conversation continuity. Omit to use stateless mode, include to continue an existing session. | [optional] +**async** | **bool** | Enable async/durable execution mode. When true, returns 202 with pollUrl instead of waiting for completion. Use for long-running inference, client-executed tools, or operations >30 seconds. | [optional] [default to false] [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/ChatInferenceStreamRequest.md b/docs/Model/ChatInferenceStreamRequest.md index 5828e33..f0ea2ae 100644 --- a/docs/Model/ChatInferenceStreamRequest.md +++ b/docs/Model/ChatInferenceStreamRequest.md @@ -7,11 +7,13 @@ Name | Type | Description | Notes **messages** | [**\QuantClient\Model\ChatInferenceStreamRequestMessagesInner[]**](ChatInferenceStreamRequestMessagesInner.md) | Array of chat messages. Content can be a simple string or an array of content blocks for multimodal input. | **model_id** | **string** | Model ID. Use Nova models for multimodal support. | **temperature** | **float** | | [optional] [default to 0.7] -**max_tokens** | **int** | | [optional] [default to 1024] +**max_tokens** | **int** | Max tokens. Claude 4.5 supports up to 64k. | [optional] [default to 4096] **top_p** | **float** | | [optional] **system_prompt** | **string** | Optional custom system prompt. When tools are enabled, this is prepended with tool usage guidance. | [optional] **stop_sequences** | **string[]** | Custom stop sequences | [optional] **response_format** | [**\QuantClient\Model\ChatInferenceRequestResponseFormat**](ChatInferenceRequestResponseFormat.md) | | [optional] **tool_config** | [**\QuantClient\Model\ChatInferenceRequestToolConfig**](ChatInferenceRequestToolConfig.md) | | [optional] +**session_id** | **string** | Optional session ID for conversation continuity. Omit to use stateless mode, include to continue an existing session. | [optional] +**async** | **bool** | Enable async/durable execution mode. When true, returns 202 with pollUrl instead of streaming. Use for long-running inference, client-executed tools, or operations >30 seconds. | [optional] [default to false] [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/ChatWithAIAgent202Response.md b/docs/Model/ChatWithAIAgent202Response.md new file mode 100644 index 0000000..06ceb89 --- /dev/null +++ b/docs/Model/ChatWithAIAgent202Response.md @@ -0,0 +1,15 @@ +# # ChatWithAIAgent202Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**request_id** | **string** | Unique request identifier for polling | +**agent_id** | **string** | The agent processing the request | +**agent_name** | **string** | Human-readable agent name | [optional] +**session_id** | **string** | Session ID (if provided) | [optional] +**status** | **string** | Initial status | +**message** | **string** | | [optional] +**poll_url** | **string** | URL to poll for execution status | + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/ChatWithAIAgentRequest.md b/docs/Model/ChatWithAIAgentRequest.md index 22094da..cee5cbd 100644 --- a/docs/Model/ChatWithAIAgentRequest.md +++ b/docs/Model/ChatWithAIAgentRequest.md @@ -8,5 +8,7 @@ Name | Type | Description | Notes **session_id** | **string** | Optional session ID to continue a conversation | [optional] **user_id** | **string** | Optional user identifier for session isolation | [optional] **stream** | **bool** | Whether to stream the response (SSE) | [optional] [default to false] +**async** | **bool** | Enable async/durable execution mode. When true, returns 202 with pollUrl. Use for long-running agent tasks. | [optional] [default to false] +**system** | **string** | Optional additional system prompt (appended to agent's configured prompt) | [optional] [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/CrawlersRunRequest.md b/docs/Model/CrawlersRunRequest.md index eb643fc..e69e501 100644 --- a/docs/Model/CrawlersRunRequest.md +++ b/docs/Model/CrawlersRunRequest.md @@ -4,6 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**urls** | **string[]** | URLs to crawl | [optional] +**urls** | **string[]** | Optional URLs to crawl (overrides crawler's default URL configuration). If not provided, the crawler will use its configured URLs or perform a full crawl. | [optional] [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/QueryVectorCollection200ResponseResultsInnerMetadata.md b/docs/Model/CreateTask201Response.md similarity index 60% rename from docs/Model/QueryVectorCollection200ResponseResultsInnerMetadata.md rename to docs/Model/CreateTask201Response.md index 351baae..a221121 100644 --- a/docs/Model/QueryVectorCollection200ResponseResultsInnerMetadata.md +++ b/docs/Model/CreateTask201Response.md @@ -1,11 +1,13 @@ -# # QueryVectorCollection200ResponseResultsInnerMetadata +# # CreateTask201Response ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**task_id** | **string** | | [optional] +**org_id** | **string** | | [optional] **title** | **string** | | [optional] -**source_url** | **string** | | [optional] -**section** | **string** | | [optional] +**status** | **string** | | [optional] +**created_at** | **int** | | [optional] [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/CreateTaskRequest.md b/docs/Model/CreateTaskRequest.md new file mode 100644 index 0000000..26eaf08 --- /dev/null +++ b/docs/Model/CreateTaskRequest.md @@ -0,0 +1,19 @@ +# # CreateTaskRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**title** | **string** | Task title | +**description** | **string** | Detailed task description | [optional] +**task_list_id** | **string** | Task list ID for grouping related tasks (implicit - lists are created automatically) | [optional] +**status** | **string** | Initial task status | [optional] [default to 'pending'] +**assigned_agent_id** | **string** | Pre-assign task to specific agent | [optional] +**created_by_agent_id** | **string** | Agent ID that created this task | [optional] +**depends_on** | **string[]** | Task IDs that must complete before this task can start | [optional] +**metadata** | **object** | Flexible JSON metadata for task-specific data | [optional] +**max_retries** | **int** | Maximum retry attempts on failure | [optional] [default to 3] +**blocked_reason** | **string** | Reason task is blocked (when status is blocked) | [optional] +**blocked_by_task_ids** | **string[]** | Task IDs that are blocking this task | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/DeleteFile200Response.md b/docs/Model/DeleteFile200Response.md new file mode 100644 index 0000000..a004c80 --- /dev/null +++ b/docs/Model/DeleteFile200Response.md @@ -0,0 +1,10 @@ +# # DeleteFile200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | **string** | | [optional] +**file_id** | **string** | | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/DeleteTask200Response.md b/docs/Model/DeleteTask200Response.md new file mode 100644 index 0000000..78fb23c --- /dev/null +++ b/docs/Model/DeleteTask200Response.md @@ -0,0 +1,11 @@ +# # DeleteTask200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**deleted** | **bool** | | [optional] +**deleted_count** | **int** | Number of tasks deleted (more than 1 for cascade) | [optional] +**deleted_task_ids** | **string[]** | | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/DeleteTask409Response.md b/docs/Model/DeleteTask409Response.md new file mode 100644 index 0000000..4d91f0a --- /dev/null +++ b/docs/Model/DeleteTask409Response.md @@ -0,0 +1,11 @@ +# # DeleteTask409Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **string** | | [optional] +**message** | **string** | | [optional] +**dependent_task_ids** | **string[]** | | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/GetAIOrchestrationStatus200Response.md b/docs/Model/GetAIOrchestrationStatus200Response.md new file mode 100644 index 0000000..5ab62ed --- /dev/null +++ b/docs/Model/GetAIOrchestrationStatus200Response.md @@ -0,0 +1,17 @@ +# # GetAIOrchestrationStatus200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**orchestration_id** | **string** | Unique orchestration identifier | +**status** | **string** | Current orchestration status | +**tool_count** | **int** | Total number of async tools in this orchestration | +**completed_tools** | **int** | Number of tools that have completed | [optional] +**synthesized_response** | **string** | AI-synthesized response combining all tool results (only present when status=complete) | [optional] +**tools** | [**\QuantClient\Model\GetAIOrchestrationStatus200ResponseToolsInner[]**](GetAIOrchestrationStatus200ResponseToolsInner.md) | Status of individual tool executions | [optional] +**error** | **string** | Error message (only present when status=failed) | [optional] +**created_at** | **\DateTime** | When orchestration was created | +**completed_at** | **\DateTime** | When orchestration completed (if status in complete or failed) | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/GetAIOrchestrationStatus200ResponseToolsInner.md b/docs/Model/GetAIOrchestrationStatus200ResponseToolsInner.md new file mode 100644 index 0000000..b25432b --- /dev/null +++ b/docs/Model/GetAIOrchestrationStatus200ResponseToolsInner.md @@ -0,0 +1,13 @@ +# # GetAIOrchestrationStatus200ResponseToolsInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**execution_id** | **string** | | [optional] +**tool_name** | **string** | | [optional] +**status** | **string** | | [optional] +**result** | **object** | Tool result (if complete) | [optional] +**error** | **string** | Error message (if failed) | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/GetAIOrchestrationStatus404Response.md b/docs/Model/GetAIOrchestrationStatus404Response.md new file mode 100644 index 0000000..31368cd --- /dev/null +++ b/docs/Model/GetAIOrchestrationStatus404Response.md @@ -0,0 +1,10 @@ +# # GetAIOrchestrationStatus404Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **string** | | [optional] +**orchestration_id** | **string** | | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/GetDependencyGraph200Response.md b/docs/Model/GetDependencyGraph200Response.md new file mode 100644 index 0000000..d95d4a9 --- /dev/null +++ b/docs/Model/GetDependencyGraph200Response.md @@ -0,0 +1,13 @@ +# # GetDependencyGraph200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**task_list_id** | **string** | | [optional] +**task_count** | **int** | | [optional] +**roots** | **string[]** | Task IDs with no dependencies | [optional] +**leaves** | **string[]** | Task IDs with no dependents | [optional] +**graph** | **object** | Adjacency list with task summaries, dependsOn, and dependents arrays | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/GetDurableExecutionStatus200Response.md b/docs/Model/GetDurableExecutionStatus200Response.md new file mode 100644 index 0000000..6ce9beb --- /dev/null +++ b/docs/Model/GetDurableExecutionStatus200Response.md @@ -0,0 +1,16 @@ +# # GetDurableExecutionStatus200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**request_id** | **string** | | [optional] +**execution_arn** | **string** | | [optional] +**status** | **string** | | [optional] +**aws_status** | **string** | Raw AWS Step Functions status | [optional] +**callback_id** | **string** | Present when status is waiting_callback - use with /chat/callback | [optional] +**pending_tools** | [**\QuantClient\Model\GetDurableExecutionStatus200ResponsePendingToolsInner[]**](GetDurableExecutionStatus200ResponsePendingToolsInner.md) | Present when status is waiting_callback - tools waiting for results | [optional] +**result** | [**\QuantClient\Model\GetDurableExecutionStatus200ResponseResult**](GetDurableExecutionStatus200ResponseResult.md) | | [optional] +**error** | [**\QuantClient\Model\GetDurableExecutionStatus200ResponseError**](GetDurableExecutionStatus200ResponseError.md) | | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/GetDurableExecutionStatus200ResponseError.md b/docs/Model/GetDurableExecutionStatus200ResponseError.md new file mode 100644 index 0000000..4c47ead --- /dev/null +++ b/docs/Model/GetDurableExecutionStatus200ResponseError.md @@ -0,0 +1,10 @@ +# # GetDurableExecutionStatus200ResponseError + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error_message** | **string** | | [optional] +**error_type** | **string** | | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/GetDurableExecutionStatus200ResponsePendingToolsInner.md b/docs/Model/GetDurableExecutionStatus200ResponsePendingToolsInner.md new file mode 100644 index 0000000..d479898 --- /dev/null +++ b/docs/Model/GetDurableExecutionStatus200ResponsePendingToolsInner.md @@ -0,0 +1,11 @@ +# # GetDurableExecutionStatus200ResponsePendingToolsInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **string** | | [optional] +**tool_use_id** | **string** | | [optional] +**input** | **object** | | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/GetDurableExecutionStatus200ResponseResult.md b/docs/Model/GetDurableExecutionStatus200ResponseResult.md new file mode 100644 index 0000000..6c654a3 --- /dev/null +++ b/docs/Model/GetDurableExecutionStatus200ResponseResult.md @@ -0,0 +1,11 @@ +# # GetDurableExecutionStatus200ResponseResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**response** | [**\QuantClient\Model\GetDurableExecutionStatus200ResponseResultResponse**](GetDurableExecutionStatus200ResponseResultResponse.md) | | [optional] +**usage** | [**\QuantClient\Model\GetDurableExecutionStatus200ResponseResultUsage**](GetDurableExecutionStatus200ResponseResultUsage.md) | | [optional] +**tool_executions** | **object[]** | | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/GetDurableExecutionStatus200ResponseResultResponse.md b/docs/Model/GetDurableExecutionStatus200ResponseResultResponse.md new file mode 100644 index 0000000..b93634d --- /dev/null +++ b/docs/Model/GetDurableExecutionStatus200ResponseResultResponse.md @@ -0,0 +1,10 @@ +# # GetDurableExecutionStatus200ResponseResultResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**role** | **string** | | [optional] +**content** | **string** | | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/GetDurableExecutionStatus200ResponseResultUsage.md b/docs/Model/GetDurableExecutionStatus200ResponseResultUsage.md new file mode 100644 index 0000000..a05fd40 --- /dev/null +++ b/docs/Model/GetDurableExecutionStatus200ResponseResultUsage.md @@ -0,0 +1,11 @@ +# # GetDurableExecutionStatus200ResponseResultUsage + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**input_tokens** | **int** | | [optional] +**output_tokens** | **int** | | [optional] +**total_tokens** | **int** | | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/GetFile200Response.md b/docs/Model/GetFile200Response.md new file mode 100644 index 0000000..a1e08ae --- /dev/null +++ b/docs/Model/GetFile200Response.md @@ -0,0 +1,16 @@ +# # GetFile200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**file_id** | **string** | | [optional] +**s3_uri** | **string** | | [optional] +**url** | **string** | Presigned download URL (1 hour) | [optional] +**filename** | **string** | | [optional] +**content_type** | **string** | | [optional] +**size** | **int** | | [optional] +**metadata** | **object** | | [optional] +**created_at** | **\DateTime** | | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/GetTask200Response.md b/docs/Model/GetTask200Response.md new file mode 100644 index 0000000..1983da0 --- /dev/null +++ b/docs/Model/GetTask200Response.md @@ -0,0 +1,32 @@ +# # GetTask200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**task_id** | **string** | | [optional] +**org_id** | **string** | | [optional] +**task_list_id** | **string** | | [optional] +**title** | **string** | | [optional] +**description** | **string** | | [optional] +**status** | **string** | | [optional] +**assigned_agent_id** | **string** | | [optional] +**created_by_agent_id** | **string** | | [optional] +**depends_on** | **string[]** | | [optional] +**metadata** | **object** | | [optional] +**progress** | **float** | | [optional] +**progress_message** | **string** | | [optional] +**result** | **object** | Task result data when completed | [optional] +**error** | **string** | Error message if status is failed | [optional] +**retry_count** | **int** | | [optional] +**max_retries** | **int** | | [optional] +**created_at** | **int** | Unix timestamp in milliseconds | [optional] +**updated_at** | **int** | Unix timestamp in milliseconds | [optional] +**started_at** | **int** | When status changed to in_progress | [optional] +**completed_at** | **int** | When task completed/failed/cancelled | [optional] +**expires_at** | **int** | TTL timestamp for completed tasks | [optional] +**blocked_reason** | **string** | Reason task is blocked | [optional] +**blocked_by_task_ids** | **string[]** | Task IDs that are blocking this task | [optional] +**blocked_at** | **int** | When status changed to blocked | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/ListFiles200Response.md b/docs/Model/ListFiles200Response.md new file mode 100644 index 0000000..c9b684a --- /dev/null +++ b/docs/Model/ListFiles200Response.md @@ -0,0 +1,11 @@ +# # ListFiles200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**files** | [**\QuantClient\Model\ListFiles200ResponseFilesInner[]**](ListFiles200ResponseFilesInner.md) | | [optional] +**next_cursor** | **string** | Cursor for next page | [optional] +**has_more** | **bool** | True if more results available | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/ListFiles200ResponseFilesInner.md b/docs/Model/ListFiles200ResponseFilesInner.md new file mode 100644 index 0000000..4af76b6 --- /dev/null +++ b/docs/Model/ListFiles200ResponseFilesInner.md @@ -0,0 +1,14 @@ +# # ListFiles200ResponseFilesInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**file_id** | **string** | | [optional] +**filename** | **string** | | [optional] +**content_type** | **string** | | [optional] +**size** | **int** | | [optional] +**metadata** | **object** | | [optional] +**created_at** | **\DateTime** | | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/ListTasks200Response.md b/docs/Model/ListTasks200Response.md new file mode 100644 index 0000000..40643c8 --- /dev/null +++ b/docs/Model/ListTasks200Response.md @@ -0,0 +1,12 @@ +# # ListTasks200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**tasks** | [**\QuantClient\Model\ListTasks200ResponseTasksInner[]**](ListTasks200ResponseTasksInner.md) | | [optional] +**task_ids** | **string[]** | Task IDs (only with dependsOn filter) | [optional] +**count** | **int** | | [optional] +**depends_on** | **string** | The queried task ID (only with dependsOn filter) | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/ListTasks200ResponseTasksInner.md b/docs/Model/ListTasks200ResponseTasksInner.md new file mode 100644 index 0000000..cc559e8 --- /dev/null +++ b/docs/Model/ListTasks200ResponseTasksInner.md @@ -0,0 +1,20 @@ +# # ListTasks200ResponseTasksInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**task_id** | **string** | | [optional] +**org_id** | **string** | | [optional] +**task_list_id** | **string** | | [optional] +**title** | **string** | | [optional] +**description** | **string** | | [optional] +**status** | **string** | | [optional] +**assigned_agent_id** | **string** | | [optional] +**progress** | **float** | | [optional] +**blocked_reason** | **string** | | [optional] +**blocked_by_task_ids** | **string[]** | | [optional] +**created_at** | **int** | | [optional] +**updated_at** | **int** | | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/QueryVectorCollection200Response.md b/docs/Model/QueryVectorCollection200Response.md index f07b924..e05f909 100644 --- a/docs/Model/QueryVectorCollection200Response.md +++ b/docs/Model/QueryVectorCollection200Response.md @@ -5,8 +5,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **results** | [**\QuantClient\Model\QueryVectorCollection200ResponseResultsInner[]**](QueryVectorCollection200ResponseResultsInner.md) | | [optional] -**query** | **string** | | [optional] -**count** | **int** | | [optional] -**execution_time_ms** | **int** | | [optional] +**query** | **string** | Original query text (null if vector or metadata search was used) | [optional] +**search_mode** | **string** | Search mode used: text (query provided), vector (pre-computed), metadata (listByMetadata) | [optional] +**filter** | **object** | Filter that was applied (if any) | [optional] +**count** | **int** | Number of results returned | [optional] +**execution_time_ms** | **int** | Query execution time in milliseconds | [optional] +**collection_id** | **string** | | [optional] +**has_more** | **bool** | True if more results available (listByMetadata mode only) | [optional] +**next_cursor** | **string** | Cursor for next page. Pass as cursor param to continue. Null when no more results. Only in listByMetadata mode. | [optional] +**pagination** | [**\QuantClient\Model\QueryVectorCollection200ResponsePagination**](QueryVectorCollection200ResponsePagination.md) | | [optional] [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/QueryVectorCollection200ResponsePagination.md b/docs/Model/QueryVectorCollection200ResponsePagination.md new file mode 100644 index 0000000..f477074 --- /dev/null +++ b/docs/Model/QueryVectorCollection200ResponsePagination.md @@ -0,0 +1,11 @@ +# # QueryVectorCollection200ResponsePagination + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sort_by** | **string** | | [optional] +**sort_order** | **string** | | [optional] +**limit** | **int** | | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/QueryVectorCollection200ResponseResultsInner.md b/docs/Model/QueryVectorCollection200ResponseResultsInner.md index bc29cab..a5b219f 100644 --- a/docs/Model/QueryVectorCollection200ResponseResultsInner.md +++ b/docs/Model/QueryVectorCollection200ResponseResultsInner.md @@ -4,8 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**content** | **string** | | [optional] -**score** | **float** | | [optional] -**metadata** | [**\QuantClient\Model\QueryVectorCollection200ResponseResultsInnerMetadata**](QueryVectorCollection200ResponseResultsInnerMetadata.md) | | [optional] +**document_id** | **string** | | [optional] +**content** | **string** | Document text content | [optional] +**similarity** | **float** | Cosine similarity score (1.0 for metadata-only queries) | [optional] +**metadata** | **array** | | [optional] +**embedding** | **float[]** | Vector embedding (only if includeEmbeddings=true) | [optional] [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/QueryVectorCollectionRequest.md b/docs/Model/QueryVectorCollectionRequest.md index 5de6e52..ff3c384 100644 --- a/docs/Model/QueryVectorCollectionRequest.md +++ b/docs/Model/QueryVectorCollectionRequest.md @@ -4,7 +4,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**query** | **string** | Natural language search query | -**count** | **int** | Number of results to return | [optional] [default to 5] +**query** | **string** | Natural language search query (mutually exclusive with vector) | [optional] +**vector** | **float[]** | Pre-computed embedding vector (mutually exclusive with query). Array length must match collection dimension. | [optional] +**limit** | **int** | Maximum number of results to return | [optional] [default to 5] +**threshold** | **float** | Minimum similarity score (0-1, higher = more relevant) | [optional] [default to 0.7] +**include_embeddings** | **bool** | Include embedding vectors in response (for debugging) | [optional] [default to false] +**filter** | [**\QuantClient\Model\QueryVectorCollectionRequestFilter**](QueryVectorCollectionRequestFilter.md) | | [optional] +**list_by_metadata** | **bool** | If true, skip semantic search and return all documents matching the filter. Requires filter. Supports cursor pagination. | [optional] [default to false] +**cursor** | **string** | Pagination cursor for listByMetadata mode. Use nextCursor from previous response. Opaque format - do not construct manually. | [optional] +**sort_by** | **string** | Field to sort by in listByMetadata mode | [optional] [default to 'created_at'] +**sort_order** | **string** | Sort direction in listByMetadata mode | [optional] [default to 'desc'] [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/QueryVectorCollectionRequestFilter.md b/docs/Model/QueryVectorCollectionRequestFilter.md new file mode 100644 index 0000000..e420661 --- /dev/null +++ b/docs/Model/QueryVectorCollectionRequestFilter.md @@ -0,0 +1,10 @@ +# # QueryVectorCollectionRequestFilter + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**exact** | **array** | Exact match on metadata fields. Keys are metadata field names, values are expected values. | [optional] +**contains** | **array** | Array contains filter for array metadata fields (like tags). Returns documents where the metadata array contains ANY of the specified values. | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/SubmitToolCallback200Response.md b/docs/Model/SubmitToolCallback200Response.md new file mode 100644 index 0000000..55fae15 --- /dev/null +++ b/docs/Model/SubmitToolCallback200Response.md @@ -0,0 +1,11 @@ +# # SubmitToolCallback200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success** | **bool** | | [optional] +**message** | **string** | | [optional] +**callback_id** | **string** | Echo of the callbackId for confirmation | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/SubmitToolCallbackRequest.md b/docs/Model/SubmitToolCallbackRequest.md new file mode 100644 index 0000000..18e27c4 --- /dev/null +++ b/docs/Model/SubmitToolCallbackRequest.md @@ -0,0 +1,10 @@ +# # SubmitToolCallbackRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**callback_id** | **string** | The callbackId from the waiting_callback status response | +**tool_results** | [**\QuantClient\Model\SubmitToolCallbackRequestToolResultsInner[]**](SubmitToolCallbackRequestToolResultsInner.md) | Results of client-executed tools | + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/SubmitToolCallbackRequestToolResultsInner.md b/docs/Model/SubmitToolCallbackRequestToolResultsInner.md new file mode 100644 index 0000000..bfb1598 --- /dev/null +++ b/docs/Model/SubmitToolCallbackRequestToolResultsInner.md @@ -0,0 +1,10 @@ +# # SubmitToolCallbackRequestToolResultsInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**tool_use_id** | **string** | The toolUseId from pendingTools | +**result** | **object** | The result of executing the tool | + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/UpdateTask200Response.md b/docs/Model/UpdateTask200Response.md new file mode 100644 index 0000000..736adac --- /dev/null +++ b/docs/Model/UpdateTask200Response.md @@ -0,0 +1,11 @@ +# # UpdateTask200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**task_id** | **string** | | [optional] +**status** | **string** | | [optional] +**updated_at** | **int** | | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/UpdateTaskRequest.md b/docs/Model/UpdateTaskRequest.md new file mode 100644 index 0000000..f82efc9 --- /dev/null +++ b/docs/Model/UpdateTaskRequest.md @@ -0,0 +1,23 @@ +# # UpdateTaskRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**title** | **string** | | [optional] +**description** | **string** | | [optional] +**task_list_id** | **string** | Move task to different list or remove from list (set null) | [optional] +**status** | **string** | Task status (triggers automatic timestamp updates) | [optional] +**assigned_agent_id** | **string** | Reassign task to different agent | [optional] +**depends_on** | **string[]** | Update task dependencies | [optional] +**metadata** | **object** | Update task metadata (replaces entire metadata object) | [optional] +**progress** | **float** | Progress from 0.0 to 1.0 | [optional] +**progress_message** | **string** | Human-readable progress message | [optional] +**result** | **object** | Task result data (set when completing task) | [optional] +**error** | **string** | Error message (set when task fails) | [optional] +**retry_count** | **int** | Update retry count | [optional] +**max_retries** | **int** | Update maximum retry attempts | [optional] +**blocked_reason** | **string** | Reason task is blocked (set when status is blocked) | [optional] +**blocked_by_task_ids** | **string[]** | Task IDs that are blocking this task | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/UploadFile201Response.md b/docs/Model/UploadFile201Response.md new file mode 100644 index 0000000..e2af1b9 --- /dev/null +++ b/docs/Model/UploadFile201Response.md @@ -0,0 +1,19 @@ +# # UploadFile201Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**file_id** | **string** | | [optional] +**s3_uri** | **string** | S3 URI (direct upload only) | [optional] +**url** | **string** | Presigned download URL (direct upload only) | [optional] +**upload_url** | **string** | Presigned PUT URL (presigned upload only) | [optional] +**s3_key** | **string** | S3 object key (presigned upload only) | [optional] +**expires_in** | **int** | URL expiry in seconds (presigned upload only) | [optional] +**filename** | **string** | | [optional] +**content_type** | **string** | | [optional] +**size** | **int** | | [optional] +**metadata** | **object** | | [optional] +**created_at** | **\DateTime** | | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/UploadFileRequest.md b/docs/Model/UploadFileRequest.md new file mode 100644 index 0000000..2537bf6 --- /dev/null +++ b/docs/Model/UploadFileRequest.md @@ -0,0 +1,14 @@ +# # UploadFileRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**content** | **string** | Base64-encoded file content (for direct upload). Required unless using requestUploadUrl. | [optional] +**request_upload_url** | **bool** | Set to true to get a presigned S3 upload URL instead of uploading directly. | [optional] [default to false] +**size** | **int** | File size in bytes. Optional but recommended for presigned uploads. | [optional] +**filename** | **string** | Original filename | [optional] +**content_type** | **string** | MIME type of the file | +**metadata** | **array** | Custom metadata for filtering. Any fields allowed. | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/src/Api/AIAgentsApi.php b/src/Api/AIAgentsApi.php index ce5b961..c2dde72 100644 --- a/src/Api/AIAgentsApi.php +++ b/src/Api/AIAgentsApi.php @@ -14,7 +14,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ @@ -152,7 +152,7 @@ public function getConfig() * * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return \QuantClient\Model\ChatWithAIAgent200Response + * @return \QuantClient\Model\ChatWithAIAgent200Response|\QuantClient\Model\ChatWithAIAgent202Response */ public function chatWithAIAgent($organisation, $agent_id, $chat_with_ai_agent_request, string $contentType = self::contentTypes['chatWithAIAgent'][0]) { @@ -172,7 +172,7 @@ public function chatWithAIAgent($organisation, $agent_id, $chat_with_ai_agent_re * * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return array of \QuantClient\Model\ChatWithAIAgent200Response, HTTP status code, HTTP response headers (array of strings) + * @return array of \QuantClient\Model\ChatWithAIAgent200Response|\QuantClient\Model\ChatWithAIAgent202Response, HTTP status code, HTTP response headers (array of strings) */ public function chatWithAIAgentWithHttpInfo($organisation, $agent_id, $chat_with_ai_agent_request, string $contentType = self::contentTypes['chatWithAIAgent'][0]) { @@ -208,6 +208,12 @@ public function chatWithAIAgentWithHttpInfo($organisation, $agent_id, $chat_with $request, $response, ); + case 202: + return $this->handleResponseWithDataType( + '\QuantClient\Model\ChatWithAIAgent202Response', + $request, + $response, + ); } @@ -240,6 +246,14 @@ public function chatWithAIAgentWithHttpInfo($organisation, $agent_id, $chat_with ); $e->setResponseObject($data); throw $e; + case 202: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\QuantClient\Model\ChatWithAIAgent202Response', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + throw $e; } diff --git a/src/Api/AICustomToolsApi.php b/src/Api/AICustomToolsApi.php index bb03f5e..e3d48d7 100644 --- a/src/Api/AICustomToolsApi.php +++ b/src/Api/AICustomToolsApi.php @@ -14,7 +14,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Api/AIFileStorageApi.php b/src/Api/AIFileStorageApi.php new file mode 100644 index 0000000..0413404 --- /dev/null +++ b/src/Api/AIFileStorageApi.php @@ -0,0 +1,1393 @@ + [ + 'application/json', + ], + 'getFile' => [ + 'application/json', + ], + 'listFiles' => [ + 'application/json', + ], + 'uploadFile' => [ + 'application/json', + ], + ]; + + /** + * @param ClientInterface $client + * @param Configuration $config + * @param HeaderSelector $selector + * @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec + */ + public function __construct( + ?ClientInterface $client = null, + ?Configuration $config = null, + ?HeaderSelector $selector = null, + int $hostIndex = 0 + ) { + $this->client = $client ?: new Client(); + $this->config = $config ?: Configuration::getDefaultConfiguration(); + $this->headerSelector = $selector ?: new HeaderSelector(); + $this->hostIndex = $hostIndex; + } + + /** + * Set the host index + * + * @param int $hostIndex Host index (required) + */ + public function setHostIndex($hostIndex): void + { + $this->hostIndex = $hostIndex; + } + + /** + * Get the host index + * + * @return int Host index + */ + public function getHostIndex() + { + return $this->hostIndex; + } + + /** + * @return Configuration + */ + public function getConfig() + { + return $this->config; + } + + /** + * Operation deleteFile + * + * Delete File + * + * @param string $organisation The organisation ID (required) + * @param string $file_id The file ID (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteFile'] to see the possible values for this operation + * + * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return \QuantClient\Model\DeleteFile200Response + */ + public function deleteFile($organisation, $file_id, string $contentType = self::contentTypes['deleteFile'][0]) + { + list($response) = $this->deleteFileWithHttpInfo($organisation, $file_id, $contentType); + return $response; + } + + /** + * Operation deleteFileWithHttpInfo + * + * Delete File + * + * @param string $organisation The organisation ID (required) + * @param string $file_id The file ID (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteFile'] to see the possible values for this operation + * + * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return array of \QuantClient\Model\DeleteFile200Response, HTTP status code, HTTP response headers (array of strings) + */ + public function deleteFileWithHttpInfo($organisation, $file_id, string $contentType = self::contentTypes['deleteFile'][0]) + { + $request = $this->deleteFileRequest($organisation, $file_id, $contentType); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? (string) $e->getResponse()->getBody() : null + ); + } catch (ConnectException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + null, + null + ); + } + + $statusCode = $response->getStatusCode(); + + + switch($statusCode) { + case 200: + return $this->handleResponseWithDataType( + '\QuantClient\Model\DeleteFile200Response', + $request, + $response, + ); + } + + + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + + return $this->handleResponseWithDataType( + '\QuantClient\Model\DeleteFile200Response', + $request, + $response, + ); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\QuantClient\Model\DeleteFile200Response', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + throw $e; + } + + + throw $e; + } + } + + /** + * Operation deleteFileAsync + * + * Delete File + * + * @param string $organisation The organisation ID (required) + * @param string $file_id The file ID (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteFile'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteFileAsync($organisation, $file_id, string $contentType = self::contentTypes['deleteFile'][0]) + { + return $this->deleteFileAsyncWithHttpInfo($organisation, $file_id, $contentType) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation deleteFileAsyncWithHttpInfo + * + * Delete File + * + * @param string $organisation The organisation ID (required) + * @param string $file_id The file ID (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteFile'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteFileAsyncWithHttpInfo($organisation, $file_id, string $contentType = self::contentTypes['deleteFile'][0]) + { + $returnType = '\QuantClient\Model\DeleteFile200Response'; + $request = $this->deleteFileRequest($organisation, $file_id, $contentType); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'deleteFile' + * + * @param string $organisation The organisation ID (required) + * @param string $file_id The file ID (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteFile'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function deleteFileRequest($organisation, $file_id, string $contentType = self::contentTypes['deleteFile'][0]) + { + + // verify the required parameter 'organisation' is set + if ($organisation === null || (is_array($organisation) && count($organisation) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $organisation when calling deleteFile' + ); + } + + // verify the required parameter 'file_id' is set + if ($file_id === null || (is_array($file_id) && count($file_id) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $file_id when calling deleteFile' + ); + } + + + $resourcePath = '/api/v3/organizations/{organisation}/ai/files/{fileId}'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + + + // path params + if ($organisation !== null) { + $resourcePath = str_replace( + '{' . 'organisation' . '}', + ObjectSerializer::toPathValue($organisation), + $resourcePath + ); + } + // path params + if ($file_id !== null) { + $resourcePath = str_replace( + '{' . 'fileId' . '}', + ObjectSerializer::toPathValue($file_id), + $resourcePath + ); + } + + + $headers = $this->headerSelector->selectHeaders( + ['application/json', ], + $contentType, + $multipart + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; + foreach ($formParamValueItems as $formParamValueItem) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValueItem + ]; + } + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { + # if Content-Type contains "application/json", json_encode the form parameters + $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); + } else { + // for HTTP post (form) + $httpBody = ObjectSerializer::buildQuery($formParams); + } + } + + // this endpoint requires Bearer (JWT) authentication (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $operationHost = $this->config->getHost(); + $query = ObjectSerializer::buildQuery($queryParams); + return new Request( + 'DELETE', + $operationHost . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getFile + * + * Get File + * + * @param string $organisation The organisation ID (required) + * @param string $file_id The file ID (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getFile'] to see the possible values for this operation + * + * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return \QuantClient\Model\GetFile200Response + */ + public function getFile($organisation, $file_id, string $contentType = self::contentTypes['getFile'][0]) + { + list($response) = $this->getFileWithHttpInfo($organisation, $file_id, $contentType); + return $response; + } + + /** + * Operation getFileWithHttpInfo + * + * Get File + * + * @param string $organisation The organisation ID (required) + * @param string $file_id The file ID (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getFile'] to see the possible values for this operation + * + * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return array of \QuantClient\Model\GetFile200Response, HTTP status code, HTTP response headers (array of strings) + */ + public function getFileWithHttpInfo($organisation, $file_id, string $contentType = self::contentTypes['getFile'][0]) + { + $request = $this->getFileRequest($organisation, $file_id, $contentType); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? (string) $e->getResponse()->getBody() : null + ); + } catch (ConnectException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + null, + null + ); + } + + $statusCode = $response->getStatusCode(); + + + switch($statusCode) { + case 200: + return $this->handleResponseWithDataType( + '\QuantClient\Model\GetFile200Response', + $request, + $response, + ); + } + + + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + + return $this->handleResponseWithDataType( + '\QuantClient\Model\GetFile200Response', + $request, + $response, + ); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\QuantClient\Model\GetFile200Response', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + throw $e; + } + + + throw $e; + } + } + + /** + * Operation getFileAsync + * + * Get File + * + * @param string $organisation The organisation ID (required) + * @param string $file_id The file ID (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getFile'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getFileAsync($organisation, $file_id, string $contentType = self::contentTypes['getFile'][0]) + { + return $this->getFileAsyncWithHttpInfo($organisation, $file_id, $contentType) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getFileAsyncWithHttpInfo + * + * Get File + * + * @param string $organisation The organisation ID (required) + * @param string $file_id The file ID (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getFile'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getFileAsyncWithHttpInfo($organisation, $file_id, string $contentType = self::contentTypes['getFile'][0]) + { + $returnType = '\QuantClient\Model\GetFile200Response'; + $request = $this->getFileRequest($organisation, $file_id, $contentType); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getFile' + * + * @param string $organisation The organisation ID (required) + * @param string $file_id The file ID (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getFile'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function getFileRequest($organisation, $file_id, string $contentType = self::contentTypes['getFile'][0]) + { + + // verify the required parameter 'organisation' is set + if ($organisation === null || (is_array($organisation) && count($organisation) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $organisation when calling getFile' + ); + } + + // verify the required parameter 'file_id' is set + if ($file_id === null || (is_array($file_id) && count($file_id) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $file_id when calling getFile' + ); + } + + + $resourcePath = '/api/v3/organizations/{organisation}/ai/files/{fileId}'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + + + // path params + if ($organisation !== null) { + $resourcePath = str_replace( + '{' . 'organisation' . '}', + ObjectSerializer::toPathValue($organisation), + $resourcePath + ); + } + // path params + if ($file_id !== null) { + $resourcePath = str_replace( + '{' . 'fileId' . '}', + ObjectSerializer::toPathValue($file_id), + $resourcePath + ); + } + + + $headers = $this->headerSelector->selectHeaders( + ['application/json', ], + $contentType, + $multipart + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; + foreach ($formParamValueItems as $formParamValueItem) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValueItem + ]; + } + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { + # if Content-Type contains "application/json", json_encode the form parameters + $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); + } else { + // for HTTP post (form) + $httpBody = ObjectSerializer::buildQuery($formParams); + } + } + + // this endpoint requires Bearer (JWT) authentication (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $operationHost = $this->config->getHost(); + $query = ObjectSerializer::buildQuery($queryParams); + return new Request( + 'GET', + $operationHost . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation listFiles + * + * List Files + * + * @param string $organisation The organisation ID (required) + * @param string|null $filter JSON-encoded metadata filter. Supports exact match and array contains filters. (optional) + * @param int|null $limit Maximum files to return (optional, default to 50) + * @param string|null $cursor Pagination cursor from previous response (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listFiles'] to see the possible values for this operation + * + * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return \QuantClient\Model\ListFiles200Response + */ + public function listFiles($organisation, $filter = null, $limit = 50, $cursor = null, string $contentType = self::contentTypes['listFiles'][0]) + { + list($response) = $this->listFilesWithHttpInfo($organisation, $filter, $limit, $cursor, $contentType); + return $response; + } + + /** + * Operation listFilesWithHttpInfo + * + * List Files + * + * @param string $organisation The organisation ID (required) + * @param string|null $filter JSON-encoded metadata filter. Supports exact match and array contains filters. (optional) + * @param int|null $limit Maximum files to return (optional, default to 50) + * @param string|null $cursor Pagination cursor from previous response (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listFiles'] to see the possible values for this operation + * + * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return array of \QuantClient\Model\ListFiles200Response, HTTP status code, HTTP response headers (array of strings) + */ + public function listFilesWithHttpInfo($organisation, $filter = null, $limit = 50, $cursor = null, string $contentType = self::contentTypes['listFiles'][0]) + { + $request = $this->listFilesRequest($organisation, $filter, $limit, $cursor, $contentType); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? (string) $e->getResponse()->getBody() : null + ); + } catch (ConnectException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + null, + null + ); + } + + $statusCode = $response->getStatusCode(); + + + switch($statusCode) { + case 200: + return $this->handleResponseWithDataType( + '\QuantClient\Model\ListFiles200Response', + $request, + $response, + ); + } + + + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + + return $this->handleResponseWithDataType( + '\QuantClient\Model\ListFiles200Response', + $request, + $response, + ); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\QuantClient\Model\ListFiles200Response', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + throw $e; + } + + + throw $e; + } + } + + /** + * Operation listFilesAsync + * + * List Files + * + * @param string $organisation The organisation ID (required) + * @param string|null $filter JSON-encoded metadata filter. Supports exact match and array contains filters. (optional) + * @param int|null $limit Maximum files to return (optional, default to 50) + * @param string|null $cursor Pagination cursor from previous response (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listFiles'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listFilesAsync($organisation, $filter = null, $limit = 50, $cursor = null, string $contentType = self::contentTypes['listFiles'][0]) + { + return $this->listFilesAsyncWithHttpInfo($organisation, $filter, $limit, $cursor, $contentType) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation listFilesAsyncWithHttpInfo + * + * List Files + * + * @param string $organisation The organisation ID (required) + * @param string|null $filter JSON-encoded metadata filter. Supports exact match and array contains filters. (optional) + * @param int|null $limit Maximum files to return (optional, default to 50) + * @param string|null $cursor Pagination cursor from previous response (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listFiles'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listFilesAsyncWithHttpInfo($organisation, $filter = null, $limit = 50, $cursor = null, string $contentType = self::contentTypes['listFiles'][0]) + { + $returnType = '\QuantClient\Model\ListFiles200Response'; + $request = $this->listFilesRequest($organisation, $filter, $limit, $cursor, $contentType); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'listFiles' + * + * @param string $organisation The organisation ID (required) + * @param string|null $filter JSON-encoded metadata filter. Supports exact match and array contains filters. (optional) + * @param int|null $limit Maximum files to return (optional, default to 50) + * @param string|null $cursor Pagination cursor from previous response (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listFiles'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function listFilesRequest($organisation, $filter = null, $limit = 50, $cursor = null, string $contentType = self::contentTypes['listFiles'][0]) + { + + // verify the required parameter 'organisation' is set + if ($organisation === null || (is_array($organisation) && count($organisation) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $organisation when calling listFiles' + ); + } + + + if ($limit !== null && $limit > 200) { + throw new \InvalidArgumentException('invalid value for "$limit" when calling AIFileStorageApi.listFiles, must be smaller than or equal to 200.'); + } + + + + $resourcePath = '/api/v3/organizations/{organisation}/ai/files'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $filter, + 'filter', // param base name + 'string', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $limit, + 'limit', // param base name + 'integer', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $cursor, + 'cursor', // param base name + 'string', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + + + // path params + if ($organisation !== null) { + $resourcePath = str_replace( + '{' . 'organisation' . '}', + ObjectSerializer::toPathValue($organisation), + $resourcePath + ); + } + + + $headers = $this->headerSelector->selectHeaders( + ['application/json', ], + $contentType, + $multipart + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; + foreach ($formParamValueItems as $formParamValueItem) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValueItem + ]; + } + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { + # if Content-Type contains "application/json", json_encode the form parameters + $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); + } else { + // for HTTP post (form) + $httpBody = ObjectSerializer::buildQuery($formParams); + } + } + + // this endpoint requires Bearer (JWT) authentication (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $operationHost = $this->config->getHost(); + $query = ObjectSerializer::buildQuery($queryParams); + return new Request( + 'GET', + $operationHost . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation uploadFile + * + * Upload File to S3 + * + * @param string $organisation The organisation ID (required) + * @param \QuantClient\Model\UploadFileRequest $upload_file_request upload_file_request (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['uploadFile'] to see the possible values for this operation + * + * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return \QuantClient\Model\UploadFile201Response + */ + public function uploadFile($organisation, $upload_file_request, string $contentType = self::contentTypes['uploadFile'][0]) + { + list($response) = $this->uploadFileWithHttpInfo($organisation, $upload_file_request, $contentType); + return $response; + } + + /** + * Operation uploadFileWithHttpInfo + * + * Upload File to S3 + * + * @param string $organisation The organisation ID (required) + * @param \QuantClient\Model\UploadFileRequest $upload_file_request (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['uploadFile'] to see the possible values for this operation + * + * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return array of \QuantClient\Model\UploadFile201Response, HTTP status code, HTTP response headers (array of strings) + */ + public function uploadFileWithHttpInfo($organisation, $upload_file_request, string $contentType = self::contentTypes['uploadFile'][0]) + { + $request = $this->uploadFileRequest($organisation, $upload_file_request, $contentType); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? (string) $e->getResponse()->getBody() : null + ); + } catch (ConnectException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + null, + null + ); + } + + $statusCode = $response->getStatusCode(); + + + switch($statusCode) { + case 201: + return $this->handleResponseWithDataType( + '\QuantClient\Model\UploadFile201Response', + $request, + $response, + ); + } + + + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + + return $this->handleResponseWithDataType( + '\QuantClient\Model\UploadFile201Response', + $request, + $response, + ); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 201: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\QuantClient\Model\UploadFile201Response', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + throw $e; + } + + + throw $e; + } + } + + /** + * Operation uploadFileAsync + * + * Upload File to S3 + * + * @param string $organisation The organisation ID (required) + * @param \QuantClient\Model\UploadFileRequest $upload_file_request (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['uploadFile'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function uploadFileAsync($organisation, $upload_file_request, string $contentType = self::contentTypes['uploadFile'][0]) + { + return $this->uploadFileAsyncWithHttpInfo($organisation, $upload_file_request, $contentType) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation uploadFileAsyncWithHttpInfo + * + * Upload File to S3 + * + * @param string $organisation The organisation ID (required) + * @param \QuantClient\Model\UploadFileRequest $upload_file_request (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['uploadFile'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function uploadFileAsyncWithHttpInfo($organisation, $upload_file_request, string $contentType = self::contentTypes['uploadFile'][0]) + { + $returnType = '\QuantClient\Model\UploadFile201Response'; + $request = $this->uploadFileRequest($organisation, $upload_file_request, $contentType); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'uploadFile' + * + * @param string $organisation The organisation ID (required) + * @param \QuantClient\Model\UploadFileRequest $upload_file_request (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['uploadFile'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function uploadFileRequest($organisation, $upload_file_request, string $contentType = self::contentTypes['uploadFile'][0]) + { + + // verify the required parameter 'organisation' is set + if ($organisation === null || (is_array($organisation) && count($organisation) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $organisation when calling uploadFile' + ); + } + + // verify the required parameter 'upload_file_request' is set + if ($upload_file_request === null || (is_array($upload_file_request) && count($upload_file_request) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $upload_file_request when calling uploadFile' + ); + } + + + $resourcePath = '/api/v3/organizations/{organisation}/ai/files'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + + + // path params + if ($organisation !== null) { + $resourcePath = str_replace( + '{' . 'organisation' . '}', + ObjectSerializer::toPathValue($organisation), + $resourcePath + ); + } + + + $headers = $this->headerSelector->selectHeaders( + ['application/json', ], + $contentType, + $multipart + ); + + // for model (json/xml) + if (isset($upload_file_request)) { + if (stripos($headers['Content-Type'], 'application/json') !== false) { + # if Content-Type contains "application/json", json_encode the body + $httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($upload_file_request)); + } else { + $httpBody = $upload_file_request; + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; + foreach ($formParamValueItems as $formParamValueItem) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValueItem + ]; + } + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { + # if Content-Type contains "application/json", json_encode the form parameters + $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); + } else { + // for HTTP post (form) + $httpBody = ObjectSerializer::buildQuery($formParams); + } + } + + // this endpoint requires Bearer (JWT) authentication (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $operationHost = $this->config->getHost(); + $query = ObjectSerializer::buildQuery($queryParams); + return new Request( + 'POST', + $operationHost . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Create http client option + * + * @throws \RuntimeException on file opening failure + * @return array of http client options + */ + protected function createHttpClientOption() + { + $options = []; + if ($this->config->getDebug()) { + $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); + if (!$options[RequestOptions::DEBUG]) { + throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); + } + } + + return $options; + } + + private function handleResponseWithDataType( + string $dataType, + RequestInterface $request, + ResponseInterface $response + ): array { + if ($dataType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($dataType !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $response->getStatusCode(), + $response->getHeaders(), + $content + ); + } + } + } + + return [ + ObjectSerializer::deserialize($content, $dataType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + } + + private function responseWithinRangeCode( + string $rangeCode, + int $statusCode + ): bool { + $left = (int) ($rangeCode[0].'00'); + $right = (int) ($rangeCode[0].'99'); + + return $statusCode >= $left && $statusCode <= $right; + } +} diff --git a/src/Api/AIInferenceApi.php b/src/Api/AIInferenceApi.php index 89f007e..f121629 100644 --- a/src/Api/AIInferenceApi.php +++ b/src/Api/AIInferenceApi.php @@ -14,7 +14,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ @@ -83,9 +83,15 @@ class AIInferenceApi 'embeddings' => [ 'application/json', ], + 'getDurableExecutionStatus' => [ + 'application/json', + ], 'imageGeneration' => [ 'application/json', ], + 'submitToolCallback' => [ + 'application/json', + ], ]; /** @@ -145,7 +151,7 @@ public function getConfig() * * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return \QuantClient\Model\ChatInference200Response + * @return \QuantClient\Model\ChatInference200Response|\QuantClient\Model\ChatInference202Response */ public function chatInference($organisation, $chat_inference_request, string $contentType = self::contentTypes['chatInference'][0]) { @@ -164,7 +170,7 @@ public function chatInference($organisation, $chat_inference_request, string $co * * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return array of \QuantClient\Model\ChatInference200Response, HTTP status code, HTTP response headers (array of strings) + * @return array of \QuantClient\Model\ChatInference200Response|\QuantClient\Model\ChatInference202Response, HTTP status code, HTTP response headers (array of strings) */ public function chatInferenceWithHttpInfo($organisation, $chat_inference_request, string $contentType = self::contentTypes['chatInference'][0]) { @@ -200,6 +206,12 @@ public function chatInferenceWithHttpInfo($organisation, $chat_inference_request $request, $response, ); + case 202: + return $this->handleResponseWithDataType( + '\QuantClient\Model\ChatInference202Response', + $request, + $response, + ); } @@ -232,6 +244,14 @@ public function chatInferenceWithHttpInfo($organisation, $chat_inference_request ); $e->setResponseObject($data); throw $e; + case 202: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\QuantClient\Model\ChatInference202Response', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + throw $e; } @@ -436,7 +456,7 @@ public function chatInferenceRequest($organisation, $chat_inference_request, str * * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return string + * @return string|\QuantClient\Model\ChatInference202Response */ public function chatInferenceStream($organisation, $chat_inference_stream_request, string $contentType = self::contentTypes['chatInferenceStream'][0]) { @@ -455,7 +475,7 @@ public function chatInferenceStream($organisation, $chat_inference_stream_reques * * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return array of string, HTTP status code, HTTP response headers (array of strings) + * @return array of string|\QuantClient\Model\ChatInference202Response, HTTP status code, HTTP response headers (array of strings) */ public function chatInferenceStreamWithHttpInfo($organisation, $chat_inference_stream_request, string $contentType = self::contentTypes['chatInferenceStream'][0]) { @@ -491,6 +511,12 @@ public function chatInferenceStreamWithHttpInfo($organisation, $chat_inference_s $request, $response, ); + case 202: + return $this->handleResponseWithDataType( + '\QuantClient\Model\ChatInference202Response', + $request, + $response, + ); } @@ -523,6 +549,14 @@ public function chatInferenceStreamWithHttpInfo($organisation, $chat_inference_s ); $e->setResponseObject($data); throw $e; + case 202: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\QuantClient\Model\ChatInference202Response', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + throw $e; } @@ -653,7 +687,7 @@ public function chatInferenceStreamRequest($organisation, $chat_inference_stream $headers = $this->headerSelector->selectHeaders( - ['text/event-stream', ], + ['text/event-stream', 'application/json', ], $contentType, $multipart ); @@ -1008,40 +1042,40 @@ public function embeddingsRequest($organisation, $embeddings_request, string $co } /** - * Operation imageGeneration + * Operation getDurableExecutionStatus * - * Generate images with Amazon Nova Canvas + * Get Durable Execution Status * * @param string $organisation The organisation ID (required) - * @param \QuantClient\Model\ImageGenerationRequest $image_generation_request Image generation request (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['imageGeneration'] to see the possible values for this operation + * @param string $identifier Either the requestId from async response, or full executionArn (URL-encoded) (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getDurableExecutionStatus'] to see the possible values for this operation * * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return \QuantClient\Model\ImageGeneration200Response + * @return \QuantClient\Model\GetDurableExecutionStatus200Response */ - public function imageGeneration($organisation, $image_generation_request, string $contentType = self::contentTypes['imageGeneration'][0]) + public function getDurableExecutionStatus($organisation, $identifier, string $contentType = self::contentTypes['getDurableExecutionStatus'][0]) { - list($response) = $this->imageGenerationWithHttpInfo($organisation, $image_generation_request, $contentType); + list($response) = $this->getDurableExecutionStatusWithHttpInfo($organisation, $identifier, $contentType); return $response; } /** - * Operation imageGenerationWithHttpInfo + * Operation getDurableExecutionStatusWithHttpInfo * - * Generate images with Amazon Nova Canvas + * Get Durable Execution Status * * @param string $organisation The organisation ID (required) - * @param \QuantClient\Model\ImageGenerationRequest $image_generation_request Image generation request (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['imageGeneration'] to see the possible values for this operation + * @param string $identifier Either the requestId from async response, or full executionArn (URL-encoded) (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getDurableExecutionStatus'] to see the possible values for this operation * * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return array of \QuantClient\Model\ImageGeneration200Response, HTTP status code, HTTP response headers (array of strings) + * @return array of \QuantClient\Model\GetDurableExecutionStatus200Response, HTTP status code, HTTP response headers (array of strings) */ - public function imageGenerationWithHttpInfo($organisation, $image_generation_request, string $contentType = self::contentTypes['imageGeneration'][0]) + public function getDurableExecutionStatusWithHttpInfo($organisation, $identifier, string $contentType = self::contentTypes['getDurableExecutionStatus'][0]) { - $request = $this->imageGenerationRequest($organisation, $image_generation_request, $contentType); + $request = $this->getDurableExecutionStatusRequest($organisation, $identifier, $contentType); try { $options = $this->createHttpClientOption(); @@ -1069,7 +1103,7 @@ public function imageGenerationWithHttpInfo($organisation, $image_generation_req switch($statusCode) { case 200: return $this->handleResponseWithDataType( - '\QuantClient\Model\ImageGeneration200Response', + '\QuantClient\Model\GetDurableExecutionStatus200Response', $request, $response, ); @@ -1091,7 +1125,7 @@ public function imageGenerationWithHttpInfo($organisation, $image_generation_req } return $this->handleResponseWithDataType( - '\QuantClient\Model\ImageGeneration200Response', + '\QuantClient\Model\GetDurableExecutionStatus200Response', $request, $response, ); @@ -1100,7 +1134,7 @@ public function imageGenerationWithHttpInfo($organisation, $image_generation_req case 200: $data = ObjectSerializer::deserialize( $e->getResponseBody(), - '\QuantClient\Model\ImageGeneration200Response', + '\QuantClient\Model\GetDurableExecutionStatus200Response', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -1113,20 +1147,20 @@ public function imageGenerationWithHttpInfo($organisation, $image_generation_req } /** - * Operation imageGenerationAsync + * Operation getDurableExecutionStatusAsync * - * Generate images with Amazon Nova Canvas + * Get Durable Execution Status * * @param string $organisation The organisation ID (required) - * @param \QuantClient\Model\ImageGenerationRequest $image_generation_request Image generation request (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['imageGeneration'] to see the possible values for this operation + * @param string $identifier Either the requestId from async response, or full executionArn (URL-encoded) (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getDurableExecutionStatus'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function imageGenerationAsync($organisation, $image_generation_request, string $contentType = self::contentTypes['imageGeneration'][0]) + public function getDurableExecutionStatusAsync($organisation, $identifier, string $contentType = self::contentTypes['getDurableExecutionStatus'][0]) { - return $this->imageGenerationAsyncWithHttpInfo($organisation, $image_generation_request, $contentType) + return $this->getDurableExecutionStatusAsyncWithHttpInfo($organisation, $identifier, $contentType) ->then( function ($response) { return $response[0]; @@ -1135,21 +1169,21 @@ function ($response) { } /** - * Operation imageGenerationAsyncWithHttpInfo + * Operation getDurableExecutionStatusAsyncWithHttpInfo * - * Generate images with Amazon Nova Canvas + * Get Durable Execution Status * * @param string $organisation The organisation ID (required) - * @param \QuantClient\Model\ImageGenerationRequest $image_generation_request Image generation request (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['imageGeneration'] to see the possible values for this operation + * @param string $identifier Either the requestId from async response, or full executionArn (URL-encoded) (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getDurableExecutionStatus'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function imageGenerationAsyncWithHttpInfo($organisation, $image_generation_request, string $contentType = self::contentTypes['imageGeneration'][0]) + public function getDurableExecutionStatusAsyncWithHttpInfo($organisation, $identifier, string $contentType = self::contentTypes['getDurableExecutionStatus'][0]) { - $returnType = '\QuantClient\Model\ImageGeneration200Response'; - $request = $this->imageGenerationRequest($organisation, $image_generation_request, $contentType); + $returnType = '\QuantClient\Model\GetDurableExecutionStatus200Response'; + $request = $this->getDurableExecutionStatusRequest($organisation, $identifier, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1188,34 +1222,34 @@ function ($exception) { } /** - * Create request for operation 'imageGeneration' + * Create request for operation 'getDurableExecutionStatus' * * @param string $organisation The organisation ID (required) - * @param \QuantClient\Model\ImageGenerationRequest $image_generation_request Image generation request (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['imageGeneration'] to see the possible values for this operation + * @param string $identifier Either the requestId from async response, or full executionArn (URL-encoded) (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getDurableExecutionStatus'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function imageGenerationRequest($organisation, $image_generation_request, string $contentType = self::contentTypes['imageGeneration'][0]) + public function getDurableExecutionStatusRequest($organisation, $identifier, string $contentType = self::contentTypes['getDurableExecutionStatus'][0]) { // verify the required parameter 'organisation' is set if ($organisation === null || (is_array($organisation) && count($organisation) === 0)) { throw new \InvalidArgumentException( - 'Missing the required parameter $organisation when calling imageGeneration' + 'Missing the required parameter $organisation when calling getDurableExecutionStatus' ); } - // verify the required parameter 'image_generation_request' is set - if ($image_generation_request === null || (is_array($image_generation_request) && count($image_generation_request) === 0)) { + // verify the required parameter 'identifier' is set + if ($identifier === null || (is_array($identifier) && count($identifier) === 0)) { throw new \InvalidArgumentException( - 'Missing the required parameter $image_generation_request when calling imageGeneration' + 'Missing the required parameter $identifier when calling getDurableExecutionStatus' ); } - $resourcePath = '/api/v3/organizations/{organisation}/ai/image-generation'; + $resourcePath = '/api/v3/organizations/{organisation}/ai/chat/executions/{identifier}'; $formParams = []; $queryParams = []; $headerParams = []; @@ -1232,6 +1266,14 @@ public function imageGenerationRequest($organisation, $image_generation_request, $resourcePath ); } + // path params + if ($identifier !== null) { + $resourcePath = str_replace( + '{' . 'identifier' . '}', + ObjectSerializer::toPathValue($identifier), + $resourcePath + ); + } $headers = $this->headerSelector->selectHeaders( @@ -1241,12 +1283,587 @@ public function imageGenerationRequest($organisation, $image_generation_request, ); // for model (json/xml) - if (isset($image_generation_request)) { - if (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the body - $httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($image_generation_request)); + if (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; + foreach ($formParamValueItems as $formParamValueItem) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValueItem + ]; + } + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { + # if Content-Type contains "application/json", json_encode the form parameters + $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); } else { - $httpBody = $image_generation_request; + // for HTTP post (form) + $httpBody = ObjectSerializer::buildQuery($formParams); + } + } + + // this endpoint requires Bearer (JWT) authentication (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $operationHost = $this->config->getHost(); + $query = ObjectSerializer::buildQuery($queryParams); + return new Request( + 'GET', + $operationHost . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation imageGeneration + * + * Generate images with Amazon Nova Canvas + * + * @param string $organisation The organisation ID (required) + * @param \QuantClient\Model\ImageGenerationRequest $image_generation_request Image generation request (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['imageGeneration'] to see the possible values for this operation + * + * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return \QuantClient\Model\ImageGeneration200Response + */ + public function imageGeneration($organisation, $image_generation_request, string $contentType = self::contentTypes['imageGeneration'][0]) + { + list($response) = $this->imageGenerationWithHttpInfo($organisation, $image_generation_request, $contentType); + return $response; + } + + /** + * Operation imageGenerationWithHttpInfo + * + * Generate images with Amazon Nova Canvas + * + * @param string $organisation The organisation ID (required) + * @param \QuantClient\Model\ImageGenerationRequest $image_generation_request Image generation request (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['imageGeneration'] to see the possible values for this operation + * + * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return array of \QuantClient\Model\ImageGeneration200Response, HTTP status code, HTTP response headers (array of strings) + */ + public function imageGenerationWithHttpInfo($organisation, $image_generation_request, string $contentType = self::contentTypes['imageGeneration'][0]) + { + $request = $this->imageGenerationRequest($organisation, $image_generation_request, $contentType); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? (string) $e->getResponse()->getBody() : null + ); + } catch (ConnectException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + null, + null + ); + } + + $statusCode = $response->getStatusCode(); + + + switch($statusCode) { + case 200: + return $this->handleResponseWithDataType( + '\QuantClient\Model\ImageGeneration200Response', + $request, + $response, + ); + } + + + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + + return $this->handleResponseWithDataType( + '\QuantClient\Model\ImageGeneration200Response', + $request, + $response, + ); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\QuantClient\Model\ImageGeneration200Response', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + throw $e; + } + + + throw $e; + } + } + + /** + * Operation imageGenerationAsync + * + * Generate images with Amazon Nova Canvas + * + * @param string $organisation The organisation ID (required) + * @param \QuantClient\Model\ImageGenerationRequest $image_generation_request Image generation request (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['imageGeneration'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function imageGenerationAsync($organisation, $image_generation_request, string $contentType = self::contentTypes['imageGeneration'][0]) + { + return $this->imageGenerationAsyncWithHttpInfo($organisation, $image_generation_request, $contentType) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation imageGenerationAsyncWithHttpInfo + * + * Generate images with Amazon Nova Canvas + * + * @param string $organisation The organisation ID (required) + * @param \QuantClient\Model\ImageGenerationRequest $image_generation_request Image generation request (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['imageGeneration'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function imageGenerationAsyncWithHttpInfo($organisation, $image_generation_request, string $contentType = self::contentTypes['imageGeneration'][0]) + { + $returnType = '\QuantClient\Model\ImageGeneration200Response'; + $request = $this->imageGenerationRequest($organisation, $image_generation_request, $contentType); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'imageGeneration' + * + * @param string $organisation The organisation ID (required) + * @param \QuantClient\Model\ImageGenerationRequest $image_generation_request Image generation request (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['imageGeneration'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function imageGenerationRequest($organisation, $image_generation_request, string $contentType = self::contentTypes['imageGeneration'][0]) + { + + // verify the required parameter 'organisation' is set + if ($organisation === null || (is_array($organisation) && count($organisation) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $organisation when calling imageGeneration' + ); + } + + // verify the required parameter 'image_generation_request' is set + if ($image_generation_request === null || (is_array($image_generation_request) && count($image_generation_request) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $image_generation_request when calling imageGeneration' + ); + } + + + $resourcePath = '/api/v3/organizations/{organisation}/ai/image-generation'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + + + // path params + if ($organisation !== null) { + $resourcePath = str_replace( + '{' . 'organisation' . '}', + ObjectSerializer::toPathValue($organisation), + $resourcePath + ); + } + + + $headers = $this->headerSelector->selectHeaders( + ['application/json', ], + $contentType, + $multipart + ); + + // for model (json/xml) + if (isset($image_generation_request)) { + if (stripos($headers['Content-Type'], 'application/json') !== false) { + # if Content-Type contains "application/json", json_encode the body + $httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($image_generation_request)); + } else { + $httpBody = $image_generation_request; + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; + foreach ($formParamValueItems as $formParamValueItem) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValueItem + ]; + } + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { + # if Content-Type contains "application/json", json_encode the form parameters + $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); + } else { + // for HTTP post (form) + $httpBody = ObjectSerializer::buildQuery($formParams); + } + } + + // this endpoint requires Bearer (JWT) authentication (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $operationHost = $this->config->getHost(); + $query = ObjectSerializer::buildQuery($queryParams); + return new Request( + 'POST', + $operationHost . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation submitToolCallback + * + * Submit Client Tool Results (Callback) + * + * @param string $organisation The organisation ID (required) + * @param \QuantClient\Model\SubmitToolCallbackRequest $submit_tool_callback_request submit_tool_callback_request (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['submitToolCallback'] to see the possible values for this operation + * + * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return \QuantClient\Model\SubmitToolCallback200Response + */ + public function submitToolCallback($organisation, $submit_tool_callback_request, string $contentType = self::contentTypes['submitToolCallback'][0]) + { + list($response) = $this->submitToolCallbackWithHttpInfo($organisation, $submit_tool_callback_request, $contentType); + return $response; + } + + /** + * Operation submitToolCallbackWithHttpInfo + * + * Submit Client Tool Results (Callback) + * + * @param string $organisation The organisation ID (required) + * @param \QuantClient\Model\SubmitToolCallbackRequest $submit_tool_callback_request (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['submitToolCallback'] to see the possible values for this operation + * + * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return array of \QuantClient\Model\SubmitToolCallback200Response, HTTP status code, HTTP response headers (array of strings) + */ + public function submitToolCallbackWithHttpInfo($organisation, $submit_tool_callback_request, string $contentType = self::contentTypes['submitToolCallback'][0]) + { + $request = $this->submitToolCallbackRequest($organisation, $submit_tool_callback_request, $contentType); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? (string) $e->getResponse()->getBody() : null + ); + } catch (ConnectException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + null, + null + ); + } + + $statusCode = $response->getStatusCode(); + + + switch($statusCode) { + case 200: + return $this->handleResponseWithDataType( + '\QuantClient\Model\SubmitToolCallback200Response', + $request, + $response, + ); + } + + + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + + return $this->handleResponseWithDataType( + '\QuantClient\Model\SubmitToolCallback200Response', + $request, + $response, + ); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\QuantClient\Model\SubmitToolCallback200Response', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + throw $e; + } + + + throw $e; + } + } + + /** + * Operation submitToolCallbackAsync + * + * Submit Client Tool Results (Callback) + * + * @param string $organisation The organisation ID (required) + * @param \QuantClient\Model\SubmitToolCallbackRequest $submit_tool_callback_request (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['submitToolCallback'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function submitToolCallbackAsync($organisation, $submit_tool_callback_request, string $contentType = self::contentTypes['submitToolCallback'][0]) + { + return $this->submitToolCallbackAsyncWithHttpInfo($organisation, $submit_tool_callback_request, $contentType) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation submitToolCallbackAsyncWithHttpInfo + * + * Submit Client Tool Results (Callback) + * + * @param string $organisation The organisation ID (required) + * @param \QuantClient\Model\SubmitToolCallbackRequest $submit_tool_callback_request (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['submitToolCallback'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function submitToolCallbackAsyncWithHttpInfo($organisation, $submit_tool_callback_request, string $contentType = self::contentTypes['submitToolCallback'][0]) + { + $returnType = '\QuantClient\Model\SubmitToolCallback200Response'; + $request = $this->submitToolCallbackRequest($organisation, $submit_tool_callback_request, $contentType); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'submitToolCallback' + * + * @param string $organisation The organisation ID (required) + * @param \QuantClient\Model\SubmitToolCallbackRequest $submit_tool_callback_request (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['submitToolCallback'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function submitToolCallbackRequest($organisation, $submit_tool_callback_request, string $contentType = self::contentTypes['submitToolCallback'][0]) + { + + // verify the required parameter 'organisation' is set + if ($organisation === null || (is_array($organisation) && count($organisation) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $organisation when calling submitToolCallback' + ); + } + + // verify the required parameter 'submit_tool_callback_request' is set + if ($submit_tool_callback_request === null || (is_array($submit_tool_callback_request) && count($submit_tool_callback_request) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $submit_tool_callback_request when calling submitToolCallback' + ); + } + + + $resourcePath = '/api/v3/organizations/{organisation}/ai/chat/callback'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + + + // path params + if ($organisation !== null) { + $resourcePath = str_replace( + '{' . 'organisation' . '}', + ObjectSerializer::toPathValue($organisation), + $resourcePath + ); + } + + + $headers = $this->headerSelector->selectHeaders( + ['application/json', ], + $contentType, + $multipart + ); + + // for model (json/xml) + if (isset($submit_tool_callback_request)) { + if (stripos($headers['Content-Type'], 'application/json') !== false) { + # if Content-Type contains "application/json", json_encode the body + $httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($submit_tool_callback_request)); + } else { + $httpBody = $submit_tool_callback_request; } } elseif (count($formParams) > 0) { if ($multipart) { diff --git a/src/Api/AIModelsApi.php b/src/Api/AIModelsApi.php index 28a46d9..f6d3f45 100644 --- a/src/Api/AIModelsApi.php +++ b/src/Api/AIModelsApi.php @@ -14,7 +14,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Api/AIMonitoringApi.php b/src/Api/AIMonitoringApi.php index a21ae23..7a9137d 100644 --- a/src/Api/AIMonitoringApi.php +++ b/src/Api/AIMonitoringApi.php @@ -14,7 +14,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Api/AISessionsApi.php b/src/Api/AISessionsApi.php index 4ed22d8..b852b4b 100644 --- a/src/Api/AISessionsApi.php +++ b/src/Api/AISessionsApi.php @@ -14,7 +14,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Api/AITaskManagementApi.php b/src/Api/AITaskManagementApi.php new file mode 100644 index 0000000..708b5b9 --- /dev/null +++ b/src/Api/AITaskManagementApi.php @@ -0,0 +1,2079 @@ + [ + 'application/json', + ], + 'deleteTask' => [ + 'application/json', + ], + 'getDependencyGraph' => [ + 'application/json', + ], + 'getTask' => [ + 'application/json', + ], + 'listTasks' => [ + 'application/json', + ], + 'updateTask' => [ + 'application/json', + ], + ]; + + /** + * @param ClientInterface $client + * @param Configuration $config + * @param HeaderSelector $selector + * @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec + */ + public function __construct( + ?ClientInterface $client = null, + ?Configuration $config = null, + ?HeaderSelector $selector = null, + int $hostIndex = 0 + ) { + $this->client = $client ?: new Client(); + $this->config = $config ?: Configuration::getDefaultConfiguration(); + $this->headerSelector = $selector ?: new HeaderSelector(); + $this->hostIndex = $hostIndex; + } + + /** + * Set the host index + * + * @param int $hostIndex Host index (required) + */ + public function setHostIndex($hostIndex): void + { + $this->hostIndex = $hostIndex; + } + + /** + * Get the host index + * + * @return int Host index + */ + public function getHostIndex() + { + return $this->hostIndex; + } + + /** + * @return Configuration + */ + public function getConfig() + { + return $this->config; + } + + /** + * Operation createTask + * + * Create a new task + * + * @param string $organisation The organisation ID (required) + * @param \QuantClient\Model\CreateTaskRequest $create_task_request create_task_request (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createTask'] to see the possible values for this operation + * + * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return \QuantClient\Model\CreateTask201Response + */ + public function createTask($organisation, $create_task_request, string $contentType = self::contentTypes['createTask'][0]) + { + list($response) = $this->createTaskWithHttpInfo($organisation, $create_task_request, $contentType); + return $response; + } + + /** + * Operation createTaskWithHttpInfo + * + * Create a new task + * + * @param string $organisation The organisation ID (required) + * @param \QuantClient\Model\CreateTaskRequest $create_task_request (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createTask'] to see the possible values for this operation + * + * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return array of \QuantClient\Model\CreateTask201Response, HTTP status code, HTTP response headers (array of strings) + */ + public function createTaskWithHttpInfo($organisation, $create_task_request, string $contentType = self::contentTypes['createTask'][0]) + { + $request = $this->createTaskRequest($organisation, $create_task_request, $contentType); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? (string) $e->getResponse()->getBody() : null + ); + } catch (ConnectException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + null, + null + ); + } + + $statusCode = $response->getStatusCode(); + + + switch($statusCode) { + case 201: + return $this->handleResponseWithDataType( + '\QuantClient\Model\CreateTask201Response', + $request, + $response, + ); + } + + + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + + return $this->handleResponseWithDataType( + '\QuantClient\Model\CreateTask201Response', + $request, + $response, + ); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 201: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\QuantClient\Model\CreateTask201Response', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + throw $e; + } + + + throw $e; + } + } + + /** + * Operation createTaskAsync + * + * Create a new task + * + * @param string $organisation The organisation ID (required) + * @param \QuantClient\Model\CreateTaskRequest $create_task_request (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createTask'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createTaskAsync($organisation, $create_task_request, string $contentType = self::contentTypes['createTask'][0]) + { + return $this->createTaskAsyncWithHttpInfo($organisation, $create_task_request, $contentType) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation createTaskAsyncWithHttpInfo + * + * Create a new task + * + * @param string $organisation The organisation ID (required) + * @param \QuantClient\Model\CreateTaskRequest $create_task_request (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createTask'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createTaskAsyncWithHttpInfo($organisation, $create_task_request, string $contentType = self::contentTypes['createTask'][0]) + { + $returnType = '\QuantClient\Model\CreateTask201Response'; + $request = $this->createTaskRequest($organisation, $create_task_request, $contentType); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'createTask' + * + * @param string $organisation The organisation ID (required) + * @param \QuantClient\Model\CreateTaskRequest $create_task_request (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createTask'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function createTaskRequest($organisation, $create_task_request, string $contentType = self::contentTypes['createTask'][0]) + { + + // verify the required parameter 'organisation' is set + if ($organisation === null || (is_array($organisation) && count($organisation) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $organisation when calling createTask' + ); + } + + // verify the required parameter 'create_task_request' is set + if ($create_task_request === null || (is_array($create_task_request) && count($create_task_request) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $create_task_request when calling createTask' + ); + } + + + $resourcePath = '/api/v3/organizations/{organisation}/ai/tasks'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + + + // path params + if ($organisation !== null) { + $resourcePath = str_replace( + '{' . 'organisation' . '}', + ObjectSerializer::toPathValue($organisation), + $resourcePath + ); + } + + + $headers = $this->headerSelector->selectHeaders( + ['application/json', ], + $contentType, + $multipart + ); + + // for model (json/xml) + if (isset($create_task_request)) { + if (stripos($headers['Content-Type'], 'application/json') !== false) { + # if Content-Type contains "application/json", json_encode the body + $httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($create_task_request)); + } else { + $httpBody = $create_task_request; + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; + foreach ($formParamValueItems as $formParamValueItem) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValueItem + ]; + } + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { + # if Content-Type contains "application/json", json_encode the form parameters + $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); + } else { + // for HTTP post (form) + $httpBody = ObjectSerializer::buildQuery($formParams); + } + } + + // this endpoint requires Bearer (JWT) authentication (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $operationHost = $this->config->getHost(); + $query = ObjectSerializer::buildQuery($queryParams); + return new Request( + 'POST', + $operationHost . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation deleteTask + * + * Delete a task + * + * @param string $organisation The organisation ID (required) + * @param string $task_id The task UUID (required) + * @param bool|null $cascade If true, delete task and all dependent tasks recursively (optional, default to false) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteTask'] to see the possible values for this operation + * + * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return \QuantClient\Model\DeleteTask200Response|\QuantClient\Model\DeleteTask409Response + */ + public function deleteTask($organisation, $task_id, $cascade = false, string $contentType = self::contentTypes['deleteTask'][0]) + { + list($response) = $this->deleteTaskWithHttpInfo($organisation, $task_id, $cascade, $contentType); + return $response; + } + + /** + * Operation deleteTaskWithHttpInfo + * + * Delete a task + * + * @param string $organisation The organisation ID (required) + * @param string $task_id The task UUID (required) + * @param bool|null $cascade If true, delete task and all dependent tasks recursively (optional, default to false) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteTask'] to see the possible values for this operation + * + * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return array of \QuantClient\Model\DeleteTask200Response|\QuantClient\Model\DeleteTask409Response, HTTP status code, HTTP response headers (array of strings) + */ + public function deleteTaskWithHttpInfo($organisation, $task_id, $cascade = false, string $contentType = self::contentTypes['deleteTask'][0]) + { + $request = $this->deleteTaskRequest($organisation, $task_id, $cascade, $contentType); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? (string) $e->getResponse()->getBody() : null + ); + } catch (ConnectException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + null, + null + ); + } + + $statusCode = $response->getStatusCode(); + + + switch($statusCode) { + case 200: + return $this->handleResponseWithDataType( + '\QuantClient\Model\DeleteTask200Response', + $request, + $response, + ); + case 409: + return $this->handleResponseWithDataType( + '\QuantClient\Model\DeleteTask409Response', + $request, + $response, + ); + } + + + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + + return $this->handleResponseWithDataType( + '\QuantClient\Model\DeleteTask200Response', + $request, + $response, + ); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\QuantClient\Model\DeleteTask200Response', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + throw $e; + case 409: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\QuantClient\Model\DeleteTask409Response', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + throw $e; + } + + + throw $e; + } + } + + /** + * Operation deleteTaskAsync + * + * Delete a task + * + * @param string $organisation The organisation ID (required) + * @param string $task_id The task UUID (required) + * @param bool|null $cascade If true, delete task and all dependent tasks recursively (optional, default to false) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteTask'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteTaskAsync($organisation, $task_id, $cascade = false, string $contentType = self::contentTypes['deleteTask'][0]) + { + return $this->deleteTaskAsyncWithHttpInfo($organisation, $task_id, $cascade, $contentType) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation deleteTaskAsyncWithHttpInfo + * + * Delete a task + * + * @param string $organisation The organisation ID (required) + * @param string $task_id The task UUID (required) + * @param bool|null $cascade If true, delete task and all dependent tasks recursively (optional, default to false) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteTask'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteTaskAsyncWithHttpInfo($organisation, $task_id, $cascade = false, string $contentType = self::contentTypes['deleteTask'][0]) + { + $returnType = '\QuantClient\Model\DeleteTask200Response'; + $request = $this->deleteTaskRequest($organisation, $task_id, $cascade, $contentType); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'deleteTask' + * + * @param string $organisation The organisation ID (required) + * @param string $task_id The task UUID (required) + * @param bool|null $cascade If true, delete task and all dependent tasks recursively (optional, default to false) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteTask'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function deleteTaskRequest($organisation, $task_id, $cascade = false, string $contentType = self::contentTypes['deleteTask'][0]) + { + + // verify the required parameter 'organisation' is set + if ($organisation === null || (is_array($organisation) && count($organisation) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $organisation when calling deleteTask' + ); + } + + // verify the required parameter 'task_id' is set + if ($task_id === null || (is_array($task_id) && count($task_id) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $task_id when calling deleteTask' + ); + } + + + + $resourcePath = '/api/v3/organizations/{organisation}/ai/tasks/{taskId}'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $cascade, + 'cascade', // param base name + 'boolean', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + + + // path params + if ($organisation !== null) { + $resourcePath = str_replace( + '{' . 'organisation' . '}', + ObjectSerializer::toPathValue($organisation), + $resourcePath + ); + } + // path params + if ($task_id !== null) { + $resourcePath = str_replace( + '{' . 'taskId' . '}', + ObjectSerializer::toPathValue($task_id), + $resourcePath + ); + } + + + $headers = $this->headerSelector->selectHeaders( + ['application/json', ], + $contentType, + $multipart + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; + foreach ($formParamValueItems as $formParamValueItem) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValueItem + ]; + } + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { + # if Content-Type contains "application/json", json_encode the form parameters + $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); + } else { + // for HTTP post (form) + $httpBody = ObjectSerializer::buildQuery($formParams); + } + } + + // this endpoint requires Bearer (JWT) authentication (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $operationHost = $this->config->getHost(); + $query = ObjectSerializer::buildQuery($queryParams); + return new Request( + 'DELETE', + $operationHost . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getDependencyGraph + * + * Get dependency graph for a task list + * + * @param string $organisation The organisation ID (required) + * @param string $task_list_id The task list ID to get the dependency graph for (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getDependencyGraph'] to see the possible values for this operation + * + * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return \QuantClient\Model\GetDependencyGraph200Response + */ + public function getDependencyGraph($organisation, $task_list_id, string $contentType = self::contentTypes['getDependencyGraph'][0]) + { + list($response) = $this->getDependencyGraphWithHttpInfo($organisation, $task_list_id, $contentType); + return $response; + } + + /** + * Operation getDependencyGraphWithHttpInfo + * + * Get dependency graph for a task list + * + * @param string $organisation The organisation ID (required) + * @param string $task_list_id The task list ID to get the dependency graph for (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getDependencyGraph'] to see the possible values for this operation + * + * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return array of \QuantClient\Model\GetDependencyGraph200Response, HTTP status code, HTTP response headers (array of strings) + */ + public function getDependencyGraphWithHttpInfo($organisation, $task_list_id, string $contentType = self::contentTypes['getDependencyGraph'][0]) + { + $request = $this->getDependencyGraphRequest($organisation, $task_list_id, $contentType); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? (string) $e->getResponse()->getBody() : null + ); + } catch (ConnectException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + null, + null + ); + } + + $statusCode = $response->getStatusCode(); + + + switch($statusCode) { + case 200: + return $this->handleResponseWithDataType( + '\QuantClient\Model\GetDependencyGraph200Response', + $request, + $response, + ); + } + + + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + + return $this->handleResponseWithDataType( + '\QuantClient\Model\GetDependencyGraph200Response', + $request, + $response, + ); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\QuantClient\Model\GetDependencyGraph200Response', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + throw $e; + } + + + throw $e; + } + } + + /** + * Operation getDependencyGraphAsync + * + * Get dependency graph for a task list + * + * @param string $organisation The organisation ID (required) + * @param string $task_list_id The task list ID to get the dependency graph for (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getDependencyGraph'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getDependencyGraphAsync($organisation, $task_list_id, string $contentType = self::contentTypes['getDependencyGraph'][0]) + { + return $this->getDependencyGraphAsyncWithHttpInfo($organisation, $task_list_id, $contentType) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getDependencyGraphAsyncWithHttpInfo + * + * Get dependency graph for a task list + * + * @param string $organisation The organisation ID (required) + * @param string $task_list_id The task list ID to get the dependency graph for (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getDependencyGraph'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getDependencyGraphAsyncWithHttpInfo($organisation, $task_list_id, string $contentType = self::contentTypes['getDependencyGraph'][0]) + { + $returnType = '\QuantClient\Model\GetDependencyGraph200Response'; + $request = $this->getDependencyGraphRequest($organisation, $task_list_id, $contentType); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getDependencyGraph' + * + * @param string $organisation The organisation ID (required) + * @param string $task_list_id The task list ID to get the dependency graph for (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getDependencyGraph'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function getDependencyGraphRequest($organisation, $task_list_id, string $contentType = self::contentTypes['getDependencyGraph'][0]) + { + + // verify the required parameter 'organisation' is set + if ($organisation === null || (is_array($organisation) && count($organisation) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $organisation when calling getDependencyGraph' + ); + } + + // verify the required parameter 'task_list_id' is set + if ($task_list_id === null || (is_array($task_list_id) && count($task_list_id) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $task_list_id when calling getDependencyGraph' + ); + } + + + $resourcePath = '/api/v3/organizations/{organisation}/ai/tasks/{taskListId}/dependency-graph'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + + + // path params + if ($organisation !== null) { + $resourcePath = str_replace( + '{' . 'organisation' . '}', + ObjectSerializer::toPathValue($organisation), + $resourcePath + ); + } + // path params + if ($task_list_id !== null) { + $resourcePath = str_replace( + '{' . 'taskListId' . '}', + ObjectSerializer::toPathValue($task_list_id), + $resourcePath + ); + } + + + $headers = $this->headerSelector->selectHeaders( + ['application/json', ], + $contentType, + $multipart + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; + foreach ($formParamValueItems as $formParamValueItem) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValueItem + ]; + } + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { + # if Content-Type contains "application/json", json_encode the form parameters + $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); + } else { + // for HTTP post (form) + $httpBody = ObjectSerializer::buildQuery($formParams); + } + } + + // this endpoint requires Bearer (JWT) authentication (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $operationHost = $this->config->getHost(); + $query = ObjectSerializer::buildQuery($queryParams); + return new Request( + 'GET', + $operationHost . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getTask + * + * Get task details + * + * @param string $organisation The organisation ID (required) + * @param string $task_id The task UUID (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTask'] to see the possible values for this operation + * + * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return \QuantClient\Model\GetTask200Response + */ + public function getTask($organisation, $task_id, string $contentType = self::contentTypes['getTask'][0]) + { + list($response) = $this->getTaskWithHttpInfo($organisation, $task_id, $contentType); + return $response; + } + + /** + * Operation getTaskWithHttpInfo + * + * Get task details + * + * @param string $organisation The organisation ID (required) + * @param string $task_id The task UUID (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTask'] to see the possible values for this operation + * + * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return array of \QuantClient\Model\GetTask200Response, HTTP status code, HTTP response headers (array of strings) + */ + public function getTaskWithHttpInfo($organisation, $task_id, string $contentType = self::contentTypes['getTask'][0]) + { + $request = $this->getTaskRequest($organisation, $task_id, $contentType); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? (string) $e->getResponse()->getBody() : null + ); + } catch (ConnectException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + null, + null + ); + } + + $statusCode = $response->getStatusCode(); + + + switch($statusCode) { + case 200: + return $this->handleResponseWithDataType( + '\QuantClient\Model\GetTask200Response', + $request, + $response, + ); + } + + + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + + return $this->handleResponseWithDataType( + '\QuantClient\Model\GetTask200Response', + $request, + $response, + ); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\QuantClient\Model\GetTask200Response', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + throw $e; + } + + + throw $e; + } + } + + /** + * Operation getTaskAsync + * + * Get task details + * + * @param string $organisation The organisation ID (required) + * @param string $task_id The task UUID (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTask'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getTaskAsync($organisation, $task_id, string $contentType = self::contentTypes['getTask'][0]) + { + return $this->getTaskAsyncWithHttpInfo($organisation, $task_id, $contentType) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getTaskAsyncWithHttpInfo + * + * Get task details + * + * @param string $organisation The organisation ID (required) + * @param string $task_id The task UUID (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTask'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getTaskAsyncWithHttpInfo($organisation, $task_id, string $contentType = self::contentTypes['getTask'][0]) + { + $returnType = '\QuantClient\Model\GetTask200Response'; + $request = $this->getTaskRequest($organisation, $task_id, $contentType); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getTask' + * + * @param string $organisation The organisation ID (required) + * @param string $task_id The task UUID (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTask'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function getTaskRequest($organisation, $task_id, string $contentType = self::contentTypes['getTask'][0]) + { + + // verify the required parameter 'organisation' is set + if ($organisation === null || (is_array($organisation) && count($organisation) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $organisation when calling getTask' + ); + } + + // verify the required parameter 'task_id' is set + if ($task_id === null || (is_array($task_id) && count($task_id) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $task_id when calling getTask' + ); + } + + + $resourcePath = '/api/v3/organizations/{organisation}/ai/tasks/{taskId}'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + + + // path params + if ($organisation !== null) { + $resourcePath = str_replace( + '{' . 'organisation' . '}', + ObjectSerializer::toPathValue($organisation), + $resourcePath + ); + } + // path params + if ($task_id !== null) { + $resourcePath = str_replace( + '{' . 'taskId' . '}', + ObjectSerializer::toPathValue($task_id), + $resourcePath + ); + } + + + $headers = $this->headerSelector->selectHeaders( + ['application/json', ], + $contentType, + $multipart + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; + foreach ($formParamValueItems as $formParamValueItem) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValueItem + ]; + } + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { + # if Content-Type contains "application/json", json_encode the form parameters + $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); + } else { + // for HTTP post (form) + $httpBody = ObjectSerializer::buildQuery($formParams); + } + } + + // this endpoint requires Bearer (JWT) authentication (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $operationHost = $this->config->getHost(); + $query = ObjectSerializer::buildQuery($queryParams); + return new Request( + 'GET', + $operationHost . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation listTasks + * + * List tasks with optional filtering + * + * @param string $organisation The organisation ID (required) + * @param string|null $task_list_id Filter tasks by task list ID. Task lists are implicit groupings - any string can be used. (optional) + * @param string|null $status Filter tasks by status (optional) + * @param string|null $assigned_agent_id Filter tasks by assigned agent ID (optional) + * @param int|null $limit Maximum number of tasks to return (default 50, max 100) (optional, default to 50) + * @param string|null $depends_on Reverse lookup: find tasks that depend on this task ID. Returns tasks waiting for the specified task to complete. (optional) + * @param bool|null $include_details When using dependsOn, return full task objects in addition to IDs. Default false (IDs only for lightweight responses). (optional, default to false) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listTasks'] to see the possible values for this operation + * + * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return \QuantClient\Model\ListTasks200Response + */ + public function listTasks($organisation, $task_list_id = null, $status = null, $assigned_agent_id = null, $limit = 50, $depends_on = null, $include_details = false, string $contentType = self::contentTypes['listTasks'][0]) + { + list($response) = $this->listTasksWithHttpInfo($organisation, $task_list_id, $status, $assigned_agent_id, $limit, $depends_on, $include_details, $contentType); + return $response; + } + + /** + * Operation listTasksWithHttpInfo + * + * List tasks with optional filtering + * + * @param string $organisation The organisation ID (required) + * @param string|null $task_list_id Filter tasks by task list ID. Task lists are implicit groupings - any string can be used. (optional) + * @param string|null $status Filter tasks by status (optional) + * @param string|null $assigned_agent_id Filter tasks by assigned agent ID (optional) + * @param int|null $limit Maximum number of tasks to return (default 50, max 100) (optional, default to 50) + * @param string|null $depends_on Reverse lookup: find tasks that depend on this task ID. Returns tasks waiting for the specified task to complete. (optional) + * @param bool|null $include_details When using dependsOn, return full task objects in addition to IDs. Default false (IDs only for lightweight responses). (optional, default to false) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listTasks'] to see the possible values for this operation + * + * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return array of \QuantClient\Model\ListTasks200Response, HTTP status code, HTTP response headers (array of strings) + */ + public function listTasksWithHttpInfo($organisation, $task_list_id = null, $status = null, $assigned_agent_id = null, $limit = 50, $depends_on = null, $include_details = false, string $contentType = self::contentTypes['listTasks'][0]) + { + $request = $this->listTasksRequest($organisation, $task_list_id, $status, $assigned_agent_id, $limit, $depends_on, $include_details, $contentType); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? (string) $e->getResponse()->getBody() : null + ); + } catch (ConnectException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + null, + null + ); + } + + $statusCode = $response->getStatusCode(); + + + switch($statusCode) { + case 200: + return $this->handleResponseWithDataType( + '\QuantClient\Model\ListTasks200Response', + $request, + $response, + ); + } + + + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + + return $this->handleResponseWithDataType( + '\QuantClient\Model\ListTasks200Response', + $request, + $response, + ); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\QuantClient\Model\ListTasks200Response', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + throw $e; + } + + + throw $e; + } + } + + /** + * Operation listTasksAsync + * + * List tasks with optional filtering + * + * @param string $organisation The organisation ID (required) + * @param string|null $task_list_id Filter tasks by task list ID. Task lists are implicit groupings - any string can be used. (optional) + * @param string|null $status Filter tasks by status (optional) + * @param string|null $assigned_agent_id Filter tasks by assigned agent ID (optional) + * @param int|null $limit Maximum number of tasks to return (default 50, max 100) (optional, default to 50) + * @param string|null $depends_on Reverse lookup: find tasks that depend on this task ID. Returns tasks waiting for the specified task to complete. (optional) + * @param bool|null $include_details When using dependsOn, return full task objects in addition to IDs. Default false (IDs only for lightweight responses). (optional, default to false) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listTasks'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listTasksAsync($organisation, $task_list_id = null, $status = null, $assigned_agent_id = null, $limit = 50, $depends_on = null, $include_details = false, string $contentType = self::contentTypes['listTasks'][0]) + { + return $this->listTasksAsyncWithHttpInfo($organisation, $task_list_id, $status, $assigned_agent_id, $limit, $depends_on, $include_details, $contentType) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation listTasksAsyncWithHttpInfo + * + * List tasks with optional filtering + * + * @param string $organisation The organisation ID (required) + * @param string|null $task_list_id Filter tasks by task list ID. Task lists are implicit groupings - any string can be used. (optional) + * @param string|null $status Filter tasks by status (optional) + * @param string|null $assigned_agent_id Filter tasks by assigned agent ID (optional) + * @param int|null $limit Maximum number of tasks to return (default 50, max 100) (optional, default to 50) + * @param string|null $depends_on Reverse lookup: find tasks that depend on this task ID. Returns tasks waiting for the specified task to complete. (optional) + * @param bool|null $include_details When using dependsOn, return full task objects in addition to IDs. Default false (IDs only for lightweight responses). (optional, default to false) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listTasks'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listTasksAsyncWithHttpInfo($organisation, $task_list_id = null, $status = null, $assigned_agent_id = null, $limit = 50, $depends_on = null, $include_details = false, string $contentType = self::contentTypes['listTasks'][0]) + { + $returnType = '\QuantClient\Model\ListTasks200Response'; + $request = $this->listTasksRequest($organisation, $task_list_id, $status, $assigned_agent_id, $limit, $depends_on, $include_details, $contentType); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'listTasks' + * + * @param string $organisation The organisation ID (required) + * @param string|null $task_list_id Filter tasks by task list ID. Task lists are implicit groupings - any string can be used. (optional) + * @param string|null $status Filter tasks by status (optional) + * @param string|null $assigned_agent_id Filter tasks by assigned agent ID (optional) + * @param int|null $limit Maximum number of tasks to return (default 50, max 100) (optional, default to 50) + * @param string|null $depends_on Reverse lookup: find tasks that depend on this task ID. Returns tasks waiting for the specified task to complete. (optional) + * @param bool|null $include_details When using dependsOn, return full task objects in addition to IDs. Default false (IDs only for lightweight responses). (optional, default to false) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listTasks'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function listTasksRequest($organisation, $task_list_id = null, $status = null, $assigned_agent_id = null, $limit = 50, $depends_on = null, $include_details = false, string $contentType = self::contentTypes['listTasks'][0]) + { + + // verify the required parameter 'organisation' is set + if ($organisation === null || (is_array($organisation) && count($organisation) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $organisation when calling listTasks' + ); + } + + + + + if ($limit !== null && $limit > 100) { + throw new \InvalidArgumentException('invalid value for "$limit" when calling AITaskManagementApi.listTasks, must be smaller than or equal to 100.'); + } + if ($limit !== null && $limit < 1) { + throw new \InvalidArgumentException('invalid value for "$limit" when calling AITaskManagementApi.listTasks, must be bigger than or equal to 1.'); + } + + + + + $resourcePath = '/api/v3/organizations/{organisation}/ai/tasks'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $task_list_id, + 'taskListId', // param base name + 'string', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $status, + 'status', // param base name + 'string', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $assigned_agent_id, + 'assignedAgentId', // param base name + 'string', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $limit, + 'limit', // param base name + 'integer', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $depends_on, + 'dependsOn', // param base name + 'string', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $include_details, + 'includeDetails', // param base name + 'boolean', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + + + // path params + if ($organisation !== null) { + $resourcePath = str_replace( + '{' . 'organisation' . '}', + ObjectSerializer::toPathValue($organisation), + $resourcePath + ); + } + + + $headers = $this->headerSelector->selectHeaders( + ['application/json', ], + $contentType, + $multipart + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; + foreach ($formParamValueItems as $formParamValueItem) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValueItem + ]; + } + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { + # if Content-Type contains "application/json", json_encode the form parameters + $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); + } else { + // for HTTP post (form) + $httpBody = ObjectSerializer::buildQuery($formParams); + } + } + + // this endpoint requires Bearer (JWT) authentication (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $operationHost = $this->config->getHost(); + $query = ObjectSerializer::buildQuery($queryParams); + return new Request( + 'GET', + $operationHost . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation updateTask + * + * Update a task + * + * @param string $organisation The organisation ID (required) + * @param string $task_id The task UUID (required) + * @param \QuantClient\Model\UpdateTaskRequest $update_task_request update_task_request (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['updateTask'] to see the possible values for this operation + * + * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return \QuantClient\Model\UpdateTask200Response + */ + public function updateTask($organisation, $task_id, $update_task_request, string $contentType = self::contentTypes['updateTask'][0]) + { + list($response) = $this->updateTaskWithHttpInfo($organisation, $task_id, $update_task_request, $contentType); + return $response; + } + + /** + * Operation updateTaskWithHttpInfo + * + * Update a task + * + * @param string $organisation The organisation ID (required) + * @param string $task_id The task UUID (required) + * @param \QuantClient\Model\UpdateTaskRequest $update_task_request (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['updateTask'] to see the possible values for this operation + * + * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return array of \QuantClient\Model\UpdateTask200Response, HTTP status code, HTTP response headers (array of strings) + */ + public function updateTaskWithHttpInfo($organisation, $task_id, $update_task_request, string $contentType = self::contentTypes['updateTask'][0]) + { + $request = $this->updateTaskRequest($organisation, $task_id, $update_task_request, $contentType); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? (string) $e->getResponse()->getBody() : null + ); + } catch (ConnectException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + null, + null + ); + } + + $statusCode = $response->getStatusCode(); + + + switch($statusCode) { + case 200: + return $this->handleResponseWithDataType( + '\QuantClient\Model\UpdateTask200Response', + $request, + $response, + ); + } + + + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + + return $this->handleResponseWithDataType( + '\QuantClient\Model\UpdateTask200Response', + $request, + $response, + ); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\QuantClient\Model\UpdateTask200Response', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + throw $e; + } + + + throw $e; + } + } + + /** + * Operation updateTaskAsync + * + * Update a task + * + * @param string $organisation The organisation ID (required) + * @param string $task_id The task UUID (required) + * @param \QuantClient\Model\UpdateTaskRequest $update_task_request (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['updateTask'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function updateTaskAsync($organisation, $task_id, $update_task_request, string $contentType = self::contentTypes['updateTask'][0]) + { + return $this->updateTaskAsyncWithHttpInfo($organisation, $task_id, $update_task_request, $contentType) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation updateTaskAsyncWithHttpInfo + * + * Update a task + * + * @param string $organisation The organisation ID (required) + * @param string $task_id The task UUID (required) + * @param \QuantClient\Model\UpdateTaskRequest $update_task_request (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['updateTask'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function updateTaskAsyncWithHttpInfo($organisation, $task_id, $update_task_request, string $contentType = self::contentTypes['updateTask'][0]) + { + $returnType = '\QuantClient\Model\UpdateTask200Response'; + $request = $this->updateTaskRequest($organisation, $task_id, $update_task_request, $contentType); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'updateTask' + * + * @param string $organisation The organisation ID (required) + * @param string $task_id The task UUID (required) + * @param \QuantClient\Model\UpdateTaskRequest $update_task_request (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['updateTask'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function updateTaskRequest($organisation, $task_id, $update_task_request, string $contentType = self::contentTypes['updateTask'][0]) + { + + // verify the required parameter 'organisation' is set + if ($organisation === null || (is_array($organisation) && count($organisation) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $organisation when calling updateTask' + ); + } + + // verify the required parameter 'task_id' is set + if ($task_id === null || (is_array($task_id) && count($task_id) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $task_id when calling updateTask' + ); + } + + // verify the required parameter 'update_task_request' is set + if ($update_task_request === null || (is_array($update_task_request) && count($update_task_request) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $update_task_request when calling updateTask' + ); + } + + + $resourcePath = '/api/v3/organizations/{organisation}/ai/tasks/{taskId}'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + + + // path params + if ($organisation !== null) { + $resourcePath = str_replace( + '{' . 'organisation' . '}', + ObjectSerializer::toPathValue($organisation), + $resourcePath + ); + } + // path params + if ($task_id !== null) { + $resourcePath = str_replace( + '{' . 'taskId' . '}', + ObjectSerializer::toPathValue($task_id), + $resourcePath + ); + } + + + $headers = $this->headerSelector->selectHeaders( + ['application/json', ], + $contentType, + $multipart + ); + + // for model (json/xml) + if (isset($update_task_request)) { + if (stripos($headers['Content-Type'], 'application/json') !== false) { + # if Content-Type contains "application/json", json_encode the body + $httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($update_task_request)); + } else { + $httpBody = $update_task_request; + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; + foreach ($formParamValueItems as $formParamValueItem) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValueItem + ]; + } + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { + # if Content-Type contains "application/json", json_encode the form parameters + $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); + } else { + // for HTTP post (form) + $httpBody = ObjectSerializer::buildQuery($formParams); + } + } + + // this endpoint requires Bearer (JWT) authentication (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $operationHost = $this->config->getHost(); + $query = ObjectSerializer::buildQuery($queryParams); + return new Request( + 'PUT', + $operationHost . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Create http client option + * + * @throws \RuntimeException on file opening failure + * @return array of http client options + */ + protected function createHttpClientOption() + { + $options = []; + if ($this->config->getDebug()) { + $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); + if (!$options[RequestOptions::DEBUG]) { + throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); + } + } + + return $options; + } + + private function handleResponseWithDataType( + string $dataType, + RequestInterface $request, + ResponseInterface $response + ): array { + if ($dataType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($dataType !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $response->getStatusCode(), + $response->getHeaders(), + $content + ); + } + } + } + + return [ + ObjectSerializer::deserialize($content, $dataType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + } + + private function responseWithinRangeCode( + string $rangeCode, + int $statusCode + ): bool { + $left = (int) ($rangeCode[0].'00'); + $right = (int) ($rangeCode[0].'99'); + + return $statusCode >= $left && $statusCode <= $right; + } +} diff --git a/src/Api/AIToolsApi.php b/src/Api/AIToolsApi.php index 00516dc..4e19460 100644 --- a/src/Api/AIToolsApi.php +++ b/src/Api/AIToolsApi.php @@ -14,7 +14,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ @@ -74,6 +74,9 @@ class AIToolsApi /** @var string[] $contentTypes **/ public const contentTypes = [ + 'getAIOrchestrationStatus' => [ + 'application/json', + ], 'getAIToolExecutionStatus' => [ 'application/json', ], @@ -134,6 +137,315 @@ public function getConfig() return $this->config; } + /** + * Operation getAIOrchestrationStatus + * + * Get Orchestration Status + * + * @param string $organisation The organisation ID (required) + * @param string $orchestration_id Orchestration identifier for aggregated async tool executions (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAIOrchestrationStatus'] to see the possible values for this operation + * + * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return \QuantClient\Model\GetAIOrchestrationStatus200Response|\QuantClient\Model\GetAIOrchestrationStatus404Response + */ + public function getAIOrchestrationStatus($organisation, $orchestration_id, string $contentType = self::contentTypes['getAIOrchestrationStatus'][0]) + { + list($response) = $this->getAIOrchestrationStatusWithHttpInfo($organisation, $orchestration_id, $contentType); + return $response; + } + + /** + * Operation getAIOrchestrationStatusWithHttpInfo + * + * Get Orchestration Status + * + * @param string $organisation The organisation ID (required) + * @param string $orchestration_id Orchestration identifier for aggregated async tool executions (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAIOrchestrationStatus'] to see the possible values for this operation + * + * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return array of \QuantClient\Model\GetAIOrchestrationStatus200Response|\QuantClient\Model\GetAIOrchestrationStatus404Response, HTTP status code, HTTP response headers (array of strings) + */ + public function getAIOrchestrationStatusWithHttpInfo($organisation, $orchestration_id, string $contentType = self::contentTypes['getAIOrchestrationStatus'][0]) + { + $request = $this->getAIOrchestrationStatusRequest($organisation, $orchestration_id, $contentType); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? (string) $e->getResponse()->getBody() : null + ); + } catch (ConnectException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + null, + null + ); + } + + $statusCode = $response->getStatusCode(); + + + switch($statusCode) { + case 200: + return $this->handleResponseWithDataType( + '\QuantClient\Model\GetAIOrchestrationStatus200Response', + $request, + $response, + ); + case 404: + return $this->handleResponseWithDataType( + '\QuantClient\Model\GetAIOrchestrationStatus404Response', + $request, + $response, + ); + } + + + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + + return $this->handleResponseWithDataType( + '\QuantClient\Model\GetAIOrchestrationStatus200Response', + $request, + $response, + ); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\QuantClient\Model\GetAIOrchestrationStatus200Response', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + throw $e; + case 404: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\QuantClient\Model\GetAIOrchestrationStatus404Response', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + throw $e; + } + + + throw $e; + } + } + + /** + * Operation getAIOrchestrationStatusAsync + * + * Get Orchestration Status + * + * @param string $organisation The organisation ID (required) + * @param string $orchestration_id Orchestration identifier for aggregated async tool executions (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAIOrchestrationStatus'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getAIOrchestrationStatusAsync($organisation, $orchestration_id, string $contentType = self::contentTypes['getAIOrchestrationStatus'][0]) + { + return $this->getAIOrchestrationStatusAsyncWithHttpInfo($organisation, $orchestration_id, $contentType) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getAIOrchestrationStatusAsyncWithHttpInfo + * + * Get Orchestration Status + * + * @param string $organisation The organisation ID (required) + * @param string $orchestration_id Orchestration identifier for aggregated async tool executions (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAIOrchestrationStatus'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getAIOrchestrationStatusAsyncWithHttpInfo($organisation, $orchestration_id, string $contentType = self::contentTypes['getAIOrchestrationStatus'][0]) + { + $returnType = '\QuantClient\Model\GetAIOrchestrationStatus200Response'; + $request = $this->getAIOrchestrationStatusRequest($organisation, $orchestration_id, $contentType); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getAIOrchestrationStatus' + * + * @param string $organisation The organisation ID (required) + * @param string $orchestration_id Orchestration identifier for aggregated async tool executions (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAIOrchestrationStatus'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function getAIOrchestrationStatusRequest($organisation, $orchestration_id, string $contentType = self::contentTypes['getAIOrchestrationStatus'][0]) + { + + // verify the required parameter 'organisation' is set + if ($organisation === null || (is_array($organisation) && count($organisation) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $organisation when calling getAIOrchestrationStatus' + ); + } + + // verify the required parameter 'orchestration_id' is set + if ($orchestration_id === null || (is_array($orchestration_id) && count($orchestration_id) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $orchestration_id when calling getAIOrchestrationStatus' + ); + } + if (!preg_match("/^orch_[a-f0-9]{32}$/", $orchestration_id)) { + throw new \InvalidArgumentException("invalid value for \"orchestration_id\" when calling AIToolsApi.getAIOrchestrationStatus, must conform to the pattern /^orch_[a-f0-9]{32}$/."); + } + + + $resourcePath = '/api/v3/organizations/{organisation}/ai/tools/orchestrations/{orchestrationId}'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + + + // path params + if ($organisation !== null) { + $resourcePath = str_replace( + '{' . 'organisation' . '}', + ObjectSerializer::toPathValue($organisation), + $resourcePath + ); + } + // path params + if ($orchestration_id !== null) { + $resourcePath = str_replace( + '{' . 'orchestrationId' . '}', + ObjectSerializer::toPathValue($orchestration_id), + $resourcePath + ); + } + + + $headers = $this->headerSelector->selectHeaders( + ['application/json', ], + $contentType, + $multipart + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; + foreach ($formParamValueItems as $formParamValueItem) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValueItem + ]; + } + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { + # if Content-Type contains "application/json", json_encode the form parameters + $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); + } else { + // for HTTP post (form) + $httpBody = ObjectSerializer::buildQuery($formParams); + } + } + + // this endpoint requires Bearer (JWT) authentication (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $operationHost = $this->config->getHost(); + $query = ObjectSerializer::buildQuery($queryParams); + return new Request( + 'GET', + $operationHost . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + /** * Operation getAIToolExecutionStatus * diff --git a/src/Api/AIVectorDatabaseApi.php b/src/Api/AIVectorDatabaseApi.php index 55b8dbf..c80bd13 100644 --- a/src/Api/AIVectorDatabaseApi.php +++ b/src/Api/AIVectorDatabaseApi.php @@ -14,7 +14,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Api/ApplicationsApi.php b/src/Api/ApplicationsApi.php index 975e933..eaf6b39 100644 --- a/src/Api/ApplicationsApi.php +++ b/src/Api/ApplicationsApi.php @@ -14,7 +14,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Api/BackupManagementApi.php b/src/Api/BackupManagementApi.php index b6623b4..a6e02e1 100644 --- a/src/Api/BackupManagementApi.php +++ b/src/Api/BackupManagementApi.php @@ -14,7 +14,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Api/CommandsApi.php b/src/Api/CommandsApi.php index 17dae5d..3b1ec6d 100644 --- a/src/Api/CommandsApi.php +++ b/src/Api/CommandsApi.php @@ -14,7 +14,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Api/ComposeApi.php b/src/Api/ComposeApi.php index 835706b..6675142 100644 --- a/src/Api/ComposeApi.php +++ b/src/Api/ComposeApi.php @@ -14,7 +14,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Api/ContainersApi.php b/src/Api/ContainersApi.php index 2749ee2..fc6c4a6 100644 --- a/src/Api/ContainersApi.php +++ b/src/Api/ContainersApi.php @@ -14,7 +14,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Api/CrawlerSchedulesApi.php b/src/Api/CrawlerSchedulesApi.php index 9de8986..115c4bc 100644 --- a/src/Api/CrawlerSchedulesApi.php +++ b/src/Api/CrawlerSchedulesApi.php @@ -14,7 +14,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Api/CrawlersApi.php b/src/Api/CrawlersApi.php index 2b69192..f60f891 100644 --- a/src/Api/CrawlersApi.php +++ b/src/Api/CrawlersApi.php @@ -14,7 +14,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ @@ -492,7 +492,7 @@ public function crawlersCreateRequest($organization, $project, $v2_crawler_reque * * @param string $organization Organization identifier (required) * @param string $project Project identifier (required) - * @param string $crawler crawler (required) + * @param string $crawler The UUID of the crawler (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['crawlersDelete'] to see the possible values for this operation * * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format @@ -511,7 +511,7 @@ public function crawlersDelete($organization, $project, $crawler, string $conten * * @param string $organization Organization identifier (required) * @param string $project Project identifier (required) - * @param string $crawler (required) + * @param string $crawler The UUID of the crawler (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['crawlersDelete'] to see the possible values for this operation * * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format @@ -578,7 +578,7 @@ public function crawlersDeleteWithHttpInfo($organization, $project, $crawler, st * * @param string $organization Organization identifier (required) * @param string $project Project identifier (required) - * @param string $crawler (required) + * @param string $crawler The UUID of the crawler (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['crawlersDelete'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -601,7 +601,7 @@ function ($response) { * * @param string $organization Organization identifier (required) * @param string $project Project identifier (required) - * @param string $crawler (required) + * @param string $crawler The UUID of the crawler (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['crawlersDelete'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -640,7 +640,7 @@ function ($exception) { * * @param string $organization Organization identifier (required) * @param string $project Project identifier (required) - * @param string $crawler (required) + * @param string $crawler The UUID of the crawler (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['crawlersDelete'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -1530,12 +1530,11 @@ public function crawlersGetRunsRequest($organization, $project, $crawler, string * * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return \QuantClient\Model\V2Crawler[]|\QuantClient\Model\V2Error|\QuantClient\Model\V2Error + * @return void */ public function crawlersList($organization, $project, string $contentType = self::contentTypes['crawlersList'][0]) { - list($response) = $this->crawlersListWithHttpInfo($organization, $project, $contentType); - return $response; + $this->crawlersListWithHttpInfo($organization, $project, $contentType); } /** @@ -1549,7 +1548,7 @@ public function crawlersList($organization, $project, string $contentType = self * * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return array of \QuantClient\Model\V2Crawler[]|\QuantClient\Model\V2Error|\QuantClient\Model\V2Error, HTTP status code, HTTP response headers (array of strings) + * @return array of null, HTTP status code, HTTP response headers (array of strings) */ public function crawlersListWithHttpInfo($organization, $project, string $contentType = self::contentTypes['crawlersList'][0]) { @@ -1578,57 +1577,9 @@ public function crawlersListWithHttpInfo($organization, $project, string $conten $statusCode = $response->getStatusCode(); - switch($statusCode) { - case 200: - return $this->handleResponseWithDataType( - '\QuantClient\Model\V2Crawler[]', - $request, - $response, - ); - case 400: - return $this->handleResponseWithDataType( - '\QuantClient\Model\V2Error', - $request, - $response, - ); - case 403: - return $this->handleResponseWithDataType( - '\QuantClient\Model\V2Error', - $request, - $response, - ); - } - - - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - - return $this->handleResponseWithDataType( - '\QuantClient\Model\V2Crawler[]', - $request, - $response, - ); + return [null, $statusCode, $response->getHeaders()]; } catch (ApiException $e) { switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\QuantClient\Model\V2Crawler[]', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - throw $e; case 400: $data = ObjectSerializer::deserialize( $e->getResponseBody(), @@ -1688,27 +1639,14 @@ function ($response) { */ public function crawlersListAsyncWithHttpInfo($organization, $project, string $contentType = self::contentTypes['crawlersList'][0]) { - $returnType = '\QuantClient\Model\V2Crawler[]'; + $returnType = ''; $request = $this->crawlersListRequest($organization, $project, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) ->then( function ($response) use ($returnType) { - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return [null, $response->getStatusCode(), $response->getHeaders()]; }, function ($exception) { $response = $exception->getResponse(); @@ -1846,7 +1784,7 @@ public function crawlersListRequest($organization, $project, string $contentType * * @param string $organization Organization identifier (required) * @param string $project Project identifier (required) - * @param string $crawler crawler (required) + * @param string $crawler The UUID of the crawler (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['crawlersRead'] to see the possible values for this operation * * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format @@ -1866,7 +1804,7 @@ public function crawlersRead($organization, $project, $crawler, string $contentT * * @param string $organization Organization identifier (required) * @param string $project Project identifier (required) - * @param string $crawler (required) + * @param string $crawler The UUID of the crawler (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['crawlersRead'] to see the possible values for this operation * * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format @@ -1981,7 +1919,7 @@ public function crawlersReadWithHttpInfo($organization, $project, $crawler, stri * * @param string $organization Organization identifier (required) * @param string $project Project identifier (required) - * @param string $crawler (required) + * @param string $crawler The UUID of the crawler (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['crawlersRead'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -2004,7 +1942,7 @@ function ($response) { * * @param string $organization Organization identifier (required) * @param string $project Project identifier (required) - * @param string $crawler (required) + * @param string $crawler The UUID of the crawler (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['crawlersRead'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -2056,7 +1994,7 @@ function ($exception) { * * @param string $organization Organization identifier (required) * @param string $project Project identifier (required) - * @param string $crawler (required) + * @param string $crawler The UUID of the crawler (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['crawlersRead'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -2187,14 +2125,14 @@ public function crawlersReadRequest($organization, $project, $crawler, string $c * @param string $organization Organization identifier (required) * @param string $project Project identifier (required) * @param string $crawler Crawler identifier (required) - * @param \QuantClient\Model\CrawlersRunRequest $crawlers_run_request crawlers_run_request (required) + * @param \QuantClient\Model\CrawlersRunRequest|null $crawlers_run_request crawlers_run_request (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['crawlersRun'] to see the possible values for this operation * * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException * @return \QuantClient\Model\CrawlersRun200Response|\QuantClient\Model\V2Error|\QuantClient\Model\V2Error|\QuantClient\Model\V2Error|\QuantClient\Model\V2Error */ - public function crawlersRun($organization, $project, $crawler, $crawlers_run_request, string $contentType = self::contentTypes['crawlersRun'][0]) + public function crawlersRun($organization, $project, $crawler, $crawlers_run_request = null, string $contentType = self::contentTypes['crawlersRun'][0]) { list($response) = $this->crawlersRunWithHttpInfo($organization, $project, $crawler, $crawlers_run_request, $contentType); return $response; @@ -2208,14 +2146,14 @@ public function crawlersRun($organization, $project, $crawler, $crawlers_run_req * @param string $organization Organization identifier (required) * @param string $project Project identifier (required) * @param string $crawler Crawler identifier (required) - * @param \QuantClient\Model\CrawlersRunRequest $crawlers_run_request (required) + * @param \QuantClient\Model\CrawlersRunRequest|null $crawlers_run_request (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['crawlersRun'] to see the possible values for this operation * * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException * @return array of \QuantClient\Model\CrawlersRun200Response|\QuantClient\Model\V2Error|\QuantClient\Model\V2Error|\QuantClient\Model\V2Error|\QuantClient\Model\V2Error, HTTP status code, HTTP response headers (array of strings) */ - public function crawlersRunWithHttpInfo($organization, $project, $crawler, $crawlers_run_request, string $contentType = self::contentTypes['crawlersRun'][0]) + public function crawlersRunWithHttpInfo($organization, $project, $crawler, $crawlers_run_request = null, string $contentType = self::contentTypes['crawlersRun'][0]) { $request = $this->crawlersRunRequest($organization, $project, $crawler, $crawlers_run_request, $contentType); @@ -2352,13 +2290,13 @@ public function crawlersRunWithHttpInfo($organization, $project, $crawler, $craw * @param string $organization Organization identifier (required) * @param string $project Project identifier (required) * @param string $crawler Crawler identifier (required) - * @param \QuantClient\Model\CrawlersRunRequest $crawlers_run_request (required) + * @param \QuantClient\Model\CrawlersRunRequest|null $crawlers_run_request (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['crawlersRun'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function crawlersRunAsync($organization, $project, $crawler, $crawlers_run_request, string $contentType = self::contentTypes['crawlersRun'][0]) + public function crawlersRunAsync($organization, $project, $crawler, $crawlers_run_request = null, string $contentType = self::contentTypes['crawlersRun'][0]) { return $this->crawlersRunAsyncWithHttpInfo($organization, $project, $crawler, $crawlers_run_request, $contentType) ->then( @@ -2376,13 +2314,13 @@ function ($response) { * @param string $organization Organization identifier (required) * @param string $project Project identifier (required) * @param string $crawler Crawler identifier (required) - * @param \QuantClient\Model\CrawlersRunRequest $crawlers_run_request (required) + * @param \QuantClient\Model\CrawlersRunRequest|null $crawlers_run_request (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['crawlersRun'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function crawlersRunAsyncWithHttpInfo($organization, $project, $crawler, $crawlers_run_request, string $contentType = self::contentTypes['crawlersRun'][0]) + public function crawlersRunAsyncWithHttpInfo($organization, $project, $crawler, $crawlers_run_request = null, string $contentType = self::contentTypes['crawlersRun'][0]) { $returnType = '\QuantClient\Model\CrawlersRun200Response'; $request = $this->crawlersRunRequest($organization, $project, $crawler, $crawlers_run_request, $contentType); @@ -2429,13 +2367,13 @@ function ($exception) { * @param string $organization Organization identifier (required) * @param string $project Project identifier (required) * @param string $crawler Crawler identifier (required) - * @param \QuantClient\Model\CrawlersRunRequest $crawlers_run_request (required) + * @param \QuantClient\Model\CrawlersRunRequest|null $crawlers_run_request (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['crawlersRun'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function crawlersRunRequest($organization, $project, $crawler, $crawlers_run_request, string $contentType = self::contentTypes['crawlersRun'][0]) + public function crawlersRunRequest($organization, $project, $crawler, $crawlers_run_request = null, string $contentType = self::contentTypes['crawlersRun'][0]) { // verify the required parameter 'organization' is set @@ -2459,12 +2397,6 @@ public function crawlersRunRequest($organization, $project, $crawler, $crawlers_ ); } - // verify the required parameter 'crawlers_run_request' is set - if ($crawlers_run_request === null || (is_array($crawlers_run_request) && count($crawlers_run_request) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $crawlers_run_request when calling crawlersRun' - ); - } $resourcePath = '/api/v2/organizations/{organization}/projects/{project}/crawlers/{crawler}/run'; @@ -2573,7 +2505,7 @@ public function crawlersRunRequest($organization, $project, $crawler, $crawlers_ * * @param string $organization Organization identifier (required) * @param string $project Project identifier (required) - * @param string $crawler crawler (required) + * @param string $crawler The UUID of the crawler (required) * @param \QuantClient\Model\V2CrawlerRequest $v2_crawler_request v2_crawler_request (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['crawlersUpdate'] to see the possible values for this operation * @@ -2594,7 +2526,7 @@ public function crawlersUpdate($organization, $project, $crawler, $v2_crawler_re * * @param string $organization Organization identifier (required) * @param string $project Project identifier (required) - * @param string $crawler (required) + * @param string $crawler The UUID of the crawler (required) * @param \QuantClient\Model\V2CrawlerRequest $v2_crawler_request (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['crawlersUpdate'] to see the possible values for this operation * @@ -2710,7 +2642,7 @@ public function crawlersUpdateWithHttpInfo($organization, $project, $crawler, $v * * @param string $organization Organization identifier (required) * @param string $project Project identifier (required) - * @param string $crawler (required) + * @param string $crawler The UUID of the crawler (required) * @param \QuantClient\Model\V2CrawlerRequest $v2_crawler_request (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['crawlersUpdate'] to see the possible values for this operation * @@ -2734,7 +2666,7 @@ function ($response) { * * @param string $organization Organization identifier (required) * @param string $project Project identifier (required) - * @param string $crawler (required) + * @param string $crawler The UUID of the crawler (required) * @param \QuantClient\Model\V2CrawlerRequest $v2_crawler_request (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['crawlersUpdate'] to see the possible values for this operation * @@ -2787,7 +2719,7 @@ function ($exception) { * * @param string $organization Organization identifier (required) * @param string $project Project identifier (required) - * @param string $crawler (required) + * @param string $crawler The UUID of the crawler (required) * @param \QuantClient\Model\V2CrawlerRequest $v2_crawler_request (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['crawlersUpdate'] to see the possible values for this operation * diff --git a/src/Api/CronApi.php b/src/Api/CronApi.php index f872c4d..d9e722e 100644 --- a/src/Api/CronApi.php +++ b/src/Api/CronApi.php @@ -14,7 +14,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Api/DomainsApi.php b/src/Api/DomainsApi.php index fb1f176..c2775d8 100644 --- a/src/Api/DomainsApi.php +++ b/src/Api/DomainsApi.php @@ -14,7 +14,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ @@ -483,7 +483,7 @@ public function domainsCreateRequest($organization, $project, $v2_domain_request * * @param string $organization Organization identifier (required) * @param string $project Project identifier (required) - * @param string $domain Domain identifier (required) + * @param string $domain Domain id (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['domainsDelete'] to see the possible values for this operation * * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format @@ -502,7 +502,7 @@ public function domainsDelete($organization, $project, $domain, string $contentT * * @param string $organization Organization identifier (required) * @param string $project Project identifier (required) - * @param string $domain Domain identifier (required) + * @param string $domain Domain id (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['domainsDelete'] to see the possible values for this operation * * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format @@ -569,7 +569,7 @@ public function domainsDeleteWithHttpInfo($organization, $project, $domain, stri * * @param string $organization Organization identifier (required) * @param string $project Project identifier (required) - * @param string $domain Domain identifier (required) + * @param string $domain Domain id (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['domainsDelete'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -592,7 +592,7 @@ function ($response) { * * @param string $organization Organization identifier (required) * @param string $project Project identifier (required) - * @param string $domain Domain identifier (required) + * @param string $domain Domain id (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['domainsDelete'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -631,7 +631,7 @@ function ($exception) { * * @param string $organization Organization identifier (required) * @param string $project Project identifier (required) - * @param string $domain Domain identifier (required) + * @param string $domain Domain id (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['domainsDelete'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -1081,7 +1081,7 @@ public function domainsListRequest($organization, $project, string $contentType * * @param string $organization Organization identifier (required) * @param string $project Project identifier (required) - * @param string $domain Domain identifier (required) + * @param string $domain Domain id (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['domainsRead'] to see the possible values for this operation * * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format @@ -1101,7 +1101,7 @@ public function domainsRead($organization, $project, $domain, string $contentTyp * * @param string $organization Organization identifier (required) * @param string $project Project identifier (required) - * @param string $domain Domain identifier (required) + * @param string $domain Domain id (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['domainsRead'] to see the possible values for this operation * * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format @@ -1216,7 +1216,7 @@ public function domainsReadWithHttpInfo($organization, $project, $domain, string * * @param string $organization Organization identifier (required) * @param string $project Project identifier (required) - * @param string $domain Domain identifier (required) + * @param string $domain Domain id (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['domainsRead'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -1239,7 +1239,7 @@ function ($response) { * * @param string $organization Organization identifier (required) * @param string $project Project identifier (required) - * @param string $domain Domain identifier (required) + * @param string $domain Domain id (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['domainsRead'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -1291,7 +1291,7 @@ function ($exception) { * * @param string $organization Organization identifier (required) * @param string $project Project identifier (required) - * @param string $domain Domain identifier (required) + * @param string $domain Domain id (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['domainsRead'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -1421,7 +1421,7 @@ public function domainsReadRequest($organization, $project, $domain, string $con * * @param string $organization Organization identifier (required) * @param string $project Project identifier (required) - * @param string $domain Domain identifier (required) + * @param string $domain Domain id (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['domainsRenew'] to see the possible values for this operation * * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format @@ -1440,7 +1440,7 @@ public function domainsRenew($organization, $project, $domain, string $contentTy * * @param string $organization Organization identifier (required) * @param string $project Project identifier (required) - * @param string $domain Domain identifier (required) + * @param string $domain Domain id (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['domainsRenew'] to see the possible values for this operation * * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format @@ -1507,7 +1507,7 @@ public function domainsRenewWithHttpInfo($organization, $project, $domain, strin * * @param string $organization Organization identifier (required) * @param string $project Project identifier (required) - * @param string $domain Domain identifier (required) + * @param string $domain Domain id (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['domainsRenew'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -1530,7 +1530,7 @@ function ($response) { * * @param string $organization Organization identifier (required) * @param string $project Project identifier (required) - * @param string $domain Domain identifier (required) + * @param string $domain Domain id (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['domainsRenew'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -1569,7 +1569,7 @@ function ($exception) { * * @param string $organization Organization identifier (required) * @param string $project Project identifier (required) - * @param string $domain Domain identifier (required) + * @param string $domain Domain id (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['domainsRenew'] to see the possible values for this operation * * @throws \InvalidArgumentException diff --git a/src/Api/EnvironmentsApi.php b/src/Api/EnvironmentsApi.php index b9d73ab..889de3b 100644 --- a/src/Api/EnvironmentsApi.php +++ b/src/Api/EnvironmentsApi.php @@ -14,7 +14,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Api/HeadersApi.php b/src/Api/HeadersApi.php index 2ac7c15..2848346 100644 --- a/src/Api/HeadersApi.php +++ b/src/Api/HeadersApi.php @@ -14,7 +14,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ @@ -136,8 +136,8 @@ public function getConfig() * * Create or update custom headers * - * @param string $organization organization (required) - * @param string $project project (required) + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) * @param \QuantClient\Model\V2CustomHeaderRequest $v2_custom_header_request v2_custom_header_request (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['headersCreate'] to see the possible values for this operation * @@ -156,8 +156,8 @@ public function headersCreate($organization, $project, $v2_custom_header_request * * Create or update custom headers * - * @param string $organization (required) - * @param string $project (required) + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) * @param \QuantClient\Model\V2CustomHeaderRequest $v2_custom_header_request (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['headersCreate'] to see the possible values for this operation * @@ -271,8 +271,8 @@ public function headersCreateWithHttpInfo($organization, $project, $v2_custom_he * * Create or update custom headers * - * @param string $organization (required) - * @param string $project (required) + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) * @param \QuantClient\Model\V2CustomHeaderRequest $v2_custom_header_request (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['headersCreate'] to see the possible values for this operation * @@ -294,8 +294,8 @@ function ($response) { * * Create or update custom headers * - * @param string $organization (required) - * @param string $project (required) + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) * @param \QuantClient\Model\V2CustomHeaderRequest $v2_custom_header_request (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['headersCreate'] to see the possible values for this operation * @@ -346,8 +346,8 @@ function ($exception) { /** * Create request for operation 'headersCreate' * - * @param string $organization (required) - * @param string $project (required) + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) * @param \QuantClient\Model\V2CustomHeaderRequest $v2_custom_header_request (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['headersCreate'] to see the possible values for this operation * @@ -475,8 +475,8 @@ public function headersCreateRequest($organization, $project, $v2_custom_header_ * * Delete custom headers * - * @param string $organization organization (required) - * @param string $project project (required) + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) * @param \QuantClient\Model\V2CustomHeaderRequest $v2_custom_header_request v2_custom_header_request (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['headersDelete'] to see the possible values for this operation * @@ -494,8 +494,8 @@ public function headersDelete($organization, $project, $v2_custom_header_request * * Delete custom headers * - * @param string $organization (required) - * @param string $project (required) + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) * @param \QuantClient\Model\V2CustomHeaderRequest $v2_custom_header_request (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['headersDelete'] to see the possible values for this operation * @@ -561,8 +561,8 @@ public function headersDeleteWithHttpInfo($organization, $project, $v2_custom_he * * Delete custom headers * - * @param string $organization (required) - * @param string $project (required) + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) * @param \QuantClient\Model\V2CustomHeaderRequest $v2_custom_header_request (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['headersDelete'] to see the possible values for this operation * @@ -584,8 +584,8 @@ function ($response) { * * Delete custom headers * - * @param string $organization (required) - * @param string $project (required) + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) * @param \QuantClient\Model\V2CustomHeaderRequest $v2_custom_header_request (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['headersDelete'] to see the possible values for this operation * @@ -623,8 +623,8 @@ function ($exception) { /** * Create request for operation 'headersDelete' * - * @param string $organization (required) - * @param string $project (required) + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) * @param \QuantClient\Model\V2CustomHeaderRequest $v2_custom_header_request (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['headersDelete'] to see the possible values for this operation * @@ -752,8 +752,8 @@ public function headersDeleteRequest($organization, $project, $v2_custom_header_ * * List custom headers for a project * - * @param string $organization organization (required) - * @param string $project project (required) + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['headersList'] to see the possible values for this operation * * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format @@ -771,8 +771,8 @@ public function headersList($organization, $project, string $contentType = self: * * List custom headers for a project * - * @param string $organization (required) - * @param string $project (required) + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['headersList'] to see the possible values for this operation * * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format @@ -885,8 +885,8 @@ public function headersListWithHttpInfo($organization, $project, string $content * * List custom headers for a project * - * @param string $organization (required) - * @param string $project (required) + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['headersList'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -907,8 +907,8 @@ function ($response) { * * List custom headers for a project * - * @param string $organization (required) - * @param string $project (required) + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['headersList'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -958,8 +958,8 @@ function ($exception) { /** * Create request for operation 'headersList' * - * @param string $organization (required) - * @param string $project (required) + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['headersList'] to see the possible values for this operation * * @throws \InvalidArgumentException diff --git a/src/Api/KVApi.php b/src/Api/KVApi.php index 962f225..e434463 100644 --- a/src/Api/KVApi.php +++ b/src/Api/KVApi.php @@ -14,7 +14,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ @@ -154,8 +154,8 @@ public function getConfig() * * Add a kv store * - * @param string $organization organization (required) - * @param string $project project (required) + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) * @param \QuantClient\Model\V2StoreRequest $v2_store_request v2_store_request (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['kVCreate'] to see the possible values for this operation * @@ -174,8 +174,8 @@ public function kVCreate($organization, $project, $v2_store_request, string $con * * Add a kv store * - * @param string $organization (required) - * @param string $project (required) + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) * @param \QuantClient\Model\V2StoreRequest $v2_store_request (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['kVCreate'] to see the possible values for this operation * @@ -289,8 +289,8 @@ public function kVCreateWithHttpInfo($organization, $project, $v2_store_request, * * Add a kv store * - * @param string $organization (required) - * @param string $project (required) + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) * @param \QuantClient\Model\V2StoreRequest $v2_store_request (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['kVCreate'] to see the possible values for this operation * @@ -312,8 +312,8 @@ function ($response) { * * Add a kv store * - * @param string $organization (required) - * @param string $project (required) + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) * @param \QuantClient\Model\V2StoreRequest $v2_store_request (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['kVCreate'] to see the possible values for this operation * @@ -364,8 +364,8 @@ function ($exception) { /** * Create request for operation 'kVCreate' * - * @param string $organization (required) - * @param string $project (required) + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) * @param \QuantClient\Model\V2StoreRequest $v2_store_request (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['kVCreate'] to see the possible values for this operation * @@ -493,8 +493,8 @@ public function kVCreateRequest($organization, $project, $v2_store_request, stri * * Delete a kv store * - * @param string $organization organization (required) - * @param string $project project (required) + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) * @param string $store_id store_id (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['kVDelete'] to see the possible values for this operation * @@ -512,8 +512,8 @@ public function kVDelete($organization, $project, $store_id, string $contentType * * Delete a kv store * - * @param string $organization (required) - * @param string $project (required) + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) * @param string $store_id (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['kVDelete'] to see the possible values for this operation * @@ -579,8 +579,8 @@ public function kVDeleteWithHttpInfo($organization, $project, $store_id, string * * Delete a kv store * - * @param string $organization (required) - * @param string $project (required) + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) * @param string $store_id (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['kVDelete'] to see the possible values for this operation * @@ -602,8 +602,8 @@ function ($response) { * * Delete a kv store * - * @param string $organization (required) - * @param string $project (required) + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) * @param string $store_id (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['kVDelete'] to see the possible values for this operation * @@ -641,8 +641,8 @@ function ($exception) { /** * Create request for operation 'kVDelete' * - * @param string $organization (required) - * @param string $project (required) + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) * @param string $store_id (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['kVDelete'] to see the possible values for this operation * @@ -771,8 +771,8 @@ public function kVDeleteRequest($organization, $project, $store_id, string $cont * * Add an item to a kv store * - * @param string $organization organization (required) - * @param string $project project (required) + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) * @param string $store_id store_id (required) * @param \QuantClient\Model\V2StoreItemRequest $v2_store_item_request v2_store_item_request (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['kVItemsCreate'] to see the possible values for this operation @@ -792,8 +792,8 @@ public function kVItemsCreate($organization, $project, $store_id, $v2_store_item * * Add an item to a kv store * - * @param string $organization (required) - * @param string $project (required) + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) * @param string $store_id (required) * @param \QuantClient\Model\V2StoreItemRequest $v2_store_item_request (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['kVItemsCreate'] to see the possible values for this operation @@ -922,8 +922,8 @@ public function kVItemsCreateWithHttpInfo($organization, $project, $store_id, $v * * Add an item to a kv store * - * @param string $organization (required) - * @param string $project (required) + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) * @param string $store_id (required) * @param \QuantClient\Model\V2StoreItemRequest $v2_store_item_request (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['kVItemsCreate'] to see the possible values for this operation @@ -946,8 +946,8 @@ function ($response) { * * Add an item to a kv store * - * @param string $organization (required) - * @param string $project (required) + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) * @param string $store_id (required) * @param \QuantClient\Model\V2StoreItemRequest $v2_store_item_request (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['kVItemsCreate'] to see the possible values for this operation @@ -999,8 +999,8 @@ function ($exception) { /** * Create request for operation 'kVItemsCreate' * - * @param string $organization (required) - * @param string $project (required) + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) * @param string $store_id (required) * @param \QuantClient\Model\V2StoreItemRequest $v2_store_item_request (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['kVItemsCreate'] to see the possible values for this operation @@ -1144,8 +1144,8 @@ public function kVItemsCreateRequest($organization, $project, $store_id, $v2_sto * * Delete an item from a kv store * - * @param string $organization organization (required) - * @param string $project project (required) + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) * @param string $store_id store_id (required) * @param string $key key (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['kVItemsDelete'] to see the possible values for this operation @@ -1165,8 +1165,8 @@ public function kVItemsDelete($organization, $project, $store_id, $key, string $ * * Delete an item from a kv store * - * @param string $organization (required) - * @param string $project (required) + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) * @param string $store_id (required) * @param string $key (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['kVItemsDelete'] to see the possible values for this operation @@ -1281,8 +1281,8 @@ public function kVItemsDeleteWithHttpInfo($organization, $project, $store_id, $k * * Delete an item from a kv store * - * @param string $organization (required) - * @param string $project (required) + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) * @param string $store_id (required) * @param string $key (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['kVItemsDelete'] to see the possible values for this operation @@ -1305,8 +1305,8 @@ function ($response) { * * Delete an item from a kv store * - * @param string $organization (required) - * @param string $project (required) + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) * @param string $store_id (required) * @param string $key (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['kVItemsDelete'] to see the possible values for this operation @@ -1358,8 +1358,8 @@ function ($exception) { /** * Create request for operation 'kVItemsDelete' * - * @param string $organization (required) - * @param string $project (required) + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) * @param string $store_id (required) * @param string $key (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['kVItemsDelete'] to see the possible values for this operation @@ -1504,8 +1504,8 @@ public function kVItemsDeleteRequest($organization, $project, $store_id, $key, s * * List items in a kv store * - * @param string $organization organization (required) - * @param string $project project (required) + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) * @param string $store_id store_id (required) * @param string|null $cursor Cursor for pagination (optional) * @param int|null $limit Number of items to return (optional, default to 10) @@ -1528,8 +1528,8 @@ public function kVItemsList($organization, $project, $store_id, $cursor = null, * * List items in a kv store * - * @param string $organization (required) - * @param string $project (required) + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) * @param string $store_id (required) * @param string|null $cursor Cursor for pagination (optional) * @param int|null $limit Number of items to return (optional, default to 10) @@ -1647,8 +1647,8 @@ public function kVItemsListWithHttpInfo($organization, $project, $store_id, $cur * * List items in a kv store * - * @param string $organization (required) - * @param string $project (required) + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) * @param string $store_id (required) * @param string|null $cursor Cursor for pagination (optional) * @param int|null $limit Number of items to return (optional, default to 10) @@ -1674,8 +1674,8 @@ function ($response) { * * List items in a kv store * - * @param string $organization (required) - * @param string $project (required) + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) * @param string $store_id (required) * @param string|null $cursor Cursor for pagination (optional) * @param int|null $limit Number of items to return (optional, default to 10) @@ -1730,8 +1730,8 @@ function ($exception) { /** * Create request for operation 'kVItemsList' * - * @param string $organization (required) - * @param string $project (required) + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) * @param string $store_id (required) * @param string|null $cursor Cursor for pagination (optional) * @param int|null $limit Number of items to return (optional, default to 10) @@ -1904,8 +1904,8 @@ public function kVItemsListRequest($organization, $project, $store_id, $cursor = * * Get an item from a kv store * - * @param string $organization organization (required) - * @param string $project project (required) + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) * @param string $store_id store_id (required) * @param string $key key (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['kVItemsShow'] to see the possible values for this operation @@ -1925,8 +1925,8 @@ public function kVItemsShow($organization, $project, $store_id, $key, string $co * * Get an item from a kv store * - * @param string $organization (required) - * @param string $project (required) + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) * @param string $store_id (required) * @param string $key (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['kVItemsShow'] to see the possible values for this operation @@ -2041,8 +2041,8 @@ public function kVItemsShowWithHttpInfo($organization, $project, $store_id, $key * * Get an item from a kv store * - * @param string $organization (required) - * @param string $project (required) + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) * @param string $store_id (required) * @param string $key (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['kVItemsShow'] to see the possible values for this operation @@ -2065,8 +2065,8 @@ function ($response) { * * Get an item from a kv store * - * @param string $organization (required) - * @param string $project (required) + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) * @param string $store_id (required) * @param string $key (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['kVItemsShow'] to see the possible values for this operation @@ -2118,8 +2118,8 @@ function ($exception) { /** * Create request for operation 'kVItemsShow' * - * @param string $organization (required) - * @param string $project (required) + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) * @param string $store_id (required) * @param string $key (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['kVItemsShow'] to see the possible values for this operation @@ -2264,8 +2264,8 @@ public function kVItemsShowRequest($organization, $project, $store_id, $key, str * * Update an item in a kv store * - * @param string $organization organization (required) - * @param string $project project (required) + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) * @param string $store_id store_id (required) * @param string $key key (required) * @param \QuantClient\Model\V2StoreItemUpdateRequest $v2_store_item_update_request v2_store_item_update_request (required) @@ -2286,8 +2286,8 @@ public function kVItemsUpdate($organization, $project, $store_id, $key, $v2_stor * * Update an item in a kv store * - * @param string $organization (required) - * @param string $project (required) + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) * @param string $store_id (required) * @param string $key (required) * @param \QuantClient\Model\V2StoreItemUpdateRequest $v2_store_item_update_request (required) @@ -2417,8 +2417,8 @@ public function kVItemsUpdateWithHttpInfo($organization, $project, $store_id, $k * * Update an item in a kv store * - * @param string $organization (required) - * @param string $project (required) + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) * @param string $store_id (required) * @param string $key (required) * @param \QuantClient\Model\V2StoreItemUpdateRequest $v2_store_item_update_request (required) @@ -2442,8 +2442,8 @@ function ($response) { * * Update an item in a kv store * - * @param string $organization (required) - * @param string $project (required) + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) * @param string $store_id (required) * @param string $key (required) * @param \QuantClient\Model\V2StoreItemUpdateRequest $v2_store_item_update_request (required) @@ -2496,8 +2496,8 @@ function ($exception) { /** * Create request for operation 'kVItemsUpdate' * - * @param string $organization (required) - * @param string $project (required) + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) * @param string $store_id (required) * @param string $key (required) * @param \QuantClient\Model\V2StoreItemUpdateRequest $v2_store_item_update_request (required) @@ -2657,8 +2657,8 @@ public function kVItemsUpdateRequest($organization, $project, $store_id, $key, $ * * List key-value stores * - * @param string $organization organization (required) - * @param string $project project (required) + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['kVList'] to see the possible values for this operation * * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format @@ -2676,8 +2676,8 @@ public function kVList($organization, $project, string $contentType = self::cont * * List key-value stores * - * @param string $organization (required) - * @param string $project (required) + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['kVList'] to see the possible values for this operation * * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format @@ -2790,8 +2790,8 @@ public function kVListWithHttpInfo($organization, $project, string $contentType * * List key-value stores * - * @param string $organization (required) - * @param string $project (required) + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['kVList'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -2812,8 +2812,8 @@ function ($response) { * * List key-value stores * - * @param string $organization (required) - * @param string $project (required) + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['kVList'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -2863,8 +2863,8 @@ function ($exception) { /** * Create request for operation 'kVList' * - * @param string $organization (required) - * @param string $project (required) + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['kVList'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -2977,8 +2977,8 @@ public function kVListRequest($organization, $project, string $contentType = sel * * Get a kv store * - * @param string $organization organization (required) - * @param string $project project (required) + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) * @param string $store_id store_id (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['kVShow'] to see the possible values for this operation * @@ -2997,8 +2997,8 @@ public function kVShow($organization, $project, $store_id, string $contentType = * * Get a kv store * - * @param string $organization (required) - * @param string $project (required) + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) * @param string $store_id (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['kVShow'] to see the possible values for this operation * @@ -3112,8 +3112,8 @@ public function kVShowWithHttpInfo($organization, $project, $store_id, string $c * * Get a kv store * - * @param string $organization (required) - * @param string $project (required) + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) * @param string $store_id (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['kVShow'] to see the possible values for this operation * @@ -3135,8 +3135,8 @@ function ($response) { * * Get a kv store * - * @param string $organization (required) - * @param string $project (required) + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) * @param string $store_id (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['kVShow'] to see the possible values for this operation * @@ -3187,8 +3187,8 @@ function ($exception) { /** * Create request for operation 'kVShow' * - * @param string $organization (required) - * @param string $project (required) + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) * @param string $store_id (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['kVShow'] to see the possible values for this operation * diff --git a/src/Api/OrchestrationApi.php b/src/Api/OrchestrationApi.php new file mode 100644 index 0000000..c6803d6 --- /dev/null +++ b/src/Api/OrchestrationApi.php @@ -0,0 +1,498 @@ + [ + 'application/json', + ], + ]; + + /** + * @param ClientInterface $client + * @param Configuration $config + * @param HeaderSelector $selector + * @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec + */ + public function __construct( + ?ClientInterface $client = null, + ?Configuration $config = null, + ?HeaderSelector $selector = null, + int $hostIndex = 0 + ) { + $this->client = $client ?: new Client(); + $this->config = $config ?: Configuration::getDefaultConfiguration(); + $this->headerSelector = $selector ?: new HeaderSelector(); + $this->hostIndex = $hostIndex; + } + + /** + * Set the host index + * + * @param int $hostIndex Host index (required) + */ + public function setHostIndex($hostIndex): void + { + $this->hostIndex = $hostIndex; + } + + /** + * Get the host index + * + * @return int Host index + */ + public function getHostIndex() + { + return $this->hostIndex; + } + + /** + * @return Configuration + */ + public function getConfig() + { + return $this->config; + } + + /** + * Operation getAIOrchestrationStatus + * + * Get Orchestration Status + * + * @param string $organisation The organisation ID (required) + * @param string $orchestration_id Orchestration identifier for aggregated async tool executions (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAIOrchestrationStatus'] to see the possible values for this operation + * + * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return \QuantClient\Model\GetAIOrchestrationStatus200Response|\QuantClient\Model\GetAIOrchestrationStatus404Response + */ + public function getAIOrchestrationStatus($organisation, $orchestration_id, string $contentType = self::contentTypes['getAIOrchestrationStatus'][0]) + { + list($response) = $this->getAIOrchestrationStatusWithHttpInfo($organisation, $orchestration_id, $contentType); + return $response; + } + + /** + * Operation getAIOrchestrationStatusWithHttpInfo + * + * Get Orchestration Status + * + * @param string $organisation The organisation ID (required) + * @param string $orchestration_id Orchestration identifier for aggregated async tool executions (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAIOrchestrationStatus'] to see the possible values for this operation + * + * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return array of \QuantClient\Model\GetAIOrchestrationStatus200Response|\QuantClient\Model\GetAIOrchestrationStatus404Response, HTTP status code, HTTP response headers (array of strings) + */ + public function getAIOrchestrationStatusWithHttpInfo($organisation, $orchestration_id, string $contentType = self::contentTypes['getAIOrchestrationStatus'][0]) + { + $request = $this->getAIOrchestrationStatusRequest($organisation, $orchestration_id, $contentType); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? (string) $e->getResponse()->getBody() : null + ); + } catch (ConnectException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + null, + null + ); + } + + $statusCode = $response->getStatusCode(); + + + switch($statusCode) { + case 200: + return $this->handleResponseWithDataType( + '\QuantClient\Model\GetAIOrchestrationStatus200Response', + $request, + $response, + ); + case 404: + return $this->handleResponseWithDataType( + '\QuantClient\Model\GetAIOrchestrationStatus404Response', + $request, + $response, + ); + } + + + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + + return $this->handleResponseWithDataType( + '\QuantClient\Model\GetAIOrchestrationStatus200Response', + $request, + $response, + ); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\QuantClient\Model\GetAIOrchestrationStatus200Response', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + throw $e; + case 404: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\QuantClient\Model\GetAIOrchestrationStatus404Response', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + throw $e; + } + + + throw $e; + } + } + + /** + * Operation getAIOrchestrationStatusAsync + * + * Get Orchestration Status + * + * @param string $organisation The organisation ID (required) + * @param string $orchestration_id Orchestration identifier for aggregated async tool executions (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAIOrchestrationStatus'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getAIOrchestrationStatusAsync($organisation, $orchestration_id, string $contentType = self::contentTypes['getAIOrchestrationStatus'][0]) + { + return $this->getAIOrchestrationStatusAsyncWithHttpInfo($organisation, $orchestration_id, $contentType) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getAIOrchestrationStatusAsyncWithHttpInfo + * + * Get Orchestration Status + * + * @param string $organisation The organisation ID (required) + * @param string $orchestration_id Orchestration identifier for aggregated async tool executions (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAIOrchestrationStatus'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getAIOrchestrationStatusAsyncWithHttpInfo($organisation, $orchestration_id, string $contentType = self::contentTypes['getAIOrchestrationStatus'][0]) + { + $returnType = '\QuantClient\Model\GetAIOrchestrationStatus200Response'; + $request = $this->getAIOrchestrationStatusRequest($organisation, $orchestration_id, $contentType); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getAIOrchestrationStatus' + * + * @param string $organisation The organisation ID (required) + * @param string $orchestration_id Orchestration identifier for aggregated async tool executions (required) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAIOrchestrationStatus'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function getAIOrchestrationStatusRequest($organisation, $orchestration_id, string $contentType = self::contentTypes['getAIOrchestrationStatus'][0]) + { + + // verify the required parameter 'organisation' is set + if ($organisation === null || (is_array($organisation) && count($organisation) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $organisation when calling getAIOrchestrationStatus' + ); + } + + // verify the required parameter 'orchestration_id' is set + if ($orchestration_id === null || (is_array($orchestration_id) && count($orchestration_id) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $orchestration_id when calling getAIOrchestrationStatus' + ); + } + if (!preg_match("/^orch_[a-f0-9]{32}$/", $orchestration_id)) { + throw new \InvalidArgumentException("invalid value for \"orchestration_id\" when calling OrchestrationApi.getAIOrchestrationStatus, must conform to the pattern /^orch_[a-f0-9]{32}$/."); + } + + + $resourcePath = '/api/v3/organizations/{organisation}/ai/tools/orchestrations/{orchestrationId}'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + + + // path params + if ($organisation !== null) { + $resourcePath = str_replace( + '{' . 'organisation' . '}', + ObjectSerializer::toPathValue($organisation), + $resourcePath + ); + } + // path params + if ($orchestration_id !== null) { + $resourcePath = str_replace( + '{' . 'orchestrationId' . '}', + ObjectSerializer::toPathValue($orchestration_id), + $resourcePath + ); + } + + + $headers = $this->headerSelector->selectHeaders( + ['application/json', ], + $contentType, + $multipart + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; + foreach ($formParamValueItems as $formParamValueItem) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValueItem + ]; + } + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { + # if Content-Type contains "application/json", json_encode the form parameters + $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); + } else { + // for HTTP post (form) + $httpBody = ObjectSerializer::buildQuery($formParams); + } + } + + // this endpoint requires Bearer (JWT) authentication (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $operationHost = $this->config->getHost(); + $query = ObjectSerializer::buildQuery($queryParams); + return new Request( + 'GET', + $operationHost . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Create http client option + * + * @throws \RuntimeException on file opening failure + * @return array of http client options + */ + protected function createHttpClientOption() + { + $options = []; + if ($this->config->getDebug()) { + $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); + if (!$options[RequestOptions::DEBUG]) { + throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); + } + } + + return $options; + } + + private function handleResponseWithDataType( + string $dataType, + RequestInterface $request, + ResponseInterface $response + ): array { + if ($dataType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($dataType !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $response->getStatusCode(), + $response->getHeaders(), + $content + ); + } + } + } + + return [ + ObjectSerializer::deserialize($content, $dataType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + } + + private function responseWithinRangeCode( + string $rangeCode, + int $statusCode + ): bool { + $left = (int) ($rangeCode[0].'00'); + $right = (int) ($rangeCode[0].'99'); + + return $statusCode >= $left && $statusCode <= $right; + } +} diff --git a/src/Api/OrganizationsApi.php b/src/Api/OrganizationsApi.php index f9eea29..9a4b4dd 100644 --- a/src/Api/OrganizationsApi.php +++ b/src/Api/OrganizationsApi.php @@ -14,7 +14,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ @@ -413,12 +413,12 @@ public function organizationsListRequest(string $contentType = self::contentType * * Get details of a single organization * - * @param string $organization organization (required) + * @param string $organization Organization identifier (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['organizationsRead'] to see the possible values for this operation * * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return \QuantClient\Model\V2Organization|\QuantClient\Model\V2Error|\QuantClient\Model\V2Error + * @return \QuantClient\Model\V2Organization|\QuantClient\Model\V2Error|\QuantClient\Model\V2Error|\QuantClient\Model\V2Error */ public function organizationsRead($organization, string $contentType = self::contentTypes['organizationsRead'][0]) { @@ -431,12 +431,12 @@ public function organizationsRead($organization, string $contentType = self::con * * Get details of a single organization * - * @param string $organization (required) + * @param string $organization Organization identifier (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['organizationsRead'] to see the possible values for this operation * * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return array of \QuantClient\Model\V2Organization|\QuantClient\Model\V2Error|\QuantClient\Model\V2Error, HTTP status code, HTTP response headers (array of strings) + * @return array of \QuantClient\Model\V2Organization|\QuantClient\Model\V2Error|\QuantClient\Model\V2Error|\QuantClient\Model\V2Error, HTTP status code, HTTP response headers (array of strings) */ public function organizationsReadWithHttpInfo($organization, string $contentType = self::contentTypes['organizationsRead'][0]) { @@ -472,6 +472,12 @@ public function organizationsReadWithHttpInfo($organization, string $contentType $request, $response, ); + case 404: + return $this->handleResponseWithDataType( + '\QuantClient\Model\V2Error', + $request, + $response, + ); case 400: return $this->handleResponseWithDataType( '\QuantClient\Model\V2Error', @@ -516,6 +522,14 @@ public function organizationsReadWithHttpInfo($organization, string $contentType ); $e->setResponseObject($data); throw $e; + case 404: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\QuantClient\Model\V2Error', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + throw $e; case 400: $data = ObjectSerializer::deserialize( $e->getResponseBody(), @@ -544,7 +558,7 @@ public function organizationsReadWithHttpInfo($organization, string $contentType * * Get details of a single organization * - * @param string $organization (required) + * @param string $organization Organization identifier (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['organizationsRead'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -565,7 +579,7 @@ function ($response) { * * Get details of a single organization * - * @param string $organization (required) + * @param string $organization Organization identifier (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['organizationsRead'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -615,7 +629,7 @@ function ($exception) { /** * Create request for operation 'organizationsRead' * - * @param string $organization (required) + * @param string $organization Organization identifier (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['organizationsRead'] to see the possible values for this operation * * @throws \InvalidArgumentException diff --git a/src/Api/ProjectsApi.php b/src/Api/ProjectsApi.php index eab52ec..a15eeb3 100644 --- a/src/Api/ProjectsApi.php +++ b/src/Api/ProjectsApi.php @@ -14,7 +14,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ @@ -142,7 +142,7 @@ public function getConfig() * * Create a new project * - * @param string $organization organization (required) + * @param string $organization Organization identifier (required) * @param \QuantClient\Model\V2ProjectRequest $v2_project_request v2_project_request (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['projectsCreate'] to see the possible values for this operation * @@ -161,7 +161,7 @@ public function projectsCreate($organization, $v2_project_request, string $conte * * Create a new project * - * @param string $organization (required) + * @param string $organization Organization identifier (required) * @param \QuantClient\Model\V2ProjectRequest $v2_project_request (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['projectsCreate'] to see the possible values for this operation * @@ -275,7 +275,7 @@ public function projectsCreateWithHttpInfo($organization, $v2_project_request, s * * Create a new project * - * @param string $organization (required) + * @param string $organization Organization identifier (required) * @param \QuantClient\Model\V2ProjectRequest $v2_project_request (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['projectsCreate'] to see the possible values for this operation * @@ -297,7 +297,7 @@ function ($response) { * * Create a new project * - * @param string $organization (required) + * @param string $organization Organization identifier (required) * @param \QuantClient\Model\V2ProjectRequest $v2_project_request (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['projectsCreate'] to see the possible values for this operation * @@ -348,7 +348,7 @@ function ($exception) { /** * Create request for operation 'projectsCreate' * - * @param string $organization (required) + * @param string $organization Organization identifier (required) * @param \QuantClient\Model\V2ProjectRequest $v2_project_request (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['projectsCreate'] to see the possible values for this operation * @@ -461,8 +461,8 @@ public function projectsCreateRequest($organization, $v2_project_request, string * * Delete a project * - * @param string $organization organization (required) - * @param string $project project (required) + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['projectsDelete'] to see the possible values for this operation * * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format @@ -479,8 +479,8 @@ public function projectsDelete($organization, $project, string $contentType = se * * Delete a project * - * @param string $organization (required) - * @param string $project (required) + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['projectsDelete'] to see the possible values for this operation * * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format @@ -545,8 +545,8 @@ public function projectsDeleteWithHttpInfo($organization, $project, string $cont * * Delete a project * - * @param string $organization (required) - * @param string $project (required) + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['projectsDelete'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -567,8 +567,8 @@ function ($response) { * * Delete a project * - * @param string $organization (required) - * @param string $project (required) + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['projectsDelete'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -605,8 +605,8 @@ function ($exception) { /** * Create request for operation 'projectsDelete' * - * @param string $organization (required) - * @param string $project (required) + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['projectsDelete'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -719,7 +719,7 @@ public function projectsDeleteRequest($organization, $project, string $contentTy * * Retrieve all projects for an organization * - * @param string $organization organization (required) + * @param string $organization Organization identifier (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['projectsList'] to see the possible values for this operation * * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format @@ -737,7 +737,7 @@ public function projectsList($organization, string $contentType = self::contentT * * Retrieve all projects for an organization * - * @param string $organization (required) + * @param string $organization Organization identifier (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['projectsList'] to see the possible values for this operation * * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format @@ -850,7 +850,7 @@ public function projectsListWithHttpInfo($organization, string $contentType = se * * Retrieve all projects for an organization * - * @param string $organization (required) + * @param string $organization Organization identifier (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['projectsList'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -871,7 +871,7 @@ function ($response) { * * Retrieve all projects for an organization * - * @param string $organization (required) + * @param string $organization Organization identifier (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['projectsList'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -921,7 +921,7 @@ function ($exception) { /** * Create request for operation 'projectsList' * - * @param string $organization (required) + * @param string $organization Organization identifier (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['projectsList'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -1019,8 +1019,8 @@ public function projectsListRequest($organization, string $contentType = self::c * * Get details of a single project * - * @param string $organization organization (required) - * @param string $project project (required) + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) * @param bool $with_token with_token (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['projectsRead'] to see the possible values for this operation * @@ -1039,8 +1039,8 @@ public function projectsRead($organization, $project, $with_token, string $conte * * Get details of a single project * - * @param string $organization (required) - * @param string $project (required) + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) * @param bool $with_token (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['projectsRead'] to see the possible values for this operation * @@ -1154,8 +1154,8 @@ public function projectsReadWithHttpInfo($organization, $project, $with_token, s * * Get details of a single project * - * @param string $organization (required) - * @param string $project (required) + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) * @param bool $with_token (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['projectsRead'] to see the possible values for this operation * @@ -1177,8 +1177,8 @@ function ($response) { * * Get details of a single project * - * @param string $organization (required) - * @param string $project (required) + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) * @param bool $with_token (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['projectsRead'] to see the possible values for this operation * @@ -1229,8 +1229,8 @@ function ($exception) { /** * Create request for operation 'projectsRead' * - * @param string $organization (required) - * @param string $project (required) + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) * @param bool $with_token (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['projectsRead'] to see the possible values for this operation * @@ -1360,8 +1360,8 @@ public function projectsReadRequest($organization, $project, $with_token, string * * Update a project * - * @param string $organization organization (required) - * @param string $project project (required) + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) * @param \QuantClient\Model\V2ProjectRequest $v2_project_request v2_project_request (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['projectsUpdate'] to see the possible values for this operation * @@ -1380,8 +1380,8 @@ public function projectsUpdate($organization, $project, $v2_project_request, str * * Update a project * - * @param string $organization (required) - * @param string $project (required) + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) * @param \QuantClient\Model\V2ProjectRequest $v2_project_request (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['projectsUpdate'] to see the possible values for this operation * @@ -1495,8 +1495,8 @@ public function projectsUpdateWithHttpInfo($organization, $project, $v2_project_ * * Update a project * - * @param string $organization (required) - * @param string $project (required) + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) * @param \QuantClient\Model\V2ProjectRequest $v2_project_request (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['projectsUpdate'] to see the possible values for this operation * @@ -1518,8 +1518,8 @@ function ($response) { * * Update a project * - * @param string $organization (required) - * @param string $project (required) + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) * @param \QuantClient\Model\V2ProjectRequest $v2_project_request (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['projectsUpdate'] to see the possible values for this operation * @@ -1570,8 +1570,8 @@ function ($exception) { /** * Create request for operation 'projectsUpdate' * - * @param string $organization (required) - * @param string $project (required) + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) * @param \QuantClient\Model\V2ProjectRequest $v2_project_request (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['projectsUpdate'] to see the possible values for this operation * diff --git a/src/Api/PurgeApi.php b/src/Api/PurgeApi.php index 73ddaee..52fdfad 100644 --- a/src/Api/PurgeApi.php +++ b/src/Api/PurgeApi.php @@ -14,7 +14,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ @@ -130,8 +130,8 @@ public function getConfig() * * Purge cache via URL or cache keys * - * @param string $organization organization (required) - * @param string $project project (required) + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) * @param \QuantClient\Model\PurgeCreateRequest $purge_create_request purge_create_request (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['purgeCreate'] to see the possible values for this operation * @@ -150,8 +150,8 @@ public function purgeCreate($organization, $project, $purge_create_request, stri * * Purge cache via URL or cache keys * - * @param string $organization (required) - * @param string $project (required) + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) * @param \QuantClient\Model\PurgeCreateRequest $purge_create_request (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['purgeCreate'] to see the possible values for this operation * @@ -265,8 +265,8 @@ public function purgeCreateWithHttpInfo($organization, $project, $purge_create_r * * Purge cache via URL or cache keys * - * @param string $organization (required) - * @param string $project (required) + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) * @param \QuantClient\Model\PurgeCreateRequest $purge_create_request (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['purgeCreate'] to see the possible values for this operation * @@ -288,8 +288,8 @@ function ($response) { * * Purge cache via URL or cache keys * - * @param string $organization (required) - * @param string $project (required) + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) * @param \QuantClient\Model\PurgeCreateRequest $purge_create_request (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['purgeCreate'] to see the possible values for this operation * @@ -340,8 +340,8 @@ function ($exception) { /** * Create request for operation 'purgeCreate' * - * @param string $organization (required) - * @param string $project (required) + * @param string $organization Organization identifier (required) + * @param string $project Project identifier (required) * @param \QuantClient\Model\PurgeCreateRequest $purge_create_request (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['purgeCreate'] to see the possible values for this operation * diff --git a/src/Api/RulesApi.php b/src/Api/RulesApi.php index 926f83c..f9bcda6 100644 --- a/src/Api/RulesApi.php +++ b/src/Api/RulesApi.php @@ -14,7 +14,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Api/SSHAccessApi.php b/src/Api/SSHAccessApi.php index 17c8c4f..8d72b4f 100644 --- a/src/Api/SSHAccessApi.php +++ b/src/Api/SSHAccessApi.php @@ -14,7 +14,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ @@ -130,9 +130,9 @@ public function getConfig() * * Get SSH access credentials for an environment * - * @param string $organisation The organisation machine name (required) - * @param string $application The application name (required) - * @param string $environment The environment name (required) + * @param string $organisation The organisation ID (required) + * @param string $application The application ID (required) + * @param string $environment The environment ID (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getSshAccessCredentials'] to see the possible values for this operation * * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format @@ -150,9 +150,9 @@ public function getSshAccessCredentials($organisation, $application, $environmen * * Get SSH access credentials for an environment * - * @param string $organisation The organisation machine name (required) - * @param string $application The application name (required) - * @param string $environment The environment name (required) + * @param string $organisation The organisation ID (required) + * @param string $application The application ID (required) + * @param string $environment The environment ID (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getSshAccessCredentials'] to see the possible values for this operation * * @throws \QuantClient\ApiException on non-2xx response or if the response body is not in the expected format @@ -237,9 +237,9 @@ public function getSshAccessCredentialsWithHttpInfo($organisation, $application, * * Get SSH access credentials for an environment * - * @param string $organisation The organisation machine name (required) - * @param string $application The application name (required) - * @param string $environment The environment name (required) + * @param string $organisation The organisation ID (required) + * @param string $application The application ID (required) + * @param string $environment The environment ID (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getSshAccessCredentials'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -260,9 +260,9 @@ function ($response) { * * Get SSH access credentials for an environment * - * @param string $organisation The organisation machine name (required) - * @param string $application The application name (required) - * @param string $environment The environment name (required) + * @param string $organisation The organisation ID (required) + * @param string $application The application ID (required) + * @param string $environment The environment ID (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getSshAccessCredentials'] to see the possible values for this operation * * @throws \InvalidArgumentException @@ -312,9 +312,9 @@ function ($exception) { /** * Create request for operation 'getSshAccessCredentials' * - * @param string $organisation The organisation machine name (required) - * @param string $application The application name (required) - * @param string $environment The environment name (required) + * @param string $organisation The organisation ID (required) + * @param string $application The application ID (required) + * @param string $environment The environment ID (required) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getSshAccessCredentials'] to see the possible values for this operation * * @throws \InvalidArgumentException diff --git a/src/Api/ScalingPolicyApi.php b/src/Api/ScalingPolicyApi.php index fa9dc49..da67e4e 100644 --- a/src/Api/ScalingPolicyApi.php +++ b/src/Api/ScalingPolicyApi.php @@ -14,7 +14,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Api/VariablesApi.php b/src/Api/VariablesApi.php index ec56c8c..8d97964 100644 --- a/src/Api/VariablesApi.php +++ b/src/Api/VariablesApi.php @@ -14,7 +14,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Api/VolumesApi.php b/src/Api/VolumesApi.php index 3a13068..10829b4 100644 --- a/src/Api/VolumesApi.php +++ b/src/Api/VolumesApi.php @@ -14,7 +14,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/ApiException.php b/src/ApiException.php index 97922dd..19281b8 100644 --- a/src/ApiException.php +++ b/src/ApiException.php @@ -14,7 +14,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Configuration.php b/src/Configuration.php index afbb6a4..595f702 100644 --- a/src/Configuration.php +++ b/src/Configuration.php @@ -14,7 +14,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ @@ -100,7 +100,7 @@ class Configuration * * @var string */ - protected $userAgent = 'OpenAPI-Generator/4.8.0/PHP'; + protected $userAgent = 'OpenAPI-Generator/4.9.0/PHP'; /** * Debug switch (default set to false) @@ -432,8 +432,8 @@ public static function toDebugReport() $report = 'PHP SDK (QuantClient) Debug Report:' . PHP_EOL; $report .= ' OS: ' . php_uname() . PHP_EOL; $report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL; - $report .= ' The version of the OpenAPI document: 4.8.0' . PHP_EOL; - $report .= ' SDK Package Version: 4.8.0' . PHP_EOL; + $report .= ' The version of the OpenAPI document: 4.9.0' . PHP_EOL; + $report .= ' SDK Package Version: 4.9.0' . PHP_EOL; $report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL; return $report; diff --git a/src/FormDataProcessor.php b/src/FormDataProcessor.php index 73f5f4d..0c3babb 100644 --- a/src/FormDataProcessor.php +++ b/src/FormDataProcessor.php @@ -14,7 +14,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/HeaderSelector.php b/src/HeaderSelector.php index 0d66f6c..42c49c9 100644 --- a/src/HeaderSelector.php +++ b/src/HeaderSelector.php @@ -14,7 +14,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/Application.php b/src/Model/Application.php index 932c2e2..5444a5b 100644 --- a/src/Model/Application.php +++ b/src/Model/Application.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ApplicationDatabase.php b/src/Model/ApplicationDatabase.php index 5ff3333..84ab609 100644 --- a/src/Model/ApplicationDatabase.php +++ b/src/Model/ApplicationDatabase.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ApplicationDeploymentInformationInner.php b/src/Model/ApplicationDeploymentInformationInner.php index d919018..b4947a4 100644 --- a/src/Model/ApplicationDeploymentInformationInner.php +++ b/src/Model/ApplicationDeploymentInformationInner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ApplicationEnvironmentsInner.php b/src/Model/ApplicationEnvironmentsInner.php index 517c665..793a69e 100644 --- a/src/Model/ApplicationEnvironmentsInner.php +++ b/src/Model/ApplicationEnvironmentsInner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ApplicationFilesystem.php b/src/Model/ApplicationFilesystem.php index 8964b20..cc71ee8 100644 --- a/src/Model/ApplicationFilesystem.php +++ b/src/Model/ApplicationFilesystem.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ApplicationImageReference.php b/src/Model/ApplicationImageReference.php index c7d18b1..ed7a049 100644 --- a/src/Model/ApplicationImageReference.php +++ b/src/Model/ApplicationImageReference.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/BulkSetEnvironmentVariablesRequest.php b/src/Model/BulkSetEnvironmentVariablesRequest.php index fb66f1d..b24109a 100644 --- a/src/Model/BulkSetEnvironmentVariablesRequest.php +++ b/src/Model/BulkSetEnvironmentVariablesRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/BulkSetEnvironmentVariablesRequestEnvironmentInner.php b/src/Model/BulkSetEnvironmentVariablesRequestEnvironmentInner.php index 90d2a4c..a64186c 100644 --- a/src/Model/BulkSetEnvironmentVariablesRequestEnvironmentInner.php +++ b/src/Model/BulkSetEnvironmentVariablesRequestEnvironmentInner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ChatInference200Response.php b/src/Model/ChatInference200Response.php index 3706b17..9b022dc 100644 --- a/src/Model/ChatInference200Response.php +++ b/src/Model/ChatInference200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ChatInference200ResponseResponse.php b/src/Model/ChatInference200ResponseResponse.php index 524c843..e9720e6 100644 --- a/src/Model/ChatInference200ResponseResponse.php +++ b/src/Model/ChatInference200ResponseResponse.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ChatInference200ResponseResponseToolUse.php b/src/Model/ChatInference200ResponseResponseToolUse.php index 1f40752..077137d 100644 --- a/src/Model/ChatInference200ResponseResponseToolUse.php +++ b/src/Model/ChatInference200ResponseResponseToolUse.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ChatInference200ResponseResponseToolUseOneOf.php b/src/Model/ChatInference200ResponseResponseToolUseOneOf.php index e7285b2..57b74c2 100644 --- a/src/Model/ChatInference200ResponseResponseToolUseOneOf.php +++ b/src/Model/ChatInference200ResponseResponseToolUseOneOf.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ChatInference200ResponseResponseToolUseOneOf1Inner.php b/src/Model/ChatInference200ResponseResponseToolUseOneOf1Inner.php index 0a0897a..6a500b0 100644 --- a/src/Model/ChatInference200ResponseResponseToolUseOneOf1Inner.php +++ b/src/Model/ChatInference200ResponseResponseToolUseOneOf1Inner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ChatInference200ResponseResponseToolUseOneOfResult.php b/src/Model/ChatInference200ResponseResponseToolUseOneOfResult.php index 009d1bd..b5c993e 100644 --- a/src/Model/ChatInference200ResponseResponseToolUseOneOfResult.php +++ b/src/Model/ChatInference200ResponseResponseToolUseOneOfResult.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ChatInference200ResponseUsage.php b/src/Model/ChatInference200ResponseUsage.php index dcf0b75..af4f1d8 100644 --- a/src/Model/ChatInference200ResponseUsage.php +++ b/src/Model/ChatInference200ResponseUsage.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ChatInference202Response.php b/src/Model/ChatInference202Response.php new file mode 100644 index 0000000..5733524 --- /dev/null +++ b/src/Model/ChatInference202Response.php @@ -0,0 +1,586 @@ + + */ +class ChatInference202Response implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'chatInference_202_response'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'request_id' => 'string', + 'session_id' => 'string', + 'status' => 'string', + 'message' => 'string', + 'poll_url' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'request_id' => null, + 'session_id' => null, + 'status' => null, + 'message' => null, + 'poll_url' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'request_id' => false, + 'session_id' => false, + 'status' => false, + 'message' => false, + 'poll_url' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected array $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'request_id' => 'requestId', + 'session_id' => 'sessionId', + 'status' => 'status', + 'message' => 'message', + 'poll_url' => 'pollUrl' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'request_id' => 'setRequestId', + 'session_id' => 'setSessionId', + 'status' => 'setStatus', + 'message' => 'setMessage', + 'poll_url' => 'setPollUrl' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'request_id' => 'getRequestId', + 'session_id' => 'getSessionId', + 'status' => 'getStatus', + 'message' => 'getMessage', + 'poll_url' => 'getPollUrl' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + public const STATUS_QUEUED = 'queued'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getStatusAllowableValues() + { + return [ + self::STATUS_QUEUED, + ]; + } + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[]|null $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('request_id', $data ?? [], null); + $this->setIfExists('session_id', $data ?? [], null); + $this->setIfExists('status', $data ?? [], null); + $this->setIfExists('message', $data ?? [], null); + $this->setIfExists('poll_url', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['request_id'] === null) { + $invalidProperties[] = "'request_id' can't be null"; + } + if ($this->container['status'] === null) { + $invalidProperties[] = "'status' can't be null"; + } + $allowedValues = $this->getStatusAllowableValues(); + if (!is_null($this->container['status']) && !in_array($this->container['status'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'status', must be one of '%s'", + $this->container['status'], + implode("', '", $allowedValues) + ); + } + + if ($this->container['poll_url'] === null) { + $invalidProperties[] = "'poll_url' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets request_id + * + * @return string + */ + public function getRequestId() + { + return $this->container['request_id']; + } + + /** + * Sets request_id + * + * @param string $request_id Unique request identifier for polling + * + * @return self + */ + public function setRequestId($request_id) + { + if (is_null($request_id)) { + throw new \InvalidArgumentException('non-nullable request_id cannot be null'); + } + $this->container['request_id'] = $request_id; + + return $this; + } + + /** + * Gets session_id + * + * @return string|null + */ + public function getSessionId() + { + return $this->container['session_id']; + } + + /** + * Sets session_id + * + * @param string|null $session_id Session ID for conversation continuity + * + * @return self + */ + public function setSessionId($session_id) + { + if (is_null($session_id)) { + throw new \InvalidArgumentException('non-nullable session_id cannot be null'); + } + $this->container['session_id'] = $session_id; + + return $this; + } + + /** + * Gets status + * + * @return string + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string $status Initial execution status + * + * @return self + */ + public function setStatus($status) + { + if (is_null($status)) { + throw new \InvalidArgumentException('non-nullable status cannot be null'); + } + $allowedValues = $this->getStatusAllowableValues(); + if (!in_array($status, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'status', must be one of '%s'", + $status, + implode("', '", $allowedValues) + ) + ); + } + $this->container['status'] = $status; + + return $this; + } + + /** + * Gets message + * + * @return string|null + */ + public function getMessage() + { + return $this->container['message']; + } + + /** + * Sets message + * + * @param string|null $message Human-readable status message + * + * @return self + */ + public function setMessage($message) + { + if (is_null($message)) { + throw new \InvalidArgumentException('non-nullable message cannot be null'); + } + $this->container['message'] = $message; + + return $this; + } + + /** + * Gets poll_url + * + * @return string + */ + public function getPollUrl() + { + return $this->container['poll_url']; + } + + /** + * Sets poll_url + * + * @param string $poll_url URL to poll for execution status + * + * @return self + */ + public function setPollUrl($poll_url) + { + if (is_null($poll_url)) { + throw new \InvalidArgumentException('non-nullable poll_url cannot be null'); + } + $this->container['poll_url'] = $poll_url; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/Model/ChatInferenceRequest.php b/src/Model/ChatInferenceRequest.php index 55a5917..dd6950c 100644 --- a/src/Model/ChatInferenceRequest.php +++ b/src/Model/ChatInferenceRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ @@ -66,7 +66,9 @@ class ChatInferenceRequest implements ModelInterface, ArrayAccess, \JsonSerializ 'system_prompt' => 'string', 'stop_sequences' => 'string[]', 'response_format' => '\QuantClient\Model\ChatInferenceRequestResponseFormat', - 'tool_config' => '\QuantClient\Model\ChatInferenceRequestToolConfig' + 'tool_config' => '\QuantClient\Model\ChatInferenceRequestToolConfig', + 'session_id' => 'string', + 'async' => 'bool' ]; /** @@ -86,7 +88,9 @@ class ChatInferenceRequest implements ModelInterface, ArrayAccess, \JsonSerializ 'system_prompt' => null, 'stop_sequences' => null, 'response_format' => null, - 'tool_config' => null + 'tool_config' => null, + 'session_id' => 'uuid', + 'async' => null ]; /** @@ -104,7 +108,9 @@ class ChatInferenceRequest implements ModelInterface, ArrayAccess, \JsonSerializ 'system_prompt' => false, 'stop_sequences' => false, 'response_format' => false, - 'tool_config' => false + 'tool_config' => false, + 'session_id' => false, + 'async' => false ]; /** @@ -202,7 +208,9 @@ public function isNullableSetToNull(string $property): bool 'system_prompt' => 'systemPrompt', 'stop_sequences' => 'stopSequences', 'response_format' => 'responseFormat', - 'tool_config' => 'toolConfig' + 'tool_config' => 'toolConfig', + 'session_id' => 'sessionId', + 'async' => 'async' ]; /** @@ -220,7 +228,9 @@ public function isNullableSetToNull(string $property): bool 'system_prompt' => 'setSystemPrompt', 'stop_sequences' => 'setStopSequences', 'response_format' => 'setResponseFormat', - 'tool_config' => 'setToolConfig' + 'tool_config' => 'setToolConfig', + 'session_id' => 'setSessionId', + 'async' => 'setAsync' ]; /** @@ -238,7 +248,9 @@ public function isNullableSetToNull(string $property): bool 'system_prompt' => 'getSystemPrompt', 'stop_sequences' => 'getStopSequences', 'response_format' => 'getResponseFormat', - 'tool_config' => 'getToolConfig' + 'tool_config' => 'getToolConfig', + 'session_id' => 'getSessionId', + 'async' => 'getAsync' ]; /** @@ -301,13 +313,15 @@ public function __construct(?array $data = null) $this->setIfExists('messages', $data ?? [], null); $this->setIfExists('model_id', $data ?? [], null); $this->setIfExists('temperature', $data ?? [], 0.7); - $this->setIfExists('max_tokens', $data ?? [], 1024); + $this->setIfExists('max_tokens', $data ?? [], 4096); $this->setIfExists('top_p', $data ?? [], null); $this->setIfExists('stream', $data ?? [], null); $this->setIfExists('system_prompt', $data ?? [], null); $this->setIfExists('stop_sequences', $data ?? [], null); $this->setIfExists('response_format', $data ?? [], null); $this->setIfExists('tool_config', $data ?? [], null); + $this->setIfExists('session_id', $data ?? [], null); + $this->setIfExists('async', $data ?? [], false); } /** @@ -355,8 +369,8 @@ public function listInvalidProperties() $invalidProperties[] = "invalid value for 'temperature', must be bigger than or equal to 0."; } - if (!is_null($this->container['max_tokens']) && ($this->container['max_tokens'] > 8192)) { - $invalidProperties[] = "invalid value for 'max_tokens', must be smaller than or equal to 8192."; + if (!is_null($this->container['max_tokens']) && ($this->container['max_tokens'] > 65536)) { + $invalidProperties[] = "invalid value for 'max_tokens', must be smaller than or equal to 65536."; } if (!is_null($this->container['max_tokens']) && ($this->container['max_tokens'] < 1)) { @@ -497,7 +511,7 @@ public function getMaxTokens() /** * Sets max_tokens * - * @param int|null $max_tokens max_tokens + * @param int|null $max_tokens Max tokens. Claude 4.5 supports up to 64k. * * @return self */ @@ -507,8 +521,8 @@ public function setMaxTokens($max_tokens) throw new \InvalidArgumentException('non-nullable max_tokens cannot be null'); } - if (($max_tokens > 8192)) { - throw new \InvalidArgumentException('invalid value for $max_tokens when calling ChatInferenceRequest., must be smaller than or equal to 8192.'); + if (($max_tokens > 65536)) { + throw new \InvalidArgumentException('invalid value for $max_tokens when calling ChatInferenceRequest., must be smaller than or equal to 65536.'); } if (($max_tokens < 1)) { throw new \InvalidArgumentException('invalid value for $max_tokens when calling ChatInferenceRequest., must be bigger than or equal to 1.'); @@ -692,6 +706,60 @@ public function setToolConfig($tool_config) return $this; } + + /** + * Gets session_id + * + * @return string|null + */ + public function getSessionId() + { + return $this->container['session_id']; + } + + /** + * Sets session_id + * + * @param string|null $session_id Optional session ID for conversation continuity. Omit to use stateless mode, include to continue an existing session. + * + * @return self + */ + public function setSessionId($session_id) + { + if (is_null($session_id)) { + throw new \InvalidArgumentException('non-nullable session_id cannot be null'); + } + $this->container['session_id'] = $session_id; + + return $this; + } + + /** + * Gets async + * + * @return bool|null + */ + public function getAsync() + { + return $this->container['async']; + } + + /** + * Sets async + * + * @param bool|null $async Enable async/durable execution mode. When true, returns 202 with pollUrl instead of waiting for completion. Use for long-running inference, client-executed tools, or operations >30 seconds. + * + * @return self + */ + public function setAsync($async) + { + if (is_null($async)) { + throw new \InvalidArgumentException('non-nullable async cannot be null'); + } + $this->container['async'] = $async; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/src/Model/ChatInferenceRequestMessagesInner.php b/src/Model/ChatInferenceRequestMessagesInner.php index 1ebc276..dffc9aa 100644 --- a/src/Model/ChatInferenceRequestMessagesInner.php +++ b/src/Model/ChatInferenceRequestMessagesInner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ChatInferenceRequestMessagesInnerContent.php b/src/Model/ChatInferenceRequestMessagesInnerContent.php index 296ec66..8ffa59e 100644 --- a/src/Model/ChatInferenceRequestMessagesInnerContent.php +++ b/src/Model/ChatInferenceRequestMessagesInnerContent.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInner.php b/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInner.php index 8bce754..b92a3b2 100644 --- a/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInner.php +++ b/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf.php b/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf.php index 572ae6f..0c35868 100644 --- a/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf.php +++ b/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf1.php b/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf1.php index 8078c41..77dba46 100644 --- a/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf1.php +++ b/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf1.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf1Image.php b/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf1Image.php index 508f021..2c247e4 100644 --- a/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf1Image.php +++ b/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf1Image.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf1ImageSource.php b/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf1ImageSource.php index a072b00..3a52b69 100644 --- a/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf1ImageSource.php +++ b/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf1ImageSource.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf2.php b/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf2.php index 7a0ed2f..74c0721 100644 --- a/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf2.php +++ b/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf2.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf2Video.php b/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf2Video.php index 494266e..0aff0ec 100644 --- a/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf2Video.php +++ b/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf2Video.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf2VideoSource.php b/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf2VideoSource.php index 1859bb9..a65a907 100644 --- a/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf2VideoSource.php +++ b/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf2VideoSource.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf3.php b/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf3.php index 381fc47..9933a92 100644 --- a/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf3.php +++ b/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf3.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf3Document.php b/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf3Document.php index bb04eb2..0c2a69a 100644 --- a/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf3Document.php +++ b/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf3Document.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf3DocumentSource.php b/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf3DocumentSource.php index b8905ae..1b4ff95 100644 --- a/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf3DocumentSource.php +++ b/src/Model/ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf3DocumentSource.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ChatInferenceRequestResponseFormat.php b/src/Model/ChatInferenceRequestResponseFormat.php index 7c7be3e..0f19b23 100644 --- a/src/Model/ChatInferenceRequestResponseFormat.php +++ b/src/Model/ChatInferenceRequestResponseFormat.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ChatInferenceRequestToolConfig.php b/src/Model/ChatInferenceRequestToolConfig.php index bb0d1ad..886f305 100644 --- a/src/Model/ChatInferenceRequestToolConfig.php +++ b/src/Model/ChatInferenceRequestToolConfig.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ChatInferenceRequestToolConfigToolsInner.php b/src/Model/ChatInferenceRequestToolConfigToolsInner.php index 620824c..378c251 100644 --- a/src/Model/ChatInferenceRequestToolConfigToolsInner.php +++ b/src/Model/ChatInferenceRequestToolConfigToolsInner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ChatInferenceRequestToolConfigToolsInnerToolSpec.php b/src/Model/ChatInferenceRequestToolConfigToolsInnerToolSpec.php index 843cd85..97a14a0 100644 --- a/src/Model/ChatInferenceRequestToolConfigToolsInnerToolSpec.php +++ b/src/Model/ChatInferenceRequestToolConfigToolsInnerToolSpec.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ChatInferenceRequestToolConfigToolsInnerToolSpecInputSchema.php b/src/Model/ChatInferenceRequestToolConfigToolsInnerToolSpecInputSchema.php index f6ac9fb..c7a4255 100644 --- a/src/Model/ChatInferenceRequestToolConfigToolsInnerToolSpecInputSchema.php +++ b/src/Model/ChatInferenceRequestToolConfigToolsInnerToolSpecInputSchema.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ChatInferenceStreamRequest.php b/src/Model/ChatInferenceStreamRequest.php index 0b0058e..b5fc9da 100644 --- a/src/Model/ChatInferenceStreamRequest.php +++ b/src/Model/ChatInferenceStreamRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ @@ -65,7 +65,9 @@ class ChatInferenceStreamRequest implements ModelInterface, ArrayAccess, \JsonSe 'system_prompt' => 'string', 'stop_sequences' => 'string[]', 'response_format' => '\QuantClient\Model\ChatInferenceRequestResponseFormat', - 'tool_config' => '\QuantClient\Model\ChatInferenceRequestToolConfig' + 'tool_config' => '\QuantClient\Model\ChatInferenceRequestToolConfig', + 'session_id' => 'string', + 'async' => 'bool' ]; /** @@ -84,7 +86,9 @@ class ChatInferenceStreamRequest implements ModelInterface, ArrayAccess, \JsonSe 'system_prompt' => null, 'stop_sequences' => null, 'response_format' => null, - 'tool_config' => null + 'tool_config' => null, + 'session_id' => 'uuid', + 'async' => null ]; /** @@ -101,7 +105,9 @@ class ChatInferenceStreamRequest implements ModelInterface, ArrayAccess, \JsonSe 'system_prompt' => false, 'stop_sequences' => false, 'response_format' => false, - 'tool_config' => false + 'tool_config' => false, + 'session_id' => false, + 'async' => false ]; /** @@ -198,7 +204,9 @@ public function isNullableSetToNull(string $property): bool 'system_prompt' => 'systemPrompt', 'stop_sequences' => 'stopSequences', 'response_format' => 'responseFormat', - 'tool_config' => 'toolConfig' + 'tool_config' => 'toolConfig', + 'session_id' => 'sessionId', + 'async' => 'async' ]; /** @@ -215,7 +223,9 @@ public function isNullableSetToNull(string $property): bool 'system_prompt' => 'setSystemPrompt', 'stop_sequences' => 'setStopSequences', 'response_format' => 'setResponseFormat', - 'tool_config' => 'setToolConfig' + 'tool_config' => 'setToolConfig', + 'session_id' => 'setSessionId', + 'async' => 'setAsync' ]; /** @@ -232,7 +242,9 @@ public function isNullableSetToNull(string $property): bool 'system_prompt' => 'getSystemPrompt', 'stop_sequences' => 'getStopSequences', 'response_format' => 'getResponseFormat', - 'tool_config' => 'getToolConfig' + 'tool_config' => 'getToolConfig', + 'session_id' => 'getSessionId', + 'async' => 'getAsync' ]; /** @@ -295,12 +307,14 @@ public function __construct(?array $data = null) $this->setIfExists('messages', $data ?? [], null); $this->setIfExists('model_id', $data ?? [], null); $this->setIfExists('temperature', $data ?? [], 0.7); - $this->setIfExists('max_tokens', $data ?? [], 1024); + $this->setIfExists('max_tokens', $data ?? [], 4096); $this->setIfExists('top_p', $data ?? [], null); $this->setIfExists('system_prompt', $data ?? [], null); $this->setIfExists('stop_sequences', $data ?? [], null); $this->setIfExists('response_format', $data ?? [], null); $this->setIfExists('tool_config', $data ?? [], null); + $this->setIfExists('session_id', $data ?? [], null); + $this->setIfExists('async', $data ?? [], false); } /** @@ -348,8 +362,8 @@ public function listInvalidProperties() $invalidProperties[] = "invalid value for 'temperature', must be bigger than or equal to 0."; } - if (!is_null($this->container['max_tokens']) && ($this->container['max_tokens'] > 8192)) { - $invalidProperties[] = "invalid value for 'max_tokens', must be smaller than or equal to 8192."; + if (!is_null($this->container['max_tokens']) && ($this->container['max_tokens'] > 65536)) { + $invalidProperties[] = "invalid value for 'max_tokens', must be smaller than or equal to 65536."; } if (!is_null($this->container['max_tokens']) && ($this->container['max_tokens'] < 1)) { @@ -490,7 +504,7 @@ public function getMaxTokens() /** * Sets max_tokens * - * @param int|null $max_tokens max_tokens + * @param int|null $max_tokens Max tokens. Claude 4.5 supports up to 64k. * * @return self */ @@ -500,8 +514,8 @@ public function setMaxTokens($max_tokens) throw new \InvalidArgumentException('non-nullable max_tokens cannot be null'); } - if (($max_tokens > 8192)) { - throw new \InvalidArgumentException('invalid value for $max_tokens when calling ChatInferenceStreamRequest., must be smaller than or equal to 8192.'); + if (($max_tokens > 65536)) { + throw new \InvalidArgumentException('invalid value for $max_tokens when calling ChatInferenceStreamRequest., must be smaller than or equal to 65536.'); } if (($max_tokens < 1)) { throw new \InvalidArgumentException('invalid value for $max_tokens when calling ChatInferenceStreamRequest., must be bigger than or equal to 1.'); @@ -658,6 +672,60 @@ public function setToolConfig($tool_config) return $this; } + + /** + * Gets session_id + * + * @return string|null + */ + public function getSessionId() + { + return $this->container['session_id']; + } + + /** + * Sets session_id + * + * @param string|null $session_id Optional session ID for conversation continuity. Omit to use stateless mode, include to continue an existing session. + * + * @return self + */ + public function setSessionId($session_id) + { + if (is_null($session_id)) { + throw new \InvalidArgumentException('non-nullable session_id cannot be null'); + } + $this->container['session_id'] = $session_id; + + return $this; + } + + /** + * Gets async + * + * @return bool|null + */ + public function getAsync() + { + return $this->container['async']; + } + + /** + * Sets async + * + * @param bool|null $async Enable async/durable execution mode. When true, returns 202 with pollUrl instead of streaming. Use for long-running inference, client-executed tools, or operations >30 seconds. + * + * @return self + */ + public function setAsync($async) + { + if (is_null($async)) { + throw new \InvalidArgumentException('non-nullable async cannot be null'); + } + $this->container['async'] = $async; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/src/Model/ChatInferenceStreamRequestMessagesInner.php b/src/Model/ChatInferenceStreamRequestMessagesInner.php index 307e051..4408994 100644 --- a/src/Model/ChatInferenceStreamRequestMessagesInner.php +++ b/src/Model/ChatInferenceStreamRequestMessagesInner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ChatInferenceStreamRequestMessagesInnerContent.php b/src/Model/ChatInferenceStreamRequestMessagesInnerContent.php index 397c7e8..1625ec3 100644 --- a/src/Model/ChatInferenceStreamRequestMessagesInnerContent.php +++ b/src/Model/ChatInferenceStreamRequestMessagesInnerContent.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ChatWithAIAgent200Response.php b/src/Model/ChatWithAIAgent200Response.php index ddad450..6cfa862 100644 --- a/src/Model/ChatWithAIAgent200Response.php +++ b/src/Model/ChatWithAIAgent200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ChatWithAIAgent200ResponseResponse.php b/src/Model/ChatWithAIAgent200ResponseResponse.php index 9e10789..9807399 100644 --- a/src/Model/ChatWithAIAgent200ResponseResponse.php +++ b/src/Model/ChatWithAIAgent200ResponseResponse.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ChatWithAIAgent200ResponseResponseUsage.php b/src/Model/ChatWithAIAgent200ResponseResponseUsage.php index 4df3843..6799660 100644 --- a/src/Model/ChatWithAIAgent200ResponseResponseUsage.php +++ b/src/Model/ChatWithAIAgent200ResponseResponseUsage.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ChatWithAIAgent202Response.php b/src/Model/ChatWithAIAgent202Response.php new file mode 100644 index 0000000..738283a --- /dev/null +++ b/src/Model/ChatWithAIAgent202Response.php @@ -0,0 +1,657 @@ + + */ +class ChatWithAIAgent202Response implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'chatWithAIAgent_202_response'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'request_id' => 'string', + 'agent_id' => 'string', + 'agent_name' => 'string', + 'session_id' => 'string', + 'status' => 'string', + 'message' => 'string', + 'poll_url' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'request_id' => null, + 'agent_id' => 'uuid', + 'agent_name' => null, + 'session_id' => null, + 'status' => null, + 'message' => null, + 'poll_url' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'request_id' => false, + 'agent_id' => false, + 'agent_name' => false, + 'session_id' => false, + 'status' => false, + 'message' => false, + 'poll_url' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected array $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'request_id' => 'requestId', + 'agent_id' => 'agentId', + 'agent_name' => 'agentName', + 'session_id' => 'sessionId', + 'status' => 'status', + 'message' => 'message', + 'poll_url' => 'pollUrl' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'request_id' => 'setRequestId', + 'agent_id' => 'setAgentId', + 'agent_name' => 'setAgentName', + 'session_id' => 'setSessionId', + 'status' => 'setStatus', + 'message' => 'setMessage', + 'poll_url' => 'setPollUrl' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'request_id' => 'getRequestId', + 'agent_id' => 'getAgentId', + 'agent_name' => 'getAgentName', + 'session_id' => 'getSessionId', + 'status' => 'getStatus', + 'message' => 'getMessage', + 'poll_url' => 'getPollUrl' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + public const STATUS_QUEUED = 'queued'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getStatusAllowableValues() + { + return [ + self::STATUS_QUEUED, + ]; + } + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[]|null $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('request_id', $data ?? [], null); + $this->setIfExists('agent_id', $data ?? [], null); + $this->setIfExists('agent_name', $data ?? [], null); + $this->setIfExists('session_id', $data ?? [], null); + $this->setIfExists('status', $data ?? [], null); + $this->setIfExists('message', $data ?? [], null); + $this->setIfExists('poll_url', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['request_id'] === null) { + $invalidProperties[] = "'request_id' can't be null"; + } + if ($this->container['agent_id'] === null) { + $invalidProperties[] = "'agent_id' can't be null"; + } + if ($this->container['status'] === null) { + $invalidProperties[] = "'status' can't be null"; + } + $allowedValues = $this->getStatusAllowableValues(); + if (!is_null($this->container['status']) && !in_array($this->container['status'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'status', must be one of '%s'", + $this->container['status'], + implode("', '", $allowedValues) + ); + } + + if ($this->container['poll_url'] === null) { + $invalidProperties[] = "'poll_url' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets request_id + * + * @return string + */ + public function getRequestId() + { + return $this->container['request_id']; + } + + /** + * Sets request_id + * + * @param string $request_id Unique request identifier for polling + * + * @return self + */ + public function setRequestId($request_id) + { + if (is_null($request_id)) { + throw new \InvalidArgumentException('non-nullable request_id cannot be null'); + } + $this->container['request_id'] = $request_id; + + return $this; + } + + /** + * Gets agent_id + * + * @return string + */ + public function getAgentId() + { + return $this->container['agent_id']; + } + + /** + * Sets agent_id + * + * @param string $agent_id The agent processing the request + * + * @return self + */ + public function setAgentId($agent_id) + { + if (is_null($agent_id)) { + throw new \InvalidArgumentException('non-nullable agent_id cannot be null'); + } + $this->container['agent_id'] = $agent_id; + + return $this; + } + + /** + * Gets agent_name + * + * @return string|null + */ + public function getAgentName() + { + return $this->container['agent_name']; + } + + /** + * Sets agent_name + * + * @param string|null $agent_name Human-readable agent name + * + * @return self + */ + public function setAgentName($agent_name) + { + if (is_null($agent_name)) { + throw new \InvalidArgumentException('non-nullable agent_name cannot be null'); + } + $this->container['agent_name'] = $agent_name; + + return $this; + } + + /** + * Gets session_id + * + * @return string|null + */ + public function getSessionId() + { + return $this->container['session_id']; + } + + /** + * Sets session_id + * + * @param string|null $session_id Session ID (if provided) + * + * @return self + */ + public function setSessionId($session_id) + { + if (is_null($session_id)) { + throw new \InvalidArgumentException('non-nullable session_id cannot be null'); + } + $this->container['session_id'] = $session_id; + + return $this; + } + + /** + * Gets status + * + * @return string + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string $status Initial status + * + * @return self + */ + public function setStatus($status) + { + if (is_null($status)) { + throw new \InvalidArgumentException('non-nullable status cannot be null'); + } + $allowedValues = $this->getStatusAllowableValues(); + if (!in_array($status, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'status', must be one of '%s'", + $status, + implode("', '", $allowedValues) + ) + ); + } + $this->container['status'] = $status; + + return $this; + } + + /** + * Gets message + * + * @return string|null + */ + public function getMessage() + { + return $this->container['message']; + } + + /** + * Sets message + * + * @param string|null $message message + * + * @return self + */ + public function setMessage($message) + { + if (is_null($message)) { + throw new \InvalidArgumentException('non-nullable message cannot be null'); + } + $this->container['message'] = $message; + + return $this; + } + + /** + * Gets poll_url + * + * @return string + */ + public function getPollUrl() + { + return $this->container['poll_url']; + } + + /** + * Sets poll_url + * + * @param string $poll_url URL to poll for execution status + * + * @return self + */ + public function setPollUrl($poll_url) + { + if (is_null($poll_url)) { + throw new \InvalidArgumentException('non-nullable poll_url cannot be null'); + } + $this->container['poll_url'] = $poll_url; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/Model/ChatWithAIAgentRequest.php b/src/Model/ChatWithAIAgentRequest.php index 0d7ea4a..cdba749 100644 --- a/src/Model/ChatWithAIAgentRequest.php +++ b/src/Model/ChatWithAIAgentRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ @@ -60,7 +60,9 @@ class ChatWithAIAgentRequest implements ModelInterface, ArrayAccess, \JsonSerial 'message' => 'string', 'session_id' => 'string', 'user_id' => 'string', - 'stream' => 'bool' + 'stream' => 'bool', + 'async' => 'bool', + 'system' => 'string' ]; /** @@ -74,7 +76,9 @@ class ChatWithAIAgentRequest implements ModelInterface, ArrayAccess, \JsonSerial 'message' => null, 'session_id' => 'uuid', 'user_id' => null, - 'stream' => null + 'stream' => null, + 'async' => null, + 'system' => null ]; /** @@ -86,7 +90,9 @@ class ChatWithAIAgentRequest implements ModelInterface, ArrayAccess, \JsonSerial 'message' => false, 'session_id' => false, 'user_id' => false, - 'stream' => false + 'stream' => false, + 'async' => false, + 'system' => false ]; /** @@ -178,7 +184,9 @@ public function isNullableSetToNull(string $property): bool 'message' => 'message', 'session_id' => 'sessionId', 'user_id' => 'userId', - 'stream' => 'stream' + 'stream' => 'stream', + 'async' => 'async', + 'system' => 'system' ]; /** @@ -190,7 +198,9 @@ public function isNullableSetToNull(string $property): bool 'message' => 'setMessage', 'session_id' => 'setSessionId', 'user_id' => 'setUserId', - 'stream' => 'setStream' + 'stream' => 'setStream', + 'async' => 'setAsync', + 'system' => 'setSystem' ]; /** @@ -202,7 +212,9 @@ public function isNullableSetToNull(string $property): bool 'message' => 'getMessage', 'session_id' => 'getSessionId', 'user_id' => 'getUserId', - 'stream' => 'getStream' + 'stream' => 'getStream', + 'async' => 'getAsync', + 'system' => 'getSystem' ]; /** @@ -266,6 +278,8 @@ public function __construct(?array $data = null) $this->setIfExists('session_id', $data ?? [], null); $this->setIfExists('user_id', $data ?? [], null); $this->setIfExists('stream', $data ?? [], false); + $this->setIfExists('async', $data ?? [], false); + $this->setIfExists('system', $data ?? [], null); } /** @@ -420,6 +434,60 @@ public function setStream($stream) return $this; } + + /** + * Gets async + * + * @return bool|null + */ + public function getAsync() + { + return $this->container['async']; + } + + /** + * Sets async + * + * @param bool|null $async Enable async/durable execution mode. When true, returns 202 with pollUrl. Use for long-running agent tasks. + * + * @return self + */ + public function setAsync($async) + { + if (is_null($async)) { + throw new \InvalidArgumentException('non-nullable async cannot be null'); + } + $this->container['async'] = $async; + + return $this; + } + + /** + * Gets system + * + * @return string|null + */ + public function getSystem() + { + return $this->container['system']; + } + + /** + * Sets system + * + * @param string|null $system Optional additional system prompt (appended to agent's configured prompt) + * + * @return self + */ + public function setSystem($system) + { + if (is_null($system)) { + throw new \InvalidArgumentException('non-nullable system cannot be null'); + } + $this->container['system'] = $system; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/src/Model/Command.php b/src/Model/Command.php index b5b01fb..ad4b9e3 100644 --- a/src/Model/Command.php +++ b/src/Model/Command.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/Compose.php b/src/Model/Compose.php index 3cff146..78d7310 100644 --- a/src/Model/Compose.php +++ b/src/Model/Compose.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/Container.php b/src/Model/Container.php index 6d3ead1..485d783 100644 --- a/src/Model/Container.php +++ b/src/Model/Container.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ContainerDependsOnInner.php b/src/Model/ContainerDependsOnInner.php index 3519c79..83074a0 100644 --- a/src/Model/ContainerDependsOnInner.php +++ b/src/Model/ContainerDependsOnInner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ContainerEnvironmentInner.php b/src/Model/ContainerEnvironmentInner.php index 35dc14c..6361124 100644 --- a/src/Model/ContainerEnvironmentInner.php +++ b/src/Model/ContainerEnvironmentInner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ContainerHealthCheck.php b/src/Model/ContainerHealthCheck.php index ff3a652..3357176 100644 --- a/src/Model/ContainerHealthCheck.php +++ b/src/Model/ContainerHealthCheck.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ContainerImageReference.php b/src/Model/ContainerImageReference.php index 72cd32e..30d2cb9 100644 --- a/src/Model/ContainerImageReference.php +++ b/src/Model/ContainerImageReference.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ContainerMountPointsInner.php b/src/Model/ContainerMountPointsInner.php index eacb2a1..86b1483 100644 --- a/src/Model/ContainerMountPointsInner.php +++ b/src/Model/ContainerMountPointsInner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ContainerOriginProtectionConfig.php b/src/Model/ContainerOriginProtectionConfig.php index 1b226e6..86b2a31 100644 --- a/src/Model/ContainerOriginProtectionConfig.php +++ b/src/Model/ContainerOriginProtectionConfig.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ContainerSecretsInner.php b/src/Model/ContainerSecretsInner.php index af7d56e..11cada7 100644 --- a/src/Model/ContainerSecretsInner.php +++ b/src/Model/ContainerSecretsInner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/CrawlersRun200Response.php b/src/Model/CrawlersRun200Response.php index e6fea20..af54c74 100644 --- a/src/Model/CrawlersRun200Response.php +++ b/src/Model/CrawlersRun200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/CrawlersRunRequest.php b/src/Model/CrawlersRunRequest.php index 29ed9b7..248de50 100644 --- a/src/Model/CrawlersRunRequest.php +++ b/src/Model/CrawlersRunRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ @@ -302,7 +302,7 @@ public function getUrls() /** * Sets urls * - * @param string[]|null $urls URLs to crawl + * @param string[]|null $urls Optional URLs to crawl (overrides crawler's default URL configuration). If not provided, the crawler will use its configured URLs or perform a full crawl. * * @return self */ diff --git a/src/Model/CreateAIAgent201Response.php b/src/Model/CreateAIAgent201Response.php index 0f8e39e..30368c9 100644 --- a/src/Model/CreateAIAgent201Response.php +++ b/src/Model/CreateAIAgent201Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/CreateAIAgentRequest.php b/src/Model/CreateAIAgentRequest.php index fcaea8a..5727c89 100644 --- a/src/Model/CreateAIAgentRequest.php +++ b/src/Model/CreateAIAgentRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/CreateAISession201Response.php b/src/Model/CreateAISession201Response.php index 9546d05..163d6f5 100644 --- a/src/Model/CreateAISession201Response.php +++ b/src/Model/CreateAISession201Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/CreateAISessionRequest.php b/src/Model/CreateAISessionRequest.php index 2bfb817..a856520 100644 --- a/src/Model/CreateAISessionRequest.php +++ b/src/Model/CreateAISessionRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/CreateAISessionRequestInitialMessagesInner.php b/src/Model/CreateAISessionRequestInitialMessagesInner.php index bdcffcf..370a65b 100644 --- a/src/Model/CreateAISessionRequestInitialMessagesInner.php +++ b/src/Model/CreateAISessionRequestInitialMessagesInner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/CreateApplication403Response.php b/src/Model/CreateApplication403Response.php index 566b558..49f14e0 100644 --- a/src/Model/CreateApplication403Response.php +++ b/src/Model/CreateApplication403Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/CreateApplicationRequest.php b/src/Model/CreateApplicationRequest.php index 4838d7c..c139bcc 100644 --- a/src/Model/CreateApplicationRequest.php +++ b/src/Model/CreateApplicationRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/CreateApplicationRequestDatabase.php b/src/Model/CreateApplicationRequestDatabase.php index 3e2d0ab..b1337ac 100644 --- a/src/Model/CreateApplicationRequestDatabase.php +++ b/src/Model/CreateApplicationRequestDatabase.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/CreateApplicationRequestEnvironmentInner.php b/src/Model/CreateApplicationRequestEnvironmentInner.php index 450acff..70c65d3 100644 --- a/src/Model/CreateApplicationRequestEnvironmentInner.php +++ b/src/Model/CreateApplicationRequestEnvironmentInner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/CreateApplicationRequestFilesystem.php b/src/Model/CreateApplicationRequestFilesystem.php index 4d6e6f9..8e506af 100644 --- a/src/Model/CreateApplicationRequestFilesystem.php +++ b/src/Model/CreateApplicationRequestFilesystem.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/CreateBackup202Response.php b/src/Model/CreateBackup202Response.php index 7d6ae9a..c997c04 100644 --- a/src/Model/CreateBackup202Response.php +++ b/src/Model/CreateBackup202Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/CreateBackupRequest.php b/src/Model/CreateBackupRequest.php index bf00d85..73f55dd 100644 --- a/src/Model/CreateBackupRequest.php +++ b/src/Model/CreateBackupRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/CreateCommandRequest.php b/src/Model/CreateCommandRequest.php index b5aaca2..dfdbd9a 100644 --- a/src/Model/CreateCommandRequest.php +++ b/src/Model/CreateCommandRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/CreateCronJobRequest.php b/src/Model/CreateCronJobRequest.php index 796a2f6..b67071c 100644 --- a/src/Model/CreateCronJobRequest.php +++ b/src/Model/CreateCronJobRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/CreateCustomTool201Response.php b/src/Model/CreateCustomTool201Response.php index a10716a..e626aac 100644 --- a/src/Model/CreateCustomTool201Response.php +++ b/src/Model/CreateCustomTool201Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/CreateCustomToolRequest.php b/src/Model/CreateCustomToolRequest.php index 980d714..dc331d4 100644 --- a/src/Model/CreateCustomToolRequest.php +++ b/src/Model/CreateCustomToolRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/CreateEnvironment403Response.php b/src/Model/CreateEnvironment403Response.php index 7908c1c..7f624da 100644 --- a/src/Model/CreateEnvironment403Response.php +++ b/src/Model/CreateEnvironment403Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/CreateEnvironmentRequest.php b/src/Model/CreateEnvironmentRequest.php index ad88869..3d814c7 100644 --- a/src/Model/CreateEnvironmentRequest.php +++ b/src/Model/CreateEnvironmentRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/CreateEnvironmentRequestEnvironmentInner.php b/src/Model/CreateEnvironmentRequestEnvironmentInner.php index 4ad8614..87056e9 100644 --- a/src/Model/CreateEnvironmentRequestEnvironmentInner.php +++ b/src/Model/CreateEnvironmentRequestEnvironmentInner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/CreateTask201Response.php b/src/Model/CreateTask201Response.php new file mode 100644 index 0000000..5f99de2 --- /dev/null +++ b/src/Model/CreateTask201Response.php @@ -0,0 +1,545 @@ + + */ +class CreateTask201Response implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'createTask_201_response'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'task_id' => 'string', + 'org_id' => 'string', + 'title' => 'string', + 'status' => 'string', + 'created_at' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'task_id' => 'uuid', + 'org_id' => null, + 'title' => null, + 'status' => null, + 'created_at' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'task_id' => false, + 'org_id' => false, + 'title' => false, + 'status' => false, + 'created_at' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected array $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'task_id' => 'taskId', + 'org_id' => 'orgId', + 'title' => 'title', + 'status' => 'status', + 'created_at' => 'createdAt' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'task_id' => 'setTaskId', + 'org_id' => 'setOrgId', + 'title' => 'setTitle', + 'status' => 'setStatus', + 'created_at' => 'setCreatedAt' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'task_id' => 'getTaskId', + 'org_id' => 'getOrgId', + 'title' => 'getTitle', + 'status' => 'getStatus', + 'created_at' => 'getCreatedAt' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[]|null $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('task_id', $data ?? [], null); + $this->setIfExists('org_id', $data ?? [], null); + $this->setIfExists('title', $data ?? [], null); + $this->setIfExists('status', $data ?? [], null); + $this->setIfExists('created_at', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets task_id + * + * @return string|null + */ + public function getTaskId() + { + return $this->container['task_id']; + } + + /** + * Sets task_id + * + * @param string|null $task_id task_id + * + * @return self + */ + public function setTaskId($task_id) + { + if (is_null($task_id)) { + throw new \InvalidArgumentException('non-nullable task_id cannot be null'); + } + $this->container['task_id'] = $task_id; + + return $this; + } + + /** + * Gets org_id + * + * @return string|null + */ + public function getOrgId() + { + return $this->container['org_id']; + } + + /** + * Sets org_id + * + * @param string|null $org_id org_id + * + * @return self + */ + public function setOrgId($org_id) + { + if (is_null($org_id)) { + throw new \InvalidArgumentException('non-nullable org_id cannot be null'); + } + $this->container['org_id'] = $org_id; + + return $this; + } + + /** + * Gets title + * + * @return string|null + */ + public function getTitle() + { + return $this->container['title']; + } + + /** + * Sets title + * + * @param string|null $title title + * + * @return self + */ + public function setTitle($title) + { + if (is_null($title)) { + throw new \InvalidArgumentException('non-nullable title cannot be null'); + } + $this->container['title'] = $title; + + return $this; + } + + /** + * Gets status + * + * @return string|null + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string|null $status status + * + * @return self + */ + public function setStatus($status) + { + if (is_null($status)) { + throw new \InvalidArgumentException('non-nullable status cannot be null'); + } + $this->container['status'] = $status; + + return $this; + } + + /** + * Gets created_at + * + * @return int|null + */ + public function getCreatedAt() + { + return $this->container['created_at']; + } + + /** + * Sets created_at + * + * @param int|null $created_at created_at + * + * @return self + */ + public function setCreatedAt($created_at) + { + if (is_null($created_at)) { + throw new \InvalidArgumentException('non-nullable created_at cannot be null'); + } + $this->container['created_at'] = $created_at; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/Model/CreateTaskRequest.php b/src/Model/CreateTaskRequest.php new file mode 100644 index 0000000..07dc79b --- /dev/null +++ b/src/Model/CreateTaskRequest.php @@ -0,0 +1,810 @@ + + */ +class CreateTaskRequest implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'createTask_request'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'title' => 'string', + 'description' => 'string', + 'task_list_id' => 'string', + 'status' => 'string', + 'assigned_agent_id' => 'string', + 'created_by_agent_id' => 'string', + 'depends_on' => 'string[]', + 'metadata' => 'object', + 'max_retries' => 'int', + 'blocked_reason' => 'string', + 'blocked_by_task_ids' => 'string[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'title' => null, + 'description' => null, + 'task_list_id' => null, + 'status' => null, + 'assigned_agent_id' => null, + 'created_by_agent_id' => null, + 'depends_on' => 'uuid', + 'metadata' => null, + 'max_retries' => null, + 'blocked_reason' => null, + 'blocked_by_task_ids' => 'uuid' + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'title' => false, + 'description' => false, + 'task_list_id' => false, + 'status' => false, + 'assigned_agent_id' => false, + 'created_by_agent_id' => false, + 'depends_on' => false, + 'metadata' => false, + 'max_retries' => false, + 'blocked_reason' => false, + 'blocked_by_task_ids' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected array $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'title' => 'title', + 'description' => 'description', + 'task_list_id' => 'taskListId', + 'status' => 'status', + 'assigned_agent_id' => 'assignedAgentId', + 'created_by_agent_id' => 'createdByAgentId', + 'depends_on' => 'dependsOn', + 'metadata' => 'metadata', + 'max_retries' => 'maxRetries', + 'blocked_reason' => 'blockedReason', + 'blocked_by_task_ids' => 'blockedByTaskIds' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'title' => 'setTitle', + 'description' => 'setDescription', + 'task_list_id' => 'setTaskListId', + 'status' => 'setStatus', + 'assigned_agent_id' => 'setAssignedAgentId', + 'created_by_agent_id' => 'setCreatedByAgentId', + 'depends_on' => 'setDependsOn', + 'metadata' => 'setMetadata', + 'max_retries' => 'setMaxRetries', + 'blocked_reason' => 'setBlockedReason', + 'blocked_by_task_ids' => 'setBlockedByTaskIds' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'title' => 'getTitle', + 'description' => 'getDescription', + 'task_list_id' => 'getTaskListId', + 'status' => 'getStatus', + 'assigned_agent_id' => 'getAssignedAgentId', + 'created_by_agent_id' => 'getCreatedByAgentId', + 'depends_on' => 'getDependsOn', + 'metadata' => 'getMetadata', + 'max_retries' => 'getMaxRetries', + 'blocked_reason' => 'getBlockedReason', + 'blocked_by_task_ids' => 'getBlockedByTaskIds' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + public const STATUS_PENDING = 'pending'; + public const STATUS_IN_PROGRESS = 'in_progress'; + public const STATUS_COMPLETED = 'completed'; + public const STATUS_FAILED = 'failed'; + public const STATUS_CANCELLED = 'cancelled'; + public const STATUS_BLOCKED = 'blocked'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getStatusAllowableValues() + { + return [ + self::STATUS_PENDING, + self::STATUS_IN_PROGRESS, + self::STATUS_COMPLETED, + self::STATUS_FAILED, + self::STATUS_CANCELLED, + self::STATUS_BLOCKED, + ]; + } + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[]|null $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('title', $data ?? [], null); + $this->setIfExists('description', $data ?? [], null); + $this->setIfExists('task_list_id', $data ?? [], null); + $this->setIfExists('status', $data ?? [], 'pending'); + $this->setIfExists('assigned_agent_id', $data ?? [], null); + $this->setIfExists('created_by_agent_id', $data ?? [], null); + $this->setIfExists('depends_on', $data ?? [], null); + $this->setIfExists('metadata', $data ?? [], null); + $this->setIfExists('max_retries', $data ?? [], 3); + $this->setIfExists('blocked_reason', $data ?? [], null); + $this->setIfExists('blocked_by_task_ids', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['title'] === null) { + $invalidProperties[] = "'title' can't be null"; + } + $allowedValues = $this->getStatusAllowableValues(); + if (!is_null($this->container['status']) && !in_array($this->container['status'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'status', must be one of '%s'", + $this->container['status'], + implode("', '", $allowedValues) + ); + } + + if (!is_null($this->container['max_retries']) && ($this->container['max_retries'] > 10)) { + $invalidProperties[] = "invalid value for 'max_retries', must be smaller than or equal to 10."; + } + + if (!is_null($this->container['max_retries']) && ($this->container['max_retries'] < 0)) { + $invalidProperties[] = "invalid value for 'max_retries', must be bigger than or equal to 0."; + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets title + * + * @return string + */ + public function getTitle() + { + return $this->container['title']; + } + + /** + * Sets title + * + * @param string $title Task title + * + * @return self + */ + public function setTitle($title) + { + if (is_null($title)) { + throw new \InvalidArgumentException('non-nullable title cannot be null'); + } + $this->container['title'] = $title; + + return $this; + } + + /** + * Gets description + * + * @return string|null + */ + public function getDescription() + { + return $this->container['description']; + } + + /** + * Sets description + * + * @param string|null $description Detailed task description + * + * @return self + */ + public function setDescription($description) + { + if (is_null($description)) { + throw new \InvalidArgumentException('non-nullable description cannot be null'); + } + $this->container['description'] = $description; + + return $this; + } + + /** + * Gets task_list_id + * + * @return string|null + */ + public function getTaskListId() + { + return $this->container['task_list_id']; + } + + /** + * Sets task_list_id + * + * @param string|null $task_list_id Task list ID for grouping related tasks (implicit - lists are created automatically) + * + * @return self + */ + public function setTaskListId($task_list_id) + { + if (is_null($task_list_id)) { + throw new \InvalidArgumentException('non-nullable task_list_id cannot be null'); + } + $this->container['task_list_id'] = $task_list_id; + + return $this; + } + + /** + * Gets status + * + * @return string|null + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string|null $status Initial task status + * + * @return self + */ + public function setStatus($status) + { + if (is_null($status)) { + throw new \InvalidArgumentException('non-nullable status cannot be null'); + } + $allowedValues = $this->getStatusAllowableValues(); + if (!in_array($status, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'status', must be one of '%s'", + $status, + implode("', '", $allowedValues) + ) + ); + } + $this->container['status'] = $status; + + return $this; + } + + /** + * Gets assigned_agent_id + * + * @return string|null + */ + public function getAssignedAgentId() + { + return $this->container['assigned_agent_id']; + } + + /** + * Sets assigned_agent_id + * + * @param string|null $assigned_agent_id Pre-assign task to specific agent + * + * @return self + */ + public function setAssignedAgentId($assigned_agent_id) + { + if (is_null($assigned_agent_id)) { + throw new \InvalidArgumentException('non-nullable assigned_agent_id cannot be null'); + } + $this->container['assigned_agent_id'] = $assigned_agent_id; + + return $this; + } + + /** + * Gets created_by_agent_id + * + * @return string|null + */ + public function getCreatedByAgentId() + { + return $this->container['created_by_agent_id']; + } + + /** + * Sets created_by_agent_id + * + * @param string|null $created_by_agent_id Agent ID that created this task + * + * @return self + */ + public function setCreatedByAgentId($created_by_agent_id) + { + if (is_null($created_by_agent_id)) { + throw new \InvalidArgumentException('non-nullable created_by_agent_id cannot be null'); + } + $this->container['created_by_agent_id'] = $created_by_agent_id; + + return $this; + } + + /** + * Gets depends_on + * + * @return string[]|null + */ + public function getDependsOn() + { + return $this->container['depends_on']; + } + + /** + * Sets depends_on + * + * @param string[]|null $depends_on Task IDs that must complete before this task can start + * + * @return self + */ + public function setDependsOn($depends_on) + { + if (is_null($depends_on)) { + throw new \InvalidArgumentException('non-nullable depends_on cannot be null'); + } + $this->container['depends_on'] = $depends_on; + + return $this; + } + + /** + * Gets metadata + * + * @return object|null + */ + public function getMetadata() + { + return $this->container['metadata']; + } + + /** + * Sets metadata + * + * @param object|null $metadata Flexible JSON metadata for task-specific data + * + * @return self + */ + public function setMetadata($metadata) + { + if (is_null($metadata)) { + throw new \InvalidArgumentException('non-nullable metadata cannot be null'); + } + $this->container['metadata'] = $metadata; + + return $this; + } + + /** + * Gets max_retries + * + * @return int|null + */ + public function getMaxRetries() + { + return $this->container['max_retries']; + } + + /** + * Sets max_retries + * + * @param int|null $max_retries Maximum retry attempts on failure + * + * @return self + */ + public function setMaxRetries($max_retries) + { + if (is_null($max_retries)) { + throw new \InvalidArgumentException('non-nullable max_retries cannot be null'); + } + + if (($max_retries > 10)) { + throw new \InvalidArgumentException('invalid value for $max_retries when calling CreateTaskRequest., must be smaller than or equal to 10.'); + } + if (($max_retries < 0)) { + throw new \InvalidArgumentException('invalid value for $max_retries when calling CreateTaskRequest., must be bigger than or equal to 0.'); + } + + $this->container['max_retries'] = $max_retries; + + return $this; + } + + /** + * Gets blocked_reason + * + * @return string|null + */ + public function getBlockedReason() + { + return $this->container['blocked_reason']; + } + + /** + * Sets blocked_reason + * + * @param string|null $blocked_reason Reason task is blocked (when status is blocked) + * + * @return self + */ + public function setBlockedReason($blocked_reason) + { + if (is_null($blocked_reason)) { + throw new \InvalidArgumentException('non-nullable blocked_reason cannot be null'); + } + $this->container['blocked_reason'] = $blocked_reason; + + return $this; + } + + /** + * Gets blocked_by_task_ids + * + * @return string[]|null + */ + public function getBlockedByTaskIds() + { + return $this->container['blocked_by_task_ids']; + } + + /** + * Sets blocked_by_task_ids + * + * @param string[]|null $blocked_by_task_ids Task IDs that are blocking this task + * + * @return self + */ + public function setBlockedByTaskIds($blocked_by_task_ids) + { + if (is_null($blocked_by_task_ids)) { + throw new \InvalidArgumentException('non-nullable blocked_by_task_ids cannot be null'); + } + $this->container['blocked_by_task_ids'] = $blocked_by_task_ids; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/Model/CreateVectorCollection201Response.php b/src/Model/CreateVectorCollection201Response.php index c45c340..9c2a56e 100644 --- a/src/Model/CreateVectorCollection201Response.php +++ b/src/Model/CreateVectorCollection201Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/CreateVectorCollection201ResponseCollection.php b/src/Model/CreateVectorCollection201ResponseCollection.php index 7413fd3..5bd0ac9 100644 --- a/src/Model/CreateVectorCollection201ResponseCollection.php +++ b/src/Model/CreateVectorCollection201ResponseCollection.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/CreateVectorCollectionRequest.php b/src/Model/CreateVectorCollectionRequest.php index d570241..ce4b6a1 100644 --- a/src/Model/CreateVectorCollectionRequest.php +++ b/src/Model/CreateVectorCollectionRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/CreateVolumeRequest.php b/src/Model/CreateVolumeRequest.php index b16ad71..0f4ee91 100644 --- a/src/Model/CreateVolumeRequest.php +++ b/src/Model/CreateVolumeRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/Cron.php b/src/Model/Cron.php index 281ff14..8f9d457 100644 --- a/src/Model/Cron.php +++ b/src/Model/Cron.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/CronRun.php b/src/Model/CronRun.php index e8f553e..90b76ef 100644 --- a/src/Model/CronRun.php +++ b/src/Model/CronRun.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/DeleteAIAgent200Response.php b/src/Model/DeleteAIAgent200Response.php index 770df4f..682da4e 100644 --- a/src/Model/DeleteAIAgent200Response.php +++ b/src/Model/DeleteAIAgent200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/DeleteAISession200Response.php b/src/Model/DeleteAISession200Response.php index 3b8cc75..44b1d75 100644 --- a/src/Model/DeleteAISession200Response.php +++ b/src/Model/DeleteAISession200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/DeleteBackup200Response.php b/src/Model/DeleteBackup200Response.php index 3125653..582a3bb 100644 --- a/src/Model/DeleteBackup200Response.php +++ b/src/Model/DeleteBackup200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/DeleteCustomTool200Response.php b/src/Model/DeleteCustomTool200Response.php index 82f4652..457b16f 100644 --- a/src/Model/DeleteCustomTool200Response.php +++ b/src/Model/DeleteCustomTool200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/DeleteFile200Response.php b/src/Model/DeleteFile200Response.php new file mode 100644 index 0000000..637cfe6 --- /dev/null +++ b/src/Model/DeleteFile200Response.php @@ -0,0 +1,443 @@ + + */ +class DeleteFile200Response implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'deleteFile_200_response'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'message' => 'string', + 'file_id' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'message' => null, + 'file_id' => 'uuid' + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'message' => false, + 'file_id' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected array $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'message' => 'message', + 'file_id' => 'fileId' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'message' => 'setMessage', + 'file_id' => 'setFileId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'message' => 'getMessage', + 'file_id' => 'getFileId' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[]|null $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('message', $data ?? [], null); + $this->setIfExists('file_id', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets message + * + * @return string|null + */ + public function getMessage() + { + return $this->container['message']; + } + + /** + * Sets message + * + * @param string|null $message message + * + * @return self + */ + public function setMessage($message) + { + if (is_null($message)) { + throw new \InvalidArgumentException('non-nullable message cannot be null'); + } + $this->container['message'] = $message; + + return $this; + } + + /** + * Gets file_id + * + * @return string|null + */ + public function getFileId() + { + return $this->container['file_id']; + } + + /** + * Sets file_id + * + * @param string|null $file_id file_id + * + * @return self + */ + public function setFileId($file_id) + { + if (is_null($file_id)) { + throw new \InvalidArgumentException('non-nullable file_id cannot be null'); + } + $this->container['file_id'] = $file_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/Model/DeleteTask200Response.php b/src/Model/DeleteTask200Response.php new file mode 100644 index 0000000..cdd8cc9 --- /dev/null +++ b/src/Model/DeleteTask200Response.php @@ -0,0 +1,477 @@ + + */ +class DeleteTask200Response implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'deleteTask_200_response'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'deleted' => 'bool', + 'deleted_count' => 'int', + 'deleted_task_ids' => 'string[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'deleted' => null, + 'deleted_count' => null, + 'deleted_task_ids' => 'uuid' + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'deleted' => false, + 'deleted_count' => false, + 'deleted_task_ids' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected array $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'deleted' => 'deleted', + 'deleted_count' => 'deletedCount', + 'deleted_task_ids' => 'deletedTaskIds' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'deleted' => 'setDeleted', + 'deleted_count' => 'setDeletedCount', + 'deleted_task_ids' => 'setDeletedTaskIds' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'deleted' => 'getDeleted', + 'deleted_count' => 'getDeletedCount', + 'deleted_task_ids' => 'getDeletedTaskIds' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[]|null $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('deleted', $data ?? [], null); + $this->setIfExists('deleted_count', $data ?? [], null); + $this->setIfExists('deleted_task_ids', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets deleted + * + * @return bool|null + */ + public function getDeleted() + { + return $this->container['deleted']; + } + + /** + * Sets deleted + * + * @param bool|null $deleted deleted + * + * @return self + */ + public function setDeleted($deleted) + { + if (is_null($deleted)) { + throw new \InvalidArgumentException('non-nullable deleted cannot be null'); + } + $this->container['deleted'] = $deleted; + + return $this; + } + + /** + * Gets deleted_count + * + * @return int|null + */ + public function getDeletedCount() + { + return $this->container['deleted_count']; + } + + /** + * Sets deleted_count + * + * @param int|null $deleted_count Number of tasks deleted (more than 1 for cascade) + * + * @return self + */ + public function setDeletedCount($deleted_count) + { + if (is_null($deleted_count)) { + throw new \InvalidArgumentException('non-nullable deleted_count cannot be null'); + } + $this->container['deleted_count'] = $deleted_count; + + return $this; + } + + /** + * Gets deleted_task_ids + * + * @return string[]|null + */ + public function getDeletedTaskIds() + { + return $this->container['deleted_task_ids']; + } + + /** + * Sets deleted_task_ids + * + * @param string[]|null $deleted_task_ids deleted_task_ids + * + * @return self + */ + public function setDeletedTaskIds($deleted_task_ids) + { + if (is_null($deleted_task_ids)) { + throw new \InvalidArgumentException('non-nullable deleted_task_ids cannot be null'); + } + $this->container['deleted_task_ids'] = $deleted_task_ids; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/Model/DeleteTask409Response.php b/src/Model/DeleteTask409Response.php new file mode 100644 index 0000000..dd8be62 --- /dev/null +++ b/src/Model/DeleteTask409Response.php @@ -0,0 +1,477 @@ + + */ +class DeleteTask409Response implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'deleteTask_409_response'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'error' => 'string', + 'message' => 'string', + 'dependent_task_ids' => 'string[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'error' => null, + 'message' => null, + 'dependent_task_ids' => 'uuid' + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'error' => false, + 'message' => false, + 'dependent_task_ids' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected array $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'error' => 'error', + 'message' => 'message', + 'dependent_task_ids' => 'dependentTaskIds' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'error' => 'setError', + 'message' => 'setMessage', + 'dependent_task_ids' => 'setDependentTaskIds' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'error' => 'getError', + 'message' => 'getMessage', + 'dependent_task_ids' => 'getDependentTaskIds' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[]|null $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('error', $data ?? [], null); + $this->setIfExists('message', $data ?? [], null); + $this->setIfExists('dependent_task_ids', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets error + * + * @return string|null + */ + public function getError() + { + return $this->container['error']; + } + + /** + * Sets error + * + * @param string|null $error error + * + * @return self + */ + public function setError($error) + { + if (is_null($error)) { + throw new \InvalidArgumentException('non-nullable error cannot be null'); + } + $this->container['error'] = $error; + + return $this; + } + + /** + * Gets message + * + * @return string|null + */ + public function getMessage() + { + return $this->container['message']; + } + + /** + * Sets message + * + * @param string|null $message message + * + * @return self + */ + public function setMessage($message) + { + if (is_null($message)) { + throw new \InvalidArgumentException('non-nullable message cannot be null'); + } + $this->container['message'] = $message; + + return $this; + } + + /** + * Gets dependent_task_ids + * + * @return string[]|null + */ + public function getDependentTaskIds() + { + return $this->container['dependent_task_ids']; + } + + /** + * Sets dependent_task_ids + * + * @param string[]|null $dependent_task_ids dependent_task_ids + * + * @return self + */ + public function setDependentTaskIds($dependent_task_ids) + { + if (is_null($dependent_task_ids)) { + throw new \InvalidArgumentException('non-nullable dependent_task_ids cannot be null'); + } + $this->container['dependent_task_ids'] = $dependent_task_ids; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/Model/DeleteVectorCollection200Response.php b/src/Model/DeleteVectorCollection200Response.php index f1f796e..521c91b 100644 --- a/src/Model/DeleteVectorCollection200Response.php +++ b/src/Model/DeleteVectorCollection200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/DownloadBackup200Response.php b/src/Model/DownloadBackup200Response.php index 93aa415..b79c200 100644 --- a/src/Model/DownloadBackup200Response.php +++ b/src/Model/DownloadBackup200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/Embeddings200Response.php b/src/Model/Embeddings200Response.php index 77e8c7c..7ff4923 100644 --- a/src/Model/Embeddings200Response.php +++ b/src/Model/Embeddings200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/Embeddings200ResponseEmbeddings.php b/src/Model/Embeddings200ResponseEmbeddings.php index 6ea9658..311b99c 100644 --- a/src/Model/Embeddings200ResponseEmbeddings.php +++ b/src/Model/Embeddings200ResponseEmbeddings.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/Embeddings200ResponseUsage.php b/src/Model/Embeddings200ResponseUsage.php index 0bb2f9e..945059f 100644 --- a/src/Model/Embeddings200ResponseUsage.php +++ b/src/Model/Embeddings200ResponseUsage.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/EmbeddingsRequest.php b/src/Model/EmbeddingsRequest.php index a13091d..3a79f62 100644 --- a/src/Model/EmbeddingsRequest.php +++ b/src/Model/EmbeddingsRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/EmbeddingsRequestInput.php b/src/Model/EmbeddingsRequestInput.php index b25b4e8..38fd995 100644 --- a/src/Model/EmbeddingsRequestInput.php +++ b/src/Model/EmbeddingsRequestInput.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/Environment.php b/src/Model/Environment.php index 6e44135..f771ded 100644 --- a/src/Model/Environment.php +++ b/src/Model/Environment.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/EnvironmentResponse.php b/src/Model/EnvironmentResponse.php index f81331a..9788e19 100644 --- a/src/Model/EnvironmentResponse.php +++ b/src/Model/EnvironmentResponse.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/EnvironmentSummary.php b/src/Model/EnvironmentSummary.php index 1cb2ca2..8aaeecc 100644 --- a/src/Model/EnvironmentSummary.php +++ b/src/Model/EnvironmentSummary.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ExtendAISession200Response.php b/src/Model/ExtendAISession200Response.php index 6f68da5..57d099f 100644 --- a/src/Model/ExtendAISession200Response.php +++ b/src/Model/ExtendAISession200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ExtendAISessionRequest.php b/src/Model/ExtendAISessionRequest.php index 71e93ee..3d7efda 100644 --- a/src/Model/ExtendAISessionRequest.php +++ b/src/Model/ExtendAISessionRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/GetAIAgent200Response.php b/src/Model/GetAIAgent200Response.php index 1e0ad98..79f4580 100644 --- a/src/Model/GetAIAgent200Response.php +++ b/src/Model/GetAIAgent200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/GetAIAgent200ResponseAgent.php b/src/Model/GetAIAgent200ResponseAgent.php index f68e9b2..8fad5ff 100644 --- a/src/Model/GetAIAgent200ResponseAgent.php +++ b/src/Model/GetAIAgent200ResponseAgent.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/GetAIModel200Response.php b/src/Model/GetAIModel200Response.php index dff4723..8d3060d 100644 --- a/src/Model/GetAIModel200Response.php +++ b/src/Model/GetAIModel200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/GetAIModel200ResponseCapabilities.php b/src/Model/GetAIModel200ResponseCapabilities.php index c5ee2cf..b3fa7d8 100644 --- a/src/Model/GetAIModel200ResponseCapabilities.php +++ b/src/Model/GetAIModel200ResponseCapabilities.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/GetAIModel200ResponsePricing.php b/src/Model/GetAIModel200ResponsePricing.php index 6b99690..f65166d 100644 --- a/src/Model/GetAIModel200ResponsePricing.php +++ b/src/Model/GetAIModel200ResponsePricing.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/GetAIModel404Response.php b/src/Model/GetAIModel404Response.php index 6fd1fe9..fa07c85 100644 --- a/src/Model/GetAIModel404Response.php +++ b/src/Model/GetAIModel404Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/GetAIOrchestrationStatus200Response.php b/src/Model/GetAIOrchestrationStatus200Response.php new file mode 100644 index 0000000..8acbc43 --- /dev/null +++ b/src/Model/GetAIOrchestrationStatus200Response.php @@ -0,0 +1,733 @@ + + */ +class GetAIOrchestrationStatus200Response implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'getAIOrchestrationStatus_200_response'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'orchestration_id' => 'string', + 'status' => 'string', + 'tool_count' => 'int', + 'completed_tools' => 'int', + 'synthesized_response' => 'string', + 'tools' => '\QuantClient\Model\GetAIOrchestrationStatus200ResponseToolsInner[]', + 'error' => 'string', + 'created_at' => '\DateTime', + 'completed_at' => '\DateTime' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'orchestration_id' => null, + 'status' => null, + 'tool_count' => null, + 'completed_tools' => null, + 'synthesized_response' => null, + 'tools' => null, + 'error' => null, + 'created_at' => 'date-time', + 'completed_at' => 'date-time' + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'orchestration_id' => false, + 'status' => false, + 'tool_count' => false, + 'completed_tools' => false, + 'synthesized_response' => false, + 'tools' => false, + 'error' => false, + 'created_at' => false, + 'completed_at' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected array $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'orchestration_id' => 'orchestrationId', + 'status' => 'status', + 'tool_count' => 'toolCount', + 'completed_tools' => 'completedTools', + 'synthesized_response' => 'synthesizedResponse', + 'tools' => 'tools', + 'error' => 'error', + 'created_at' => 'createdAt', + 'completed_at' => 'completedAt' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'orchestration_id' => 'setOrchestrationId', + 'status' => 'setStatus', + 'tool_count' => 'setToolCount', + 'completed_tools' => 'setCompletedTools', + 'synthesized_response' => 'setSynthesizedResponse', + 'tools' => 'setTools', + 'error' => 'setError', + 'created_at' => 'setCreatedAt', + 'completed_at' => 'setCompletedAt' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'orchestration_id' => 'getOrchestrationId', + 'status' => 'getStatus', + 'tool_count' => 'getToolCount', + 'completed_tools' => 'getCompletedTools', + 'synthesized_response' => 'getSynthesizedResponse', + 'tools' => 'getTools', + 'error' => 'getError', + 'created_at' => 'getCreatedAt', + 'completed_at' => 'getCompletedAt' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + public const STATUS_PENDING = 'pending'; + public const STATUS_POLLING = 'polling'; + public const STATUS_SYNTHESIZING = 'synthesizing'; + public const STATUS_COMPLETE = 'complete'; + public const STATUS_FAILED = 'failed'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getStatusAllowableValues() + { + return [ + self::STATUS_PENDING, + self::STATUS_POLLING, + self::STATUS_SYNTHESIZING, + self::STATUS_COMPLETE, + self::STATUS_FAILED, + ]; + } + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[]|null $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('orchestration_id', $data ?? [], null); + $this->setIfExists('status', $data ?? [], null); + $this->setIfExists('tool_count', $data ?? [], null); + $this->setIfExists('completed_tools', $data ?? [], null); + $this->setIfExists('synthesized_response', $data ?? [], null); + $this->setIfExists('tools', $data ?? [], null); + $this->setIfExists('error', $data ?? [], null); + $this->setIfExists('created_at', $data ?? [], null); + $this->setIfExists('completed_at', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['orchestration_id'] === null) { + $invalidProperties[] = "'orchestration_id' can't be null"; + } + if ($this->container['status'] === null) { + $invalidProperties[] = "'status' can't be null"; + } + $allowedValues = $this->getStatusAllowableValues(); + if (!is_null($this->container['status']) && !in_array($this->container['status'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'status', must be one of '%s'", + $this->container['status'], + implode("', '", $allowedValues) + ); + } + + if ($this->container['tool_count'] === null) { + $invalidProperties[] = "'tool_count' can't be null"; + } + if ($this->container['created_at'] === null) { + $invalidProperties[] = "'created_at' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets orchestration_id + * + * @return string + */ + public function getOrchestrationId() + { + return $this->container['orchestration_id']; + } + + /** + * Sets orchestration_id + * + * @param string $orchestration_id Unique orchestration identifier + * + * @return self + */ + public function setOrchestrationId($orchestration_id) + { + if (is_null($orchestration_id)) { + throw new \InvalidArgumentException('non-nullable orchestration_id cannot be null'); + } + $this->container['orchestration_id'] = $orchestration_id; + + return $this; + } + + /** + * Gets status + * + * @return string + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string $status Current orchestration status + * + * @return self + */ + public function setStatus($status) + { + if (is_null($status)) { + throw new \InvalidArgumentException('non-nullable status cannot be null'); + } + $allowedValues = $this->getStatusAllowableValues(); + if (!in_array($status, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'status', must be one of '%s'", + $status, + implode("', '", $allowedValues) + ) + ); + } + $this->container['status'] = $status; + + return $this; + } + + /** + * Gets tool_count + * + * @return int + */ + public function getToolCount() + { + return $this->container['tool_count']; + } + + /** + * Sets tool_count + * + * @param int $tool_count Total number of async tools in this orchestration + * + * @return self + */ + public function setToolCount($tool_count) + { + if (is_null($tool_count)) { + throw new \InvalidArgumentException('non-nullable tool_count cannot be null'); + } + $this->container['tool_count'] = $tool_count; + + return $this; + } + + /** + * Gets completed_tools + * + * @return int|null + */ + public function getCompletedTools() + { + return $this->container['completed_tools']; + } + + /** + * Sets completed_tools + * + * @param int|null $completed_tools Number of tools that have completed + * + * @return self + */ + public function setCompletedTools($completed_tools) + { + if (is_null($completed_tools)) { + throw new \InvalidArgumentException('non-nullable completed_tools cannot be null'); + } + $this->container['completed_tools'] = $completed_tools; + + return $this; + } + + /** + * Gets synthesized_response + * + * @return string|null + */ + public function getSynthesizedResponse() + { + return $this->container['synthesized_response']; + } + + /** + * Sets synthesized_response + * + * @param string|null $synthesized_response AI-synthesized response combining all tool results (only present when status=complete) + * + * @return self + */ + public function setSynthesizedResponse($synthesized_response) + { + if (is_null($synthesized_response)) { + throw new \InvalidArgumentException('non-nullable synthesized_response cannot be null'); + } + $this->container['synthesized_response'] = $synthesized_response; + + return $this; + } + + /** + * Gets tools + * + * @return \QuantClient\Model\GetAIOrchestrationStatus200ResponseToolsInner[]|null + */ + public function getTools() + { + return $this->container['tools']; + } + + /** + * Sets tools + * + * @param \QuantClient\Model\GetAIOrchestrationStatus200ResponseToolsInner[]|null $tools Status of individual tool executions + * + * @return self + */ + public function setTools($tools) + { + if (is_null($tools)) { + throw new \InvalidArgumentException('non-nullable tools cannot be null'); + } + $this->container['tools'] = $tools; + + return $this; + } + + /** + * Gets error + * + * @return string|null + */ + public function getError() + { + return $this->container['error']; + } + + /** + * Sets error + * + * @param string|null $error Error message (only present when status=failed) + * + * @return self + */ + public function setError($error) + { + if (is_null($error)) { + throw new \InvalidArgumentException('non-nullable error cannot be null'); + } + $this->container['error'] = $error; + + return $this; + } + + /** + * Gets created_at + * + * @return \DateTime + */ + public function getCreatedAt() + { + return $this->container['created_at']; + } + + /** + * Sets created_at + * + * @param \DateTime $created_at When orchestration was created + * + * @return self + */ + public function setCreatedAt($created_at) + { + if (is_null($created_at)) { + throw new \InvalidArgumentException('non-nullable created_at cannot be null'); + } + $this->container['created_at'] = $created_at; + + return $this; + } + + /** + * Gets completed_at + * + * @return \DateTime|null + */ + public function getCompletedAt() + { + return $this->container['completed_at']; + } + + /** + * Sets completed_at + * + * @param \DateTime|null $completed_at When orchestration completed (if status in complete or failed) + * + * @return self + */ + public function setCompletedAt($completed_at) + { + if (is_null($completed_at)) { + throw new \InvalidArgumentException('non-nullable completed_at cannot be null'); + } + $this->container['completed_at'] = $completed_at; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/Model/GetAIOrchestrationStatus200ResponseToolsInner.php b/src/Model/GetAIOrchestrationStatus200ResponseToolsInner.php new file mode 100644 index 0000000..efa9234 --- /dev/null +++ b/src/Model/GetAIOrchestrationStatus200ResponseToolsInner.php @@ -0,0 +1,583 @@ + + */ +class GetAIOrchestrationStatus200ResponseToolsInner implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'getAIOrchestrationStatus_200_response_tools_inner'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'execution_id' => 'string', + 'tool_name' => 'string', + 'status' => 'string', + 'result' => 'object', + 'error' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'execution_id' => null, + 'tool_name' => null, + 'status' => null, + 'result' => null, + 'error' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'execution_id' => false, + 'tool_name' => false, + 'status' => false, + 'result' => false, + 'error' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected array $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'execution_id' => 'executionId', + 'tool_name' => 'toolName', + 'status' => 'status', + 'result' => 'result', + 'error' => 'error' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'execution_id' => 'setExecutionId', + 'tool_name' => 'setToolName', + 'status' => 'setStatus', + 'result' => 'setResult', + 'error' => 'setError' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'execution_id' => 'getExecutionId', + 'tool_name' => 'getToolName', + 'status' => 'getStatus', + 'result' => 'getResult', + 'error' => 'getError' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + public const STATUS_PENDING = 'pending'; + public const STATUS_RUNNING = 'running'; + public const STATUS_COMPLETE = 'complete'; + public const STATUS_FAILED = 'failed'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getStatusAllowableValues() + { + return [ + self::STATUS_PENDING, + self::STATUS_RUNNING, + self::STATUS_COMPLETE, + self::STATUS_FAILED, + ]; + } + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[]|null $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('execution_id', $data ?? [], null); + $this->setIfExists('tool_name', $data ?? [], null); + $this->setIfExists('status', $data ?? [], null); + $this->setIfExists('result', $data ?? [], null); + $this->setIfExists('error', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + $allowedValues = $this->getStatusAllowableValues(); + if (!is_null($this->container['status']) && !in_array($this->container['status'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'status', must be one of '%s'", + $this->container['status'], + implode("', '", $allowedValues) + ); + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets execution_id + * + * @return string|null + */ + public function getExecutionId() + { + return $this->container['execution_id']; + } + + /** + * Sets execution_id + * + * @param string|null $execution_id execution_id + * + * @return self + */ + public function setExecutionId($execution_id) + { + if (is_null($execution_id)) { + throw new \InvalidArgumentException('non-nullable execution_id cannot be null'); + } + $this->container['execution_id'] = $execution_id; + + return $this; + } + + /** + * Gets tool_name + * + * @return string|null + */ + public function getToolName() + { + return $this->container['tool_name']; + } + + /** + * Sets tool_name + * + * @param string|null $tool_name tool_name + * + * @return self + */ + public function setToolName($tool_name) + { + if (is_null($tool_name)) { + throw new \InvalidArgumentException('non-nullable tool_name cannot be null'); + } + $this->container['tool_name'] = $tool_name; + + return $this; + } + + /** + * Gets status + * + * @return string|null + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string|null $status status + * + * @return self + */ + public function setStatus($status) + { + if (is_null($status)) { + throw new \InvalidArgumentException('non-nullable status cannot be null'); + } + $allowedValues = $this->getStatusAllowableValues(); + if (!in_array($status, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'status', must be one of '%s'", + $status, + implode("', '", $allowedValues) + ) + ); + } + $this->container['status'] = $status; + + return $this; + } + + /** + * Gets result + * + * @return object|null + */ + public function getResult() + { + return $this->container['result']; + } + + /** + * Sets result + * + * @param object|null $result Tool result (if complete) + * + * @return self + */ + public function setResult($result) + { + if (is_null($result)) { + throw new \InvalidArgumentException('non-nullable result cannot be null'); + } + $this->container['result'] = $result; + + return $this; + } + + /** + * Gets error + * + * @return string|null + */ + public function getError() + { + return $this->container['error']; + } + + /** + * Sets error + * + * @param string|null $error Error message (if failed) + * + * @return self + */ + public function setError($error) + { + if (is_null($error)) { + throw new \InvalidArgumentException('non-nullable error cannot be null'); + } + $this->container['error'] = $error; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/Model/GetAIOrchestrationStatus404Response.php b/src/Model/GetAIOrchestrationStatus404Response.php new file mode 100644 index 0000000..6c2736d --- /dev/null +++ b/src/Model/GetAIOrchestrationStatus404Response.php @@ -0,0 +1,443 @@ + + */ +class GetAIOrchestrationStatus404Response implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'getAIOrchestrationStatus_404_response'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'error' => 'string', + 'orchestration_id' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'error' => null, + 'orchestration_id' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'error' => false, + 'orchestration_id' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected array $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'error' => 'error', + 'orchestration_id' => 'orchestrationId' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'error' => 'setError', + 'orchestration_id' => 'setOrchestrationId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'error' => 'getError', + 'orchestration_id' => 'getOrchestrationId' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[]|null $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('error', $data ?? [], null); + $this->setIfExists('orchestration_id', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets error + * + * @return string|null + */ + public function getError() + { + return $this->container['error']; + } + + /** + * Sets error + * + * @param string|null $error error + * + * @return self + */ + public function setError($error) + { + if (is_null($error)) { + throw new \InvalidArgumentException('non-nullable error cannot be null'); + } + $this->container['error'] = $error; + + return $this; + } + + /** + * Gets orchestration_id + * + * @return string|null + */ + public function getOrchestrationId() + { + return $this->container['orchestration_id']; + } + + /** + * Sets orchestration_id + * + * @param string|null $orchestration_id orchestration_id + * + * @return self + */ + public function setOrchestrationId($orchestration_id) + { + if (is_null($orchestration_id)) { + throw new \InvalidArgumentException('non-nullable orchestration_id cannot be null'); + } + $this->container['orchestration_id'] = $orchestration_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/Model/GetAISession200Response.php b/src/Model/GetAISession200Response.php index 9c1dfc6..b1c178d 100644 --- a/src/Model/GetAISession200Response.php +++ b/src/Model/GetAISession200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/GetAIToolExecutionStatus200Response.php b/src/Model/GetAIToolExecutionStatus200Response.php index 2d4b90e..180af54 100644 --- a/src/Model/GetAIToolExecutionStatus200Response.php +++ b/src/Model/GetAIToolExecutionStatus200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/GetAIToolExecutionStatus200ResponseResult.php b/src/Model/GetAIToolExecutionStatus200ResponseResult.php index f261a8b..392788e 100644 --- a/src/Model/GetAIToolExecutionStatus200ResponseResult.php +++ b/src/Model/GetAIToolExecutionStatus200ResponseResult.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/GetAIToolExecutionStatus404Response.php b/src/Model/GetAIToolExecutionStatus404Response.php index 4793eee..b7f7521 100644 --- a/src/Model/GetAIToolExecutionStatus404Response.php +++ b/src/Model/GetAIToolExecutionStatus404Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/GetAIUsageStats200Response.php b/src/Model/GetAIUsageStats200Response.php index b01b032..dcd4eed 100644 --- a/src/Model/GetAIUsageStats200Response.php +++ b/src/Model/GetAIUsageStats200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/GetAIUsageStats200ResponseByModelValue.php b/src/Model/GetAIUsageStats200ResponseByModelValue.php index 7ca8eb2..1723dac 100644 --- a/src/Model/GetAIUsageStats200ResponseByModelValue.php +++ b/src/Model/GetAIUsageStats200ResponseByModelValue.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/GetDependencyGraph200Response.php b/src/Model/GetDependencyGraph200Response.php new file mode 100644 index 0000000..4bfcefa --- /dev/null +++ b/src/Model/GetDependencyGraph200Response.php @@ -0,0 +1,545 @@ + + */ +class GetDependencyGraph200Response implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'getDependencyGraph_200_response'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'task_list_id' => 'string', + 'task_count' => 'int', + 'roots' => 'string[]', + 'leaves' => 'string[]', + 'graph' => 'object' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'task_list_id' => null, + 'task_count' => null, + 'roots' => 'uuid', + 'leaves' => 'uuid', + 'graph' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'task_list_id' => false, + 'task_count' => false, + 'roots' => false, + 'leaves' => false, + 'graph' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected array $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'task_list_id' => 'taskListId', + 'task_count' => 'taskCount', + 'roots' => 'roots', + 'leaves' => 'leaves', + 'graph' => 'graph' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'task_list_id' => 'setTaskListId', + 'task_count' => 'setTaskCount', + 'roots' => 'setRoots', + 'leaves' => 'setLeaves', + 'graph' => 'setGraph' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'task_list_id' => 'getTaskListId', + 'task_count' => 'getTaskCount', + 'roots' => 'getRoots', + 'leaves' => 'getLeaves', + 'graph' => 'getGraph' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[]|null $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('task_list_id', $data ?? [], null); + $this->setIfExists('task_count', $data ?? [], null); + $this->setIfExists('roots', $data ?? [], null); + $this->setIfExists('leaves', $data ?? [], null); + $this->setIfExists('graph', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets task_list_id + * + * @return string|null + */ + public function getTaskListId() + { + return $this->container['task_list_id']; + } + + /** + * Sets task_list_id + * + * @param string|null $task_list_id task_list_id + * + * @return self + */ + public function setTaskListId($task_list_id) + { + if (is_null($task_list_id)) { + throw new \InvalidArgumentException('non-nullable task_list_id cannot be null'); + } + $this->container['task_list_id'] = $task_list_id; + + return $this; + } + + /** + * Gets task_count + * + * @return int|null + */ + public function getTaskCount() + { + return $this->container['task_count']; + } + + /** + * Sets task_count + * + * @param int|null $task_count task_count + * + * @return self + */ + public function setTaskCount($task_count) + { + if (is_null($task_count)) { + throw new \InvalidArgumentException('non-nullable task_count cannot be null'); + } + $this->container['task_count'] = $task_count; + + return $this; + } + + /** + * Gets roots + * + * @return string[]|null + */ + public function getRoots() + { + return $this->container['roots']; + } + + /** + * Sets roots + * + * @param string[]|null $roots Task IDs with no dependencies + * + * @return self + */ + public function setRoots($roots) + { + if (is_null($roots)) { + throw new \InvalidArgumentException('non-nullable roots cannot be null'); + } + $this->container['roots'] = $roots; + + return $this; + } + + /** + * Gets leaves + * + * @return string[]|null + */ + public function getLeaves() + { + return $this->container['leaves']; + } + + /** + * Sets leaves + * + * @param string[]|null $leaves Task IDs with no dependents + * + * @return self + */ + public function setLeaves($leaves) + { + if (is_null($leaves)) { + throw new \InvalidArgumentException('non-nullable leaves cannot be null'); + } + $this->container['leaves'] = $leaves; + + return $this; + } + + /** + * Gets graph + * + * @return object|null + */ + public function getGraph() + { + return $this->container['graph']; + } + + /** + * Sets graph + * + * @param object|null $graph Adjacency list with task summaries, dependsOn, and dependents arrays + * + * @return self + */ + public function setGraph($graph) + { + if (is_null($graph)) { + throw new \InvalidArgumentException('non-nullable graph cannot be null'); + } + $this->container['graph'] = $graph; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/Model/GetDurableExecutionStatus200Response.php b/src/Model/GetDurableExecutionStatus200Response.php new file mode 100644 index 0000000..4f0de20 --- /dev/null +++ b/src/Model/GetDurableExecutionStatus200Response.php @@ -0,0 +1,687 @@ + + */ +class GetDurableExecutionStatus200Response implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'getDurableExecutionStatus_200_response'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'request_id' => 'string', + 'execution_arn' => 'string', + 'status' => 'string', + 'aws_status' => 'string', + 'callback_id' => 'string', + 'pending_tools' => '\QuantClient\Model\GetDurableExecutionStatus200ResponsePendingToolsInner[]', + 'result' => '\QuantClient\Model\GetDurableExecutionStatus200ResponseResult', + 'error' => '\QuantClient\Model\GetDurableExecutionStatus200ResponseError' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'request_id' => null, + 'execution_arn' => null, + 'status' => null, + 'aws_status' => null, + 'callback_id' => null, + 'pending_tools' => null, + 'result' => null, + 'error' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'request_id' => false, + 'execution_arn' => false, + 'status' => false, + 'aws_status' => false, + 'callback_id' => false, + 'pending_tools' => false, + 'result' => false, + 'error' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected array $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'request_id' => 'requestId', + 'execution_arn' => 'executionArn', + 'status' => 'status', + 'aws_status' => 'awsStatus', + 'callback_id' => 'callbackId', + 'pending_tools' => 'pendingTools', + 'result' => 'result', + 'error' => 'error' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'request_id' => 'setRequestId', + 'execution_arn' => 'setExecutionArn', + 'status' => 'setStatus', + 'aws_status' => 'setAwsStatus', + 'callback_id' => 'setCallbackId', + 'pending_tools' => 'setPendingTools', + 'result' => 'setResult', + 'error' => 'setError' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'request_id' => 'getRequestId', + 'execution_arn' => 'getExecutionArn', + 'status' => 'getStatus', + 'aws_status' => 'getAwsStatus', + 'callback_id' => 'getCallbackId', + 'pending_tools' => 'getPendingTools', + 'result' => 'getResult', + 'error' => 'getError' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + public const STATUS_PENDING = 'pending'; + public const STATUS_RUNNING = 'running'; + public const STATUS_WAITING_CALLBACK = 'waiting_callback'; + public const STATUS_COMPLETE = 'complete'; + public const STATUS_FAILED = 'failed'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getStatusAllowableValues() + { + return [ + self::STATUS_PENDING, + self::STATUS_RUNNING, + self::STATUS_WAITING_CALLBACK, + self::STATUS_COMPLETE, + self::STATUS_FAILED, + ]; + } + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[]|null $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('request_id', $data ?? [], null); + $this->setIfExists('execution_arn', $data ?? [], null); + $this->setIfExists('status', $data ?? [], null); + $this->setIfExists('aws_status', $data ?? [], null); + $this->setIfExists('callback_id', $data ?? [], null); + $this->setIfExists('pending_tools', $data ?? [], null); + $this->setIfExists('result', $data ?? [], null); + $this->setIfExists('error', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + $allowedValues = $this->getStatusAllowableValues(); + if (!is_null($this->container['status']) && !in_array($this->container['status'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'status', must be one of '%s'", + $this->container['status'], + implode("', '", $allowedValues) + ); + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets request_id + * + * @return string|null + */ + public function getRequestId() + { + return $this->container['request_id']; + } + + /** + * Sets request_id + * + * @param string|null $request_id request_id + * + * @return self + */ + public function setRequestId($request_id) + { + if (is_null($request_id)) { + throw new \InvalidArgumentException('non-nullable request_id cannot be null'); + } + $this->container['request_id'] = $request_id; + + return $this; + } + + /** + * Gets execution_arn + * + * @return string|null + */ + public function getExecutionArn() + { + return $this->container['execution_arn']; + } + + /** + * Sets execution_arn + * + * @param string|null $execution_arn execution_arn + * + * @return self + */ + public function setExecutionArn($execution_arn) + { + if (is_null($execution_arn)) { + throw new \InvalidArgumentException('non-nullable execution_arn cannot be null'); + } + $this->container['execution_arn'] = $execution_arn; + + return $this; + } + + /** + * Gets status + * + * @return string|null + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string|null $status status + * + * @return self + */ + public function setStatus($status) + { + if (is_null($status)) { + throw new \InvalidArgumentException('non-nullable status cannot be null'); + } + $allowedValues = $this->getStatusAllowableValues(); + if (!in_array($status, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'status', must be one of '%s'", + $status, + implode("', '", $allowedValues) + ) + ); + } + $this->container['status'] = $status; + + return $this; + } + + /** + * Gets aws_status + * + * @return string|null + */ + public function getAwsStatus() + { + return $this->container['aws_status']; + } + + /** + * Sets aws_status + * + * @param string|null $aws_status Raw AWS Step Functions status + * + * @return self + */ + public function setAwsStatus($aws_status) + { + if (is_null($aws_status)) { + throw new \InvalidArgumentException('non-nullable aws_status cannot be null'); + } + $this->container['aws_status'] = $aws_status; + + return $this; + } + + /** + * Gets callback_id + * + * @return string|null + */ + public function getCallbackId() + { + return $this->container['callback_id']; + } + + /** + * Sets callback_id + * + * @param string|null $callback_id Present when status is waiting_callback - use with /chat/callback + * + * @return self + */ + public function setCallbackId($callback_id) + { + if (is_null($callback_id)) { + throw new \InvalidArgumentException('non-nullable callback_id cannot be null'); + } + $this->container['callback_id'] = $callback_id; + + return $this; + } + + /** + * Gets pending_tools + * + * @return \QuantClient\Model\GetDurableExecutionStatus200ResponsePendingToolsInner[]|null + */ + public function getPendingTools() + { + return $this->container['pending_tools']; + } + + /** + * Sets pending_tools + * + * @param \QuantClient\Model\GetDurableExecutionStatus200ResponsePendingToolsInner[]|null $pending_tools Present when status is waiting_callback - tools waiting for results + * + * @return self + */ + public function setPendingTools($pending_tools) + { + if (is_null($pending_tools)) { + throw new \InvalidArgumentException('non-nullable pending_tools cannot be null'); + } + $this->container['pending_tools'] = $pending_tools; + + return $this; + } + + /** + * Gets result + * + * @return \QuantClient\Model\GetDurableExecutionStatus200ResponseResult|null + */ + public function getResult() + { + return $this->container['result']; + } + + /** + * Sets result + * + * @param \QuantClient\Model\GetDurableExecutionStatus200ResponseResult|null $result result + * + * @return self + */ + public function setResult($result) + { + if (is_null($result)) { + throw new \InvalidArgumentException('non-nullable result cannot be null'); + } + $this->container['result'] = $result; + + return $this; + } + + /** + * Gets error + * + * @return \QuantClient\Model\GetDurableExecutionStatus200ResponseError|null + */ + public function getError() + { + return $this->container['error']; + } + + /** + * Sets error + * + * @param \QuantClient\Model\GetDurableExecutionStatus200ResponseError|null $error error + * + * @return self + */ + public function setError($error) + { + if (is_null($error)) { + throw new \InvalidArgumentException('non-nullable error cannot be null'); + } + $this->container['error'] = $error; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/Model/GetDurableExecutionStatus200ResponseError.php b/src/Model/GetDurableExecutionStatus200ResponseError.php new file mode 100644 index 0000000..2e58ffa --- /dev/null +++ b/src/Model/GetDurableExecutionStatus200ResponseError.php @@ -0,0 +1,444 @@ + + */ +class GetDurableExecutionStatus200ResponseError implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'getDurableExecutionStatus_200_response_error'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'error_message' => 'string', + 'error_type' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'error_message' => null, + 'error_type' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'error_message' => false, + 'error_type' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected array $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'error_message' => 'ErrorMessage', + 'error_type' => 'ErrorType' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'error_message' => 'setErrorMessage', + 'error_type' => 'setErrorType' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'error_message' => 'getErrorMessage', + 'error_type' => 'getErrorType' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[]|null $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('error_message', $data ?? [], null); + $this->setIfExists('error_type', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets error_message + * + * @return string|null + */ + public function getErrorMessage() + { + return $this->container['error_message']; + } + + /** + * Sets error_message + * + * @param string|null $error_message error_message + * + * @return self + */ + public function setErrorMessage($error_message) + { + if (is_null($error_message)) { + throw new \InvalidArgumentException('non-nullable error_message cannot be null'); + } + $this->container['error_message'] = $error_message; + + return $this; + } + + /** + * Gets error_type + * + * @return string|null + */ + public function getErrorType() + { + return $this->container['error_type']; + } + + /** + * Sets error_type + * + * @param string|null $error_type error_type + * + * @return self + */ + public function setErrorType($error_type) + { + if (is_null($error_type)) { + throw new \InvalidArgumentException('non-nullable error_type cannot be null'); + } + $this->container['error_type'] = $error_type; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/Model/QueryVectorCollection200ResponseResultsInnerMetadata.php b/src/Model/GetDurableExecutionStatus200ResponsePendingToolsInner.php similarity index 79% rename from src/Model/QueryVectorCollection200ResponseResultsInnerMetadata.php rename to src/Model/GetDurableExecutionStatus200ResponsePendingToolsInner.php index e8a0444..ee4070b 100644 --- a/src/Model/QueryVectorCollection200ResponseResultsInnerMetadata.php +++ b/src/Model/GetDurableExecutionStatus200ResponsePendingToolsInner.php @@ -1,6 +1,6 @@ */ -class QueryVectorCollection200ResponseResultsInnerMetadata implements ModelInterface, ArrayAccess, \JsonSerializable +class GetDurableExecutionStatus200ResponsePendingToolsInner implements ModelInterface, ArrayAccess, \JsonSerializable { public const DISCRIMINATOR = null; @@ -49,7 +49,7 @@ class QueryVectorCollection200ResponseResultsInnerMetadata implements ModelInter * * @var string */ - protected static $openAPIModelName = 'queryVectorCollection_200_response_results_inner_metadata'; + protected static $openAPIModelName = 'getDurableExecutionStatus_200_response_pendingTools_inner'; /** * Array of property to type mappings. Used for (de)serialization @@ -57,9 +57,9 @@ class QueryVectorCollection200ResponseResultsInnerMetadata implements ModelInter * @var string[] */ protected static $openAPITypes = [ - 'title' => 'string', - 'source_url' => 'string', - 'section' => 'string' + 'name' => 'string', + 'tool_use_id' => 'string', + 'input' => 'object' ]; /** @@ -70,9 +70,9 @@ class QueryVectorCollection200ResponseResultsInnerMetadata implements ModelInter * @psalm-var array */ protected static $openAPIFormats = [ - 'title' => null, - 'source_url' => null, - 'section' => null + 'name' => null, + 'tool_use_id' => null, + 'input' => null ]; /** @@ -81,9 +81,9 @@ class QueryVectorCollection200ResponseResultsInnerMetadata implements ModelInter * @var boolean[] */ protected static array $openAPINullables = [ - 'title' => false, - 'source_url' => false, - 'section' => false + 'name' => false, + 'tool_use_id' => false, + 'input' => false ]; /** @@ -172,9 +172,9 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'title' => 'title', - 'source_url' => 'source_url', - 'section' => 'section' + 'name' => 'name', + 'tool_use_id' => 'toolUseId', + 'input' => 'input' ]; /** @@ -183,9 +183,9 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'title' => 'setTitle', - 'source_url' => 'setSourceUrl', - 'section' => 'setSection' + 'name' => 'setName', + 'tool_use_id' => 'setToolUseId', + 'input' => 'setInput' ]; /** @@ -194,9 +194,9 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'title' => 'getTitle', - 'source_url' => 'getSourceUrl', - 'section' => 'getSection' + 'name' => 'getName', + 'tool_use_id' => 'getToolUseId', + 'input' => 'getInput' ]; /** @@ -256,9 +256,9 @@ public function getModelName() */ public function __construct(?array $data = null) { - $this->setIfExists('title', $data ?? [], null); - $this->setIfExists('source_url', $data ?? [], null); - $this->setIfExists('section', $data ?? [], null); + $this->setIfExists('name', $data ?? [], null); + $this->setIfExists('tool_use_id', $data ?? [], null); + $this->setIfExists('input', $data ?? [], null); } /** @@ -304,82 +304,82 @@ public function valid() /** - * Gets title + * Gets name * * @return string|null */ - public function getTitle() + public function getName() { - return $this->container['title']; + return $this->container['name']; } /** - * Sets title + * Sets name * - * @param string|null $title title + * @param string|null $name name * * @return self */ - public function setTitle($title) + public function setName($name) { - if (is_null($title)) { - throw new \InvalidArgumentException('non-nullable title cannot be null'); + if (is_null($name)) { + throw new \InvalidArgumentException('non-nullable name cannot be null'); } - $this->container['title'] = $title; + $this->container['name'] = $name; return $this; } /** - * Gets source_url + * Gets tool_use_id * * @return string|null */ - public function getSourceUrl() + public function getToolUseId() { - return $this->container['source_url']; + return $this->container['tool_use_id']; } /** - * Sets source_url + * Sets tool_use_id * - * @param string|null $source_url source_url + * @param string|null $tool_use_id tool_use_id * * @return self */ - public function setSourceUrl($source_url) + public function setToolUseId($tool_use_id) { - if (is_null($source_url)) { - throw new \InvalidArgumentException('non-nullable source_url cannot be null'); + if (is_null($tool_use_id)) { + throw new \InvalidArgumentException('non-nullable tool_use_id cannot be null'); } - $this->container['source_url'] = $source_url; + $this->container['tool_use_id'] = $tool_use_id; return $this; } /** - * Gets section + * Gets input * - * @return string|null + * @return object|null */ - public function getSection() + public function getInput() { - return $this->container['section']; + return $this->container['input']; } /** - * Sets section + * Sets input * - * @param string|null $section section + * @param object|null $input input * * @return self */ - public function setSection($section) + public function setInput($input) { - if (is_null($section)) { - throw new \InvalidArgumentException('non-nullable section cannot be null'); + if (is_null($input)) { + throw new \InvalidArgumentException('non-nullable input cannot be null'); } - $this->container['section'] = $section; + $this->container['input'] = $input; return $this; } diff --git a/src/Model/GetDurableExecutionStatus200ResponseResult.php b/src/Model/GetDurableExecutionStatus200ResponseResult.php new file mode 100644 index 0000000..c71ee26 --- /dev/null +++ b/src/Model/GetDurableExecutionStatus200ResponseResult.php @@ -0,0 +1,478 @@ + + */ +class GetDurableExecutionStatus200ResponseResult implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'getDurableExecutionStatus_200_response_result'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'response' => '\QuantClient\Model\GetDurableExecutionStatus200ResponseResultResponse', + 'usage' => '\QuantClient\Model\GetDurableExecutionStatus200ResponseResultUsage', + 'tool_executions' => 'object[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'response' => null, + 'usage' => null, + 'tool_executions' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'response' => false, + 'usage' => false, + 'tool_executions' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected array $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'response' => 'response', + 'usage' => 'usage', + 'tool_executions' => 'toolExecutions' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'response' => 'setResponse', + 'usage' => 'setUsage', + 'tool_executions' => 'setToolExecutions' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'response' => 'getResponse', + 'usage' => 'getUsage', + 'tool_executions' => 'getToolExecutions' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[]|null $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('response', $data ?? [], null); + $this->setIfExists('usage', $data ?? [], null); + $this->setIfExists('tool_executions', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets response + * + * @return \QuantClient\Model\GetDurableExecutionStatus200ResponseResultResponse|null + */ + public function getResponse() + { + return $this->container['response']; + } + + /** + * Sets response + * + * @param \QuantClient\Model\GetDurableExecutionStatus200ResponseResultResponse|null $response response + * + * @return self + */ + public function setResponse($response) + { + if (is_null($response)) { + throw new \InvalidArgumentException('non-nullable response cannot be null'); + } + $this->container['response'] = $response; + + return $this; + } + + /** + * Gets usage + * + * @return \QuantClient\Model\GetDurableExecutionStatus200ResponseResultUsage|null + */ + public function getUsage() + { + return $this->container['usage']; + } + + /** + * Sets usage + * + * @param \QuantClient\Model\GetDurableExecutionStatus200ResponseResultUsage|null $usage usage + * + * @return self + */ + public function setUsage($usage) + { + if (is_null($usage)) { + throw new \InvalidArgumentException('non-nullable usage cannot be null'); + } + $this->container['usage'] = $usage; + + return $this; + } + + /** + * Gets tool_executions + * + * @return object[]|null + */ + public function getToolExecutions() + { + return $this->container['tool_executions']; + } + + /** + * Sets tool_executions + * + * @param object[]|null $tool_executions tool_executions + * + * @return self + */ + public function setToolExecutions($tool_executions) + { + if (is_null($tool_executions)) { + throw new \InvalidArgumentException('non-nullable tool_executions cannot be null'); + } + $this->container['tool_executions'] = $tool_executions; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/Model/GetDurableExecutionStatus200ResponseResultResponse.php b/src/Model/GetDurableExecutionStatus200ResponseResultResponse.php new file mode 100644 index 0000000..faa57e6 --- /dev/null +++ b/src/Model/GetDurableExecutionStatus200ResponseResultResponse.php @@ -0,0 +1,443 @@ + + */ +class GetDurableExecutionStatus200ResponseResultResponse implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'getDurableExecutionStatus_200_response_result_response'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'role' => 'string', + 'content' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'role' => null, + 'content' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'role' => false, + 'content' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected array $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'role' => 'role', + 'content' => 'content' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'role' => 'setRole', + 'content' => 'setContent' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'role' => 'getRole', + 'content' => 'getContent' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[]|null $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('role', $data ?? [], null); + $this->setIfExists('content', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets role + * + * @return string|null + */ + public function getRole() + { + return $this->container['role']; + } + + /** + * Sets role + * + * @param string|null $role role + * + * @return self + */ + public function setRole($role) + { + if (is_null($role)) { + throw new \InvalidArgumentException('non-nullable role cannot be null'); + } + $this->container['role'] = $role; + + return $this; + } + + /** + * Gets content + * + * @return string|null + */ + public function getContent() + { + return $this->container['content']; + } + + /** + * Sets content + * + * @param string|null $content content + * + * @return self + */ + public function setContent($content) + { + if (is_null($content)) { + throw new \InvalidArgumentException('non-nullable content cannot be null'); + } + $this->container['content'] = $content; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/Model/GetDurableExecutionStatus200ResponseResultUsage.php b/src/Model/GetDurableExecutionStatus200ResponseResultUsage.php new file mode 100644 index 0000000..13225b4 --- /dev/null +++ b/src/Model/GetDurableExecutionStatus200ResponseResultUsage.php @@ -0,0 +1,477 @@ + + */ +class GetDurableExecutionStatus200ResponseResultUsage implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'getDurableExecutionStatus_200_response_result_usage'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'input_tokens' => 'int', + 'output_tokens' => 'int', + 'total_tokens' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'input_tokens' => null, + 'output_tokens' => null, + 'total_tokens' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'input_tokens' => false, + 'output_tokens' => false, + 'total_tokens' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected array $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'input_tokens' => 'inputTokens', + 'output_tokens' => 'outputTokens', + 'total_tokens' => 'totalTokens' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'input_tokens' => 'setInputTokens', + 'output_tokens' => 'setOutputTokens', + 'total_tokens' => 'setTotalTokens' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'input_tokens' => 'getInputTokens', + 'output_tokens' => 'getOutputTokens', + 'total_tokens' => 'getTotalTokens' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[]|null $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('input_tokens', $data ?? [], null); + $this->setIfExists('output_tokens', $data ?? [], null); + $this->setIfExists('total_tokens', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets input_tokens + * + * @return int|null + */ + public function getInputTokens() + { + return $this->container['input_tokens']; + } + + /** + * Sets input_tokens + * + * @param int|null $input_tokens input_tokens + * + * @return self + */ + public function setInputTokens($input_tokens) + { + if (is_null($input_tokens)) { + throw new \InvalidArgumentException('non-nullable input_tokens cannot be null'); + } + $this->container['input_tokens'] = $input_tokens; + + return $this; + } + + /** + * Gets output_tokens + * + * @return int|null + */ + public function getOutputTokens() + { + return $this->container['output_tokens']; + } + + /** + * Sets output_tokens + * + * @param int|null $output_tokens output_tokens + * + * @return self + */ + public function setOutputTokens($output_tokens) + { + if (is_null($output_tokens)) { + throw new \InvalidArgumentException('non-nullable output_tokens cannot be null'); + } + $this->container['output_tokens'] = $output_tokens; + + return $this; + } + + /** + * Gets total_tokens + * + * @return int|null + */ + public function getTotalTokens() + { + return $this->container['total_tokens']; + } + + /** + * Sets total_tokens + * + * @param int|null $total_tokens total_tokens + * + * @return self + */ + public function setTotalTokens($total_tokens) + { + if (is_null($total_tokens)) { + throw new \InvalidArgumentException('non-nullable total_tokens cannot be null'); + } + $this->container['total_tokens'] = $total_tokens; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/Model/GetEcrLoginCredentials200Response.php b/src/Model/GetEcrLoginCredentials200Response.php index a72bd51..861105e 100644 --- a/src/Model/GetEcrLoginCredentials200Response.php +++ b/src/Model/GetEcrLoginCredentials200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/GetEnvironmentLogs200Response.php b/src/Model/GetEnvironmentLogs200Response.php index 2a86b9d..e0bdc34 100644 --- a/src/Model/GetEnvironmentLogs200Response.php +++ b/src/Model/GetEnvironmentLogs200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/GetEnvironmentLogs200ResponseLogEventsInner.php b/src/Model/GetEnvironmentLogs200ResponseLogEventsInner.php index 3b0cfc7..e4fa05a 100644 --- a/src/Model/GetEnvironmentLogs200ResponseLogEventsInner.php +++ b/src/Model/GetEnvironmentLogs200ResponseLogEventsInner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/GetFile200Response.php b/src/Model/GetFile200Response.php new file mode 100644 index 0000000..eb8c41c --- /dev/null +++ b/src/Model/GetFile200Response.php @@ -0,0 +1,647 @@ + + */ +class GetFile200Response implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'getFile_200_response'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'file_id' => 'string', + 's3_uri' => 'string', + 'url' => 'string', + 'filename' => 'string', + 'content_type' => 'string', + 'size' => 'int', + 'metadata' => 'object', + 'created_at' => '\DateTime' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'file_id' => 'uuid', + 's3_uri' => null, + 'url' => 'uri', + 'filename' => null, + 'content_type' => null, + 'size' => null, + 'metadata' => null, + 'created_at' => 'date-time' + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'file_id' => false, + 's3_uri' => false, + 'url' => false, + 'filename' => false, + 'content_type' => false, + 'size' => false, + 'metadata' => false, + 'created_at' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected array $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'file_id' => 'fileId', + 's3_uri' => 's3Uri', + 'url' => 'url', + 'filename' => 'filename', + 'content_type' => 'contentType', + 'size' => 'size', + 'metadata' => 'metadata', + 'created_at' => 'createdAt' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'file_id' => 'setFileId', + 's3_uri' => 'setS3Uri', + 'url' => 'setUrl', + 'filename' => 'setFilename', + 'content_type' => 'setContentType', + 'size' => 'setSize', + 'metadata' => 'setMetadata', + 'created_at' => 'setCreatedAt' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'file_id' => 'getFileId', + 's3_uri' => 'getS3Uri', + 'url' => 'getUrl', + 'filename' => 'getFilename', + 'content_type' => 'getContentType', + 'size' => 'getSize', + 'metadata' => 'getMetadata', + 'created_at' => 'getCreatedAt' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[]|null $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('file_id', $data ?? [], null); + $this->setIfExists('s3_uri', $data ?? [], null); + $this->setIfExists('url', $data ?? [], null); + $this->setIfExists('filename', $data ?? [], null); + $this->setIfExists('content_type', $data ?? [], null); + $this->setIfExists('size', $data ?? [], null); + $this->setIfExists('metadata', $data ?? [], null); + $this->setIfExists('created_at', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets file_id + * + * @return string|null + */ + public function getFileId() + { + return $this->container['file_id']; + } + + /** + * Sets file_id + * + * @param string|null $file_id file_id + * + * @return self + */ + public function setFileId($file_id) + { + if (is_null($file_id)) { + throw new \InvalidArgumentException('non-nullable file_id cannot be null'); + } + $this->container['file_id'] = $file_id; + + return $this; + } + + /** + * Gets s3_uri + * + * @return string|null + */ + public function getS3Uri() + { + return $this->container['s3_uri']; + } + + /** + * Sets s3_uri + * + * @param string|null $s3_uri s3_uri + * + * @return self + */ + public function setS3Uri($s3_uri) + { + if (is_null($s3_uri)) { + throw new \InvalidArgumentException('non-nullable s3_uri cannot be null'); + } + $this->container['s3_uri'] = $s3_uri; + + return $this; + } + + /** + * Gets url + * + * @return string|null + */ + public function getUrl() + { + return $this->container['url']; + } + + /** + * Sets url + * + * @param string|null $url Presigned download URL (1 hour) + * + * @return self + */ + public function setUrl($url) + { + if (is_null($url)) { + throw new \InvalidArgumentException('non-nullable url cannot be null'); + } + $this->container['url'] = $url; + + return $this; + } + + /** + * Gets filename + * + * @return string|null + */ + public function getFilename() + { + return $this->container['filename']; + } + + /** + * Sets filename + * + * @param string|null $filename filename + * + * @return self + */ + public function setFilename($filename) + { + if (is_null($filename)) { + throw new \InvalidArgumentException('non-nullable filename cannot be null'); + } + $this->container['filename'] = $filename; + + return $this; + } + + /** + * Gets content_type + * + * @return string|null + */ + public function getContentType() + { + return $this->container['content_type']; + } + + /** + * Sets content_type + * + * @param string|null $content_type content_type + * + * @return self + */ + public function setContentType($content_type) + { + if (is_null($content_type)) { + throw new \InvalidArgumentException('non-nullable content_type cannot be null'); + } + $this->container['content_type'] = $content_type; + + return $this; + } + + /** + * Gets size + * + * @return int|null + */ + public function getSize() + { + return $this->container['size']; + } + + /** + * Sets size + * + * @param int|null $size size + * + * @return self + */ + public function setSize($size) + { + if (is_null($size)) { + throw new \InvalidArgumentException('non-nullable size cannot be null'); + } + $this->container['size'] = $size; + + return $this; + } + + /** + * Gets metadata + * + * @return object|null + */ + public function getMetadata() + { + return $this->container['metadata']; + } + + /** + * Sets metadata + * + * @param object|null $metadata metadata + * + * @return self + */ + public function setMetadata($metadata) + { + if (is_null($metadata)) { + throw new \InvalidArgumentException('non-nullable metadata cannot be null'); + } + $this->container['metadata'] = $metadata; + + return $this; + } + + /** + * Gets created_at + * + * @return \DateTime|null + */ + public function getCreatedAt() + { + return $this->container['created_at']; + } + + /** + * Sets created_at + * + * @param \DateTime|null $created_at created_at + * + * @return self + */ + public function setCreatedAt($created_at) + { + if (is_null($created_at)) { + throw new \InvalidArgumentException('non-nullable created_at cannot be null'); + } + $this->container['created_at'] = $created_at; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/Model/GetSshAccessCredentials200Response.php b/src/Model/GetSshAccessCredentials200Response.php index 37fcacf..30abf7f 100644 --- a/src/Model/GetSshAccessCredentials200Response.php +++ b/src/Model/GetSshAccessCredentials200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/GetSshAccessCredentials200ResponseCredentials.php b/src/Model/GetSshAccessCredentials200ResponseCredentials.php index 79aa433..d8d915a 100644 --- a/src/Model/GetSshAccessCredentials200ResponseCredentials.php +++ b/src/Model/GetSshAccessCredentials200ResponseCredentials.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/GetTask200Response.php b/src/Model/GetTask200Response.php new file mode 100644 index 0000000..8c09371 --- /dev/null +++ b/src/Model/GetTask200Response.php @@ -0,0 +1,1326 @@ + + */ +class GetTask200Response implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'getTask_200_response'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'task_id' => 'string', + 'org_id' => 'string', + 'task_list_id' => 'string', + 'title' => 'string', + 'description' => 'string', + 'status' => 'string', + 'assigned_agent_id' => 'string', + 'created_by_agent_id' => 'string', + 'depends_on' => 'string[]', + 'metadata' => 'object', + 'progress' => 'float', + 'progress_message' => 'string', + 'result' => 'object', + 'error' => 'string', + 'retry_count' => 'int', + 'max_retries' => 'int', + 'created_at' => 'int', + 'updated_at' => 'int', + 'started_at' => 'int', + 'completed_at' => 'int', + 'expires_at' => 'int', + 'blocked_reason' => 'string', + 'blocked_by_task_ids' => 'string[]', + 'blocked_at' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'task_id' => 'uuid', + 'org_id' => null, + 'task_list_id' => null, + 'title' => null, + 'description' => null, + 'status' => null, + 'assigned_agent_id' => null, + 'created_by_agent_id' => null, + 'depends_on' => 'uuid', + 'metadata' => null, + 'progress' => 'float', + 'progress_message' => null, + 'result' => null, + 'error' => null, + 'retry_count' => null, + 'max_retries' => null, + 'created_at' => 'int64', + 'updated_at' => 'int64', + 'started_at' => 'int64', + 'completed_at' => 'int64', + 'expires_at' => 'int64', + 'blocked_reason' => null, + 'blocked_by_task_ids' => 'uuid', + 'blocked_at' => 'int64' + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'task_id' => false, + 'org_id' => false, + 'task_list_id' => true, + 'title' => false, + 'description' => false, + 'status' => false, + 'assigned_agent_id' => true, + 'created_by_agent_id' => true, + 'depends_on' => false, + 'metadata' => false, + 'progress' => false, + 'progress_message' => false, + 'result' => true, + 'error' => true, + 'retry_count' => false, + 'max_retries' => false, + 'created_at' => false, + 'updated_at' => false, + 'started_at' => true, + 'completed_at' => true, + 'expires_at' => true, + 'blocked_reason' => true, + 'blocked_by_task_ids' => true, + 'blocked_at' => true + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected array $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'task_id' => 'taskId', + 'org_id' => 'orgId', + 'task_list_id' => 'taskListId', + 'title' => 'title', + 'description' => 'description', + 'status' => 'status', + 'assigned_agent_id' => 'assignedAgentId', + 'created_by_agent_id' => 'createdByAgentId', + 'depends_on' => 'dependsOn', + 'metadata' => 'metadata', + 'progress' => 'progress', + 'progress_message' => 'progressMessage', + 'result' => 'result', + 'error' => 'error', + 'retry_count' => 'retryCount', + 'max_retries' => 'maxRetries', + 'created_at' => 'createdAt', + 'updated_at' => 'updatedAt', + 'started_at' => 'startedAt', + 'completed_at' => 'completedAt', + 'expires_at' => 'expiresAt', + 'blocked_reason' => 'blockedReason', + 'blocked_by_task_ids' => 'blockedByTaskIds', + 'blocked_at' => 'blockedAt' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'task_id' => 'setTaskId', + 'org_id' => 'setOrgId', + 'task_list_id' => 'setTaskListId', + 'title' => 'setTitle', + 'description' => 'setDescription', + 'status' => 'setStatus', + 'assigned_agent_id' => 'setAssignedAgentId', + 'created_by_agent_id' => 'setCreatedByAgentId', + 'depends_on' => 'setDependsOn', + 'metadata' => 'setMetadata', + 'progress' => 'setProgress', + 'progress_message' => 'setProgressMessage', + 'result' => 'setResult', + 'error' => 'setError', + 'retry_count' => 'setRetryCount', + 'max_retries' => 'setMaxRetries', + 'created_at' => 'setCreatedAt', + 'updated_at' => 'setUpdatedAt', + 'started_at' => 'setStartedAt', + 'completed_at' => 'setCompletedAt', + 'expires_at' => 'setExpiresAt', + 'blocked_reason' => 'setBlockedReason', + 'blocked_by_task_ids' => 'setBlockedByTaskIds', + 'blocked_at' => 'setBlockedAt' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'task_id' => 'getTaskId', + 'org_id' => 'getOrgId', + 'task_list_id' => 'getTaskListId', + 'title' => 'getTitle', + 'description' => 'getDescription', + 'status' => 'getStatus', + 'assigned_agent_id' => 'getAssignedAgentId', + 'created_by_agent_id' => 'getCreatedByAgentId', + 'depends_on' => 'getDependsOn', + 'metadata' => 'getMetadata', + 'progress' => 'getProgress', + 'progress_message' => 'getProgressMessage', + 'result' => 'getResult', + 'error' => 'getError', + 'retry_count' => 'getRetryCount', + 'max_retries' => 'getMaxRetries', + 'created_at' => 'getCreatedAt', + 'updated_at' => 'getUpdatedAt', + 'started_at' => 'getStartedAt', + 'completed_at' => 'getCompletedAt', + 'expires_at' => 'getExpiresAt', + 'blocked_reason' => 'getBlockedReason', + 'blocked_by_task_ids' => 'getBlockedByTaskIds', + 'blocked_at' => 'getBlockedAt' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + public const STATUS_PENDING = 'pending'; + public const STATUS_IN_PROGRESS = 'in_progress'; + public const STATUS_COMPLETED = 'completed'; + public const STATUS_FAILED = 'failed'; + public const STATUS_CANCELLED = 'cancelled'; + public const STATUS_BLOCKED = 'blocked'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getStatusAllowableValues() + { + return [ + self::STATUS_PENDING, + self::STATUS_IN_PROGRESS, + self::STATUS_COMPLETED, + self::STATUS_FAILED, + self::STATUS_CANCELLED, + self::STATUS_BLOCKED, + ]; + } + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[]|null $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('task_id', $data ?? [], null); + $this->setIfExists('org_id', $data ?? [], null); + $this->setIfExists('task_list_id', $data ?? [], null); + $this->setIfExists('title', $data ?? [], null); + $this->setIfExists('description', $data ?? [], null); + $this->setIfExists('status', $data ?? [], null); + $this->setIfExists('assigned_agent_id', $data ?? [], null); + $this->setIfExists('created_by_agent_id', $data ?? [], null); + $this->setIfExists('depends_on', $data ?? [], null); + $this->setIfExists('metadata', $data ?? [], null); + $this->setIfExists('progress', $data ?? [], null); + $this->setIfExists('progress_message', $data ?? [], null); + $this->setIfExists('result', $data ?? [], null); + $this->setIfExists('error', $data ?? [], null); + $this->setIfExists('retry_count', $data ?? [], null); + $this->setIfExists('max_retries', $data ?? [], null); + $this->setIfExists('created_at', $data ?? [], null); + $this->setIfExists('updated_at', $data ?? [], null); + $this->setIfExists('started_at', $data ?? [], null); + $this->setIfExists('completed_at', $data ?? [], null); + $this->setIfExists('expires_at', $data ?? [], null); + $this->setIfExists('blocked_reason', $data ?? [], null); + $this->setIfExists('blocked_by_task_ids', $data ?? [], null); + $this->setIfExists('blocked_at', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + $allowedValues = $this->getStatusAllowableValues(); + if (!is_null($this->container['status']) && !in_array($this->container['status'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'status', must be one of '%s'", + $this->container['status'], + implode("', '", $allowedValues) + ); + } + + if (!is_null($this->container['progress']) && ($this->container['progress'] > 1)) { + $invalidProperties[] = "invalid value for 'progress', must be smaller than or equal to 1."; + } + + if (!is_null($this->container['progress']) && ($this->container['progress'] < 0)) { + $invalidProperties[] = "invalid value for 'progress', must be bigger than or equal to 0."; + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets task_id + * + * @return string|null + */ + public function getTaskId() + { + return $this->container['task_id']; + } + + /** + * Sets task_id + * + * @param string|null $task_id task_id + * + * @return self + */ + public function setTaskId($task_id) + { + if (is_null($task_id)) { + throw new \InvalidArgumentException('non-nullable task_id cannot be null'); + } + $this->container['task_id'] = $task_id; + + return $this; + } + + /** + * Gets org_id + * + * @return string|null + */ + public function getOrgId() + { + return $this->container['org_id']; + } + + /** + * Sets org_id + * + * @param string|null $org_id org_id + * + * @return self + */ + public function setOrgId($org_id) + { + if (is_null($org_id)) { + throw new \InvalidArgumentException('non-nullable org_id cannot be null'); + } + $this->container['org_id'] = $org_id; + + return $this; + } + + /** + * Gets task_list_id + * + * @return string|null + */ + public function getTaskListId() + { + return $this->container['task_list_id']; + } + + /** + * Sets task_list_id + * + * @param string|null $task_list_id task_list_id + * + * @return self + */ + public function setTaskListId($task_list_id) + { + if (is_null($task_list_id)) { + array_push($this->openAPINullablesSetToNull, 'task_list_id'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('task_list_id', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['task_list_id'] = $task_list_id; + + return $this; + } + + /** + * Gets title + * + * @return string|null + */ + public function getTitle() + { + return $this->container['title']; + } + + /** + * Sets title + * + * @param string|null $title title + * + * @return self + */ + public function setTitle($title) + { + if (is_null($title)) { + throw new \InvalidArgumentException('non-nullable title cannot be null'); + } + $this->container['title'] = $title; + + return $this; + } + + /** + * Gets description + * + * @return string|null + */ + public function getDescription() + { + return $this->container['description']; + } + + /** + * Sets description + * + * @param string|null $description description + * + * @return self + */ + public function setDescription($description) + { + if (is_null($description)) { + throw new \InvalidArgumentException('non-nullable description cannot be null'); + } + $this->container['description'] = $description; + + return $this; + } + + /** + * Gets status + * + * @return string|null + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string|null $status status + * + * @return self + */ + public function setStatus($status) + { + if (is_null($status)) { + throw new \InvalidArgumentException('non-nullable status cannot be null'); + } + $allowedValues = $this->getStatusAllowableValues(); + if (!in_array($status, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'status', must be one of '%s'", + $status, + implode("', '", $allowedValues) + ) + ); + } + $this->container['status'] = $status; + + return $this; + } + + /** + * Gets assigned_agent_id + * + * @return string|null + */ + public function getAssignedAgentId() + { + return $this->container['assigned_agent_id']; + } + + /** + * Sets assigned_agent_id + * + * @param string|null $assigned_agent_id assigned_agent_id + * + * @return self + */ + public function setAssignedAgentId($assigned_agent_id) + { + if (is_null($assigned_agent_id)) { + array_push($this->openAPINullablesSetToNull, 'assigned_agent_id'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('assigned_agent_id', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['assigned_agent_id'] = $assigned_agent_id; + + return $this; + } + + /** + * Gets created_by_agent_id + * + * @return string|null + */ + public function getCreatedByAgentId() + { + return $this->container['created_by_agent_id']; + } + + /** + * Sets created_by_agent_id + * + * @param string|null $created_by_agent_id created_by_agent_id + * + * @return self + */ + public function setCreatedByAgentId($created_by_agent_id) + { + if (is_null($created_by_agent_id)) { + array_push($this->openAPINullablesSetToNull, 'created_by_agent_id'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('created_by_agent_id', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['created_by_agent_id'] = $created_by_agent_id; + + return $this; + } + + /** + * Gets depends_on + * + * @return string[]|null + */ + public function getDependsOn() + { + return $this->container['depends_on']; + } + + /** + * Sets depends_on + * + * @param string[]|null $depends_on depends_on + * + * @return self + */ + public function setDependsOn($depends_on) + { + if (is_null($depends_on)) { + throw new \InvalidArgumentException('non-nullable depends_on cannot be null'); + } + $this->container['depends_on'] = $depends_on; + + return $this; + } + + /** + * Gets metadata + * + * @return object|null + */ + public function getMetadata() + { + return $this->container['metadata']; + } + + /** + * Sets metadata + * + * @param object|null $metadata metadata + * + * @return self + */ + public function setMetadata($metadata) + { + if (is_null($metadata)) { + throw new \InvalidArgumentException('non-nullable metadata cannot be null'); + } + $this->container['metadata'] = $metadata; + + return $this; + } + + /** + * Gets progress + * + * @return float|null + */ + public function getProgress() + { + return $this->container['progress']; + } + + /** + * Sets progress + * + * @param float|null $progress progress + * + * @return self + */ + public function setProgress($progress) + { + if (is_null($progress)) { + throw new \InvalidArgumentException('non-nullable progress cannot be null'); + } + + if (($progress > 1)) { + throw new \InvalidArgumentException('invalid value for $progress when calling GetTask200Response., must be smaller than or equal to 1.'); + } + if (($progress < 0)) { + throw new \InvalidArgumentException('invalid value for $progress when calling GetTask200Response., must be bigger than or equal to 0.'); + } + + $this->container['progress'] = $progress; + + return $this; + } + + /** + * Gets progress_message + * + * @return string|null + */ + public function getProgressMessage() + { + return $this->container['progress_message']; + } + + /** + * Sets progress_message + * + * @param string|null $progress_message progress_message + * + * @return self + */ + public function setProgressMessage($progress_message) + { + if (is_null($progress_message)) { + throw new \InvalidArgumentException('non-nullable progress_message cannot be null'); + } + $this->container['progress_message'] = $progress_message; + + return $this; + } + + /** + * Gets result + * + * @return object|null + */ + public function getResult() + { + return $this->container['result']; + } + + /** + * Sets result + * + * @param object|null $result Task result data when completed + * + * @return self + */ + public function setResult($result) + { + if (is_null($result)) { + array_push($this->openAPINullablesSetToNull, 'result'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('result', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['result'] = $result; + + return $this; + } + + /** + * Gets error + * + * @return string|null + */ + public function getError() + { + return $this->container['error']; + } + + /** + * Sets error + * + * @param string|null $error Error message if status is failed + * + * @return self + */ + public function setError($error) + { + if (is_null($error)) { + array_push($this->openAPINullablesSetToNull, 'error'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('error', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['error'] = $error; + + return $this; + } + + /** + * Gets retry_count + * + * @return int|null + */ + public function getRetryCount() + { + return $this->container['retry_count']; + } + + /** + * Sets retry_count + * + * @param int|null $retry_count retry_count + * + * @return self + */ + public function setRetryCount($retry_count) + { + if (is_null($retry_count)) { + throw new \InvalidArgumentException('non-nullable retry_count cannot be null'); + } + $this->container['retry_count'] = $retry_count; + + return $this; + } + + /** + * Gets max_retries + * + * @return int|null + */ + public function getMaxRetries() + { + return $this->container['max_retries']; + } + + /** + * Sets max_retries + * + * @param int|null $max_retries max_retries + * + * @return self + */ + public function setMaxRetries($max_retries) + { + if (is_null($max_retries)) { + throw new \InvalidArgumentException('non-nullable max_retries cannot be null'); + } + $this->container['max_retries'] = $max_retries; + + return $this; + } + + /** + * Gets created_at + * + * @return int|null + */ + public function getCreatedAt() + { + return $this->container['created_at']; + } + + /** + * Sets created_at + * + * @param int|null $created_at Unix timestamp in milliseconds + * + * @return self + */ + public function setCreatedAt($created_at) + { + if (is_null($created_at)) { + throw new \InvalidArgumentException('non-nullable created_at cannot be null'); + } + $this->container['created_at'] = $created_at; + + return $this; + } + + /** + * Gets updated_at + * + * @return int|null + */ + public function getUpdatedAt() + { + return $this->container['updated_at']; + } + + /** + * Sets updated_at + * + * @param int|null $updated_at Unix timestamp in milliseconds + * + * @return self + */ + public function setUpdatedAt($updated_at) + { + if (is_null($updated_at)) { + throw new \InvalidArgumentException('non-nullable updated_at cannot be null'); + } + $this->container['updated_at'] = $updated_at; + + return $this; + } + + /** + * Gets started_at + * + * @return int|null + */ + public function getStartedAt() + { + return $this->container['started_at']; + } + + /** + * Sets started_at + * + * @param int|null $started_at When status changed to in_progress + * + * @return self + */ + public function setStartedAt($started_at) + { + if (is_null($started_at)) { + array_push($this->openAPINullablesSetToNull, 'started_at'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('started_at', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['started_at'] = $started_at; + + return $this; + } + + /** + * Gets completed_at + * + * @return int|null + */ + public function getCompletedAt() + { + return $this->container['completed_at']; + } + + /** + * Sets completed_at + * + * @param int|null $completed_at When task completed/failed/cancelled + * + * @return self + */ + public function setCompletedAt($completed_at) + { + if (is_null($completed_at)) { + array_push($this->openAPINullablesSetToNull, 'completed_at'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('completed_at', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['completed_at'] = $completed_at; + + return $this; + } + + /** + * Gets expires_at + * + * @return int|null + */ + public function getExpiresAt() + { + return $this->container['expires_at']; + } + + /** + * Sets expires_at + * + * @param int|null $expires_at TTL timestamp for completed tasks + * + * @return self + */ + public function setExpiresAt($expires_at) + { + if (is_null($expires_at)) { + array_push($this->openAPINullablesSetToNull, 'expires_at'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('expires_at', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['expires_at'] = $expires_at; + + return $this; + } + + /** + * Gets blocked_reason + * + * @return string|null + */ + public function getBlockedReason() + { + return $this->container['blocked_reason']; + } + + /** + * Sets blocked_reason + * + * @param string|null $blocked_reason Reason task is blocked + * + * @return self + */ + public function setBlockedReason($blocked_reason) + { + if (is_null($blocked_reason)) { + array_push($this->openAPINullablesSetToNull, 'blocked_reason'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('blocked_reason', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['blocked_reason'] = $blocked_reason; + + return $this; + } + + /** + * Gets blocked_by_task_ids + * + * @return string[]|null + */ + public function getBlockedByTaskIds() + { + return $this->container['blocked_by_task_ids']; + } + + /** + * Sets blocked_by_task_ids + * + * @param string[]|null $blocked_by_task_ids Task IDs that are blocking this task + * + * @return self + */ + public function setBlockedByTaskIds($blocked_by_task_ids) + { + if (is_null($blocked_by_task_ids)) { + array_push($this->openAPINullablesSetToNull, 'blocked_by_task_ids'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('blocked_by_task_ids', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['blocked_by_task_ids'] = $blocked_by_task_ids; + + return $this; + } + + /** + * Gets blocked_at + * + * @return int|null + */ + public function getBlockedAt() + { + return $this->container['blocked_at']; + } + + /** + * Sets blocked_at + * + * @param int|null $blocked_at When status changed to blocked + * + * @return self + */ + public function setBlockedAt($blocked_at) + { + if (is_null($blocked_at)) { + array_push($this->openAPINullablesSetToNull, 'blocked_at'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('blocked_at', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['blocked_at'] = $blocked_at; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/Model/GetVectorCollection200Response.php b/src/Model/GetVectorCollection200Response.php index d775ee9..de78f88 100644 --- a/src/Model/GetVectorCollection200Response.php +++ b/src/Model/GetVectorCollection200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/GetVectorCollection200ResponseCollection.php b/src/Model/GetVectorCollection200ResponseCollection.php index ddc30e0..cb01135 100644 --- a/src/Model/GetVectorCollection200ResponseCollection.php +++ b/src/Model/GetVectorCollection200ResponseCollection.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ImageGeneration200Response.php b/src/Model/ImageGeneration200Response.php index bb0b007..8c1a46a 100644 --- a/src/Model/ImageGeneration200Response.php +++ b/src/Model/ImageGeneration200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ImageGenerationRequest.php b/src/Model/ImageGenerationRequest.php index 07169d2..e257418 100644 --- a/src/Model/ImageGenerationRequest.php +++ b/src/Model/ImageGenerationRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ImageGenerationRequestBackgroundRemovalParams.php b/src/Model/ImageGenerationRequestBackgroundRemovalParams.php index 22683f2..9c368a9 100644 --- a/src/Model/ImageGenerationRequestBackgroundRemovalParams.php +++ b/src/Model/ImageGenerationRequestBackgroundRemovalParams.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ImageGenerationRequestColorGuidedGenerationParams.php b/src/Model/ImageGenerationRequestColorGuidedGenerationParams.php index 51d4cf7..d2b57de 100644 --- a/src/Model/ImageGenerationRequestColorGuidedGenerationParams.php +++ b/src/Model/ImageGenerationRequestColorGuidedGenerationParams.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ImageGenerationRequestImageGenerationConfig.php b/src/Model/ImageGenerationRequestImageGenerationConfig.php index 5067a91..70e6016 100644 --- a/src/Model/ImageGenerationRequestImageGenerationConfig.php +++ b/src/Model/ImageGenerationRequestImageGenerationConfig.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ImageGenerationRequestImageVariationParams.php b/src/Model/ImageGenerationRequestImageVariationParams.php index 94f7034..df9ed59 100644 --- a/src/Model/ImageGenerationRequestImageVariationParams.php +++ b/src/Model/ImageGenerationRequestImageVariationParams.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ImageGenerationRequestInPaintingParams.php b/src/Model/ImageGenerationRequestInPaintingParams.php index 015455b..53c515e 100644 --- a/src/Model/ImageGenerationRequestInPaintingParams.php +++ b/src/Model/ImageGenerationRequestInPaintingParams.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ImageGenerationRequestOutPaintingParams.php b/src/Model/ImageGenerationRequestOutPaintingParams.php index 08734ab..5e4df3e 100644 --- a/src/Model/ImageGenerationRequestOutPaintingParams.php +++ b/src/Model/ImageGenerationRequestOutPaintingParams.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ImageGenerationRequestTextToImageParams.php b/src/Model/ImageGenerationRequestTextToImageParams.php index ebe9238..0afa81f 100644 --- a/src/Model/ImageGenerationRequestTextToImageParams.php +++ b/src/Model/ImageGenerationRequestTextToImageParams.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/KVItemsCreate200Response.php b/src/Model/KVItemsCreate200Response.php index c47c8de..fe20bc8 100644 --- a/src/Model/KVItemsCreate200Response.php +++ b/src/Model/KVItemsCreate200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/KVItemsDelete200Response.php b/src/Model/KVItemsDelete200Response.php index b5dc51a..22e3313 100644 --- a/src/Model/KVItemsDelete200Response.php +++ b/src/Model/KVItemsDelete200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/KVItemsShow200Response.php b/src/Model/KVItemsShow200Response.php index dadd610..9fe600f 100644 --- a/src/Model/KVItemsShow200Response.php +++ b/src/Model/KVItemsShow200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/KVItemsShow200ResponseValue.php b/src/Model/KVItemsShow200ResponseValue.php index 81e346d..3b567d4 100644 --- a/src/Model/KVItemsShow200ResponseValue.php +++ b/src/Model/KVItemsShow200ResponseValue.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ListAIAgents200Response.php b/src/Model/ListAIAgents200Response.php index 171c454..e84db05 100644 --- a/src/Model/ListAIAgents200Response.php +++ b/src/Model/ListAIAgents200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ListAIAgents200ResponseAgentsInner.php b/src/Model/ListAIAgents200ResponseAgentsInner.php index 707aa70..108a185 100644 --- a/src/Model/ListAIAgents200ResponseAgentsInner.php +++ b/src/Model/ListAIAgents200ResponseAgentsInner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ListAIModels200Response.php b/src/Model/ListAIModels200Response.php index ce1b8ca..1bd9c5b 100644 --- a/src/Model/ListAIModels200Response.php +++ b/src/Model/ListAIModels200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ListAIModels200ResponseModelsInner.php b/src/Model/ListAIModels200ResponseModelsInner.php index 2afb77a..c072856 100644 --- a/src/Model/ListAIModels200ResponseModelsInner.php +++ b/src/Model/ListAIModels200ResponseModelsInner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ListAIModels200ResponseModelsInnerCapabilities.php b/src/Model/ListAIModels200ResponseModelsInnerCapabilities.php index 7b14b09..11181f2 100644 --- a/src/Model/ListAIModels200ResponseModelsInnerCapabilities.php +++ b/src/Model/ListAIModels200ResponseModelsInnerCapabilities.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ListAISessions200ResponseInner.php b/src/Model/ListAISessions200ResponseInner.php index 92eb68a..0688794 100644 --- a/src/Model/ListAISessions200ResponseInner.php +++ b/src/Model/ListAISessions200ResponseInner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ListAIToolExecutions200Response.php b/src/Model/ListAIToolExecutions200Response.php index 84b9077..c85201f 100644 --- a/src/Model/ListAIToolExecutions200Response.php +++ b/src/Model/ListAIToolExecutions200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ListAIToolExecutions200ResponseExecutionsInner.php b/src/Model/ListAIToolExecutions200ResponseExecutionsInner.php index a616b7e..d35f3d9 100644 --- a/src/Model/ListAIToolExecutions200ResponseExecutionsInner.php +++ b/src/Model/ListAIToolExecutions200ResponseExecutionsInner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ListAIToolNames200Response.php b/src/Model/ListAIToolNames200Response.php index 7460f8c..08c4bff 100644 --- a/src/Model/ListAIToolNames200Response.php +++ b/src/Model/ListAIToolNames200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ListAITools200Response.php b/src/Model/ListAITools200Response.php index 0495953..30a4a55 100644 --- a/src/Model/ListAITools200Response.php +++ b/src/Model/ListAITools200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ListAITools200ResponseToolsInner.php b/src/Model/ListAITools200ResponseToolsInner.php index 7b88abc..1e894f3 100644 --- a/src/Model/ListAITools200ResponseToolsInner.php +++ b/src/Model/ListAITools200ResponseToolsInner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ListAITools200ResponseToolsInnerToolSpec.php b/src/Model/ListAITools200ResponseToolsInnerToolSpec.php index 7988841..fcd955e 100644 --- a/src/Model/ListAITools200ResponseToolsInnerToolSpec.php +++ b/src/Model/ListAITools200ResponseToolsInnerToolSpec.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ListAITools200ResponseToolsInnerToolSpecInputSchema.php b/src/Model/ListAITools200ResponseToolsInnerToolSpecInputSchema.php index d2901d5..ee88959 100644 --- a/src/Model/ListAITools200ResponseToolsInnerToolSpecInputSchema.php +++ b/src/Model/ListAITools200ResponseToolsInnerToolSpecInputSchema.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ListBackups200Response.php b/src/Model/ListBackups200Response.php index f6cc65d..67caeac 100644 --- a/src/Model/ListBackups200Response.php +++ b/src/Model/ListBackups200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ListBackups200ResponseBackupsInner.php b/src/Model/ListBackups200ResponseBackupsInner.php index 4a7e9ed..ccfe861 100644 --- a/src/Model/ListBackups200ResponseBackupsInner.php +++ b/src/Model/ListBackups200ResponseBackupsInner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ListBackups422Response.php b/src/Model/ListBackups422Response.php index b4d4377..8fd6fd4 100644 --- a/src/Model/ListBackups422Response.php +++ b/src/Model/ListBackups422Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ListCustomTools200Response.php b/src/Model/ListCustomTools200Response.php index fb3d56b..01c3455 100644 --- a/src/Model/ListCustomTools200Response.php +++ b/src/Model/ListCustomTools200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ListCustomTools200ResponseToolsInner.php b/src/Model/ListCustomTools200ResponseToolsInner.php index d0fbd37..7c51328 100644 --- a/src/Model/ListCustomTools200ResponseToolsInner.php +++ b/src/Model/ListCustomTools200ResponseToolsInner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ListFiles200Response.php b/src/Model/ListFiles200Response.php new file mode 100644 index 0000000..eec2b38 --- /dev/null +++ b/src/Model/ListFiles200Response.php @@ -0,0 +1,484 @@ + + */ +class ListFiles200Response implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'listFiles_200_response'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'files' => '\QuantClient\Model\ListFiles200ResponseFilesInner[]', + 'next_cursor' => 'string', + 'has_more' => 'bool' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'files' => null, + 'next_cursor' => null, + 'has_more' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'files' => false, + 'next_cursor' => true, + 'has_more' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected array $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'files' => 'files', + 'next_cursor' => 'nextCursor', + 'has_more' => 'hasMore' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'files' => 'setFiles', + 'next_cursor' => 'setNextCursor', + 'has_more' => 'setHasMore' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'files' => 'getFiles', + 'next_cursor' => 'getNextCursor', + 'has_more' => 'getHasMore' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[]|null $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('files', $data ?? [], null); + $this->setIfExists('next_cursor', $data ?? [], null); + $this->setIfExists('has_more', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets files + * + * @return \QuantClient\Model\ListFiles200ResponseFilesInner[]|null + */ + public function getFiles() + { + return $this->container['files']; + } + + /** + * Sets files + * + * @param \QuantClient\Model\ListFiles200ResponseFilesInner[]|null $files files + * + * @return self + */ + public function setFiles($files) + { + if (is_null($files)) { + throw new \InvalidArgumentException('non-nullable files cannot be null'); + } + $this->container['files'] = $files; + + return $this; + } + + /** + * Gets next_cursor + * + * @return string|null + */ + public function getNextCursor() + { + return $this->container['next_cursor']; + } + + /** + * Sets next_cursor + * + * @param string|null $next_cursor Cursor for next page + * + * @return self + */ + public function setNextCursor($next_cursor) + { + if (is_null($next_cursor)) { + array_push($this->openAPINullablesSetToNull, 'next_cursor'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('next_cursor', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['next_cursor'] = $next_cursor; + + return $this; + } + + /** + * Gets has_more + * + * @return bool|null + */ + public function getHasMore() + { + return $this->container['has_more']; + } + + /** + * Sets has_more + * + * @param bool|null $has_more True if more results available + * + * @return self + */ + public function setHasMore($has_more) + { + if (is_null($has_more)) { + throw new \InvalidArgumentException('non-nullable has_more cannot be null'); + } + $this->container['has_more'] = $has_more; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/Model/ListFiles200ResponseFilesInner.php b/src/Model/ListFiles200ResponseFilesInner.php new file mode 100644 index 0000000..33c88ff --- /dev/null +++ b/src/Model/ListFiles200ResponseFilesInner.php @@ -0,0 +1,579 @@ + + */ +class ListFiles200ResponseFilesInner implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'listFiles_200_response_files_inner'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'file_id' => 'string', + 'filename' => 'string', + 'content_type' => 'string', + 'size' => 'int', + 'metadata' => 'object', + 'created_at' => '\DateTime' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'file_id' => 'uuid', + 'filename' => null, + 'content_type' => null, + 'size' => null, + 'metadata' => null, + 'created_at' => 'date-time' + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'file_id' => false, + 'filename' => false, + 'content_type' => false, + 'size' => false, + 'metadata' => false, + 'created_at' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected array $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'file_id' => 'fileId', + 'filename' => 'filename', + 'content_type' => 'contentType', + 'size' => 'size', + 'metadata' => 'metadata', + 'created_at' => 'createdAt' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'file_id' => 'setFileId', + 'filename' => 'setFilename', + 'content_type' => 'setContentType', + 'size' => 'setSize', + 'metadata' => 'setMetadata', + 'created_at' => 'setCreatedAt' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'file_id' => 'getFileId', + 'filename' => 'getFilename', + 'content_type' => 'getContentType', + 'size' => 'getSize', + 'metadata' => 'getMetadata', + 'created_at' => 'getCreatedAt' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[]|null $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('file_id', $data ?? [], null); + $this->setIfExists('filename', $data ?? [], null); + $this->setIfExists('content_type', $data ?? [], null); + $this->setIfExists('size', $data ?? [], null); + $this->setIfExists('metadata', $data ?? [], null); + $this->setIfExists('created_at', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets file_id + * + * @return string|null + */ + public function getFileId() + { + return $this->container['file_id']; + } + + /** + * Sets file_id + * + * @param string|null $file_id file_id + * + * @return self + */ + public function setFileId($file_id) + { + if (is_null($file_id)) { + throw new \InvalidArgumentException('non-nullable file_id cannot be null'); + } + $this->container['file_id'] = $file_id; + + return $this; + } + + /** + * Gets filename + * + * @return string|null + */ + public function getFilename() + { + return $this->container['filename']; + } + + /** + * Sets filename + * + * @param string|null $filename filename + * + * @return self + */ + public function setFilename($filename) + { + if (is_null($filename)) { + throw new \InvalidArgumentException('non-nullable filename cannot be null'); + } + $this->container['filename'] = $filename; + + return $this; + } + + /** + * Gets content_type + * + * @return string|null + */ + public function getContentType() + { + return $this->container['content_type']; + } + + /** + * Sets content_type + * + * @param string|null $content_type content_type + * + * @return self + */ + public function setContentType($content_type) + { + if (is_null($content_type)) { + throw new \InvalidArgumentException('non-nullable content_type cannot be null'); + } + $this->container['content_type'] = $content_type; + + return $this; + } + + /** + * Gets size + * + * @return int|null + */ + public function getSize() + { + return $this->container['size']; + } + + /** + * Sets size + * + * @param int|null $size size + * + * @return self + */ + public function setSize($size) + { + if (is_null($size)) { + throw new \InvalidArgumentException('non-nullable size cannot be null'); + } + $this->container['size'] = $size; + + return $this; + } + + /** + * Gets metadata + * + * @return object|null + */ + public function getMetadata() + { + return $this->container['metadata']; + } + + /** + * Sets metadata + * + * @param object|null $metadata metadata + * + * @return self + */ + public function setMetadata($metadata) + { + if (is_null($metadata)) { + throw new \InvalidArgumentException('non-nullable metadata cannot be null'); + } + $this->container['metadata'] = $metadata; + + return $this; + } + + /** + * Gets created_at + * + * @return \DateTime|null + */ + public function getCreatedAt() + { + return $this->container['created_at']; + } + + /** + * Sets created_at + * + * @param \DateTime|null $created_at created_at + * + * @return self + */ + public function setCreatedAt($created_at) + { + if (is_null($created_at)) { + throw new \InvalidArgumentException('non-nullable created_at cannot be null'); + } + $this->container['created_at'] = $created_at; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/Model/ListTasks200Response.php b/src/Model/ListTasks200Response.php new file mode 100644 index 0000000..8f6b061 --- /dev/null +++ b/src/Model/ListTasks200Response.php @@ -0,0 +1,511 @@ + + */ +class ListTasks200Response implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'listTasks_200_response'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'tasks' => '\QuantClient\Model\ListTasks200ResponseTasksInner[]', + 'task_ids' => 'string[]', + 'count' => 'int', + 'depends_on' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'tasks' => null, + 'task_ids' => 'uuid', + 'count' => null, + 'depends_on' => 'uuid' + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'tasks' => false, + 'task_ids' => false, + 'count' => false, + 'depends_on' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected array $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'tasks' => 'tasks', + 'task_ids' => 'taskIds', + 'count' => 'count', + 'depends_on' => 'dependsOn' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'tasks' => 'setTasks', + 'task_ids' => 'setTaskIds', + 'count' => 'setCount', + 'depends_on' => 'setDependsOn' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'tasks' => 'getTasks', + 'task_ids' => 'getTaskIds', + 'count' => 'getCount', + 'depends_on' => 'getDependsOn' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[]|null $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('tasks', $data ?? [], null); + $this->setIfExists('task_ids', $data ?? [], null); + $this->setIfExists('count', $data ?? [], null); + $this->setIfExists('depends_on', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets tasks + * + * @return \QuantClient\Model\ListTasks200ResponseTasksInner[]|null + */ + public function getTasks() + { + return $this->container['tasks']; + } + + /** + * Sets tasks + * + * @param \QuantClient\Model\ListTasks200ResponseTasksInner[]|null $tasks tasks + * + * @return self + */ + public function setTasks($tasks) + { + if (is_null($tasks)) { + throw new \InvalidArgumentException('non-nullable tasks cannot be null'); + } + $this->container['tasks'] = $tasks; + + return $this; + } + + /** + * Gets task_ids + * + * @return string[]|null + */ + public function getTaskIds() + { + return $this->container['task_ids']; + } + + /** + * Sets task_ids + * + * @param string[]|null $task_ids Task IDs (only with dependsOn filter) + * + * @return self + */ + public function setTaskIds($task_ids) + { + if (is_null($task_ids)) { + throw new \InvalidArgumentException('non-nullable task_ids cannot be null'); + } + $this->container['task_ids'] = $task_ids; + + return $this; + } + + /** + * Gets count + * + * @return int|null + */ + public function getCount() + { + return $this->container['count']; + } + + /** + * Sets count + * + * @param int|null $count count + * + * @return self + */ + public function setCount($count) + { + if (is_null($count)) { + throw new \InvalidArgumentException('non-nullable count cannot be null'); + } + $this->container['count'] = $count; + + return $this; + } + + /** + * Gets depends_on + * + * @return string|null + */ + public function getDependsOn() + { + return $this->container['depends_on']; + } + + /** + * Sets depends_on + * + * @param string|null $depends_on The queried task ID (only with dependsOn filter) + * + * @return self + */ + public function setDependsOn($depends_on) + { + if (is_null($depends_on)) { + throw new \InvalidArgumentException('non-nullable depends_on cannot be null'); + } + $this->container['depends_on'] = $depends_on; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/Model/ListTasks200ResponseTasksInner.php b/src/Model/ListTasks200ResponseTasksInner.php new file mode 100644 index 0000000..f476bcc --- /dev/null +++ b/src/Model/ListTasks200ResponseTasksInner.php @@ -0,0 +1,869 @@ + + */ +class ListTasks200ResponseTasksInner implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'listTasks_200_response_tasks_inner'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'task_id' => 'string', + 'org_id' => 'string', + 'task_list_id' => 'string', + 'title' => 'string', + 'description' => 'string', + 'status' => 'string', + 'assigned_agent_id' => 'string', + 'progress' => 'float', + 'blocked_reason' => 'string', + 'blocked_by_task_ids' => 'string[]', + 'created_at' => 'int', + 'updated_at' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'task_id' => 'uuid', + 'org_id' => null, + 'task_list_id' => null, + 'title' => null, + 'description' => null, + 'status' => null, + 'assigned_agent_id' => null, + 'progress' => null, + 'blocked_reason' => null, + 'blocked_by_task_ids' => null, + 'created_at' => null, + 'updated_at' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'task_id' => false, + 'org_id' => false, + 'task_list_id' => true, + 'title' => false, + 'description' => false, + 'status' => false, + 'assigned_agent_id' => true, + 'progress' => false, + 'blocked_reason' => true, + 'blocked_by_task_ids' => true, + 'created_at' => false, + 'updated_at' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected array $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'task_id' => 'taskId', + 'org_id' => 'orgId', + 'task_list_id' => 'taskListId', + 'title' => 'title', + 'description' => 'description', + 'status' => 'status', + 'assigned_agent_id' => 'assignedAgentId', + 'progress' => 'progress', + 'blocked_reason' => 'blockedReason', + 'blocked_by_task_ids' => 'blockedByTaskIds', + 'created_at' => 'createdAt', + 'updated_at' => 'updatedAt' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'task_id' => 'setTaskId', + 'org_id' => 'setOrgId', + 'task_list_id' => 'setTaskListId', + 'title' => 'setTitle', + 'description' => 'setDescription', + 'status' => 'setStatus', + 'assigned_agent_id' => 'setAssignedAgentId', + 'progress' => 'setProgress', + 'blocked_reason' => 'setBlockedReason', + 'blocked_by_task_ids' => 'setBlockedByTaskIds', + 'created_at' => 'setCreatedAt', + 'updated_at' => 'setUpdatedAt' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'task_id' => 'getTaskId', + 'org_id' => 'getOrgId', + 'task_list_id' => 'getTaskListId', + 'title' => 'getTitle', + 'description' => 'getDescription', + 'status' => 'getStatus', + 'assigned_agent_id' => 'getAssignedAgentId', + 'progress' => 'getProgress', + 'blocked_reason' => 'getBlockedReason', + 'blocked_by_task_ids' => 'getBlockedByTaskIds', + 'created_at' => 'getCreatedAt', + 'updated_at' => 'getUpdatedAt' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + public const STATUS_PENDING = 'pending'; + public const STATUS_IN_PROGRESS = 'in_progress'; + public const STATUS_COMPLETED = 'completed'; + public const STATUS_FAILED = 'failed'; + public const STATUS_CANCELLED = 'cancelled'; + public const STATUS_BLOCKED = 'blocked'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getStatusAllowableValues() + { + return [ + self::STATUS_PENDING, + self::STATUS_IN_PROGRESS, + self::STATUS_COMPLETED, + self::STATUS_FAILED, + self::STATUS_CANCELLED, + self::STATUS_BLOCKED, + ]; + } + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[]|null $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('task_id', $data ?? [], null); + $this->setIfExists('org_id', $data ?? [], null); + $this->setIfExists('task_list_id', $data ?? [], null); + $this->setIfExists('title', $data ?? [], null); + $this->setIfExists('description', $data ?? [], null); + $this->setIfExists('status', $data ?? [], null); + $this->setIfExists('assigned_agent_id', $data ?? [], null); + $this->setIfExists('progress', $data ?? [], null); + $this->setIfExists('blocked_reason', $data ?? [], null); + $this->setIfExists('blocked_by_task_ids', $data ?? [], null); + $this->setIfExists('created_at', $data ?? [], null); + $this->setIfExists('updated_at', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + $allowedValues = $this->getStatusAllowableValues(); + if (!is_null($this->container['status']) && !in_array($this->container['status'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'status', must be one of '%s'", + $this->container['status'], + implode("', '", $allowedValues) + ); + } + + if (!is_null($this->container['progress']) && ($this->container['progress'] > 1)) { + $invalidProperties[] = "invalid value for 'progress', must be smaller than or equal to 1."; + } + + if (!is_null($this->container['progress']) && ($this->container['progress'] < 0)) { + $invalidProperties[] = "invalid value for 'progress', must be bigger than or equal to 0."; + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets task_id + * + * @return string|null + */ + public function getTaskId() + { + return $this->container['task_id']; + } + + /** + * Sets task_id + * + * @param string|null $task_id task_id + * + * @return self + */ + public function setTaskId($task_id) + { + if (is_null($task_id)) { + throw new \InvalidArgumentException('non-nullable task_id cannot be null'); + } + $this->container['task_id'] = $task_id; + + return $this; + } + + /** + * Gets org_id + * + * @return string|null + */ + public function getOrgId() + { + return $this->container['org_id']; + } + + /** + * Sets org_id + * + * @param string|null $org_id org_id + * + * @return self + */ + public function setOrgId($org_id) + { + if (is_null($org_id)) { + throw new \InvalidArgumentException('non-nullable org_id cannot be null'); + } + $this->container['org_id'] = $org_id; + + return $this; + } + + /** + * Gets task_list_id + * + * @return string|null + */ + public function getTaskListId() + { + return $this->container['task_list_id']; + } + + /** + * Sets task_list_id + * + * @param string|null $task_list_id task_list_id + * + * @return self + */ + public function setTaskListId($task_list_id) + { + if (is_null($task_list_id)) { + array_push($this->openAPINullablesSetToNull, 'task_list_id'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('task_list_id', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['task_list_id'] = $task_list_id; + + return $this; + } + + /** + * Gets title + * + * @return string|null + */ + public function getTitle() + { + return $this->container['title']; + } + + /** + * Sets title + * + * @param string|null $title title + * + * @return self + */ + public function setTitle($title) + { + if (is_null($title)) { + throw new \InvalidArgumentException('non-nullable title cannot be null'); + } + $this->container['title'] = $title; + + return $this; + } + + /** + * Gets description + * + * @return string|null + */ + public function getDescription() + { + return $this->container['description']; + } + + /** + * Sets description + * + * @param string|null $description description + * + * @return self + */ + public function setDescription($description) + { + if (is_null($description)) { + throw new \InvalidArgumentException('non-nullable description cannot be null'); + } + $this->container['description'] = $description; + + return $this; + } + + /** + * Gets status + * + * @return string|null + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string|null $status status + * + * @return self + */ + public function setStatus($status) + { + if (is_null($status)) { + throw new \InvalidArgumentException('non-nullable status cannot be null'); + } + $allowedValues = $this->getStatusAllowableValues(); + if (!in_array($status, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'status', must be one of '%s'", + $status, + implode("', '", $allowedValues) + ) + ); + } + $this->container['status'] = $status; + + return $this; + } + + /** + * Gets assigned_agent_id + * + * @return string|null + */ + public function getAssignedAgentId() + { + return $this->container['assigned_agent_id']; + } + + /** + * Sets assigned_agent_id + * + * @param string|null $assigned_agent_id assigned_agent_id + * + * @return self + */ + public function setAssignedAgentId($assigned_agent_id) + { + if (is_null($assigned_agent_id)) { + array_push($this->openAPINullablesSetToNull, 'assigned_agent_id'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('assigned_agent_id', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['assigned_agent_id'] = $assigned_agent_id; + + return $this; + } + + /** + * Gets progress + * + * @return float|null + */ + public function getProgress() + { + return $this->container['progress']; + } + + /** + * Sets progress + * + * @param float|null $progress progress + * + * @return self + */ + public function setProgress($progress) + { + if (is_null($progress)) { + throw new \InvalidArgumentException('non-nullable progress cannot be null'); + } + + if (($progress > 1)) { + throw new \InvalidArgumentException('invalid value for $progress when calling ListTasks200ResponseTasksInner., must be smaller than or equal to 1.'); + } + if (($progress < 0)) { + throw new \InvalidArgumentException('invalid value for $progress when calling ListTasks200ResponseTasksInner., must be bigger than or equal to 0.'); + } + + $this->container['progress'] = $progress; + + return $this; + } + + /** + * Gets blocked_reason + * + * @return string|null + */ + public function getBlockedReason() + { + return $this->container['blocked_reason']; + } + + /** + * Sets blocked_reason + * + * @param string|null $blocked_reason blocked_reason + * + * @return self + */ + public function setBlockedReason($blocked_reason) + { + if (is_null($blocked_reason)) { + array_push($this->openAPINullablesSetToNull, 'blocked_reason'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('blocked_reason', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['blocked_reason'] = $blocked_reason; + + return $this; + } + + /** + * Gets blocked_by_task_ids + * + * @return string[]|null + */ + public function getBlockedByTaskIds() + { + return $this->container['blocked_by_task_ids']; + } + + /** + * Sets blocked_by_task_ids + * + * @param string[]|null $blocked_by_task_ids blocked_by_task_ids + * + * @return self + */ + public function setBlockedByTaskIds($blocked_by_task_ids) + { + if (is_null($blocked_by_task_ids)) { + array_push($this->openAPINullablesSetToNull, 'blocked_by_task_ids'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('blocked_by_task_ids', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['blocked_by_task_ids'] = $blocked_by_task_ids; + + return $this; + } + + /** + * Gets created_at + * + * @return int|null + */ + public function getCreatedAt() + { + return $this->container['created_at']; + } + + /** + * Sets created_at + * + * @param int|null $created_at created_at + * + * @return self + */ + public function setCreatedAt($created_at) + { + if (is_null($created_at)) { + throw new \InvalidArgumentException('non-nullable created_at cannot be null'); + } + $this->container['created_at'] = $created_at; + + return $this; + } + + /** + * Gets updated_at + * + * @return int|null + */ + public function getUpdatedAt() + { + return $this->container['updated_at']; + } + + /** + * Sets updated_at + * + * @param int|null $updated_at updated_at + * + * @return self + */ + public function setUpdatedAt($updated_at) + { + if (is_null($updated_at)) { + throw new \InvalidArgumentException('non-nullable updated_at cannot be null'); + } + $this->container['updated_at'] = $updated_at; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/Model/ListVectorCollections200Response.php b/src/Model/ListVectorCollections200Response.php index 258fa3e..3d87e5e 100644 --- a/src/Model/ListVectorCollections200Response.php +++ b/src/Model/ListVectorCollections200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ListVectorCollections200ResponseCollectionsInner.php b/src/Model/ListVectorCollections200ResponseCollectionsInner.php index 4b6b768..3fc6743 100644 --- a/src/Model/ListVectorCollections200ResponseCollectionsInner.php +++ b/src/Model/ListVectorCollections200ResponseCollectionsInner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ModelInterface.php b/src/Model/ModelInterface.php index 84ff2f8..44527fb 100644 --- a/src/Model/ModelInterface.php +++ b/src/Model/ModelInterface.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/OrganizationsList200ResponseInner.php b/src/Model/OrganizationsList200ResponseInner.php index 54dd677..2d20f7f 100644 --- a/src/Model/OrganizationsList200ResponseInner.php +++ b/src/Model/OrganizationsList200ResponseInner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/PatchEnvironmentCompose202Response.php b/src/Model/PatchEnvironmentCompose202Response.php index 8ea3c76..ddab55f 100644 --- a/src/Model/PatchEnvironmentCompose202Response.php +++ b/src/Model/PatchEnvironmentCompose202Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/PatchEnvironmentCompose202ResponseSpotConfiguration.php b/src/Model/PatchEnvironmentCompose202ResponseSpotConfiguration.php index 254afc8..ab44601 100644 --- a/src/Model/PatchEnvironmentCompose202ResponseSpotConfiguration.php +++ b/src/Model/PatchEnvironmentCompose202ResponseSpotConfiguration.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/PatchEnvironmentCompose400Response.php b/src/Model/PatchEnvironmentCompose400Response.php index e965ab7..9e6c5b9 100644 --- a/src/Model/PatchEnvironmentCompose400Response.php +++ b/src/Model/PatchEnvironmentCompose400Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/PatchEnvironmentComposeRequest.php b/src/Model/PatchEnvironmentComposeRequest.php index 1bb5fc8..6c7e380 100644 --- a/src/Model/PatchEnvironmentComposeRequest.php +++ b/src/Model/PatchEnvironmentComposeRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/PatchEnvironmentComposeRequestSpotConfiguration.php b/src/Model/PatchEnvironmentComposeRequestSpotConfiguration.php index 3551bb9..3914a03 100644 --- a/src/Model/PatchEnvironmentComposeRequestSpotConfiguration.php +++ b/src/Model/PatchEnvironmentComposeRequestSpotConfiguration.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/PurgeCreateRequest.php b/src/Model/PurgeCreateRequest.php index e4a19ec..133be9b 100644 --- a/src/Model/PurgeCreateRequest.php +++ b/src/Model/PurgeCreateRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/QueryVectorCollection200Response.php b/src/Model/QueryVectorCollection200Response.php index d292aed..6cb1c64 100644 --- a/src/Model/QueryVectorCollection200Response.php +++ b/src/Model/QueryVectorCollection200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ @@ -59,8 +59,14 @@ class QueryVectorCollection200Response implements ModelInterface, ArrayAccess, \ protected static $openAPITypes = [ 'results' => '\QuantClient\Model\QueryVectorCollection200ResponseResultsInner[]', 'query' => 'string', + 'search_mode' => 'string', + 'filter' => 'object', 'count' => 'int', - 'execution_time_ms' => 'int' + 'execution_time_ms' => 'int', + 'collection_id' => 'string', + 'has_more' => 'bool', + 'next_cursor' => 'string', + 'pagination' => '\QuantClient\Model\QueryVectorCollection200ResponsePagination' ]; /** @@ -73,8 +79,14 @@ class QueryVectorCollection200Response implements ModelInterface, ArrayAccess, \ protected static $openAPIFormats = [ 'results' => null, 'query' => null, + 'search_mode' => null, + 'filter' => null, 'count' => null, - 'execution_time_ms' => null + 'execution_time_ms' => null, + 'collection_id' => 'uuid', + 'has_more' => null, + 'next_cursor' => null, + 'pagination' => null ]; /** @@ -84,9 +96,15 @@ class QueryVectorCollection200Response implements ModelInterface, ArrayAccess, \ */ protected static array $openAPINullables = [ 'results' => false, - 'query' => false, + 'query' => true, + 'search_mode' => false, + 'filter' => true, 'count' => false, - 'execution_time_ms' => false + 'execution_time_ms' => false, + 'collection_id' => false, + 'has_more' => false, + 'next_cursor' => true, + 'pagination' => true ]; /** @@ -177,8 +195,14 @@ public function isNullableSetToNull(string $property): bool protected static $attributeMap = [ 'results' => 'results', 'query' => 'query', + 'search_mode' => 'searchMode', + 'filter' => 'filter', 'count' => 'count', - 'execution_time_ms' => 'executionTimeMs' + 'execution_time_ms' => 'executionTimeMs', + 'collection_id' => 'collectionId', + 'has_more' => 'hasMore', + 'next_cursor' => 'nextCursor', + 'pagination' => 'pagination' ]; /** @@ -189,8 +213,14 @@ public function isNullableSetToNull(string $property): bool protected static $setters = [ 'results' => 'setResults', 'query' => 'setQuery', + 'search_mode' => 'setSearchMode', + 'filter' => 'setFilter', 'count' => 'setCount', - 'execution_time_ms' => 'setExecutionTimeMs' + 'execution_time_ms' => 'setExecutionTimeMs', + 'collection_id' => 'setCollectionId', + 'has_more' => 'setHasMore', + 'next_cursor' => 'setNextCursor', + 'pagination' => 'setPagination' ]; /** @@ -201,8 +231,14 @@ public function isNullableSetToNull(string $property): bool protected static $getters = [ 'results' => 'getResults', 'query' => 'getQuery', + 'search_mode' => 'getSearchMode', + 'filter' => 'getFilter', 'count' => 'getCount', - 'execution_time_ms' => 'getExecutionTimeMs' + 'execution_time_ms' => 'getExecutionTimeMs', + 'collection_id' => 'getCollectionId', + 'has_more' => 'getHasMore', + 'next_cursor' => 'getNextCursor', + 'pagination' => 'getPagination' ]; /** @@ -246,6 +282,23 @@ public function getModelName() return self::$openAPIModelName; } + public const SEARCH_MODE_TEXT = 'text'; + public const SEARCH_MODE_VECTOR = 'vector'; + public const SEARCH_MODE_METADATA = 'metadata'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getSearchModeAllowableValues() + { + return [ + self::SEARCH_MODE_TEXT, + self::SEARCH_MODE_VECTOR, + self::SEARCH_MODE_METADATA, + ]; + } /** * Associative array for storing property values @@ -264,8 +317,14 @@ public function __construct(?array $data = null) { $this->setIfExists('results', $data ?? [], null); $this->setIfExists('query', $data ?? [], null); + $this->setIfExists('search_mode', $data ?? [], null); + $this->setIfExists('filter', $data ?? [], null); $this->setIfExists('count', $data ?? [], null); $this->setIfExists('execution_time_ms', $data ?? [], null); + $this->setIfExists('collection_id', $data ?? [], null); + $this->setIfExists('has_more', $data ?? [], null); + $this->setIfExists('next_cursor', $data ?? [], null); + $this->setIfExists('pagination', $data ?? [], null); } /** @@ -295,6 +354,15 @@ public function listInvalidProperties() { $invalidProperties = []; + $allowedValues = $this->getSearchModeAllowableValues(); + if (!is_null($this->container['search_mode']) && !in_array($this->container['search_mode'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'search_mode', must be one of '%s'", + $this->container['search_mode'], + implode("', '", $allowedValues) + ); + } + return $invalidProperties; } @@ -350,20 +418,98 @@ public function getQuery() /** * Sets query * - * @param string|null $query query + * @param string|null $query Original query text (null if vector or metadata search was used) * * @return self */ public function setQuery($query) { if (is_null($query)) { - throw new \InvalidArgumentException('non-nullable query cannot be null'); + array_push($this->openAPINullablesSetToNull, 'query'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('query', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } $this->container['query'] = $query; return $this; } + /** + * Gets search_mode + * + * @return string|null + */ + public function getSearchMode() + { + return $this->container['search_mode']; + } + + /** + * Sets search_mode + * + * @param string|null $search_mode Search mode used: text (query provided), vector (pre-computed), metadata (listByMetadata) + * + * @return self + */ + public function setSearchMode($search_mode) + { + if (is_null($search_mode)) { + throw new \InvalidArgumentException('non-nullable search_mode cannot be null'); + } + $allowedValues = $this->getSearchModeAllowableValues(); + if (!in_array($search_mode, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'search_mode', must be one of '%s'", + $search_mode, + implode("', '", $allowedValues) + ) + ); + } + $this->container['search_mode'] = $search_mode; + + return $this; + } + + /** + * Gets filter + * + * @return object|null + */ + public function getFilter() + { + return $this->container['filter']; + } + + /** + * Sets filter + * + * @param object|null $filter Filter that was applied (if any) + * + * @return self + */ + public function setFilter($filter) + { + if (is_null($filter)) { + array_push($this->openAPINullablesSetToNull, 'filter'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('filter', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['filter'] = $filter; + + return $this; + } + /** * Gets count * @@ -377,7 +523,7 @@ public function getCount() /** * Sets count * - * @param int|null $count count + * @param int|null $count Number of results returned * * @return self */ @@ -404,7 +550,7 @@ public function getExecutionTimeMs() /** * Sets execution_time_ms * - * @param int|null $execution_time_ms execution_time_ms + * @param int|null $execution_time_ms Query execution time in milliseconds * * @return self */ @@ -417,6 +563,128 @@ public function setExecutionTimeMs($execution_time_ms) return $this; } + + /** + * Gets collection_id + * + * @return string|null + */ + public function getCollectionId() + { + return $this->container['collection_id']; + } + + /** + * Sets collection_id + * + * @param string|null $collection_id collection_id + * + * @return self + */ + public function setCollectionId($collection_id) + { + if (is_null($collection_id)) { + throw new \InvalidArgumentException('non-nullable collection_id cannot be null'); + } + $this->container['collection_id'] = $collection_id; + + return $this; + } + + /** + * Gets has_more + * + * @return bool|null + */ + public function getHasMore() + { + return $this->container['has_more']; + } + + /** + * Sets has_more + * + * @param bool|null $has_more True if more results available (listByMetadata mode only) + * + * @return self + */ + public function setHasMore($has_more) + { + if (is_null($has_more)) { + throw new \InvalidArgumentException('non-nullable has_more cannot be null'); + } + $this->container['has_more'] = $has_more; + + return $this; + } + + /** + * Gets next_cursor + * + * @return string|null + */ + public function getNextCursor() + { + return $this->container['next_cursor']; + } + + /** + * Sets next_cursor + * + * @param string|null $next_cursor Cursor for next page. Pass as cursor param to continue. Null when no more results. Only in listByMetadata mode. + * + * @return self + */ + public function setNextCursor($next_cursor) + { + if (is_null($next_cursor)) { + array_push($this->openAPINullablesSetToNull, 'next_cursor'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('next_cursor', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['next_cursor'] = $next_cursor; + + return $this; + } + + /** + * Gets pagination + * + * @return \QuantClient\Model\QueryVectorCollection200ResponsePagination|null + */ + public function getPagination() + { + return $this->container['pagination']; + } + + /** + * Sets pagination + * + * @param \QuantClient\Model\QueryVectorCollection200ResponsePagination|null $pagination pagination + * + * @return self + */ + public function setPagination($pagination) + { + if (is_null($pagination)) { + array_push($this->openAPINullablesSetToNull, 'pagination'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('pagination', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['pagination'] = $pagination; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/src/Model/QueryVectorCollection200ResponsePagination.php b/src/Model/QueryVectorCollection200ResponsePagination.php new file mode 100644 index 0000000..c22e066 --- /dev/null +++ b/src/Model/QueryVectorCollection200ResponsePagination.php @@ -0,0 +1,546 @@ + + */ +class QueryVectorCollection200ResponsePagination implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'queryVectorCollection_200_response_pagination'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'sort_by' => 'string', + 'sort_order' => 'string', + 'limit' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'sort_by' => null, + 'sort_order' => null, + 'limit' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'sort_by' => false, + 'sort_order' => false, + 'limit' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected array $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'sort_by' => 'sortBy', + 'sort_order' => 'sortOrder', + 'limit' => 'limit' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'sort_by' => 'setSortBy', + 'sort_order' => 'setSortOrder', + 'limit' => 'setLimit' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'sort_by' => 'getSortBy', + 'sort_order' => 'getSortOrder', + 'limit' => 'getLimit' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + public const SORT_BY_CREATED_AT = 'created_at'; + public const SORT_BY_DOCUMENT_ID = 'document_id'; + public const SORT_ORDER_ASC = 'asc'; + public const SORT_ORDER_DESC = 'desc'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getSortByAllowableValues() + { + return [ + self::SORT_BY_CREATED_AT, + self::SORT_BY_DOCUMENT_ID, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getSortOrderAllowableValues() + { + return [ + self::SORT_ORDER_ASC, + self::SORT_ORDER_DESC, + ]; + } + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[]|null $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('sort_by', $data ?? [], null); + $this->setIfExists('sort_order', $data ?? [], null); + $this->setIfExists('limit', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + $allowedValues = $this->getSortByAllowableValues(); + if (!is_null($this->container['sort_by']) && !in_array($this->container['sort_by'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'sort_by', must be one of '%s'", + $this->container['sort_by'], + implode("', '", $allowedValues) + ); + } + + $allowedValues = $this->getSortOrderAllowableValues(); + if (!is_null($this->container['sort_order']) && !in_array($this->container['sort_order'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'sort_order', must be one of '%s'", + $this->container['sort_order'], + implode("', '", $allowedValues) + ); + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets sort_by + * + * @return string|null + */ + public function getSortBy() + { + return $this->container['sort_by']; + } + + /** + * Sets sort_by + * + * @param string|null $sort_by sort_by + * + * @return self + */ + public function setSortBy($sort_by) + { + if (is_null($sort_by)) { + throw new \InvalidArgumentException('non-nullable sort_by cannot be null'); + } + $allowedValues = $this->getSortByAllowableValues(); + if (!in_array($sort_by, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'sort_by', must be one of '%s'", + $sort_by, + implode("', '", $allowedValues) + ) + ); + } + $this->container['sort_by'] = $sort_by; + + return $this; + } + + /** + * Gets sort_order + * + * @return string|null + */ + public function getSortOrder() + { + return $this->container['sort_order']; + } + + /** + * Sets sort_order + * + * @param string|null $sort_order sort_order + * + * @return self + */ + public function setSortOrder($sort_order) + { + if (is_null($sort_order)) { + throw new \InvalidArgumentException('non-nullable sort_order cannot be null'); + } + $allowedValues = $this->getSortOrderAllowableValues(); + if (!in_array($sort_order, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'sort_order', must be one of '%s'", + $sort_order, + implode("', '", $allowedValues) + ) + ); + } + $this->container['sort_order'] = $sort_order; + + return $this; + } + + /** + * Gets limit + * + * @return int|null + */ + public function getLimit() + { + return $this->container['limit']; + } + + /** + * Sets limit + * + * @param int|null $limit limit + * + * @return self + */ + public function setLimit($limit) + { + if (is_null($limit)) { + throw new \InvalidArgumentException('non-nullable limit cannot be null'); + } + $this->container['limit'] = $limit; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/Model/QueryVectorCollection200ResponseResultsInner.php b/src/Model/QueryVectorCollection200ResponseResultsInner.php index 9d35b5c..50a399b 100644 --- a/src/Model/QueryVectorCollection200ResponseResultsInner.php +++ b/src/Model/QueryVectorCollection200ResponseResultsInner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ @@ -57,9 +57,11 @@ class QueryVectorCollection200ResponseResultsInner implements ModelInterface, Ar * @var string[] */ protected static $openAPITypes = [ + 'document_id' => 'string', 'content' => 'string', - 'score' => 'float', - 'metadata' => '\QuantClient\Model\QueryVectorCollection200ResponseResultsInnerMetadata' + 'similarity' => 'float', + 'metadata' => 'array', + 'embedding' => 'float[]' ]; /** @@ -70,9 +72,11 @@ class QueryVectorCollection200ResponseResultsInner implements ModelInterface, Ar * @psalm-var array */ protected static $openAPIFormats = [ + 'document_id' => 'uuid', 'content' => null, - 'score' => 'float', - 'metadata' => null + 'similarity' => 'float', + 'metadata' => null, + 'embedding' => null ]; /** @@ -81,9 +85,11 @@ class QueryVectorCollection200ResponseResultsInner implements ModelInterface, Ar * @var boolean[] */ protected static array $openAPINullables = [ + 'document_id' => false, 'content' => false, - 'score' => false, - 'metadata' => false + 'similarity' => false, + 'metadata' => false, + 'embedding' => false ]; /** @@ -172,9 +178,11 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ + 'document_id' => 'documentId', 'content' => 'content', - 'score' => 'score', - 'metadata' => 'metadata' + 'similarity' => 'similarity', + 'metadata' => 'metadata', + 'embedding' => 'embedding' ]; /** @@ -183,9 +191,11 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ + 'document_id' => 'setDocumentId', 'content' => 'setContent', - 'score' => 'setScore', - 'metadata' => 'setMetadata' + 'similarity' => 'setSimilarity', + 'metadata' => 'setMetadata', + 'embedding' => 'setEmbedding' ]; /** @@ -194,9 +204,11 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ + 'document_id' => 'getDocumentId', 'content' => 'getContent', - 'score' => 'getScore', - 'metadata' => 'getMetadata' + 'similarity' => 'getSimilarity', + 'metadata' => 'getMetadata', + 'embedding' => 'getEmbedding' ]; /** @@ -256,9 +268,11 @@ public function getModelName() */ public function __construct(?array $data = null) { + $this->setIfExists('document_id', $data ?? [], null); $this->setIfExists('content', $data ?? [], null); - $this->setIfExists('score', $data ?? [], null); + $this->setIfExists('similarity', $data ?? [], null); $this->setIfExists('metadata', $data ?? [], null); + $this->setIfExists('embedding', $data ?? [], null); } /** @@ -288,6 +302,14 @@ public function listInvalidProperties() { $invalidProperties = []; + if (!is_null($this->container['similarity']) && ($this->container['similarity'] > 1)) { + $invalidProperties[] = "invalid value for 'similarity', must be smaller than or equal to 1."; + } + + if (!is_null($this->container['similarity']) && ($this->container['similarity'] < 0)) { + $invalidProperties[] = "invalid value for 'similarity', must be bigger than or equal to 0."; + } + return $invalidProperties; } @@ -303,6 +325,33 @@ public function valid() } + /** + * Gets document_id + * + * @return string|null + */ + public function getDocumentId() + { + return $this->container['document_id']; + } + + /** + * Sets document_id + * + * @param string|null $document_id document_id + * + * @return self + */ + public function setDocumentId($document_id) + { + if (is_null($document_id)) { + throw new \InvalidArgumentException('non-nullable document_id cannot be null'); + } + $this->container['document_id'] = $document_id; + + return $this; + } + /** * Gets content * @@ -316,7 +365,7 @@ public function getContent() /** * Sets content * - * @param string|null $content content + * @param string|null $content Document text content * * @return self */ @@ -331,28 +380,36 @@ public function setContent($content) } /** - * Gets score + * Gets similarity * * @return float|null */ - public function getScore() + public function getSimilarity() { - return $this->container['score']; + return $this->container['similarity']; } /** - * Sets score + * Sets similarity * - * @param float|null $score score + * @param float|null $similarity Cosine similarity score (1.0 for metadata-only queries) * * @return self */ - public function setScore($score) + public function setSimilarity($similarity) { - if (is_null($score)) { - throw new \InvalidArgumentException('non-nullable score cannot be null'); + if (is_null($similarity)) { + throw new \InvalidArgumentException('non-nullable similarity cannot be null'); } - $this->container['score'] = $score; + + if (($similarity > 1)) { + throw new \InvalidArgumentException('invalid value for $similarity when calling QueryVectorCollection200ResponseResultsInner., must be smaller than or equal to 1.'); + } + if (($similarity < 0)) { + throw new \InvalidArgumentException('invalid value for $similarity when calling QueryVectorCollection200ResponseResultsInner., must be bigger than or equal to 0.'); + } + + $this->container['similarity'] = $similarity; return $this; } @@ -360,7 +417,7 @@ public function setScore($score) /** * Gets metadata * - * @return \QuantClient\Model\QueryVectorCollection200ResponseResultsInnerMetadata|null + * @return array|null */ public function getMetadata() { @@ -370,7 +427,7 @@ public function getMetadata() /** * Sets metadata * - * @param \QuantClient\Model\QueryVectorCollection200ResponseResultsInnerMetadata|null $metadata metadata + * @param array|null $metadata metadata * * @return self */ @@ -383,6 +440,33 @@ public function setMetadata($metadata) return $this; } + + /** + * Gets embedding + * + * @return float[]|null + */ + public function getEmbedding() + { + return $this->container['embedding']; + } + + /** + * Sets embedding + * + * @param float[]|null $embedding Vector embedding (only if includeEmbeddings=true) + * + * @return self + */ + public function setEmbedding($embedding) + { + if (is_null($embedding)) { + throw new \InvalidArgumentException('non-nullable embedding cannot be null'); + } + $this->container['embedding'] = $embedding; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/src/Model/QueryVectorCollectionRequest.php b/src/Model/QueryVectorCollectionRequest.php index 1a68a25..265e2ab 100644 --- a/src/Model/QueryVectorCollectionRequest.php +++ b/src/Model/QueryVectorCollectionRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ @@ -58,7 +58,15 @@ class QueryVectorCollectionRequest implements ModelInterface, ArrayAccess, \Json */ protected static $openAPITypes = [ 'query' => 'string', - 'count' => 'int' + 'vector' => 'float[]', + 'limit' => 'int', + 'threshold' => 'float', + 'include_embeddings' => 'bool', + 'filter' => '\QuantClient\Model\QueryVectorCollectionRequestFilter', + 'list_by_metadata' => 'bool', + 'cursor' => 'string', + 'sort_by' => 'string', + 'sort_order' => 'string' ]; /** @@ -70,7 +78,15 @@ class QueryVectorCollectionRequest implements ModelInterface, ArrayAccess, \Json */ protected static $openAPIFormats = [ 'query' => null, - 'count' => null + 'vector' => 'float', + 'limit' => null, + 'threshold' => 'float', + 'include_embeddings' => null, + 'filter' => null, + 'list_by_metadata' => null, + 'cursor' => null, + 'sort_by' => null, + 'sort_order' => null ]; /** @@ -80,7 +96,15 @@ class QueryVectorCollectionRequest implements ModelInterface, ArrayAccess, \Json */ protected static array $openAPINullables = [ 'query' => false, - 'count' => false + 'vector' => false, + 'limit' => false, + 'threshold' => false, + 'include_embeddings' => false, + 'filter' => false, + 'list_by_metadata' => false, + 'cursor' => false, + 'sort_by' => false, + 'sort_order' => false ]; /** @@ -170,7 +194,15 @@ public function isNullableSetToNull(string $property): bool */ protected static $attributeMap = [ 'query' => 'query', - 'count' => 'count' + 'vector' => 'vector', + 'limit' => 'limit', + 'threshold' => 'threshold', + 'include_embeddings' => 'includeEmbeddings', + 'filter' => 'filter', + 'list_by_metadata' => 'listByMetadata', + 'cursor' => 'cursor', + 'sort_by' => 'sortBy', + 'sort_order' => 'sortOrder' ]; /** @@ -180,7 +212,15 @@ public function isNullableSetToNull(string $property): bool */ protected static $setters = [ 'query' => 'setQuery', - 'count' => 'setCount' + 'vector' => 'setVector', + 'limit' => 'setLimit', + 'threshold' => 'setThreshold', + 'include_embeddings' => 'setIncludeEmbeddings', + 'filter' => 'setFilter', + 'list_by_metadata' => 'setListByMetadata', + 'cursor' => 'setCursor', + 'sort_by' => 'setSortBy', + 'sort_order' => 'setSortOrder' ]; /** @@ -190,7 +230,15 @@ public function isNullableSetToNull(string $property): bool */ protected static $getters = [ 'query' => 'getQuery', - 'count' => 'getCount' + 'vector' => 'getVector', + 'limit' => 'getLimit', + 'threshold' => 'getThreshold', + 'include_embeddings' => 'getIncludeEmbeddings', + 'filter' => 'getFilter', + 'list_by_metadata' => 'getListByMetadata', + 'cursor' => 'getCursor', + 'sort_by' => 'getSortBy', + 'sort_order' => 'getSortOrder' ]; /** @@ -234,6 +282,36 @@ public function getModelName() return self::$openAPIModelName; } + public const SORT_BY_CREATED_AT = 'created_at'; + public const SORT_BY_DOCUMENT_ID = 'document_id'; + public const SORT_ORDER_ASC = 'asc'; + public const SORT_ORDER_DESC = 'desc'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getSortByAllowableValues() + { + return [ + self::SORT_BY_CREATED_AT, + self::SORT_BY_DOCUMENT_ID, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getSortOrderAllowableValues() + { + return [ + self::SORT_ORDER_ASC, + self::SORT_ORDER_DESC, + ]; + } /** * Associative array for storing property values @@ -251,7 +329,15 @@ public function getModelName() public function __construct(?array $data = null) { $this->setIfExists('query', $data ?? [], null); - $this->setIfExists('count', $data ?? [], 5); + $this->setIfExists('vector', $data ?? [], null); + $this->setIfExists('limit', $data ?? [], 5); + $this->setIfExists('threshold', $data ?? [], 0.7); + $this->setIfExists('include_embeddings', $data ?? [], false); + $this->setIfExists('filter', $data ?? [], null); + $this->setIfExists('list_by_metadata', $data ?? [], false); + $this->setIfExists('cursor', $data ?? [], null); + $this->setIfExists('sort_by', $data ?? [], 'created_at'); + $this->setIfExists('sort_order', $data ?? [], 'desc'); } /** @@ -281,15 +367,46 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['query'] === null) { - $invalidProperties[] = "'query' can't be null"; + if (!is_null($this->container['query']) && (mb_strlen($this->container['query']) > 1000)) { + $invalidProperties[] = "invalid value for 'query', the character length must be smaller than or equal to 1000."; + } + + if (!is_null($this->container['query']) && (mb_strlen($this->container['query']) < 3)) { + $invalidProperties[] = "invalid value for 'query', the character length must be bigger than or equal to 3."; } - if (!is_null($this->container['count']) && ($this->container['count'] > 20)) { - $invalidProperties[] = "invalid value for 'count', must be smaller than or equal to 20."; + + if (!is_null($this->container['limit']) && ($this->container['limit'] > 20)) { + $invalidProperties[] = "invalid value for 'limit', must be smaller than or equal to 20."; + } + + if (!is_null($this->container['limit']) && ($this->container['limit'] < 1)) { + $invalidProperties[] = "invalid value for 'limit', must be bigger than or equal to 1."; } - if (!is_null($this->container['count']) && ($this->container['count'] < 1)) { - $invalidProperties[] = "invalid value for 'count', must be bigger than or equal to 1."; + if (!is_null($this->container['threshold']) && ($this->container['threshold'] > 1)) { + $invalidProperties[] = "invalid value for 'threshold', must be smaller than or equal to 1."; + } + + if (!is_null($this->container['threshold']) && ($this->container['threshold'] < 0)) { + $invalidProperties[] = "invalid value for 'threshold', must be bigger than or equal to 0."; + } + + $allowedValues = $this->getSortByAllowableValues(); + if (!is_null($this->container['sort_by']) && !in_array($this->container['sort_by'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'sort_by', must be one of '%s'", + $this->container['sort_by'], + implode("', '", $allowedValues) + ); + } + + $allowedValues = $this->getSortOrderAllowableValues(); + if (!is_null($this->container['sort_order']) && !in_array($this->container['sort_order'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'sort_order', must be one of '%s'", + $this->container['sort_order'], + implode("', '", $allowedValues) + ); } return $invalidProperties; @@ -310,7 +427,7 @@ public function valid() /** * Gets query * - * @return string + * @return string|null */ public function getQuery() { @@ -320,7 +437,7 @@ public function getQuery() /** * Sets query * - * @param string $query Natural language search query + * @param string|null $query Natural language search query (mutually exclusive with vector) * * @return self */ @@ -329,42 +446,293 @@ public function setQuery($query) if (is_null($query)) { throw new \InvalidArgumentException('non-nullable query cannot be null'); } + if ((mb_strlen($query) > 1000)) { + throw new \InvalidArgumentException('invalid length for $query when calling QueryVectorCollectionRequest., must be smaller than or equal to 1000.'); + } + if ((mb_strlen($query) < 3)) { + throw new \InvalidArgumentException('invalid length for $query when calling QueryVectorCollectionRequest., must be bigger than or equal to 3.'); + } + $this->container['query'] = $query; return $this; } /** - * Gets count + * Gets vector + * + * @return float[]|null + */ + public function getVector() + { + return $this->container['vector']; + } + + /** + * Sets vector + * + * @param float[]|null $vector Pre-computed embedding vector (mutually exclusive with query). Array length must match collection dimension. + * + * @return self + */ + public function setVector($vector) + { + if (is_null($vector)) { + throw new \InvalidArgumentException('non-nullable vector cannot be null'); + } + $this->container['vector'] = $vector; + + return $this; + } + + /** + * Gets limit * * @return int|null */ - public function getCount() + public function getLimit() + { + return $this->container['limit']; + } + + /** + * Sets limit + * + * @param int|null $limit Maximum number of results to return + * + * @return self + */ + public function setLimit($limit) + { + if (is_null($limit)) { + throw new \InvalidArgumentException('non-nullable limit cannot be null'); + } + + if (($limit > 20)) { + throw new \InvalidArgumentException('invalid value for $limit when calling QueryVectorCollectionRequest., must be smaller than or equal to 20.'); + } + if (($limit < 1)) { + throw new \InvalidArgumentException('invalid value for $limit when calling QueryVectorCollectionRequest., must be bigger than or equal to 1.'); + } + + $this->container['limit'] = $limit; + + return $this; + } + + /** + * Gets threshold + * + * @return float|null + */ + public function getThreshold() { - return $this->container['count']; + return $this->container['threshold']; } /** - * Sets count + * Sets threshold * - * @param int|null $count Number of results to return + * @param float|null $threshold Minimum similarity score (0-1, higher = more relevant) * * @return self */ - public function setCount($count) + public function setThreshold($threshold) { - if (is_null($count)) { - throw new \InvalidArgumentException('non-nullable count cannot be null'); + if (is_null($threshold)) { + throw new \InvalidArgumentException('non-nullable threshold cannot be null'); } - if (($count > 20)) { - throw new \InvalidArgumentException('invalid value for $count when calling QueryVectorCollectionRequest., must be smaller than or equal to 20.'); + if (($threshold > 1)) { + throw new \InvalidArgumentException('invalid value for $threshold when calling QueryVectorCollectionRequest., must be smaller than or equal to 1.'); } - if (($count < 1)) { - throw new \InvalidArgumentException('invalid value for $count when calling QueryVectorCollectionRequest., must be bigger than or equal to 1.'); + if (($threshold < 0)) { + throw new \InvalidArgumentException('invalid value for $threshold when calling QueryVectorCollectionRequest., must be bigger than or equal to 0.'); } - $this->container['count'] = $count; + $this->container['threshold'] = $threshold; + + return $this; + } + + /** + * Gets include_embeddings + * + * @return bool|null + */ + public function getIncludeEmbeddings() + { + return $this->container['include_embeddings']; + } + + /** + * Sets include_embeddings + * + * @param bool|null $include_embeddings Include embedding vectors in response (for debugging) + * + * @return self + */ + public function setIncludeEmbeddings($include_embeddings) + { + if (is_null($include_embeddings)) { + throw new \InvalidArgumentException('non-nullable include_embeddings cannot be null'); + } + $this->container['include_embeddings'] = $include_embeddings; + + return $this; + } + + /** + * Gets filter + * + * @return \QuantClient\Model\QueryVectorCollectionRequestFilter|null + */ + public function getFilter() + { + return $this->container['filter']; + } + + /** + * Sets filter + * + * @param \QuantClient\Model\QueryVectorCollectionRequestFilter|null $filter filter + * + * @return self + */ + public function setFilter($filter) + { + if (is_null($filter)) { + throw new \InvalidArgumentException('non-nullable filter cannot be null'); + } + $this->container['filter'] = $filter; + + return $this; + } + + /** + * Gets list_by_metadata + * + * @return bool|null + */ + public function getListByMetadata() + { + return $this->container['list_by_metadata']; + } + + /** + * Sets list_by_metadata + * + * @param bool|null $list_by_metadata If true, skip semantic search and return all documents matching the filter. Requires filter. Supports cursor pagination. + * + * @return self + */ + public function setListByMetadata($list_by_metadata) + { + if (is_null($list_by_metadata)) { + throw new \InvalidArgumentException('non-nullable list_by_metadata cannot be null'); + } + $this->container['list_by_metadata'] = $list_by_metadata; + + return $this; + } + + /** + * Gets cursor + * + * @return string|null + */ + public function getCursor() + { + return $this->container['cursor']; + } + + /** + * Sets cursor + * + * @param string|null $cursor Pagination cursor for listByMetadata mode. Use nextCursor from previous response. Opaque format - do not construct manually. + * + * @return self + */ + public function setCursor($cursor) + { + if (is_null($cursor)) { + throw new \InvalidArgumentException('non-nullable cursor cannot be null'); + } + $this->container['cursor'] = $cursor; + + return $this; + } + + /** + * Gets sort_by + * + * @return string|null + */ + public function getSortBy() + { + return $this->container['sort_by']; + } + + /** + * Sets sort_by + * + * @param string|null $sort_by Field to sort by in listByMetadata mode + * + * @return self + */ + public function setSortBy($sort_by) + { + if (is_null($sort_by)) { + throw new \InvalidArgumentException('non-nullable sort_by cannot be null'); + } + $allowedValues = $this->getSortByAllowableValues(); + if (!in_array($sort_by, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'sort_by', must be one of '%s'", + $sort_by, + implode("', '", $allowedValues) + ) + ); + } + $this->container['sort_by'] = $sort_by; + + return $this; + } + + /** + * Gets sort_order + * + * @return string|null + */ + public function getSortOrder() + { + return $this->container['sort_order']; + } + + /** + * Sets sort_order + * + * @param string|null $sort_order Sort direction in listByMetadata mode + * + * @return self + */ + public function setSortOrder($sort_order) + { + if (is_null($sort_order)) { + throw new \InvalidArgumentException('non-nullable sort_order cannot be null'); + } + $allowedValues = $this->getSortOrderAllowableValues(); + if (!in_array($sort_order, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'sort_order', must be one of '%s'", + $sort_order, + implode("', '", $allowedValues) + ) + ); + } + $this->container['sort_order'] = $sort_order; return $this; } diff --git a/src/Model/QueryVectorCollectionRequestFilter.php b/src/Model/QueryVectorCollectionRequestFilter.php new file mode 100644 index 0000000..eebf81d --- /dev/null +++ b/src/Model/QueryVectorCollectionRequestFilter.php @@ -0,0 +1,444 @@ + + */ +class QueryVectorCollectionRequestFilter implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'queryVectorCollection_request_filter'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'exact' => 'array', + 'contains' => 'array' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'exact' => null, + 'contains' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'exact' => false, + 'contains' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected array $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'exact' => 'exact', + 'contains' => 'contains' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'exact' => 'setExact', + 'contains' => 'setContains' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'exact' => 'getExact', + 'contains' => 'getContains' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[]|null $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('exact', $data ?? [], null); + $this->setIfExists('contains', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets exact + * + * @return array|null + */ + public function getExact() + { + return $this->container['exact']; + } + + /** + * Sets exact + * + * @param array|null $exact Exact match on metadata fields. Keys are metadata field names, values are expected values. + * + * @return self + */ + public function setExact($exact) + { + if (is_null($exact)) { + throw new \InvalidArgumentException('non-nullable exact cannot be null'); + } + $this->container['exact'] = $exact; + + return $this; + } + + /** + * Gets contains + * + * @return array|null + */ + public function getContains() + { + return $this->container['contains']; + } + + /** + * Sets contains + * + * @param array|null $contains Array contains filter for array metadata fields (like tags). Returns documents where the metadata array contains ANY of the specified values. + * + * @return self + */ + public function setContains($contains) + { + if (is_null($contains)) { + throw new \InvalidArgumentException('non-nullable contains cannot be null'); + } + $this->container['contains'] = $contains; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/Model/ScalingPolicy.php b/src/Model/ScalingPolicy.php index 4d30a2f..c9c6ae2 100644 --- a/src/Model/ScalingPolicy.php +++ b/src/Model/ScalingPolicy.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/SpotConfiguration.php b/src/Model/SpotConfiguration.php index 9e0acef..178bad1 100644 --- a/src/Model/SpotConfiguration.php +++ b/src/Model/SpotConfiguration.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/SubmitToolCallback200Response.php b/src/Model/SubmitToolCallback200Response.php new file mode 100644 index 0000000..b3a36c7 --- /dev/null +++ b/src/Model/SubmitToolCallback200Response.php @@ -0,0 +1,477 @@ + + */ +class SubmitToolCallback200Response implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'submitToolCallback_200_response'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'success' => 'bool', + 'message' => 'string', + 'callback_id' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'success' => null, + 'message' => null, + 'callback_id' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'success' => false, + 'message' => false, + 'callback_id' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected array $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'success' => 'success', + 'message' => 'message', + 'callback_id' => 'callbackId' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'success' => 'setSuccess', + 'message' => 'setMessage', + 'callback_id' => 'setCallbackId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'success' => 'getSuccess', + 'message' => 'getMessage', + 'callback_id' => 'getCallbackId' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[]|null $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('success', $data ?? [], null); + $this->setIfExists('message', $data ?? [], null); + $this->setIfExists('callback_id', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets success + * + * @return bool|null + */ + public function getSuccess() + { + return $this->container['success']; + } + + /** + * Sets success + * + * @param bool|null $success success + * + * @return self + */ + public function setSuccess($success) + { + if (is_null($success)) { + throw new \InvalidArgumentException('non-nullable success cannot be null'); + } + $this->container['success'] = $success; + + return $this; + } + + /** + * Gets message + * + * @return string|null + */ + public function getMessage() + { + return $this->container['message']; + } + + /** + * Sets message + * + * @param string|null $message message + * + * @return self + */ + public function setMessage($message) + { + if (is_null($message)) { + throw new \InvalidArgumentException('non-nullable message cannot be null'); + } + $this->container['message'] = $message; + + return $this; + } + + /** + * Gets callback_id + * + * @return string|null + */ + public function getCallbackId() + { + return $this->container['callback_id']; + } + + /** + * Sets callback_id + * + * @param string|null $callback_id Echo of the callbackId for confirmation + * + * @return self + */ + public function setCallbackId($callback_id) + { + if (is_null($callback_id)) { + throw new \InvalidArgumentException('non-nullable callback_id cannot be null'); + } + $this->container['callback_id'] = $callback_id; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/Model/SubmitToolCallbackRequest.php b/src/Model/SubmitToolCallbackRequest.php new file mode 100644 index 0000000..e70f37c --- /dev/null +++ b/src/Model/SubmitToolCallbackRequest.php @@ -0,0 +1,449 @@ + + */ +class SubmitToolCallbackRequest implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'submitToolCallback_request'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'callback_id' => 'string', + 'tool_results' => '\QuantClient\Model\SubmitToolCallbackRequestToolResultsInner[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'callback_id' => null, + 'tool_results' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'callback_id' => false, + 'tool_results' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected array $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'callback_id' => 'callbackId', + 'tool_results' => 'toolResults' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'callback_id' => 'setCallbackId', + 'tool_results' => 'setToolResults' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'callback_id' => 'getCallbackId', + 'tool_results' => 'getToolResults' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[]|null $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('callback_id', $data ?? [], null); + $this->setIfExists('tool_results', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['callback_id'] === null) { + $invalidProperties[] = "'callback_id' can't be null"; + } + if ($this->container['tool_results'] === null) { + $invalidProperties[] = "'tool_results' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets callback_id + * + * @return string + */ + public function getCallbackId() + { + return $this->container['callback_id']; + } + + /** + * Sets callback_id + * + * @param string $callback_id The callbackId from the waiting_callback status response + * + * @return self + */ + public function setCallbackId($callback_id) + { + if (is_null($callback_id)) { + throw new \InvalidArgumentException('non-nullable callback_id cannot be null'); + } + $this->container['callback_id'] = $callback_id; + + return $this; + } + + /** + * Gets tool_results + * + * @return \QuantClient\Model\SubmitToolCallbackRequestToolResultsInner[] + */ + public function getToolResults() + { + return $this->container['tool_results']; + } + + /** + * Sets tool_results + * + * @param \QuantClient\Model\SubmitToolCallbackRequestToolResultsInner[] $tool_results Results of client-executed tools + * + * @return self + */ + public function setToolResults($tool_results) + { + if (is_null($tool_results)) { + throw new \InvalidArgumentException('non-nullable tool_results cannot be null'); + } + $this->container['tool_results'] = $tool_results; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/Model/SubmitToolCallbackRequestToolResultsInner.php b/src/Model/SubmitToolCallbackRequestToolResultsInner.php new file mode 100644 index 0000000..617438b --- /dev/null +++ b/src/Model/SubmitToolCallbackRequestToolResultsInner.php @@ -0,0 +1,449 @@ + + */ +class SubmitToolCallbackRequestToolResultsInner implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'submitToolCallback_request_toolResults_inner'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'tool_use_id' => 'string', + 'result' => 'object' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'tool_use_id' => null, + 'result' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'tool_use_id' => false, + 'result' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected array $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'tool_use_id' => 'toolUseId', + 'result' => 'result' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'tool_use_id' => 'setToolUseId', + 'result' => 'setResult' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'tool_use_id' => 'getToolUseId', + 'result' => 'getResult' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[]|null $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('tool_use_id', $data ?? [], null); + $this->setIfExists('result', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['tool_use_id'] === null) { + $invalidProperties[] = "'tool_use_id' can't be null"; + } + if ($this->container['result'] === null) { + $invalidProperties[] = "'result' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets tool_use_id + * + * @return string + */ + public function getToolUseId() + { + return $this->container['tool_use_id']; + } + + /** + * Sets tool_use_id + * + * @param string $tool_use_id The toolUseId from pendingTools + * + * @return self + */ + public function setToolUseId($tool_use_id) + { + if (is_null($tool_use_id)) { + throw new \InvalidArgumentException('non-nullable tool_use_id cannot be null'); + } + $this->container['tool_use_id'] = $tool_use_id; + + return $this; + } + + /** + * Gets result + * + * @return object + */ + public function getResult() + { + return $this->container['result']; + } + + /** + * Sets result + * + * @param object $result The result of executing the tool + * + * @return self + */ + public function setResult($result) + { + if (is_null($result)) { + throw new \InvalidArgumentException('non-nullable result cannot be null'); + } + $this->container['result'] = $result; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/Model/SyncOperation.php b/src/Model/SyncOperation.php index 6d0bbd8..da9f8a8 100644 --- a/src/Model/SyncOperation.php +++ b/src/Model/SyncOperation.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/SyncToEnvironmentRequest.php b/src/Model/SyncToEnvironmentRequest.php index 5840d02..f518b34 100644 --- a/src/Model/SyncToEnvironmentRequest.php +++ b/src/Model/SyncToEnvironmentRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/UpdateAIAgent200Response.php b/src/Model/UpdateAIAgent200Response.php index 17fe180..23d7a0d 100644 --- a/src/Model/UpdateAIAgent200Response.php +++ b/src/Model/UpdateAIAgent200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/UpdateAIAgentRequest.php b/src/Model/UpdateAIAgentRequest.php index c383575..534f210 100644 --- a/src/Model/UpdateAIAgentRequest.php +++ b/src/Model/UpdateAIAgentRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/UpdateAISession200Response.php b/src/Model/UpdateAISession200Response.php index 007e19d..e583541 100644 --- a/src/Model/UpdateAISession200Response.php +++ b/src/Model/UpdateAISession200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/UpdateAISessionRequest.php b/src/Model/UpdateAISessionRequest.php index 2404bc8..d263327 100644 --- a/src/Model/UpdateAISessionRequest.php +++ b/src/Model/UpdateAISessionRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/UpdateAISessionRequestNewMessagesInner.php b/src/Model/UpdateAISessionRequestNewMessagesInner.php index d2ad7c6..6998816 100644 --- a/src/Model/UpdateAISessionRequestNewMessagesInner.php +++ b/src/Model/UpdateAISessionRequestNewMessagesInner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/UpdateCronJobRequest.php b/src/Model/UpdateCronJobRequest.php index 3d378c5..fba9c75 100644 --- a/src/Model/UpdateCronJobRequest.php +++ b/src/Model/UpdateCronJobRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/UpdateEnvironmentRequest.php b/src/Model/UpdateEnvironmentRequest.php index f839b3b..69b46f4 100644 --- a/src/Model/UpdateEnvironmentRequest.php +++ b/src/Model/UpdateEnvironmentRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/UpdateEnvironmentStateRequest.php b/src/Model/UpdateEnvironmentStateRequest.php index cefbff0..c904593 100644 --- a/src/Model/UpdateEnvironmentStateRequest.php +++ b/src/Model/UpdateEnvironmentStateRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/UpdateEnvironmentVariableRequest.php b/src/Model/UpdateEnvironmentVariableRequest.php index 531d320..542d671 100644 --- a/src/Model/UpdateEnvironmentVariableRequest.php +++ b/src/Model/UpdateEnvironmentVariableRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/UpdateTask200Response.php b/src/Model/UpdateTask200Response.php new file mode 100644 index 0000000..6ae10ce --- /dev/null +++ b/src/Model/UpdateTask200Response.php @@ -0,0 +1,477 @@ + + */ +class UpdateTask200Response implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'updateTask_200_response'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'task_id' => 'string', + 'status' => 'string', + 'updated_at' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'task_id' => 'uuid', + 'status' => null, + 'updated_at' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'task_id' => false, + 'status' => false, + 'updated_at' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected array $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'task_id' => 'taskId', + 'status' => 'status', + 'updated_at' => 'updatedAt' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'task_id' => 'setTaskId', + 'status' => 'setStatus', + 'updated_at' => 'setUpdatedAt' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'task_id' => 'getTaskId', + 'status' => 'getStatus', + 'updated_at' => 'getUpdatedAt' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[]|null $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('task_id', $data ?? [], null); + $this->setIfExists('status', $data ?? [], null); + $this->setIfExists('updated_at', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets task_id + * + * @return string|null + */ + public function getTaskId() + { + return $this->container['task_id']; + } + + /** + * Sets task_id + * + * @param string|null $task_id task_id + * + * @return self + */ + public function setTaskId($task_id) + { + if (is_null($task_id)) { + throw new \InvalidArgumentException('non-nullable task_id cannot be null'); + } + $this->container['task_id'] = $task_id; + + return $this; + } + + /** + * Gets status + * + * @return string|null + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string|null $status status + * + * @return self + */ + public function setStatus($status) + { + if (is_null($status)) { + throw new \InvalidArgumentException('non-nullable status cannot be null'); + } + $this->container['status'] = $status; + + return $this; + } + + /** + * Gets updated_at + * + * @return int|null + */ + public function getUpdatedAt() + { + return $this->container['updated_at']; + } + + /** + * Sets updated_at + * + * @param int|null $updated_at updated_at + * + * @return self + */ + public function setUpdatedAt($updated_at) + { + if (is_null($updated_at)) { + throw new \InvalidArgumentException('non-nullable updated_at cannot be null'); + } + $this->container['updated_at'] = $updated_at; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/Model/UpdateTaskRequest.php b/src/Model/UpdateTaskRequest.php new file mode 100644 index 0000000..55d55bd --- /dev/null +++ b/src/Model/UpdateTaskRequest.php @@ -0,0 +1,1003 @@ + + */ +class UpdateTaskRequest implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'updateTask_request'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'title' => 'string', + 'description' => 'string', + 'task_list_id' => 'string', + 'status' => 'string', + 'assigned_agent_id' => 'string', + 'depends_on' => 'string[]', + 'metadata' => 'object', + 'progress' => 'float', + 'progress_message' => 'string', + 'result' => 'object', + 'error' => 'string', + 'retry_count' => 'int', + 'max_retries' => 'int', + 'blocked_reason' => 'string', + 'blocked_by_task_ids' => 'string[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'title' => null, + 'description' => null, + 'task_list_id' => null, + 'status' => null, + 'assigned_agent_id' => null, + 'depends_on' => 'uuid', + 'metadata' => null, + 'progress' => 'float', + 'progress_message' => null, + 'result' => null, + 'error' => null, + 'retry_count' => null, + 'max_retries' => null, + 'blocked_reason' => null, + 'blocked_by_task_ids' => 'uuid' + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'title' => false, + 'description' => false, + 'task_list_id' => true, + 'status' => false, + 'assigned_agent_id' => true, + 'depends_on' => false, + 'metadata' => false, + 'progress' => false, + 'progress_message' => false, + 'result' => false, + 'error' => true, + 'retry_count' => false, + 'max_retries' => false, + 'blocked_reason' => true, + 'blocked_by_task_ids' => true + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected array $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'title' => 'title', + 'description' => 'description', + 'task_list_id' => 'taskListId', + 'status' => 'status', + 'assigned_agent_id' => 'assignedAgentId', + 'depends_on' => 'dependsOn', + 'metadata' => 'metadata', + 'progress' => 'progress', + 'progress_message' => 'progressMessage', + 'result' => 'result', + 'error' => 'error', + 'retry_count' => 'retryCount', + 'max_retries' => 'maxRetries', + 'blocked_reason' => 'blockedReason', + 'blocked_by_task_ids' => 'blockedByTaskIds' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'title' => 'setTitle', + 'description' => 'setDescription', + 'task_list_id' => 'setTaskListId', + 'status' => 'setStatus', + 'assigned_agent_id' => 'setAssignedAgentId', + 'depends_on' => 'setDependsOn', + 'metadata' => 'setMetadata', + 'progress' => 'setProgress', + 'progress_message' => 'setProgressMessage', + 'result' => 'setResult', + 'error' => 'setError', + 'retry_count' => 'setRetryCount', + 'max_retries' => 'setMaxRetries', + 'blocked_reason' => 'setBlockedReason', + 'blocked_by_task_ids' => 'setBlockedByTaskIds' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'title' => 'getTitle', + 'description' => 'getDescription', + 'task_list_id' => 'getTaskListId', + 'status' => 'getStatus', + 'assigned_agent_id' => 'getAssignedAgentId', + 'depends_on' => 'getDependsOn', + 'metadata' => 'getMetadata', + 'progress' => 'getProgress', + 'progress_message' => 'getProgressMessage', + 'result' => 'getResult', + 'error' => 'getError', + 'retry_count' => 'getRetryCount', + 'max_retries' => 'getMaxRetries', + 'blocked_reason' => 'getBlockedReason', + 'blocked_by_task_ids' => 'getBlockedByTaskIds' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + public const STATUS_PENDING = 'pending'; + public const STATUS_IN_PROGRESS = 'in_progress'; + public const STATUS_COMPLETED = 'completed'; + public const STATUS_FAILED = 'failed'; + public const STATUS_CANCELLED = 'cancelled'; + public const STATUS_BLOCKED = 'blocked'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getStatusAllowableValues() + { + return [ + self::STATUS_PENDING, + self::STATUS_IN_PROGRESS, + self::STATUS_COMPLETED, + self::STATUS_FAILED, + self::STATUS_CANCELLED, + self::STATUS_BLOCKED, + ]; + } + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[]|null $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('title', $data ?? [], null); + $this->setIfExists('description', $data ?? [], null); + $this->setIfExists('task_list_id', $data ?? [], null); + $this->setIfExists('status', $data ?? [], null); + $this->setIfExists('assigned_agent_id', $data ?? [], null); + $this->setIfExists('depends_on', $data ?? [], null); + $this->setIfExists('metadata', $data ?? [], null); + $this->setIfExists('progress', $data ?? [], null); + $this->setIfExists('progress_message', $data ?? [], null); + $this->setIfExists('result', $data ?? [], null); + $this->setIfExists('error', $data ?? [], null); + $this->setIfExists('retry_count', $data ?? [], null); + $this->setIfExists('max_retries', $data ?? [], null); + $this->setIfExists('blocked_reason', $data ?? [], null); + $this->setIfExists('blocked_by_task_ids', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + $allowedValues = $this->getStatusAllowableValues(); + if (!is_null($this->container['status']) && !in_array($this->container['status'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'status', must be one of '%s'", + $this->container['status'], + implode("', '", $allowedValues) + ); + } + + if (!is_null($this->container['progress']) && ($this->container['progress'] > 1)) { + $invalidProperties[] = "invalid value for 'progress', must be smaller than or equal to 1."; + } + + if (!is_null($this->container['progress']) && ($this->container['progress'] < 0)) { + $invalidProperties[] = "invalid value for 'progress', must be bigger than or equal to 0."; + } + + if (!is_null($this->container['retry_count']) && ($this->container['retry_count'] < 0)) { + $invalidProperties[] = "invalid value for 'retry_count', must be bigger than or equal to 0."; + } + + if (!is_null($this->container['max_retries']) && ($this->container['max_retries'] > 10)) { + $invalidProperties[] = "invalid value for 'max_retries', must be smaller than or equal to 10."; + } + + if (!is_null($this->container['max_retries']) && ($this->container['max_retries'] < 0)) { + $invalidProperties[] = "invalid value for 'max_retries', must be bigger than or equal to 0."; + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets title + * + * @return string|null + */ + public function getTitle() + { + return $this->container['title']; + } + + /** + * Sets title + * + * @param string|null $title title + * + * @return self + */ + public function setTitle($title) + { + if (is_null($title)) { + throw new \InvalidArgumentException('non-nullable title cannot be null'); + } + $this->container['title'] = $title; + + return $this; + } + + /** + * Gets description + * + * @return string|null + */ + public function getDescription() + { + return $this->container['description']; + } + + /** + * Sets description + * + * @param string|null $description description + * + * @return self + */ + public function setDescription($description) + { + if (is_null($description)) { + throw new \InvalidArgumentException('non-nullable description cannot be null'); + } + $this->container['description'] = $description; + + return $this; + } + + /** + * Gets task_list_id + * + * @return string|null + */ + public function getTaskListId() + { + return $this->container['task_list_id']; + } + + /** + * Sets task_list_id + * + * @param string|null $task_list_id Move task to different list or remove from list (set null) + * + * @return self + */ + public function setTaskListId($task_list_id) + { + if (is_null($task_list_id)) { + array_push($this->openAPINullablesSetToNull, 'task_list_id'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('task_list_id', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['task_list_id'] = $task_list_id; + + return $this; + } + + /** + * Gets status + * + * @return string|null + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string|null $status Task status (triggers automatic timestamp updates) + * + * @return self + */ + public function setStatus($status) + { + if (is_null($status)) { + throw new \InvalidArgumentException('non-nullable status cannot be null'); + } + $allowedValues = $this->getStatusAllowableValues(); + if (!in_array($status, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'status', must be one of '%s'", + $status, + implode("', '", $allowedValues) + ) + ); + } + $this->container['status'] = $status; + + return $this; + } + + /** + * Gets assigned_agent_id + * + * @return string|null + */ + public function getAssignedAgentId() + { + return $this->container['assigned_agent_id']; + } + + /** + * Sets assigned_agent_id + * + * @param string|null $assigned_agent_id Reassign task to different agent + * + * @return self + */ + public function setAssignedAgentId($assigned_agent_id) + { + if (is_null($assigned_agent_id)) { + array_push($this->openAPINullablesSetToNull, 'assigned_agent_id'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('assigned_agent_id', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['assigned_agent_id'] = $assigned_agent_id; + + return $this; + } + + /** + * Gets depends_on + * + * @return string[]|null + */ + public function getDependsOn() + { + return $this->container['depends_on']; + } + + /** + * Sets depends_on + * + * @param string[]|null $depends_on Update task dependencies + * + * @return self + */ + public function setDependsOn($depends_on) + { + if (is_null($depends_on)) { + throw new \InvalidArgumentException('non-nullable depends_on cannot be null'); + } + $this->container['depends_on'] = $depends_on; + + return $this; + } + + /** + * Gets metadata + * + * @return object|null + */ + public function getMetadata() + { + return $this->container['metadata']; + } + + /** + * Sets metadata + * + * @param object|null $metadata Update task metadata (replaces entire metadata object) + * + * @return self + */ + public function setMetadata($metadata) + { + if (is_null($metadata)) { + throw new \InvalidArgumentException('non-nullable metadata cannot be null'); + } + $this->container['metadata'] = $metadata; + + return $this; + } + + /** + * Gets progress + * + * @return float|null + */ + public function getProgress() + { + return $this->container['progress']; + } + + /** + * Sets progress + * + * @param float|null $progress Progress from 0.0 to 1.0 + * + * @return self + */ + public function setProgress($progress) + { + if (is_null($progress)) { + throw new \InvalidArgumentException('non-nullable progress cannot be null'); + } + + if (($progress > 1)) { + throw new \InvalidArgumentException('invalid value for $progress when calling UpdateTaskRequest., must be smaller than or equal to 1.'); + } + if (($progress < 0)) { + throw new \InvalidArgumentException('invalid value for $progress when calling UpdateTaskRequest., must be bigger than or equal to 0.'); + } + + $this->container['progress'] = $progress; + + return $this; + } + + /** + * Gets progress_message + * + * @return string|null + */ + public function getProgressMessage() + { + return $this->container['progress_message']; + } + + /** + * Sets progress_message + * + * @param string|null $progress_message Human-readable progress message + * + * @return self + */ + public function setProgressMessage($progress_message) + { + if (is_null($progress_message)) { + throw new \InvalidArgumentException('non-nullable progress_message cannot be null'); + } + $this->container['progress_message'] = $progress_message; + + return $this; + } + + /** + * Gets result + * + * @return object|null + */ + public function getResult() + { + return $this->container['result']; + } + + /** + * Sets result + * + * @param object|null $result Task result data (set when completing task) + * + * @return self + */ + public function setResult($result) + { + if (is_null($result)) { + throw new \InvalidArgumentException('non-nullable result cannot be null'); + } + $this->container['result'] = $result; + + return $this; + } + + /** + * Gets error + * + * @return string|null + */ + public function getError() + { + return $this->container['error']; + } + + /** + * Sets error + * + * @param string|null $error Error message (set when task fails) + * + * @return self + */ + public function setError($error) + { + if (is_null($error)) { + array_push($this->openAPINullablesSetToNull, 'error'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('error', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['error'] = $error; + + return $this; + } + + /** + * Gets retry_count + * + * @return int|null + */ + public function getRetryCount() + { + return $this->container['retry_count']; + } + + /** + * Sets retry_count + * + * @param int|null $retry_count Update retry count + * + * @return self + */ + public function setRetryCount($retry_count) + { + if (is_null($retry_count)) { + throw new \InvalidArgumentException('non-nullable retry_count cannot be null'); + } + + if (($retry_count < 0)) { + throw new \InvalidArgumentException('invalid value for $retry_count when calling UpdateTaskRequest., must be bigger than or equal to 0.'); + } + + $this->container['retry_count'] = $retry_count; + + return $this; + } + + /** + * Gets max_retries + * + * @return int|null + */ + public function getMaxRetries() + { + return $this->container['max_retries']; + } + + /** + * Sets max_retries + * + * @param int|null $max_retries Update maximum retry attempts + * + * @return self + */ + public function setMaxRetries($max_retries) + { + if (is_null($max_retries)) { + throw new \InvalidArgumentException('non-nullable max_retries cannot be null'); + } + + if (($max_retries > 10)) { + throw new \InvalidArgumentException('invalid value for $max_retries when calling UpdateTaskRequest., must be smaller than or equal to 10.'); + } + if (($max_retries < 0)) { + throw new \InvalidArgumentException('invalid value for $max_retries when calling UpdateTaskRequest., must be bigger than or equal to 0.'); + } + + $this->container['max_retries'] = $max_retries; + + return $this; + } + + /** + * Gets blocked_reason + * + * @return string|null + */ + public function getBlockedReason() + { + return $this->container['blocked_reason']; + } + + /** + * Sets blocked_reason + * + * @param string|null $blocked_reason Reason task is blocked (set when status is blocked) + * + * @return self + */ + public function setBlockedReason($blocked_reason) + { + if (is_null($blocked_reason)) { + array_push($this->openAPINullablesSetToNull, 'blocked_reason'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('blocked_reason', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['blocked_reason'] = $blocked_reason; + + return $this; + } + + /** + * Gets blocked_by_task_ids + * + * @return string[]|null + */ + public function getBlockedByTaskIds() + { + return $this->container['blocked_by_task_ids']; + } + + /** + * Sets blocked_by_task_ids + * + * @param string[]|null $blocked_by_task_ids Task IDs that are blocking this task + * + * @return self + */ + public function setBlockedByTaskIds($blocked_by_task_ids) + { + if (is_null($blocked_by_task_ids)) { + array_push($this->openAPINullablesSetToNull, 'blocked_by_task_ids'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('blocked_by_task_ids', $nullablesSetToNull); + if ($index !== FALSE) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['blocked_by_task_ids'] = $blocked_by_task_ids; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/Model/UploadFile201Response.php b/src/Model/UploadFile201Response.php new file mode 100644 index 0000000..0a25d33 --- /dev/null +++ b/src/Model/UploadFile201Response.php @@ -0,0 +1,749 @@ + + */ +class UploadFile201Response implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'uploadFile_201_response'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'file_id' => 'string', + 's3_uri' => 'string', + 'url' => 'string', + 'upload_url' => 'string', + 's3_key' => 'string', + 'expires_in' => 'int', + 'filename' => 'string', + 'content_type' => 'string', + 'size' => 'int', + 'metadata' => 'object', + 'created_at' => '\DateTime' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'file_id' => 'uuid', + 's3_uri' => null, + 'url' => 'uri', + 'upload_url' => 'uri', + 's3_key' => null, + 'expires_in' => null, + 'filename' => null, + 'content_type' => null, + 'size' => null, + 'metadata' => null, + 'created_at' => 'date-time' + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'file_id' => false, + 's3_uri' => false, + 'url' => false, + 'upload_url' => false, + 's3_key' => false, + 'expires_in' => false, + 'filename' => false, + 'content_type' => false, + 'size' => false, + 'metadata' => false, + 'created_at' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected array $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'file_id' => 'fileId', + 's3_uri' => 's3Uri', + 'url' => 'url', + 'upload_url' => 'uploadUrl', + 's3_key' => 's3Key', + 'expires_in' => 'expiresIn', + 'filename' => 'filename', + 'content_type' => 'contentType', + 'size' => 'size', + 'metadata' => 'metadata', + 'created_at' => 'createdAt' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'file_id' => 'setFileId', + 's3_uri' => 'setS3Uri', + 'url' => 'setUrl', + 'upload_url' => 'setUploadUrl', + 's3_key' => 'setS3Key', + 'expires_in' => 'setExpiresIn', + 'filename' => 'setFilename', + 'content_type' => 'setContentType', + 'size' => 'setSize', + 'metadata' => 'setMetadata', + 'created_at' => 'setCreatedAt' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'file_id' => 'getFileId', + 's3_uri' => 'getS3Uri', + 'url' => 'getUrl', + 'upload_url' => 'getUploadUrl', + 's3_key' => 'getS3Key', + 'expires_in' => 'getExpiresIn', + 'filename' => 'getFilename', + 'content_type' => 'getContentType', + 'size' => 'getSize', + 'metadata' => 'getMetadata', + 'created_at' => 'getCreatedAt' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[]|null $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('file_id', $data ?? [], null); + $this->setIfExists('s3_uri', $data ?? [], null); + $this->setIfExists('url', $data ?? [], null); + $this->setIfExists('upload_url', $data ?? [], null); + $this->setIfExists('s3_key', $data ?? [], null); + $this->setIfExists('expires_in', $data ?? [], null); + $this->setIfExists('filename', $data ?? [], null); + $this->setIfExists('content_type', $data ?? [], null); + $this->setIfExists('size', $data ?? [], null); + $this->setIfExists('metadata', $data ?? [], null); + $this->setIfExists('created_at', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets file_id + * + * @return string|null + */ + public function getFileId() + { + return $this->container['file_id']; + } + + /** + * Sets file_id + * + * @param string|null $file_id file_id + * + * @return self + */ + public function setFileId($file_id) + { + if (is_null($file_id)) { + throw new \InvalidArgumentException('non-nullable file_id cannot be null'); + } + $this->container['file_id'] = $file_id; + + return $this; + } + + /** + * Gets s3_uri + * + * @return string|null + */ + public function getS3Uri() + { + return $this->container['s3_uri']; + } + + /** + * Sets s3_uri + * + * @param string|null $s3_uri S3 URI (direct upload only) + * + * @return self + */ + public function setS3Uri($s3_uri) + { + if (is_null($s3_uri)) { + throw new \InvalidArgumentException('non-nullable s3_uri cannot be null'); + } + $this->container['s3_uri'] = $s3_uri; + + return $this; + } + + /** + * Gets url + * + * @return string|null + */ + public function getUrl() + { + return $this->container['url']; + } + + /** + * Sets url + * + * @param string|null $url Presigned download URL (direct upload only) + * + * @return self + */ + public function setUrl($url) + { + if (is_null($url)) { + throw new \InvalidArgumentException('non-nullable url cannot be null'); + } + $this->container['url'] = $url; + + return $this; + } + + /** + * Gets upload_url + * + * @return string|null + */ + public function getUploadUrl() + { + return $this->container['upload_url']; + } + + /** + * Sets upload_url + * + * @param string|null $upload_url Presigned PUT URL (presigned upload only) + * + * @return self + */ + public function setUploadUrl($upload_url) + { + if (is_null($upload_url)) { + throw new \InvalidArgumentException('non-nullable upload_url cannot be null'); + } + $this->container['upload_url'] = $upload_url; + + return $this; + } + + /** + * Gets s3_key + * + * @return string|null + */ + public function getS3Key() + { + return $this->container['s3_key']; + } + + /** + * Sets s3_key + * + * @param string|null $s3_key S3 object key (presigned upload only) + * + * @return self + */ + public function setS3Key($s3_key) + { + if (is_null($s3_key)) { + throw new \InvalidArgumentException('non-nullable s3_key cannot be null'); + } + $this->container['s3_key'] = $s3_key; + + return $this; + } + + /** + * Gets expires_in + * + * @return int|null + */ + public function getExpiresIn() + { + return $this->container['expires_in']; + } + + /** + * Sets expires_in + * + * @param int|null $expires_in URL expiry in seconds (presigned upload only) + * + * @return self + */ + public function setExpiresIn($expires_in) + { + if (is_null($expires_in)) { + throw new \InvalidArgumentException('non-nullable expires_in cannot be null'); + } + $this->container['expires_in'] = $expires_in; + + return $this; + } + + /** + * Gets filename + * + * @return string|null + */ + public function getFilename() + { + return $this->container['filename']; + } + + /** + * Sets filename + * + * @param string|null $filename filename + * + * @return self + */ + public function setFilename($filename) + { + if (is_null($filename)) { + throw new \InvalidArgumentException('non-nullable filename cannot be null'); + } + $this->container['filename'] = $filename; + + return $this; + } + + /** + * Gets content_type + * + * @return string|null + */ + public function getContentType() + { + return $this->container['content_type']; + } + + /** + * Sets content_type + * + * @param string|null $content_type content_type + * + * @return self + */ + public function setContentType($content_type) + { + if (is_null($content_type)) { + throw new \InvalidArgumentException('non-nullable content_type cannot be null'); + } + $this->container['content_type'] = $content_type; + + return $this; + } + + /** + * Gets size + * + * @return int|null + */ + public function getSize() + { + return $this->container['size']; + } + + /** + * Sets size + * + * @param int|null $size size + * + * @return self + */ + public function setSize($size) + { + if (is_null($size)) { + throw new \InvalidArgumentException('non-nullable size cannot be null'); + } + $this->container['size'] = $size; + + return $this; + } + + /** + * Gets metadata + * + * @return object|null + */ + public function getMetadata() + { + return $this->container['metadata']; + } + + /** + * Sets metadata + * + * @param object|null $metadata metadata + * + * @return self + */ + public function setMetadata($metadata) + { + if (is_null($metadata)) { + throw new \InvalidArgumentException('non-nullable metadata cannot be null'); + } + $this->container['metadata'] = $metadata; + + return $this; + } + + /** + * Gets created_at + * + * @return \DateTime|null + */ + public function getCreatedAt() + { + return $this->container['created_at']; + } + + /** + * Sets created_at + * + * @param \DateTime|null $created_at created_at + * + * @return self + */ + public function setCreatedAt($created_at) + { + if (is_null($created_at)) { + throw new \InvalidArgumentException('non-nullable created_at cannot be null'); + } + $this->container['created_at'] = $created_at; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/Model/UploadFileRequest.php b/src/Model/UploadFileRequest.php new file mode 100644 index 0000000..b28e5fb --- /dev/null +++ b/src/Model/UploadFileRequest.php @@ -0,0 +1,582 @@ + + */ +class UploadFileRequest implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'uploadFile_request'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'content' => 'string', + 'request_upload_url' => 'bool', + 'size' => 'int', + 'filename' => 'string', + 'content_type' => 'string', + 'metadata' => 'array' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'content' => null, + 'request_upload_url' => null, + 'size' => null, + 'filename' => null, + 'content_type' => null, + 'metadata' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'content' => false, + 'request_upload_url' => false, + 'size' => false, + 'filename' => false, + 'content_type' => false, + 'metadata' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected array $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'content' => 'content', + 'request_upload_url' => 'requestUploadUrl', + 'size' => 'size', + 'filename' => 'filename', + 'content_type' => 'contentType', + 'metadata' => 'metadata' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'content' => 'setContent', + 'request_upload_url' => 'setRequestUploadUrl', + 'size' => 'setSize', + 'filename' => 'setFilename', + 'content_type' => 'setContentType', + 'metadata' => 'setMetadata' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'content' => 'getContent', + 'request_upload_url' => 'getRequestUploadUrl', + 'size' => 'getSize', + 'filename' => 'getFilename', + 'content_type' => 'getContentType', + 'metadata' => 'getMetadata' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[]|null $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('content', $data ?? [], null); + $this->setIfExists('request_upload_url', $data ?? [], false); + $this->setIfExists('size', $data ?? [], null); + $this->setIfExists('filename', $data ?? [], null); + $this->setIfExists('content_type', $data ?? [], null); + $this->setIfExists('metadata', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['content_type'] === null) { + $invalidProperties[] = "'content_type' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets content + * + * @return string|null + */ + public function getContent() + { + return $this->container['content']; + } + + /** + * Sets content + * + * @param string|null $content Base64-encoded file content (for direct upload). Required unless using requestUploadUrl. + * + * @return self + */ + public function setContent($content) + { + if (is_null($content)) { + throw new \InvalidArgumentException('non-nullable content cannot be null'); + } + $this->container['content'] = $content; + + return $this; + } + + /** + * Gets request_upload_url + * + * @return bool|null + */ + public function getRequestUploadUrl() + { + return $this->container['request_upload_url']; + } + + /** + * Sets request_upload_url + * + * @param bool|null $request_upload_url Set to true to get a presigned S3 upload URL instead of uploading directly. + * + * @return self + */ + public function setRequestUploadUrl($request_upload_url) + { + if (is_null($request_upload_url)) { + throw new \InvalidArgumentException('non-nullable request_upload_url cannot be null'); + } + $this->container['request_upload_url'] = $request_upload_url; + + return $this; + } + + /** + * Gets size + * + * @return int|null + */ + public function getSize() + { + return $this->container['size']; + } + + /** + * Sets size + * + * @param int|null $size File size in bytes. Optional but recommended for presigned uploads. + * + * @return self + */ + public function setSize($size) + { + if (is_null($size)) { + throw new \InvalidArgumentException('non-nullable size cannot be null'); + } + $this->container['size'] = $size; + + return $this; + } + + /** + * Gets filename + * + * @return string|null + */ + public function getFilename() + { + return $this->container['filename']; + } + + /** + * Sets filename + * + * @param string|null $filename Original filename + * + * @return self + */ + public function setFilename($filename) + { + if (is_null($filename)) { + throw new \InvalidArgumentException('non-nullable filename cannot be null'); + } + $this->container['filename'] = $filename; + + return $this; + } + + /** + * Gets content_type + * + * @return string + */ + public function getContentType() + { + return $this->container['content_type']; + } + + /** + * Sets content_type + * + * @param string $content_type MIME type of the file + * + * @return self + */ + public function setContentType($content_type) + { + if (is_null($content_type)) { + throw new \InvalidArgumentException('non-nullable content_type cannot be null'); + } + $this->container['content_type'] = $content_type; + + return $this; + } + + /** + * Gets metadata + * + * @return array|null + */ + public function getMetadata() + { + return $this->container['metadata']; + } + + /** + * Sets metadata + * + * @param array|null $metadata Custom metadata for filtering. Any fields allowed. + * + * @return self + */ + public function setMetadata($metadata) + { + if (is_null($metadata)) { + throw new \InvalidArgumentException('non-nullable metadata cannot be null'); + } + $this->container['metadata'] = $metadata; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/Model/UploadVectorDocuments200Response.php b/src/Model/UploadVectorDocuments200Response.php index e736d31..c085ffe 100644 --- a/src/Model/UploadVectorDocuments200Response.php +++ b/src/Model/UploadVectorDocuments200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/UploadVectorDocumentsRequest.php b/src/Model/UploadVectorDocumentsRequest.php index aa4232d..d2815a3 100644 --- a/src/Model/UploadVectorDocumentsRequest.php +++ b/src/Model/UploadVectorDocumentsRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/UploadVectorDocumentsRequestDocumentsInner.php b/src/Model/UploadVectorDocumentsRequestDocumentsInner.php index f98aad2..1ecbeda 100644 --- a/src/Model/UploadVectorDocumentsRequestDocumentsInner.php +++ b/src/Model/UploadVectorDocumentsRequestDocumentsInner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/UploadVectorDocumentsRequestDocumentsInnerMetadata.php b/src/Model/UploadVectorDocumentsRequestDocumentsInnerMetadata.php index dc5f959..1f67a43 100644 --- a/src/Model/UploadVectorDocumentsRequestDocumentsInnerMetadata.php +++ b/src/Model/UploadVectorDocumentsRequestDocumentsInnerMetadata.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V1ContentItem.php b/src/Model/V1ContentItem.php index 7e69e2e..5b889a7 100644 --- a/src/Model/V1ContentItem.php +++ b/src/Model/V1ContentItem.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V1ContentListResponse.php b/src/Model/V1ContentListResponse.php index eb02f2d..5d19376 100644 --- a/src/Model/V1ContentListResponse.php +++ b/src/Model/V1ContentListResponse.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V1ContentRequest.php b/src/Model/V1ContentRequest.php index 0b8ca3b..71ae074 100644 --- a/src/Model/V1ContentRequest.php +++ b/src/Model/V1ContentRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V1DeleteResponse.php b/src/Model/V1DeleteResponse.php index d79437a..22af02d 100644 --- a/src/Model/V1DeleteResponse.php +++ b/src/Model/V1DeleteResponse.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V1Error.php b/src/Model/V1Error.php index a79c9b8..8caa572 100644 --- a/src/Model/V1Error.php +++ b/src/Model/V1Error.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V1FormSubmissionItem.php b/src/Model/V1FormSubmissionItem.php index 5cfc683..ca0646d 100644 --- a/src/Model/V1FormSubmissionItem.php +++ b/src/Model/V1FormSubmissionItem.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V1FormSubmissionListResponse.php b/src/Model/V1FormSubmissionListResponse.php index 51e7bf8..9e6d624 100644 --- a/src/Model/V1FormSubmissionListResponse.php +++ b/src/Model/V1FormSubmissionListResponse.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V1GetMetricSeriesResponse.php b/src/Model/V1GetMetricSeriesResponse.php index c4c886b..b20e1b1 100644 --- a/src/Model/V1GetMetricSeriesResponse.php +++ b/src/Model/V1GetMetricSeriesResponse.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V1GetMetricSeriesResponseData.php b/src/Model/V1GetMetricSeriesResponseData.php index 097680a..da378f1 100644 --- a/src/Model/V1GetMetricSeriesResponseData.php +++ b/src/Model/V1GetMetricSeriesResponseData.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V1GetMetricsResponse.php b/src/Model/V1GetMetricsResponse.php index a964d7b..ad447aa 100644 --- a/src/Model/V1GetMetricsResponse.php +++ b/src/Model/V1GetMetricsResponse.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V1GetMetricsResponseData.php b/src/Model/V1GetMetricsResponseData.php index 43a3331..78939b7 100644 --- a/src/Model/V1GetMetricsResponseData.php +++ b/src/Model/V1GetMetricsResponseData.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V1GlobalMetaResponse.php b/src/Model/V1GlobalMetaResponse.php index 8fc2857..8d1da70 100644 --- a/src/Model/V1GlobalMetaResponse.php +++ b/src/Model/V1GlobalMetaResponse.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V1GlobalMetaResponseGlobalMeta.php b/src/Model/V1GlobalMetaResponseGlobalMeta.php index 4a57223..6e7d3b6 100644 --- a/src/Model/V1GlobalMetaResponseGlobalMeta.php +++ b/src/Model/V1GlobalMetaResponseGlobalMeta.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V1Info.php b/src/Model/V1Info.php index 20fca35..f5f7bc8 100644 --- a/src/Model/V1Info.php +++ b/src/Model/V1Info.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V1Meta.php b/src/Model/V1Meta.php index 4121a9c..2224133 100644 --- a/src/Model/V1Meta.php +++ b/src/Model/V1Meta.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V1MetricDayStats.php b/src/Model/V1MetricDayStats.php index 38a4c70..bc0a918 100644 --- a/src/Model/V1MetricDayStats.php +++ b/src/Model/V1MetricDayStats.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V1MetricMinuteStats.php b/src/Model/V1MetricMinuteStats.php index 493c278..411d1c0 100644 --- a/src/Model/V1MetricMinuteStats.php +++ b/src/Model/V1MetricMinuteStats.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V1MetricMonthStats.php b/src/Model/V1MetricMonthStats.php index e6a8ebc..6742c3a 100644 --- a/src/Model/V1MetricMonthStats.php +++ b/src/Model/V1MetricMonthStats.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V1PingResponse.php b/src/Model/V1PingResponse.php index 15a77b8..670f658 100644 --- a/src/Model/V1PingResponse.php +++ b/src/Model/V1PingResponse.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V1ProxyItem.php b/src/Model/V1ProxyItem.php index dbf4efd..1c75bca 100644 --- a/src/Model/V1ProxyItem.php +++ b/src/Model/V1ProxyItem.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V1ProxyListResponse.php b/src/Model/V1ProxyListResponse.php index 8f92a27..6895e69 100644 --- a/src/Model/V1ProxyListResponse.php +++ b/src/Model/V1ProxyListResponse.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V1RedirectItem.php b/src/Model/V1RedirectItem.php index 730fbb5..aa1ea0e 100644 --- a/src/Model/V1RedirectItem.php +++ b/src/Model/V1RedirectItem.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V1RedirectListResponse.php b/src/Model/V1RedirectListResponse.php index 2f1a6d4..1da0967 100644 --- a/src/Model/V1RedirectListResponse.php +++ b/src/Model/V1RedirectListResponse.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V1RedirectRequest.php b/src/Model/V1RedirectRequest.php index e3e72c5..8799795 100644 --- a/src/Model/V1RedirectRequest.php +++ b/src/Model/V1RedirectRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V1RedirectResponse.php b/src/Model/V1RedirectResponse.php index 15475d4..1dbcf89 100644 --- a/src/Model/V1RedirectResponse.php +++ b/src/Model/V1RedirectResponse.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V1Revision.php b/src/Model/V1Revision.php index e8e89fc..35505f2 100644 --- a/src/Model/V1Revision.php +++ b/src/Model/V1Revision.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V1RevisionsResponse.php b/src/Model/V1RevisionsResponse.php index 94d97c3..b112dc0 100644 --- a/src/Model/V1RevisionsResponse.php +++ b/src/Model/V1RevisionsResponse.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V1SearchHit.php b/src/Model/V1SearchHit.php index 1a30d3d..66e4a83 100644 --- a/src/Model/V1SearchHit.php +++ b/src/Model/V1SearchHit.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V1SearchItemsResponse.php b/src/Model/V1SearchItemsResponse.php index c9b6cba..f294e57 100644 --- a/src/Model/V1SearchItemsResponse.php +++ b/src/Model/V1SearchItemsResponse.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V1SearchMutationResponse.php b/src/Model/V1SearchMutationResponse.php index f2c009e..69c4df3 100644 --- a/src/Model/V1SearchMutationResponse.php +++ b/src/Model/V1SearchMutationResponse.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V1SearchRecord.php b/src/Model/V1SearchRecord.php index 90cdac4..c819623 100644 --- a/src/Model/V1SearchRecord.php +++ b/src/Model/V1SearchRecord.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V1SearchResponse.php b/src/Model/V1SearchResponse.php index b6a1ec4..f9c04ee 100644 --- a/src/Model/V1SearchResponse.php +++ b/src/Model/V1SearchResponse.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V1SeriesPointDay.php b/src/Model/V1SeriesPointDay.php index a53a921..1157378 100644 --- a/src/Model/V1SeriesPointDay.php +++ b/src/Model/V1SeriesPointDay.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V1SeriesPointMonth.php b/src/Model/V1SeriesPointMonth.php index 7946b19..e3fd699 100644 --- a/src/Model/V1SeriesPointMonth.php +++ b/src/Model/V1SeriesPointMonth.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V1Transition.php b/src/Model/V1Transition.php index 3f6346b..a0941be 100644 --- a/src/Model/V1Transition.php +++ b/src/Model/V1Transition.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V1UploadResponse.php b/src/Model/V1UploadResponse.php index c956495..6126074 100644 --- a/src/Model/V1UploadResponse.php +++ b/src/Model/V1UploadResponse.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V1UrlMetaRequest.php b/src/Model/V1UrlMetaRequest.php index f3b96f8..1b9afbe 100644 --- a/src/Model/V1UrlMetaRequest.php +++ b/src/Model/V1UrlMetaRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V1UrlMetaResponse.php b/src/Model/V1UrlMetaResponse.php index ea0f381..a2c3929 100644 --- a/src/Model/V1UrlMetaResponse.php +++ b/src/Model/V1UrlMetaResponse.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V1WafLogItem.php b/src/Model/V1WafLogItem.php index 50cc2b8..bb82471 100644 --- a/src/Model/V1WafLogItem.php +++ b/src/Model/V1WafLogItem.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V1WafLogListResponse.php b/src/Model/V1WafLogListResponse.php index 6134bc8..b66242e 100644 --- a/src/Model/V1WafLogListResponse.php +++ b/src/Model/V1WafLogListResponse.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2Crawler.php b/src/Model/V2Crawler.php index 06e7ebb..91ed6fe 100644 --- a/src/Model/V2Crawler.php +++ b/src/Model/V2Crawler.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2CrawlerAssets.php b/src/Model/V2CrawlerAssets.php index 510f0da..9305d89 100644 --- a/src/Model/V2CrawlerAssets.php +++ b/src/Model/V2CrawlerAssets.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2CrawlerAssetsNetworkIntercept.php b/src/Model/V2CrawlerAssetsNetworkIntercept.php index 3760149..d09a8b4 100644 --- a/src/Model/V2CrawlerAssetsNetworkIntercept.php +++ b/src/Model/V2CrawlerAssetsNetworkIntercept.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2CrawlerAssetsParser.php b/src/Model/V2CrawlerAssetsParser.php index 776c6d5..f575638 100644 --- a/src/Model/V2CrawlerAssetsParser.php +++ b/src/Model/V2CrawlerAssetsParser.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2CrawlerRequest.php b/src/Model/V2CrawlerRequest.php index c459ab5..159533a 100644 --- a/src/Model/V2CrawlerRequest.php +++ b/src/Model/V2CrawlerRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2CrawlerRun.php b/src/Model/V2CrawlerRun.php index 2ee191a..db57dee 100644 --- a/src/Model/V2CrawlerRun.php +++ b/src/Model/V2CrawlerRun.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2CrawlerSchedule.php b/src/Model/V2CrawlerSchedule.php index 1513b2e..ea84619 100644 --- a/src/Model/V2CrawlerSchedule.php +++ b/src/Model/V2CrawlerSchedule.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2CrawlerScheduleRequest.php b/src/Model/V2CrawlerScheduleRequest.php index 533e33a..75b59c9 100644 --- a/src/Model/V2CrawlerScheduleRequest.php +++ b/src/Model/V2CrawlerScheduleRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2CrawlerSitemapInner.php b/src/Model/V2CrawlerSitemapInner.php index 41abde7..bbf1220 100644 --- a/src/Model/V2CrawlerSitemapInner.php +++ b/src/Model/V2CrawlerSitemapInner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2CustomHeaderRequest.php b/src/Model/V2CustomHeaderRequest.php index 713930e..335488f 100644 --- a/src/Model/V2CustomHeaderRequest.php +++ b/src/Model/V2CustomHeaderRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2Domain.php b/src/Model/V2Domain.php index 8608c01..3a0deec 100644 --- a/src/Model/V2Domain.php +++ b/src/Model/V2Domain.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2DomainDnsGoLiveRecordsInner.php b/src/Model/V2DomainDnsGoLiveRecordsInner.php index 74bd22d..35c5364 100644 --- a/src/Model/V2DomainDnsGoLiveRecordsInner.php +++ b/src/Model/V2DomainDnsGoLiveRecordsInner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2DomainDnsValidationRecordsInner.php b/src/Model/V2DomainDnsValidationRecordsInner.php index 04f6167..fad806f 100644 --- a/src/Model/V2DomainDnsValidationRecordsInner.php +++ b/src/Model/V2DomainDnsValidationRecordsInner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2DomainRequest.php b/src/Model/V2DomainRequest.php index 74abd6a..060e692 100644 --- a/src/Model/V2DomainRequest.php +++ b/src/Model/V2DomainRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2Error.php b/src/Model/V2Error.php index 86eed61..32f4c84 100644 --- a/src/Model/V2Error.php +++ b/src/Model/V2Error.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2Organization.php b/src/Model/V2Organization.php index 3280763..0071506 100644 --- a/src/Model/V2Organization.php +++ b/src/Model/V2Organization.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2OrganizationRequest.php b/src/Model/V2OrganizationRequest.php index 140f58e..65e3539 100644 --- a/src/Model/V2OrganizationRequest.php +++ b/src/Model/V2OrganizationRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2Project.php b/src/Model/V2Project.php index dabe7e9..6cec9b7 100644 --- a/src/Model/V2Project.php +++ b/src/Model/V2Project.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2ProjectRequest.php b/src/Model/V2ProjectRequest.php index debe0d0..9d9711a 100644 --- a/src/Model/V2ProjectRequest.php +++ b/src/Model/V2ProjectRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2Rule.php b/src/Model/V2Rule.php index 74e0394..347159a 100644 --- a/src/Model/V2Rule.php +++ b/src/Model/V2Rule.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2RuleAuth.php b/src/Model/V2RuleAuth.php index 73b4732..e173a4e 100644 --- a/src/Model/V2RuleAuth.php +++ b/src/Model/V2RuleAuth.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2RuleAuthAction.php b/src/Model/V2RuleAuthAction.php index 9a5641e..1b251a4 100644 --- a/src/Model/V2RuleAuthAction.php +++ b/src/Model/V2RuleAuthAction.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2RuleAuthRequest.php b/src/Model/V2RuleAuthRequest.php index 6eacae5..485a8fb 100644 --- a/src/Model/V2RuleAuthRequest.php +++ b/src/Model/V2RuleAuthRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2RuleBotChallenge.php b/src/Model/V2RuleBotChallenge.php index 727e96e..55b5ab4 100644 --- a/src/Model/V2RuleBotChallenge.php +++ b/src/Model/V2RuleBotChallenge.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2RuleBotChallengeAction.php b/src/Model/V2RuleBotChallengeAction.php index 108401f..15f2e98 100644 --- a/src/Model/V2RuleBotChallengeAction.php +++ b/src/Model/V2RuleBotChallengeAction.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2RuleBotChallengeRequest.php b/src/Model/V2RuleBotChallengeRequest.php index eed72c7..714f1c2 100644 --- a/src/Model/V2RuleBotChallengeRequest.php +++ b/src/Model/V2RuleBotChallengeRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2RuleContentFilter.php b/src/Model/V2RuleContentFilter.php index 38b9c0b..b96918a 100644 --- a/src/Model/V2RuleContentFilter.php +++ b/src/Model/V2RuleContentFilter.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2RuleContentFilterAction.php b/src/Model/V2RuleContentFilterAction.php index 88d9c5c..5b084fb 100644 --- a/src/Model/V2RuleContentFilterAction.php +++ b/src/Model/V2RuleContentFilterAction.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2RuleContentFilterRequest.php b/src/Model/V2RuleContentFilterRequest.php index a88b1bc..66113e0 100644 --- a/src/Model/V2RuleContentFilterRequest.php +++ b/src/Model/V2RuleContentFilterRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2RuleCustomResponse.php b/src/Model/V2RuleCustomResponse.php index 43e37ff..d0a75e5 100644 --- a/src/Model/V2RuleCustomResponse.php +++ b/src/Model/V2RuleCustomResponse.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2RuleCustomResponseAction.php b/src/Model/V2RuleCustomResponseAction.php index a202b21..e745874 100644 --- a/src/Model/V2RuleCustomResponseAction.php +++ b/src/Model/V2RuleCustomResponseAction.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2RuleCustomResponseRequest.php b/src/Model/V2RuleCustomResponseRequest.php index 5785c66..e7e6ba0 100644 --- a/src/Model/V2RuleCustomResponseRequest.php +++ b/src/Model/V2RuleCustomResponseRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2RuleFunction.php b/src/Model/V2RuleFunction.php index 3cf0151..583fc5f 100644 --- a/src/Model/V2RuleFunction.php +++ b/src/Model/V2RuleFunction.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2RuleFunctionAction.php b/src/Model/V2RuleFunctionAction.php index 2aad7eb..ba292ca 100644 --- a/src/Model/V2RuleFunctionAction.php +++ b/src/Model/V2RuleFunctionAction.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2RuleFunctionRequest.php b/src/Model/V2RuleFunctionRequest.php index 5815fe1..28b30ac 100644 --- a/src/Model/V2RuleFunctionRequest.php +++ b/src/Model/V2RuleFunctionRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2RuleHeader.php b/src/Model/V2RuleHeader.php index cca1229..e6af3ae 100644 --- a/src/Model/V2RuleHeader.php +++ b/src/Model/V2RuleHeader.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2RuleHeaderAction.php b/src/Model/V2RuleHeaderAction.php index 9cb5b3f..d29f50d 100644 --- a/src/Model/V2RuleHeaderAction.php +++ b/src/Model/V2RuleHeaderAction.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2RuleHeaderRequest.php b/src/Model/V2RuleHeaderRequest.php index 0667e18..0b4032e 100644 --- a/src/Model/V2RuleHeaderRequest.php +++ b/src/Model/V2RuleHeaderRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2RuleProxy.php b/src/Model/V2RuleProxy.php index b482444..762982e 100644 --- a/src/Model/V2RuleProxy.php +++ b/src/Model/V2RuleProxy.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2RuleProxyAction.php b/src/Model/V2RuleProxyAction.php index 0f84e08..e8f64fc 100644 --- a/src/Model/V2RuleProxyAction.php +++ b/src/Model/V2RuleProxyAction.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2RuleProxyActionNotifyConfig.php b/src/Model/V2RuleProxyActionNotifyConfig.php index cc5ca4a..dfd00ae 100644 --- a/src/Model/V2RuleProxyActionNotifyConfig.php +++ b/src/Model/V2RuleProxyActionNotifyConfig.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2RuleProxyActionQuantCloudSelection.php b/src/Model/V2RuleProxyActionQuantCloudSelection.php index 34674cf..b83d7fe 100644 --- a/src/Model/V2RuleProxyActionQuantCloudSelection.php +++ b/src/Model/V2RuleProxyActionQuantCloudSelection.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2RuleProxyRequest.php b/src/Model/V2RuleProxyRequest.php index 747a6b9..ab82b37 100644 --- a/src/Model/V2RuleProxyRequest.php +++ b/src/Model/V2RuleProxyRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2RuleRedirect.php b/src/Model/V2RuleRedirect.php index 0ef8eef..99fe93a 100644 --- a/src/Model/V2RuleRedirect.php +++ b/src/Model/V2RuleRedirect.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2RuleRedirectAction.php b/src/Model/V2RuleRedirectAction.php index 965636a..897c601 100644 --- a/src/Model/V2RuleRedirectAction.php +++ b/src/Model/V2RuleRedirectAction.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2RuleRedirectRequest.php b/src/Model/V2RuleRedirectRequest.php index 81b184f..f272510 100644 --- a/src/Model/V2RuleRedirectRequest.php +++ b/src/Model/V2RuleRedirectRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2RuleRequest.php b/src/Model/V2RuleRequest.php index 0932a02..9aa123f 100644 --- a/src/Model/V2RuleRequest.php +++ b/src/Model/V2RuleRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2RuleServeStatic.php b/src/Model/V2RuleServeStatic.php index 8b5b3be..a4b31c1 100644 --- a/src/Model/V2RuleServeStatic.php +++ b/src/Model/V2RuleServeStatic.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2RuleServeStaticAction.php b/src/Model/V2RuleServeStaticAction.php index 798ef04..7385cd3 100644 --- a/src/Model/V2RuleServeStaticAction.php +++ b/src/Model/V2RuleServeStaticAction.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2RuleServeStaticRequest.php b/src/Model/V2RuleServeStaticRequest.php index 281b857..7d1936c 100644 --- a/src/Model/V2RuleServeStaticRequest.php +++ b/src/Model/V2RuleServeStaticRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2SecretStore.php b/src/Model/V2SecretStore.php index 2b216fb..adeb1ac 100644 --- a/src/Model/V2SecretStore.php +++ b/src/Model/V2SecretStore.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2SecretStoreRequest.php b/src/Model/V2SecretStoreRequest.php index 3307e28..d342e02 100644 --- a/src/Model/V2SecretStoreRequest.php +++ b/src/Model/V2SecretStoreRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2Store.php b/src/Model/V2Store.php index 92b3f32..78fb577 100644 --- a/src/Model/V2Store.php +++ b/src/Model/V2Store.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2StoreItem.php b/src/Model/V2StoreItem.php index c9a3f2f..85628fd 100644 --- a/src/Model/V2StoreItem.php +++ b/src/Model/V2StoreItem.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2StoreItemRequest.php b/src/Model/V2StoreItemRequest.php index 51d29e1..46d4a74 100644 --- a/src/Model/V2StoreItemRequest.php +++ b/src/Model/V2StoreItemRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2StoreItemUpdateRequest.php b/src/Model/V2StoreItemUpdateRequest.php index af11fdd..bb23010 100644 --- a/src/Model/V2StoreItemUpdateRequest.php +++ b/src/Model/V2StoreItemUpdateRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2StoreItemsListResponse.php b/src/Model/V2StoreItemsListResponse.php index 32c954f..18c112f 100644 --- a/src/Model/V2StoreItemsListResponse.php +++ b/src/Model/V2StoreItemsListResponse.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/V2StoreRequest.php b/src/Model/V2StoreRequest.php index 6548f84..4a0d617 100644 --- a/src/Model/V2StoreRequest.php +++ b/src/Model/V2StoreRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ValidateCompose200Response.php b/src/Model/ValidateCompose200Response.php index 13b0d83..81f07ec 100644 --- a/src/Model/ValidateCompose200Response.php +++ b/src/Model/ValidateCompose200Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ValidateCompose422Response.php b/src/Model/ValidateCompose422Response.php index 433ff30..6b13b0b 100644 --- a/src/Model/ValidateCompose422Response.php +++ b/src/Model/ValidateCompose422Response.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/ValidateComposeRequest.php b/src/Model/ValidateComposeRequest.php index 5685718..4dfb246 100644 --- a/src/Model/ValidateComposeRequest.php +++ b/src/Model/ValidateComposeRequest.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/Variable.php b/src/Model/Variable.php index 5804035..2bb6713 100644 --- a/src/Model/Variable.php +++ b/src/Model/Variable.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/Volume.php b/src/Model/Volume.php index 8ef2983..93bdbff 100644 --- a/src/Model/Volume.php +++ b/src/Model/Volume.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/WafConfig.php b/src/Model/WafConfig.php index 809fd10..deabe31 100644 --- a/src/Model/WafConfig.php +++ b/src/Model/WafConfig.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/WafConfigBlockLists.php b/src/Model/WafConfigBlockLists.php index e6642ff..45a57b0 100644 --- a/src/Model/WafConfigBlockLists.php +++ b/src/Model/WafConfigBlockLists.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/WafConfigHttpbl.php b/src/Model/WafConfigHttpbl.php index 64bc26d..298a15f 100644 --- a/src/Model/WafConfigHttpbl.php +++ b/src/Model/WafConfigHttpbl.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/Model/WafConfigThresholdsInner.php b/src/Model/WafConfigThresholdsInner.php index 13d9d2b..d48e1a9 100644 --- a/src/Model/WafConfigThresholdsInner.php +++ b/src/Model/WafConfigThresholdsInner.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/src/ObjectSerializer.php b/src/ObjectSerializer.php index e3c42d6..e2e1615 100644 --- a/src/ObjectSerializer.php +++ b/src/ObjectSerializer.php @@ -15,7 +15,7 @@ * * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.8.0 + * The version of the OpenAPI document: 4.9.0 * Generated by: https://openapi-generator.tech * Generator version: 7.13.0 */ diff --git a/test/Api/AIServicesApiTest.php b/test/Api/AIServicesApiTest.php deleted file mode 100644 index 0355339..0000000 --- a/test/Api/AIServicesApiTest.php +++ /dev/null @@ -1,284 +0,0 @@ -getConfig()); - $this->assertInstanceOf(AIServicesApi::class, $api); - // Additional test implementation would go here - $this->assertTrue(true);} - - /** - * Test case for chatInferenceStream - * - * Chat inference via streaming endpoint (true HTTP streaming) with multimodal support. - * - */ - public function testChatInferenceStream() - { - $api = new AIServicesApi(null, $this->getConfig()); - $this->assertInstanceOf(AIServicesApi::class, $api); - // Additional test implementation would go here - $this->assertTrue(true);} - - /** - * Test case for createAISession - * - * Create a new chat session with multi-tenant isolation. - * - */ - public function testCreateAISession() - { - $api = new AIServicesApi(null, $this->getConfig()); - $this->assertInstanceOf(AIServicesApi::class, $api); - // Additional test implementation would go here - $this->assertTrue(true);} - - /** - * Test case for deleteAISession - * - * Delete a chat session. - * - */ - public function testDeleteAISession() - { - $api = new AIServicesApi(null, $this->getConfig()); - $this->assertInstanceOf(AIServicesApi::class, $api); - // Additional test implementation would go here - $this->assertTrue(true);} - - /** - * Test case for embeddings - * - * Generate text embeddings for semantic search and RAG applications. - * - */ - public function testEmbeddings() - { - $api = new AIServicesApi(null, $this->getConfig()); - $this->assertInstanceOf(AIServicesApi::class, $api); - // Additional test implementation would go here - $this->assertTrue(true);} - - /** - * Test case for getAIConfig - * - * Get AI configuration for an organization. - * - */ - public function testGetAIConfig() - { - $api = new AIServicesApi(null, $this->getConfig()); - $this->assertInstanceOf(AIServicesApi::class, $api); - // Additional test implementation would go here - $this->assertTrue(true);} - - /** - * Test case for getAISession - * - * Get a specific chat session. - * - */ - public function testGetAISession() - { - $api = new AIServicesApi(null, $this->getConfig()); - $this->assertInstanceOf(AIServicesApi::class, $api); - // Additional test implementation would go here - $this->assertTrue(true);} - - /** - * Test case for getAIUsageStats - * - * Get AI usage statistics. - * - */ - public function testGetAIUsageStats() - { - $api = new AIServicesApi(null, $this->getConfig()); - $this->assertInstanceOf(AIServicesApi::class, $api); - // Additional test implementation would go here - $this->assertTrue(true);} - - /** - * Test case for getToolExecutionStatus - * - * Get async tool execution status and result. - * - */ - public function testGetToolExecutionStatus() - { - $api = new AIServicesApi(null, $this->getConfig()); - $this->assertInstanceOf(AIServicesApi::class, $api); - // Additional test implementation would go here - $this->assertTrue(true);} - - /** - * Test case for imageGeneration - * - * Generate images with Amazon Nova Canvas. - * - */ - public function testImageGeneration() - { - $api = new AIServicesApi(null, $this->getConfig()); - $this->assertInstanceOf(AIServicesApi::class, $api); - // Additional test implementation would go here - $this->assertTrue(true);} - - /** - * Test case for listAIModels - * - * List available AI models for an organization. - * - */ - public function testListAIModels() - { - $api = new AIServicesApi(null, $this->getConfig()); - $this->assertInstanceOf(AIServicesApi::class, $api); - // Additional test implementation would go here - $this->assertTrue(true);} - - /** - * Test case for listAISessions - * - * List chat sessions with multi-tenant filtering. - * - */ - public function testListAISessions() - { - $api = new AIServicesApi(null, $this->getConfig()); - $this->assertInstanceOf(AIServicesApi::class, $api); - // Additional test implementation would go here - $this->assertTrue(true);} - - /** - * Test case for listAIToolNames - * - * List tool names only (lightweight response). - * - */ - public function testListAIToolNames() - { - $api = new AIServicesApi(null, $this->getConfig()); - $this->assertInstanceOf(AIServicesApi::class, $api); - // Additional test implementation would go here - $this->assertTrue(true);} - - /** - * Test case for listAITools - * - * List available built-in tools for function calling. - * - */ - public function testListAITools() - { - $api = new AIServicesApi(null, $this->getConfig()); - $this->assertInstanceOf(AIServicesApi::class, $api); - // Additional test implementation would go here - $this->assertTrue(true);} - - /** - * Test case for listToolExecutions - * - * List tool executions for monitoring and debugging. - * - */ - public function testListToolExecutions() - { - $api = new AIServicesApi(null, $this->getConfig()); - $this->assertInstanceOf(AIServicesApi::class, $api); - // Additional test implementation would go here - $this->assertTrue(true);} - - /** - * Test case for updateAIConfig - * - * Update AI configuration for an organization. - * - */ - public function testUpdateAIConfig() - { - $api = new AIServicesApi(null, $this->getConfig()); - $this->assertInstanceOf(AIServicesApi::class, $api); - // Additional test implementation would go here - $this->assertTrue(true);} -} diff --git a/test/Model/GetAIConfig200ResponseTest.php b/test/Model/GetAIConfig200ResponseTest.php deleted file mode 100644 index b8485e3..0000000 --- a/test/Model/GetAIConfig200ResponseTest.php +++ /dev/null @@ -1,118 +0,0 @@ -assertInstanceOf(GetAIConfig200Response::class, $model); - } - - /** - * Test attribute "enabled_models" - */ - public function testPropertyEnabledModels() - { - $model = new GetAIConfig200Response(); - $this->assertInstanceOf(GetAIConfig200Response::class, $model); - } - - /** - * Test attribute "default_model" - */ - public function testPropertyDefaultModel() - { - $model = new GetAIConfig200Response(); - $this->assertInstanceOf(GetAIConfig200Response::class, $model); - } - - /** - * Test attribute "max_tokens" - */ - public function testPropertyMaxTokens() - { - $model = new GetAIConfig200Response(); - $this->assertInstanceOf(GetAIConfig200Response::class, $model); - } - - /** - * Test attribute "temperature" - */ - public function testPropertyTemperature() - { - $model = new GetAIConfig200Response(); - $this->assertInstanceOf(GetAIConfig200Response::class, $model); - } -} diff --git a/test/Model/GetToolExecutionStatus200ResponseResultTest.php b/test/Model/GetToolExecutionStatus200ResponseResultTest.php deleted file mode 100644 index 7c382a5..0000000 --- a/test/Model/GetToolExecutionStatus200ResponseResultTest.php +++ /dev/null @@ -1,100 +0,0 @@ -assertInstanceOf(GetToolExecutionStatus200ResponseResult::class, $model); - } - - /** - * Test attribute "images" - */ - public function testPropertyImages() - { - $model = new GetToolExecutionStatus200ResponseResult(); - $this->assertInstanceOf(GetToolExecutionStatus200ResponseResult::class, $model); - } - - /** - * Test attribute "s3_urls" - */ - public function testPropertyS3Urls() - { - $model = new GetToolExecutionStatus200ResponseResult(); - $this->assertInstanceOf(GetToolExecutionStatus200ResponseResult::class, $model); - } -} diff --git a/test/Model/GetToolExecutionStatus200ResponseTest.php b/test/Model/GetToolExecutionStatus200ResponseTest.php deleted file mode 100644 index 4843f1b..0000000 --- a/test/Model/GetToolExecutionStatus200ResponseTest.php +++ /dev/null @@ -1,163 +0,0 @@ -assertInstanceOf(GetToolExecutionStatus200Response::class, $model); - } - - /** - * Test attribute "execution_id" - */ - public function testPropertyExecutionId() - { - $model = new GetToolExecutionStatus200Response(); - $this->assertInstanceOf(GetToolExecutionStatus200Response::class, $model); - } - - /** - * Test attribute "tool_name" - */ - public function testPropertyToolName() - { - $model = new GetToolExecutionStatus200Response(); - $this->assertInstanceOf(GetToolExecutionStatus200Response::class, $model); - } - - /** - * Test attribute "status" - */ - public function testPropertyStatus() - { - $model = new GetToolExecutionStatus200Response(); - $this->assertInstanceOf(GetToolExecutionStatus200Response::class, $model); - } - - /** - * Test attribute "result" - */ - public function testPropertyResult() - { - $model = new GetToolExecutionStatus200Response(); - $this->assertInstanceOf(GetToolExecutionStatus200Response::class, $model); - } - - /** - * Test attribute "error" - */ - public function testPropertyError() - { - $model = new GetToolExecutionStatus200Response(); - $this->assertInstanceOf(GetToolExecutionStatus200Response::class, $model); - } - - /** - * Test attribute "created_at" - */ - public function testPropertyCreatedAt() - { - $model = new GetToolExecutionStatus200Response(); - $this->assertInstanceOf(GetToolExecutionStatus200Response::class, $model); - } - - /** - * Test attribute "started_at" - */ - public function testPropertyStartedAt() - { - $model = new GetToolExecutionStatus200Response(); - $this->assertInstanceOf(GetToolExecutionStatus200Response::class, $model); - } - - /** - * Test attribute "completed_at" - */ - public function testPropertyCompletedAt() - { - $model = new GetToolExecutionStatus200Response(); - $this->assertInstanceOf(GetToolExecutionStatus200Response::class, $model); - } - - /** - * Test attribute "duration" - */ - public function testPropertyDuration() - { - $model = new GetToolExecutionStatus200Response(); - $this->assertInstanceOf(GetToolExecutionStatus200Response::class, $model); - } -} diff --git a/test/Model/GetToolExecutionStatus404ResponseTest.php b/test/Model/GetToolExecutionStatus404ResponseTest.php deleted file mode 100644 index c915999..0000000 --- a/test/Model/GetToolExecutionStatus404ResponseTest.php +++ /dev/null @@ -1,100 +0,0 @@ -assertInstanceOf(GetToolExecutionStatus404Response::class, $model); - } - - /** - * Test attribute "error" - */ - public function testPropertyError() - { - $model = new GetToolExecutionStatus404Response(); - $this->assertInstanceOf(GetToolExecutionStatus404Response::class, $model); - } - - /** - * Test attribute "execution_id" - */ - public function testPropertyExecutionId() - { - $model = new GetToolExecutionStatus404Response(); - $this->assertInstanceOf(GetToolExecutionStatus404Response::class, $model); - } -} diff --git a/test/Model/ListToolExecutions200ResponseExecutionsInnerTest.php b/test/Model/ListToolExecutions200ResponseExecutionsInnerTest.php deleted file mode 100644 index a261001..0000000 --- a/test/Model/ListToolExecutions200ResponseExecutionsInnerTest.php +++ /dev/null @@ -1,127 +0,0 @@ -assertInstanceOf(ListToolExecutions200ResponseExecutionsInner::class, $model); - } - - /** - * Test attribute "execution_id" - */ - public function testPropertyExecutionId() - { - $model = new ListToolExecutions200ResponseExecutionsInner(); - $this->assertInstanceOf(ListToolExecutions200ResponseExecutionsInner::class, $model); - } - - /** - * Test attribute "tool_name" - */ - public function testPropertyToolName() - { - $model = new ListToolExecutions200ResponseExecutionsInner(); - $this->assertInstanceOf(ListToolExecutions200ResponseExecutionsInner::class, $model); - } - - /** - * Test attribute "status" - */ - public function testPropertyStatus() - { - $model = new ListToolExecutions200ResponseExecutionsInner(); - $this->assertInstanceOf(ListToolExecutions200ResponseExecutionsInner::class, $model); - } - - /** - * Test attribute "created_at" - */ - public function testPropertyCreatedAt() - { - $model = new ListToolExecutions200ResponseExecutionsInner(); - $this->assertInstanceOf(ListToolExecutions200ResponseExecutionsInner::class, $model); - } - - /** - * Test attribute "completed_at" - */ - public function testPropertyCompletedAt() - { - $model = new ListToolExecutions200ResponseExecutionsInner(); - $this->assertInstanceOf(ListToolExecutions200ResponseExecutionsInner::class, $model); - } -} diff --git a/test/Model/ListToolExecutions200ResponseTest.php b/test/Model/ListToolExecutions200ResponseTest.php deleted file mode 100644 index b40fc51..0000000 --- a/test/Model/ListToolExecutions200ResponseTest.php +++ /dev/null @@ -1,118 +0,0 @@ -assertInstanceOf(ListToolExecutions200Response::class, $model); - } - - /** - * Test attribute "executions" - */ - public function testPropertyExecutions() - { - $model = new ListToolExecutions200Response(); - $this->assertInstanceOf(ListToolExecutions200Response::class, $model); - } - - /** - * Test attribute "count" - */ - public function testPropertyCount() - { - $model = new ListToolExecutions200Response(); - $this->assertInstanceOf(ListToolExecutions200Response::class, $model); - } - - /** - * Test attribute "org_id" - */ - public function testPropertyOrgId() - { - $model = new ListToolExecutions200Response(); - $this->assertInstanceOf(ListToolExecutions200Response::class, $model); - } - - /** - * Test attribute "status" - */ - public function testPropertyStatus() - { - $model = new ListToolExecutions200Response(); - $this->assertInstanceOf(ListToolExecutions200Response::class, $model); - } -} diff --git a/test/Model/UpdateAIConfigRequestTest.php b/test/Model/UpdateAIConfigRequestTest.php deleted file mode 100644 index 703da4f..0000000 --- a/test/Model/UpdateAIConfigRequestTest.php +++ /dev/null @@ -1,118 +0,0 @@ -assertInstanceOf(UpdateAIConfigRequest::class, $model); - } - - /** - * Test attribute "enabled_models" - */ - public function testPropertyEnabledModels() - { - $model = new UpdateAIConfigRequest(); - $this->assertInstanceOf(UpdateAIConfigRequest::class, $model); - } - - /** - * Test attribute "default_model" - */ - public function testPropertyDefaultModel() - { - $model = new UpdateAIConfigRequest(); - $this->assertInstanceOf(UpdateAIConfigRequest::class, $model); - } - - /** - * Test attribute "max_tokens" - */ - public function testPropertyMaxTokens() - { - $model = new UpdateAIConfigRequest(); - $this->assertInstanceOf(UpdateAIConfigRequest::class, $model); - } - - /** - * Test attribute "temperature" - */ - public function testPropertyTemperature() - { - $model = new UpdateAIConfigRequest(); - $this->assertInstanceOf(UpdateAIConfigRequest::class, $model); - } -}