alibabacloud-aliding20230426 2.45.2__py3-none-any.whl → 2.46.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- alibabacloud_aliding20230426/__init__.py +1 -1
- alibabacloud_aliding20230426/client.py +178 -0
- alibabacloud_aliding20230426/models.py +689 -4
- {alibabacloud_aliding20230426-2.45.2.dist-info → alibabacloud_aliding20230426-2.46.1.dist-info}/METADATA +1 -1
- alibabacloud_aliding20230426-2.46.1.dist-info/RECORD +8 -0
- alibabacloud_aliding20230426-2.45.2.dist-info/RECORD +0 -8
- {alibabacloud_aliding20230426-2.45.2.dist-info → alibabacloud_aliding20230426-2.46.1.dist-info}/LICENSE +0 -0
- {alibabacloud_aliding20230426-2.45.2.dist-info → alibabacloud_aliding20230426-2.46.1.dist-info}/WHEEL +0 -0
- {alibabacloud_aliding20230426-2.45.2.dist-info → alibabacloud_aliding20230426-2.46.1.dist-info}/top_level.txt +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = '2.
|
|
1
|
+
__version__ = '2.46.1'
|
|
@@ -4207,6 +4207,156 @@ class Client(OpenApiClient):
|
|
|
4207
4207
|
headers = aliding_20230426_models.CopyDentryHeaders()
|
|
4208
4208
|
return await self.copy_dentry_with_options_async(request, headers, runtime)
|
|
4209
4209
|
|
|
4210
|
+
def copy_dentry_by_node_id_with_options(
|
|
4211
|
+
self,
|
|
4212
|
+
tmp_req: aliding_20230426_models.CopyDentryByNodeIdRequest,
|
|
4213
|
+
tmp_header: aliding_20230426_models.CopyDentryByNodeIdHeaders,
|
|
4214
|
+
runtime: util_models.RuntimeOptions,
|
|
4215
|
+
) -> aliding_20230426_models.CopyDentryByNodeIdResponse:
|
|
4216
|
+
"""
|
|
4217
|
+
@summary 通过NodeId创建知识库节点副本
|
|
4218
|
+
|
|
4219
|
+
@param tmp_req: CopyDentryByNodeIdRequest
|
|
4220
|
+
@param tmp_header: CopyDentryByNodeIdHeaders
|
|
4221
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
4222
|
+
@return: CopyDentryByNodeIdResponse
|
|
4223
|
+
"""
|
|
4224
|
+
UtilClient.validate_model(tmp_req)
|
|
4225
|
+
request = aliding_20230426_models.CopyDentryByNodeIdShrinkRequest()
|
|
4226
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
4227
|
+
headers = aliding_20230426_models.CopyDentryByNodeIdShrinkHeaders()
|
|
4228
|
+
OpenApiUtilClient.convert(tmp_header, headers)
|
|
4229
|
+
if not UtilClient.is_unset(tmp_header.account_context):
|
|
4230
|
+
headers.account_context_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_header.account_context, 'AccountContext', 'json')
|
|
4231
|
+
if not UtilClient.is_unset(tmp_req.tenant_context):
|
|
4232
|
+
request.tenant_context_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.tenant_context, 'TenantContext', 'json')
|
|
4233
|
+
body = {}
|
|
4234
|
+
if not UtilClient.is_unset(request.dentry_uuid):
|
|
4235
|
+
body['DentryUuid'] = request.dentry_uuid
|
|
4236
|
+
if not UtilClient.is_unset(request.name):
|
|
4237
|
+
body['Name'] = request.name
|
|
4238
|
+
if not UtilClient.is_unset(request.tenant_context_shrink):
|
|
4239
|
+
body['TenantContext'] = request.tenant_context_shrink
|
|
4240
|
+
if not UtilClient.is_unset(request.to_next_node_id):
|
|
4241
|
+
body['ToNextNodeId'] = request.to_next_node_id
|
|
4242
|
+
if not UtilClient.is_unset(request.to_parent_node_id):
|
|
4243
|
+
body['ToParentNodeId'] = request.to_parent_node_id
|
|
4244
|
+
if not UtilClient.is_unset(request.to_prev_node_id):
|
|
4245
|
+
body['ToPrevNodeId'] = request.to_prev_node_id
|
|
4246
|
+
real_headers = {}
|
|
4247
|
+
if not UtilClient.is_unset(headers.common_headers):
|
|
4248
|
+
real_headers = headers.common_headers
|
|
4249
|
+
if not UtilClient.is_unset(headers.account_context_shrink):
|
|
4250
|
+
real_headers['AccountContext'] = UtilClient.to_jsonstring(headers.account_context_shrink)
|
|
4251
|
+
req = open_api_models.OpenApiRequest(
|
|
4252
|
+
headers=real_headers,
|
|
4253
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
4254
|
+
)
|
|
4255
|
+
params = open_api_models.Params(
|
|
4256
|
+
action='CopyDentryByNodeId',
|
|
4257
|
+
version='2023-04-26',
|
|
4258
|
+
protocol='HTTPS',
|
|
4259
|
+
pathname=f'/dingtalk/v2/documents/copyDentryByNodeId',
|
|
4260
|
+
method='POST',
|
|
4261
|
+
auth_type='AK',
|
|
4262
|
+
style='ROA',
|
|
4263
|
+
req_body_type='formData',
|
|
4264
|
+
body_type='json'
|
|
4265
|
+
)
|
|
4266
|
+
return TeaCore.from_map(
|
|
4267
|
+
aliding_20230426_models.CopyDentryByNodeIdResponse(),
|
|
4268
|
+
self.call_api(params, req, runtime)
|
|
4269
|
+
)
|
|
4270
|
+
|
|
4271
|
+
async def copy_dentry_by_node_id_with_options_async(
|
|
4272
|
+
self,
|
|
4273
|
+
tmp_req: aliding_20230426_models.CopyDentryByNodeIdRequest,
|
|
4274
|
+
tmp_header: aliding_20230426_models.CopyDentryByNodeIdHeaders,
|
|
4275
|
+
runtime: util_models.RuntimeOptions,
|
|
4276
|
+
) -> aliding_20230426_models.CopyDentryByNodeIdResponse:
|
|
4277
|
+
"""
|
|
4278
|
+
@summary 通过NodeId创建知识库节点副本
|
|
4279
|
+
|
|
4280
|
+
@param tmp_req: CopyDentryByNodeIdRequest
|
|
4281
|
+
@param tmp_header: CopyDentryByNodeIdHeaders
|
|
4282
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
4283
|
+
@return: CopyDentryByNodeIdResponse
|
|
4284
|
+
"""
|
|
4285
|
+
UtilClient.validate_model(tmp_req)
|
|
4286
|
+
request = aliding_20230426_models.CopyDentryByNodeIdShrinkRequest()
|
|
4287
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
4288
|
+
headers = aliding_20230426_models.CopyDentryByNodeIdShrinkHeaders()
|
|
4289
|
+
OpenApiUtilClient.convert(tmp_header, headers)
|
|
4290
|
+
if not UtilClient.is_unset(tmp_header.account_context):
|
|
4291
|
+
headers.account_context_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_header.account_context, 'AccountContext', 'json')
|
|
4292
|
+
if not UtilClient.is_unset(tmp_req.tenant_context):
|
|
4293
|
+
request.tenant_context_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.tenant_context, 'TenantContext', 'json')
|
|
4294
|
+
body = {}
|
|
4295
|
+
if not UtilClient.is_unset(request.dentry_uuid):
|
|
4296
|
+
body['DentryUuid'] = request.dentry_uuid
|
|
4297
|
+
if not UtilClient.is_unset(request.name):
|
|
4298
|
+
body['Name'] = request.name
|
|
4299
|
+
if not UtilClient.is_unset(request.tenant_context_shrink):
|
|
4300
|
+
body['TenantContext'] = request.tenant_context_shrink
|
|
4301
|
+
if not UtilClient.is_unset(request.to_next_node_id):
|
|
4302
|
+
body['ToNextNodeId'] = request.to_next_node_id
|
|
4303
|
+
if not UtilClient.is_unset(request.to_parent_node_id):
|
|
4304
|
+
body['ToParentNodeId'] = request.to_parent_node_id
|
|
4305
|
+
if not UtilClient.is_unset(request.to_prev_node_id):
|
|
4306
|
+
body['ToPrevNodeId'] = request.to_prev_node_id
|
|
4307
|
+
real_headers = {}
|
|
4308
|
+
if not UtilClient.is_unset(headers.common_headers):
|
|
4309
|
+
real_headers = headers.common_headers
|
|
4310
|
+
if not UtilClient.is_unset(headers.account_context_shrink):
|
|
4311
|
+
real_headers['AccountContext'] = UtilClient.to_jsonstring(headers.account_context_shrink)
|
|
4312
|
+
req = open_api_models.OpenApiRequest(
|
|
4313
|
+
headers=real_headers,
|
|
4314
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
|
4315
|
+
)
|
|
4316
|
+
params = open_api_models.Params(
|
|
4317
|
+
action='CopyDentryByNodeId',
|
|
4318
|
+
version='2023-04-26',
|
|
4319
|
+
protocol='HTTPS',
|
|
4320
|
+
pathname=f'/dingtalk/v2/documents/copyDentryByNodeId',
|
|
4321
|
+
method='POST',
|
|
4322
|
+
auth_type='AK',
|
|
4323
|
+
style='ROA',
|
|
4324
|
+
req_body_type='formData',
|
|
4325
|
+
body_type='json'
|
|
4326
|
+
)
|
|
4327
|
+
return TeaCore.from_map(
|
|
4328
|
+
aliding_20230426_models.CopyDentryByNodeIdResponse(),
|
|
4329
|
+
await self.call_api_async(params, req, runtime)
|
|
4330
|
+
)
|
|
4331
|
+
|
|
4332
|
+
def copy_dentry_by_node_id(
|
|
4333
|
+
self,
|
|
4334
|
+
request: aliding_20230426_models.CopyDentryByNodeIdRequest,
|
|
4335
|
+
) -> aliding_20230426_models.CopyDentryByNodeIdResponse:
|
|
4336
|
+
"""
|
|
4337
|
+
@summary 通过NodeId创建知识库节点副本
|
|
4338
|
+
|
|
4339
|
+
@param request: CopyDentryByNodeIdRequest
|
|
4340
|
+
@return: CopyDentryByNodeIdResponse
|
|
4341
|
+
"""
|
|
4342
|
+
runtime = util_models.RuntimeOptions()
|
|
4343
|
+
headers = aliding_20230426_models.CopyDentryByNodeIdHeaders()
|
|
4344
|
+
return self.copy_dentry_by_node_id_with_options(request, headers, runtime)
|
|
4345
|
+
|
|
4346
|
+
async def copy_dentry_by_node_id_async(
|
|
4347
|
+
self,
|
|
4348
|
+
request: aliding_20230426_models.CopyDentryByNodeIdRequest,
|
|
4349
|
+
) -> aliding_20230426_models.CopyDentryByNodeIdResponse:
|
|
4350
|
+
"""
|
|
4351
|
+
@summary 通过NodeId创建知识库节点副本
|
|
4352
|
+
|
|
4353
|
+
@param request: CopyDentryByNodeIdRequest
|
|
4354
|
+
@return: CopyDentryByNodeIdResponse
|
|
4355
|
+
"""
|
|
4356
|
+
runtime = util_models.RuntimeOptions()
|
|
4357
|
+
headers = aliding_20230426_models.CopyDentryByNodeIdHeaders()
|
|
4358
|
+
return await self.copy_dentry_by_node_id_with_options_async(request, headers, runtime)
|
|
4359
|
+
|
|
4210
4360
|
def create_aliding_assistant_with_options(
|
|
4211
4361
|
self,
|
|
4212
4362
|
tmp_req: aliding_20230426_models.CreateAlidingAssistantRequest,
|
|
@@ -5423,6 +5573,8 @@ class Client(OpenApiClient):
|
|
|
5423
5573
|
body = {}
|
|
5424
5574
|
if not UtilClient.is_unset(request.assistant_id):
|
|
5425
5575
|
body['assistantId'] = request.assistant_id
|
|
5576
|
+
if not UtilClient.is_unset(request.ext_login_user):
|
|
5577
|
+
body['extLoginUser'] = request.ext_login_user
|
|
5426
5578
|
if not UtilClient.is_unset(request.messages):
|
|
5427
5579
|
body['messages'] = request.messages
|
|
5428
5580
|
if not UtilClient.is_unset(request.original_assistant_id):
|
|
@@ -5476,6 +5628,8 @@ class Client(OpenApiClient):
|
|
|
5476
5628
|
body = {}
|
|
5477
5629
|
if not UtilClient.is_unset(request.assistant_id):
|
|
5478
5630
|
body['assistantId'] = request.assistant_id
|
|
5631
|
+
if not UtilClient.is_unset(request.ext_login_user):
|
|
5632
|
+
body['extLoginUser'] = request.ext_login_user
|
|
5479
5633
|
if not UtilClient.is_unset(request.messages):
|
|
5480
5634
|
body['messages'] = request.messages
|
|
5481
5635
|
if not UtilClient.is_unset(request.original_assistant_id):
|
|
@@ -6353,6 +6507,8 @@ class Client(OpenApiClient):
|
|
|
6353
6507
|
body['allowStructViewContent'] = request.allow_struct_view_content
|
|
6354
6508
|
if not UtilClient.is_unset(request.assistant_id):
|
|
6355
6509
|
body['assistantId'] = request.assistant_id
|
|
6510
|
+
if not UtilClient.is_unset(request.ext_login_user):
|
|
6511
|
+
body['extLoginUser'] = request.ext_login_user
|
|
6356
6512
|
if not UtilClient.is_unset(request.original_assistant_id):
|
|
6357
6513
|
body['originalAssistantId'] = request.original_assistant_id
|
|
6358
6514
|
if not UtilClient.is_unset(request.source_id_of_original_assistant_id):
|
|
@@ -6408,6 +6564,8 @@ class Client(OpenApiClient):
|
|
|
6408
6564
|
body['allowStructViewContent'] = request.allow_struct_view_content
|
|
6409
6565
|
if not UtilClient.is_unset(request.assistant_id):
|
|
6410
6566
|
body['assistantId'] = request.assistant_id
|
|
6567
|
+
if not UtilClient.is_unset(request.ext_login_user):
|
|
6568
|
+
body['extLoginUser'] = request.ext_login_user
|
|
6411
6569
|
if not UtilClient.is_unset(request.original_assistant_id):
|
|
6412
6570
|
body['originalAssistantId'] = request.original_assistant_id
|
|
6413
6571
|
if not UtilClient.is_unset(request.source_id_of_original_assistant_id):
|
|
@@ -7429,6 +7587,8 @@ class Client(OpenApiClient):
|
|
|
7429
7587
|
body = {}
|
|
7430
7588
|
if not UtilClient.is_unset(request.assistant_id):
|
|
7431
7589
|
body['assistantId'] = request.assistant_id
|
|
7590
|
+
if not UtilClient.is_unset(request.ext_login_user):
|
|
7591
|
+
body['extLoginUser'] = request.ext_login_user
|
|
7432
7592
|
if not UtilClient.is_unset(request.original_assistant_id):
|
|
7433
7593
|
body['originalAssistantId'] = request.original_assistant_id
|
|
7434
7594
|
if not UtilClient.is_unset(request.source_id_of_original_assistant_id):
|
|
@@ -7478,6 +7638,8 @@ class Client(OpenApiClient):
|
|
|
7478
7638
|
body = {}
|
|
7479
7639
|
if not UtilClient.is_unset(request.assistant_id):
|
|
7480
7640
|
body['assistantId'] = request.assistant_id
|
|
7641
|
+
if not UtilClient.is_unset(request.ext_login_user):
|
|
7642
|
+
body['extLoginUser'] = request.ext_login_user
|
|
7481
7643
|
if not UtilClient.is_unset(request.original_assistant_id):
|
|
7482
7644
|
body['originalAssistantId'] = request.original_assistant_id
|
|
7483
7645
|
if not UtilClient.is_unset(request.source_id_of_original_assistant_id):
|
|
@@ -12825,6 +12987,8 @@ class Client(OpenApiClient):
|
|
|
12825
12987
|
body = {}
|
|
12826
12988
|
if not UtilClient.is_unset(request.assistant_id):
|
|
12827
12989
|
body['assistantId'] = request.assistant_id
|
|
12990
|
+
if not UtilClient.is_unset(request.ext_login_user):
|
|
12991
|
+
body['extLoginUser'] = request.ext_login_user
|
|
12828
12992
|
if not UtilClient.is_unset(request.messages):
|
|
12829
12993
|
body['messages'] = request.messages
|
|
12830
12994
|
if not UtilClient.is_unset(request.original_assistant_id):
|
|
@@ -12882,6 +13046,8 @@ class Client(OpenApiClient):
|
|
|
12882
13046
|
body = {}
|
|
12883
13047
|
if not UtilClient.is_unset(request.assistant_id):
|
|
12884
13048
|
body['assistantId'] = request.assistant_id
|
|
13049
|
+
if not UtilClient.is_unset(request.ext_login_user):
|
|
13050
|
+
body['extLoginUser'] = request.ext_login_user
|
|
12885
13051
|
if not UtilClient.is_unset(request.messages):
|
|
12886
13052
|
body['messages'] = request.messages
|
|
12887
13053
|
if not UtilClient.is_unset(request.original_assistant_id):
|
|
@@ -22501,6 +22667,8 @@ class Client(OpenApiClient):
|
|
|
22501
22667
|
body = {}
|
|
22502
22668
|
if not UtilClient.is_unset(request.assistant_id):
|
|
22503
22669
|
body['assistantId'] = request.assistant_id
|
|
22670
|
+
if not UtilClient.is_unset(request.ext_login_user):
|
|
22671
|
+
body['extLoginUser'] = request.ext_login_user
|
|
22504
22672
|
if not UtilClient.is_unset(request.messages):
|
|
22505
22673
|
body['messages'] = request.messages
|
|
22506
22674
|
if not UtilClient.is_unset(request.original_assistant_id):
|
|
@@ -22556,6 +22724,8 @@ class Client(OpenApiClient):
|
|
|
22556
22724
|
body = {}
|
|
22557
22725
|
if not UtilClient.is_unset(request.assistant_id):
|
|
22558
22726
|
body['assistantId'] = request.assistant_id
|
|
22727
|
+
if not UtilClient.is_unset(request.ext_login_user):
|
|
22728
|
+
body['extLoginUser'] = request.ext_login_user
|
|
22559
22729
|
if not UtilClient.is_unset(request.messages):
|
|
22560
22730
|
body['messages'] = request.messages
|
|
22561
22731
|
if not UtilClient.is_unset(request.original_assistant_id):
|
|
@@ -23791,6 +23961,8 @@ class Client(OpenApiClient):
|
|
|
23791
23961
|
body = {}
|
|
23792
23962
|
if not UtilClient.is_unset(request.assistant_id):
|
|
23793
23963
|
body['assistantId'] = request.assistant_id
|
|
23964
|
+
if not UtilClient.is_unset(request.ext_login_user):
|
|
23965
|
+
body['extLoginUser'] = request.ext_login_user
|
|
23794
23966
|
if not UtilClient.is_unset(request.limit):
|
|
23795
23967
|
body['limit'] = request.limit
|
|
23796
23968
|
if not UtilClient.is_unset(request.order):
|
|
@@ -23848,6 +24020,8 @@ class Client(OpenApiClient):
|
|
|
23848
24020
|
body = {}
|
|
23849
24021
|
if not UtilClient.is_unset(request.assistant_id):
|
|
23850
24022
|
body['assistantId'] = request.assistant_id
|
|
24023
|
+
if not UtilClient.is_unset(request.ext_login_user):
|
|
24024
|
+
body['extLoginUser'] = request.ext_login_user
|
|
23851
24025
|
if not UtilClient.is_unset(request.limit):
|
|
23852
24026
|
body['limit'] = request.limit
|
|
23853
24027
|
if not UtilClient.is_unset(request.order):
|
|
@@ -30181,6 +30355,8 @@ class Client(OpenApiClient):
|
|
|
30181
30355
|
body = {}
|
|
30182
30356
|
if not UtilClient.is_unset(request.assistant_id):
|
|
30183
30357
|
body['assistantId'] = request.assistant_id
|
|
30358
|
+
if not UtilClient.is_unset(request.ext_login_user):
|
|
30359
|
+
body['extLoginUser'] = request.ext_login_user
|
|
30184
30360
|
if not UtilClient.is_unset(request.original_assistant_id):
|
|
30185
30361
|
body['originalAssistantId'] = request.original_assistant_id
|
|
30186
30362
|
if not UtilClient.is_unset(request.run_id):
|
|
@@ -30232,6 +30408,8 @@ class Client(OpenApiClient):
|
|
|
30232
30408
|
body = {}
|
|
30233
30409
|
if not UtilClient.is_unset(request.assistant_id):
|
|
30234
30410
|
body['assistantId'] = request.assistant_id
|
|
30411
|
+
if not UtilClient.is_unset(request.ext_login_user):
|
|
30412
|
+
body['extLoginUser'] = request.ext_login_user
|
|
30235
30413
|
if not UtilClient.is_unset(request.original_assistant_id):
|
|
30236
30414
|
body['originalAssistantId'] = request.original_assistant_id
|
|
30237
30415
|
if not UtilClient.is_unset(request.run_id):
|
|
@@ -10989,6 +10989,359 @@ class CopyDentryResponse(TeaModel):
|
|
|
10989
10989
|
return self
|
|
10990
10990
|
|
|
10991
10991
|
|
|
10992
|
+
class CopyDentryByNodeIdHeadersAccountContext(TeaModel):
|
|
10993
|
+
def __init__(
|
|
10994
|
+
self,
|
|
10995
|
+
account_id: str = None,
|
|
10996
|
+
):
|
|
10997
|
+
# This parameter is required.
|
|
10998
|
+
self.account_id = account_id
|
|
10999
|
+
|
|
11000
|
+
def validate(self):
|
|
11001
|
+
pass
|
|
11002
|
+
|
|
11003
|
+
def to_map(self):
|
|
11004
|
+
_map = super().to_map()
|
|
11005
|
+
if _map is not None:
|
|
11006
|
+
return _map
|
|
11007
|
+
|
|
11008
|
+
result = dict()
|
|
11009
|
+
if self.account_id is not None:
|
|
11010
|
+
result['accountId'] = self.account_id
|
|
11011
|
+
return result
|
|
11012
|
+
|
|
11013
|
+
def from_map(self, m: dict = None):
|
|
11014
|
+
m = m or dict()
|
|
11015
|
+
if m.get('accountId') is not None:
|
|
11016
|
+
self.account_id = m.get('accountId')
|
|
11017
|
+
return self
|
|
11018
|
+
|
|
11019
|
+
|
|
11020
|
+
class CopyDentryByNodeIdHeaders(TeaModel):
|
|
11021
|
+
def __init__(
|
|
11022
|
+
self,
|
|
11023
|
+
common_headers: Dict[str, str] = None,
|
|
11024
|
+
account_context: CopyDentryByNodeIdHeadersAccountContext = None,
|
|
11025
|
+
):
|
|
11026
|
+
self.common_headers = common_headers
|
|
11027
|
+
self.account_context = account_context
|
|
11028
|
+
|
|
11029
|
+
def validate(self):
|
|
11030
|
+
if self.account_context:
|
|
11031
|
+
self.account_context.validate()
|
|
11032
|
+
|
|
11033
|
+
def to_map(self):
|
|
11034
|
+
_map = super().to_map()
|
|
11035
|
+
if _map is not None:
|
|
11036
|
+
return _map
|
|
11037
|
+
|
|
11038
|
+
result = dict()
|
|
11039
|
+
if self.common_headers is not None:
|
|
11040
|
+
result['commonHeaders'] = self.common_headers
|
|
11041
|
+
if self.account_context is not None:
|
|
11042
|
+
result['AccountContext'] = self.account_context.to_map()
|
|
11043
|
+
return result
|
|
11044
|
+
|
|
11045
|
+
def from_map(self, m: dict = None):
|
|
11046
|
+
m = m or dict()
|
|
11047
|
+
if m.get('commonHeaders') is not None:
|
|
11048
|
+
self.common_headers = m.get('commonHeaders')
|
|
11049
|
+
if m.get('AccountContext') is not None:
|
|
11050
|
+
temp_model = CopyDentryByNodeIdHeadersAccountContext()
|
|
11051
|
+
self.account_context = temp_model.from_map(m['AccountContext'])
|
|
11052
|
+
return self
|
|
11053
|
+
|
|
11054
|
+
|
|
11055
|
+
class CopyDentryByNodeIdShrinkHeaders(TeaModel):
|
|
11056
|
+
def __init__(
|
|
11057
|
+
self,
|
|
11058
|
+
common_headers: Dict[str, str] = None,
|
|
11059
|
+
account_context_shrink: str = None,
|
|
11060
|
+
):
|
|
11061
|
+
self.common_headers = common_headers
|
|
11062
|
+
self.account_context_shrink = account_context_shrink
|
|
11063
|
+
|
|
11064
|
+
def validate(self):
|
|
11065
|
+
pass
|
|
11066
|
+
|
|
11067
|
+
def to_map(self):
|
|
11068
|
+
_map = super().to_map()
|
|
11069
|
+
if _map is not None:
|
|
11070
|
+
return _map
|
|
11071
|
+
|
|
11072
|
+
result = dict()
|
|
11073
|
+
if self.common_headers is not None:
|
|
11074
|
+
result['commonHeaders'] = self.common_headers
|
|
11075
|
+
if self.account_context_shrink is not None:
|
|
11076
|
+
result['AccountContext'] = self.account_context_shrink
|
|
11077
|
+
return result
|
|
11078
|
+
|
|
11079
|
+
def from_map(self, m: dict = None):
|
|
11080
|
+
m = m or dict()
|
|
11081
|
+
if m.get('commonHeaders') is not None:
|
|
11082
|
+
self.common_headers = m.get('commonHeaders')
|
|
11083
|
+
if m.get('AccountContext') is not None:
|
|
11084
|
+
self.account_context_shrink = m.get('AccountContext')
|
|
11085
|
+
return self
|
|
11086
|
+
|
|
11087
|
+
|
|
11088
|
+
class CopyDentryByNodeIdRequestTenantContext(TeaModel):
|
|
11089
|
+
def __init__(
|
|
11090
|
+
self,
|
|
11091
|
+
tenant_id: str = None,
|
|
11092
|
+
):
|
|
11093
|
+
self.tenant_id = tenant_id
|
|
11094
|
+
|
|
11095
|
+
def validate(self):
|
|
11096
|
+
pass
|
|
11097
|
+
|
|
11098
|
+
def to_map(self):
|
|
11099
|
+
_map = super().to_map()
|
|
11100
|
+
if _map is not None:
|
|
11101
|
+
return _map
|
|
11102
|
+
|
|
11103
|
+
result = dict()
|
|
11104
|
+
if self.tenant_id is not None:
|
|
11105
|
+
result['tenantId'] = self.tenant_id
|
|
11106
|
+
return result
|
|
11107
|
+
|
|
11108
|
+
def from_map(self, m: dict = None):
|
|
11109
|
+
m = m or dict()
|
|
11110
|
+
if m.get('tenantId') is not None:
|
|
11111
|
+
self.tenant_id = m.get('tenantId')
|
|
11112
|
+
return self
|
|
11113
|
+
|
|
11114
|
+
|
|
11115
|
+
class CopyDentryByNodeIdRequest(TeaModel):
|
|
11116
|
+
def __init__(
|
|
11117
|
+
self,
|
|
11118
|
+
dentry_uuid: str = None,
|
|
11119
|
+
name: str = None,
|
|
11120
|
+
tenant_context: CopyDentryByNodeIdRequestTenantContext = None,
|
|
11121
|
+
to_next_node_id: str = None,
|
|
11122
|
+
to_parent_node_id: str = None,
|
|
11123
|
+
to_prev_node_id: str = None,
|
|
11124
|
+
):
|
|
11125
|
+
# This parameter is required.
|
|
11126
|
+
self.dentry_uuid = dentry_uuid
|
|
11127
|
+
# This parameter is required.
|
|
11128
|
+
self.name = name
|
|
11129
|
+
self.tenant_context = tenant_context
|
|
11130
|
+
self.to_next_node_id = to_next_node_id
|
|
11131
|
+
self.to_parent_node_id = to_parent_node_id
|
|
11132
|
+
self.to_prev_node_id = to_prev_node_id
|
|
11133
|
+
|
|
11134
|
+
def validate(self):
|
|
11135
|
+
if self.tenant_context:
|
|
11136
|
+
self.tenant_context.validate()
|
|
11137
|
+
|
|
11138
|
+
def to_map(self):
|
|
11139
|
+
_map = super().to_map()
|
|
11140
|
+
if _map is not None:
|
|
11141
|
+
return _map
|
|
11142
|
+
|
|
11143
|
+
result = dict()
|
|
11144
|
+
if self.dentry_uuid is not None:
|
|
11145
|
+
result['DentryUuid'] = self.dentry_uuid
|
|
11146
|
+
if self.name is not None:
|
|
11147
|
+
result['Name'] = self.name
|
|
11148
|
+
if self.tenant_context is not None:
|
|
11149
|
+
result['TenantContext'] = self.tenant_context.to_map()
|
|
11150
|
+
if self.to_next_node_id is not None:
|
|
11151
|
+
result['ToNextNodeId'] = self.to_next_node_id
|
|
11152
|
+
if self.to_parent_node_id is not None:
|
|
11153
|
+
result['ToParentNodeId'] = self.to_parent_node_id
|
|
11154
|
+
if self.to_prev_node_id is not None:
|
|
11155
|
+
result['ToPrevNodeId'] = self.to_prev_node_id
|
|
11156
|
+
return result
|
|
11157
|
+
|
|
11158
|
+
def from_map(self, m: dict = None):
|
|
11159
|
+
m = m or dict()
|
|
11160
|
+
if m.get('DentryUuid') is not None:
|
|
11161
|
+
self.dentry_uuid = m.get('DentryUuid')
|
|
11162
|
+
if m.get('Name') is not None:
|
|
11163
|
+
self.name = m.get('Name')
|
|
11164
|
+
if m.get('TenantContext') is not None:
|
|
11165
|
+
temp_model = CopyDentryByNodeIdRequestTenantContext()
|
|
11166
|
+
self.tenant_context = temp_model.from_map(m['TenantContext'])
|
|
11167
|
+
if m.get('ToNextNodeId') is not None:
|
|
11168
|
+
self.to_next_node_id = m.get('ToNextNodeId')
|
|
11169
|
+
if m.get('ToParentNodeId') is not None:
|
|
11170
|
+
self.to_parent_node_id = m.get('ToParentNodeId')
|
|
11171
|
+
if m.get('ToPrevNodeId') is not None:
|
|
11172
|
+
self.to_prev_node_id = m.get('ToPrevNodeId')
|
|
11173
|
+
return self
|
|
11174
|
+
|
|
11175
|
+
|
|
11176
|
+
class CopyDentryByNodeIdShrinkRequest(TeaModel):
|
|
11177
|
+
def __init__(
|
|
11178
|
+
self,
|
|
11179
|
+
dentry_uuid: str = None,
|
|
11180
|
+
name: str = None,
|
|
11181
|
+
tenant_context_shrink: str = None,
|
|
11182
|
+
to_next_node_id: str = None,
|
|
11183
|
+
to_parent_node_id: str = None,
|
|
11184
|
+
to_prev_node_id: str = None,
|
|
11185
|
+
):
|
|
11186
|
+
# This parameter is required.
|
|
11187
|
+
self.dentry_uuid = dentry_uuid
|
|
11188
|
+
# This parameter is required.
|
|
11189
|
+
self.name = name
|
|
11190
|
+
self.tenant_context_shrink = tenant_context_shrink
|
|
11191
|
+
self.to_next_node_id = to_next_node_id
|
|
11192
|
+
self.to_parent_node_id = to_parent_node_id
|
|
11193
|
+
self.to_prev_node_id = to_prev_node_id
|
|
11194
|
+
|
|
11195
|
+
def validate(self):
|
|
11196
|
+
pass
|
|
11197
|
+
|
|
11198
|
+
def to_map(self):
|
|
11199
|
+
_map = super().to_map()
|
|
11200
|
+
if _map is not None:
|
|
11201
|
+
return _map
|
|
11202
|
+
|
|
11203
|
+
result = dict()
|
|
11204
|
+
if self.dentry_uuid is not None:
|
|
11205
|
+
result['DentryUuid'] = self.dentry_uuid
|
|
11206
|
+
if self.name is not None:
|
|
11207
|
+
result['Name'] = self.name
|
|
11208
|
+
if self.tenant_context_shrink is not None:
|
|
11209
|
+
result['TenantContext'] = self.tenant_context_shrink
|
|
11210
|
+
if self.to_next_node_id is not None:
|
|
11211
|
+
result['ToNextNodeId'] = self.to_next_node_id
|
|
11212
|
+
if self.to_parent_node_id is not None:
|
|
11213
|
+
result['ToParentNodeId'] = self.to_parent_node_id
|
|
11214
|
+
if self.to_prev_node_id is not None:
|
|
11215
|
+
result['ToPrevNodeId'] = self.to_prev_node_id
|
|
11216
|
+
return result
|
|
11217
|
+
|
|
11218
|
+
def from_map(self, m: dict = None):
|
|
11219
|
+
m = m or dict()
|
|
11220
|
+
if m.get('DentryUuid') is not None:
|
|
11221
|
+
self.dentry_uuid = m.get('DentryUuid')
|
|
11222
|
+
if m.get('Name') is not None:
|
|
11223
|
+
self.name = m.get('Name')
|
|
11224
|
+
if m.get('TenantContext') is not None:
|
|
11225
|
+
self.tenant_context_shrink = m.get('TenantContext')
|
|
11226
|
+
if m.get('ToNextNodeId') is not None:
|
|
11227
|
+
self.to_next_node_id = m.get('ToNextNodeId')
|
|
11228
|
+
if m.get('ToParentNodeId') is not None:
|
|
11229
|
+
self.to_parent_node_id = m.get('ToParentNodeId')
|
|
11230
|
+
if m.get('ToPrevNodeId') is not None:
|
|
11231
|
+
self.to_prev_node_id = m.get('ToPrevNodeId')
|
|
11232
|
+
return self
|
|
11233
|
+
|
|
11234
|
+
|
|
11235
|
+
class CopyDentryByNodeIdResponseBody(TeaModel):
|
|
11236
|
+
def __init__(
|
|
11237
|
+
self,
|
|
11238
|
+
content_type: str = None,
|
|
11239
|
+
created_time: int = None,
|
|
11240
|
+
dentry_uuid: str = None,
|
|
11241
|
+
extension: str = None,
|
|
11242
|
+
request_id: str = None,
|
|
11243
|
+
space_id: str = None,
|
|
11244
|
+
vendor_request_id: str = None,
|
|
11245
|
+
vendor_type: str = None,
|
|
11246
|
+
):
|
|
11247
|
+
self.content_type = content_type
|
|
11248
|
+
self.created_time = created_time
|
|
11249
|
+
self.dentry_uuid = dentry_uuid
|
|
11250
|
+
self.extension = extension
|
|
11251
|
+
self.request_id = request_id
|
|
11252
|
+
self.space_id = space_id
|
|
11253
|
+
self.vendor_request_id = vendor_request_id
|
|
11254
|
+
self.vendor_type = vendor_type
|
|
11255
|
+
|
|
11256
|
+
def validate(self):
|
|
11257
|
+
pass
|
|
11258
|
+
|
|
11259
|
+
def to_map(self):
|
|
11260
|
+
_map = super().to_map()
|
|
11261
|
+
if _map is not None:
|
|
11262
|
+
return _map
|
|
11263
|
+
|
|
11264
|
+
result = dict()
|
|
11265
|
+
if self.content_type is not None:
|
|
11266
|
+
result['contentType'] = self.content_type
|
|
11267
|
+
if self.created_time is not None:
|
|
11268
|
+
result['createdTime'] = self.created_time
|
|
11269
|
+
if self.dentry_uuid is not None:
|
|
11270
|
+
result['dentryUuid'] = self.dentry_uuid
|
|
11271
|
+
if self.extension is not None:
|
|
11272
|
+
result['extension'] = self.extension
|
|
11273
|
+
if self.request_id is not None:
|
|
11274
|
+
result['requestId'] = self.request_id
|
|
11275
|
+
if self.space_id is not None:
|
|
11276
|
+
result['spaceId'] = self.space_id
|
|
11277
|
+
if self.vendor_request_id is not None:
|
|
11278
|
+
result['vendorRequestId'] = self.vendor_request_id
|
|
11279
|
+
if self.vendor_type is not None:
|
|
11280
|
+
result['vendorType'] = self.vendor_type
|
|
11281
|
+
return result
|
|
11282
|
+
|
|
11283
|
+
def from_map(self, m: dict = None):
|
|
11284
|
+
m = m or dict()
|
|
11285
|
+
if m.get('contentType') is not None:
|
|
11286
|
+
self.content_type = m.get('contentType')
|
|
11287
|
+
if m.get('createdTime') is not None:
|
|
11288
|
+
self.created_time = m.get('createdTime')
|
|
11289
|
+
if m.get('dentryUuid') is not None:
|
|
11290
|
+
self.dentry_uuid = m.get('dentryUuid')
|
|
11291
|
+
if m.get('extension') is not None:
|
|
11292
|
+
self.extension = m.get('extension')
|
|
11293
|
+
if m.get('requestId') is not None:
|
|
11294
|
+
self.request_id = m.get('requestId')
|
|
11295
|
+
if m.get('spaceId') is not None:
|
|
11296
|
+
self.space_id = m.get('spaceId')
|
|
11297
|
+
if m.get('vendorRequestId') is not None:
|
|
11298
|
+
self.vendor_request_id = m.get('vendorRequestId')
|
|
11299
|
+
if m.get('vendorType') is not None:
|
|
11300
|
+
self.vendor_type = m.get('vendorType')
|
|
11301
|
+
return self
|
|
11302
|
+
|
|
11303
|
+
|
|
11304
|
+
class CopyDentryByNodeIdResponse(TeaModel):
|
|
11305
|
+
def __init__(
|
|
11306
|
+
self,
|
|
11307
|
+
headers: Dict[str, str] = None,
|
|
11308
|
+
status_code: int = None,
|
|
11309
|
+
body: CopyDentryByNodeIdResponseBody = None,
|
|
11310
|
+
):
|
|
11311
|
+
self.headers = headers
|
|
11312
|
+
self.status_code = status_code
|
|
11313
|
+
self.body = body
|
|
11314
|
+
|
|
11315
|
+
def validate(self):
|
|
11316
|
+
if self.body:
|
|
11317
|
+
self.body.validate()
|
|
11318
|
+
|
|
11319
|
+
def to_map(self):
|
|
11320
|
+
_map = super().to_map()
|
|
11321
|
+
if _map is not None:
|
|
11322
|
+
return _map
|
|
11323
|
+
|
|
11324
|
+
result = dict()
|
|
11325
|
+
if self.headers is not None:
|
|
11326
|
+
result['headers'] = self.headers
|
|
11327
|
+
if self.status_code is not None:
|
|
11328
|
+
result['statusCode'] = self.status_code
|
|
11329
|
+
if self.body is not None:
|
|
11330
|
+
result['body'] = self.body.to_map()
|
|
11331
|
+
return result
|
|
11332
|
+
|
|
11333
|
+
def from_map(self, m: dict = None):
|
|
11334
|
+
m = m or dict()
|
|
11335
|
+
if m.get('headers') is not None:
|
|
11336
|
+
self.headers = m.get('headers')
|
|
11337
|
+
if m.get('statusCode') is not None:
|
|
11338
|
+
self.status_code = m.get('statusCode')
|
|
11339
|
+
if m.get('body') is not None:
|
|
11340
|
+
temp_model = CopyDentryByNodeIdResponseBody()
|
|
11341
|
+
self.body = temp_model.from_map(m['body'])
|
|
11342
|
+
return self
|
|
11343
|
+
|
|
11344
|
+
|
|
10992
11345
|
class CreateAlidingAssistantHeadersAccountContext(TeaModel):
|
|
10993
11346
|
def __init__(
|
|
10994
11347
|
self,
|
|
@@ -14736,6 +15089,45 @@ class CreateMessageHeaders(TeaModel):
|
|
|
14736
15089
|
return self
|
|
14737
15090
|
|
|
14738
15091
|
|
|
15092
|
+
class CreateMessageRequestExtLoginUser(TeaModel):
|
|
15093
|
+
def __init__(
|
|
15094
|
+
self,
|
|
15095
|
+
ext_login_user_domain: str = None,
|
|
15096
|
+
ext_login_user_id: str = None,
|
|
15097
|
+
ext_login_user_name: str = None,
|
|
15098
|
+
):
|
|
15099
|
+
self.ext_login_user_domain = ext_login_user_domain
|
|
15100
|
+
self.ext_login_user_id = ext_login_user_id
|
|
15101
|
+
self.ext_login_user_name = ext_login_user_name
|
|
15102
|
+
|
|
15103
|
+
def validate(self):
|
|
15104
|
+
pass
|
|
15105
|
+
|
|
15106
|
+
def to_map(self):
|
|
15107
|
+
_map = super().to_map()
|
|
15108
|
+
if _map is not None:
|
|
15109
|
+
return _map
|
|
15110
|
+
|
|
15111
|
+
result = dict()
|
|
15112
|
+
if self.ext_login_user_domain is not None:
|
|
15113
|
+
result['extLoginUserDomain'] = self.ext_login_user_domain
|
|
15114
|
+
if self.ext_login_user_id is not None:
|
|
15115
|
+
result['extLoginUserId'] = self.ext_login_user_id
|
|
15116
|
+
if self.ext_login_user_name is not None:
|
|
15117
|
+
result['extLoginUserName'] = self.ext_login_user_name
|
|
15118
|
+
return result
|
|
15119
|
+
|
|
15120
|
+
def from_map(self, m: dict = None):
|
|
15121
|
+
m = m or dict()
|
|
15122
|
+
if m.get('extLoginUserDomain') is not None:
|
|
15123
|
+
self.ext_login_user_domain = m.get('extLoginUserDomain')
|
|
15124
|
+
if m.get('extLoginUserId') is not None:
|
|
15125
|
+
self.ext_login_user_id = m.get('extLoginUserId')
|
|
15126
|
+
if m.get('extLoginUserName') is not None:
|
|
15127
|
+
self.ext_login_user_name = m.get('extLoginUserName')
|
|
15128
|
+
return self
|
|
15129
|
+
|
|
15130
|
+
|
|
14739
15131
|
class CreateMessageRequestMessagesContentCardCallback(TeaModel):
|
|
14740
15132
|
def __init__(
|
|
14741
15133
|
self,
|
|
@@ -15592,6 +15984,7 @@ class CreateMessageRequest(TeaModel):
|
|
|
15592
15984
|
def __init__(
|
|
15593
15985
|
self,
|
|
15594
15986
|
assistant_id: str = None,
|
|
15987
|
+
ext_login_user: CreateMessageRequestExtLoginUser = None,
|
|
15595
15988
|
messages: List[CreateMessageRequestMessages] = None,
|
|
15596
15989
|
original_assistant_id: str = None,
|
|
15597
15990
|
source_id_of_original_assistant_id: str = None,
|
|
@@ -15600,6 +15993,7 @@ class CreateMessageRequest(TeaModel):
|
|
|
15600
15993
|
):
|
|
15601
15994
|
# This parameter is required.
|
|
15602
15995
|
self.assistant_id = assistant_id
|
|
15996
|
+
self.ext_login_user = ext_login_user
|
|
15603
15997
|
# This parameter is required.
|
|
15604
15998
|
self.messages = messages
|
|
15605
15999
|
self.original_assistant_id = original_assistant_id
|
|
@@ -15609,6 +16003,8 @@ class CreateMessageRequest(TeaModel):
|
|
|
15609
16003
|
self.thread_id = thread_id
|
|
15610
16004
|
|
|
15611
16005
|
def validate(self):
|
|
16006
|
+
if self.ext_login_user:
|
|
16007
|
+
self.ext_login_user.validate()
|
|
15612
16008
|
if self.messages:
|
|
15613
16009
|
for k in self.messages:
|
|
15614
16010
|
if k:
|
|
@@ -15622,6 +16018,8 @@ class CreateMessageRequest(TeaModel):
|
|
|
15622
16018
|
result = dict()
|
|
15623
16019
|
if self.assistant_id is not None:
|
|
15624
16020
|
result['assistantId'] = self.assistant_id
|
|
16021
|
+
if self.ext_login_user is not None:
|
|
16022
|
+
result['extLoginUser'] = self.ext_login_user.to_map()
|
|
15625
16023
|
result['messages'] = []
|
|
15626
16024
|
if self.messages is not None:
|
|
15627
16025
|
for k in self.messages:
|
|
@@ -15640,6 +16038,9 @@ class CreateMessageRequest(TeaModel):
|
|
|
15640
16038
|
m = m or dict()
|
|
15641
16039
|
if m.get('assistantId') is not None:
|
|
15642
16040
|
self.assistant_id = m.get('assistantId')
|
|
16041
|
+
if m.get('extLoginUser') is not None:
|
|
16042
|
+
temp_model = CreateMessageRequestExtLoginUser()
|
|
16043
|
+
self.ext_login_user = temp_model.from_map(m['extLoginUser'])
|
|
15643
16044
|
self.messages = []
|
|
15644
16045
|
if m.get('messages') is not None:
|
|
15645
16046
|
for k in m.get('messages'):
|
|
@@ -18380,11 +18781,51 @@ class CreateRunHeaders(TeaModel):
|
|
|
18380
18781
|
return self
|
|
18381
18782
|
|
|
18382
18783
|
|
|
18784
|
+
class CreateRunRequestExtLoginUser(TeaModel):
|
|
18785
|
+
def __init__(
|
|
18786
|
+
self,
|
|
18787
|
+
ext_login_user_domain: str = None,
|
|
18788
|
+
ext_login_user_id: str = None,
|
|
18789
|
+
ext_login_user_name: str = None,
|
|
18790
|
+
):
|
|
18791
|
+
self.ext_login_user_domain = ext_login_user_domain
|
|
18792
|
+
self.ext_login_user_id = ext_login_user_id
|
|
18793
|
+
self.ext_login_user_name = ext_login_user_name
|
|
18794
|
+
|
|
18795
|
+
def validate(self):
|
|
18796
|
+
pass
|
|
18797
|
+
|
|
18798
|
+
def to_map(self):
|
|
18799
|
+
_map = super().to_map()
|
|
18800
|
+
if _map is not None:
|
|
18801
|
+
return _map
|
|
18802
|
+
|
|
18803
|
+
result = dict()
|
|
18804
|
+
if self.ext_login_user_domain is not None:
|
|
18805
|
+
result['extLoginUserDomain'] = self.ext_login_user_domain
|
|
18806
|
+
if self.ext_login_user_id is not None:
|
|
18807
|
+
result['extLoginUserId'] = self.ext_login_user_id
|
|
18808
|
+
if self.ext_login_user_name is not None:
|
|
18809
|
+
result['extLoginUserName'] = self.ext_login_user_name
|
|
18810
|
+
return result
|
|
18811
|
+
|
|
18812
|
+
def from_map(self, m: dict = None):
|
|
18813
|
+
m = m or dict()
|
|
18814
|
+
if m.get('extLoginUserDomain') is not None:
|
|
18815
|
+
self.ext_login_user_domain = m.get('extLoginUserDomain')
|
|
18816
|
+
if m.get('extLoginUserId') is not None:
|
|
18817
|
+
self.ext_login_user_id = m.get('extLoginUserId')
|
|
18818
|
+
if m.get('extLoginUserName') is not None:
|
|
18819
|
+
self.ext_login_user_name = m.get('extLoginUserName')
|
|
18820
|
+
return self
|
|
18821
|
+
|
|
18822
|
+
|
|
18383
18823
|
class CreateRunRequest(TeaModel):
|
|
18384
18824
|
def __init__(
|
|
18385
18825
|
self,
|
|
18386
18826
|
allow_struct_view_content: bool = None,
|
|
18387
18827
|
assistant_id: str = None,
|
|
18828
|
+
ext_login_user: CreateRunRequestExtLoginUser = None,
|
|
18388
18829
|
original_assistant_id: str = None,
|
|
18389
18830
|
source_id_of_original_assistant_id: str = None,
|
|
18390
18831
|
source_type_of_original_assistant_id: str = None,
|
|
@@ -18394,6 +18835,7 @@ class CreateRunRequest(TeaModel):
|
|
|
18394
18835
|
self.allow_struct_view_content = allow_struct_view_content
|
|
18395
18836
|
# This parameter is required.
|
|
18396
18837
|
self.assistant_id = assistant_id
|
|
18838
|
+
self.ext_login_user = ext_login_user
|
|
18397
18839
|
self.original_assistant_id = original_assistant_id
|
|
18398
18840
|
self.source_id_of_original_assistant_id = source_id_of_original_assistant_id
|
|
18399
18841
|
self.source_type_of_original_assistant_id = source_type_of_original_assistant_id
|
|
@@ -18402,7 +18844,8 @@ class CreateRunRequest(TeaModel):
|
|
|
18402
18844
|
self.thread_id = thread_id
|
|
18403
18845
|
|
|
18404
18846
|
def validate(self):
|
|
18405
|
-
|
|
18847
|
+
if self.ext_login_user:
|
|
18848
|
+
self.ext_login_user.validate()
|
|
18406
18849
|
|
|
18407
18850
|
def to_map(self):
|
|
18408
18851
|
_map = super().to_map()
|
|
@@ -18414,6 +18857,8 @@ class CreateRunRequest(TeaModel):
|
|
|
18414
18857
|
result['allowStructViewContent'] = self.allow_struct_view_content
|
|
18415
18858
|
if self.assistant_id is not None:
|
|
18416
18859
|
result['assistantId'] = self.assistant_id
|
|
18860
|
+
if self.ext_login_user is not None:
|
|
18861
|
+
result['extLoginUser'] = self.ext_login_user.to_map()
|
|
18417
18862
|
if self.original_assistant_id is not None:
|
|
18418
18863
|
result['originalAssistantId'] = self.original_assistant_id
|
|
18419
18864
|
if self.source_id_of_original_assistant_id is not None:
|
|
@@ -18432,6 +18877,9 @@ class CreateRunRequest(TeaModel):
|
|
|
18432
18877
|
self.allow_struct_view_content = m.get('allowStructViewContent')
|
|
18433
18878
|
if m.get('assistantId') is not None:
|
|
18434
18879
|
self.assistant_id = m.get('assistantId')
|
|
18880
|
+
if m.get('extLoginUser') is not None:
|
|
18881
|
+
temp_model = CreateRunRequestExtLoginUser()
|
|
18882
|
+
self.ext_login_user = temp_model.from_map(m['extLoginUser'])
|
|
18435
18883
|
if m.get('originalAssistantId') is not None:
|
|
18436
18884
|
self.original_assistant_id = m.get('originalAssistantId')
|
|
18437
18885
|
if m.get('sourceIdOfOriginalAssistantId') is not None:
|
|
@@ -22071,22 +22519,64 @@ class CreateThreadHeaders(TeaModel):
|
|
|
22071
22519
|
return self
|
|
22072
22520
|
|
|
22073
22521
|
|
|
22522
|
+
class CreateThreadRequestExtLoginUser(TeaModel):
|
|
22523
|
+
def __init__(
|
|
22524
|
+
self,
|
|
22525
|
+
ext_login_user_domain: str = None,
|
|
22526
|
+
ext_login_user_id: str = None,
|
|
22527
|
+
ext_login_user_name: str = None,
|
|
22528
|
+
):
|
|
22529
|
+
self.ext_login_user_domain = ext_login_user_domain
|
|
22530
|
+
self.ext_login_user_id = ext_login_user_id
|
|
22531
|
+
self.ext_login_user_name = ext_login_user_name
|
|
22532
|
+
|
|
22533
|
+
def validate(self):
|
|
22534
|
+
pass
|
|
22535
|
+
|
|
22536
|
+
def to_map(self):
|
|
22537
|
+
_map = super().to_map()
|
|
22538
|
+
if _map is not None:
|
|
22539
|
+
return _map
|
|
22540
|
+
|
|
22541
|
+
result = dict()
|
|
22542
|
+
if self.ext_login_user_domain is not None:
|
|
22543
|
+
result['extLoginUserDomain'] = self.ext_login_user_domain
|
|
22544
|
+
if self.ext_login_user_id is not None:
|
|
22545
|
+
result['extLoginUserId'] = self.ext_login_user_id
|
|
22546
|
+
if self.ext_login_user_name is not None:
|
|
22547
|
+
result['extLoginUserName'] = self.ext_login_user_name
|
|
22548
|
+
return result
|
|
22549
|
+
|
|
22550
|
+
def from_map(self, m: dict = None):
|
|
22551
|
+
m = m or dict()
|
|
22552
|
+
if m.get('extLoginUserDomain') is not None:
|
|
22553
|
+
self.ext_login_user_domain = m.get('extLoginUserDomain')
|
|
22554
|
+
if m.get('extLoginUserId') is not None:
|
|
22555
|
+
self.ext_login_user_id = m.get('extLoginUserId')
|
|
22556
|
+
if m.get('extLoginUserName') is not None:
|
|
22557
|
+
self.ext_login_user_name = m.get('extLoginUserName')
|
|
22558
|
+
return self
|
|
22559
|
+
|
|
22560
|
+
|
|
22074
22561
|
class CreateThreadRequest(TeaModel):
|
|
22075
22562
|
def __init__(
|
|
22076
22563
|
self,
|
|
22077
22564
|
assistant_id: str = None,
|
|
22565
|
+
ext_login_user: CreateThreadRequestExtLoginUser = None,
|
|
22078
22566
|
original_assistant_id: str = None,
|
|
22079
22567
|
source_id_of_original_assistant_id: str = None,
|
|
22080
22568
|
source_type_of_original_assistant_id: int = None,
|
|
22081
22569
|
):
|
|
22082
22570
|
# This parameter is required.
|
|
22083
22571
|
self.assistant_id = assistant_id
|
|
22572
|
+
self.ext_login_user = ext_login_user
|
|
22084
22573
|
self.original_assistant_id = original_assistant_id
|
|
22085
22574
|
self.source_id_of_original_assistant_id = source_id_of_original_assistant_id
|
|
22086
22575
|
self.source_type_of_original_assistant_id = source_type_of_original_assistant_id
|
|
22087
22576
|
|
|
22088
22577
|
def validate(self):
|
|
22089
|
-
|
|
22578
|
+
if self.ext_login_user:
|
|
22579
|
+
self.ext_login_user.validate()
|
|
22090
22580
|
|
|
22091
22581
|
def to_map(self):
|
|
22092
22582
|
_map = super().to_map()
|
|
@@ -22096,6 +22586,8 @@ class CreateThreadRequest(TeaModel):
|
|
|
22096
22586
|
result = dict()
|
|
22097
22587
|
if self.assistant_id is not None:
|
|
22098
22588
|
result['assistantId'] = self.assistant_id
|
|
22589
|
+
if self.ext_login_user is not None:
|
|
22590
|
+
result['extLoginUser'] = self.ext_login_user.to_map()
|
|
22099
22591
|
if self.original_assistant_id is not None:
|
|
22100
22592
|
result['originalAssistantId'] = self.original_assistant_id
|
|
22101
22593
|
if self.source_id_of_original_assistant_id is not None:
|
|
@@ -22108,6 +22600,9 @@ class CreateThreadRequest(TeaModel):
|
|
|
22108
22600
|
m = m or dict()
|
|
22109
22601
|
if m.get('assistantId') is not None:
|
|
22110
22602
|
self.assistant_id = m.get('assistantId')
|
|
22603
|
+
if m.get('extLoginUser') is not None:
|
|
22604
|
+
temp_model = CreateThreadRequestExtLoginUser()
|
|
22605
|
+
self.ext_login_user = temp_model.from_map(m['extLoginUser'])
|
|
22111
22606
|
if m.get('originalAssistantId') is not None:
|
|
22112
22607
|
self.original_assistant_id = m.get('originalAssistantId')
|
|
22113
22608
|
if m.get('sourceIdOfOriginalAssistantId') is not None:
|
|
@@ -33822,6 +34317,45 @@ class GetAssistantCapabilityHeaders(TeaModel):
|
|
|
33822
34317
|
return self
|
|
33823
34318
|
|
|
33824
34319
|
|
|
34320
|
+
class GetAssistantCapabilityRequestExtLoginUser(TeaModel):
|
|
34321
|
+
def __init__(
|
|
34322
|
+
self,
|
|
34323
|
+
ext_login_user_domain: str = None,
|
|
34324
|
+
ext_login_user_id: str = None,
|
|
34325
|
+
ext_login_user_name: str = None,
|
|
34326
|
+
):
|
|
34327
|
+
self.ext_login_user_domain = ext_login_user_domain
|
|
34328
|
+
self.ext_login_user_id = ext_login_user_id
|
|
34329
|
+
self.ext_login_user_name = ext_login_user_name
|
|
34330
|
+
|
|
34331
|
+
def validate(self):
|
|
34332
|
+
pass
|
|
34333
|
+
|
|
34334
|
+
def to_map(self):
|
|
34335
|
+
_map = super().to_map()
|
|
34336
|
+
if _map is not None:
|
|
34337
|
+
return _map
|
|
34338
|
+
|
|
34339
|
+
result = dict()
|
|
34340
|
+
if self.ext_login_user_domain is not None:
|
|
34341
|
+
result['extLoginUserDomain'] = self.ext_login_user_domain
|
|
34342
|
+
if self.ext_login_user_id is not None:
|
|
34343
|
+
result['extLoginUserId'] = self.ext_login_user_id
|
|
34344
|
+
if self.ext_login_user_name is not None:
|
|
34345
|
+
result['extLoginUserName'] = self.ext_login_user_name
|
|
34346
|
+
return result
|
|
34347
|
+
|
|
34348
|
+
def from_map(self, m: dict = None):
|
|
34349
|
+
m = m or dict()
|
|
34350
|
+
if m.get('extLoginUserDomain') is not None:
|
|
34351
|
+
self.ext_login_user_domain = m.get('extLoginUserDomain')
|
|
34352
|
+
if m.get('extLoginUserId') is not None:
|
|
34353
|
+
self.ext_login_user_id = m.get('extLoginUserId')
|
|
34354
|
+
if m.get('extLoginUserName') is not None:
|
|
34355
|
+
self.ext_login_user_name = m.get('extLoginUserName')
|
|
34356
|
+
return self
|
|
34357
|
+
|
|
34358
|
+
|
|
33825
34359
|
class GetAssistantCapabilityRequestMessagesContentCardCallback(TeaModel):
|
|
33826
34360
|
def __init__(
|
|
33827
34361
|
self,
|
|
@@ -34678,6 +35212,7 @@ class GetAssistantCapabilityRequest(TeaModel):
|
|
|
34678
35212
|
def __init__(
|
|
34679
35213
|
self,
|
|
34680
35214
|
assistant_id: str = None,
|
|
35215
|
+
ext_login_user: GetAssistantCapabilityRequestExtLoginUser = None,
|
|
34681
35216
|
messages: List[GetAssistantCapabilityRequestMessages] = None,
|
|
34682
35217
|
original_assistant_id: str = None,
|
|
34683
35218
|
protocol: str = None,
|
|
@@ -34688,6 +35223,7 @@ class GetAssistantCapabilityRequest(TeaModel):
|
|
|
34688
35223
|
):
|
|
34689
35224
|
# This parameter is required.
|
|
34690
35225
|
self.assistant_id = assistant_id
|
|
35226
|
+
self.ext_login_user = ext_login_user
|
|
34691
35227
|
# This parameter is required.
|
|
34692
35228
|
self.messages = messages
|
|
34693
35229
|
self.original_assistant_id = original_assistant_id
|
|
@@ -34698,6 +35234,8 @@ class GetAssistantCapabilityRequest(TeaModel):
|
|
|
34698
35234
|
self.timeout = timeout
|
|
34699
35235
|
|
|
34700
35236
|
def validate(self):
|
|
35237
|
+
if self.ext_login_user:
|
|
35238
|
+
self.ext_login_user.validate()
|
|
34701
35239
|
if self.messages:
|
|
34702
35240
|
for k in self.messages:
|
|
34703
35241
|
if k:
|
|
@@ -34711,6 +35249,8 @@ class GetAssistantCapabilityRequest(TeaModel):
|
|
|
34711
35249
|
result = dict()
|
|
34712
35250
|
if self.assistant_id is not None:
|
|
34713
35251
|
result['assistantId'] = self.assistant_id
|
|
35252
|
+
if self.ext_login_user is not None:
|
|
35253
|
+
result['extLoginUser'] = self.ext_login_user.to_map()
|
|
34714
35254
|
result['messages'] = []
|
|
34715
35255
|
if self.messages is not None:
|
|
34716
35256
|
for k in self.messages:
|
|
@@ -34733,6 +35273,9 @@ class GetAssistantCapabilityRequest(TeaModel):
|
|
|
34733
35273
|
m = m or dict()
|
|
34734
35274
|
if m.get('assistantId') is not None:
|
|
34735
35275
|
self.assistant_id = m.get('assistantId')
|
|
35276
|
+
if m.get('extLoginUser') is not None:
|
|
35277
|
+
temp_model = GetAssistantCapabilityRequestExtLoginUser()
|
|
35278
|
+
self.ext_login_user = temp_model.from_map(m['extLoginUser'])
|
|
34736
35279
|
self.messages = []
|
|
34737
35280
|
if m.get('messages') is not None:
|
|
34738
35281
|
for k in m.get('messages'):
|
|
@@ -62218,6 +62761,45 @@ class InvokeAssistantHeaders(TeaModel):
|
|
|
62218
62761
|
return self
|
|
62219
62762
|
|
|
62220
62763
|
|
|
62764
|
+
class InvokeAssistantRequestExtLoginUser(TeaModel):
|
|
62765
|
+
def __init__(
|
|
62766
|
+
self,
|
|
62767
|
+
ext_login_user_domain: str = None,
|
|
62768
|
+
ext_login_user_id: str = None,
|
|
62769
|
+
ext_login_user_name: str = None,
|
|
62770
|
+
):
|
|
62771
|
+
self.ext_login_user_domain = ext_login_user_domain
|
|
62772
|
+
self.ext_login_user_id = ext_login_user_id
|
|
62773
|
+
self.ext_login_user_name = ext_login_user_name
|
|
62774
|
+
|
|
62775
|
+
def validate(self):
|
|
62776
|
+
pass
|
|
62777
|
+
|
|
62778
|
+
def to_map(self):
|
|
62779
|
+
_map = super().to_map()
|
|
62780
|
+
if _map is not None:
|
|
62781
|
+
return _map
|
|
62782
|
+
|
|
62783
|
+
result = dict()
|
|
62784
|
+
if self.ext_login_user_domain is not None:
|
|
62785
|
+
result['extLoginUserDomain'] = self.ext_login_user_domain
|
|
62786
|
+
if self.ext_login_user_id is not None:
|
|
62787
|
+
result['extLoginUserId'] = self.ext_login_user_id
|
|
62788
|
+
if self.ext_login_user_name is not None:
|
|
62789
|
+
result['extLoginUserName'] = self.ext_login_user_name
|
|
62790
|
+
return result
|
|
62791
|
+
|
|
62792
|
+
def from_map(self, m: dict = None):
|
|
62793
|
+
m = m or dict()
|
|
62794
|
+
if m.get('extLoginUserDomain') is not None:
|
|
62795
|
+
self.ext_login_user_domain = m.get('extLoginUserDomain')
|
|
62796
|
+
if m.get('extLoginUserId') is not None:
|
|
62797
|
+
self.ext_login_user_id = m.get('extLoginUserId')
|
|
62798
|
+
if m.get('extLoginUserName') is not None:
|
|
62799
|
+
self.ext_login_user_name = m.get('extLoginUserName')
|
|
62800
|
+
return self
|
|
62801
|
+
|
|
62802
|
+
|
|
62221
62803
|
class InvokeAssistantRequestMessagesContentCardCallback(TeaModel):
|
|
62222
62804
|
def __init__(
|
|
62223
62805
|
self,
|
|
@@ -63074,6 +63656,7 @@ class InvokeAssistantRequest(TeaModel):
|
|
|
63074
63656
|
def __init__(
|
|
63075
63657
|
self,
|
|
63076
63658
|
assistant_id: str = None,
|
|
63659
|
+
ext_login_user: InvokeAssistantRequestExtLoginUser = None,
|
|
63077
63660
|
messages: List[InvokeAssistantRequestMessages] = None,
|
|
63078
63661
|
original_assistant_id: str = None,
|
|
63079
63662
|
session_id: str = None,
|
|
@@ -63083,6 +63666,7 @@ class InvokeAssistantRequest(TeaModel):
|
|
|
63083
63666
|
):
|
|
63084
63667
|
# This parameter is required.
|
|
63085
63668
|
self.assistant_id = assistant_id
|
|
63669
|
+
self.ext_login_user = ext_login_user
|
|
63086
63670
|
# This parameter is required.
|
|
63087
63671
|
self.messages = messages
|
|
63088
63672
|
self.original_assistant_id = original_assistant_id
|
|
@@ -63092,6 +63676,8 @@ class InvokeAssistantRequest(TeaModel):
|
|
|
63092
63676
|
self.stream = stream
|
|
63093
63677
|
|
|
63094
63678
|
def validate(self):
|
|
63679
|
+
if self.ext_login_user:
|
|
63680
|
+
self.ext_login_user.validate()
|
|
63095
63681
|
if self.messages:
|
|
63096
63682
|
for k in self.messages:
|
|
63097
63683
|
if k:
|
|
@@ -63105,6 +63691,8 @@ class InvokeAssistantRequest(TeaModel):
|
|
|
63105
63691
|
result = dict()
|
|
63106
63692
|
if self.assistant_id is not None:
|
|
63107
63693
|
result['assistantId'] = self.assistant_id
|
|
63694
|
+
if self.ext_login_user is not None:
|
|
63695
|
+
result['extLoginUser'] = self.ext_login_user.to_map()
|
|
63108
63696
|
result['messages'] = []
|
|
63109
63697
|
if self.messages is not None:
|
|
63110
63698
|
for k in self.messages:
|
|
@@ -63125,6 +63713,9 @@ class InvokeAssistantRequest(TeaModel):
|
|
|
63125
63713
|
m = m or dict()
|
|
63126
63714
|
if m.get('assistantId') is not None:
|
|
63127
63715
|
self.assistant_id = m.get('assistantId')
|
|
63716
|
+
if m.get('extLoginUser') is not None:
|
|
63717
|
+
temp_model = InvokeAssistantRequestExtLoginUser()
|
|
63718
|
+
self.ext_login_user = temp_model.from_map(m['extLoginUser'])
|
|
63128
63719
|
self.messages = []
|
|
63129
63720
|
if m.get('messages') is not None:
|
|
63130
63721
|
for k in m.get('messages'):
|
|
@@ -68421,10 +69012,50 @@ class ListMessageHeaders(TeaModel):
|
|
|
68421
69012
|
return self
|
|
68422
69013
|
|
|
68423
69014
|
|
|
69015
|
+
class ListMessageRequestExtLoginUser(TeaModel):
|
|
69016
|
+
def __init__(
|
|
69017
|
+
self,
|
|
69018
|
+
ext_login_user_domain: str = None,
|
|
69019
|
+
ext_login_user_id: str = None,
|
|
69020
|
+
ext_login_user_name: str = None,
|
|
69021
|
+
):
|
|
69022
|
+
self.ext_login_user_domain = ext_login_user_domain
|
|
69023
|
+
self.ext_login_user_id = ext_login_user_id
|
|
69024
|
+
self.ext_login_user_name = ext_login_user_name
|
|
69025
|
+
|
|
69026
|
+
def validate(self):
|
|
69027
|
+
pass
|
|
69028
|
+
|
|
69029
|
+
def to_map(self):
|
|
69030
|
+
_map = super().to_map()
|
|
69031
|
+
if _map is not None:
|
|
69032
|
+
return _map
|
|
69033
|
+
|
|
69034
|
+
result = dict()
|
|
69035
|
+
if self.ext_login_user_domain is not None:
|
|
69036
|
+
result['extLoginUserDomain'] = self.ext_login_user_domain
|
|
69037
|
+
if self.ext_login_user_id is not None:
|
|
69038
|
+
result['extLoginUserId'] = self.ext_login_user_id
|
|
69039
|
+
if self.ext_login_user_name is not None:
|
|
69040
|
+
result['extLoginUserName'] = self.ext_login_user_name
|
|
69041
|
+
return result
|
|
69042
|
+
|
|
69043
|
+
def from_map(self, m: dict = None):
|
|
69044
|
+
m = m or dict()
|
|
69045
|
+
if m.get('extLoginUserDomain') is not None:
|
|
69046
|
+
self.ext_login_user_domain = m.get('extLoginUserDomain')
|
|
69047
|
+
if m.get('extLoginUserId') is not None:
|
|
69048
|
+
self.ext_login_user_id = m.get('extLoginUserId')
|
|
69049
|
+
if m.get('extLoginUserName') is not None:
|
|
69050
|
+
self.ext_login_user_name = m.get('extLoginUserName')
|
|
69051
|
+
return self
|
|
69052
|
+
|
|
69053
|
+
|
|
68424
69054
|
class ListMessageRequest(TeaModel):
|
|
68425
69055
|
def __init__(
|
|
68426
69056
|
self,
|
|
68427
69057
|
assistant_id: str = None,
|
|
69058
|
+
ext_login_user: ListMessageRequestExtLoginUser = None,
|
|
68428
69059
|
limit: int = None,
|
|
68429
69060
|
order: str = None,
|
|
68430
69061
|
original_assistant_id: str = None,
|
|
@@ -68435,6 +69066,7 @@ class ListMessageRequest(TeaModel):
|
|
|
68435
69066
|
):
|
|
68436
69067
|
# This parameter is required.
|
|
68437
69068
|
self.assistant_id = assistant_id
|
|
69069
|
+
self.ext_login_user = ext_login_user
|
|
68438
69070
|
self.limit = limit
|
|
68439
69071
|
self.order = order
|
|
68440
69072
|
self.original_assistant_id = original_assistant_id
|
|
@@ -68445,7 +69077,8 @@ class ListMessageRequest(TeaModel):
|
|
|
68445
69077
|
self.thread_id = thread_id
|
|
68446
69078
|
|
|
68447
69079
|
def validate(self):
|
|
68448
|
-
|
|
69080
|
+
if self.ext_login_user:
|
|
69081
|
+
self.ext_login_user.validate()
|
|
68449
69082
|
|
|
68450
69083
|
def to_map(self):
|
|
68451
69084
|
_map = super().to_map()
|
|
@@ -68455,6 +69088,8 @@ class ListMessageRequest(TeaModel):
|
|
|
68455
69088
|
result = dict()
|
|
68456
69089
|
if self.assistant_id is not None:
|
|
68457
69090
|
result['assistantId'] = self.assistant_id
|
|
69091
|
+
if self.ext_login_user is not None:
|
|
69092
|
+
result['extLoginUser'] = self.ext_login_user.to_map()
|
|
68458
69093
|
if self.limit is not None:
|
|
68459
69094
|
result['limit'] = self.limit
|
|
68460
69095
|
if self.order is not None:
|
|
@@ -68475,6 +69110,9 @@ class ListMessageRequest(TeaModel):
|
|
|
68475
69110
|
m = m or dict()
|
|
68476
69111
|
if m.get('assistantId') is not None:
|
|
68477
69112
|
self.assistant_id = m.get('assistantId')
|
|
69113
|
+
if m.get('extLoginUser') is not None:
|
|
69114
|
+
temp_model = ListMessageRequestExtLoginUser()
|
|
69115
|
+
self.ext_login_user = temp_model.from_map(m['extLoginUser'])
|
|
68478
69116
|
if m.get('limit') is not None:
|
|
68479
69117
|
self.limit = m.get('limit')
|
|
68480
69118
|
if m.get('order') is not None:
|
|
@@ -88329,10 +88967,50 @@ class RetrieveRunHeaders(TeaModel):
|
|
|
88329
88967
|
return self
|
|
88330
88968
|
|
|
88331
88969
|
|
|
88970
|
+
class RetrieveRunRequestExtLoginUser(TeaModel):
|
|
88971
|
+
def __init__(
|
|
88972
|
+
self,
|
|
88973
|
+
ext_login_user_domain: str = None,
|
|
88974
|
+
ext_login_user_id: str = None,
|
|
88975
|
+
ext_login_user_name: str = None,
|
|
88976
|
+
):
|
|
88977
|
+
self.ext_login_user_domain = ext_login_user_domain
|
|
88978
|
+
self.ext_login_user_id = ext_login_user_id
|
|
88979
|
+
self.ext_login_user_name = ext_login_user_name
|
|
88980
|
+
|
|
88981
|
+
def validate(self):
|
|
88982
|
+
pass
|
|
88983
|
+
|
|
88984
|
+
def to_map(self):
|
|
88985
|
+
_map = super().to_map()
|
|
88986
|
+
if _map is not None:
|
|
88987
|
+
return _map
|
|
88988
|
+
|
|
88989
|
+
result = dict()
|
|
88990
|
+
if self.ext_login_user_domain is not None:
|
|
88991
|
+
result['extLoginUserDomain'] = self.ext_login_user_domain
|
|
88992
|
+
if self.ext_login_user_id is not None:
|
|
88993
|
+
result['extLoginUserId'] = self.ext_login_user_id
|
|
88994
|
+
if self.ext_login_user_name is not None:
|
|
88995
|
+
result['extLoginUserName'] = self.ext_login_user_name
|
|
88996
|
+
return result
|
|
88997
|
+
|
|
88998
|
+
def from_map(self, m: dict = None):
|
|
88999
|
+
m = m or dict()
|
|
89000
|
+
if m.get('extLoginUserDomain') is not None:
|
|
89001
|
+
self.ext_login_user_domain = m.get('extLoginUserDomain')
|
|
89002
|
+
if m.get('extLoginUserId') is not None:
|
|
89003
|
+
self.ext_login_user_id = m.get('extLoginUserId')
|
|
89004
|
+
if m.get('extLoginUserName') is not None:
|
|
89005
|
+
self.ext_login_user_name = m.get('extLoginUserName')
|
|
89006
|
+
return self
|
|
89007
|
+
|
|
89008
|
+
|
|
88332
89009
|
class RetrieveRunRequest(TeaModel):
|
|
88333
89010
|
def __init__(
|
|
88334
89011
|
self,
|
|
88335
89012
|
assistant_id: str = None,
|
|
89013
|
+
ext_login_user: RetrieveRunRequestExtLoginUser = None,
|
|
88336
89014
|
original_assistant_id: str = None,
|
|
88337
89015
|
run_id: str = None,
|
|
88338
89016
|
source_id_of_original_assistant_id: str = None,
|
|
@@ -88340,13 +89018,15 @@ class RetrieveRunRequest(TeaModel):
|
|
|
88340
89018
|
):
|
|
88341
89019
|
# This parameter is required.
|
|
88342
89020
|
self.assistant_id = assistant_id
|
|
89021
|
+
self.ext_login_user = ext_login_user
|
|
88343
89022
|
self.original_assistant_id = original_assistant_id
|
|
88344
89023
|
self.run_id = run_id
|
|
88345
89024
|
self.source_id_of_original_assistant_id = source_id_of_original_assistant_id
|
|
88346
89025
|
self.source_type_of_original_assistant_id = source_type_of_original_assistant_id
|
|
88347
89026
|
|
|
88348
89027
|
def validate(self):
|
|
88349
|
-
|
|
89028
|
+
if self.ext_login_user:
|
|
89029
|
+
self.ext_login_user.validate()
|
|
88350
89030
|
|
|
88351
89031
|
def to_map(self):
|
|
88352
89032
|
_map = super().to_map()
|
|
@@ -88356,6 +89036,8 @@ class RetrieveRunRequest(TeaModel):
|
|
|
88356
89036
|
result = dict()
|
|
88357
89037
|
if self.assistant_id is not None:
|
|
88358
89038
|
result['assistantId'] = self.assistant_id
|
|
89039
|
+
if self.ext_login_user is not None:
|
|
89040
|
+
result['extLoginUser'] = self.ext_login_user.to_map()
|
|
88359
89041
|
if self.original_assistant_id is not None:
|
|
88360
89042
|
result['originalAssistantId'] = self.original_assistant_id
|
|
88361
89043
|
if self.run_id is not None:
|
|
@@ -88370,6 +89052,9 @@ class RetrieveRunRequest(TeaModel):
|
|
|
88370
89052
|
m = m or dict()
|
|
88371
89053
|
if m.get('assistantId') is not None:
|
|
88372
89054
|
self.assistant_id = m.get('assistantId')
|
|
89055
|
+
if m.get('extLoginUser') is not None:
|
|
89056
|
+
temp_model = RetrieveRunRequestExtLoginUser()
|
|
89057
|
+
self.ext_login_user = temp_model.from_map(m['extLoginUser'])
|
|
88373
89058
|
if m.get('originalAssistantId') is not None:
|
|
88374
89059
|
self.original_assistant_id = m.get('originalAssistantId')
|
|
88375
89060
|
if m.get('runId') is not None:
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
alibabacloud_aliding20230426/__init__.py,sha256=ljNtAo8_ERUNrd-90NNynplIumJmyauZ1lUvN1NOqVA,22
|
|
2
|
+
alibabacloud_aliding20230426/client.py,sha256=ddmxjg5T1y2SbTXmwUPkwnRloL8FJkgrEKUxeDlAZY0,1823273
|
|
3
|
+
alibabacloud_aliding20230426/models.py,sha256=KafwqDpiGD2XqXJZWzoFTlL67WE2jXcKD2afTgVfP64,3397487
|
|
4
|
+
alibabacloud_aliding20230426-2.46.1.dist-info/LICENSE,sha256=0CFItL6bHvxqS44T6vlLoW2R4Zaic304OO3WxN0oXF0,600
|
|
5
|
+
alibabacloud_aliding20230426-2.46.1.dist-info/METADATA,sha256=dP_hEe-SCxNZx6r3m7TItqVd9QdKyQ-HyUpvZgXuxoU,2341
|
|
6
|
+
alibabacloud_aliding20230426-2.46.1.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
|
|
7
|
+
alibabacloud_aliding20230426-2.46.1.dist-info/top_level.txt,sha256=-PldRiL4BaIcC8lMj_rfQts3uDrz2FNYlwzb82aQOAs,29
|
|
8
|
+
alibabacloud_aliding20230426-2.46.1.dist-info/RECORD,,
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
alibabacloud_aliding20230426/__init__.py,sha256=7nLxmiISBI5m-t_WSoDigpeGYMvsQiC5z8l8rcexPCw,22
|
|
2
|
-
alibabacloud_aliding20230426/client.py,sha256=RRs51pQn270QcSkfHo2s1TacIX4aEak5tZI5D_D6bjM,1814381
|
|
3
|
-
alibabacloud_aliding20230426/models.py,sha256=QZnts-8dWwxZJ09duw0X8Pmykfy3ADSaqLlnSD0iy30,3373289
|
|
4
|
-
alibabacloud_aliding20230426-2.45.2.dist-info/LICENSE,sha256=0CFItL6bHvxqS44T6vlLoW2R4Zaic304OO3WxN0oXF0,600
|
|
5
|
-
alibabacloud_aliding20230426-2.45.2.dist-info/METADATA,sha256=Rk1RP6_EScfLqjUre_WSzNyb63CU2KUVK0G3jMLow3c,2341
|
|
6
|
-
alibabacloud_aliding20230426-2.45.2.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
|
|
7
|
-
alibabacloud_aliding20230426-2.45.2.dist-info/top_level.txt,sha256=-PldRiL4BaIcC8lMj_rfQts3uDrz2FNYlwzb82aQOAs,29
|
|
8
|
-
alibabacloud_aliding20230426-2.45.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|