// This file is auto-generated, don't edit it /** */ import Util, * as $Util from '@alicloud/tea-util'; import GatewayClient from '@alicloud/gateway-dingtalk'; import OpenApi, * as $OpenApi from '@alicloud/openapi-client'; import OpenApiUtil from '@alicloud/openapi-util'; import * as $tea from '@alicloud/tea-typescript'; export class AddAccountMappingHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class AddAccountMappingRequest extends $tea.Model { /** * @remarks * This parameter is required. * * @example * BizName1 */ domain?: string; /** * @example * 单key和单value的长度不超过100 */ extension?: { [key: string]: string }; /** * @remarks * This parameter is required. * * @example * o_123 */ outId?: string; /** * @remarks * This parameter is required. * * @example * t_123,如果不区分,填写固定值 */ outTenantId?: string; /** * @remarks * This parameter is required. * * @example * id_123 */ userId?: string; static names(): { [key: string]: string } { return { domain: 'domain', extension: 'extension', outId: 'outId', outTenantId: 'outTenantId', userId: 'userId', }; } static types(): { [key: string]: any } { return { domain: 'string', extension: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, outId: 'string', outTenantId: 'string', userId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class AddAccountMappingResponseBody extends $tea.Model { /** * @remarks * This parameter is required. * * @example * true */ result?: boolean; static names(): { [key: string]: string } { return { result: 'result', }; } static types(): { [key: string]: any } { return { result: 'boolean', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class AddAccountMappingResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: AddAccountMappingResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: AddAccountMappingResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class AddContactHideBySceneSettingHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class AddContactHideBySceneSettingRequest extends $tea.Model { /** * @example * description text */ description?: string; excludeDeptIds?: number[]; excludeTagIds?: number[]; excludeUserIds?: string[]; /** * @example * test name */ name?: string; nodeListSceneConfig?: AddContactHideBySceneSettingRequestNodeListSceneConfig; objectDeptIds?: number[]; objectTagIds?: number[]; objectUserIds?: string[]; profileSceneConfig?: AddContactHideBySceneSettingRequestProfileSceneConfig; searchSceneConfig?: AddContactHideBySceneSettingRequestSearchSceneConfig; static names(): { [key: string]: string } { return { description: 'description', excludeDeptIds: 'excludeDeptIds', excludeTagIds: 'excludeTagIds', excludeUserIds: 'excludeUserIds', name: 'name', nodeListSceneConfig: 'nodeListSceneConfig', objectDeptIds: 'objectDeptIds', objectTagIds: 'objectTagIds', objectUserIds: 'objectUserIds', profileSceneConfig: 'profileSceneConfig', searchSceneConfig: 'searchSceneConfig', }; } static types(): { [key: string]: any } { return { description: 'string', excludeDeptIds: { 'type': 'array', 'itemType': 'number' }, excludeTagIds: { 'type': 'array', 'itemType': 'number' }, excludeUserIds: { 'type': 'array', 'itemType': 'string' }, name: 'string', nodeListSceneConfig: AddContactHideBySceneSettingRequestNodeListSceneConfig, objectDeptIds: { 'type': 'array', 'itemType': 'number' }, objectTagIds: { 'type': 'array', 'itemType': 'number' }, objectUserIds: { 'type': 'array', 'itemType': 'string' }, profileSceneConfig: AddContactHideBySceneSettingRequestProfileSceneConfig, searchSceneConfig: AddContactHideBySceneSettingRequestSearchSceneConfig, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class AddContactHideBySceneSettingResponseBody extends $tea.Model { /** * @example * 1234001 */ settingId?: number; static names(): { [key: string]: string } { return { settingId: 'settingId', }; } static types(): { [key: string]: any } { return { settingId: 'number', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class AddContactHideBySceneSettingResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: AddContactHideBySceneSettingResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: AddContactHideBySceneSettingResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class AddEmpAttributeHideBySceneSettingHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class AddEmpAttributeHideBySceneSettingRequest extends $tea.Model { chatSubtitleConfig?: AddEmpAttributeHideBySceneSettingRequestChatSubtitleConfig; /** * @example * description text */ description?: string; excludeDeptIds?: number[]; excludeTagIds?: number[]; excludeUserIds?: string[]; hideFields?: string[]; /** * @example * test name */ name?: string; objectDeptIds?: number[]; objectTagIds?: number[]; objectUserIds?: string[]; profileSceneConfig?: AddEmpAttributeHideBySceneSettingRequestProfileSceneConfig; searchSceneConfig?: AddEmpAttributeHideBySceneSettingRequestSearchSceneConfig; static names(): { [key: string]: string } { return { chatSubtitleConfig: 'chatSubtitleConfig', description: 'description', excludeDeptIds: 'excludeDeptIds', excludeTagIds: 'excludeTagIds', excludeUserIds: 'excludeUserIds', hideFields: 'hideFields', name: 'name', objectDeptIds: 'objectDeptIds', objectTagIds: 'objectTagIds', objectUserIds: 'objectUserIds', profileSceneConfig: 'profileSceneConfig', searchSceneConfig: 'searchSceneConfig', }; } static types(): { [key: string]: any } { return { chatSubtitleConfig: AddEmpAttributeHideBySceneSettingRequestChatSubtitleConfig, description: 'string', excludeDeptIds: { 'type': 'array', 'itemType': 'number' }, excludeTagIds: { 'type': 'array', 'itemType': 'number' }, excludeUserIds: { 'type': 'array', 'itemType': 'string' }, hideFields: { 'type': 'array', 'itemType': 'string' }, name: 'string', objectDeptIds: { 'type': 'array', 'itemType': 'number' }, objectTagIds: { 'type': 'array', 'itemType': 'number' }, objectUserIds: { 'type': 'array', 'itemType': 'string' }, profileSceneConfig: AddEmpAttributeHideBySceneSettingRequestProfileSceneConfig, searchSceneConfig: AddEmpAttributeHideBySceneSettingRequestSearchSceneConfig, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class AddEmpAttributeHideBySceneSettingResponseBody extends $tea.Model { /** * @example * 1234001 */ settingId?: number; static names(): { [key: string]: string } { return { settingId: 'settingId', }; } static types(): { [key: string]: any } { return { settingId: 'number', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class AddEmpAttributeHideBySceneSettingResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: AddEmpAttributeHideBySceneSettingResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: AddEmpAttributeHideBySceneSettingResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class AddOrgAccountOwnnessHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class AddOrgAccountOwnnessRequest extends $tea.Model { /** * @remarks * This parameter is required. * * @example * 1698335999000 */ endTime?: number; /** * @remarks * This parameter is required. * * @example * 2 */ ownenssType?: number; /** * @remarks * This parameter is required. * * @example * 123456 */ ownnessId?: number; /** * @remarks * This parameter is required. * * @example * 1698335999000 */ startTime?: number; /** * @remarks * This parameter is required. * * @example * 会议中 */ text?: string; /** * @remarks * This parameter is required. * * @example * 123 */ userId?: string; static names(): { [key: string]: string } { return { endTime: 'endTime', ownenssType: 'ownenssType', ownnessId: 'ownnessId', startTime: 'startTime', text: 'text', userId: 'userId', }; } static types(): { [key: string]: any } { return { endTime: 'number', ownenssType: 'number', ownnessId: 'number', startTime: 'number', text: 'string', userId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class AddOrgAccountOwnnessResponseBody extends $tea.Model { /** * @example * 123456 */ result?: number; static names(): { [key: string]: string } { return { result: 'result', }; } static types(): { [key: string]: any } { return { result: 'number', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class AddOrgAccountOwnnessResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: AddOrgAccountOwnnessResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: AddOrgAccountOwnnessResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class AnnualCertificationAuditHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class AnnualCertificationAuditRequest extends $tea.Model { applicantMobile?: string; applicantName?: string; applicationLetter?: string; /** * @remarks * This parameter is required. */ authStatus?: number; certificateType?: number; corpName?: string; depositaryBank?: string; extension?: string; legalPerson?: string; licenseNumber?: string; licenseUrl?: string; /** * @remarks * This parameter is required. * * **if can be null:** * false */ orderId?: string; publicAccount?: string; reasonCode?: string; reasonMsg?: string; tag?: string; static names(): { [key: string]: string } { return { applicantMobile: 'applicantMobile', applicantName: 'applicantName', applicationLetter: 'applicationLetter', authStatus: 'authStatus', certificateType: 'certificateType', corpName: 'corpName', depositaryBank: 'depositaryBank', extension: 'extension', legalPerson: 'legalPerson', licenseNumber: 'licenseNumber', licenseUrl: 'licenseUrl', orderId: 'orderId', publicAccount: 'publicAccount', reasonCode: 'reasonCode', reasonMsg: 'reasonMsg', tag: 'tag', }; } static types(): { [key: string]: any } { return { applicantMobile: 'string', applicantName: 'string', applicationLetter: 'string', authStatus: 'number', certificateType: 'number', corpName: 'string', depositaryBank: 'string', extension: 'string', legalPerson: 'string', licenseNumber: 'string', licenseUrl: 'string', orderId: 'string', publicAccount: 'string', reasonCode: 'string', reasonMsg: 'string', tag: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class AnnualCertificationAuditResponseBody extends $tea.Model { result?: boolean; static names(): { [key: string]: string } { return { result: 'result', }; } static types(): { [key: string]: any } { return { result: 'boolean', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class AnnualCertificationAuditResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: AnnualCertificationAuditResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: AnnualCertificationAuditResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class BatchApproveUnionApplyHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class BatchApproveUnionApplyRequest extends $tea.Model { body?: BatchApproveUnionApplyRequestBody[]; static names(): { [key: string]: string } { return { body: 'body', }; } static types(): { [key: string]: any } { return { body: { 'type': 'array', 'itemType': BatchApproveUnionApplyRequestBody }, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class BatchApproveUnionApplyResponseBody extends $tea.Model { result?: boolean; static names(): { [key: string]: string } { return { result: 'result', }; } static types(): { [key: string]: any } { return { result: 'boolean', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class BatchApproveUnionApplyResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: BatchApproveUnionApplyResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: BatchApproveUnionApplyResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class BatchUpdateExternalTitleHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class BatchUpdateExternalTitleRequest extends $tea.Model { operatorUserId?: string; updateTitleModelList?: BatchUpdateExternalTitleRequestUpdateTitleModelList[]; static names(): { [key: string]: string } { return { operatorUserId: 'operatorUserId', updateTitleModelList: 'updateTitleModelList', }; } static types(): { [key: string]: any } { return { operatorUserId: 'string', updateTitleModelList: { 'type': 'array', 'itemType': BatchUpdateExternalTitleRequestUpdateTitleModelList }, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class BatchUpdateExternalTitleResponseBody extends $tea.Model { result?: BatchUpdateExternalTitleResponseBodyResult; success?: boolean; static names(): { [key: string]: string } { return { result: 'result', success: 'success', }; } static types(): { [key: string]: any } { return { result: BatchUpdateExternalTitleResponseBodyResult, success: 'boolean', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class BatchUpdateExternalTitleResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: BatchUpdateExternalTitleResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: BatchUpdateExternalTitleResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class ChangeDingTalkIdHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class ChangeDingTalkIdRequest extends $tea.Model { /** * @remarks * This parameter is required. * * @example * abc123 */ dingTalkId?: string; /** * @remarks * This parameter is required. * * @example * userIdBB */ userId?: string; static names(): { [key: string]: string } { return { dingTalkId: 'dingTalkId', userId: 'userId', }; } static types(): { [key: string]: any } { return { dingTalkId: 'string', userId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class ChangeDingTalkIdResponseBody extends $tea.Model { result?: boolean; static names(): { [key: string]: string } { return { result: 'result', }; } static types(): { [key: string]: any } { return { result: 'boolean', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class ChangeDingTalkIdResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: ChangeDingTalkIdResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: ChangeDingTalkIdResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class ChangeMainAdminHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class ChangeMainAdminRequest extends $tea.Model { /** * @remarks * This parameter is required. * * @example * corpIdCCC */ effectCorpId?: string; /** * @remarks * This parameter is required. * * @example * userIdAA */ sourceUserId?: string; /** * @remarks * This parameter is required. * * @example * userIdBB */ targetUserId?: string; static names(): { [key: string]: string } { return { effectCorpId: 'effectCorpId', sourceUserId: 'sourceUserId', targetUserId: 'targetUserId', }; } static types(): { [key: string]: any } { return { effectCorpId: 'string', sourceUserId: 'string', targetUserId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class ChangeMainAdminResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class ChangeMainOrgHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class ChangeMainOrgRequest extends $tea.Model { /** * @remarks * This parameter is required. * * @example * corpIdCCC */ newMainCorpId?: string; /** * @remarks * This parameter is required. * * @example * userIdAA */ userId?: string; static names(): { [key: string]: string } { return { newMainCorpId: 'newMainCorpId', userId: 'userId', }; } static types(): { [key: string]: any } { return { newMainCorpId: 'string', userId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class ChangeMainOrgResponseBody extends $tea.Model { static names(): { [key: string]: string } { return { }; } static types(): { [key: string]: any } { return { }; } constructor(map?: { [key: string]: any }) { super(map); } } export class ChangeMainOrgResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: ChangeMainOrgResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: ChangeMainOrgResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class CourseFinishCourseHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class CourseFinishCourseRequest extends $tea.Model { /** * @example * isv_code_cert_id_001 */ certId?: string; /** * @example * data:image\/(?:png|jpeg|gif|bmp|webp);base64 */ certMediaBase64?: string; /** * @example * isv_code_course_01 */ courseId?: string; /** * @example * pass */ status?: string; /** * @example * xxxxx001 */ userId?: string; static names(): { [key: string]: string } { return { certId: 'certId', certMediaBase64: 'certMediaBase64', courseId: 'courseId', status: 'status', userId: 'userId', }; } static types(): { [key: string]: any } { return { certId: 'string', certMediaBase64: 'string', courseId: 'string', status: 'string', userId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class CourseFinishCourseResponseBody extends $tea.Model { /** * @remarks * This parameter is required. * * @example * true */ result?: boolean; static names(): { [key: string]: string } { return { result: 'result', }; } static types(): { [key: string]: any } { return { result: 'boolean', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class CourseFinishCourseResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: CourseFinishCourseResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: CourseFinishCourseResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class CreateCooperateOrgHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class CreateCooperateOrgRequest extends $tea.Model { /** * @example * 123456 */ industryCode?: number; /** * @example * mediaId */ logoMediaId?: string; /** * @remarks * This parameter is required. * * @example * 测试联盟 */ orgName?: string; static names(): { [key: string]: string } { return { industryCode: 'industryCode', logoMediaId: 'logoMediaId', orgName: 'orgName', }; } static types(): { [key: string]: any } { return { industryCode: 'number', logoMediaId: 'string', orgName: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class CreateCooperateOrgResponseBody extends $tea.Model { cooperateCorpId?: string; static names(): { [key: string]: string } { return { cooperateCorpId: 'cooperateCorpId', }; } static types(): { [key: string]: any } { return { cooperateCorpId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class CreateCooperateOrgResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: CreateCooperateOrgResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: CreateCooperateOrgResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class CreateManagementGroupHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class CreateManagementGroupRequest extends $tea.Model { /** * @remarks * This parameter is required. */ groupName?: string; /** * @remarks * This parameter is required. */ members?: CreateManagementGroupRequestMembers[]; /** * @remarks * This parameter is required. */ resourceIds?: string[]; /** * @remarks * This parameter is required. */ scope?: CreateManagementGroupRequestScope; static names(): { [key: string]: string } { return { groupName: 'groupName', members: 'members', resourceIds: 'resourceIds', scope: 'scope', }; } static types(): { [key: string]: any } { return { groupName: 'string', members: { 'type': 'array', 'itemType': CreateManagementGroupRequestMembers }, resourceIds: { 'type': 'array', 'itemType': 'string' }, scope: CreateManagementGroupRequestScope, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class CreateManagementGroupResponseBody extends $tea.Model { /** * @remarks * This parameter is required. * * @example * rolexxx */ groupId?: string; static names(): { [key: string]: string } { return { groupId: 'groupId', }; } static types(): { [key: string]: any } { return { groupId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class CreateManagementGroupResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: CreateManagementGroupResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: CreateManagementGroupResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class CreateSecondaryManagementGroupHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class CreateSecondaryManagementGroupRequest extends $tea.Model { /** * @remarks * This parameter is required. * * @example * 财务常用权限 */ groupName?: string; /** * @remarks * This parameter is required. */ members?: CreateSecondaryManagementGroupRequestMembers[]; /** * @remarks * This parameter is required. */ resourceIds?: string[]; /** * @remarks * This parameter is required. */ scope?: CreateSecondaryManagementGroupRequestScope; /** * @remarks * This parameter is required. * * @example * WB001 */ userId?: string; static names(): { [key: string]: string } { return { groupName: 'groupName', members: 'members', resourceIds: 'resourceIds', scope: 'scope', userId: 'userId', }; } static types(): { [key: string]: any } { return { groupName: 'string', members: { 'type': 'array', 'itemType': CreateSecondaryManagementGroupRequestMembers }, resourceIds: { 'type': 'array', 'itemType': 'string' }, scope: CreateSecondaryManagementGroupRequestScope, userId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class CreateSecondaryManagementGroupResponseBody extends $tea.Model { /** * @remarks * This parameter is required. * * @example * rolexxx */ groupId?: string; static names(): { [key: string]: string } { return { groupId: 'groupId', }; } static types(): { [key: string]: any } { return { groupId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class CreateSecondaryManagementGroupResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: CreateSecondaryManagementGroupResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: CreateSecondaryManagementGroupResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class DelAccountMappingHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class DelAccountMappingRequest extends $tea.Model { /** * @remarks * This parameter is required. * * @example * BizName1 */ domain?: string; /** * @remarks * This parameter is required. * * @example * id_123 */ userId?: string; static names(): { [key: string]: string } { return { domain: 'domain', userId: 'userId', }; } static types(): { [key: string]: any } { return { domain: 'string', userId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class DelAccountMappingResponseBody extends $tea.Model { /** * @example * true */ result?: boolean; static names(): { [key: string]: string } { return { result: 'result', }; } static types(): { [key: string]: any } { return { result: 'boolean', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class DelAccountMappingResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: DelAccountMappingResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: DelAccountMappingResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class DelOrgAccUserOwnnessHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class DelOrgAccUserOwnnessRequest extends $tea.Model { /** * @remarks * This parameter is required. * * @example * 2 */ ownenssType?: number; /** * @remarks * This parameter is required. * * @example * 123456 */ ownnessId?: number; /** * @remarks * This parameter is required. * * @example * 123 */ userId?: string; static names(): { [key: string]: string } { return { ownenssType: 'ownenssType', ownnessId: 'ownnessId', userId: 'userId', }; } static types(): { [key: string]: any } { return { ownenssType: 'number', ownnessId: 'number', userId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class DelOrgAccUserOwnnessResponseBody extends $tea.Model { /** * @remarks * This parameter is required. */ result?: boolean; static names(): { [key: string]: string } { return { result: 'result', }; } static types(): { [key: string]: any } { return { result: 'boolean', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class DelOrgAccUserOwnnessResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: DelOrgAccUserOwnnessResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: DelOrgAccUserOwnnessResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class DeleteContactHideBySceneSettingHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class DeleteContactHideBySceneSettingResponseBody extends $tea.Model { success?: boolean; static names(): { [key: string]: string } { return { success: 'success', }; } static types(): { [key: string]: any } { return { success: 'boolean', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class DeleteContactHideBySceneSettingResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: DeleteContactHideBySceneSettingResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: DeleteContactHideBySceneSettingResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class DeleteContactHideSettingHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class DeleteContactHideSettingResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class DeleteContactRestrictSettingHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class DeleteContactRestrictSettingResponseBody extends $tea.Model { /** * @example * true */ result?: boolean; static names(): { [key: string]: string } { return { result: 'result', }; } static types(): { [key: string]: any } { return { result: 'boolean', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class DeleteContactRestrictSettingResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: DeleteContactRestrictSettingResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: DeleteContactRestrictSettingResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class DeleteEmpAttributeHideBySceneSettingHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class DeleteEmpAttributeHideBySceneSettingResponseBody extends $tea.Model { success?: boolean; static names(): { [key: string]: string } { return { success: 'success', }; } static types(): { [key: string]: any } { return { success: 'boolean', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class DeleteEmpAttributeHideBySceneSettingResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: DeleteEmpAttributeHideBySceneSettingResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: DeleteEmpAttributeHideBySceneSettingResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class DeleteEmpAttributeVisibilityHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class DeleteEmpAttributeVisibilityResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class DeleteManagementGroupHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class DeleteManagementGroupResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetAccountMappingHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetAccountMappingRequest extends $tea.Model { /** * @remarks * This parameter is required. * * @example * BizName1 */ domain?: string; /** * @remarks * This parameter is required. * * @example * id_123 */ userId?: string; static names(): { [key: string]: string } { return { domain: 'domain', userId: 'userId', }; } static types(): { [key: string]: any } { return { domain: 'string', userId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetAccountMappingResponseBody extends $tea.Model { result?: GetAccountMappingResponseBodyResult; static names(): { [key: string]: string } { return { result: 'result', }; } static types(): { [key: string]: any } { return { result: GetAccountMappingResponseBodyResult, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetAccountMappingResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: GetAccountMappingResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: GetAccountMappingResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetApplyInviteInfoHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetApplyInviteInfoRequest extends $tea.Model { deptId?: number; /** * **if can be null:** * true */ inviterUserId?: string; static names(): { [key: string]: string } { return { deptId: 'deptId', inviterUserId: 'inviterUserId', }; } static types(): { [key: string]: any } { return { deptId: 'number', inviterUserId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetApplyInviteInfoResponseBody extends $tea.Model { /** * @remarks * This parameter is required. */ auditType?: number; /** * @remarks * This parameter is required. */ empApplyJoinDept?: boolean; /** * @remarks * This parameter is required. */ inviteSwitch?: boolean; inviteUrl?: string; /** * @remarks * This parameter is required. */ linkInvite?: boolean; /** * @remarks * This parameter is required. */ orgApplyCodeInvite?: boolean; /** * @remarks * This parameter is required. */ searchNameInvite?: boolean; static names(): { [key: string]: string } { return { auditType: 'auditType', empApplyJoinDept: 'empApplyJoinDept', inviteSwitch: 'inviteSwitch', inviteUrl: 'inviteUrl', linkInvite: 'linkInvite', orgApplyCodeInvite: 'orgApplyCodeInvite', searchNameInvite: 'searchNameInvite', }; } static types(): { [key: string]: any } { return { auditType: 'number', empApplyJoinDept: 'boolean', inviteSwitch: 'boolean', inviteUrl: 'string', linkInvite: 'boolean', orgApplyCodeInvite: 'boolean', searchNameInvite: 'boolean', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetApplyInviteInfoResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: GetApplyInviteInfoResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: GetApplyInviteInfoResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetBranchAuthDataHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetBranchAuthDataRequest extends $tea.Model { body?: { [key: string]: string }; /** * @remarks * This parameter is required. * * @example * dinglkj123hj25jk54j2 */ branchCorpId?: string; /** * @remarks * This parameter is required. * * @example * eduStuCnt */ code?: string; static names(): { [key: string]: string } { return { body: 'body', branchCorpId: 'branchCorpId', code: 'code', }; } static types(): { [key: string]: any } { return { body: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, branchCorpId: 'string', code: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetBranchAuthDataResponseBody extends $tea.Model { result?: GetBranchAuthDataResponseBodyResult[]; static names(): { [key: string]: string } { return { result: 'result', }; } static types(): { [key: string]: any } { return { result: { 'type': 'array', 'itemType': GetBranchAuthDataResponseBodyResult }, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetBranchAuthDataResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: GetBranchAuthDataResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: GetBranchAuthDataResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetCardInUserHolderHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetCardInUserHolderResponseBody extends $tea.Model { /** * @remarks * This parameter is required. */ avatarUrl?: string; cardAcceptStatus?: number; cardAcceptTimeLong?: number; /** * @remarks * This parameter is required. */ cardId?: string; /** * @example * 0 */ cardSource?: number; extension?: { [key: string]: any }; industryName?: string; introduce?: string; /** * @remarks * This parameter is required. */ name?: string; /** * @remarks * This parameter is required. */ orgName?: string; templateId?: string; title?: string; static names(): { [key: string]: string } { return { avatarUrl: 'avatarUrl', cardAcceptStatus: 'cardAcceptStatus', cardAcceptTimeLong: 'cardAcceptTimeLong', cardId: 'cardId', cardSource: 'cardSource', extension: 'extension', industryName: 'industryName', introduce: 'introduce', name: 'name', orgName: 'orgName', templateId: 'templateId', title: 'title', }; } static types(): { [key: string]: any } { return { avatarUrl: 'string', cardAcceptStatus: 'number', cardAcceptTimeLong: 'number', cardId: 'string', cardSource: 'number', extension: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' }, industryName: 'string', introduce: 'string', name: 'string', orgName: 'string', templateId: 'string', title: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetCardInUserHolderResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: GetCardInUserHolderResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: GetCardInUserHolderResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetCardInfoHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetCardInfoResponseBody extends $tea.Model { adminRole?: number; /** * @remarks * This parameter is required. */ avatarUrl?: string; /** * @remarks * This parameter is required. */ cardId?: string; extension?: GetCardInfoResponseBodyExtension; industryName?: string; introduce?: { [key: string]: any }; /** * @remarks * This parameter is required. */ name?: string; /** * @remarks * This parameter is required. */ orgName?: string; settings?: { [key: string]: any }; templateId?: string; title?: string; static names(): { [key: string]: string } { return { adminRole: 'adminRole', avatarUrl: 'avatarUrl', cardId: 'cardId', extension: 'extension', industryName: 'industryName', introduce: 'introduce', name: 'name', orgName: 'orgName', settings: 'settings', templateId: 'templateId', title: 'title', }; } static types(): { [key: string]: any } { return { adminRole: 'number', avatarUrl: 'string', cardId: 'string', extension: GetCardInfoResponseBodyExtension, industryName: 'string', introduce: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' }, name: 'string', orgName: 'string', settings: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' }, templateId: 'string', title: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetCardInfoResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: GetCardInfoResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: GetCardInfoResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetContactHideBySceneSettingHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetContactHideBySceneSettingResponseBody extends $tea.Model { /** * @example * description info */ description?: string; excludeDeptIds?: number[]; excludeTagIds?: number[]; excludeUserIds?: string[]; /** * @example * 123456 */ id?: number; /** * @example * abc */ name?: string; nodeListSceneConfig?: GetContactHideBySceneSettingResponseBodyNodeListSceneConfig; objectDeptIds?: number[]; objectTagIds?: number[]; objectUserIds?: string[]; profileSceneConfig?: GetContactHideBySceneSettingResponseBodyProfileSceneConfig; searchSceneConfig?: GetContactHideBySceneSettingResponseBodySearchSceneConfig; static names(): { [key: string]: string } { return { description: 'description', excludeDeptIds: 'excludeDeptIds', excludeTagIds: 'excludeTagIds', excludeUserIds: 'excludeUserIds', id: 'id', name: 'name', nodeListSceneConfig: 'nodeListSceneConfig', objectDeptIds: 'objectDeptIds', objectTagIds: 'objectTagIds', objectUserIds: 'objectUserIds', profileSceneConfig: 'profileSceneConfig', searchSceneConfig: 'searchSceneConfig', }; } static types(): { [key: string]: any } { return { description: 'string', excludeDeptIds: { 'type': 'array', 'itemType': 'number' }, excludeTagIds: { 'type': 'array', 'itemType': 'number' }, excludeUserIds: { 'type': 'array', 'itemType': 'string' }, id: 'number', name: 'string', nodeListSceneConfig: GetContactHideBySceneSettingResponseBodyNodeListSceneConfig, objectDeptIds: { 'type': 'array', 'itemType': 'number' }, objectTagIds: { 'type': 'array', 'itemType': 'number' }, objectUserIds: { 'type': 'array', 'itemType': 'string' }, profileSceneConfig: GetContactHideBySceneSettingResponseBodyProfileSceneConfig, searchSceneConfig: GetContactHideBySceneSettingResponseBodySearchSceneConfig, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetContactHideBySceneSettingResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: GetContactHideBySceneSettingResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: GetContactHideBySceneSettingResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetCooperateOrgInviteInfoHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetCooperateOrgInviteInfoResponseBody extends $tea.Model { /** * @remarks * This parameter is required. */ inviteUrl?: string; static names(): { [key: string]: string } { return { inviteUrl: 'inviteUrl', }; } static types(): { [key: string]: any } { return { inviteUrl: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetCooperateOrgInviteInfoResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: GetCooperateOrgInviteInfoResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: GetCooperateOrgInviteInfoResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetCorpCardStyleListHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetCorpCardStyleListResponseBody extends $tea.Model { /** * @remarks * This parameter is required. */ result?: { [key: string]: any }[]; static names(): { [key: string]: string } { return { result: 'result', }; } static types(): { [key: string]: any } { return { result: { 'type': 'array', 'itemType': { 'type': 'map', 'keyType': 'string', 'valueType': 'any' } }, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetCorpCardStyleListResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: GetCorpCardStyleListResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: GetCorpCardStyleListResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetDingIdByMigrationDingIdHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetDingIdByMigrationDingIdRequest extends $tea.Model { /** * @remarks * This parameter is required. */ migrationDingId?: string; static names(): { [key: string]: string } { return { migrationDingId: 'migrationDingId', }; } static types(): { [key: string]: any } { return { migrationDingId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetDingIdByMigrationDingIdResponseBody extends $tea.Model { dingId?: string; static names(): { [key: string]: string } { return { dingId: 'dingId', }; } static types(): { [key: string]: any } { return { dingId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetDingIdByMigrationDingIdResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: GetDingIdByMigrationDingIdResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: GetDingIdByMigrationDingIdResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetEmpAttributeHideBySceneSettingHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetEmpAttributeHideBySceneSettingResponseBody extends $tea.Model { chatSubtitleConfig?: GetEmpAttributeHideBySceneSettingResponseBodyChatSubtitleConfig; /** * @example * 描述信息 */ description?: string; excludeDeptIds?: number[]; excludeTagIds?: number[]; excludeUserIds?: string[]; hideFields?: string[]; /** * @example * 123456 */ id?: number; /** * @example * 设置1 */ name?: string; objectDeptIds?: number[]; objectTagIds?: number[]; objectUserIds?: string[]; profileSceneConfig?: GetEmpAttributeHideBySceneSettingResponseBodyProfileSceneConfig; searchSceneConfig?: GetEmpAttributeHideBySceneSettingResponseBodySearchSceneConfig; static names(): { [key: string]: string } { return { chatSubtitleConfig: 'chatSubtitleConfig', description: 'description', excludeDeptIds: 'excludeDeptIds', excludeTagIds: 'excludeTagIds', excludeUserIds: 'excludeUserIds', hideFields: 'hideFields', id: 'id', name: 'name', objectDeptIds: 'objectDeptIds', objectTagIds: 'objectTagIds', objectUserIds: 'objectUserIds', profileSceneConfig: 'profileSceneConfig', searchSceneConfig: 'searchSceneConfig', }; } static types(): { [key: string]: any } { return { chatSubtitleConfig: GetEmpAttributeHideBySceneSettingResponseBodyChatSubtitleConfig, description: 'string', excludeDeptIds: { 'type': 'array', 'itemType': 'number' }, excludeTagIds: { 'type': 'array', 'itemType': 'number' }, excludeUserIds: { 'type': 'array', 'itemType': 'string' }, hideFields: { 'type': 'array', 'itemType': 'string' }, id: 'number', name: 'string', objectDeptIds: { 'type': 'array', 'itemType': 'number' }, objectTagIds: { 'type': 'array', 'itemType': 'number' }, objectUserIds: { 'type': 'array', 'itemType': 'string' }, profileSceneConfig: GetEmpAttributeHideBySceneSettingResponseBodyProfileSceneConfig, searchSceneConfig: GetEmpAttributeHideBySceneSettingResponseBodySearchSceneConfig, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetEmpAttributeHideBySceneSettingResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: GetEmpAttributeHideBySceneSettingResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: GetEmpAttributeHideBySceneSettingResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetLatestDingIndexHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetLatestDingIndexResponseBody extends $tea.Model { /** * @remarks * This parameter is required. * * @example * 50 */ idxCarbon?: number; /** * @remarks * This parameter is required. * * @example * 50 */ idxEfficiency?: number; /** * @remarks * This parameter is required. * * @example * 888 */ idxMonthlyAvg?: number; /** * @remarks * This parameter is required. * * @example * 888 */ idxTotal?: number; /** * @remarks * This parameter is required. * * @example * 20210412 */ statDate?: string; static names(): { [key: string]: string } { return { idxCarbon: 'idxCarbon', idxEfficiency: 'idxEfficiency', idxMonthlyAvg: 'idxMonthlyAvg', idxTotal: 'idxTotal', statDate: 'statDate', }; } static types(): { [key: string]: any } { return { idxCarbon: 'number', idxEfficiency: 'number', idxMonthlyAvg: 'number', idxTotal: 'number', statDate: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetLatestDingIndexResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: GetLatestDingIndexResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: GetLatestDingIndexResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetMigrationDingIdByDingIdHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetMigrationDingIdByDingIdRequest extends $tea.Model { /** * @remarks * This parameter is required. */ dingId?: string; static names(): { [key: string]: string } { return { dingId: 'dingId', }; } static types(): { [key: string]: any } { return { dingId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetMigrationDingIdByDingIdResponseBody extends $tea.Model { migrationDingIdList?: { [key: string]: any }; static names(): { [key: string]: string } { return { migrationDingIdList: 'migrationDingIdList', }; } static types(): { [key: string]: any } { return { migrationDingIdList: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' }, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetMigrationDingIdByDingIdResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: GetMigrationDingIdByDingIdResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: GetMigrationDingIdByDingIdResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetMigrationUnionIdByUnionIdHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetMigrationUnionIdByUnionIdRequest extends $tea.Model { /** * @remarks * This parameter is required. */ unionId?: string; static names(): { [key: string]: string } { return { unionId: 'unionId', }; } static types(): { [key: string]: any } { return { unionId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetMigrationUnionIdByUnionIdResponseBody extends $tea.Model { migrationUnionIdList?: { [key: string]: any }; static names(): { [key: string]: string } { return { migrationUnionIdList: 'migrationUnionIdList', }; } static types(): { [key: string]: any } { return { migrationUnionIdList: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' }, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetMigrationUnionIdByUnionIdResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: GetMigrationUnionIdByUnionIdResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: GetMigrationUnionIdByUnionIdResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetOrgAuthInfoHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetOrgAuthInfoRequest extends $tea.Model { /** * @example * dingxxxxxxx */ targetCorpId?: string; static names(): { [key: string]: string } { return { targetCorpId: 'targetCorpId', }; } static types(): { [key: string]: any } { return { targetCorpId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetOrgAuthInfoResponseBody extends $tea.Model { /** * @remarks * This parameter is required. * * @example * 1 */ authLevel?: number; /** * @example * xxx */ legalPerson?: string; /** * @remarks * This parameter is required. * * @example * 测试有限公司 */ licenseOrgName?: string; /** * @example * https://XXX.XX */ licenseUrl?: string; /** * @remarks * This parameter is required. * * @example * 测试 */ orgName?: string; /** * @example * 2456677 */ organizationCode?: string; /** * @example * 1233 */ registrationNum?: string; /** * @example * 123566788 */ unifiedSocialCredit?: string; static names(): { [key: string]: string } { return { authLevel: 'authLevel', legalPerson: 'legalPerson', licenseOrgName: 'licenseOrgName', licenseUrl: 'licenseUrl', orgName: 'orgName', organizationCode: 'organizationCode', registrationNum: 'registrationNum', unifiedSocialCredit: 'unifiedSocialCredit', }; } static types(): { [key: string]: any } { return { authLevel: 'number', legalPerson: 'string', licenseOrgName: 'string', licenseUrl: 'string', orgName: 'string', organizationCode: 'string', registrationNum: 'string', unifiedSocialCredit: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetOrgAuthInfoResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: GetOrgAuthInfoResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: GetOrgAuthInfoResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetTranslateFileJobResultHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetTranslateFileJobResultRequest extends $tea.Model { /** * @remarks * This parameter is required. * * @example * fXrgPrvsNiZNa8RWis9Nk1SY */ jobId?: string; static names(): { [key: string]: string } { return { jobId: 'jobId', }; } static types(): { [key: string]: any } { return { jobId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetTranslateFileJobResultResponseBody extends $tea.Model { /** * @remarks * This parameter is required. * * @example * 1 */ status?: string; /** * @example * xxxx */ url?: string; static names(): { [key: string]: string } { return { status: 'status', url: 'url', }; } static types(): { [key: string]: any } { return { status: 'string', url: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetTranslateFileJobResultResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: GetTranslateFileJobResultResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: GetTranslateFileJobResultResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetUnionIdByMigrationUnionIdHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetUnionIdByMigrationUnionIdRequest extends $tea.Model { /** * @remarks * This parameter is required. */ migrationUnionId?: string; static names(): { [key: string]: string } { return { migrationUnionId: 'migrationUnionId', }; } static types(): { [key: string]: any } { return { migrationUnionId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetUnionIdByMigrationUnionIdResponseBody extends $tea.Model { unionId?: string; static names(): { [key: string]: string } { return { unionId: 'unionId', }; } static types(): { [key: string]: any } { return { unionId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetUnionIdByMigrationUnionIdResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: GetUnionIdByMigrationUnionIdResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: GetUnionIdByMigrationUnionIdResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetUserHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetUserResponseBody extends $tea.Model { avatarUrl?: string; email?: string; loginEmail?: string; mobile?: string; nick?: string; openId?: string; stateCode?: string; unionId?: string; visitor?: boolean; static names(): { [key: string]: string } { return { avatarUrl: 'avatarUrl', email: 'email', loginEmail: 'loginEmail', mobile: 'mobile', nick: 'nick', openId: 'openId', stateCode: 'stateCode', unionId: 'unionId', visitor: 'visitor', }; } static types(): { [key: string]: any } { return { avatarUrl: 'string', email: 'string', loginEmail: 'string', mobile: 'string', nick: 'string', openId: 'string', stateCode: 'string', unionId: 'string', visitor: 'boolean', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetUserResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: GetUserResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: GetUserResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetUserCardHolderListHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetUserCardHolderListRequest extends $tea.Model { /** * @remarks * This parameter is required. */ maxResults?: number; nextToken?: number; static names(): { [key: string]: string } { return { maxResults: 'maxResults', nextToken: 'nextToken', }; } static types(): { [key: string]: any } { return { maxResults: 'number', nextToken: 'number', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetUserCardHolderListResponseBody extends $tea.Model { hasMore?: boolean; /** * @remarks * This parameter is required. */ list?: GetUserCardHolderListResponseBodyList[]; /** * @remarks * This parameter is required. */ nextToken?: number; totalCount?: number; static names(): { [key: string]: string } { return { hasMore: 'hasMore', list: 'list', nextToken: 'nextToken', totalCount: 'totalCount', }; } static types(): { [key: string]: any } { return { hasMore: 'boolean', list: { 'type': 'array', 'itemType': GetUserCardHolderListResponseBodyList }, nextToken: 'number', totalCount: 'number', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetUserCardHolderListResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: GetUserCardHolderListResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: GetUserCardHolderListResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class InitVerifyEventHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class InitVerifyEventRequest extends $tea.Model { callerDeviceId?: string; /** * @remarks * This parameter is required. */ factorCodeList?: string[]; state?: string; /** * @remarks * This parameter is required. */ userId?: string; static names(): { [key: string]: string } { return { callerDeviceId: 'callerDeviceId', factorCodeList: 'factorCodeList', state: 'state', userId: 'userId', }; } static types(): { [key: string]: any } { return { callerDeviceId: 'string', factorCodeList: { 'type': 'array', 'itemType': 'string' }, state: 'string', userId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class InitVerifyEventResponseBody extends $tea.Model { verifyId?: string; static names(): { [key: string]: string } { return { verifyId: 'verifyId', }; } static types(): { [key: string]: any } { return { verifyId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class InitVerifyEventResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: InitVerifyEventResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: InitVerifyEventResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class IsFriendHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class IsFriendRequest extends $tea.Model { /** * @example * 15968883355 */ mobileNo?: string; /** * @example * 098231 */ userId?: string; static names(): { [key: string]: string } { return { mobileNo: 'mobileNo', userId: 'userId', }; } static types(): { [key: string]: any } { return { mobileNo: 'string', userId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class IsFriendResponseBody extends $tea.Model { /** * @example * true */ isFriend?: boolean; static names(): { [key: string]: string } { return { isFriend: 'isFriend', }; } static types(): { [key: string]: any } { return { isFriend: 'boolean', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class IsFriendResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: IsFriendResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: IsFriendResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class IsvCardEventPushHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class IsvCardEventPushRequest extends $tea.Model { /** * @remarks * This parameter is required. */ eventParams?: { [key: string]: any }; /** * @remarks * This parameter is required. */ eventType?: string; /** * @remarks * This parameter is required. */ isvCardId?: string; /** * @remarks * This parameter is required. */ isvToken?: string; /** * @remarks * This parameter is required. */ isvUid?: string; static names(): { [key: string]: string } { return { eventParams: 'eventParams', eventType: 'eventType', isvCardId: 'isvCardId', isvToken: 'isvToken', isvUid: 'isvUid', }; } static types(): { [key: string]: any } { return { eventParams: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' }, eventType: 'string', isvCardId: 'string', isvToken: 'string', isvUid: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class IsvCardEventPushResponseBody extends $tea.Model { /** * @remarks * This parameter is required. */ success?: boolean; static names(): { [key: string]: string } { return { success: 'success', }; } static types(): { [key: string]: any } { return { success: 'boolean', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class IsvCardEventPushResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: IsvCardEventPushResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: IsvCardEventPushResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class ListBasicRoleInPageHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class ListBasicRoleInPageRequest extends $tea.Model { /** * @example * 123 */ agentId?: string; maxResults?: number; nextToken?: number; static names(): { [key: string]: string } { return { agentId: 'agentId', maxResults: 'maxResults', nextToken: 'nextToken', }; } static types(): { [key: string]: any } { return { agentId: 'string', maxResults: 'number', nextToken: 'number', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class ListBasicRoleInPageResponseBody extends $tea.Model { hasMore?: boolean; list?: ListBasicRoleInPageResponseBodyList[]; nextToken?: number; static names(): { [key: string]: string } { return { hasMore: 'hasMore', list: 'list', nextToken: 'nextToken', }; } static types(): { [key: string]: any } { return { hasMore: 'boolean', list: { 'type': 'array', 'itemType': ListBasicRoleInPageResponseBodyList }, nextToken: 'number', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class ListBasicRoleInPageResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: ListBasicRoleInPageResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: ListBasicRoleInPageResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class ListContactHideSettingsHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class ListContactHideSettingsRequest extends $tea.Model { maxResults?: number; nextToken?: number; static names(): { [key: string]: string } { return { maxResults: 'maxResults', nextToken: 'nextToken', }; } static types(): { [key: string]: any } { return { maxResults: 'number', nextToken: 'number', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class ListContactHideSettingsResponseBody extends $tea.Model { /** * @example * true */ hasMore?: boolean; list?: ListContactHideSettingsResponseBodyList[]; nextToken?: number; static names(): { [key: string]: string } { return { hasMore: 'hasMore', list: 'list', nextToken: 'nextToken', }; } static types(): { [key: string]: any } { return { hasMore: 'boolean', list: { 'type': 'array', 'itemType': ListContactHideSettingsResponseBodyList }, nextToken: 'number', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class ListContactHideSettingsResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: ListContactHideSettingsResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: ListContactHideSettingsResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class ListContactRestrictSettingHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class ListContactRestrictSettingRequest extends $tea.Model { maxResults?: number; nextToken?: number; static names(): { [key: string]: string } { return { maxResults: 'maxResults', nextToken: 'nextToken', }; } static types(): { [key: string]: any } { return { maxResults: 'number', nextToken: 'number', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class ListContactRestrictSettingResponseBody extends $tea.Model { /** * @example * true */ hasMore?: boolean; list?: ListContactRestrictSettingResponseBodyList[]; nextToken?: number; static names(): { [key: string]: string } { return { hasMore: 'hasMore', list: 'list', nextToken: 'nextToken', }; } static types(): { [key: string]: any } { return { hasMore: 'boolean', list: { 'type': 'array', 'itemType': ListContactRestrictSettingResponseBodyList }, nextToken: 'number', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class ListContactRestrictSettingResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: ListContactRestrictSettingResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: ListContactRestrictSettingResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class ListEmpAttributeVisibilityHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class ListEmpAttributeVisibilityRequest extends $tea.Model { maxResults?: number; nextToken?: number; static names(): { [key: string]: string } { return { maxResults: 'maxResults', nextToken: 'nextToken', }; } static types(): { [key: string]: any } { return { maxResults: 'number', nextToken: 'number', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class ListEmpAttributeVisibilityResponseBody extends $tea.Model { /** * @remarks * This parameter is required. * * @example * true */ hasMore?: boolean; list?: ListEmpAttributeVisibilityResponseBodyList[]; /** * @remarks * This parameter is required. */ nextCursor?: number; static names(): { [key: string]: string } { return { hasMore: 'hasMore', list: 'list', nextCursor: 'nextCursor', }; } static types(): { [key: string]: any } { return { hasMore: 'boolean', list: { 'type': 'array', 'itemType': ListEmpAttributeVisibilityResponseBodyList }, nextCursor: 'number', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class ListEmpAttributeVisibilityResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: ListEmpAttributeVisibilityResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: ListEmpAttributeVisibilityResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class ListEmpLeaveRecordsHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class ListEmpLeaveRecordsRequest extends $tea.Model { /** * @example * 2020-08-10T00:00:00 */ endTime?: string; /** * @remarks * This parameter is required. * * @example * 10 */ maxResults?: number; /** * @example * DCCD7A656FFA6F07 */ nextToken?: string; /** * @remarks * This parameter is required. * * @example * 2020-07-10T00:00:00 */ startTime?: string; static names(): { [key: string]: string } { return { endTime: 'endTime', maxResults: 'maxResults', nextToken: 'nextToken', startTime: 'startTime', }; } static types(): { [key: string]: any } { return { endTime: 'string', maxResults: 'number', nextToken: 'string', startTime: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class ListEmpLeaveRecordsResponseBody extends $tea.Model { /** * @example * DCCD7A656FFA6F07 */ nextToken?: string; /** * @remarks * This parameter is required. */ records?: ListEmpLeaveRecordsResponseBodyRecords[]; static names(): { [key: string]: string } { return { nextToken: 'nextToken', records: 'records', }; } static types(): { [key: string]: any } { return { nextToken: 'string', records: { 'type': 'array', 'itemType': ListEmpLeaveRecordsResponseBodyRecords }, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class ListEmpLeaveRecordsResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: ListEmpLeaveRecordsResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: ListEmpLeaveRecordsResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class ListManagementGroupsHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class ListManagementGroupsRequest extends $tea.Model { /** * @remarks * This parameter is required. */ maxResults?: number; /** * @remarks * This parameter is required. */ nextToken?: number; static names(): { [key: string]: string } { return { maxResults: 'maxResults', nextToken: 'nextToken', }; } static types(): { [key: string]: any } { return { maxResults: 'number', nextToken: 'number', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class ListManagementGroupsResponseBody extends $tea.Model { /** * @remarks * This parameter is required. */ groups?: ListManagementGroupsResponseBodyGroups[]; /** * @remarks * This parameter is required. * * @example * true */ hasMore?: boolean; /** * @example * 111 */ nextToken?: number; static names(): { [key: string]: string } { return { groups: 'groups', hasMore: 'hasMore', nextToken: 'nextToken', }; } static types(): { [key: string]: any } { return { groups: { 'type': 'array', 'itemType': ListManagementGroupsResponseBodyGroups }, hasMore: 'boolean', nextToken: 'number', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class ListManagementGroupsResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: ListManagementGroupsResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: ListManagementGroupsResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class ListOwnedOrgByStaffIdHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class ListOwnedOrgByStaffIdRequest extends $tea.Model { /** * @remarks * This parameter is required. * * @example * userIdxxx */ userId?: string; static names(): { [key: string]: string } { return { userId: 'userId', }; } static types(): { [key: string]: any } { return { userId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class ListOwnedOrgByStaffIdResponseBody extends $tea.Model { orgList?: ListOwnedOrgByStaffIdResponseBodyOrgList[]; static names(): { [key: string]: string } { return { orgList: 'orgList', }; } static types(): { [key: string]: any } { return { orgList: { 'type': 'array', 'itemType': ListOwnedOrgByStaffIdResponseBodyOrgList }, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class ListOwnedOrgByStaffIdResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: ListOwnedOrgByStaffIdResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: ListOwnedOrgByStaffIdResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class ListSeniorSettingsHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class ListSeniorSettingsRequest extends $tea.Model { /** * @remarks * This parameter is required. */ seniorStaffId?: string; static names(): { [key: string]: string } { return { seniorStaffId: 'seniorStaffId', }; } static types(): { [key: string]: any } { return { seniorStaffId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class ListSeniorSettingsResponseBody extends $tea.Model { protectScenes?: string[]; seniorStaffId?: string; seniorWhiteList?: ListSeniorSettingsResponseBodySeniorWhiteList[]; static names(): { [key: string]: string } { return { protectScenes: 'protectScenes', seniorStaffId: 'seniorStaffId', seniorWhiteList: 'seniorWhiteList', }; } static types(): { [key: string]: any } { return { protectScenes: { 'type': 'array', 'itemType': 'string' }, seniorStaffId: 'string', seniorWhiteList: { 'type': 'array', 'itemType': ListSeniorSettingsResponseBodySeniorWhiteList }, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class ListSeniorSettingsResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: ListSeniorSettingsResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: ListSeniorSettingsResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class ModifyOrgAccUserOwnnessHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class ModifyOrgAccUserOwnnessRequest extends $tea.Model { /** * @remarks * This parameter is required. * * @example * 1698335999000 */ endTime?: number; /** * @remarks * This parameter is required. * * @example * 1 */ ownenssType?: number; /** * @remarks * This parameter is required. * * @example * 123456 */ ownnessId?: number; /** * @remarks * This parameter is required. * * @example * 1698335999000 */ startTime?: number; /** * @remarks * This parameter is required. * * @example * 会议中 */ text?: string; /** * @remarks * This parameter is required. * * @example * 123 */ userId?: string; static names(): { [key: string]: string } { return { endTime: 'endTime', ownenssType: 'ownenssType', ownnessId: 'ownnessId', startTime: 'startTime', text: 'text', userId: 'userId', }; } static types(): { [key: string]: any } { return { endTime: 'number', ownenssType: 'number', ownnessId: 'number', startTime: 'number', text: 'string', userId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class ModifyOrgAccUserOwnnessResponseBody extends $tea.Model { result?: boolean; static names(): { [key: string]: string } { return { result: 'result', }; } static types(): { [key: string]: any } { return { result: 'boolean', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class ModifyOrgAccUserOwnnessResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: ModifyOrgAccUserOwnnessResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: ModifyOrgAccUserOwnnessResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class MultiOrgPermissionGrantHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class MultiOrgPermissionGrantRequest extends $tea.Model { /** * @example * 123 * * **if can be null:** * false */ grantDeptIdList?: number[]; /** * @remarks * This parameter is required. * * @example * dingxxxxx */ joinCorpId?: string; static names(): { [key: string]: string } { return { grantDeptIdList: 'grantDeptIdList', joinCorpId: 'joinCorpId', }; } static types(): { [key: string]: any } { return { grantDeptIdList: { 'type': 'array', 'itemType': 'number' }, joinCorpId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class MultiOrgPermissionGrantResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class OrgAccountMobileVisibleInOtherOrgHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class OrgAccountMobileVisibleInOtherOrgRequest extends $tea.Model { fields?: string[]; /** * @remarks * This parameter is required. */ optUserId?: string; /** * @remarks * This parameter is required. */ toCorpIds?: string[]; static names(): { [key: string]: string } { return { fields: 'fields', optUserId: 'optUserId', toCorpIds: 'toCorpIds', }; } static types(): { [key: string]: any } { return { fields: { 'type': 'array', 'itemType': 'string' }, optUserId: 'string', toCorpIds: { 'type': 'array', 'itemType': 'string' }, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class OrgAccountMobileVisibleInOtherOrgResponseBody extends $tea.Model { result?: boolean; static names(): { [key: string]: string } { return { result: 'result', }; } static types(): { [key: string]: any } { return { result: 'boolean', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class OrgAccountMobileVisibleInOtherOrgResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: OrgAccountMobileVisibleInOtherOrgResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: OrgAccountMobileVisibleInOtherOrgResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class OrgAccountMobileVisiblePermissonHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class OrgAccountMobileVisiblePermissonRequest extends $tea.Model { /** * @remarks * This parameter is required. */ body?: string[]; static names(): { [key: string]: string } { return { body: 'body', }; } static types(): { [key: string]: any } { return { body: { 'type': 'array', 'itemType': 'string' }, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class OrgAccountMobileVisiblePermissonResponseBody extends $tea.Model { result?: boolean; static names(): { [key: string]: string } { return { result: 'result', }; } static types(): { [key: string]: any } { return { result: 'boolean', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class OrgAccountMobileVisiblePermissonResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: OrgAccountMobileVisiblePermissonResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: OrgAccountMobileVisiblePermissonResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class OrgInfoHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class OrgInfoRequest extends $tea.Model { orgIds?: number[]; static names(): { [key: string]: string } { return { orgIds: 'orgIds', }; } static types(): { [key: string]: any } { return { orgIds: { 'type': 'array', 'itemType': 'number' }, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class OrgInfoShrinkRequest extends $tea.Model { orgIdsShrink?: string; static names(): { [key: string]: string } { return { orgIdsShrink: 'orgIds', }; } static types(): { [key: string]: any } { return { orgIdsShrink: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class OrgInfoResponseBody extends $tea.Model { result?: OrgInfoResponseBodyResult[]; static names(): { [key: string]: string } { return { result: 'result', }; } static types(): { [key: string]: any } { return { result: { 'type': 'array', 'itemType': OrgInfoResponseBodyResult }, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class OrgInfoResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: OrgInfoResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: OrgInfoResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class PushVerifyEventHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class PushVerifyEventRequest extends $tea.Model { callerDeviceId?: string; /** * @remarks * This parameter is required. */ factorCodeList?: string[]; state?: string; /** * @remarks * This parameter is required. */ userId?: string; static names(): { [key: string]: string } { return { callerDeviceId: 'callerDeviceId', factorCodeList: 'factorCodeList', state: 'state', userId: 'userId', }; } static types(): { [key: string]: any } { return { callerDeviceId: 'string', factorCodeList: { 'type': 'array', 'itemType': 'string' }, state: 'string', userId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class PushVerifyEventResponseBody extends $tea.Model { verifyId?: string; static names(): { [key: string]: string } { return { verifyId: 'verifyId', }; } static types(): { [key: string]: any } { return { verifyId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class PushVerifyEventResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: PushVerifyEventResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: PushVerifyEventResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class QueryCardVisitorStatisticDataHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class QueryCardVisitorStatisticDataRequest extends $tea.Model { /** * @remarks * This parameter is required. * * @example * RCsp7PJmmTUr7w0hbs9aKAiEiE */ unionId?: string; static names(): { [key: string]: string } { return { unionId: 'unionId', }; } static types(): { [key: string]: any } { return { unionId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class QueryCardVisitorStatisticDataResponseBody extends $tea.Model { /** * @example * 1 */ cardSendCnt?: number; /** * @example * 1 */ todayVisitAddCnt?: number; /** * @example * 1 */ todayVisitCnt?: number; /** * @example * 1 */ totalVisitAddCnt?: number; /** * @example * 1 */ totalVisitCnt?: number; /** * @example * 1 */ wechatTodayVisitAddCnt?: number; /** * @example * 1 */ wechatTodayVisitCnt?: number; /** * @example * 1 */ wechatTotalVisitAddCnt?: number; /** * @example * 1 */ wechatTotalVisitCnt?: number; static names(): { [key: string]: string } { return { cardSendCnt: 'cardSendCnt', todayVisitAddCnt: 'todayVisitAddCnt', todayVisitCnt: 'todayVisitCnt', totalVisitAddCnt: 'totalVisitAddCnt', totalVisitCnt: 'totalVisitCnt', wechatTodayVisitAddCnt: 'wechatTodayVisitAddCnt', wechatTodayVisitCnt: 'wechatTodayVisitCnt', wechatTotalVisitAddCnt: 'wechatTotalVisitAddCnt', wechatTotalVisitCnt: 'wechatTotalVisitCnt', }; } static types(): { [key: string]: any } { return { cardSendCnt: 'number', todayVisitAddCnt: 'number', todayVisitCnt: 'number', totalVisitAddCnt: 'number', totalVisitCnt: 'number', wechatTodayVisitAddCnt: 'number', wechatTodayVisitCnt: 'number', wechatTotalVisitAddCnt: 'number', wechatTotalVisitCnt: 'number', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class QueryCardVisitorStatisticDataResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: QueryCardVisitorStatisticDataResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: QueryCardVisitorStatisticDataResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class QueryCorpStatisticDataHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class QueryCorpStatisticDataRequest extends $tea.Model { /** * @remarks * This parameter is required. * * @example * 20230101 */ endTime?: string; /** * @remarks * This parameter is required. * * @example * 20220101 */ startTime?: string; templateIds?: string[]; /** * @remarks * This parameter is required. * * @example * RCsp7PJmmTUr7w0hbs9aKAiEiE */ unionId?: string; static names(): { [key: string]: string } { return { endTime: 'endTime', startTime: 'startTime', templateIds: 'templateIds', unionId: 'unionId', }; } static types(): { [key: string]: any } { return { endTime: 'string', startTime: 'string', templateIds: { 'type': 'array', 'itemType': 'string' }, unionId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class QueryCorpStatisticDataResponseBody extends $tea.Model { result?: QueryCorpStatisticDataResponseBodyResult[]; static names(): { [key: string]: string } { return { result: 'result', }; } static types(): { [key: string]: any } { return { result: { 'type': 'array', 'itemType': QueryCorpStatisticDataResponseBodyResult }, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class QueryCorpStatisticDataResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: QueryCorpStatisticDataResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: QueryCorpStatisticDataResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class QueryCorpUserStatisticHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class QueryCorpUserStatisticRequest extends $tea.Model { /** * @remarks * This parameter is required. * * @example * 20230101 */ endTime?: string; /** * @remarks * This parameter is required. */ maxResults?: number; /** * @remarks * This parameter is required. * * @example * 0 */ nextToken?: number; /** * @remarks * This parameter is required. * * @example * 20220101 */ startTime?: string; templateIds?: string[]; /** * @remarks * This parameter is required. * * @example * RCsp7PJmmTUr7w0hbs9aKAiEiE */ unionId?: string; static names(): { [key: string]: string } { return { endTime: 'endTime', maxResults: 'maxResults', nextToken: 'nextToken', startTime: 'startTime', templateIds: 'templateIds', unionId: 'unionId', }; } static types(): { [key: string]: any } { return { endTime: 'string', maxResults: 'number', nextToken: 'number', startTime: 'string', templateIds: { 'type': 'array', 'itemType': 'string' }, unionId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class QueryCorpUserStatisticResponseBody extends $tea.Model { hasMore?: boolean; list?: QueryCorpUserStatisticResponseBodyList[]; /** * @example * 5 */ nextToken?: number; /** * @example * 20 */ totalCount?: number; static names(): { [key: string]: string } { return { hasMore: 'hasMore', list: 'list', nextToken: 'nextToken', totalCount: 'totalCount', }; } static types(): { [key: string]: any } { return { hasMore: 'boolean', list: { 'type': 'array', 'itemType': QueryCorpUserStatisticResponseBodyList }, nextToken: 'number', totalCount: 'number', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class QueryCorpUserStatisticResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: QueryCorpUserStatisticResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: QueryCorpUserStatisticResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class QueryResourceManagementMembersHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class QueryResourceManagementMembersResponseBody extends $tea.Model { members?: QueryResourceManagementMembersResponseBodyMembers[]; static names(): { [key: string]: string } { return { members: 'members', }; } static types(): { [key: string]: any } { return { members: { 'type': 'array', 'itemType': QueryResourceManagementMembersResponseBodyMembers }, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class QueryResourceManagementMembersResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: QueryResourceManagementMembersResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: QueryResourceManagementMembersResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class QueryStatusHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class QueryStatusRequest extends $tea.Model { /** * @remarks * This parameter is required. * * @example * userIdXXX */ userId?: string; static names(): { [key: string]: string } { return { userId: 'userId', }; } static types(): { [key: string]: any } { return { userId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class QueryStatusResponseBody extends $tea.Model { /** * @remarks * This parameter is required. * * @example * false/true */ disable?: boolean; static names(): { [key: string]: string } { return { disable: 'disable', }; } static types(): { [key: string]: any } { return { disable: 'boolean', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class QueryStatusResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: QueryStatusResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: QueryStatusResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class QueryUserManagementResourcesHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class QueryUserManagementResourcesResponseBody extends $tea.Model { resourceIds?: string[]; static names(): { [key: string]: string } { return { resourceIds: 'resourceIds', }; } static types(): { [key: string]: any } { return { resourceIds: { 'type': 'array', 'itemType': 'string' }, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class QueryUserManagementResourcesResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: QueryUserManagementResourcesResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: QueryUserManagementResourcesResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class QueryVerifyResultHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class QueryVerifyResultRequest extends $tea.Model { /** * @remarks * This parameter is required. */ verifyId?: string; static names(): { [key: string]: string } { return { verifyId: 'verifyId', }; } static types(): { [key: string]: any } { return { verifyId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class QueryVerifyResultResponseBody extends $tea.Model { corpId?: string; factorCode?: string; factorDesc?: string; resultCode?: string; resultDesc?: string; state?: string; userId?: string; verifyTimestamp?: number; static names(): { [key: string]: string } { return { corpId: 'corpId', factorCode: 'factorCode', factorDesc: 'factorDesc', resultCode: 'resultCode', resultDesc: 'resultDesc', state: 'state', userId: 'userId', verifyTimestamp: 'verifyTimestamp', }; } static types(): { [key: string]: any } { return { corpId: 'string', factorCode: 'string', factorDesc: 'string', resultCode: 'string', resultDesc: 'string', state: 'string', userId: 'string', verifyTimestamp: 'number', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class QueryVerifyResultResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: QueryVerifyResultResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: QueryVerifyResultResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class RecallTeamInviteHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class RecallTeamInviteRequest extends $tea.Model { /** * @example * 13336082715 */ mobile?: string; optUserId?: string; static names(): { [key: string]: string } { return { mobile: 'mobile', optUserId: 'optUserId', }; } static types(): { [key: string]: any } { return { mobile: 'string', optUserId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class RecallTeamInviteResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class SearchDepartmentHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class SearchDepartmentRequest extends $tea.Model { /** * @remarks * This parameter is required. * * @example * 0 */ offset?: number; /** * @remarks * This parameter is required. * * @example * 财务部 */ queryWord?: string; /** * @remarks * This parameter is required. * * @example * 10 */ size?: number; static names(): { [key: string]: string } { return { offset: 'offset', queryWord: 'queryWord', size: 'size', }; } static types(): { [key: string]: any } { return { offset: 'number', queryWord: 'string', size: 'number', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class SearchDepartmentResponseBody extends $tea.Model { /** * @remarks * This parameter is required. */ hasMore?: boolean; list?: number[]; /** * @remarks * This parameter is required. */ totalCount?: number; static names(): { [key: string]: string } { return { hasMore: 'hasMore', list: 'list', totalCount: 'totalCount', }; } static types(): { [key: string]: any } { return { hasMore: 'boolean', list: { 'type': 'array', 'itemType': 'number' }, totalCount: 'number', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class SearchDepartmentResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: SearchDepartmentResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: SearchDepartmentResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class SearchUserHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class SearchUserRequest extends $tea.Model { /** * @example * 1 */ fullMatchField?: number; /** * @remarks * This parameter is required. * * @example * 0 */ offset?: number; /** * @remarks * This parameter is required. * * @example * 张三 */ queryWord?: string; /** * @remarks * This parameter is required. * * @example * 10 */ size?: number; static names(): { [key: string]: string } { return { fullMatchField: 'fullMatchField', offset: 'offset', queryWord: 'queryWord', size: 'size', }; } static types(): { [key: string]: any } { return { fullMatchField: 'number', offset: 'number', queryWord: 'string', size: 'number', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class SearchUserResponseBody extends $tea.Model { hasMore?: boolean; list?: string[]; totalCount?: number; static names(): { [key: string]: string } { return { hasMore: 'hasMore', list: 'list', totalCount: 'totalCount', }; } static types(): { [key: string]: any } { return { hasMore: 'boolean', list: { 'type': 'array', 'itemType': 'string' }, totalCount: 'number', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class SearchUserResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: SearchUserResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: SearchUserResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class SeparateBranchOrgHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class SeparateBranchOrgRequest extends $tea.Model { /** * @remarks * This parameter is required. * * @example * 123 */ attachDeptId?: number; static names(): { [key: string]: string } { return { attachDeptId: 'attachDeptId', }; } static types(): { [key: string]: any } { return { attachDeptId: 'number', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class SeparateBranchOrgResponseBody extends $tea.Model { /** * @remarks * This parameter is required. * * @example * true */ result?: boolean; static names(): { [key: string]: string } { return { result: 'result', }; } static types(): { [key: string]: any } { return { result: 'boolean', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class SeparateBranchOrgResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: SeparateBranchOrgResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: SeparateBranchOrgResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class SetDisableHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class SetDisableRequest extends $tea.Model { /** * @example * reasonYYY */ reason?: string; /** * @remarks * This parameter is required. * * @example * userIdXXX */ userId?: string; static names(): { [key: string]: string } { return { reason: 'reason', userId: 'userId', }; } static types(): { [key: string]: any } { return { reason: 'string', userId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class SetDisableResponseBody extends $tea.Model { result?: boolean; static names(): { [key: string]: string } { return { result: 'result', }; } static types(): { [key: string]: any } { return { result: 'boolean', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class SetDisableResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: SetDisableResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: SetDisableResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class SetEnableHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class SetEnableRequest extends $tea.Model { /** * @remarks * This parameter is required. * * @example * userIdXXX */ userId?: string; static names(): { [key: string]: string } { return { userId: 'userId', }; } static types(): { [key: string]: any } { return { userId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class SetEnableResponseBody extends $tea.Model { result?: boolean; static names(): { [key: string]: string } { return { result: 'result', }; } static types(): { [key: string]: any } { return { result: 'boolean', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class SetEnableResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: SetEnableResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: SetEnableResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class SignOutHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class SignOutRequest extends $tea.Model { reason?: string; reasonI18nForEmployee?: { [key: string]: string }; /** * @remarks * This parameter is required. */ userId?: string; static names(): { [key: string]: string } { return { reason: 'reason', reasonI18nForEmployee: 'reasonI18nForEmployee', userId: 'userId', }; } static types(): { [key: string]: any } { return { reason: 'string', reasonI18nForEmployee: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, userId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class SignOutResponseBody extends $tea.Model { result?: boolean; static names(): { [key: string]: string } { return { result: 'result', }; } static types(): { [key: string]: any } { return { result: 'boolean', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class SignOutResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: SignOutResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: SignOutResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class SortUserHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class SortUserRequest extends $tea.Model { /** * @example * 0 */ sortType?: number; /** * @remarks * This parameter is required. */ userIdList?: string[]; static names(): { [key: string]: string } { return { sortType: 'sortType', userIdList: 'userIdList', }; } static types(): { [key: string]: any } { return { sortType: 'number', userIdList: { 'type': 'array', 'itemType': 'string' }, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class SortUserResponseBody extends $tea.Model { /** * @remarks * This parameter is required. */ userIdList?: string[]; static names(): { [key: string]: string } { return { userIdList: 'userIdList', }; } static types(): { [key: string]: any } { return { userIdList: { 'type': 'array', 'itemType': 'string' }, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class SortUserResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: SortUserResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: SortUserResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class SubmitHandoverResourceHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class SubmitHandoverResourceRequest extends $tea.Model { /** * @remarks * This parameter is required. */ tasks?: SubmitHandoverResourceRequestTasks[]; /** * @remarks * This parameter is required. * * @example * userIdXXX */ userId?: string; static names(): { [key: string]: string } { return { tasks: 'tasks', userId: 'userId', }; } static types(): { [key: string]: any } { return { tasks: { 'type': 'array', 'itemType': SubmitHandoverResourceRequestTasks }, userId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class SubmitHandoverResourceResponseBody extends $tea.Model { success?: boolean; static names(): { [key: string]: string } { return { success: 'success', }; } static types(): { [key: string]: any } { return { success: 'boolean', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class SubmitHandoverResourceResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: SubmitHandoverResourceResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: SubmitHandoverResourceResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class TalentAddCustomTagHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class TalentAddCustomTagRequest extends $tea.Model { sortOrder?: number; tagCode?: string; /** * @remarks * This parameter is required. */ tagName?: string; /** * @remarks * This parameter is required. */ userId?: string; static names(): { [key: string]: string } { return { sortOrder: 'sortOrder', tagCode: 'tagCode', tagName: 'tagName', userId: 'userId', }; } static types(): { [key: string]: any } { return { sortOrder: 'number', tagCode: 'string', tagName: 'string', userId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class TalentAddCustomTagResponseBody extends $tea.Model { result?: TalentAddCustomTagResponseBodyResult; static names(): { [key: string]: string } { return { result: 'result', }; } static types(): { [key: string]: any } { return { result: TalentAddCustomTagResponseBodyResult, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class TalentAddCustomTagResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: TalentAddCustomTagResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: TalentAddCustomTagResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class TalentAddObjectiveTagHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class TalentAddObjectiveTagRequest extends $tea.Model { sortOrder?: number; tagCode?: string; /** * @remarks * This parameter is required. */ tagName?: string; /** * @remarks * This parameter is required. */ userId?: string; static names(): { [key: string]: string } { return { sortOrder: 'sortOrder', tagCode: 'tagCode', tagName: 'tagName', userId: 'userId', }; } static types(): { [key: string]: any } { return { sortOrder: 'number', tagCode: 'string', tagName: 'string', userId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class TalentAddObjectiveTagResponseBody extends $tea.Model { result?: TalentAddObjectiveTagResponseBodyResult; static names(): { [key: string]: string } { return { result: 'result', }; } static types(): { [key: string]: any } { return { result: TalentAddObjectiveTagResponseBodyResult, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class TalentAddObjectiveTagResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: TalentAddObjectiveTagResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: TalentAddObjectiveTagResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class TalentAddPersonalityTagHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class TalentAddPersonalityTagRequest extends $tea.Model { categoryCode?: string; /** * @remarks * This parameter is required. */ categoryName?: string; categorySortOrder?: number; sortOrder?: number; tagCode?: string; /** * @remarks * This parameter is required. */ tagName?: string; static names(): { [key: string]: string } { return { categoryCode: 'categoryCode', categoryName: 'categoryName', categorySortOrder: 'categorySortOrder', sortOrder: 'sortOrder', tagCode: 'tagCode', tagName: 'tagName', }; } static types(): { [key: string]: any } { return { categoryCode: 'string', categoryName: 'string', categorySortOrder: 'number', sortOrder: 'number', tagCode: 'string', tagName: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class TalentAddPersonalityTagResponseBody extends $tea.Model { result?: TalentAddPersonalityTagResponseBodyResult; static names(): { [key: string]: string } { return { result: 'result', }; } static types(): { [key: string]: any } { return { result: TalentAddPersonalityTagResponseBodyResult, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class TalentAddPersonalityTagResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: TalentAddPersonalityTagResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: TalentAddPersonalityTagResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class TalentDeleteCustomTagHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class TalentDeleteCustomTagRequest extends $tea.Model { /** * @remarks * This parameter is required. */ tagCode?: string; /** * @remarks * This parameter is required. */ userId?: string; static names(): { [key: string]: string } { return { tagCode: 'tagCode', userId: 'userId', }; } static types(): { [key: string]: any } { return { tagCode: 'string', userId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class TalentDeleteCustomTagResponseBody extends $tea.Model { result?: TalentDeleteCustomTagResponseBodyResult; static names(): { [key: string]: string } { return { result: 'result', }; } static types(): { [key: string]: any } { return { result: TalentDeleteCustomTagResponseBodyResult, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class TalentDeleteCustomTagResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: TalentDeleteCustomTagResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: TalentDeleteCustomTagResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class TalentDeleteObjectiveTagHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class TalentDeleteObjectiveTagRequest extends $tea.Model { /** * @remarks * This parameter is required. */ tagCode?: string; /** * @remarks * This parameter is required. */ userId?: string; static names(): { [key: string]: string } { return { tagCode: 'tagCode', userId: 'userId', }; } static types(): { [key: string]: any } { return { tagCode: 'string', userId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class TalentDeleteObjectiveTagResponseBody extends $tea.Model { result?: TalentDeleteObjectiveTagResponseBodyResult; static names(): { [key: string]: string } { return { result: 'result', }; } static types(): { [key: string]: any } { return { result: TalentDeleteObjectiveTagResponseBodyResult, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class TalentDeleteObjectiveTagResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: TalentDeleteObjectiveTagResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: TalentDeleteObjectiveTagResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class TalentDeletePersonalityTagHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class TalentDeletePersonalityTagRequest extends $tea.Model { /** * @remarks * This parameter is required. */ tagCode?: string; static names(): { [key: string]: string } { return { tagCode: 'tagCode', }; } static types(): { [key: string]: any } { return { tagCode: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class TalentDeletePersonalityTagResponseBody extends $tea.Model { result?: TalentDeletePersonalityTagResponseBodyResult; static names(): { [key: string]: string } { return { result: 'result', }; } static types(): { [key: string]: any } { return { result: TalentDeletePersonalityTagResponseBodyResult, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class TalentDeletePersonalityTagResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: TalentDeletePersonalityTagResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: TalentDeletePersonalityTagResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class TalentLikeTagHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class TalentLikeTagRequest extends $tea.Model { /** * @remarks * This parameter is required. */ actionType?: string; /** * @remarks * This parameter is required. */ operatorUserId?: string; /** * @remarks * This parameter is required. */ tagCode?: string; /** * @remarks * This parameter is required. */ userId?: string; static names(): { [key: string]: string } { return { actionType: 'actionType', operatorUserId: 'operatorUserId', tagCode: 'tagCode', userId: 'userId', }; } static types(): { [key: string]: any } { return { actionType: 'string', operatorUserId: 'string', tagCode: 'string', userId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class TalentLikeTagResponseBody extends $tea.Model { result?: TalentLikeTagResponseBodyResult; static names(): { [key: string]: string } { return { result: 'result', }; } static types(): { [key: string]: any } { return { result: TalentLikeTagResponseBodyResult, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class TalentLikeTagResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: TalentLikeTagResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: TalentLikeTagResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class TalentQueryCustomTagHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class TalentQueryCustomTagRequest extends $tea.Model { /** * @remarks * This parameter is required. */ userId?: string; static names(): { [key: string]: string } { return { userId: 'userId', }; } static types(): { [key: string]: any } { return { userId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class TalentQueryCustomTagResponseBody extends $tea.Model { result?: TalentQueryCustomTagResponseBodyResult; static names(): { [key: string]: string } { return { result: 'result', }; } static types(): { [key: string]: any } { return { result: TalentQueryCustomTagResponseBodyResult, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class TalentQueryCustomTagResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: TalentQueryCustomTagResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: TalentQueryCustomTagResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class TalentQueryObjectiveTagHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class TalentQueryObjectiveTagRequest extends $tea.Model { /** * @remarks * This parameter is required. */ userId?: string; static names(): { [key: string]: string } { return { userId: 'userId', }; } static types(): { [key: string]: any } { return { userId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class TalentQueryObjectiveTagResponseBody extends $tea.Model { result?: TalentQueryObjectiveTagResponseBodyResult; static names(): { [key: string]: string } { return { result: 'result', }; } static types(): { [key: string]: any } { return { result: TalentQueryObjectiveTagResponseBodyResult, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class TalentQueryObjectiveTagResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: TalentQueryObjectiveTagResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: TalentQueryObjectiveTagResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class TalentQueryPersonalityTagHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class TalentQueryPersonalityTagResponseBody extends $tea.Model { result?: TalentQueryPersonalityTagResponseBodyResult; static names(): { [key: string]: string } { return { result: 'result', }; } static types(): { [key: string]: any } { return { result: TalentQueryPersonalityTagResponseBodyResult, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class TalentQueryPersonalityTagResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: TalentQueryPersonalityTagResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: TalentQueryPersonalityTagResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class TalentQueryTagLikeDetailListHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class TalentQueryTagLikeDetailListRequest extends $tea.Model { cursor?: number; size?: number; /** * @remarks * This parameter is required. */ tagCode?: string; /** * @remarks * This parameter is required. */ userId?: string; static names(): { [key: string]: string } { return { cursor: 'cursor', size: 'size', tagCode: 'tagCode', userId: 'userId', }; } static types(): { [key: string]: any } { return { cursor: 'number', size: 'number', tagCode: 'string', userId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class TalentQueryTagLikeDetailListResponseBody extends $tea.Model { result?: TalentQueryTagLikeDetailListResponseBodyResult; static names(): { [key: string]: string } { return { result: 'result', }; } static types(): { [key: string]: any } { return { result: TalentQueryTagLikeDetailListResponseBodyResult, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class TalentQueryTagLikeDetailListResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: TalentQueryTagLikeDetailListResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: TalentQueryTagLikeDetailListResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class TalentQueryTagLikeListHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class TalentQueryTagLikeListRequest extends $tea.Model { operatorUserId?: string; /** * @remarks * This parameter is required. */ userId?: string; static names(): { [key: string]: string } { return { operatorUserId: 'operatorUserId', userId: 'userId', }; } static types(): { [key: string]: any } { return { operatorUserId: 'string', userId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class TalentQueryTagLikeListResponseBody extends $tea.Model { result?: TalentQueryTagLikeListResponseBodyResult; static names(): { [key: string]: string } { return { result: 'result', }; } static types(): { [key: string]: any } { return { result: TalentQueryTagLikeListResponseBodyResult, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class TalentQueryTagLikeListResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: TalentQueryTagLikeListResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: TalentQueryTagLikeListResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class TransformToExclusiveAccountHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class TransformToExclusiveAccountRequest extends $tea.Model { /** * @example * false/true */ idpDingTalk?: boolean; initPassword?: string; loginId?: string; /** * @remarks * This parameter is required. * * @example * migrate */ transformType?: string; /** * @remarks * This parameter is required. */ userId?: string; static names(): { [key: string]: string } { return { idpDingTalk: 'idpDingTalk', initPassword: 'initPassword', loginId: 'loginId', transformType: 'transformType', userId: 'userId', }; } static types(): { [key: string]: any } { return { idpDingTalk: 'boolean', initPassword: 'string', loginId: 'string', transformType: 'string', userId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class TransformToExclusiveAccountResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class TransformToNormalAccountHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class TransformToNormalAccountRequest extends $tea.Model { /** * @remarks * This parameter is required. */ userId?: string; static names(): { [key: string]: string } { return { userId: 'userId', }; } static types(): { [key: string]: any } { return { userId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class TransformToNormalAccountResponseBody extends $tea.Model { success?: boolean; static names(): { [key: string]: string } { return { success: 'success', }; } static types(): { [key: string]: any } { return { success: 'boolean', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class TransformToNormalAccountResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: TransformToNormalAccountResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: TransformToNormalAccountResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class TranslateFileHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class TranslateFileRequest extends $tea.Model { /** * @remarks * This parameter is required. * * @example * {"#iAEHAqRmaWxlA6h5dW5kaXNrMAT":"导出.xlsx"} * * **if can be null:** * false */ medias?: { [key: string]: string }; /** * @example * 学习手册 */ outputFileName?: string; /** * @remarks * This parameter is required. * * @example * fXRUNiSlgfK3e1hzFUSciiJwiEiE */ unionId?: string; static names(): { [key: string]: string } { return { medias: 'medias', outputFileName: 'outputFileName', unionId: 'unionId', }; } static types(): { [key: string]: any } { return { medias: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, outputFileName: 'string', unionId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class TranslateFileResponseBody extends $tea.Model { /** * @example * fXrgPrvsNiZNa8RWis9Nk1SY */ jobId?: string; static names(): { [key: string]: string } { return { jobId: 'jobId', }; } static types(): { [key: string]: any } { return { jobId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class TranslateFileResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: TranslateFileResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: TranslateFileResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class UniqueQueryUserCardHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class UniqueQueryUserCardRequest extends $tea.Model { /** * @example * 123 */ templateId?: string; /** * @remarks * This parameter is required. * * @example * dfsdfsfsfdsfs */ unionId?: string; static names(): { [key: string]: string } { return { templateId: 'templateId', unionId: 'unionId', }; } static types(): { [key: string]: any } { return { templateId: 'string', unionId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class UniqueQueryUserCardResponseBody extends $tea.Model { /** * @example * @lADPD2sQxoYs677NAavNAao */ avatarUrl?: string; /** * @example * CARD-6F0DA174-A0F4-4EBF-B24B-5FDFA648D25E */ cardId?: string; extension?: { [key: string]: any }; /** * @example * 工业 */ industryName?: string; /** * @example * 我是谁 */ introduce?: string; /** * @example * 张三 */ name?: string; /** * @example * 测试企业 */ orgName?: string; settings?: { [key: string]: any }; /** * @example * 163520027_5FE66C522EA142C8r7Abf7VY */ templateId?: string; /** * @example * 标题 */ title?: string; static names(): { [key: string]: string } { return { avatarUrl: 'avatarUrl', cardId: 'cardId', extension: 'extension', industryName: 'industryName', introduce: 'introduce', name: 'name', orgName: 'orgName', settings: 'settings', templateId: 'templateId', title: 'title', }; } static types(): { [key: string]: any } { return { avatarUrl: 'string', cardId: 'string', extension: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' }, industryName: 'string', introduce: 'string', name: 'string', orgName: 'string', settings: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' }, templateId: 'string', title: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class UniqueQueryUserCardResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: UniqueQueryUserCardResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: UniqueQueryUserCardResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class UpdateBranchAttributesInCooperateHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class UpdateBranchAttributesInCooperateRequest extends $tea.Model { /** * @remarks * This parameter is required. */ body?: UpdateBranchAttributesInCooperateRequestBody[]; static names(): { [key: string]: string } { return { body: 'body', }; } static types(): { [key: string]: any } { return { body: { 'type': 'array', 'itemType': UpdateBranchAttributesInCooperateRequestBody }, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class UpdateBranchAttributesInCooperateResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class UpdateBranchVisibleSettingInCooperateHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class UpdateBranchVisibleSettingInCooperateRequest extends $tea.Model { /** * @remarks * This parameter is required. */ body?: UpdateBranchVisibleSettingInCooperateRequestBody[]; static names(): { [key: string]: string } { return { body: 'body', }; } static types(): { [key: string]: any } { return { body: { 'type': 'array', 'itemType': UpdateBranchVisibleSettingInCooperateRequestBody }, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class UpdateBranchVisibleSettingInCooperateResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class UpdateContactHideBySceneSettingHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class UpdateContactHideBySceneSettingRequest extends $tea.Model { /** * @example * description text */ description?: string; excludeDeptIds?: number[]; excludeTagIds?: number[]; excludeUserIds?: string[]; /** * @example * test name */ name?: string; nodeListSceneConfig?: UpdateContactHideBySceneSettingRequestNodeListSceneConfig; objectDeptIds?: number[]; objectTagIds?: number[]; objectUserIds?: string[]; profileSceneConfig?: UpdateContactHideBySceneSettingRequestProfileSceneConfig; searchSceneConfig?: UpdateContactHideBySceneSettingRequestSearchSceneConfig; static names(): { [key: string]: string } { return { description: 'description', excludeDeptIds: 'excludeDeptIds', excludeTagIds: 'excludeTagIds', excludeUserIds: 'excludeUserIds', name: 'name', nodeListSceneConfig: 'nodeListSceneConfig', objectDeptIds: 'objectDeptIds', objectTagIds: 'objectTagIds', objectUserIds: 'objectUserIds', profileSceneConfig: 'profileSceneConfig', searchSceneConfig: 'searchSceneConfig', }; } static types(): { [key: string]: any } { return { description: 'string', excludeDeptIds: { 'type': 'array', 'itemType': 'number' }, excludeTagIds: { 'type': 'array', 'itemType': 'number' }, excludeUserIds: { 'type': 'array', 'itemType': 'string' }, name: 'string', nodeListSceneConfig: UpdateContactHideBySceneSettingRequestNodeListSceneConfig, objectDeptIds: { 'type': 'array', 'itemType': 'number' }, objectTagIds: { 'type': 'array', 'itemType': 'number' }, objectUserIds: { 'type': 'array', 'itemType': 'string' }, profileSceneConfig: UpdateContactHideBySceneSettingRequestProfileSceneConfig, searchSceneConfig: UpdateContactHideBySceneSettingRequestSearchSceneConfig, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class UpdateContactHideBySceneSettingResponseBody extends $tea.Model { success?: boolean; static names(): { [key: string]: string } { return { success: 'success', }; } static types(): { [key: string]: any } { return { success: 'boolean', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class UpdateContactHideBySceneSettingResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: UpdateContactHideBySceneSettingResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: UpdateContactHideBySceneSettingResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class UpdateContactHideSettingHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class UpdateContactHideSettingRequest extends $tea.Model { /** * @example * true */ active?: boolean; /** * @example * description text */ description?: string; excludeDeptIds?: number[]; excludeStaffIds?: string[]; excludeTagIds?: number[]; /** * **if can be null:** * true */ hideInSearch?: boolean; /** * **if can be null:** * true */ hideInUserProfile?: boolean; /** * @example * 11234 */ id?: number; /** * @example * test name */ name?: string; objectDeptIds?: number[]; objectStaffIds?: string[]; objectTagIds?: number[]; static names(): { [key: string]: string } { return { active: 'active', description: 'description', excludeDeptIds: 'excludeDeptIds', excludeStaffIds: 'excludeStaffIds', excludeTagIds: 'excludeTagIds', hideInSearch: 'hideInSearch', hideInUserProfile: 'hideInUserProfile', id: 'id', name: 'name', objectDeptIds: 'objectDeptIds', objectStaffIds: 'objectStaffIds', objectTagIds: 'objectTagIds', }; } static types(): { [key: string]: any } { return { active: 'boolean', description: 'string', excludeDeptIds: { 'type': 'array', 'itemType': 'number' }, excludeStaffIds: { 'type': 'array', 'itemType': 'string' }, excludeTagIds: { 'type': 'array', 'itemType': 'number' }, hideInSearch: 'boolean', hideInUserProfile: 'boolean', id: 'number', name: 'string', objectDeptIds: { 'type': 'array', 'itemType': 'number' }, objectStaffIds: { 'type': 'array', 'itemType': 'string' }, objectTagIds: { 'type': 'array', 'itemType': 'number' }, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class UpdateContactHideSettingResponseBody extends $tea.Model { /** * @example * 1234001 */ result?: number; static names(): { [key: string]: string } { return { result: 'result', }; } static types(): { [key: string]: any } { return { result: 'number', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class UpdateContactHideSettingResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: UpdateContactHideSettingResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: UpdateContactHideSettingResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class UpdateContactRestrictSettingHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class UpdateContactRestrictSettingRequest extends $tea.Model { /** * @example * true */ active?: boolean; /** * @example * rule description */ description?: string; excludeDeptIds?: number[]; excludeTagIds?: number[]; excludeUserIds?: string[]; /** * @example * 1000 */ id?: number; /** * @example * contact restrict name */ name?: string; /** * **if can be null:** * true */ restrictInSearch?: boolean; /** * **if can be null:** * true */ restrictInUserProfile?: boolean; subjectDeptIds?: number[]; subjectTagIds?: number[]; subjectUserIds?: string[]; /** * @remarks * This parameter is required. */ type?: string; static names(): { [key: string]: string } { return { active: 'active', description: 'description', excludeDeptIds: 'excludeDeptIds', excludeTagIds: 'excludeTagIds', excludeUserIds: 'excludeUserIds', id: 'id', name: 'name', restrictInSearch: 'restrictInSearch', restrictInUserProfile: 'restrictInUserProfile', subjectDeptIds: 'subjectDeptIds', subjectTagIds: 'subjectTagIds', subjectUserIds: 'subjectUserIds', type: 'type', }; } static types(): { [key: string]: any } { return { active: 'boolean', description: 'string', excludeDeptIds: { 'type': 'array', 'itemType': 'number' }, excludeTagIds: { 'type': 'array', 'itemType': 'number' }, excludeUserIds: { 'type': 'array', 'itemType': 'string' }, id: 'number', name: 'string', restrictInSearch: 'boolean', restrictInUserProfile: 'boolean', subjectDeptIds: { 'type': 'array', 'itemType': 'number' }, subjectTagIds: { 'type': 'array', 'itemType': 'number' }, subjectUserIds: { 'type': 'array', 'itemType': 'string' }, type: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class UpdateContactRestrictSettingResponseBody extends $tea.Model { /** * @example * 10001 */ result?: number; static names(): { [key: string]: string } { return { result: 'result', }; } static types(): { [key: string]: any } { return { result: 'number', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class UpdateContactRestrictSettingResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: UpdateContactRestrictSettingResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: UpdateContactRestrictSettingResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class UpdateDeptSettngTailFirstHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class UpdateDeptSettngTailFirstRequest extends $tea.Model { /** * @remarks * This parameter is required. */ enable?: boolean; static names(): { [key: string]: string } { return { enable: 'enable', }; } static types(): { [key: string]: any } { return { enable: 'boolean', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class UpdateDeptSettngTailFirstResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class UpdateEmpAttrbuteVisibilitySettingHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class UpdateEmpAttrbuteVisibilitySettingRequest extends $tea.Model { active?: boolean; description?: string; excludeDeptIds?: number[]; excludeStaffIds?: string[]; excludeTagIds?: number[]; hideFields?: string[]; /** * @example * 11111 */ id?: number; name?: string; objectDeptIds?: number[]; objectStaffIds?: string[]; objectTagIds?: number[]; static names(): { [key: string]: string } { return { active: 'active', description: 'description', excludeDeptIds: 'excludeDeptIds', excludeStaffIds: 'excludeStaffIds', excludeTagIds: 'excludeTagIds', hideFields: 'hideFields', id: 'id', name: 'name', objectDeptIds: 'objectDeptIds', objectStaffIds: 'objectStaffIds', objectTagIds: 'objectTagIds', }; } static types(): { [key: string]: any } { return { active: 'boolean', description: 'string', excludeDeptIds: { 'type': 'array', 'itemType': 'number' }, excludeStaffIds: { 'type': 'array', 'itemType': 'string' }, excludeTagIds: { 'type': 'array', 'itemType': 'number' }, hideFields: { 'type': 'array', 'itemType': 'string' }, id: 'number', name: 'string', objectDeptIds: { 'type': 'array', 'itemType': 'number' }, objectStaffIds: { 'type': 'array', 'itemType': 'string' }, objectTagIds: { 'type': 'array', 'itemType': 'number' }, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class UpdateEmpAttrbuteVisibilitySettingResponseBody extends $tea.Model { result?: number; static names(): { [key: string]: string } { return { result: 'result', }; } static types(): { [key: string]: any } { return { result: 'number', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class UpdateEmpAttrbuteVisibilitySettingResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: UpdateEmpAttrbuteVisibilitySettingResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: UpdateEmpAttrbuteVisibilitySettingResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class UpdateEmpAttributeHideBySceneSettingHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class UpdateEmpAttributeHideBySceneSettingRequest extends $tea.Model { chatSubtitleConfig?: UpdateEmpAttributeHideBySceneSettingRequestChatSubtitleConfig; /** * @example * description text */ description?: string; excludeDeptIds?: number[]; excludeTagIds?: number[]; excludeUserIds?: string[]; hideFields?: string[]; /** * @example * test name */ name?: string; objectDeptIds?: number[]; objectTagIds?: number[]; objectUserIds?: string[]; profileSceneConfig?: UpdateEmpAttributeHideBySceneSettingRequestProfileSceneConfig; searchSceneConfig?: UpdateEmpAttributeHideBySceneSettingRequestSearchSceneConfig; static names(): { [key: string]: string } { return { chatSubtitleConfig: 'chatSubtitleConfig', description: 'description', excludeDeptIds: 'excludeDeptIds', excludeTagIds: 'excludeTagIds', excludeUserIds: 'excludeUserIds', hideFields: 'hideFields', name: 'name', objectDeptIds: 'objectDeptIds', objectTagIds: 'objectTagIds', objectUserIds: 'objectUserIds', profileSceneConfig: 'profileSceneConfig', searchSceneConfig: 'searchSceneConfig', }; } static types(): { [key: string]: any } { return { chatSubtitleConfig: UpdateEmpAttributeHideBySceneSettingRequestChatSubtitleConfig, description: 'string', excludeDeptIds: { 'type': 'array', 'itemType': 'number' }, excludeTagIds: { 'type': 'array', 'itemType': 'number' }, excludeUserIds: { 'type': 'array', 'itemType': 'string' }, hideFields: { 'type': 'array', 'itemType': 'string' }, name: 'string', objectDeptIds: { 'type': 'array', 'itemType': 'number' }, objectTagIds: { 'type': 'array', 'itemType': 'number' }, objectUserIds: { 'type': 'array', 'itemType': 'string' }, profileSceneConfig: UpdateEmpAttributeHideBySceneSettingRequestProfileSceneConfig, searchSceneConfig: UpdateEmpAttributeHideBySceneSettingRequestSearchSceneConfig, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class UpdateEmpAttributeHideBySceneSettingResponseBody extends $tea.Model { success?: boolean; static names(): { [key: string]: string } { return { success: 'success', }; } static types(): { [key: string]: any } { return { success: 'boolean', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class UpdateEmpAttributeHideBySceneSettingResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: UpdateEmpAttributeHideBySceneSettingResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: UpdateEmpAttributeHideBySceneSettingResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class UpdateManagementGroupHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class UpdateManagementGroupRequest extends $tea.Model { /** * @remarks * This parameter is required. * * @example * 财务管理组 */ groupName?: string; /** * @remarks * This parameter is required. */ members?: UpdateManagementGroupRequestMembers[]; /** * @remarks * This parameter is required. */ resourceIds?: string[]; /** * @remarks * This parameter is required. */ scope?: UpdateManagementGroupRequestScope; static names(): { [key: string]: string } { return { groupName: 'groupName', members: 'members', resourceIds: 'resourceIds', scope: 'scope', }; } static types(): { [key: string]: any } { return { groupName: 'string', members: { 'type': 'array', 'itemType': UpdateManagementGroupRequestMembers }, resourceIds: { 'type': 'array', 'itemType': 'string' }, scope: UpdateManagementGroupRequestScope, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class UpdateManagementGroupResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class UpdateSeniorSettingHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class UpdateSeniorSettingRequest extends $tea.Model { /** * @remarks * This parameter is required. */ open?: boolean; permitDeptIds?: number[]; permitStaffIds?: string[]; permitTagIds?: number[]; protectScenes?: string[]; /** * @remarks * This parameter is required. */ seniorStaffId?: string; static names(): { [key: string]: string } { return { open: 'open', permitDeptIds: 'permitDeptIds', permitStaffIds: 'permitStaffIds', permitTagIds: 'permitTagIds', protectScenes: 'protectScenes', seniorStaffId: 'seniorStaffId', }; } static types(): { [key: string]: any } { return { open: 'boolean', permitDeptIds: { 'type': 'array', 'itemType': 'number' }, permitStaffIds: { 'type': 'array', 'itemType': 'string' }, permitTagIds: { 'type': 'array', 'itemType': 'number' }, protectScenes: { 'type': 'array', 'itemType': 'string' }, seniorStaffId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class UpdateSeniorSettingResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class UpdateTitleAuditStatusHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class UpdateTitleAuditStatusRequest extends $tea.Model { authStatus?: string; educationLevel?: string; extension?: string; major?: string; position?: string; reasonCode?: string; reasonMsg?: string; school?: string; type?: string; unionId?: string; uuid?: string; static names(): { [key: string]: string } { return { authStatus: 'authStatus', educationLevel: 'educationLevel', extension: 'extension', major: 'major', position: 'position', reasonCode: 'reasonCode', reasonMsg: 'reasonMsg', school: 'school', type: 'type', unionId: 'unionId', uuid: 'uuid', }; } static types(): { [key: string]: any } { return { authStatus: 'string', educationLevel: 'string', extension: 'string', major: 'string', position: 'string', reasonCode: 'string', reasonMsg: 'string', school: 'string', type: 'string', unionId: 'string', uuid: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class UpdateTitleAuditStatusResponseBody extends $tea.Model { result?: boolean; static names(): { [key: string]: string } { return { result: 'result', }; } static types(): { [key: string]: any } { return { result: 'boolean', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class UpdateTitleAuditStatusResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: UpdateTitleAuditStatusResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: UpdateTitleAuditStatusResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class UpdateUserOwnnessHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class UpdateUserOwnnessRequest extends $tea.Model { /** * @remarks * This parameter is required. * * @example * 1-删除,0-正常 */ deletedFlag?: number; /** * @remarks * This parameter is required. */ endTime?: number; /** * @remarks * This parameter is required. * * @example * 123456 */ id?: number; /** * @remarks * This parameter is required. * * @example * 1-请假,3-出差 */ ownenssType?: number; /** * @remarks * This parameter is required. */ startTime?: number; static names(): { [key: string]: string } { return { deletedFlag: 'deletedFlag', endTime: 'endTime', id: 'id', ownenssType: 'ownenssType', startTime: 'startTime', }; } static types(): { [key: string]: any } { return { deletedFlag: 'number', endTime: 'number', id: 'number', ownenssType: 'number', startTime: 'number', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class UpdateUserOwnnessResponseBody extends $tea.Model { /** * @remarks * This parameter is required. * * @example * 123456 */ result?: string; static names(): { [key: string]: string } { return { result: 'result', }; } static types(): { [key: string]: any } { return { result: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class UpdateUserOwnnessResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: UpdateUserOwnnessResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: UpdateUserOwnnessResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class UserProfileHeaders extends $tea.Model { commonHeaders?: { [key: string]: string }; xAcsDingtalkAccessToken?: string; static names(): { [key: string]: string } { return { commonHeaders: 'commonHeaders', xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token', }; } static types(): { [key: string]: any } { return { commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, xAcsDingtalkAccessToken: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class UserProfileRequest extends $tea.Model { uids?: number[]; static names(): { [key: string]: string } { return { uids: 'uids', }; } static types(): { [key: string]: any } { return { uids: { 'type': 'array', 'itemType': 'number' }, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class UserProfileShrinkRequest extends $tea.Model { uidsShrink?: string; static names(): { [key: string]: string } { return { uidsShrink: 'uids', }; } static types(): { [key: string]: any } { return { uidsShrink: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class UserProfileResponseBody extends $tea.Model { result?: UserProfileResponseBodyResult[]; static names(): { [key: string]: string } { return { result: 'result', }; } static types(): { [key: string]: any } { return { result: { 'type': 'array', 'itemType': UserProfileResponseBodyResult }, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class UserProfileResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: UserProfileResponseBody; static names(): { [key: string]: string } { return { headers: 'headers', statusCode: 'statusCode', body: 'body', }; } static types(): { [key: string]: any } { return { headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, statusCode: 'number', body: UserProfileResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class AddContactHideBySceneSettingRequestNodeListSceneConfig extends $tea.Model { active?: boolean; deptObjectIncludeEmp?: boolean; static names(): { [key: string]: string } { return { active: 'active', deptObjectIncludeEmp: 'deptObjectIncludeEmp', }; } static types(): { [key: string]: any } { return { active: 'boolean', deptObjectIncludeEmp: 'boolean', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class AddContactHideBySceneSettingRequestProfileSceneConfig extends $tea.Model { active?: boolean; static names(): { [key: string]: string } { return { active: 'active', }; } static types(): { [key: string]: any } { return { active: 'boolean', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class AddContactHideBySceneSettingRequestSearchSceneConfig extends $tea.Model { active?: boolean; deptObjectIncludeEmp?: boolean; static names(): { [key: string]: string } { return { active: 'active', deptObjectIncludeEmp: 'deptObjectIncludeEmp', }; } static types(): { [key: string]: any } { return { active: 'boolean', deptObjectIncludeEmp: 'boolean', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class AddEmpAttributeHideBySceneSettingRequestChatSubtitleConfig extends $tea.Model { active?: boolean; static names(): { [key: string]: string } { return { active: 'active', }; } static types(): { [key: string]: any } { return { active: 'boolean', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class AddEmpAttributeHideBySceneSettingRequestProfileSceneConfig extends $tea.Model { active?: boolean; static names(): { [key: string]: string } { return { active: 'active', }; } static types(): { [key: string]: any } { return { active: 'boolean', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class AddEmpAttributeHideBySceneSettingRequestSearchSceneConfig extends $tea.Model { active?: boolean; static names(): { [key: string]: string } { return { active: 'active', }; } static types(): { [key: string]: any } { return { active: 'boolean', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class BatchApproveUnionApplyRequestBody extends $tea.Model { /** * @example * ding1234 */ branchCorpId?: string; /** * @example * 123456 */ linkDeptId?: number; /** * @example * 测试 */ unionRootName?: string; static names(): { [key: string]: string } { return { branchCorpId: 'branchCorpId', linkDeptId: 'linkDeptId', unionRootName: 'unionRootName', }; } static types(): { [key: string]: any } { return { branchCorpId: 'string', linkDeptId: 'number', unionRootName: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class BatchUpdateExternalTitleRequestUpdateTitleModelList extends $tea.Model { title?: string; userId?: string; static names(): { [key: string]: string } { return { title: 'title', userId: 'userId', }; } static types(): { [key: string]: any } { return { title: 'string', userId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class BatchUpdateExternalTitleResponseBodyResultFailedList extends $tea.Model { title?: string; userId?: string; static names(): { [key: string]: string } { return { title: 'title', userId: 'userId', }; } static types(): { [key: string]: any } { return { title: 'string', userId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class BatchUpdateExternalTitleResponseBodyResultModifyList extends $tea.Model { title?: string; userId?: string; static names(): { [key: string]: string } { return { title: 'title', userId: 'userId', }; } static types(): { [key: string]: any } { return { title: 'string', userId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class BatchUpdateExternalTitleResponseBodyResult extends $tea.Model { failedList?: BatchUpdateExternalTitleResponseBodyResultFailedList[]; modifyList?: BatchUpdateExternalTitleResponseBodyResultModifyList[]; modifyUser?: string; static names(): { [key: string]: string } { return { failedList: 'failedList', modifyList: 'modifyList', modifyUser: 'modifyUser', }; } static types(): { [key: string]: any } { return { failedList: { 'type': 'array', 'itemType': BatchUpdateExternalTitleResponseBodyResultFailedList }, modifyList: { 'type': 'array', 'itemType': BatchUpdateExternalTitleResponseBodyResultModifyList }, modifyUser: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class CreateManagementGroupRequestMembers extends $tea.Model { /** * @remarks * This parameter is required. * * @example * WB001 */ memberId?: string; /** * @remarks * This parameter is required. * * @example * user */ memberType?: string; static names(): { [key: string]: string } { return { memberId: 'memberId', memberType: 'memberType', }; } static types(): { [key: string]: any } { return { memberId: 'string', memberType: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class CreateManagementGroupRequestScope extends $tea.Model { deptIds?: number[]; /** * @remarks * This parameter is required. * * @example * 1:全公司 2:所在部门 3:指定部门 */ scopeType?: number; static names(): { [key: string]: string } { return { deptIds: 'deptIds', scopeType: 'scopeType', }; } static types(): { [key: string]: any } { return { deptIds: { 'type': 'array', 'itemType': 'number' }, scopeType: 'number', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class CreateSecondaryManagementGroupRequestMembers extends $tea.Model { /** * @remarks * This parameter is required. * * @example * WB001 */ memberId?: string; /** * @remarks * This parameter is required. * * @example * user */ memberType?: string; static names(): { [key: string]: string } { return { memberId: 'memberId', memberType: 'memberType', }; } static types(): { [key: string]: any } { return { memberId: 'string', memberType: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class CreateSecondaryManagementGroupRequestScope extends $tea.Model { deptIds?: number[]; /** * @remarks * This parameter is required. * * @example * 1:全公司 2:所在部门 3:指定部门 */ scopeType?: number; static names(): { [key: string]: string } { return { deptIds: 'deptIds', scopeType: 'scopeType', }; } static types(): { [key: string]: any } { return { deptIds: { 'type': 'array', 'itemType': 'number' }, scopeType: 'number', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetAccountMappingResponseBodyResult extends $tea.Model { /** * @remarks * This parameter is required. * * @example * BizName1 */ domain?: string; extension?: { [key: string]: string }; /** * @example * o_123 */ outId?: string; /** * @example * t_123,如果不区分,填写固定值 */ outTenantId?: string; /** * @remarks * This parameter is required. * * @example * id_123 */ userId?: string; static names(): { [key: string]: string } { return { domain: 'domain', extension: 'extension', outId: 'outId', outTenantId: 'outTenantId', userId: 'userId', }; } static types(): { [key: string]: any } { return { domain: 'string', extension: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' }, outId: 'string', outTenantId: 'string', userId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetBranchAuthDataResponseBodyResult extends $tea.Model { /** * @example * teacherCnt */ fieldCode?: string; /** * @example * 老师数量 */ fieldName?: string; /** * @example * 120 */ fieldValue?: string; static names(): { [key: string]: string } { return { fieldCode: 'fieldCode', fieldName: 'fieldName', fieldValue: 'fieldValue', }; } static types(): { [key: string]: any } { return { fieldCode: 'string', fieldName: 'string', fieldValue: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetCardInfoResponseBodyExtensionCardContactInfoAddressArea extends $tea.Model { region?: string; regionFullName?: string; static names(): { [key: string]: string } { return { region: 'region', regionFullName: 'regionFullName', }; } static types(): { [key: string]: any } { return { region: 'string', regionFullName: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetCardInfoResponseBodyExtensionCardContactInfoAddress extends $tea.Model { area?: GetCardInfoResponseBodyExtensionCardContactInfoAddressArea; detail?: string; static names(): { [key: string]: string } { return { area: 'area', detail: 'detail', }; } static types(): { [key: string]: any } { return { area: GetCardInfoResponseBodyExtensionCardContactInfoAddressArea, detail: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetCardInfoResponseBodyExtensionCardContactInfoEmail extends $tea.Model { label?: string; value?: string; static names(): { [key: string]: string } { return { label: 'label', value: 'value', }; } static types(): { [key: string]: any } { return { label: 'string', value: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetCardInfoResponseBodyExtensionCardContactInfoLink extends $tea.Model { label?: string; value?: string; static names(): { [key: string]: string } { return { label: 'label', value: 'value', }; } static types(): { [key: string]: any } { return { label: 'string', value: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetCardInfoResponseBodyExtensionCardContactInfoTelephone extends $tea.Model { label?: string; value?: string; static names(): { [key: string]: string } { return { label: 'label', value: 'value', }; } static types(): { [key: string]: any } { return { label: 'string', value: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetCardInfoResponseBodyExtensionCardContactInfoWorkPhone extends $tea.Model { label?: string; value?: string; static names(): { [key: string]: string } { return { label: 'label', value: 'value', }; } static types(): { [key: string]: any } { return { label: 'string', value: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetCardInfoResponseBodyExtensionCardContactInfo extends $tea.Model { address?: GetCardInfoResponseBodyExtensionCardContactInfoAddress[]; email?: GetCardInfoResponseBodyExtensionCardContactInfoEmail[]; link?: GetCardInfoResponseBodyExtensionCardContactInfoLink[]; telephone?: GetCardInfoResponseBodyExtensionCardContactInfoTelephone[]; workPhone?: GetCardInfoResponseBodyExtensionCardContactInfoWorkPhone[]; static names(): { [key: string]: string } { return { address: 'address', email: 'email', link: 'link', telephone: 'telephone', workPhone: 'workPhone', }; } static types(): { [key: string]: any } { return { address: { 'type': 'array', 'itemType': GetCardInfoResponseBodyExtensionCardContactInfoAddress }, email: { 'type': 'array', 'itemType': GetCardInfoResponseBodyExtensionCardContactInfoEmail }, link: { 'type': 'array', 'itemType': GetCardInfoResponseBodyExtensionCardContactInfoLink }, telephone: { 'type': 'array', 'itemType': GetCardInfoResponseBodyExtensionCardContactInfoTelephone }, workPhone: { 'type': 'array', 'itemType': GetCardInfoResponseBodyExtensionCardContactInfoWorkPhone }, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetCardInfoResponseBodyExtension extends $tea.Model { cardContactInfo?: GetCardInfoResponseBodyExtensionCardContactInfo; corpId?: string; department?: string; orgAuthed?: boolean; orgLogo?: string; originCardUrl?: string; shareContent?: string; thumbnailUrl?: string; videoFileName?: string; videoTitle?: string; videoUrl?: string; static names(): { [key: string]: string } { return { cardContactInfo: 'cardContactInfo', corpId: 'corpId', department: 'department', orgAuthed: 'orgAuthed', orgLogo: 'orgLogo', originCardUrl: 'originCardUrl', shareContent: 'shareContent', thumbnailUrl: 'thumbnailUrl', videoFileName: 'videoFileName', videoTitle: 'videoTitle', videoUrl: 'videoUrl', }; } static types(): { [key: string]: any } { return { cardContactInfo: GetCardInfoResponseBodyExtensionCardContactInfo, corpId: 'string', department: 'string', orgAuthed: 'boolean', orgLogo: 'string', originCardUrl: 'string', shareContent: 'string', thumbnailUrl: 'string', videoFileName: 'string', videoTitle: 'string', videoUrl: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetContactHideBySceneSettingResponseBodyNodeListSceneConfig extends $tea.Model { active?: boolean; deptObjectIncludeEmp?: boolean; static names(): { [key: string]: string } { return { active: 'active', deptObjectIncludeEmp: 'deptObjectIncludeEmp', }; } static types(): { [key: string]: any } { return { active: 'boolean', deptObjectIncludeEmp: 'boolean', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetContactHideBySceneSettingResponseBodyProfileSceneConfig extends $tea.Model { active?: boolean; static names(): { [key: string]: string } { return { active: 'active', }; } static types(): { [key: string]: any } { return { active: 'boolean', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetContactHideBySceneSettingResponseBodySearchSceneConfig extends $tea.Model { active?: boolean; deptObjectIncludeEmp?: boolean; static names(): { [key: string]: string } { return { active: 'active', deptObjectIncludeEmp: 'deptObjectIncludeEmp', }; } static types(): { [key: string]: any } { return { active: 'boolean', deptObjectIncludeEmp: 'boolean', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetEmpAttributeHideBySceneSettingResponseBodyChatSubtitleConfig extends $tea.Model { active?: boolean; static names(): { [key: string]: string } { return { active: 'active', }; } static types(): { [key: string]: any } { return { active: 'boolean', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetEmpAttributeHideBySceneSettingResponseBodyProfileSceneConfig extends $tea.Model { active?: boolean; static names(): { [key: string]: string } { return { active: 'active', }; } static types(): { [key: string]: any } { return { active: 'boolean', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetEmpAttributeHideBySceneSettingResponseBodySearchSceneConfig extends $tea.Model { active?: boolean; static names(): { [key: string]: string } { return { active: 'active', }; } static types(): { [key: string]: any } { return { active: 'boolean', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetUserCardHolderListResponseBodyList extends $tea.Model { /** * @remarks * This parameter is required. */ avatarUrl?: string; cardAcceptStatus?: number; cardAcceptTimeLong?: number; /** * @remarks * This parameter is required. */ cardId?: string; /** * @example * 0 */ cardSource?: number; /** * @remarks * This parameter is required. */ extension?: { [key: string]: any }; /** * @remarks * This parameter is required. */ industryName?: string; /** * @remarks * This parameter is required. */ introduce?: string; /** * @remarks * This parameter is required. */ name?: string; /** * @remarks * This parameter is required. */ orgName?: string; /** * @remarks * This parameter is required. */ templateId?: string; /** * @remarks * This parameter is required. */ title?: string; static names(): { [key: string]: string } { return { avatarUrl: 'avatarUrl', cardAcceptStatus: 'cardAcceptStatus', cardAcceptTimeLong: 'cardAcceptTimeLong', cardId: 'cardId', cardSource: 'cardSource', extension: 'extension', industryName: 'industryName', introduce: 'introduce', name: 'name', orgName: 'orgName', templateId: 'templateId', title: 'title', }; } static types(): { [key: string]: any } { return { avatarUrl: 'string', cardAcceptStatus: 'number', cardAcceptTimeLong: 'number', cardId: 'string', cardSource: 'number', extension: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' }, industryName: 'string', introduce: 'string', name: 'string', orgName: 'string', templateId: 'string', title: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class ListBasicRoleInPageResponseBodyListOpenActionOpenConditionOpenContactScope extends $tea.Model { deptIds?: number[]; includeMemberDepts?: boolean; includeSelfManageDepts?: boolean; userIds?: string[]; static names(): { [key: string]: string } { return { deptIds: 'deptIds', includeMemberDepts: 'includeMemberDepts', includeSelfManageDepts: 'includeSelfManageDepts', userIds: 'userIds', }; } static types(): { [key: string]: any } { return { deptIds: { 'type': 'array', 'itemType': 'number' }, includeMemberDepts: 'boolean', includeSelfManageDepts: 'boolean', userIds: { 'type': 'array', 'itemType': 'string' }, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class ListBasicRoleInPageResponseBodyListOpenActionOpenCondition extends $tea.Model { openContactScope?: ListBasicRoleInPageResponseBodyListOpenActionOpenConditionOpenContactScope; static names(): { [key: string]: string } { return { openContactScope: 'openContactScope', }; } static types(): { [key: string]: any } { return { openContactScope: ListBasicRoleInPageResponseBodyListOpenActionOpenConditionOpenContactScope, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class ListBasicRoleInPageResponseBodyListOpenAction extends $tea.Model { actionIds?: string[]; openCondition?: ListBasicRoleInPageResponseBodyListOpenActionOpenCondition; static names(): { [key: string]: string } { return { actionIds: 'actionIds', openCondition: 'openCondition', }; } static types(): { [key: string]: any } { return { actionIds: { 'type': 'array', 'itemType': 'string' }, openCondition: ListBasicRoleInPageResponseBodyListOpenActionOpenCondition, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class ListBasicRoleInPageResponseBodyListOpenMembers extends $tea.Model { belongCorpId?: string; memberId?: string; memberType?: string; operateUserId?: string; static names(): { [key: string]: string } { return { belongCorpId: 'belongCorpId', memberId: 'memberId', memberType: 'memberType', operateUserId: 'operateUserId', }; } static types(): { [key: string]: any } { return { belongCorpId: 'string', memberId: 'string', memberType: 'string', operateUserId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class ListBasicRoleInPageResponseBodyList extends $tea.Model { openAction?: ListBasicRoleInPageResponseBodyListOpenAction; openMembers?: ListBasicRoleInPageResponseBodyListOpenMembers[]; openResources?: string[]; openRoleId?: string; openRoleName?: string; static names(): { [key: string]: string } { return { openAction: 'openAction', openMembers: 'openMembers', openResources: 'openResources', openRoleId: 'openRoleId', openRoleName: 'openRoleName', }; } static types(): { [key: string]: any } { return { openAction: ListBasicRoleInPageResponseBodyListOpenAction, openMembers: { 'type': 'array', 'itemType': ListBasicRoleInPageResponseBodyListOpenMembers }, openResources: { 'type': 'array', 'itemType': 'string' }, openRoleId: 'string', openRoleName: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class ListContactHideSettingsResponseBodyList extends $tea.Model { /** * @example * true */ active?: boolean; /** * @example * 影藏对deptA但是user1可见。 */ description?: string; excludeDeptIds?: number[]; excludeStaffIds?: string[]; excludeTagIds?: number[]; id?: number; /** * @example * 测试规则 */ name?: string; objectDeptIds?: number[]; objectStaffIds?: string[]; objectTagIds?: number[]; static names(): { [key: string]: string } { return { active: 'active', description: 'description', excludeDeptIds: 'excludeDeptIds', excludeStaffIds: 'excludeStaffIds', excludeTagIds: 'excludeTagIds', id: 'id', name: 'name', objectDeptIds: 'objectDeptIds', objectStaffIds: 'objectStaffIds', objectTagIds: 'objectTagIds', }; } static types(): { [key: string]: any } { return { active: 'boolean', description: 'string', excludeDeptIds: { 'type': 'array', 'itemType': 'number' }, excludeStaffIds: { 'type': 'array', 'itemType': 'string' }, excludeTagIds: { 'type': 'array', 'itemType': 'number' }, id: 'number', name: 'string', objectDeptIds: { 'type': 'array', 'itemType': 'number' }, objectStaffIds: { 'type': 'array', 'itemType': 'string' }, objectTagIds: { 'type': 'array', 'itemType': 'number' }, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class ListContactRestrictSettingResponseBodyList extends $tea.Model { /** * @example * true */ active?: boolean; /** * @example * description */ description?: string; excludeDeptIds?: number[]; excludeTagIds?: number[]; excludeUserIds?: string[]; /** * @example * 1001 */ id?: number; /** * @example * contact restrict name */ name?: string; restrictInSearch?: boolean; restrictInUserProfile?: boolean; subjectDeptIds?: number[]; subjectTagIds?: number[]; subjectUserIds?: string[]; type?: string; static names(): { [key: string]: string } { return { active: 'active', description: 'description', excludeDeptIds: 'excludeDeptIds', excludeTagIds: 'excludeTagIds', excludeUserIds: 'excludeUserIds', id: 'id', name: 'name', restrictInSearch: 'restrictInSearch', restrictInUserProfile: 'restrictInUserProfile', subjectDeptIds: 'subjectDeptIds', subjectTagIds: 'subjectTagIds', subjectUserIds: 'subjectUserIds', type: 'type', }; } static types(): { [key: string]: any } { return { active: 'boolean', description: 'string', excludeDeptIds: { 'type': 'array', 'itemType': 'number' }, excludeTagIds: { 'type': 'array', 'itemType': 'number' }, excludeUserIds: { 'type': 'array', 'itemType': 'string' }, id: 'number', name: 'string', restrictInSearch: 'boolean', restrictInUserProfile: 'boolean', subjectDeptIds: { 'type': 'array', 'itemType': 'number' }, subjectTagIds: { 'type': 'array', 'itemType': 'number' }, subjectUserIds: { 'type': 'array', 'itemType': 'string' }, type: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class ListEmpAttributeVisibilityResponseBodyList extends $tea.Model { active?: boolean; description?: string; excludeDeptIds?: number[]; excludeStaffIds?: string[]; excludeTagIds?: number[]; gmtCreate?: string; gmtModified?: string; hideFields?: string[]; /** * @example * 10001 */ id?: number; name?: string; objectDeptIds?: number[]; objectStaffIds?: string[]; objectTagIds?: number[]; static names(): { [key: string]: string } { return { active: 'active', description: 'description', excludeDeptIds: 'excludeDeptIds', excludeStaffIds: 'excludeStaffIds', excludeTagIds: 'excludeTagIds', gmtCreate: 'gmtCreate', gmtModified: 'gmtModified', hideFields: 'hideFields', id: 'id', name: 'name', objectDeptIds: 'objectDeptIds', objectStaffIds: 'objectStaffIds', objectTagIds: 'objectTagIds', }; } static types(): { [key: string]: any } { return { active: 'boolean', description: 'string', excludeDeptIds: { 'type': 'array', 'itemType': 'number' }, excludeStaffIds: { 'type': 'array', 'itemType': 'string' }, excludeTagIds: { 'type': 'array', 'itemType': 'number' }, gmtCreate: 'string', gmtModified: 'string', hideFields: { 'type': 'array', 'itemType': 'string' }, id: 'number', name: 'string', objectDeptIds: { 'type': 'array', 'itemType': 'number' }, objectStaffIds: { 'type': 'array', 'itemType': 'string' }, objectTagIds: { 'type': 'array', 'itemType': 'number' }, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class ListEmpLeaveRecordsResponseBodyRecords extends $tea.Model { /** * @remarks * This parameter is required. * * @example * oapi */ leaveReason?: string; /** * @remarks * This parameter is required. * * @example * 2021-01-06T11:47:37Z */ leaveTime?: string; /** * @remarks * This parameter is required. * * @example * 185xxxx7676 */ mobile?: string; /** * @remarks * This parameter is required. * * @example * 张三 */ name?: string; /** * @remarks * This parameter is required. * * @example * 86 */ stateCode?: string; /** * @remarks * This parameter is required. * * @example * 10000 */ userId?: string; static names(): { [key: string]: string } { return { leaveReason: 'leaveReason', leaveTime: 'leaveTime', mobile: 'mobile', name: 'name', stateCode: 'stateCode', userId: 'userId', }; } static types(): { [key: string]: any } { return { leaveReason: 'string', leaveTime: 'string', mobile: 'string', name: 'string', stateCode: 'string', userId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class ListManagementGroupsResponseBodyGroupsMembers extends $tea.Model { /** * @remarks * This parameter is required. * * @example * WB001 */ memberId?: string; /** * @remarks * This parameter is required. * * @example * user */ memberType?: string; static names(): { [key: string]: string } { return { memberId: 'memberId', memberType: 'memberType', }; } static types(): { [key: string]: any } { return { memberId: 'string', memberType: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class ListManagementGroupsResponseBodyGroupsScope extends $tea.Model { deptIds?: number[]; /** * @remarks * This parameter is required. * * @example * 1:全公司 2:所在部门 3:指定部门 */ scopeType?: number; static names(): { [key: string]: string } { return { deptIds: 'deptIds', scopeType: 'scopeType', }; } static types(): { [key: string]: any } { return { deptIds: { 'type': 'array', 'itemType': 'number' }, scopeType: 'number', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class ListManagementGroupsResponseBodyGroups extends $tea.Model { /** * @remarks * This parameter is required. * * @example * rolexxx */ groupId?: string; /** * @example * 财务管理 */ groupName?: string; members?: ListManagementGroupsResponseBodyGroupsMembers[]; resourceIds?: string[]; /** * @remarks * This parameter is required. */ scope?: ListManagementGroupsResponseBodyGroupsScope; static names(): { [key: string]: string } { return { groupId: 'groupId', groupName: 'groupName', members: 'members', resourceIds: 'resourceIds', scope: 'scope', }; } static types(): { [key: string]: any } { return { groupId: 'string', groupName: 'string', members: { 'type': 'array', 'itemType': ListManagementGroupsResponseBodyGroupsMembers }, resourceIds: { 'type': 'array', 'itemType': 'string' }, scope: ListManagementGroupsResponseBodyGroupsScope, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class ListOwnedOrgByStaffIdResponseBodyOrgList extends $tea.Model { /** * @remarks * This parameter is required. * * @example * corpIdxxx */ corpId?: string; /** * @remarks * This parameter is required. * * @example * corpNamexxx */ corpName?: string; static names(): { [key: string]: string } { return { corpId: 'corpId', corpName: 'corpName', }; } static types(): { [key: string]: any } { return { corpId: 'string', corpName: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class ListSeniorSettingsResponseBodySeniorWhiteList extends $tea.Model { /** * @example * 1234 */ id?: string; /** * @example * 测试角色 */ name?: string; /** * @example * 1 */ type?: number; static names(): { [key: string]: string } { return { id: 'id', name: 'name', type: 'type', }; } static types(): { [key: string]: any } { return { id: 'string', name: 'string', type: 'number', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class OrgInfoResponseBodyResult extends $tea.Model { id?: number; name?: string; static names(): { [key: string]: string } { return { id: 'id', name: 'name', }; } static types(): { [key: string]: any } { return { id: 'number', name: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class QueryCorpStatisticDataResponseBodyResult extends $tea.Model { /** * @example * 2 */ cardBeReceivedTotalCnt?: number; /** * @example * 4 */ cardReceiveTotalCnt?: number; /** * @example * 1 */ cardTotalBeVisitedCnt?: number; /** * @example * 20230101 */ dataDate?: string; /** * @example * 3 */ dingTotalShareCnt?: number; /** * @example * 1 */ totalSendCnt?: number; /** * @example * 2 */ wechatTotalShareCnt?: number; static names(): { [key: string]: string } { return { cardBeReceivedTotalCnt: 'cardBeReceivedTotalCnt', cardReceiveTotalCnt: 'cardReceiveTotalCnt', cardTotalBeVisitedCnt: 'cardTotalBeVisitedCnt', dataDate: 'dataDate', dingTotalShareCnt: 'dingTotalShareCnt', totalSendCnt: 'totalSendCnt', wechatTotalShareCnt: 'wechatTotalShareCnt', }; } static types(): { [key: string]: any } { return { cardBeReceivedTotalCnt: 'number', cardReceiveTotalCnt: 'number', cardTotalBeVisitedCnt: 'number', dataDate: 'string', dingTotalShareCnt: 'number', totalSendCnt: 'number', wechatTotalShareCnt: 'number', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class QueryCorpUserStatisticResponseBodyList extends $tea.Model { /** * @example * wwww.xxxxx.com/xxx.jpg */ avatarUrl?: string; /** * @example * 张三 */ name?: string; /** * @example * 5 */ receiveCnt?: number; /** * @example * 3 */ sendCnt?: number; /** * @example * RCsp7PJmmTUr7w0hbs9aKAiEiE */ unionId?: string; static names(): { [key: string]: string } { return { avatarUrl: 'avatarUrl', name: 'name', receiveCnt: 'receiveCnt', sendCnt: 'sendCnt', unionId: 'unionId', }; } static types(): { [key: string]: any } { return { avatarUrl: 'string', name: 'string', receiveCnt: 'number', sendCnt: 'number', unionId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class QueryResourceManagementMembersResponseBodyMembers extends $tea.Model { /** * @example * WB001 */ memberId?: string; /** * @example * user */ memberType?: string; static names(): { [key: string]: string } { return { memberId: 'memberId', memberType: 'memberType', }; } static types(): { [key: string]: any } { return { memberId: 'string', memberType: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class SubmitHandoverResourceRequestTasks extends $tea.Model { /** * @remarks * This parameter is required. * * @example * handover */ actionType?: string; /** * @example * userIdYYY */ receiverStaffId?: string; /** * @remarks * This parameter is required. */ resourceTypeId?: number; static names(): { [key: string]: string } { return { actionType: 'actionType', receiverStaffId: 'receiverStaffId', resourceTypeId: 'resourceTypeId', }; } static types(): { [key: string]: any } { return { actionType: 'string', receiverStaffId: 'string', resourceTypeId: 'number', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class TalentAddCustomTagResponseBodyResult extends $tea.Model { tagCode?: string; tagName?: string; static names(): { [key: string]: string } { return { tagCode: 'tagCode', tagName: 'tagName', }; } static types(): { [key: string]: any } { return { tagCode: 'string', tagName: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class TalentAddObjectiveTagResponseBodyResult extends $tea.Model { tagCode?: string; tagName?: string; static names(): { [key: string]: string } { return { tagCode: 'tagCode', tagName: 'tagName', }; } static types(): { [key: string]: any } { return { tagCode: 'string', tagName: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class TalentAddPersonalityTagResponseBodyResult extends $tea.Model { categoryCode?: string; categoryName?: string; tagCode?: string; tagName?: string; static names(): { [key: string]: string } { return { categoryCode: 'categoryCode', categoryName: 'categoryName', tagCode: 'tagCode', tagName: 'tagName', }; } static types(): { [key: string]: any } { return { categoryCode: 'string', categoryName: 'string', tagCode: 'string', tagName: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class TalentDeleteCustomTagResponseBodyResult extends $tea.Model { success?: boolean; static names(): { [key: string]: string } { return { success: 'success', }; } static types(): { [key: string]: any } { return { success: 'boolean', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class TalentDeleteObjectiveTagResponseBodyResult extends $tea.Model { success?: boolean; static names(): { [key: string]: string } { return { success: 'success', }; } static types(): { [key: string]: any } { return { success: 'boolean', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class TalentDeletePersonalityTagResponseBodyResult extends $tea.Model { success?: boolean; static names(): { [key: string]: string } { return { success: 'success', }; } static types(): { [key: string]: any } { return { success: 'boolean', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class TalentLikeTagResponseBodyResult extends $tea.Model { success?: boolean; static names(): { [key: string]: string } { return { success: 'success', }; } static types(): { [key: string]: any } { return { success: 'boolean', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class TalentQueryCustomTagResponseBodyResultTags extends $tea.Model { sortOrder?: number; tagCode?: string; tagName?: string; static names(): { [key: string]: string } { return { sortOrder: 'sortOrder', tagCode: 'tagCode', tagName: 'tagName', }; } static types(): { [key: string]: any } { return { sortOrder: 'number', tagCode: 'string', tagName: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class TalentQueryCustomTagResponseBodyResult extends $tea.Model { tags?: TalentQueryCustomTagResponseBodyResultTags[]; static names(): { [key: string]: string } { return { tags: 'tags', }; } static types(): { [key: string]: any } { return { tags: { 'type': 'array', 'itemType': TalentQueryCustomTagResponseBodyResultTags }, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class TalentQueryObjectiveTagResponseBodyResultTags extends $tea.Model { sortOrder?: number; tagCode?: string; tagName?: string; static names(): { [key: string]: string } { return { sortOrder: 'sortOrder', tagCode: 'tagCode', tagName: 'tagName', }; } static types(): { [key: string]: any } { return { sortOrder: 'number', tagCode: 'string', tagName: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class TalentQueryObjectiveTagResponseBodyResult extends $tea.Model { tags?: TalentQueryObjectiveTagResponseBodyResultTags[]; static names(): { [key: string]: string } { return { tags: 'tags', }; } static types(): { [key: string]: any } { return { tags: { 'type': 'array', 'itemType': TalentQueryObjectiveTagResponseBodyResultTags }, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class TalentQueryPersonalityTagResponseBodyResultTags extends $tea.Model { categoryCode?: string; categoryName?: string; categorySortOrder?: number; sortOrder?: number; tagCode?: string; tagName?: string; static names(): { [key: string]: string } { return { categoryCode: 'categoryCode', categoryName: 'categoryName', categorySortOrder: 'categorySortOrder', sortOrder: 'sortOrder', tagCode: 'tagCode', tagName: 'tagName', }; } static types(): { [key: string]: any } { return { categoryCode: 'string', categoryName: 'string', categorySortOrder: 'number', sortOrder: 'number', tagCode: 'string', tagName: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class TalentQueryPersonalityTagResponseBodyResult extends $tea.Model { tags?: TalentQueryPersonalityTagResponseBodyResultTags[]; static names(): { [key: string]: string } { return { tags: 'tags', }; } static types(): { [key: string]: any } { return { tags: { 'type': 'array', 'itemType': TalentQueryPersonalityTagResponseBodyResultTags }, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class TalentQueryTagLikeDetailListResponseBodyResultLikeDetails extends $tea.Model { likeTimestamp?: number; operatorUserId?: string; static names(): { [key: string]: string } { return { likeTimestamp: 'likeTimestamp', operatorUserId: 'operatorUserId', }; } static types(): { [key: string]: any } { return { likeTimestamp: 'number', operatorUserId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class TalentQueryTagLikeDetailListResponseBodyResult extends $tea.Model { hasMore?: boolean; likeDetails?: TalentQueryTagLikeDetailListResponseBodyResultLikeDetails[]; nextCursor?: number; static names(): { [key: string]: string } { return { hasMore: 'hasMore', likeDetails: 'likeDetails', nextCursor: 'nextCursor', }; } static types(): { [key: string]: any } { return { hasMore: 'boolean', likeDetails: { 'type': 'array', 'itemType': TalentQueryTagLikeDetailListResponseBodyResultLikeDetails }, nextCursor: 'number', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class TalentQueryTagLikeListResponseBodyResultTagLikes extends $tea.Model { hasLiked?: boolean; likeCount?: number; tagCode?: string; tagName?: string; static names(): { [key: string]: string } { return { hasLiked: 'hasLiked', likeCount: 'likeCount', tagCode: 'tagCode', tagName: 'tagName', }; } static types(): { [key: string]: any } { return { hasLiked: 'boolean', likeCount: 'number', tagCode: 'string', tagName: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class TalentQueryTagLikeListResponseBodyResult extends $tea.Model { tagLikes?: TalentQueryTagLikeListResponseBodyResultTagLikes[]; static names(): { [key: string]: string } { return { tagLikes: 'tagLikes', }; } static types(): { [key: string]: any } { return { tagLikes: { 'type': 'array', 'itemType': TalentQueryTagLikeListResponseBodyResultTagLikes }, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class UpdateBranchAttributesInCooperateRequestBody extends $tea.Model { /** * @remarks * This parameter is required. * * @example * ding1234 */ branchCorpId?: string; /** * @remarks * This parameter is required. * * @example * 23456 */ linkDeptId?: number; /** * @remarks * This parameter is required. * * @example * ding1234 */ unionRootName?: string; static names(): { [key: string]: string } { return { branchCorpId: 'branchCorpId', linkDeptId: 'linkDeptId', unionRootName: 'unionRootName', }; } static types(): { [key: string]: any } { return { branchCorpId: 'string', linkDeptId: 'number', unionRootName: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class UpdateBranchVisibleSettingInCooperateRequestBody extends $tea.Model { /** * @remarks * This parameter is required. * * @example * ding1234 */ branchCorpId?: string; /** * @remarks * This parameter is required. * * @example * true */ open?: boolean; /** * @remarks * This parameter is required. * * @example * 0 */ type?: number; visibleBranchCorpIds?: string[]; visibleDeptIds?: number[]; static names(): { [key: string]: string } { return { branchCorpId: 'branchCorpId', open: 'open', type: 'type', visibleBranchCorpIds: 'visibleBranchCorpIds', visibleDeptIds: 'visibleDeptIds', }; } static types(): { [key: string]: any } { return { branchCorpId: 'string', open: 'boolean', type: 'number', visibleBranchCorpIds: { 'type': 'array', 'itemType': 'string' }, visibleDeptIds: { 'type': 'array', 'itemType': 'number' }, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class UpdateContactHideBySceneSettingRequestNodeListSceneConfig extends $tea.Model { active?: boolean; deptObjectIncludeEmp?: boolean; static names(): { [key: string]: string } { return { active: 'active', deptObjectIncludeEmp: 'deptObjectIncludeEmp', }; } static types(): { [key: string]: any } { return { active: 'boolean', deptObjectIncludeEmp: 'boolean', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class UpdateContactHideBySceneSettingRequestProfileSceneConfig extends $tea.Model { active?: boolean; static names(): { [key: string]: string } { return { active: 'active', }; } static types(): { [key: string]: any } { return { active: 'boolean', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class UpdateContactHideBySceneSettingRequestSearchSceneConfig extends $tea.Model { active?: boolean; deptObjectIncludeEmp?: boolean; static names(): { [key: string]: string } { return { active: 'active', deptObjectIncludeEmp: 'deptObjectIncludeEmp', }; } static types(): { [key: string]: any } { return { active: 'boolean', deptObjectIncludeEmp: 'boolean', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class UpdateEmpAttributeHideBySceneSettingRequestChatSubtitleConfig extends $tea.Model { active?: boolean; static names(): { [key: string]: string } { return { active: 'active', }; } static types(): { [key: string]: any } { return { active: 'boolean', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class UpdateEmpAttributeHideBySceneSettingRequestProfileSceneConfig extends $tea.Model { active?: boolean; static names(): { [key: string]: string } { return { active: 'active', }; } static types(): { [key: string]: any } { return { active: 'boolean', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class UpdateEmpAttributeHideBySceneSettingRequestSearchSceneConfig extends $tea.Model { active?: boolean; static names(): { [key: string]: string } { return { active: 'active', }; } static types(): { [key: string]: any } { return { active: 'boolean', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class UpdateManagementGroupRequestMembers extends $tea.Model { /** * @remarks * This parameter is required. * * @example * WB001 */ memberId?: string; /** * @remarks * This parameter is required. * * @example * user */ memberType?: string; static names(): { [key: string]: string } { return { memberId: 'memberId', memberType: 'memberType', }; } static types(): { [key: string]: any } { return { memberId: 'string', memberType: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class UpdateManagementGroupRequestScope extends $tea.Model { deptIds?: number[]; /** * @remarks * This parameter is required. * * @example * 1:全公司 2:所在部门 3:指定部门 */ scopeType?: number; static names(): { [key: string]: string } { return { deptIds: 'deptIds', scopeType: 'scopeType', }; } static types(): { [key: string]: any } { return { deptIds: { 'type': 'array', 'itemType': 'number' }, scopeType: 'number', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class UserProfileResponseBodyResult extends $tea.Model { mobile?: string; nick?: string; orgIds?: string; stateCode?: string; static names(): { [key: string]: string } { return { mobile: 'mobile', nick: 'nick', orgIds: 'orgIds', stateCode: 'stateCode', }; } static types(): { [key: string]: any } { return { mobile: 'string', nick: 'string', orgIds: 'string', stateCode: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export default class Client extends OpenApi { constructor(config: $OpenApi.Config) { super(config); let gatewayClient = new GatewayClient(); this._spi = gatewayClient; this._endpointRule = ""; if (Util.empty(this._endpoint)) { this._endpoint = "api.dingtalk.com"; } } /** * 创建账号映射 * * @param request - AddAccountMappingRequest * @param headers - AddAccountMappingHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns AddAccountMappingResponse */ async addAccountMappingWithOptions(request: AddAccountMappingRequest, headers: AddAccountMappingHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let body : {[key: string ]: any} = { }; if (!Util.isUnset(request.domain)) { body["domain"] = request.domain; } if (!Util.isUnset(request.extension)) { body["extension"] = request.extension; } if (!Util.isUnset(request.outId)) { body["outId"] = request.outId; } if (!Util.isUnset(request.outTenantId)) { body["outTenantId"] = request.outTenantId; } if (!Util.isUnset(request.userId)) { body["userId"] = request.userId; } let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, body: OpenApiUtil.parseToMap(body), }); let params = new $OpenApi.Params({ action: "AddAccountMapping", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/accountMappings`, method: "POST", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new AddAccountMappingResponse({})); } /** * 创建账号映射 * * @param request - AddAccountMappingRequest * @returns AddAccountMappingResponse */ async addAccountMapping(request: AddAccountMappingRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new AddAccountMappingHeaders({ }); return await this.addAccountMappingWithOptions(request, headers, runtime); } /** * 添加通讯录组织架构分场景隐藏设置 * * @param request - AddContactHideBySceneSettingRequest * @param headers - AddContactHideBySceneSettingHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns AddContactHideBySceneSettingResponse */ async addContactHideBySceneSettingWithOptions(request: AddContactHideBySceneSettingRequest, headers: AddContactHideBySceneSettingHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let body : {[key: string ]: any} = { }; if (!Util.isUnset(request.description)) { body["description"] = request.description; } if (!Util.isUnset(request.excludeDeptIds)) { body["excludeDeptIds"] = request.excludeDeptIds; } if (!Util.isUnset(request.excludeTagIds)) { body["excludeTagIds"] = request.excludeTagIds; } if (!Util.isUnset(request.excludeUserIds)) { body["excludeUserIds"] = request.excludeUserIds; } if (!Util.isUnset(request.name)) { body["name"] = request.name; } if (!Util.isUnset(request.nodeListSceneConfig)) { body["nodeListSceneConfig"] = request.nodeListSceneConfig; } if (!Util.isUnset(request.objectDeptIds)) { body["objectDeptIds"] = request.objectDeptIds; } if (!Util.isUnset(request.objectTagIds)) { body["objectTagIds"] = request.objectTagIds; } if (!Util.isUnset(request.objectUserIds)) { body["objectUserIds"] = request.objectUserIds; } if (!Util.isUnset(request.profileSceneConfig)) { body["profileSceneConfig"] = request.profileSceneConfig; } if (!Util.isUnset(request.searchSceneConfig)) { body["searchSceneConfig"] = request.searchSceneConfig; } let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, body: OpenApiUtil.parseToMap(body), }); let params = new $OpenApi.Params({ action: "AddContactHideBySceneSetting", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/organizations/hides/settings`, method: "POST", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new AddContactHideBySceneSettingResponse({})); } /** * 添加通讯录组织架构分场景隐藏设置 * * @param request - AddContactHideBySceneSettingRequest * @returns AddContactHideBySceneSettingResponse */ async addContactHideBySceneSetting(request: AddContactHideBySceneSettingRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new AddContactHideBySceneSettingHeaders({ }); return await this.addContactHideBySceneSettingWithOptions(request, headers, runtime); } /** * 添加员工属性分场景隐藏设置 * * @param request - AddEmpAttributeHideBySceneSettingRequest * @param headers - AddEmpAttributeHideBySceneSettingHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns AddEmpAttributeHideBySceneSettingResponse */ async addEmpAttributeHideBySceneSettingWithOptions(request: AddEmpAttributeHideBySceneSettingRequest, headers: AddEmpAttributeHideBySceneSettingHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let body : {[key: string ]: any} = { }; if (!Util.isUnset(request.chatSubtitleConfig)) { body["chatSubtitleConfig"] = request.chatSubtitleConfig; } if (!Util.isUnset(request.description)) { body["description"] = request.description; } if (!Util.isUnset(request.excludeDeptIds)) { body["excludeDeptIds"] = request.excludeDeptIds; } if (!Util.isUnset(request.excludeTagIds)) { body["excludeTagIds"] = request.excludeTagIds; } if (!Util.isUnset(request.excludeUserIds)) { body["excludeUserIds"] = request.excludeUserIds; } if (!Util.isUnset(request.hideFields)) { body["hideFields"] = request.hideFields; } if (!Util.isUnset(request.name)) { body["name"] = request.name; } if (!Util.isUnset(request.objectDeptIds)) { body["objectDeptIds"] = request.objectDeptIds; } if (!Util.isUnset(request.objectTagIds)) { body["objectTagIds"] = request.objectTagIds; } if (!Util.isUnset(request.objectUserIds)) { body["objectUserIds"] = request.objectUserIds; } if (!Util.isUnset(request.profileSceneConfig)) { body["profileSceneConfig"] = request.profileSceneConfig; } if (!Util.isUnset(request.searchSceneConfig)) { body["searchSceneConfig"] = request.searchSceneConfig; } let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, body: OpenApiUtil.parseToMap(body), }); let params = new $OpenApi.Params({ action: "AddEmpAttributeHideBySceneSetting", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/empAttributes/hides/settings`, method: "POST", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new AddEmpAttributeHideBySceneSettingResponse({})); } /** * 添加员工属性分场景隐藏设置 * * @param request - AddEmpAttributeHideBySceneSettingRequest * @returns AddEmpAttributeHideBySceneSettingResponse */ async addEmpAttributeHideBySceneSetting(request: AddEmpAttributeHideBySceneSettingRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new AddEmpAttributeHideBySceneSettingHeaders({ }); return await this.addEmpAttributeHideBySceneSettingWithOptions(request, headers, runtime); } /** * 新增企业账号工作状态 * * @param request - AddOrgAccountOwnnessRequest * @param headers - AddOrgAccountOwnnessHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns AddOrgAccountOwnnessResponse */ async addOrgAccountOwnnessWithOptions(request: AddOrgAccountOwnnessRequest, headers: AddOrgAccountOwnnessHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let query : {[key: string ]: any} = { }; if (!Util.isUnset(request.userId)) { query["userId"] = request.userId; } let body : {[key: string ]: any} = { }; if (!Util.isUnset(request.endTime)) { body["endTime"] = request.endTime; } if (!Util.isUnset(request.ownenssType)) { body["ownenssType"] = request.ownenssType; } if (!Util.isUnset(request.ownnessId)) { body["ownnessId"] = request.ownnessId; } if (!Util.isUnset(request.startTime)) { body["startTime"] = request.startTime; } if (!Util.isUnset(request.text)) { body["text"] = request.text; } let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, query: OpenApiUtil.query(query), body: OpenApiUtil.parseToMap(body), }); let params = new $OpenApi.Params({ action: "AddOrgAccountOwnness", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/orgAccounts/owness`, method: "POST", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new AddOrgAccountOwnnessResponse({})); } /** * 新增企业账号工作状态 * * @param request - AddOrgAccountOwnnessRequest * @returns AddOrgAccountOwnnessResponse */ async addOrgAccountOwnness(request: AddOrgAccountOwnnessRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new AddOrgAccountOwnnessHeaders({ }); return await this.addOrgAccountOwnnessWithOptions(request, headers, runtime); } /** * 年检认证审核 * * @param request - AnnualCertificationAuditRequest * @param headers - AnnualCertificationAuditHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns AnnualCertificationAuditResponse */ async annualCertificationAuditWithOptions(request: AnnualCertificationAuditRequest, headers: AnnualCertificationAuditHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let body : {[key: string ]: any} = { }; if (!Util.isUnset(request.applicantMobile)) { body["applicantMobile"] = request.applicantMobile; } if (!Util.isUnset(request.applicantName)) { body["applicantName"] = request.applicantName; } if (!Util.isUnset(request.applicationLetter)) { body["applicationLetter"] = request.applicationLetter; } if (!Util.isUnset(request.authStatus)) { body["authStatus"] = request.authStatus; } if (!Util.isUnset(request.certificateType)) { body["certificateType"] = request.certificateType; } if (!Util.isUnset(request.corpName)) { body["corpName"] = request.corpName; } if (!Util.isUnset(request.depositaryBank)) { body["depositaryBank"] = request.depositaryBank; } if (!Util.isUnset(request.extension)) { body["extension"] = request.extension; } if (!Util.isUnset(request.legalPerson)) { body["legalPerson"] = request.legalPerson; } if (!Util.isUnset(request.licenseNumber)) { body["licenseNumber"] = request.licenseNumber; } if (!Util.isUnset(request.licenseUrl)) { body["licenseUrl"] = request.licenseUrl; } if (!Util.isUnset(request.orderId)) { body["orderId"] = request.orderId; } if (!Util.isUnset(request.publicAccount)) { body["publicAccount"] = request.publicAccount; } if (!Util.isUnset(request.reasonCode)) { body["reasonCode"] = request.reasonCode; } if (!Util.isUnset(request.reasonMsg)) { body["reasonMsg"] = request.reasonMsg; } if (!Util.isUnset(request.tag)) { body["tag"] = request.tag; } let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, body: OpenApiUtil.parseToMap(body), }); let params = new $OpenApi.Params({ action: "AnnualCertificationAudit", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/organizations/authorities/audit`, method: "POST", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new AnnualCertificationAuditResponse({})); } /** * 年检认证审核 * * @param request - AnnualCertificationAuditRequest * @returns AnnualCertificationAuditResponse */ async annualCertificationAudit(request: AnnualCertificationAuditRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new AnnualCertificationAuditHeaders({ }); return await this.annualCertificationAuditWithOptions(request, headers, runtime); } /** * 批量同意(合作空间/集团)的关联申请 * * @param request - BatchApproveUnionApplyRequest * @param headers - BatchApproveUnionApplyHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns BatchApproveUnionApplyResponse */ async batchApproveUnionApplyWithOptions(request: BatchApproveUnionApplyRequest, headers: BatchApproveUnionApplyHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, body: Util.toArray(request.body), }); let params = new $OpenApi.Params({ action: "BatchApproveUnionApply", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/cooperateCorps/unionApplications/approve`, method: "POST", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new BatchApproveUnionApplyResponse({})); } /** * 批量同意(合作空间/集团)的关联申请 * * @param request - BatchApproveUnionApplyRequest * @returns BatchApproveUnionApplyResponse */ async batchApproveUnionApply(request: BatchApproveUnionApplyRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new BatchApproveUnionApplyHeaders({ }); return await this.batchApproveUnionApplyWithOptions(request, headers, runtime); } /** * 批量修改企业员工对外职位信息 * * @param request - BatchUpdateExternalTitleRequest * @param headers - BatchUpdateExternalTitleHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns BatchUpdateExternalTitleResponse */ async batchUpdateExternalTitleWithOptions(request: BatchUpdateExternalTitleRequest, headers: BatchUpdateExternalTitleHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let body : {[key: string ]: any} = { }; if (!Util.isUnset(request.operatorUserId)) { body["operatorUserId"] = request.operatorUserId; } if (!Util.isUnset(request.updateTitleModelList)) { body["updateTitleModelList"] = request.updateTitleModelList; } let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, body: OpenApiUtil.parseToMap(body), }); let params = new $OpenApi.Params({ action: "BatchUpdateExternalTitle", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/externalTitles`, method: "PUT", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new BatchUpdateExternalTitleResponse({})); } /** * 批量修改企业员工对外职位信息 * * @param request - BatchUpdateExternalTitleRequest * @returns BatchUpdateExternalTitleResponse */ async batchUpdateExternalTitle(request: BatchUpdateExternalTitleRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new BatchUpdateExternalTitleHeaders({ }); return await this.batchUpdateExternalTitleWithOptions(request, headers, runtime); } /** * 修改钉钉号 * * @param request - ChangeDingTalkIdRequest * @param headers - ChangeDingTalkIdHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns ChangeDingTalkIdResponse */ async changeDingTalkIdWithOptions(request: ChangeDingTalkIdRequest, headers: ChangeDingTalkIdHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let body : {[key: string ]: any} = { }; if (!Util.isUnset(request.dingTalkId)) { body["dingTalkId"] = request.dingTalkId; } if (!Util.isUnset(request.userId)) { body["userId"] = request.userId; } let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, body: OpenApiUtil.parseToMap(body), }); let params = new $OpenApi.Params({ action: "ChangeDingTalkId", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/orgAccounts/dingTalkIds/change`, method: "POST", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new ChangeDingTalkIdResponse({})); } /** * 修改钉钉号 * * @param request - ChangeDingTalkIdRequest * @returns ChangeDingTalkIdResponse */ async changeDingTalkId(request: ChangeDingTalkIdRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new ChangeDingTalkIdHeaders({ }); return await this.changeDingTalkIdWithOptions(request, headers, runtime); } /** * 专属帐号转交主管理员(创建者) * * @param request - ChangeMainAdminRequest * @param headers - ChangeMainAdminHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns ChangeMainAdminResponse */ async changeMainAdminWithOptions(request: ChangeMainAdminRequest, headers: ChangeMainAdminHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let body : {[key: string ]: any} = { }; if (!Util.isUnset(request.effectCorpId)) { body["effectCorpId"] = request.effectCorpId; } if (!Util.isUnset(request.sourceUserId)) { body["sourceUserId"] = request.sourceUserId; } if (!Util.isUnset(request.targetUserId)) { body["targetUserId"] = request.targetUserId; } let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, body: OpenApiUtil.parseToMap(body), }); let params = new $OpenApi.Params({ action: "ChangeMainAdmin", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/orgAccounts/mainAdministrators/change`, method: "POST", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "none", }); return $tea.cast(await this.execute(params, req, runtime), new ChangeMainAdminResponse({})); } /** * 专属帐号转交主管理员(创建者) * * @param request - ChangeMainAdminRequest * @returns ChangeMainAdminResponse */ async changeMainAdmin(request: ChangeMainAdminRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new ChangeMainAdminHeaders({ }); return await this.changeMainAdminWithOptions(request, headers, runtime); } /** * 企业账号修改主企业 * * @param request - ChangeMainOrgRequest * @param headers - ChangeMainOrgHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns ChangeMainOrgResponse */ async changeMainOrgWithOptions(request: ChangeMainOrgRequest, headers: ChangeMainOrgHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let body : {[key: string ]: any} = { }; if (!Util.isUnset(request.newMainCorpId)) { body["newMainCorpId"] = request.newMainCorpId; } if (!Util.isUnset(request.userId)) { body["userId"] = request.userId; } let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, body: OpenApiUtil.parseToMap(body), }); let params = new $OpenApi.Params({ action: "ChangeMainOrg", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/orgAccounts/mainOrgs/change`, method: "POST", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new ChangeMainOrgResponse({})); } /** * 企业账号修改主企业 * * @param request - ChangeMainOrgRequest * @returns ChangeMainOrgResponse */ async changeMainOrg(request: ChangeMainOrgRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new ChangeMainOrgHeaders({ }); return await this.changeMainOrgWithOptions(request, headers, runtime); } /** * 考证上钉-isv-证书颁发接口 * * @param request - CourseFinishCourseRequest * @param headers - CourseFinishCourseHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns CourseFinishCourseResponse */ async courseFinishCourseWithOptions(request: CourseFinishCourseRequest, headers: CourseFinishCourseHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let body : {[key: string ]: any} = { }; if (!Util.isUnset(request.certId)) { body["certId"] = request.certId; } if (!Util.isUnset(request.certMediaBase64)) { body["certMediaBase64"] = request.certMediaBase64; } if (!Util.isUnset(request.courseId)) { body["courseId"] = request.courseId; } if (!Util.isUnset(request.status)) { body["status"] = request.status; } if (!Util.isUnset(request.userId)) { body["userId"] = request.userId; } let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, body: OpenApiUtil.parseToMap(body), }); let params = new $OpenApi.Params({ action: "CourseFinishCourse", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/course/finishCourse`, method: "POST", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new CourseFinishCourseResponse({})); } /** * 考证上钉-isv-证书颁发接口 * * @param request - CourseFinishCourseRequest * @returns CourseFinishCourseResponse */ async courseFinishCourse(request: CourseFinishCourseRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new CourseFinishCourseHeaders({ }); return await this.courseFinishCourseWithOptions(request, headers, runtime); } /** * 创建合作空间 * * @param request - CreateCooperateOrgRequest * @param headers - CreateCooperateOrgHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns CreateCooperateOrgResponse */ async createCooperateOrgWithOptions(request: CreateCooperateOrgRequest, headers: CreateCooperateOrgHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let body : {[key: string ]: any} = { }; if (!Util.isUnset(request.industryCode)) { body["industryCode"] = request.industryCode; } if (!Util.isUnset(request.logoMediaId)) { body["logoMediaId"] = request.logoMediaId; } if (!Util.isUnset(request.orgName)) { body["orgName"] = request.orgName; } let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, body: OpenApiUtil.parseToMap(body), }); let params = new $OpenApi.Params({ action: "CreateCooperateOrg", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/cooperateCorps`, method: "POST", authType: "AK", style: "ROA", reqBodyType: "json", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new CreateCooperateOrgResponse({})); } /** * 创建合作空间 * * @param request - CreateCooperateOrgRequest * @returns CreateCooperateOrgResponse */ async createCooperateOrg(request: CreateCooperateOrgRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new CreateCooperateOrgHeaders({ }); return await this.createCooperateOrgWithOptions(request, headers, runtime); } /** * 创建管理组 * * @param request - CreateManagementGroupRequest * @param headers - CreateManagementGroupHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns CreateManagementGroupResponse */ async createManagementGroupWithOptions(request: CreateManagementGroupRequest, headers: CreateManagementGroupHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let body : {[key: string ]: any} = { }; if (!Util.isUnset(request.groupName)) { body["groupName"] = request.groupName; } if (!Util.isUnset(request.members)) { body["members"] = request.members; } if (!Util.isUnset(request.resourceIds)) { body["resourceIds"] = request.resourceIds; } if (!Util.isUnset(request.scope)) { body["scope"] = request.scope; } let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, body: OpenApiUtil.parseToMap(body), }); let params = new $OpenApi.Params({ action: "CreateManagementGroup", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/managementGroups`, method: "POST", authType: "AK", style: "ROA", reqBodyType: "json", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new CreateManagementGroupResponse({})); } /** * 创建管理组 * * @param request - CreateManagementGroupRequest * @returns CreateManagementGroupResponse */ async createManagementGroup(request: CreateManagementGroupRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new CreateManagementGroupHeaders({ }); return await this.createManagementGroupWithOptions(request, headers, runtime); } /** * 子管理员创建管理组 * * @param request - CreateSecondaryManagementGroupRequest * @param headers - CreateSecondaryManagementGroupHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns CreateSecondaryManagementGroupResponse */ async createSecondaryManagementGroupWithOptions(request: CreateSecondaryManagementGroupRequest, headers: CreateSecondaryManagementGroupHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let query : {[key: string ]: any} = { }; if (!Util.isUnset(request.userId)) { query["userId"] = request.userId; } let body : {[key: string ]: any} = { }; if (!Util.isUnset(request.groupName)) { body["groupName"] = request.groupName; } if (!Util.isUnset(request.members)) { body["members"] = request.members; } if (!Util.isUnset(request.resourceIds)) { body["resourceIds"] = request.resourceIds; } if (!Util.isUnset(request.scope)) { body["scope"] = request.scope; } let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, query: OpenApiUtil.query(query), body: OpenApiUtil.parseToMap(body), }); let params = new $OpenApi.Params({ action: "CreateSecondaryManagementGroup", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/secondaryAdministrators/managementGroups`, method: "POST", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new CreateSecondaryManagementGroupResponse({})); } /** * 子管理员创建管理组 * * @param request - CreateSecondaryManagementGroupRequest * @returns CreateSecondaryManagementGroupResponse */ async createSecondaryManagementGroup(request: CreateSecondaryManagementGroupRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new CreateSecondaryManagementGroupHeaders({ }); return await this.createSecondaryManagementGroupWithOptions(request, headers, runtime); } /** * 删除账号映射 * * @param request - DelAccountMappingRequest * @param headers - DelAccountMappingHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns DelAccountMappingResponse */ async delAccountMappingWithOptions(request: DelAccountMappingRequest, headers: DelAccountMappingHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let query : {[key: string ]: any} = { }; if (!Util.isUnset(request.domain)) { query["domain"] = request.domain; } if (!Util.isUnset(request.userId)) { query["userId"] = request.userId; } let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, query: OpenApiUtil.query(query), }); let params = new $OpenApi.Params({ action: "DelAccountMapping", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/accountMappings`, method: "DELETE", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new DelAccountMappingResponse({})); } /** * 删除账号映射 * * @param request - DelAccountMappingRequest * @returns DelAccountMappingResponse */ async delAccountMapping(request: DelAccountMappingRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new DelAccountMappingHeaders({ }); return await this.delAccountMappingWithOptions(request, headers, runtime); } /** * 删除企业账号工作状态 * * @param request - DelOrgAccUserOwnnessRequest * @param headers - DelOrgAccUserOwnnessHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns DelOrgAccUserOwnnessResponse */ async delOrgAccUserOwnnessWithOptions(request: DelOrgAccUserOwnnessRequest, headers: DelOrgAccUserOwnnessHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let query : {[key: string ]: any} = { }; if (!Util.isUnset(request.ownenssType)) { query["ownenssType"] = request.ownenssType; } if (!Util.isUnset(request.ownnessId)) { query["ownnessId"] = request.ownnessId; } if (!Util.isUnset(request.userId)) { query["userId"] = request.userId; } let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, query: OpenApiUtil.query(query), }); let params = new $OpenApi.Params({ action: "DelOrgAccUserOwnness", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/orgAccounts/ownness`, method: "DELETE", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new DelOrgAccUserOwnnessResponse({})); } /** * 删除企业账号工作状态 * * @param request - DelOrgAccUserOwnnessRequest * @returns DelOrgAccUserOwnnessResponse */ async delOrgAccUserOwnness(request: DelOrgAccUserOwnnessRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new DelOrgAccUserOwnnessHeaders({ }); return await this.delOrgAccUserOwnnessWithOptions(request, headers, runtime); } /** * 删除通讯录组织架构分场景隐藏设置 * * @param headers - DeleteContactHideBySceneSettingHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns DeleteContactHideBySceneSettingResponse */ async deleteContactHideBySceneSettingWithOptions(settingId: string, headers: DeleteContactHideBySceneSettingHeaders, runtime: $Util.RuntimeOptions): Promise { let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, }); let params = new $OpenApi.Params({ action: "DeleteContactHideBySceneSetting", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/organizations/hides/settings/${settingId}`, method: "DELETE", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new DeleteContactHideBySceneSettingResponse({})); } /** * 删除通讯录组织架构分场景隐藏设置 * @returns DeleteContactHideBySceneSettingResponse */ async deleteContactHideBySceneSetting(settingId: string): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new DeleteContactHideBySceneSettingHeaders({ }); return await this.deleteContactHideBySceneSettingWithOptions(settingId, headers, runtime); } /** * 删除通讯录隐藏设置 * * @param headers - DeleteContactHideSettingHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns DeleteContactHideSettingResponse */ async deleteContactHideSettingWithOptions(settingId: string, headers: DeleteContactHideSettingHeaders, runtime: $Util.RuntimeOptions): Promise { let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, }); let params = new $OpenApi.Params({ action: "DeleteContactHideSetting", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/contactHideSettings/${settingId}`, method: "DELETE", authType: "AK", style: "ROA", reqBodyType: "json", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new DeleteContactHideSettingResponse({})); } /** * 删除通讯录隐藏设置 * @returns DeleteContactHideSettingResponse */ async deleteContactHideSetting(settingId: string): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new DeleteContactHideSettingHeaders({ }); return await this.deleteContactHideSettingWithOptions(settingId, headers, runtime); } /** * 删除限制查看通讯录设置 * * @param headers - DeleteContactRestrictSettingHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns DeleteContactRestrictSettingResponse */ async deleteContactRestrictSettingWithOptions(settingId: string, headers: DeleteContactRestrictSettingHeaders, runtime: $Util.RuntimeOptions): Promise { let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, }); let params = new $OpenApi.Params({ action: "DeleteContactRestrictSetting", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/restrictions/settings/${settingId}`, method: "DELETE", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new DeleteContactRestrictSettingResponse({})); } /** * 删除限制查看通讯录设置 * @returns DeleteContactRestrictSettingResponse */ async deleteContactRestrictSetting(settingId: string): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new DeleteContactRestrictSettingHeaders({ }); return await this.deleteContactRestrictSettingWithOptions(settingId, headers, runtime); } /** * 删除员工属性分场景隐藏设置 * * @param headers - DeleteEmpAttributeHideBySceneSettingHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns DeleteEmpAttributeHideBySceneSettingResponse */ async deleteEmpAttributeHideBySceneSettingWithOptions(settingId: string, headers: DeleteEmpAttributeHideBySceneSettingHeaders, runtime: $Util.RuntimeOptions): Promise { let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, }); let params = new $OpenApi.Params({ action: "DeleteEmpAttributeHideBySceneSetting", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/empAttributes/hides/settings/${settingId}`, method: "DELETE", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new DeleteEmpAttributeHideBySceneSettingResponse({})); } /** * 删除员工属性分场景隐藏设置 * @returns DeleteEmpAttributeHideBySceneSettingResponse */ async deleteEmpAttributeHideBySceneSetting(settingId: string): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new DeleteEmpAttributeHideBySceneSettingHeaders({ }); return await this.deleteEmpAttributeHideBySceneSettingWithOptions(settingId, headers, runtime); } /** * 删除员工字段可见性设置 * * @param headers - DeleteEmpAttributeVisibilityHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns DeleteEmpAttributeVisibilityResponse */ async deleteEmpAttributeVisibilityWithOptions(settingId: string, headers: DeleteEmpAttributeVisibilityHeaders, runtime: $Util.RuntimeOptions): Promise { let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, }); let params = new $OpenApi.Params({ action: "DeleteEmpAttributeVisibility", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/staffAttributes/visibilitySettings/${settingId}`, method: "DELETE", authType: "AK", style: "ROA", reqBodyType: "json", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new DeleteEmpAttributeVisibilityResponse({})); } /** * 删除员工字段可见性设置 * @returns DeleteEmpAttributeVisibilityResponse */ async deleteEmpAttributeVisibility(settingId: string): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new DeleteEmpAttributeVisibilityHeaders({ }); return await this.deleteEmpAttributeVisibilityWithOptions(settingId, headers, runtime); } /** * 删除管理组 * * @param headers - DeleteManagementGroupHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns DeleteManagementGroupResponse */ async deleteManagementGroupWithOptions(groupId: string, headers: DeleteManagementGroupHeaders, runtime: $Util.RuntimeOptions): Promise { let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, }); let params = new $OpenApi.Params({ action: "DeleteManagementGroup", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/managementGroups/${groupId}`, method: "DELETE", authType: "AK", style: "ROA", reqBodyType: "json", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new DeleteManagementGroupResponse({})); } /** * 删除管理组 * @returns DeleteManagementGroupResponse */ async deleteManagementGroup(groupId: string): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new DeleteManagementGroupHeaders({ }); return await this.deleteManagementGroupWithOptions(groupId, headers, runtime); } /** * 获取账号映射 * * @param request - GetAccountMappingRequest * @param headers - GetAccountMappingHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns GetAccountMappingResponse */ async getAccountMappingWithOptions(request: GetAccountMappingRequest, headers: GetAccountMappingHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let query : {[key: string ]: any} = { }; if (!Util.isUnset(request.domain)) { query["domain"] = request.domain; } if (!Util.isUnset(request.userId)) { query["userId"] = request.userId; } let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, query: OpenApiUtil.query(query), }); let params = new $OpenApi.Params({ action: "GetAccountMapping", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/accountMappings`, method: "GET", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new GetAccountMappingResponse({})); } /** * 获取账号映射 * * @param request - GetAccountMappingRequest * @returns GetAccountMappingResponse */ async getAccountMapping(request: GetAccountMappingRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new GetAccountMappingHeaders({ }); return await this.getAccountMappingWithOptions(request, headers, runtime); } /** * 获取企业的邀请信息,如果传部门ID则邀请链接为邀请加入部门,否则加入根部门;如果企业未开启邀请或者链接申请加入邀请链接为null * * @param request - GetApplyInviteInfoRequest * @param headers - GetApplyInviteInfoHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns GetApplyInviteInfoResponse */ async getApplyInviteInfoWithOptions(request: GetApplyInviteInfoRequest, headers: GetApplyInviteInfoHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let query : {[key: string ]: any} = { }; if (!Util.isUnset(request.deptId)) { query["deptId"] = request.deptId; } if (!Util.isUnset(request.inviterUserId)) { query["inviterUserId"] = request.inviterUserId; } let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, query: OpenApiUtil.query(query), }); let params = new $OpenApi.Params({ action: "GetApplyInviteInfo", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/invites/infos`, method: "GET", authType: "AK", style: "ROA", reqBodyType: "json", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new GetApplyInviteInfoResponse({})); } /** * 获取企业的邀请信息,如果传部门ID则邀请链接为邀请加入部门,否则加入根部门;如果企业未开启邀请或者链接申请加入邀请链接为null * * @param request - GetApplyInviteInfoRequest * @returns GetApplyInviteInfoResponse */ async getApplyInviteInfo(request: GetApplyInviteInfoRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new GetApplyInviteInfoHeaders({ }); return await this.getApplyInviteInfoWithOptions(request, headers, runtime); } /** * 分支授权主干的行业数据 * * @param request - GetBranchAuthDataRequest * @param headers - GetBranchAuthDataHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns GetBranchAuthDataResponse */ async getBranchAuthDataWithOptions(request: GetBranchAuthDataRequest, headers: GetBranchAuthDataHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let query : {[key: string ]: any} = { }; if (!Util.isUnset(request.branchCorpId)) { query["branchCorpId"] = request.branchCorpId; } if (!Util.isUnset(request.code)) { query["code"] = request.code; } let body : {[key: string ]: any} = { }; if (!Util.isUnset(request.body)) { body["body"] = request.body; } let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, query: OpenApiUtil.query(query), body: OpenApiUtil.parseToMap(body), }); let params = new $OpenApi.Params({ action: "GetBranchAuthData", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/branchAuthDatas/search`, method: "POST", authType: "AK", style: "ROA", reqBodyType: "json", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new GetBranchAuthDataResponse({})); } /** * 分支授权主干的行业数据 * * @param request - GetBranchAuthDataRequest * @returns GetBranchAuthDataResponse */ async getBranchAuthData(request: GetBranchAuthDataRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new GetBranchAuthDataHeaders({ }); return await this.getBranchAuthDataWithOptions(request, headers, runtime); } /** * 查询用户名片夹中的某张名片信息 * * @param headers - GetCardInUserHolderHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns GetCardInUserHolderResponse */ async getCardInUserHolderWithOptions(cardId: string, headers: GetCardInUserHolderHeaders, runtime: $Util.RuntimeOptions): Promise { let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, }); let params = new $OpenApi.Params({ action: "GetCardInUserHolder", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/cards/holders/infos/${cardId}`, method: "GET", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new GetCardInUserHolderResponse({})); } /** * 查询用户名片夹中的某张名片信息 * @returns GetCardInUserHolderResponse */ async getCardInUserHolder(cardId: string): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new GetCardInUserHolderHeaders({ }); return await this.getCardInUserHolderWithOptions(cardId, headers, runtime); } /** * 查询用户名片信息 * * @param headers - GetCardInfoHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns GetCardInfoResponse */ async getCardInfoWithOptions(cardId: string, headers: GetCardInfoHeaders, runtime: $Util.RuntimeOptions): Promise { let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, }); let params = new $OpenApi.Params({ action: "GetCardInfo", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/cards/infos/${cardId}`, method: "GET", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new GetCardInfoResponse({})); } /** * 查询用户名片信息 * @returns GetCardInfoResponse */ async getCardInfo(cardId: string): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new GetCardInfoHeaders({ }); return await this.getCardInfoWithOptions(cardId, headers, runtime); } /** * 获取通讯录组织架构分场景隐藏设置 * * @param headers - GetContactHideBySceneSettingHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns GetContactHideBySceneSettingResponse */ async getContactHideBySceneSettingWithOptions(settingId: string, headers: GetContactHideBySceneSettingHeaders, runtime: $Util.RuntimeOptions): Promise { let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, }); let params = new $OpenApi.Params({ action: "GetContactHideBySceneSetting", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/organizations/hides/settings/${settingId}`, method: "GET", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new GetContactHideBySceneSettingResponse({})); } /** * 获取通讯录组织架构分场景隐藏设置 * @returns GetContactHideBySceneSettingResponse */ async getContactHideBySceneSetting(settingId: string): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new GetContactHideBySceneSettingHeaders({ }); return await this.getContactHideBySceneSettingWithOptions(settingId, headers, runtime); } /** * 获取邀请加入合作空间链接,分享链接之后企业可以申请加入 * * @param headers - GetCooperateOrgInviteInfoHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns GetCooperateOrgInviteInfoResponse */ async getCooperateOrgInviteInfoWithOptions(cooperateCorpId: string, headers: GetCooperateOrgInviteInfoHeaders, runtime: $Util.RuntimeOptions): Promise { let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, }); let params = new $OpenApi.Params({ action: "GetCooperateOrgInviteInfo", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/cooperateCorps/${cooperateCorpId}/inviteInfos`, method: "GET", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new GetCooperateOrgInviteInfoResponse({})); } /** * 获取邀请加入合作空间链接,分享链接之后企业可以申请加入 * @returns GetCooperateOrgInviteInfoResponse */ async getCooperateOrgInviteInfo(cooperateCorpId: string): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new GetCooperateOrgInviteInfoHeaders({ }); return await this.getCooperateOrgInviteInfoWithOptions(cooperateCorpId, headers, runtime); } /** * 查询企业模板列表 * * @param headers - GetCorpCardStyleListHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns GetCorpCardStyleListResponse */ async getCorpCardStyleListWithOptions(headers: GetCorpCardStyleListHeaders, runtime: $Util.RuntimeOptions): Promise { let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, }); let params = new $OpenApi.Params({ action: "GetCorpCardStyleList", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/cards/styles/lists`, method: "GET", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new GetCorpCardStyleListResponse({})); } /** * 查询企业模板列表 * @returns GetCorpCardStyleListResponse */ async getCorpCardStyleList(): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new GetCorpCardStyleListHeaders({ }); return await this.getCorpCardStyleListWithOptions(headers, runtime); } /** * 普通帐号迁移为专属帐号后,根据迁移后的dingId查询原dingId * * @param request - GetDingIdByMigrationDingIdRequest * @param headers - GetDingIdByMigrationDingIdHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns GetDingIdByMigrationDingIdResponse */ async getDingIdByMigrationDingIdWithOptions(request: GetDingIdByMigrationDingIdRequest, headers: GetDingIdByMigrationDingIdHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let query : {[key: string ]: any} = { }; if (!Util.isUnset(request.migrationDingId)) { query["migrationDingId"] = request.migrationDingId; } let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, query: OpenApiUtil.query(query), }); let params = new $OpenApi.Params({ action: "GetDingIdByMigrationDingId", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/orgAccount/getDingIdByMigrationDingIds`, method: "GET", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new GetDingIdByMigrationDingIdResponse({})); } /** * 普通帐号迁移为专属帐号后,根据迁移后的dingId查询原dingId * * @param request - GetDingIdByMigrationDingIdRequest * @returns GetDingIdByMigrationDingIdResponse */ async getDingIdByMigrationDingId(request: GetDingIdByMigrationDingIdRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new GetDingIdByMigrationDingIdHeaders({ }); return await this.getDingIdByMigrationDingIdWithOptions(request, headers, runtime); } /** * 获取员工属性分场景隐藏设置 * * @param headers - GetEmpAttributeHideBySceneSettingHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns GetEmpAttributeHideBySceneSettingResponse */ async getEmpAttributeHideBySceneSettingWithOptions(settingId: string, headers: GetEmpAttributeHideBySceneSettingHeaders, runtime: $Util.RuntimeOptions): Promise { let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, }); let params = new $OpenApi.Params({ action: "GetEmpAttributeHideBySceneSetting", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/empAttributes/hides/settings/${settingId}`, method: "GET", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new GetEmpAttributeHideBySceneSettingResponse({})); } /** * 获取员工属性分场景隐藏设置 * @returns GetEmpAttributeHideBySceneSettingResponse */ async getEmpAttributeHideBySceneSetting(settingId: string): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new GetEmpAttributeHideBySceneSettingHeaders({ }); return await this.getEmpAttributeHideBySceneSettingWithOptions(settingId, headers, runtime); } /** * 获取企业最新的钉钉指数 * * @param headers - GetLatestDingIndexHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns GetLatestDingIndexResponse */ async getLatestDingIndexWithOptions(headers: GetLatestDingIndexHeaders, runtime: $Util.RuntimeOptions): Promise { let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, }); let params = new $OpenApi.Params({ action: "GetLatestDingIndex", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/dingIndexs`, method: "GET", authType: "AK", style: "ROA", reqBodyType: "json", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new GetLatestDingIndexResponse({})); } /** * 获取企业最新的钉钉指数 * @returns GetLatestDingIndexResponse */ async getLatestDingIndex(): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new GetLatestDingIndexHeaders({ }); return await this.getLatestDingIndexWithOptions(headers, runtime); } /** * 普通帐号迁移为专属帐号后,根据原dingId查询迁移后的dingId * * @param request - GetMigrationDingIdByDingIdRequest * @param headers - GetMigrationDingIdByDingIdHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns GetMigrationDingIdByDingIdResponse */ async getMigrationDingIdByDingIdWithOptions(request: GetMigrationDingIdByDingIdRequest, headers: GetMigrationDingIdByDingIdHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let query : {[key: string ]: any} = { }; if (!Util.isUnset(request.dingId)) { query["dingId"] = request.dingId; } let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, query: OpenApiUtil.query(query), }); let params = new $OpenApi.Params({ action: "GetMigrationDingIdByDingId", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/orgAccount/getMigrationDingIdByDingIds`, method: "GET", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new GetMigrationDingIdByDingIdResponse({})); } /** * 普通帐号迁移为专属帐号后,根据原dingId查询迁移后的dingId * * @param request - GetMigrationDingIdByDingIdRequest * @returns GetMigrationDingIdByDingIdResponse */ async getMigrationDingIdByDingId(request: GetMigrationDingIdByDingIdRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new GetMigrationDingIdByDingIdHeaders({ }); return await this.getMigrationDingIdByDingIdWithOptions(request, headers, runtime); } /** * 普通帐号迁移为专属帐号后,根据原unionId查询迁移后的unionId * * @param request - GetMigrationUnionIdByUnionIdRequest * @param headers - GetMigrationUnionIdByUnionIdHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns GetMigrationUnionIdByUnionIdResponse */ async getMigrationUnionIdByUnionIdWithOptions(request: GetMigrationUnionIdByUnionIdRequest, headers: GetMigrationUnionIdByUnionIdHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let query : {[key: string ]: any} = { }; if (!Util.isUnset(request.unionId)) { query["unionId"] = request.unionId; } let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, query: OpenApiUtil.query(query), }); let params = new $OpenApi.Params({ action: "GetMigrationUnionIdByUnionId", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/orgAccount/getMigrationUnionIdByUnionIds`, method: "GET", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new GetMigrationUnionIdByUnionIdResponse({})); } /** * 普通帐号迁移为专属帐号后,根据原unionId查询迁移后的unionId * * @param request - GetMigrationUnionIdByUnionIdRequest * @returns GetMigrationUnionIdByUnionIdResponse */ async getMigrationUnionIdByUnionId(request: GetMigrationUnionIdByUnionIdRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new GetMigrationUnionIdByUnionIdHeaders({ }); return await this.getMigrationUnionIdByUnionIdWithOptions(request, headers, runtime); } /** * 查询企业认证信息 * * @param request - GetOrgAuthInfoRequest * @param headers - GetOrgAuthInfoHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns GetOrgAuthInfoResponse */ async getOrgAuthInfoWithOptions(request: GetOrgAuthInfoRequest, headers: GetOrgAuthInfoHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let query : {[key: string ]: any} = { }; if (!Util.isUnset(request.targetCorpId)) { query["targetCorpId"] = request.targetCorpId; } let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, query: OpenApiUtil.query(query), }); let params = new $OpenApi.Params({ action: "GetOrgAuthInfo", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/organizations/authInfos`, method: "GET", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new GetOrgAuthInfoResponse({})); } /** * 查询企业认证信息 * * @param request - GetOrgAuthInfoRequest * @returns GetOrgAuthInfoResponse */ async getOrgAuthInfo(request: GetOrgAuthInfoRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new GetOrgAuthInfoHeaders({ }); return await this.getOrgAuthInfoWithOptions(request, headers, runtime); } /** * 获取异步文件内容转译结果 * * @param request - GetTranslateFileJobResultRequest * @param headers - GetTranslateFileJobResultHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns GetTranslateFileJobResultResponse */ async getTranslateFileJobResultWithOptions(request: GetTranslateFileJobResultRequest, headers: GetTranslateFileJobResultHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let query : {[key: string ]: any} = { }; if (!Util.isUnset(request.jobId)) { query["jobId"] = request.jobId; } let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, query: OpenApiUtil.query(query), }); let params = new $OpenApi.Params({ action: "GetTranslateFileJobResult", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/files/translateResults`, method: "GET", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new GetTranslateFileJobResultResponse({})); } /** * 获取异步文件内容转译结果 * * @param request - GetTranslateFileJobResultRequest * @returns GetTranslateFileJobResultResponse */ async getTranslateFileJobResult(request: GetTranslateFileJobResultRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new GetTranslateFileJobResultHeaders({ }); return await this.getTranslateFileJobResultWithOptions(request, headers, runtime); } /** * 普通帐号迁移为专属帐号后,根据迁移后的unionId查询原unionId * * @param request - GetUnionIdByMigrationUnionIdRequest * @param headers - GetUnionIdByMigrationUnionIdHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns GetUnionIdByMigrationUnionIdResponse */ async getUnionIdByMigrationUnionIdWithOptions(request: GetUnionIdByMigrationUnionIdRequest, headers: GetUnionIdByMigrationUnionIdHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let query : {[key: string ]: any} = { }; if (!Util.isUnset(request.migrationUnionId)) { query["migrationUnionId"] = request.migrationUnionId; } let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, query: OpenApiUtil.query(query), }); let params = new $OpenApi.Params({ action: "GetUnionIdByMigrationUnionId", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/orgAccount/getUnionIdByMigrationUnionIds`, method: "GET", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new GetUnionIdByMigrationUnionIdResponse({})); } /** * 普通帐号迁移为专属帐号后,根据迁移后的unionId查询原unionId * * @param request - GetUnionIdByMigrationUnionIdRequest * @returns GetUnionIdByMigrationUnionIdResponse */ async getUnionIdByMigrationUnionId(request: GetUnionIdByMigrationUnionIdRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new GetUnionIdByMigrationUnionIdHeaders({ }); return await this.getUnionIdByMigrationUnionIdWithOptions(request, headers, runtime); } /** * 获取用户个人信息 * * @param headers - GetUserHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns GetUserResponse */ async getUserWithOptions(unionId: string, headers: GetUserHeaders, runtime: $Util.RuntimeOptions): Promise { let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, }); let params = new $OpenApi.Params({ action: "GetUser", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/users/${unionId}`, method: "GET", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new GetUserResponse({})); } /** * 获取用户个人信息 * @returns GetUserResponse */ async getUser(unionId: string): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new GetUserHeaders({ }); return await this.getUserWithOptions(unionId, headers, runtime); } /** * 查询用户名片夹信息 * * @param request - GetUserCardHolderListRequest * @param headers - GetUserCardHolderListHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns GetUserCardHolderListResponse */ async getUserCardHolderListWithOptions(request: GetUserCardHolderListRequest, headers: GetUserCardHolderListHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let query : {[key: string ]: any} = { }; if (!Util.isUnset(request.maxResults)) { query["maxResults"] = request.maxResults; } if (!Util.isUnset(request.nextToken)) { query["nextToken"] = request.nextToken; } let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, query: OpenApiUtil.query(query), }); let params = new $OpenApi.Params({ action: "GetUserCardHolderList", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/cards/holders/lists`, method: "GET", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new GetUserCardHolderListResponse({})); } /** * 查询用户名片夹信息 * * @param request - GetUserCardHolderListRequest * @returns GetUserCardHolderListResponse */ async getUserCardHolderList(request: GetUserCardHolderListRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new GetUserCardHolderListHeaders({ }); return await this.getUserCardHolderListWithOptions(request, headers, runtime); } /** * 初始化核身事件 * * @param request - InitVerifyEventRequest * @param headers - InitVerifyEventHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns InitVerifyEventResponse */ async initVerifyEventWithOptions(request: InitVerifyEventRequest, headers: InitVerifyEventHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let body : {[key: string ]: any} = { }; if (!Util.isUnset(request.callerDeviceId)) { body["callerDeviceId"] = request.callerDeviceId; } if (!Util.isUnset(request.factorCodeList)) { body["factorCodeList"] = request.factorCodeList; } if (!Util.isUnset(request.state)) { body["state"] = request.state; } if (!Util.isUnset(request.userId)) { body["userId"] = request.userId; } let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, body: OpenApiUtil.parseToMap(body), }); let params = new $OpenApi.Params({ action: "InitVerifyEvent", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/verifyIdentities/verifyEvents/init`, method: "POST", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new InitVerifyEventResponse({})); } /** * 初始化核身事件 * * @param request - InitVerifyEventRequest * @returns InitVerifyEventResponse */ async initVerifyEvent(request: InitVerifyEventRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new InitVerifyEventHeaders({ }); return await this.initVerifyEventWithOptions(request, headers, runtime); } /** * 判断某用户跟给定专属账号是否存在好友关系 * * @param request - IsFriendRequest * @param headers - IsFriendHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns IsFriendResponse */ async isFriendWithOptions(request: IsFriendRequest, headers: IsFriendHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let body : {[key: string ]: any} = { }; if (!Util.isUnset(request.mobileNo)) { body["mobileNo"] = request.mobileNo; } if (!Util.isUnset(request.userId)) { body["userId"] = request.userId; } let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, body: OpenApiUtil.parseToMap(body), }); let params = new $OpenApi.Params({ action: "IsFriend", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/relationships/friends/judge`, method: "POST", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new IsFriendResponse({})); } /** * 判断某用户跟给定专属账号是否存在好友关系 * * @param request - IsFriendRequest * @returns IsFriendResponse */ async isFriend(request: IsFriendRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new IsFriendHeaders({ }); return await this.isFriendWithOptions(request, headers, runtime); } /** * 名片事件推送 * * @param request - IsvCardEventPushRequest * @param headers - IsvCardEventPushHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns IsvCardEventPushResponse */ async isvCardEventPushWithOptions(request: IsvCardEventPushRequest, headers: IsvCardEventPushHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let query : {[key: string ]: any} = { }; if (!Util.isUnset(request.isvCardId)) { query["isvCardId"] = request.isvCardId; } if (!Util.isUnset(request.isvToken)) { query["isvToken"] = request.isvToken; } if (!Util.isUnset(request.isvUid)) { query["isvUid"] = request.isvUid; } let body : {[key: string ]: any} = { }; if (!Util.isUnset(request.eventParams)) { body["eventParams"] = request.eventParams; } if (!Util.isUnset(request.eventType)) { body["eventType"] = request.eventType; } let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, query: OpenApiUtil.query(query), body: OpenApiUtil.parseToMap(body), }); let params = new $OpenApi.Params({ action: "IsvCardEventPush", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/cards/events/push`, method: "POST", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new IsvCardEventPushResponse({})); } /** * 名片事件推送 * * @param request - IsvCardEventPushRequest * @returns IsvCardEventPushResponse */ async isvCardEventPush(request: IsvCardEventPushRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new IsvCardEventPushHeaders({ }); return await this.isvCardEventPushWithOptions(request, headers, runtime); } /** * 拉取管理组基本信息列表分页接口 * * @param request - ListBasicRoleInPageRequest * @param headers - ListBasicRoleInPageHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns ListBasicRoleInPageResponse */ async listBasicRoleInPageWithOptions(request: ListBasicRoleInPageRequest, headers: ListBasicRoleInPageHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let query : {[key: string ]: any} = { }; if (!Util.isUnset(request.agentId)) { query["agentId"] = request.agentId; } if (!Util.isUnset(request.maxResults)) { query["maxResults"] = request.maxResults; } if (!Util.isUnset(request.nextToken)) { query["nextToken"] = request.nextToken; } let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, query: OpenApiUtil.query(query), }); let params = new $OpenApi.Params({ action: "ListBasicRoleInPage", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/rbac/administrativeGroups/baseInfos`, method: "GET", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new ListBasicRoleInPageResponse({})); } /** * 拉取管理组基本信息列表分页接口 * * @param request - ListBasicRoleInPageRequest * @returns ListBasicRoleInPageResponse */ async listBasicRoleInPage(request: ListBasicRoleInPageRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new ListBasicRoleInPageHeaders({ }); return await this.listBasicRoleInPageWithOptions(request, headers, runtime); } /** * 获取通讯录隐藏设置 * * @param request - ListContactHideSettingsRequest * @param headers - ListContactHideSettingsHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns ListContactHideSettingsResponse */ async listContactHideSettingsWithOptions(request: ListContactHideSettingsRequest, headers: ListContactHideSettingsHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let query : {[key: string ]: any} = { }; if (!Util.isUnset(request.maxResults)) { query["maxResults"] = request.maxResults; } if (!Util.isUnset(request.nextToken)) { query["nextToken"] = request.nextToken; } let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, query: OpenApiUtil.query(query), }); let params = new $OpenApi.Params({ action: "ListContactHideSettings", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/contactHideSettings`, method: "GET", authType: "AK", style: "ROA", reqBodyType: "json", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new ListContactHideSettingsResponse({})); } /** * 获取通讯录隐藏设置 * * @param request - ListContactHideSettingsRequest * @returns ListContactHideSettingsResponse */ async listContactHideSettings(request: ListContactHideSettingsRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new ListContactHideSettingsHeaders({ }); return await this.listContactHideSettingsWithOptions(request, headers, runtime); } /** * 获取限制查看通讯录设置列表 * * @param request - ListContactRestrictSettingRequest * @param headers - ListContactRestrictSettingHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns ListContactRestrictSettingResponse */ async listContactRestrictSettingWithOptions(request: ListContactRestrictSettingRequest, headers: ListContactRestrictSettingHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let query : {[key: string ]: any} = { }; if (!Util.isUnset(request.maxResults)) { query["maxResults"] = request.maxResults; } if (!Util.isUnset(request.nextToken)) { query["nextToken"] = request.nextToken; } let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, query: OpenApiUtil.query(query), }); let params = new $OpenApi.Params({ action: "ListContactRestrictSetting", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/restrictions/settings`, method: "GET", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new ListContactRestrictSettingResponse({})); } /** * 获取限制查看通讯录设置列表 * * @param request - ListContactRestrictSettingRequest * @returns ListContactRestrictSettingResponse */ async listContactRestrictSetting(request: ListContactRestrictSettingRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new ListContactRestrictSettingHeaders({ }); return await this.listContactRestrictSettingWithOptions(request, headers, runtime); } /** * 获取员工字段可见性设置 * * @param request - ListEmpAttributeVisibilityRequest * @param headers - ListEmpAttributeVisibilityHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns ListEmpAttributeVisibilityResponse */ async listEmpAttributeVisibilityWithOptions(request: ListEmpAttributeVisibilityRequest, headers: ListEmpAttributeVisibilityHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let query : {[key: string ]: any} = { }; if (!Util.isUnset(request.maxResults)) { query["maxResults"] = request.maxResults; } if (!Util.isUnset(request.nextToken)) { query["nextToken"] = request.nextToken; } let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, query: OpenApiUtil.query(query), }); let params = new $OpenApi.Params({ action: "ListEmpAttributeVisibility", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/staffAttributes/visibilitySettings`, method: "GET", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new ListEmpAttributeVisibilityResponse({})); } /** * 获取员工字段可见性设置 * * @param request - ListEmpAttributeVisibilityRequest * @returns ListEmpAttributeVisibilityResponse */ async listEmpAttributeVisibility(request: ListEmpAttributeVisibilityRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new ListEmpAttributeVisibilityHeaders({ }); return await this.listEmpAttributeVisibilityWithOptions(request, headers, runtime); } /** * 查询离职记录 * * @param request - ListEmpLeaveRecordsRequest * @param headers - ListEmpLeaveRecordsHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns ListEmpLeaveRecordsResponse */ async listEmpLeaveRecordsWithOptions(request: ListEmpLeaveRecordsRequest, headers: ListEmpLeaveRecordsHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let query : {[key: string ]: any} = { }; if (!Util.isUnset(request.endTime)) { query["endTime"] = request.endTime; } if (!Util.isUnset(request.maxResults)) { query["maxResults"] = request.maxResults; } if (!Util.isUnset(request.nextToken)) { query["nextToken"] = request.nextToken; } if (!Util.isUnset(request.startTime)) { query["startTime"] = request.startTime; } let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, query: OpenApiUtil.query(query), }); let params = new $OpenApi.Params({ action: "ListEmpLeaveRecords", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/empLeaveRecords`, method: "GET", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new ListEmpLeaveRecordsResponse({})); } /** * 查询离职记录 * * @param request - ListEmpLeaveRecordsRequest * @returns ListEmpLeaveRecordsResponse */ async listEmpLeaveRecords(request: ListEmpLeaveRecordsRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new ListEmpLeaveRecordsHeaders({ }); return await this.listEmpLeaveRecordsWithOptions(request, headers, runtime); } /** * 分页查询管理组 * * @param request - ListManagementGroupsRequest * @param headers - ListManagementGroupsHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns ListManagementGroupsResponse */ async listManagementGroupsWithOptions(request: ListManagementGroupsRequest, headers: ListManagementGroupsHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let query : {[key: string ]: any} = { }; if (!Util.isUnset(request.maxResults)) { query["maxResults"] = request.maxResults; } if (!Util.isUnset(request.nextToken)) { query["nextToken"] = request.nextToken; } let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, query: OpenApiUtil.query(query), }); let params = new $OpenApi.Params({ action: "ListManagementGroups", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/managementGroups`, method: "GET", authType: "AK", style: "ROA", reqBodyType: "json", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new ListManagementGroupsResponse({})); } /** * 分页查询管理组 * * @param request - ListManagementGroupsRequest * @returns ListManagementGroupsResponse */ async listManagementGroups(request: ListManagementGroupsRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new ListManagementGroupsHeaders({ }); return await this.listManagementGroupsWithOptions(request, headers, runtime); } /** * 查询专属帐号拥有的组织(作为创建者的组织) * * @param request - ListOwnedOrgByStaffIdRequest * @param headers - ListOwnedOrgByStaffIdHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns ListOwnedOrgByStaffIdResponse */ async listOwnedOrgByStaffIdWithOptions(request: ListOwnedOrgByStaffIdRequest, headers: ListOwnedOrgByStaffIdHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let query : {[key: string ]: any} = { }; if (!Util.isUnset(request.userId)) { query["userId"] = request.userId; } let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, query: OpenApiUtil.query(query), }); let params = new $OpenApi.Params({ action: "ListOwnedOrgByStaffId", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/orgAccounts/ownedOrganizations`, method: "GET", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new ListOwnedOrgByStaffIdResponse({})); } /** * 查询专属帐号拥有的组织(作为创建者的组织) * * @param request - ListOwnedOrgByStaffIdRequest * @returns ListOwnedOrgByStaffIdResponse */ async listOwnedOrgByStaffId(request: ListOwnedOrgByStaffIdRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new ListOwnedOrgByStaffIdHeaders({ }); return await this.listOwnedOrgByStaffIdWithOptions(request, headers, runtime); } /** * 获取员工高管设置 * * @param request - ListSeniorSettingsRequest * @param headers - ListSeniorSettingsHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns ListSeniorSettingsResponse */ async listSeniorSettingsWithOptions(request: ListSeniorSettingsRequest, headers: ListSeniorSettingsHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let query : {[key: string ]: any} = { }; if (!Util.isUnset(request.seniorStaffId)) { query["seniorStaffId"] = request.seniorStaffId; } let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, query: OpenApiUtil.query(query), }); let params = new $OpenApi.Params({ action: "ListSeniorSettings", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/seniorSettings`, method: "GET", authType: "AK", style: "ROA", reqBodyType: "json", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new ListSeniorSettingsResponse({})); } /** * 获取员工高管设置 * * @param request - ListSeniorSettingsRequest * @returns ListSeniorSettingsResponse */ async listSeniorSettings(request: ListSeniorSettingsRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new ListSeniorSettingsHeaders({ }); return await this.listSeniorSettingsWithOptions(request, headers, runtime); } /** * 更新企业账号工作状态 * * @param request - ModifyOrgAccUserOwnnessRequest * @param headers - ModifyOrgAccUserOwnnessHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns ModifyOrgAccUserOwnnessResponse */ async modifyOrgAccUserOwnnessWithOptions(request: ModifyOrgAccUserOwnnessRequest, headers: ModifyOrgAccUserOwnnessHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let query : {[key: string ]: any} = { }; if (!Util.isUnset(request.userId)) { query["userId"] = request.userId; } let body : {[key: string ]: any} = { }; if (!Util.isUnset(request.endTime)) { body["endTime"] = request.endTime; } if (!Util.isUnset(request.ownenssType)) { body["ownenssType"] = request.ownenssType; } if (!Util.isUnset(request.ownnessId)) { body["ownnessId"] = request.ownnessId; } if (!Util.isUnset(request.startTime)) { body["startTime"] = request.startTime; } if (!Util.isUnset(request.text)) { body["text"] = request.text; } let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, query: OpenApiUtil.query(query), body: OpenApiUtil.parseToMap(body), }); let params = new $OpenApi.Params({ action: "ModifyOrgAccUserOwnness", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/orgAccounts/owness`, method: "PUT", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new ModifyOrgAccUserOwnnessResponse({})); } /** * 更新企业账号工作状态 * * @param request - ModifyOrgAccUserOwnnessRequest * @returns ModifyOrgAccUserOwnnessResponse */ async modifyOrgAccUserOwnness(request: ModifyOrgAccUserOwnnessRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new ModifyOrgAccUserOwnnessHeaders({ }); return await this.modifyOrgAccUserOwnnessWithOptions(request, headers, runtime); } /** * 授权专属帐号可加入多组织 * * @param request - MultiOrgPermissionGrantRequest * @param headers - MultiOrgPermissionGrantHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns MultiOrgPermissionGrantResponse */ async multiOrgPermissionGrantWithOptions(request: MultiOrgPermissionGrantRequest, headers: MultiOrgPermissionGrantHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let body : {[key: string ]: any} = { }; if (!Util.isUnset(request.grantDeptIdList)) { body["grantDeptIdList"] = request.grantDeptIdList; } if (!Util.isUnset(request.joinCorpId)) { body["joinCorpId"] = request.joinCorpId; } let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, body: OpenApiUtil.parseToMap(body), }); let params = new $OpenApi.Params({ action: "MultiOrgPermissionGrant", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/orgAccounts/multiOrgPermissions/auth`, method: "POST", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "none", }); return $tea.cast(await this.execute(params, req, runtime), new MultiOrgPermissionGrantResponse({})); } /** * 授权专属帐号可加入多组织 * * @param request - MultiOrgPermissionGrantRequest * @returns MultiOrgPermissionGrantResponse */ async multiOrgPermissionGrant(request: MultiOrgPermissionGrantRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new MultiOrgPermissionGrantHeaders({ }); return await this.multiOrgPermissionGrantWithOptions(request, headers, runtime); } /** * 授权其他组织查看本组织的企业账号信息 * * @param request - OrgAccountMobileVisibleInOtherOrgRequest * @param headers - OrgAccountMobileVisibleInOtherOrgHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns OrgAccountMobileVisibleInOtherOrgResponse */ async orgAccountMobileVisibleInOtherOrgWithOptions(request: OrgAccountMobileVisibleInOtherOrgRequest, headers: OrgAccountMobileVisibleInOtherOrgHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let body : {[key: string ]: any} = { }; if (!Util.isUnset(request.fields)) { body["fields"] = request.fields; } if (!Util.isUnset(request.optUserId)) { body["optUserId"] = request.optUserId; } if (!Util.isUnset(request.toCorpIds)) { body["toCorpIds"] = request.toCorpIds; } let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, body: OpenApiUtil.parseToMap(body), }); let params = new $OpenApi.Params({ action: "OrgAccountMobileVisibleInOtherOrg", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/orgAccounts/mobiles/visibleInOtherOrg`, method: "PUT", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new OrgAccountMobileVisibleInOtherOrgResponse({})); } /** * 授权其他组织查看本组织的企业账号信息 * * @param request - OrgAccountMobileVisibleInOtherOrgRequest * @returns OrgAccountMobileVisibleInOtherOrgResponse */ async orgAccountMobileVisibleInOtherOrg(request: OrgAccountMobileVisibleInOtherOrgRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new OrgAccountMobileVisibleInOtherOrgHeaders({ }); return await this.orgAccountMobileVisibleInOtherOrgWithOptions(request, headers, runtime); } /** * 更新企业账号电话可见性 * * @param request - OrgAccountMobileVisiblePermissonRequest * @param headers - OrgAccountMobileVisiblePermissonHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns OrgAccountMobileVisiblePermissonResponse */ async orgAccountMobileVisiblePermissonWithOptions(request: OrgAccountMobileVisiblePermissonRequest, headers: OrgAccountMobileVisiblePermissonHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, body: request.body, }); let params = new $OpenApi.Params({ action: "OrgAccountMobileVisiblePermisson", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/orgAccounts/mobiles/visiblePermissions`, method: "PUT", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new OrgAccountMobileVisiblePermissonResponse({})); } /** * 更新企业账号电话可见性 * * @param request - OrgAccountMobileVisiblePermissonRequest * @returns OrgAccountMobileVisiblePermissonResponse */ async orgAccountMobileVisiblePermisson(request: OrgAccountMobileVisiblePermissonRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new OrgAccountMobileVisiblePermissonHeaders({ }); return await this.orgAccountMobileVisiblePermissonWithOptions(request, headers, runtime); } /** * 根据orgId获取企业信息 * * @param tmpReq - OrgInfoRequest * @param headers - OrgInfoHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns OrgInfoResponse */ async orgInfoWithOptions(tmpReq: OrgInfoRequest, headers: OrgInfoHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(tmpReq); let request = new OrgInfoShrinkRequest({ }); OpenApiUtil.convert(tmpReq, request); if (!Util.isUnset(tmpReq.orgIds)) { request.orgIdsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.orgIds, "orgIds", "json"); } let query : {[key: string ]: any} = { }; if (!Util.isUnset(request.orgIdsShrink)) { query["orgIds"] = request.orgIdsShrink; } let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, query: OpenApiUtil.query(query), }); let params = new $OpenApi.Params({ action: "OrgInfo", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/org/info`, method: "POST", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new OrgInfoResponse({})); } /** * 根据orgId获取企业信息 * * @param request - OrgInfoRequest * @returns OrgInfoResponse */ async orgInfo(request: OrgInfoRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new OrgInfoHeaders({ }); return await this.orgInfoWithOptions(request, headers, runtime); } /** * 给员工推送事件唤起核身组件 * * @param request - PushVerifyEventRequest * @param headers - PushVerifyEventHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns PushVerifyEventResponse */ async pushVerifyEventWithOptions(request: PushVerifyEventRequest, headers: PushVerifyEventHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let body : {[key: string ]: any} = { }; if (!Util.isUnset(request.callerDeviceId)) { body["callerDeviceId"] = request.callerDeviceId; } if (!Util.isUnset(request.factorCodeList)) { body["factorCodeList"] = request.factorCodeList; } if (!Util.isUnset(request.state)) { body["state"] = request.state; } if (!Util.isUnset(request.userId)) { body["userId"] = request.userId; } let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, body: OpenApiUtil.parseToMap(body), }); let params = new $OpenApi.Params({ action: "PushVerifyEvent", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/verifyIdentities/verifyEvents/push`, method: "POST", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new PushVerifyEventResponse({})); } /** * 给员工推送事件唤起核身组件 * * @param request - PushVerifyEventRequest * @returns PushVerifyEventResponse */ async pushVerifyEvent(request: PushVerifyEventRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new PushVerifyEventHeaders({ }); return await this.pushVerifyEventWithOptions(request, headers, runtime); } /** * 查询访客统计信息信息 * * @param request - QueryCardVisitorStatisticDataRequest * @param headers - QueryCardVisitorStatisticDataHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns QueryCardVisitorStatisticDataResponse */ async queryCardVisitorStatisticDataWithOptions(request: QueryCardVisitorStatisticDataRequest, headers: QueryCardVisitorStatisticDataHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let query : {[key: string ]: any} = { }; if (!Util.isUnset(request.unionId)) { query["unionId"] = request.unionId; } let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, query: OpenApiUtil.query(query), }); let params = new $OpenApi.Params({ action: "QueryCardVisitorStatisticData", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/cards/visitors/statistics`, method: "GET", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new QueryCardVisitorStatisticDataResponse({})); } /** * 查询访客统计信息信息 * * @param request - QueryCardVisitorStatisticDataRequest * @returns QueryCardVisitorStatisticDataResponse */ async queryCardVisitorStatisticData(request: QueryCardVisitorStatisticDataRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new QueryCardVisitorStatisticDataHeaders({ }); return await this.queryCardVisitorStatisticDataWithOptions(request, headers, runtime); } /** * 查询企业模版的统计数据 * * @param request - QueryCorpStatisticDataRequest * @param headers - QueryCorpStatisticDataHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns QueryCorpStatisticDataResponse */ async queryCorpStatisticDataWithOptions(request: QueryCorpStatisticDataRequest, headers: QueryCorpStatisticDataHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let body : {[key: string ]: any} = { }; if (!Util.isUnset(request.endTime)) { body["endTime"] = request.endTime; } if (!Util.isUnset(request.startTime)) { body["startTime"] = request.startTime; } if (!Util.isUnset(request.templateIds)) { body["templateIds"] = request.templateIds; } if (!Util.isUnset(request.unionId)) { body["unionId"] = request.unionId; } let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, body: OpenApiUtil.parseToMap(body), }); let params = new $OpenApi.Params({ action: "QueryCorpStatisticData", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/cards/templates/statistics/query`, method: "POST", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new QueryCorpStatisticDataResponse({})); } /** * 查询企业模版的统计数据 * * @param request - QueryCorpStatisticDataRequest * @returns QueryCorpStatisticDataResponse */ async queryCorpStatisticData(request: QueryCorpStatisticDataRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new QueryCorpStatisticDataHeaders({ }); return await this.queryCorpStatisticDataWithOptions(request, headers, runtime); } /** * 查询企业用户名片统计数据 * * @param request - QueryCorpUserStatisticRequest * @param headers - QueryCorpUserStatisticHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns QueryCorpUserStatisticResponse */ async queryCorpUserStatisticWithOptions(request: QueryCorpUserStatisticRequest, headers: QueryCorpUserStatisticHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let body : {[key: string ]: any} = { }; if (!Util.isUnset(request.endTime)) { body["endTime"] = request.endTime; } if (!Util.isUnset(request.maxResults)) { body["maxResults"] = request.maxResults; } if (!Util.isUnset(request.nextToken)) { body["nextToken"] = request.nextToken; } if (!Util.isUnset(request.startTime)) { body["startTime"] = request.startTime; } if (!Util.isUnset(request.templateIds)) { body["templateIds"] = request.templateIds; } if (!Util.isUnset(request.unionId)) { body["unionId"] = request.unionId; } let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, body: OpenApiUtil.parseToMap(body), }); let params = new $OpenApi.Params({ action: "QueryCorpUserStatistic", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/cards/users/statistics/query`, method: "POST", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new QueryCorpUserStatisticResponse({})); } /** * 查询企业用户名片统计数据 * * @param request - QueryCorpUserStatisticRequest * @returns QueryCorpUserStatisticResponse */ async queryCorpUserStatistic(request: QueryCorpUserStatisticRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new QueryCorpUserStatisticHeaders({ }); return await this.queryCorpUserStatisticWithOptions(request, headers, runtime); } /** * 查询可管理资源的成员 * * @param headers - QueryResourceManagementMembersHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns QueryResourceManagementMembersResponse */ async queryResourceManagementMembersWithOptions(resourceId: string, headers: QueryResourceManagementMembersHeaders, runtime: $Util.RuntimeOptions): Promise { let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, }); let params = new $OpenApi.Params({ action: "QueryResourceManagementMembers", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/resources/${resourceId}/managementMembers`, method: "GET", authType: "AK", style: "ROA", reqBodyType: "json", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new QueryResourceManagementMembersResponse({})); } /** * 查询可管理资源的成员 * @returns QueryResourceManagementMembersResponse */ async queryResourceManagementMembers(resourceId: string): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new QueryResourceManagementMembersHeaders({ }); return await this.queryResourceManagementMembersWithOptions(resourceId, headers, runtime); } /** * 查询专属帐号状态 * * @param request - QueryStatusRequest * @param headers - QueryStatusHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns QueryStatusResponse */ async queryStatusWithOptions(request: QueryStatusRequest, headers: QueryStatusHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let query : {[key: string ]: any} = { }; if (!Util.isUnset(request.userId)) { query["userId"] = request.userId; } let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, query: OpenApiUtil.query(query), }); let params = new $OpenApi.Params({ action: "QueryStatus", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/orgAccounts/status`, method: "GET", authType: "AK", style: "ROA", reqBodyType: "json", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new QueryStatusResponse({})); } /** * 查询专属帐号状态 * * @param request - QueryStatusRequest * @returns QueryStatusResponse */ async queryStatus(request: QueryStatusRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new QueryStatusHeaders({ }); return await this.queryStatusWithOptions(request, headers, runtime); } /** * 查询用户可以管理的资源 * * @param headers - QueryUserManagementResourcesHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns QueryUserManagementResourcesResponse */ async queryUserManagementResourcesWithOptions(userId: string, headers: QueryUserManagementResourcesHeaders, runtime: $Util.RuntimeOptions): Promise { let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, }); let params = new $OpenApi.Params({ action: "QueryUserManagementResources", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/users/${userId}/managemementResources`, method: "GET", authType: "AK", style: "ROA", reqBodyType: "json", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new QueryUserManagementResourcesResponse({})); } /** * 查询用户可以管理的资源 * @returns QueryUserManagementResourcesResponse */ async queryUserManagementResources(userId: string): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new QueryUserManagementResourcesHeaders({ }); return await this.queryUserManagementResourcesWithOptions(userId, headers, runtime); } /** * 读取员工核身结果 * * @param request - QueryVerifyResultRequest * @param headers - QueryVerifyResultHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns QueryVerifyResultResponse */ async queryVerifyResultWithOptions(request: QueryVerifyResultRequest, headers: QueryVerifyResultHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let query : {[key: string ]: any} = { }; if (!Util.isUnset(request.verifyId)) { query["verifyId"] = request.verifyId; } let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, query: OpenApiUtil.query(query), }); let params = new $OpenApi.Params({ action: "QueryVerifyResult", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/verifyIdentities/verifyResults`, method: "GET", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new QueryVerifyResultResponse({})); } /** * 读取员工核身结果 * * @param request - QueryVerifyResultRequest * @returns QueryVerifyResultResponse */ async queryVerifyResult(request: QueryVerifyResultRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new QueryVerifyResultHeaders({ }); return await this.queryVerifyResultWithOptions(request, headers, runtime); } /** * 撤回已经发出的团队邀请 * * @param request - RecallTeamInviteRequest * @param headers - RecallTeamInviteHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns RecallTeamInviteResponse */ async recallTeamInviteWithOptions(request: RecallTeamInviteRequest, headers: RecallTeamInviteHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let query : {[key: string ]: any} = { }; if (!Util.isUnset(request.mobile)) { query["mobile"] = request.mobile; } if (!Util.isUnset(request.optUserId)) { query["optUserId"] = request.optUserId; } let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, query: OpenApiUtil.query(query), }); let params = new $OpenApi.Params({ action: "RecallTeamInvite", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/invites/recall`, method: "POST", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "none", }); return $tea.cast(await this.execute(params, req, runtime), new RecallTeamInviteResponse({})); } /** * 撤回已经发出的团队邀请 * * @param request - RecallTeamInviteRequest * @returns RecallTeamInviteResponse */ async recallTeamInvite(request: RecallTeamInviteRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new RecallTeamInviteHeaders({ }); return await this.recallTeamInviteWithOptions(request, headers, runtime); } /** * 搜索部门 * * @param request - SearchDepartmentRequest * @param headers - SearchDepartmentHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns SearchDepartmentResponse */ async searchDepartmentWithOptions(request: SearchDepartmentRequest, headers: SearchDepartmentHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let body : {[key: string ]: any} = { }; if (!Util.isUnset(request.offset)) { body["offset"] = request.offset; } if (!Util.isUnset(request.queryWord)) { body["queryWord"] = request.queryWord; } if (!Util.isUnset(request.size)) { body["size"] = request.size; } let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, body: OpenApiUtil.parseToMap(body), }); let params = new $OpenApi.Params({ action: "SearchDepartment", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/departments/search`, method: "POST", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new SearchDepartmentResponse({})); } /** * 搜索部门 * * @param request - SearchDepartmentRequest * @returns SearchDepartmentResponse */ async searchDepartment(request: SearchDepartmentRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new SearchDepartmentHeaders({ }); return await this.searchDepartmentWithOptions(request, headers, runtime); } /** * 搜索用户 * * @param request - SearchUserRequest * @param headers - SearchUserHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns SearchUserResponse */ async searchUserWithOptions(request: SearchUserRequest, headers: SearchUserHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let body : {[key: string ]: any} = { }; if (!Util.isUnset(request.fullMatchField)) { body["fullMatchField"] = request.fullMatchField; } if (!Util.isUnset(request.offset)) { body["offset"] = request.offset; } if (!Util.isUnset(request.queryWord)) { body["queryWord"] = request.queryWord; } if (!Util.isUnset(request.size)) { body["size"] = request.size; } let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, body: OpenApiUtil.parseToMap(body), }); let params = new $OpenApi.Params({ action: "SearchUser", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/users/search`, method: "POST", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new SearchUserResponse({})); } /** * 搜索用户 * * @param request - SearchUserRequest * @returns SearchUserResponse */ async searchUser(request: SearchUserRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new SearchUserHeaders({ }); return await this.searchUserWithOptions(request, headers, runtime); } /** * 解除关联组织 * * @param request - SeparateBranchOrgRequest * @param headers - SeparateBranchOrgHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns SeparateBranchOrgResponse */ async separateBranchOrgWithOptions(request: SeparateBranchOrgRequest, headers: SeparateBranchOrgHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let body : {[key: string ]: any} = { }; if (!Util.isUnset(request.attachDeptId)) { body["attachDeptId"] = request.attachDeptId; } let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, body: OpenApiUtil.parseToMap(body), }); let params = new $OpenApi.Params({ action: "SeparateBranchOrg", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/cooperateCorps/separate`, method: "POST", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new SeparateBranchOrgResponse({})); } /** * 解除关联组织 * * @param request - SeparateBranchOrgRequest * @returns SeparateBranchOrgResponse */ async separateBranchOrg(request: SeparateBranchOrgRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new SeparateBranchOrgHeaders({ }); return await this.separateBranchOrgWithOptions(request, headers, runtime); } /** * 停用专属帐号 * * @param request - SetDisableRequest * @param headers - SetDisableHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns SetDisableResponse */ async setDisableWithOptions(request: SetDisableRequest, headers: SetDisableHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let body : {[key: string ]: any} = { }; if (!Util.isUnset(request.reason)) { body["reason"] = request.reason; } if (!Util.isUnset(request.userId)) { body["userId"] = request.userId; } let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, body: OpenApiUtil.parseToMap(body), }); let params = new $OpenApi.Params({ action: "SetDisable", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/orgAccounts/disable`, method: "POST", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new SetDisableResponse({})); } /** * 停用专属帐号 * * @param request - SetDisableRequest * @returns SetDisableResponse */ async setDisable(request: SetDisableRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new SetDisableHeaders({ }); return await this.setDisableWithOptions(request, headers, runtime); } /** * 启用专属帐号 * * @param request - SetEnableRequest * @param headers - SetEnableHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns SetEnableResponse */ async setEnableWithOptions(request: SetEnableRequest, headers: SetEnableHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let body : {[key: string ]: any} = { }; if (!Util.isUnset(request.userId)) { body["userId"] = request.userId; } let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, body: OpenApiUtil.parseToMap(body), }); let params = new $OpenApi.Params({ action: "SetEnable", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/orgAccounts/enable`, method: "POST", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new SetEnableResponse({})); } /** * 启用专属帐号 * * @param request - SetEnableRequest * @returns SetEnableResponse */ async setEnable(request: SetEnableRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new SetEnableHeaders({ }); return await this.setEnableWithOptions(request, headers, runtime); } /** * 强制登出专属帐号 * * @param request - SignOutRequest * @param headers - SignOutHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns SignOutResponse */ async signOutWithOptions(request: SignOutRequest, headers: SignOutHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let body : {[key: string ]: any} = { }; if (!Util.isUnset(request.reason)) { body["reason"] = request.reason; } if (!Util.isUnset(request.reasonI18nForEmployee)) { body["reasonI18nForEmployee"] = request.reasonI18nForEmployee; } if (!Util.isUnset(request.userId)) { body["userId"] = request.userId; } let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, body: OpenApiUtil.parseToMap(body), }); let params = new $OpenApi.Params({ action: "SignOut", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/orgAccounts/signOut`, method: "POST", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new SignOutResponse({})); } /** * 强制登出专属帐号 * * @param request - SignOutRequest * @returns SignOutResponse */ async signOut(request: SignOutRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new SignOutHeaders({ }); return await this.signOutWithOptions(request, headers, runtime); } /** * 根据用户名排序 * * @param request - SortUserRequest * @param headers - SortUserHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns SortUserResponse */ async sortUserWithOptions(request: SortUserRequest, headers: SortUserHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let body : {[key: string ]: any} = { }; if (!Util.isUnset(request.sortType)) { body["sortType"] = request.sortType; } if (!Util.isUnset(request.userIdList)) { body["userIdList"] = request.userIdList; } let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, body: OpenApiUtil.parseToMap(body), }); let params = new $OpenApi.Params({ action: "SortUser", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/users/sort`, method: "POST", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new SortUserResponse({})); } /** * 根据用户名排序 * * @param request - SortUserRequest * @returns SortUserResponse */ async sortUser(request: SortUserRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new SortUserHeaders({ }); return await this.sortUserWithOptions(request, headers, runtime); } /** * 提交资源转交 * * @param request - SubmitHandoverResourceRequest * @param headers - SubmitHandoverResourceHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns SubmitHandoverResourceResponse */ async submitHandoverResourceWithOptions(request: SubmitHandoverResourceRequest, headers: SubmitHandoverResourceHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let body : {[key: string ]: any} = { }; if (!Util.isUnset(request.tasks)) { body["tasks"] = request.tasks; } if (!Util.isUnset(request.userId)) { body["userId"] = request.userId; } let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, body: OpenApiUtil.parseToMap(body), }); let params = new $OpenApi.Params({ action: "SubmitHandoverResource", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/assets/submitHandoverResource`, method: "POST", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new SubmitHandoverResourceResponse({})); } /** * 提交资源转交 * * @param request - SubmitHandoverResourceRequest * @returns SubmitHandoverResourceResponse */ async submitHandoverResource(request: SubmitHandoverResourceRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new SubmitHandoverResourceHeaders({ }); return await this.submitHandoverResourceWithOptions(request, headers, runtime); } /** * 人才标签:添加员工自定义标签 * * @param request - TalentAddCustomTagRequest * @param headers - TalentAddCustomTagHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns TalentAddCustomTagResponse */ async talentAddCustomTagWithOptions(request: TalentAddCustomTagRequest, headers: TalentAddCustomTagHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let body : {[key: string ]: any} = { }; if (!Util.isUnset(request.sortOrder)) { body["sortOrder"] = request.sortOrder; } if (!Util.isUnset(request.tagCode)) { body["tagCode"] = request.tagCode; } if (!Util.isUnset(request.tagName)) { body["tagName"] = request.tagName; } if (!Util.isUnset(request.userId)) { body["userId"] = request.userId; } let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, body: OpenApiUtil.parseToMap(body), }); let params = new $OpenApi.Params({ action: "TalentAddCustomTag", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/talentTags/addCustomTag`, method: "POST", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new TalentAddCustomTagResponse({})); } /** * 人才标签:添加员工自定义标签 * * @param request - TalentAddCustomTagRequest * @returns TalentAddCustomTagResponse */ async talentAddCustomTag(request: TalentAddCustomTagRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new TalentAddCustomTagHeaders({ }); return await this.talentAddCustomTagWithOptions(request, headers, runtime); } /** * 人才标签:添加员工客观标签 * * @param request - TalentAddObjectiveTagRequest * @param headers - TalentAddObjectiveTagHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns TalentAddObjectiveTagResponse */ async talentAddObjectiveTagWithOptions(request: TalentAddObjectiveTagRequest, headers: TalentAddObjectiveTagHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let body : {[key: string ]: any} = { }; if (!Util.isUnset(request.sortOrder)) { body["sortOrder"] = request.sortOrder; } if (!Util.isUnset(request.tagCode)) { body["tagCode"] = request.tagCode; } if (!Util.isUnset(request.tagName)) { body["tagName"] = request.tagName; } if (!Util.isUnset(request.userId)) { body["userId"] = request.userId; } let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, body: OpenApiUtil.parseToMap(body), }); let params = new $OpenApi.Params({ action: "TalentAddObjectiveTag", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/talentTags/addObjectiveTag`, method: "POST", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new TalentAddObjectiveTagResponse({})); } /** * 人才标签:添加员工客观标签 * * @param request - TalentAddObjectiveTagRequest * @returns TalentAddObjectiveTagResponse */ async talentAddObjectiveTag(request: TalentAddObjectiveTagRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new TalentAddObjectiveTagHeaders({ }); return await this.talentAddObjectiveTagWithOptions(request, headers, runtime); } /** * 人才标签:添加企业个性标签 * * @param request - TalentAddPersonalityTagRequest * @param headers - TalentAddPersonalityTagHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns TalentAddPersonalityTagResponse */ async talentAddPersonalityTagWithOptions(request: TalentAddPersonalityTagRequest, headers: TalentAddPersonalityTagHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let body : {[key: string ]: any} = { }; if (!Util.isUnset(request.categoryCode)) { body["categoryCode"] = request.categoryCode; } if (!Util.isUnset(request.categoryName)) { body["categoryName"] = request.categoryName; } if (!Util.isUnset(request.categorySortOrder)) { body["categorySortOrder"] = request.categorySortOrder; } if (!Util.isUnset(request.sortOrder)) { body["sortOrder"] = request.sortOrder; } if (!Util.isUnset(request.tagCode)) { body["tagCode"] = request.tagCode; } if (!Util.isUnset(request.tagName)) { body["tagName"] = request.tagName; } let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, body: OpenApiUtil.parseToMap(body), }); let params = new $OpenApi.Params({ action: "TalentAddPersonalityTag", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/talentTags/addPersonalityTag`, method: "POST", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new TalentAddPersonalityTagResponse({})); } /** * 人才标签:添加企业个性标签 * * @param request - TalentAddPersonalityTagRequest * @returns TalentAddPersonalityTagResponse */ async talentAddPersonalityTag(request: TalentAddPersonalityTagRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new TalentAddPersonalityTagHeaders({ }); return await this.talentAddPersonalityTagWithOptions(request, headers, runtime); } /** * 人才标签:删除员工自定义标签并清除所有点赞记录 * * @param request - TalentDeleteCustomTagRequest * @param headers - TalentDeleteCustomTagHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns TalentDeleteCustomTagResponse */ async talentDeleteCustomTagWithOptions(request: TalentDeleteCustomTagRequest, headers: TalentDeleteCustomTagHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let body : {[key: string ]: any} = { }; if (!Util.isUnset(request.tagCode)) { body["tagCode"] = request.tagCode; } if (!Util.isUnset(request.userId)) { body["userId"] = request.userId; } let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, body: OpenApiUtil.parseToMap(body), }); let params = new $OpenApi.Params({ action: "TalentDeleteCustomTag", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/talentTags/deleteCustomTagWithClearLike`, method: "POST", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new TalentDeleteCustomTagResponse({})); } /** * 人才标签:删除员工自定义标签并清除所有点赞记录 * * @param request - TalentDeleteCustomTagRequest * @returns TalentDeleteCustomTagResponse */ async talentDeleteCustomTag(request: TalentDeleteCustomTagRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new TalentDeleteCustomTagHeaders({ }); return await this.talentDeleteCustomTagWithOptions(request, headers, runtime); } /** * 人才标签:删除员工客观标签 * * @param request - TalentDeleteObjectiveTagRequest * @param headers - TalentDeleteObjectiveTagHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns TalentDeleteObjectiveTagResponse */ async talentDeleteObjectiveTagWithOptions(request: TalentDeleteObjectiveTagRequest, headers: TalentDeleteObjectiveTagHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let body : {[key: string ]: any} = { }; if (!Util.isUnset(request.tagCode)) { body["tagCode"] = request.tagCode; } if (!Util.isUnset(request.userId)) { body["userId"] = request.userId; } let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, body: OpenApiUtil.parseToMap(body), }); let params = new $OpenApi.Params({ action: "TalentDeleteObjectiveTag", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/talentTags/deleteObjectiveTag`, method: "POST", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new TalentDeleteObjectiveTagResponse({})); } /** * 人才标签:删除员工客观标签 * * @param request - TalentDeleteObjectiveTagRequest * @returns TalentDeleteObjectiveTagResponse */ async talentDeleteObjectiveTag(request: TalentDeleteObjectiveTagRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new TalentDeleteObjectiveTagHeaders({ }); return await this.talentDeleteObjectiveTagWithOptions(request, headers, runtime); } /** * 人才标签:删除企业个性标签 * * @param request - TalentDeletePersonalityTagRequest * @param headers - TalentDeletePersonalityTagHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns TalentDeletePersonalityTagResponse */ async talentDeletePersonalityTagWithOptions(request: TalentDeletePersonalityTagRequest, headers: TalentDeletePersonalityTagHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let body : {[key: string ]: any} = { }; if (!Util.isUnset(request.tagCode)) { body["tagCode"] = request.tagCode; } let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, body: OpenApiUtil.parseToMap(body), }); let params = new $OpenApi.Params({ action: "TalentDeletePersonalityTag", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/talentTags/deletePersonalityTag`, method: "POST", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new TalentDeletePersonalityTagResponse({})); } /** * 人才标签:删除企业个性标签 * * @param request - TalentDeletePersonalityTagRequest * @returns TalentDeletePersonalityTagResponse */ async talentDeletePersonalityTag(request: TalentDeletePersonalityTagRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new TalentDeletePersonalityTagHeaders({ }); return await this.talentDeletePersonalityTagWithOptions(request, headers, runtime); } /** * 人才标签:点赞/取消点赞标签 * * @param request - TalentLikeTagRequest * @param headers - TalentLikeTagHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns TalentLikeTagResponse */ async talentLikeTagWithOptions(request: TalentLikeTagRequest, headers: TalentLikeTagHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let body : {[key: string ]: any} = { }; if (!Util.isUnset(request.actionType)) { body["actionType"] = request.actionType; } if (!Util.isUnset(request.operatorUserId)) { body["operatorUserId"] = request.operatorUserId; } if (!Util.isUnset(request.tagCode)) { body["tagCode"] = request.tagCode; } if (!Util.isUnset(request.userId)) { body["userId"] = request.userId; } let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, body: OpenApiUtil.parseToMap(body), }); let params = new $OpenApi.Params({ action: "TalentLikeTag", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/talentTags/likeTag`, method: "POST", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new TalentLikeTagResponse({})); } /** * 人才标签:点赞/取消点赞标签 * * @param request - TalentLikeTagRequest * @returns TalentLikeTagResponse */ async talentLikeTag(request: TalentLikeTagRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new TalentLikeTagHeaders({ }); return await this.talentLikeTagWithOptions(request, headers, runtime); } /** * 人才标签:查询员工自定义标签 * * @param request - TalentQueryCustomTagRequest * @param headers - TalentQueryCustomTagHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns TalentQueryCustomTagResponse */ async talentQueryCustomTagWithOptions(request: TalentQueryCustomTagRequest, headers: TalentQueryCustomTagHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let query : {[key: string ]: any} = { }; if (!Util.isUnset(request.userId)) { query["userId"] = request.userId; } let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, query: OpenApiUtil.query(query), }); let params = new $OpenApi.Params({ action: "TalentQueryCustomTag", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/talentTags/queryCustomTag`, method: "GET", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new TalentQueryCustomTagResponse({})); } /** * 人才标签:查询员工自定义标签 * * @param request - TalentQueryCustomTagRequest * @returns TalentQueryCustomTagResponse */ async talentQueryCustomTag(request: TalentQueryCustomTagRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new TalentQueryCustomTagHeaders({ }); return await this.talentQueryCustomTagWithOptions(request, headers, runtime); } /** * 人才标签:查询员工客观标签 * * @param request - TalentQueryObjectiveTagRequest * @param headers - TalentQueryObjectiveTagHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns TalentQueryObjectiveTagResponse */ async talentQueryObjectiveTagWithOptions(request: TalentQueryObjectiveTagRequest, headers: TalentQueryObjectiveTagHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let query : {[key: string ]: any} = { }; if (!Util.isUnset(request.userId)) { query["userId"] = request.userId; } let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, query: OpenApiUtil.query(query), }); let params = new $OpenApi.Params({ action: "TalentQueryObjectiveTag", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/talentTags/queryObjectiveTag`, method: "GET", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new TalentQueryObjectiveTagResponse({})); } /** * 人才标签:查询员工客观标签 * * @param request - TalentQueryObjectiveTagRequest * @returns TalentQueryObjectiveTagResponse */ async talentQueryObjectiveTag(request: TalentQueryObjectiveTagRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new TalentQueryObjectiveTagHeaders({ }); return await this.talentQueryObjectiveTagWithOptions(request, headers, runtime); } /** * 人才标签:查询企业个性标签 * * @param headers - TalentQueryPersonalityTagHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns TalentQueryPersonalityTagResponse */ async talentQueryPersonalityTagWithOptions(headers: TalentQueryPersonalityTagHeaders, runtime: $Util.RuntimeOptions): Promise { let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, }); let params = new $OpenApi.Params({ action: "TalentQueryPersonalityTag", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/talentTags/queryPersonalityTag`, method: "GET", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new TalentQueryPersonalityTagResponse({})); } /** * 人才标签:查询企业个性标签 * @returns TalentQueryPersonalityTagResponse */ async talentQueryPersonalityTag(): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new TalentQueryPersonalityTagHeaders({ }); return await this.talentQueryPersonalityTagWithOptions(headers, runtime); } /** * 人才标签:分页查询指定标签的点赞记录 * * @param request - TalentQueryTagLikeDetailListRequest * @param headers - TalentQueryTagLikeDetailListHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns TalentQueryTagLikeDetailListResponse */ async talentQueryTagLikeDetailListWithOptions(request: TalentQueryTagLikeDetailListRequest, headers: TalentQueryTagLikeDetailListHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let query : {[key: string ]: any} = { }; if (!Util.isUnset(request.cursor)) { query["cursor"] = request.cursor; } if (!Util.isUnset(request.size)) { query["size"] = request.size; } if (!Util.isUnset(request.tagCode)) { query["tagCode"] = request.tagCode; } if (!Util.isUnset(request.userId)) { query["userId"] = request.userId; } let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, query: OpenApiUtil.query(query), }); let params = new $OpenApi.Params({ action: "TalentQueryTagLikeDetailList", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/talentTags/queryTagLikeDetailList`, method: "GET", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new TalentQueryTagLikeDetailListResponse({})); } /** * 人才标签:分页查询指定标签的点赞记录 * * @param request - TalentQueryTagLikeDetailListRequest * @returns TalentQueryTagLikeDetailListResponse */ async talentQueryTagLikeDetailList(request: TalentQueryTagLikeDetailListRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new TalentQueryTagLikeDetailListHeaders({ }); return await this.talentQueryTagLikeDetailListWithOptions(request, headers, runtime); } /** * 人才标签:查询点赞标签列表 * * @param request - TalentQueryTagLikeListRequest * @param headers - TalentQueryTagLikeListHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns TalentQueryTagLikeListResponse */ async talentQueryTagLikeListWithOptions(request: TalentQueryTagLikeListRequest, headers: TalentQueryTagLikeListHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let query : {[key: string ]: any} = { }; if (!Util.isUnset(request.operatorUserId)) { query["operatorUserId"] = request.operatorUserId; } if (!Util.isUnset(request.userId)) { query["userId"] = request.userId; } let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, query: OpenApiUtil.query(query), }); let params = new $OpenApi.Params({ action: "TalentQueryTagLikeList", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/talentTags/queryTagLikeList`, method: "GET", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new TalentQueryTagLikeListResponse({})); } /** * 人才标签:查询点赞标签列表 * * @param request - TalentQueryTagLikeListRequest * @returns TalentQueryTagLikeListResponse */ async talentQueryTagLikeList(request: TalentQueryTagLikeListRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new TalentQueryTagLikeListHeaders({ }); return await this.talentQueryTagLikeListWithOptions(request, headers, runtime); } /** * 普通帐号转换为专属帐号 * * @param request - TransformToExclusiveAccountRequest * @param headers - TransformToExclusiveAccountHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns TransformToExclusiveAccountResponse */ async transformToExclusiveAccountWithOptions(request: TransformToExclusiveAccountRequest, headers: TransformToExclusiveAccountHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let body : {[key: string ]: any} = { }; if (!Util.isUnset(request.idpDingTalk)) { body["idpDingTalk"] = request.idpDingTalk; } if (!Util.isUnset(request.initPassword)) { body["initPassword"] = request.initPassword; } if (!Util.isUnset(request.loginId)) { body["loginId"] = request.loginId; } if (!Util.isUnset(request.transformType)) { body["transformType"] = request.transformType; } if (!Util.isUnset(request.userId)) { body["userId"] = request.userId; } let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, body: OpenApiUtil.parseToMap(body), }); let params = new $OpenApi.Params({ action: "TransformToExclusiveAccount", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/orgAccount/transformToExclusiveAccounts`, method: "POST", authType: "AK", style: "ROA", reqBodyType: "json", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new TransformToExclusiveAccountResponse({})); } /** * 普通帐号转换为专属帐号 * * @param request - TransformToExclusiveAccountRequest * @returns TransformToExclusiveAccountResponse */ async transformToExclusiveAccount(request: TransformToExclusiveAccountRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new TransformToExclusiveAccountHeaders({ }); return await this.transformToExclusiveAccountWithOptions(request, headers, runtime); } /** * 企业账号转换为普通账号 * * @param request - TransformToNormalAccountRequest * @param headers - TransformToNormalAccountHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns TransformToNormalAccountResponse */ async transformToNormalAccountWithOptions(request: TransformToNormalAccountRequest, headers: TransformToNormalAccountHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let body : {[key: string ]: any} = { }; if (!Util.isUnset(request.userId)) { body["userId"] = request.userId; } let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, body: OpenApiUtil.parseToMap(body), }); let params = new $OpenApi.Params({ action: "TransformToNormalAccount", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/orgAccounts/transformToNormalAccount`, method: "POST", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new TransformToNormalAccountResponse({})); } /** * 企业账号转换为普通账号 * * @param request - TransformToNormalAccountRequest * @returns TransformToNormalAccountResponse */ async transformToNormalAccount(request: TransformToNormalAccountRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new TransformToNormalAccountHeaders({ }); return await this.transformToNormalAccountWithOptions(request, headers, runtime); } /** * 异步文件内容转译 * * @param request - TranslateFileRequest * @param headers - TranslateFileHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns TranslateFileResponse */ async translateFileWithOptions(request: TranslateFileRequest, headers: TranslateFileHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let body : {[key: string ]: any} = { }; if (!Util.isUnset(request.medias)) { body["medias"] = request.medias; } if (!Util.isUnset(request.outputFileName)) { body["outputFileName"] = request.outputFileName; } if (!Util.isUnset(request.unionId)) { body["unionId"] = request.unionId; } let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, body: OpenApiUtil.parseToMap(body), }); let params = new $OpenApi.Params({ action: "TranslateFile", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/files/translate`, method: "POST", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new TranslateFileResponse({})); } /** * 异步文件内容转译 * * @param request - TranslateFileRequest * @returns TranslateFileResponse */ async translateFile(request: TranslateFileRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new TranslateFileHeaders({ }); return await this.translateFileWithOptions(request, headers, runtime); } /** * 唯一查询用户名片 * * @param request - UniqueQueryUserCardRequest * @param headers - UniqueQueryUserCardHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns UniqueQueryUserCardResponse */ async uniqueQueryUserCardWithOptions(request: UniqueQueryUserCardRequest, headers: UniqueQueryUserCardHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let query : {[key: string ]: any} = { }; if (!Util.isUnset(request.templateId)) { query["templateId"] = request.templateId; } if (!Util.isUnset(request.unionId)) { query["unionId"] = request.unionId; } let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, query: OpenApiUtil.query(query), }); let params = new $OpenApi.Params({ action: "UniqueQueryUserCard", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/uniques/cards`, method: "GET", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new UniqueQueryUserCardResponse({})); } /** * 唯一查询用户名片 * * @param request - UniqueQueryUserCardRequest * @returns UniqueQueryUserCardResponse */ async uniqueQueryUserCard(request: UniqueQueryUserCardRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new UniqueQueryUserCardHeaders({ }); return await this.uniqueQueryUserCardWithOptions(request, headers, runtime); } /** * 更新(分支/伙伴)在(集团/合作空间)的属性信息 * * @param request - UpdateBranchAttributesInCooperateRequest * @param headers - UpdateBranchAttributesInCooperateHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns UpdateBranchAttributesInCooperateResponse */ async updateBranchAttributesInCooperateWithOptions(request: UpdateBranchAttributesInCooperateRequest, headers: UpdateBranchAttributesInCooperateHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, body: Util.toArray(request.body), }); let params = new $OpenApi.Params({ action: "UpdateBranchAttributesInCooperate", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/cooperateCorps/branchAttributes`, method: "PUT", authType: "AK", style: "ROA", reqBodyType: "json", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new UpdateBranchAttributesInCooperateResponse({})); } /** * 更新(分支/伙伴)在(集团/合作空间)的属性信息 * * @param request - UpdateBranchAttributesInCooperateRequest * @returns UpdateBranchAttributesInCooperateResponse */ async updateBranchAttributesInCooperate(request: UpdateBranchAttributesInCooperateRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new UpdateBranchAttributesInCooperateHeaders({ }); return await this.updateBranchAttributesInCooperateWithOptions(request, headers, runtime); } /** * 设置(分支/伙伴)在(集团/合作空间)的可见范围 * * @param request - UpdateBranchVisibleSettingInCooperateRequest * @param headers - UpdateBranchVisibleSettingInCooperateHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns UpdateBranchVisibleSettingInCooperateResponse */ async updateBranchVisibleSettingInCooperateWithOptions(request: UpdateBranchVisibleSettingInCooperateRequest, headers: UpdateBranchVisibleSettingInCooperateHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, body: Util.toArray(request.body), }); let params = new $OpenApi.Params({ action: "UpdateBranchVisibleSettingInCooperate", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/cooperateCorps/branchVisibleSettings`, method: "PUT", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "none", }); return $tea.cast(await this.execute(params, req, runtime), new UpdateBranchVisibleSettingInCooperateResponse({})); } /** * 设置(分支/伙伴)在(集团/合作空间)的可见范围 * * @param request - UpdateBranchVisibleSettingInCooperateRequest * @returns UpdateBranchVisibleSettingInCooperateResponse */ async updateBranchVisibleSettingInCooperate(request: UpdateBranchVisibleSettingInCooperateRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new UpdateBranchVisibleSettingInCooperateHeaders({ }); return await this.updateBranchVisibleSettingInCooperateWithOptions(request, headers, runtime); } /** * 更新通讯录组织架构隐藏设置 * * @param request - UpdateContactHideBySceneSettingRequest * @param headers - UpdateContactHideBySceneSettingHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns UpdateContactHideBySceneSettingResponse */ async updateContactHideBySceneSettingWithOptions(settingId: string, request: UpdateContactHideBySceneSettingRequest, headers: UpdateContactHideBySceneSettingHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let body : {[key: string ]: any} = { }; if (!Util.isUnset(request.description)) { body["description"] = request.description; } if (!Util.isUnset(request.excludeDeptIds)) { body["excludeDeptIds"] = request.excludeDeptIds; } if (!Util.isUnset(request.excludeTagIds)) { body["excludeTagIds"] = request.excludeTagIds; } if (!Util.isUnset(request.excludeUserIds)) { body["excludeUserIds"] = request.excludeUserIds; } if (!Util.isUnset(request.name)) { body["name"] = request.name; } if (!Util.isUnset(request.nodeListSceneConfig)) { body["nodeListSceneConfig"] = request.nodeListSceneConfig; } if (!Util.isUnset(request.objectDeptIds)) { body["objectDeptIds"] = request.objectDeptIds; } if (!Util.isUnset(request.objectTagIds)) { body["objectTagIds"] = request.objectTagIds; } if (!Util.isUnset(request.objectUserIds)) { body["objectUserIds"] = request.objectUserIds; } if (!Util.isUnset(request.profileSceneConfig)) { body["profileSceneConfig"] = request.profileSceneConfig; } if (!Util.isUnset(request.searchSceneConfig)) { body["searchSceneConfig"] = request.searchSceneConfig; } let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, body: OpenApiUtil.parseToMap(body), }); let params = new $OpenApi.Params({ action: "UpdateContactHideBySceneSetting", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/organizations/hides/settings/${settingId}`, method: "PUT", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new UpdateContactHideBySceneSettingResponse({})); } /** * 更新通讯录组织架构隐藏设置 * * @param request - UpdateContactHideBySceneSettingRequest * @returns UpdateContactHideBySceneSettingResponse */ async updateContactHideBySceneSetting(settingId: string, request: UpdateContactHideBySceneSettingRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new UpdateContactHideBySceneSettingHeaders({ }); return await this.updateContactHideBySceneSettingWithOptions(settingId, request, headers, runtime); } /** * 更新通讯录隐藏设置 * * @param request - UpdateContactHideSettingRequest * @param headers - UpdateContactHideSettingHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns UpdateContactHideSettingResponse */ async updateContactHideSettingWithOptions(request: UpdateContactHideSettingRequest, headers: UpdateContactHideSettingHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let body : {[key: string ]: any} = { }; if (!Util.isUnset(request.active)) { body["active"] = request.active; } if (!Util.isUnset(request.description)) { body["description"] = request.description; } if (!Util.isUnset(request.excludeDeptIds)) { body["excludeDeptIds"] = request.excludeDeptIds; } if (!Util.isUnset(request.excludeStaffIds)) { body["excludeStaffIds"] = request.excludeStaffIds; } if (!Util.isUnset(request.excludeTagIds)) { body["excludeTagIds"] = request.excludeTagIds; } if (!Util.isUnset(request.hideInSearch)) { body["hideInSearch"] = request.hideInSearch; } if (!Util.isUnset(request.hideInUserProfile)) { body["hideInUserProfile"] = request.hideInUserProfile; } if (!Util.isUnset(request.id)) { body["id"] = request.id; } if (!Util.isUnset(request.name)) { body["name"] = request.name; } if (!Util.isUnset(request.objectDeptIds)) { body["objectDeptIds"] = request.objectDeptIds; } if (!Util.isUnset(request.objectStaffIds)) { body["objectStaffIds"] = request.objectStaffIds; } if (!Util.isUnset(request.objectTagIds)) { body["objectTagIds"] = request.objectTagIds; } let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, body: OpenApiUtil.parseToMap(body), }); let params = new $OpenApi.Params({ action: "UpdateContactHideSetting", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/contactHideSettings`, method: "PUT", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new UpdateContactHideSettingResponse({})); } /** * 更新通讯录隐藏设置 * * @param request - UpdateContactHideSettingRequest * @returns UpdateContactHideSettingResponse */ async updateContactHideSetting(request: UpdateContactHideSettingRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new UpdateContactHideSettingHeaders({ }); return await this.updateContactHideSettingWithOptions(request, headers, runtime); } /** * 新增或修改限制查看通讯录设置 * * @param request - UpdateContactRestrictSettingRequest * @param headers - UpdateContactRestrictSettingHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns UpdateContactRestrictSettingResponse */ async updateContactRestrictSettingWithOptions(request: UpdateContactRestrictSettingRequest, headers: UpdateContactRestrictSettingHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let body : {[key: string ]: any} = { }; if (!Util.isUnset(request.active)) { body["active"] = request.active; } if (!Util.isUnset(request.description)) { body["description"] = request.description; } if (!Util.isUnset(request.excludeDeptIds)) { body["excludeDeptIds"] = request.excludeDeptIds; } if (!Util.isUnset(request.excludeTagIds)) { body["excludeTagIds"] = request.excludeTagIds; } if (!Util.isUnset(request.excludeUserIds)) { body["excludeUserIds"] = request.excludeUserIds; } if (!Util.isUnset(request.id)) { body["id"] = request.id; } if (!Util.isUnset(request.name)) { body["name"] = request.name; } if (!Util.isUnset(request.restrictInSearch)) { body["restrictInSearch"] = request.restrictInSearch; } if (!Util.isUnset(request.restrictInUserProfile)) { body["restrictInUserProfile"] = request.restrictInUserProfile; } if (!Util.isUnset(request.subjectDeptIds)) { body["subjectDeptIds"] = request.subjectDeptIds; } if (!Util.isUnset(request.subjectTagIds)) { body["subjectTagIds"] = request.subjectTagIds; } if (!Util.isUnset(request.subjectUserIds)) { body["subjectUserIds"] = request.subjectUserIds; } if (!Util.isUnset(request.type)) { body["type"] = request.type; } let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, body: OpenApiUtil.parseToMap(body), }); let params = new $OpenApi.Params({ action: "UpdateContactRestrictSetting", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/restrictions/settings`, method: "PUT", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new UpdateContactRestrictSettingResponse({})); } /** * 新增或修改限制查看通讯录设置 * * @param request - UpdateContactRestrictSettingRequest * @returns UpdateContactRestrictSettingResponse */ async updateContactRestrictSetting(request: UpdateContactRestrictSettingRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new UpdateContactRestrictSettingHeaders({ }); return await this.updateContactRestrictSettingWithOptions(request, headers, runtime); } /** * 通讯录可见性部门设置子部门设置优先 * * @param request - UpdateDeptSettngTailFirstRequest * @param headers - UpdateDeptSettngTailFirstHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns UpdateDeptSettngTailFirstResponse */ async updateDeptSettngTailFirstWithOptions(request: UpdateDeptSettngTailFirstRequest, headers: UpdateDeptSettngTailFirstHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let body : {[key: string ]: any} = { }; if (!Util.isUnset(request.enable)) { body["enable"] = request.enable; } let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, body: OpenApiUtil.parseToMap(body), }); let params = new $OpenApi.Params({ action: "UpdateDeptSettngTailFirst", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/depts/settings/priorities`, method: "POST", authType: "AK", style: "ROA", reqBodyType: "formData", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new UpdateDeptSettngTailFirstResponse({})); } /** * 通讯录可见性部门设置子部门设置优先 * * @param request - UpdateDeptSettngTailFirstRequest * @returns UpdateDeptSettngTailFirstResponse */ async updateDeptSettngTailFirst(request: UpdateDeptSettngTailFirstRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new UpdateDeptSettngTailFirstHeaders({ }); return await this.updateDeptSettngTailFirstWithOptions(request, headers, runtime); } /** * 更新企业员工属性字段可见性设置 * * @param request - UpdateEmpAttrbuteVisibilitySettingRequest * @param headers - UpdateEmpAttrbuteVisibilitySettingHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns UpdateEmpAttrbuteVisibilitySettingResponse */ async updateEmpAttrbuteVisibilitySettingWithOptions(request: UpdateEmpAttrbuteVisibilitySettingRequest, headers: UpdateEmpAttrbuteVisibilitySettingHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let body : {[key: string ]: any} = { }; if (!Util.isUnset(request.active)) { body["active"] = request.active; } if (!Util.isUnset(request.description)) { body["description"] = request.description; } if (!Util.isUnset(request.excludeDeptIds)) { body["excludeDeptIds"] = request.excludeDeptIds; } if (!Util.isUnset(request.excludeStaffIds)) { body["excludeStaffIds"] = request.excludeStaffIds; } if (!Util.isUnset(request.excludeTagIds)) { body["excludeTagIds"] = request.excludeTagIds; } if (!Util.isUnset(request.hideFields)) { body["hideFields"] = request.hideFields; } if (!Util.isUnset(request.id)) { body["id"] = request.id; } if (!Util.isUnset(request.name)) { body["name"] = request.name; } if (!Util.isUnset(request.objectDeptIds)) { body["objectDeptIds"] = request.objectDeptIds; } if (!Util.isUnset(request.objectStaffIds)) { body["objectStaffIds"] = request.objectStaffIds; } if (!Util.isUnset(request.objectTagIds)) { body["objectTagIds"] = request.objectTagIds; } let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, body: OpenApiUtil.parseToMap(body), }); let params = new $OpenApi.Params({ action: "UpdateEmpAttrbuteVisibilitySetting", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/staffAttributes/visibilitySettings`, method: "POST", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new UpdateEmpAttrbuteVisibilitySettingResponse({})); } /** * 更新企业员工属性字段可见性设置 * * @param request - UpdateEmpAttrbuteVisibilitySettingRequest * @returns UpdateEmpAttrbuteVisibilitySettingResponse */ async updateEmpAttrbuteVisibilitySetting(request: UpdateEmpAttrbuteVisibilitySettingRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new UpdateEmpAttrbuteVisibilitySettingHeaders({ }); return await this.updateEmpAttrbuteVisibilitySettingWithOptions(request, headers, runtime); } /** * 更新员工属性分场景隐藏设置 * * @param request - UpdateEmpAttributeHideBySceneSettingRequest * @param headers - UpdateEmpAttributeHideBySceneSettingHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns UpdateEmpAttributeHideBySceneSettingResponse */ async updateEmpAttributeHideBySceneSettingWithOptions(settingId: string, request: UpdateEmpAttributeHideBySceneSettingRequest, headers: UpdateEmpAttributeHideBySceneSettingHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let body : {[key: string ]: any} = { }; if (!Util.isUnset(request.chatSubtitleConfig)) { body["chatSubtitleConfig"] = request.chatSubtitleConfig; } if (!Util.isUnset(request.description)) { body["description"] = request.description; } if (!Util.isUnset(request.excludeDeptIds)) { body["excludeDeptIds"] = request.excludeDeptIds; } if (!Util.isUnset(request.excludeTagIds)) { body["excludeTagIds"] = request.excludeTagIds; } if (!Util.isUnset(request.excludeUserIds)) { body["excludeUserIds"] = request.excludeUserIds; } if (!Util.isUnset(request.hideFields)) { body["hideFields"] = request.hideFields; } if (!Util.isUnset(request.name)) { body["name"] = request.name; } if (!Util.isUnset(request.objectDeptIds)) { body["objectDeptIds"] = request.objectDeptIds; } if (!Util.isUnset(request.objectTagIds)) { body["objectTagIds"] = request.objectTagIds; } if (!Util.isUnset(request.objectUserIds)) { body["objectUserIds"] = request.objectUserIds; } if (!Util.isUnset(request.profileSceneConfig)) { body["profileSceneConfig"] = request.profileSceneConfig; } if (!Util.isUnset(request.searchSceneConfig)) { body["searchSceneConfig"] = request.searchSceneConfig; } let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, body: OpenApiUtil.parseToMap(body), }); let params = new $OpenApi.Params({ action: "UpdateEmpAttributeHideBySceneSetting", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/empAttributes/hides/settings/${settingId}`, method: "PUT", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new UpdateEmpAttributeHideBySceneSettingResponse({})); } /** * 更新员工属性分场景隐藏设置 * * @param request - UpdateEmpAttributeHideBySceneSettingRequest * @returns UpdateEmpAttributeHideBySceneSettingResponse */ async updateEmpAttributeHideBySceneSetting(settingId: string, request: UpdateEmpAttributeHideBySceneSettingRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new UpdateEmpAttributeHideBySceneSettingHeaders({ }); return await this.updateEmpAttributeHideBySceneSettingWithOptions(settingId, request, headers, runtime); } /** * 更新管理组 * * @param request - UpdateManagementGroupRequest * @param headers - UpdateManagementGroupHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns UpdateManagementGroupResponse */ async updateManagementGroupWithOptions(groupId: string, request: UpdateManagementGroupRequest, headers: UpdateManagementGroupHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let body : {[key: string ]: any} = { }; if (!Util.isUnset(request.groupName)) { body["groupName"] = request.groupName; } if (!Util.isUnset(request.members)) { body["members"] = request.members; } if (!Util.isUnset(request.resourceIds)) { body["resourceIds"] = request.resourceIds; } if (!Util.isUnset(request.scope)) { body["scope"] = request.scope; } let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, body: OpenApiUtil.parseToMap(body), }); let params = new $OpenApi.Params({ action: "UpdateManagementGroup", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/managementGroups/${groupId}`, method: "PUT", authType: "AK", style: "ROA", reqBodyType: "json", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new UpdateManagementGroupResponse({})); } /** * 更新管理组 * * @param request - UpdateManagementGroupRequest * @returns UpdateManagementGroupResponse */ async updateManagementGroup(groupId: string, request: UpdateManagementGroupRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new UpdateManagementGroupHeaders({ }); return await this.updateManagementGroupWithOptions(groupId, request, headers, runtime); } /** * 设置高管模式 * * @param request - UpdateSeniorSettingRequest * @param headers - UpdateSeniorSettingHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns UpdateSeniorSettingResponse */ async updateSeniorSettingWithOptions(request: UpdateSeniorSettingRequest, headers: UpdateSeniorSettingHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let body : {[key: string ]: any} = { }; if (!Util.isUnset(request.open)) { body["open"] = request.open; } if (!Util.isUnset(request.permitDeptIds)) { body["permitDeptIds"] = request.permitDeptIds; } if (!Util.isUnset(request.permitStaffIds)) { body["permitStaffIds"] = request.permitStaffIds; } if (!Util.isUnset(request.permitTagIds)) { body["permitTagIds"] = request.permitTagIds; } if (!Util.isUnset(request.protectScenes)) { body["protectScenes"] = request.protectScenes; } if (!Util.isUnset(request.seniorStaffId)) { body["seniorStaffId"] = request.seniorStaffId; } let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, body: OpenApiUtil.parseToMap(body), }); let params = new $OpenApi.Params({ action: "UpdateSeniorSetting", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/seniorSettings`, method: "POST", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "none", }); return $tea.cast(await this.execute(params, req, runtime), new UpdateSeniorSettingResponse({})); } /** * 设置高管模式 * * @param request - UpdateSeniorSettingRequest * @returns UpdateSeniorSettingResponse */ async updateSeniorSetting(request: UpdateSeniorSettingRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new UpdateSeniorSettingHeaders({ }); return await this.updateSeniorSettingWithOptions(request, headers, runtime); } /** * 三方通过该接口更新个人履历的审核状态 * * @param request - UpdateTitleAuditStatusRequest * @param headers - UpdateTitleAuditStatusHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns UpdateTitleAuditStatusResponse */ async updateTitleAuditStatusWithOptions(request: UpdateTitleAuditStatusRequest, headers: UpdateTitleAuditStatusHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let body : {[key: string ]: any} = { }; if (!Util.isUnset(request.authStatus)) { body["authStatus"] = request.authStatus; } if (!Util.isUnset(request.educationLevel)) { body["educationLevel"] = request.educationLevel; } if (!Util.isUnset(request.extension)) { body["extension"] = request.extension; } if (!Util.isUnset(request.major)) { body["major"] = request.major; } if (!Util.isUnset(request.position)) { body["position"] = request.position; } if (!Util.isUnset(request.reasonCode)) { body["reasonCode"] = request.reasonCode; } if (!Util.isUnset(request.reasonMsg)) { body["reasonMsg"] = request.reasonMsg; } if (!Util.isUnset(request.school)) { body["school"] = request.school; } if (!Util.isUnset(request.type)) { body["type"] = request.type; } if (!Util.isUnset(request.unionId)) { body["unionId"] = request.unionId; } if (!Util.isUnset(request.uuid)) { body["uuid"] = request.uuid; } let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, body: OpenApiUtil.parseToMap(body), }); let params = new $OpenApi.Params({ action: "UpdateTitleAuditStatus", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/userTitles/auditStatuses`, method: "PUT", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new UpdateTitleAuditStatusResponse({})); } /** * 三方通过该接口更新个人履历的审核状态 * * @param request - UpdateTitleAuditStatusRequest * @returns UpdateTitleAuditStatusResponse */ async updateTitleAuditStatus(request: UpdateTitleAuditStatusRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new UpdateTitleAuditStatusHeaders({ }); return await this.updateTitleAuditStatusWithOptions(request, headers, runtime); } /** * 更新用户个人状态 * * @param request - UpdateUserOwnnessRequest * @param headers - UpdateUserOwnnessHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns UpdateUserOwnnessResponse */ async updateUserOwnnessWithOptions(userId: string, request: UpdateUserOwnnessRequest, headers: UpdateUserOwnnessHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let body : {[key: string ]: any} = { }; if (!Util.isUnset(request.deletedFlag)) { body["deletedFlag"] = request.deletedFlag; } if (!Util.isUnset(request.endTime)) { body["endTime"] = request.endTime; } if (!Util.isUnset(request.id)) { body["id"] = request.id; } if (!Util.isUnset(request.ownenssType)) { body["ownenssType"] = request.ownenssType; } if (!Util.isUnset(request.startTime)) { body["startTime"] = request.startTime; } let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, body: OpenApiUtil.parseToMap(body), }); let params = new $OpenApi.Params({ action: "UpdateUserOwnness", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/user/${userId}/ownness`, method: "PUT", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new UpdateUserOwnnessResponse({})); } /** * 更新用户个人状态 * * @param request - UpdateUserOwnnessRequest * @returns UpdateUserOwnnessResponse */ async updateUserOwnness(userId: string, request: UpdateUserOwnnessRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new UpdateUserOwnnessHeaders({ }); return await this.updateUserOwnnessWithOptions(userId, request, headers, runtime); } /** * 用户个人信息接口 * * @param tmpReq - UserProfileRequest * @param headers - UserProfileHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns UserProfileResponse */ async userProfileWithOptions(tmpReq: UserProfileRequest, headers: UserProfileHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(tmpReq); let request = new UserProfileShrinkRequest({ }); OpenApiUtil.convert(tmpReq, request); if (!Util.isUnset(tmpReq.uids)) { request.uidsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.uids, "uids", "json"); } let query : {[key: string ]: any} = { }; if (!Util.isUnset(request.uidsShrink)) { query["uids"] = request.uidsShrink; } let realHeaders : {[key: string ]: string} = { }; if (!Util.isUnset(headers.commonHeaders)) { realHeaders = headers.commonHeaders; } if (!Util.isUnset(headers.xAcsDingtalkAccessToken)) { realHeaders["x-acs-dingtalk-access-token"] = Util.toJSONString(headers.xAcsDingtalkAccessToken); } let req = new $OpenApi.OpenApiRequest({ headers: realHeaders, query: OpenApiUtil.query(query), }); let params = new $OpenApi.Params({ action: "UserProfile", version: "contact_1.0", protocol: "HTTP", pathname: `/v1.0/contact/user/profile`, method: "POST", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new UserProfileResponse({})); } /** * 用户个人信息接口 * * @param request - UserProfileRequest * @returns UserProfileResponse */ async userProfile(request: UserProfileRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new UserProfileHeaders({ }); return await this.userProfileWithOptions(request, headers, runtime); } }