1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace AlibabaCloud\LingMou\V20250527; |
4
|
|
|
|
5
|
|
|
use AlibabaCloud\Client\Resolver\ApiResolver; |
6
|
|
|
|
7
|
|
|
/** |
8
|
|
|
* @method CloseChatInstanceSessions closeChatInstanceSessions(array $options = []) |
9
|
|
|
* @method CreateChatSession createChatSession(array $options = []) |
10
|
|
|
* @method QueryChatInstanceSessions queryChatInstanceSessions(array $options = []) |
11
|
|
|
*/ |
12
|
|
|
class LingMouApiResolver extends ApiResolver |
13
|
|
|
{ |
14
|
|
|
} |
15
|
|
|
|
16
|
|
|
class Roa extends \AlibabaCloud\Client\Resolver\Roa |
17
|
|
|
{ |
18
|
|
|
/** @var string */ |
19
|
|
|
public $product = 'LingMou'; |
20
|
|
|
|
21
|
|
|
/** @var string */ |
22
|
|
|
public $version = '2025-05-27'; |
23
|
|
|
|
24
|
|
|
/** @var string */ |
25
|
|
|
public $method = 'POST'; |
26
|
|
|
|
27
|
|
|
/** @var string */ |
28
|
|
|
protected $scheme = 'https'; |
29
|
|
|
} |
30
|
|
|
|
31
|
|
|
/** |
32
|
|
|
* @method string getInstanceId() |
33
|
|
|
* @method string getSessionIds() |
34
|
|
|
*/ |
35
|
|
|
class CloseChatInstanceSessions extends Roa |
36
|
|
|
{ |
37
|
|
|
/** @var string */ |
38
|
|
|
public $pathPattern = '/openapi/chat/instances/[instanceId]/sessions/close'; |
39
|
|
|
|
40
|
|
|
/** @var string */ |
41
|
|
|
public $method = 'PUT'; |
42
|
|
|
|
43
|
|
|
/** |
44
|
|
|
* @param string $value |
45
|
|
|
* |
46
|
|
|
* @return $this |
47
|
|
|
*/ |
48
|
|
|
public function withInstanceId($value) |
49
|
|
|
{ |
50
|
|
|
$this->data['InstanceId'] = $value; |
51
|
|
|
$this->pathParameters['instanceId'] = $value; |
52
|
|
|
|
53
|
|
|
return $this; |
54
|
|
|
} |
55
|
|
|
|
56
|
|
|
/** |
57
|
|
|
* @param string $value |
58
|
|
|
* |
59
|
|
|
* @return $this |
60
|
|
|
*/ |
61
|
|
|
public function withSessionIds($value) |
62
|
|
|
{ |
63
|
|
|
$this->data['SessionIds'] = $value; |
64
|
|
|
$this->options['form_params']['sessionIds'] = $value; |
65
|
|
|
|
66
|
|
|
return $this; |
67
|
|
|
} |
68
|
|
|
} |
69
|
|
|
|
70
|
|
|
/** |
71
|
|
|
* @method string getLicense() |
72
|
|
|
* @method string getInstanceId() |
73
|
|
|
* @method string getId() |
74
|
|
|
* @method string getPlatform() |
75
|
|
|
*/ |
76
|
|
|
class CreateChatSession extends Roa |
77
|
|
|
{ |
78
|
|
|
/** @var string */ |
79
|
|
|
public $pathPattern = '/openapi/chat/init/[id]'; |
80
|
|
|
|
81
|
|
|
/** |
82
|
|
|
* @param string $value |
83
|
|
|
* |
84
|
|
|
* @return $this |
85
|
|
|
*/ |
86
|
|
|
public function withLicense($value) |
87
|
|
|
{ |
88
|
|
|
$this->data['License'] = $value; |
89
|
|
|
$this->options['query']['license'] = $value; |
90
|
|
|
|
91
|
|
|
return $this; |
92
|
|
|
} |
93
|
|
|
|
94
|
|
|
/** |
95
|
|
|
* @param string $value |
96
|
|
|
* |
97
|
|
|
* @return $this |
98
|
|
|
*/ |
99
|
|
|
public function withInstanceId($value) |
100
|
|
|
{ |
101
|
|
|
$this->data['InstanceId'] = $value; |
102
|
|
|
$this->options['query']['instanceId'] = $value; |
103
|
|
|
|
104
|
|
|
return $this; |
105
|
|
|
} |
106
|
|
|
|
107
|
|
|
/** |
108
|
|
|
* @param string $value |
109
|
|
|
* |
110
|
|
|
* @return $this |
111
|
|
|
*/ |
112
|
|
|
public function withId($value) |
113
|
|
|
{ |
114
|
|
|
$this->data['Id'] = $value; |
115
|
|
|
$this->pathParameters['id'] = $value; |
116
|
|
|
|
117
|
|
|
return $this; |
118
|
|
|
} |
119
|
|
|
|
120
|
|
|
/** |
121
|
|
|
* @param string $value |
122
|
|
|
* |
123
|
|
|
* @return $this |
124
|
|
|
*/ |
125
|
|
|
public function withPlatform($value) |
126
|
|
|
{ |
127
|
|
|
$this->data['Platform'] = $value; |
128
|
|
|
$this->options['query']['platform'] = $value; |
129
|
|
|
|
130
|
|
|
return $this; |
131
|
|
|
} |
132
|
|
|
} |
133
|
|
|
|
134
|
|
|
/** |
135
|
|
|
* @method string getInstanceId() |
136
|
|
|
* @method string getSessionIds() |
137
|
|
|
*/ |
138
|
|
|
class QueryChatInstanceSessions extends Roa |
139
|
|
|
{ |
140
|
|
|
/** @var string */ |
141
|
|
|
public $pathPattern = '/openapi/chat/instances/[instanceId]/sessions'; |
142
|
|
|
|
143
|
|
|
/** @var string */ |
144
|
|
|
public $method = 'GET'; |
145
|
|
|
|
146
|
|
|
/** |
147
|
|
|
* @param string $value |
148
|
|
|
* |
149
|
|
|
* @return $this |
150
|
|
|
*/ |
151
|
|
|
public function withInstanceId($value) |
152
|
|
|
{ |
153
|
|
|
$this->data['InstanceId'] = $value; |
154
|
|
|
$this->pathParameters['instanceId'] = $value; |
155
|
|
|
|
156
|
|
|
return $this; |
157
|
|
|
} |
158
|
|
|
|
159
|
|
|
/** |
160
|
|
|
* @param string $value |
161
|
|
|
* |
162
|
|
|
* @return $this |
163
|
|
|
*/ |
164
|
|
|
public function withSessionIds($value) |
165
|
|
|
{ |
166
|
|
|
$this->data['SessionIds'] = $value; |
167
|
|
|
$this->options['query']['sessionIds'] = $value; |
168
|
|
|
|
169
|
|
|
return $this; |
170
|
|
|
} |
171
|
|
|
} |
172
|
|
|
|