Skip to content

Commit

Permalink
Support API RunScriptChat.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Jan 15, 2025
1 parent 6dbaa90 commit 9abe087
Show file tree
Hide file tree
Showing 18 changed files with 1,270 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
2025-01-15 Version: 2.3.0
- Support API RunScriptChat.
- Support API RunScriptRefine.
- Update API GetVideoAnalysisTask: update response param.
- Update API RunVideoAnalysis: update response param.


2025-01-14 Version: 2.2.0
- Support API GetVideoAnalysisConfig.
- Support API GetVideoAnalysisTask.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@

class output extends Model
{
/**
* @var string
*/
public $resultJsonFileUrl;

/**
* @var videoAnalysisResult
*/
Expand All @@ -38,6 +43,7 @@ class output extends Model
*/
public $videoTitleGenerateResult;
protected $_name = [
'resultJsonFileUrl' => 'resultJsonFileUrl',
'videoAnalysisResult' => 'videoAnalysisResult',
'videoCaptionResult' => 'videoCaptionResult',
'videoGenerateResult' => 'videoGenerateResult',
Expand All @@ -52,6 +58,9 @@ public function validate()
public function toMap()
{
$res = [];
if (null !== $this->resultJsonFileUrl) {
$res['resultJsonFileUrl'] = $this->resultJsonFileUrl;
}
if (null !== $this->videoAnalysisResult) {
$res['videoAnalysisResult'] = null !== $this->videoAnalysisResult ? $this->videoAnalysisResult->toMap() : null;
}
Expand Down Expand Up @@ -79,6 +88,9 @@ public function toMap()
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['resultJsonFileUrl'])) {
$model->resultJsonFileUrl = $map['resultJsonFileUrl'];
}
if (isset($map['videoAnalysisResult'])) {
$model->videoAnalysisResult = videoAnalysisResult::fromMap($map['videoAnalysisResult']);
}
Expand Down
63 changes: 63 additions & 0 deletions src/Models/RunScriptChatRequest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
<?php

// This file is auto-generated, don't edit it. Thanks.

namespace AlibabaCloud\SDK\QuanMiaoLightApp\V20240801\Models;

use AlibabaCloud\Tea\Model;

class RunScriptChatRequest extends Model
{
/**
* @description This parameter is required.
*
* @var string
*/
public $prompt;

/**
* @example a3d1c2ac-f086-4a21-9069-f5631542f5a2
*
* @var string
*/
public $taskId;
protected $_name = [
'prompt' => 'prompt',
'taskId' => 'taskId',
];

public function validate()
{
}

public function toMap()
{
$res = [];
if (null !== $this->prompt) {
$res['prompt'] = $this->prompt;
}
if (null !== $this->taskId) {
$res['taskId'] = $this->taskId;
}

return $res;
}

/**
* @param array $map
*
* @return RunScriptChatRequest
*/
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['prompt'])) {
$model->prompt = $map['prompt'];
}
if (isset($map['taskId'])) {
$model->taskId = $map['taskId'];
}

return $model;
}
}
71 changes: 71 additions & 0 deletions src/Models/RunScriptChatResponse.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
<?php

// This file is auto-generated, don't edit it. Thanks.

namespace AlibabaCloud\SDK\QuanMiaoLightApp\V20240801\Models;

use AlibabaCloud\Tea\Model;

class RunScriptChatResponse extends Model
{
/**
* @var string[]
*/
public $headers;

/**
* @var int
*/
public $statusCode;

/**
* @var RunScriptChatResponseBody
*/
public $body;
protected $_name = [
'headers' => 'headers',
'statusCode' => 'statusCode',
'body' => 'body',
];

public function validate()
{
}

public function toMap()
{
$res = [];
if (null !== $this->headers) {
$res['headers'] = $this->headers;
}
if (null !== $this->statusCode) {
$res['statusCode'] = $this->statusCode;
}
if (null !== $this->body) {
$res['body'] = null !== $this->body ? $this->body->toMap() : null;
}

return $res;
}

/**
* @param array $map
*
* @return RunScriptChatResponse
*/
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['headers'])) {
$model->headers = $map['headers'];
}
if (isset($map['statusCode'])) {
$model->statusCode = $map['statusCode'];
}
if (isset($map['body'])) {
$model->body = RunScriptChatResponseBody::fromMap($map['body']);
}

return $model;
}
}
75 changes: 75 additions & 0 deletions src/Models/RunScriptChatResponseBody.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
<?php

// This file is auto-generated, don't edit it. Thanks.

namespace AlibabaCloud\SDK\QuanMiaoLightApp\V20240801\Models;

use AlibabaCloud\SDK\QuanMiaoLightApp\V20240801\Models\RunScriptChatResponseBody\header;
use AlibabaCloud\SDK\QuanMiaoLightApp\V20240801\Models\RunScriptChatResponseBody\payload;
use AlibabaCloud\Tea\Model;

class RunScriptChatResponseBody extends Model
{
/**
* @example true
*
* @var bool
*/
public $end;

/**
* @var header
*/
public $header;

/**
* @var payload
*/
public $payload;
protected $_name = [
'end' => 'end',
'header' => 'header',
'payload' => 'payload',
];

public function validate()
{
}

public function toMap()
{
$res = [];
if (null !== $this->end) {
$res['end'] = $this->end;
}
if (null !== $this->header) {
$res['header'] = null !== $this->header ? $this->header->toMap() : null;
}
if (null !== $this->payload) {
$res['payload'] = null !== $this->payload ? $this->payload->toMap() : null;
}

return $res;
}

/**
* @param array $map
*
* @return RunScriptChatResponseBody
*/
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['end'])) {
$model->end = $map['end'];
}
if (isset($map['header'])) {
$model->header = header::fromMap($map['header']);
}
if (isset($map['payload'])) {
$model->payload = payload::fromMap($map['payload']);
}

return $model;
}
}
Loading

0 comments on commit 9abe087

Please sign in to comment.