@@ -2273,6 +2273,116 @@ export default class Client extends OpenApi {
22732273 return await this.copyDentryWithOptions(request, headers, runtime);
22742274 }
22752275
2276+ /**
2277+ * @param tmpReq - CreateAlidingAssistantRequest
2278+ * @param tmpHeader - CreateAlidingAssistantHeaders
2279+ * @param runtime - runtime options for this request RuntimeOptions
2280+ * @returns CreateAlidingAssistantResponse
2281+ */
2282+ async createAlidingAssistantWithOptions(tmpReq: $_model.CreateAlidingAssistantRequest, tmpHeader: $_model.CreateAlidingAssistantHeaders, runtime: $dara.RuntimeOptions): Promise<$_model.CreateAlidingAssistantResponse> {
2283+ tmpReq.validate();
2284+ let request = new $_model.CreateAlidingAssistantShrinkRequest({ });
2285+ OpenApiUtil.convert(tmpReq, request);
2286+ let headers = new $_model.CreateAlidingAssistantShrinkHeaders({ });
2287+ OpenApiUtil.convert(tmpHeader, headers);
2288+ if (!$dara.isNull(tmpHeader.accountContext)) {
2289+ headers.accountContextShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json");
2290+ }
2291+
2292+ if (!$dara.isNull(tmpReq.ext)) {
2293+ request.extShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.ext, "Ext", "json");
2294+ }
2295+
2296+ if (!$dara.isNull(tmpReq.recommendPrompts)) {
2297+ request.recommendPromptsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.recommendPrompts, "RecommendPrompts", "json");
2298+ }
2299+
2300+ if (!$dara.isNull(tmpReq.tenantContext)) {
2301+ request.tenantContextShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json");
2302+ }
2303+
2304+ let body : {[key: string ]: any} = { };
2305+ if (!$dara.isNull(request.appCode)) {
2306+ body["AppCode"] = request.appCode;
2307+ }
2308+
2309+ if (!$dara.isNull(request.description)) {
2310+ body["Description"] = request.description;
2311+ }
2312+
2313+ if (!$dara.isNull(request.extShrink)) {
2314+ body["Ext"] = request.extShrink;
2315+ }
2316+
2317+ if (!$dara.isNull(request.icon)) {
2318+ body["Icon"] = request.icon;
2319+ }
2320+
2321+ if (!$dara.isNull(request.instructions)) {
2322+ body["Instructions"] = request.instructions;
2323+ }
2324+
2325+ if (!$dara.isNull(request.name)) {
2326+ body["Name"] = request.name;
2327+ }
2328+
2329+ if (!$dara.isNull(request.recommendPromptsShrink)) {
2330+ body["RecommendPrompts"] = request.recommendPromptsShrink;
2331+ }
2332+
2333+ if (!$dara.isNull(request.source)) {
2334+ body["Source"] = request.source;
2335+ }
2336+
2337+ if (!$dara.isNull(request.sourceIdentityId)) {
2338+ body["SourceIdentityId"] = request.sourceIdentityId;
2339+ }
2340+
2341+ if (!$dara.isNull(request.tenantContextShrink)) {
2342+ body["TenantContext"] = request.tenantContextShrink;
2343+ }
2344+
2345+ if (!$dara.isNull(request.welcomeContent)) {
2346+ body["WelcomeContent"] = request.welcomeContent;
2347+ }
2348+
2349+ let realHeaders : {[key: string ]: string} = { };
2350+ if (!$dara.isNull(headers.commonHeaders)) {
2351+ realHeaders = headers.commonHeaders;
2352+ }
2353+
2354+ if (!$dara.isNull(headers.accountContextShrink)) {
2355+ realHeaders["AccountContext"] = typeof headers.accountContextShrink === "string" ? headers.accountContextShrink : JSON.stringify(headers.accountContextShrink);
2356+ }
2357+
2358+ let req = new $OpenApiUtil.OpenApiRequest({
2359+ headers: realHeaders,
2360+ body: OpenApiUtil.parseToMap(body),
2361+ });
2362+ let params = new $OpenApiUtil.Params({
2363+ action: "CreateAlidingAssistant",
2364+ version: "2023-04-26",
2365+ protocol: "HTTPS",
2366+ pathname: `/dingtalk/v1/aiagent/createAlidingAssistant`,
2367+ method: "POST",
2368+ authType: "AK",
2369+ style: "ROA",
2370+ reqBodyType: "formData",
2371+ bodyType: "json",
2372+ });
2373+ return $dara.cast<$_model.CreateAlidingAssistantResponse>(await this.callApi(params, req, runtime), new $_model.CreateAlidingAssistantResponse({}));
2374+ }
2375+
2376+ /**
2377+ * @param request - CreateAlidingAssistantRequest
2378+ * @returns CreateAlidingAssistantResponse
2379+ */
2380+ async createAlidingAssistant(request: $_model.CreateAlidingAssistantRequest): Promise<$_model.CreateAlidingAssistantResponse> {
2381+ let runtime = new $dara.RuntimeOptions({ });
2382+ let headers = new $_model.CreateAlidingAssistantHeaders({ });
2383+ return await this.createAlidingAssistantWithOptions(request, headers, runtime);
2384+ }
2385+
22762386 /**
22772387 * 发布钉钉投放活动
22782388 *
@@ -4665,6 +4775,72 @@ export default class Client extends OpenApi {
46654775 return await this.createWorkspaceDocWithOptions(request, headers, runtime);
46664776 }
46674777
4778+ /**
4779+ * @param tmpReq - DeleteAlidingAssistantRequest
4780+ * @param tmpHeader - DeleteAlidingAssistantHeaders
4781+ * @param runtime - runtime options for this request RuntimeOptions
4782+ * @returns DeleteAlidingAssistantResponse
4783+ */
4784+ async deleteAlidingAssistantWithOptions(tmpReq: $_model.DeleteAlidingAssistantRequest, tmpHeader: $_model.DeleteAlidingAssistantHeaders, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteAlidingAssistantResponse> {
4785+ tmpReq.validate();
4786+ let request = new $_model.DeleteAlidingAssistantShrinkRequest({ });
4787+ OpenApiUtil.convert(tmpReq, request);
4788+ let headers = new $_model.DeleteAlidingAssistantShrinkHeaders({ });
4789+ OpenApiUtil.convert(tmpHeader, headers);
4790+ if (!$dara.isNull(tmpHeader.accountContext)) {
4791+ headers.accountContextShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json");
4792+ }
4793+
4794+ if (!$dara.isNull(tmpReq.tenantContext)) {
4795+ request.tenantContextShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json");
4796+ }
4797+
4798+ let body : {[key: string ]: any} = { };
4799+ if (!$dara.isNull(request.assistantId)) {
4800+ body["AssistantId"] = request.assistantId;
4801+ }
4802+
4803+ if (!$dara.isNull(request.tenantContextShrink)) {
4804+ body["TenantContext"] = request.tenantContextShrink;
4805+ }
4806+
4807+ let realHeaders : {[key: string ]: string} = { };
4808+ if (!$dara.isNull(headers.commonHeaders)) {
4809+ realHeaders = headers.commonHeaders;
4810+ }
4811+
4812+ if (!$dara.isNull(headers.accountContextShrink)) {
4813+ realHeaders["AccountContext"] = typeof headers.accountContextShrink === "string" ? headers.accountContextShrink : JSON.stringify(headers.accountContextShrink);
4814+ }
4815+
4816+ let req = new $OpenApiUtil.OpenApiRequest({
4817+ headers: realHeaders,
4818+ body: OpenApiUtil.parseToMap(body),
4819+ });
4820+ let params = new $OpenApiUtil.Params({
4821+ action: "DeleteAlidingAssistant",
4822+ version: "2023-04-26",
4823+ protocol: "HTTPS",
4824+ pathname: `/dingtalk/v1/aiagent/deleteAlidingAssistant`,
4825+ method: "POST",
4826+ authType: "AK",
4827+ style: "ROA",
4828+ reqBodyType: "formData",
4829+ bodyType: "json",
4830+ });
4831+ return $dara.cast<$_model.DeleteAlidingAssistantResponse>(await this.callApi(params, req, runtime), new $_model.DeleteAlidingAssistantResponse({}));
4832+ }
4833+
4834+ /**
4835+ * @param request - DeleteAlidingAssistantRequest
4836+ * @returns DeleteAlidingAssistantResponse
4837+ */
4838+ async deleteAlidingAssistant(request: $_model.DeleteAlidingAssistantRequest): Promise<$_model.DeleteAlidingAssistantResponse> {
4839+ let runtime = new $dara.RuntimeOptions({ });
4840+ let headers = new $_model.DeleteAlidingAssistantHeaders({ });
4841+ return await this.deleteAlidingAssistantWithOptions(request, headers, runtime);
4842+ }
4843+
46684844 /**
46694845 * 删除指定列
46704846 *
@@ -6721,6 +6897,76 @@ export default class Client extends OpenApi {
67216897 return await this.getActivityListWithOptions(request, headers, runtime);
67226898 }
67236899
6900+ /**
6901+ * 获取阿里钉ai助理信息
6902+ *
6903+ * @param tmpReq - GetAlidingAssistantInfoRequest
6904+ * @param tmpHeader - GetAlidingAssistantInfoHeaders
6905+ * @param runtime - runtime options for this request RuntimeOptions
6906+ * @returns GetAlidingAssistantInfoResponse
6907+ */
6908+ async getAlidingAssistantInfoWithOptions(tmpReq: $_model.GetAlidingAssistantInfoRequest, tmpHeader: $_model.GetAlidingAssistantInfoHeaders, runtime: $dara.RuntimeOptions): Promise<$_model.GetAlidingAssistantInfoResponse> {
6909+ tmpReq.validate();
6910+ let request = new $_model.GetAlidingAssistantInfoShrinkRequest({ });
6911+ OpenApiUtil.convert(tmpReq, request);
6912+ let headers = new $_model.GetAlidingAssistantInfoShrinkHeaders({ });
6913+ OpenApiUtil.convert(tmpHeader, headers);
6914+ if (!$dara.isNull(tmpHeader.accountContext)) {
6915+ headers.accountContextShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json");
6916+ }
6917+
6918+ if (!$dara.isNull(tmpReq.tenantContext)) {
6919+ request.tenantContextShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json");
6920+ }
6921+
6922+ let body : {[key: string ]: any} = { };
6923+ if (!$dara.isNull(request.assistantId)) {
6924+ body["AssistantId"] = request.assistantId;
6925+ }
6926+
6927+ if (!$dara.isNull(request.tenantContextShrink)) {
6928+ body["TenantContext"] = request.tenantContextShrink;
6929+ }
6930+
6931+ let realHeaders : {[key: string ]: string} = { };
6932+ if (!$dara.isNull(headers.commonHeaders)) {
6933+ realHeaders = headers.commonHeaders;
6934+ }
6935+
6936+ if (!$dara.isNull(headers.accountContextShrink)) {
6937+ realHeaders["AccountContext"] = typeof headers.accountContextShrink === "string" ? headers.accountContextShrink : JSON.stringify(headers.accountContextShrink);
6938+ }
6939+
6940+ let req = new $OpenApiUtil.OpenApiRequest({
6941+ headers: realHeaders,
6942+ body: OpenApiUtil.parseToMap(body),
6943+ });
6944+ let params = new $OpenApiUtil.Params({
6945+ action: "GetAlidingAssistantInfo",
6946+ version: "2023-04-26",
6947+ protocol: "HTTPS",
6948+ pathname: `/dingtalk/v1/aiagent/getAlidingAssistantInfo`,
6949+ method: "POST",
6950+ authType: "AK",
6951+ style: "ROA",
6952+ reqBodyType: "formData",
6953+ bodyType: "json",
6954+ });
6955+ return $dara.cast<$_model.GetAlidingAssistantInfoResponse>(await this.callApi(params, req, runtime), new $_model.GetAlidingAssistantInfoResponse({}));
6956+ }
6957+
6958+ /**
6959+ * 获取阿里钉ai助理信息
6960+ *
6961+ * @param request - GetAlidingAssistantInfoRequest
6962+ * @returns GetAlidingAssistantInfoResponse
6963+ */
6964+ async getAlidingAssistantInfo(request: $_model.GetAlidingAssistantInfoRequest): Promise<$_model.GetAlidingAssistantInfoResponse> {
6965+ let runtime = new $dara.RuntimeOptions({ });
6966+ let headers = new $_model.GetAlidingAssistantInfoHeaders({ });
6967+ return await this.getAlidingAssistantInfoWithOptions(request, headers, runtime);
6968+ }
6969+
67246970 /**
67256971 * 获取所有工作表
67266972 *
@@ -18951,6 +19197,120 @@ export default class Client extends OpenApi {
1895119197 return await this.unsubscribeEventWithOptions(request, headers, runtime);
1895219198 }
1895319199
19200+ /**
19201+ * @param tmpReq - UpdateAlidingAssistantRequest
19202+ * @param tmpHeader - UpdateAlidingAssistantHeaders
19203+ * @param runtime - runtime options for this request RuntimeOptions
19204+ * @returns UpdateAlidingAssistantResponse
19205+ */
19206+ async updateAlidingAssistantWithOptions(tmpReq: $_model.UpdateAlidingAssistantRequest, tmpHeader: $_model.UpdateAlidingAssistantHeaders, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateAlidingAssistantResponse> {
19207+ tmpReq.validate();
19208+ let request = new $_model.UpdateAlidingAssistantShrinkRequest({ });
19209+ OpenApiUtil.convert(tmpReq, request);
19210+ let headers = new $_model.UpdateAlidingAssistantShrinkHeaders({ });
19211+ OpenApiUtil.convert(tmpHeader, headers);
19212+ if (!$dara.isNull(tmpHeader.accountContext)) {
19213+ headers.accountContextShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpHeader.accountContext, "AccountContext", "json");
19214+ }
19215+
19216+ if (!$dara.isNull(tmpReq.ext)) {
19217+ request.extShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.ext, "Ext", "json");
19218+ }
19219+
19220+ if (!$dara.isNull(tmpReq.feature)) {
19221+ request.featureShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.feature, "Feature", "json");
19222+ }
19223+
19224+ if (!$dara.isNull(tmpReq.recommendPrompts)) {
19225+ request.recommendPromptsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.recommendPrompts, "RecommendPrompts", "json");
19226+ }
19227+
19228+ if (!$dara.isNull(tmpReq.tenantContext)) {
19229+ request.tenantContextShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.tenantContext, "TenantContext", "json");
19230+ }
19231+
19232+ let body : {[key: string ]: any} = { };
19233+ if (!$dara.isNull(request.assistantId)) {
19234+ body["AssistantId"] = request.assistantId;
19235+ }
19236+
19237+ if (!$dara.isNull(request.description)) {
19238+ body["Description"] = request.description;
19239+ }
19240+
19241+ if (!$dara.isNull(request.extShrink)) {
19242+ body["Ext"] = request.extShrink;
19243+ }
19244+
19245+ if (!$dara.isNull(request.fallbackContent)) {
19246+ body["FallbackContent"] = request.fallbackContent;
19247+ }
19248+
19249+ if (!$dara.isNull(request.featureShrink)) {
19250+ body["Feature"] = request.featureShrink;
19251+ }
19252+
19253+ if (!$dara.isNull(request.icon)) {
19254+ body["Icon"] = request.icon;
19255+ }
19256+
19257+ if (!$dara.isNull(request.instructions)) {
19258+ body["Instructions"] = request.instructions;
19259+ }
19260+
19261+ if (!$dara.isNull(request.name)) {
19262+ body["Name"] = request.name;
19263+ }
19264+
19265+ if (!$dara.isNull(request.recommendPromptsShrink)) {
19266+ body["RecommendPrompts"] = request.recommendPromptsShrink;
19267+ }
19268+
19269+ if (!$dara.isNull(request.tenantContextShrink)) {
19270+ body["TenantContext"] = request.tenantContextShrink;
19271+ }
19272+
19273+ if (!$dara.isNull(request.welcomeContent)) {
19274+ body["WelcomeContent"] = request.welcomeContent;
19275+ }
19276+
19277+ let realHeaders : {[key: string ]: string} = { };
19278+ if (!$dara.isNull(headers.commonHeaders)) {
19279+ realHeaders = headers.commonHeaders;
19280+ }
19281+
19282+ if (!$dara.isNull(headers.accountContextShrink)) {
19283+ realHeaders["AccountContext"] = typeof headers.accountContextShrink === "string" ? headers.accountContextShrink : JSON.stringify(headers.accountContextShrink);
19284+ }
19285+
19286+ let req = new $OpenApiUtil.OpenApiRequest({
19287+ headers: realHeaders,
19288+ body: OpenApiUtil.parseToMap(body),
19289+ });
19290+ let params = new $OpenApiUtil.Params({
19291+ action: "UpdateAlidingAssistant",
19292+ version: "2023-04-26",
19293+ protocol: "HTTPS",
19294+ pathname: `/dingtalk/v1/aiagent/updateAlidingAssistant`,
19295+ method: "POST",
19296+ authType: "AK",
19297+ style: "ROA",
19298+ reqBodyType: "formData",
19299+ bodyType: "json",
19300+ });
19301+ return $dara.cast<$_model.UpdateAlidingAssistantResponse>(await this.callApi(params, req, runtime), new $_model.UpdateAlidingAssistantResponse({}));
19302+ }
19303+
19304+ /**
19305+ * @param request - UpdateAlidingAssistantRequest
19306+ * @returns UpdateAlidingAssistantResponse
19307+ */
19308+ async updateAlidingAssistant(request: $_model.UpdateAlidingAssistantRequest): Promise<$_model.UpdateAlidingAssistantResponse> {
19309+ let runtime = new $dara.RuntimeOptions({ });
19310+ let headers = new $_model.UpdateAlidingAssistantHeaders({ });
19311+ return await this.updateAlidingAssistantWithOptions(request, headers, runtime);
19312+ }
19313+
1895419314 /**
1895519315 * @param tmpReq - UpdateConvExtensionRequest
1895619316 * @param tmpHeader - UpdateConvExtensionHeaders
0 commit comments