// 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 AddTeamHeaders 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 AddTeamRequest extends $tea.Model { /** * @remarks * This parameter is required. * * @example * team_name */ name?: string; option?: AddTeamRequestOption; /** * @remarks * This parameter is required. * * @example * union_id */ operatorId?: string; static names(): { [key: string]: string } { return { name: 'name', option: 'option', operatorId: 'operatorId', }; } static types(): { [key: string]: any } { return { name: 'string', option: AddTeamRequestOption, operatorId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class AddTeamResponseBody extends $tea.Model { team?: AddTeamResponseBodyTeam; static names(): { [key: string]: string } { return { team: 'team', }; } static types(): { [key: string]: any } { return { team: AddTeamResponseBodyTeam, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class AddTeamResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: AddTeamResponseBody; 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: AddTeamResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class AddWorkspaceHeaders 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 AddWorkspaceRequest extends $tea.Model { /** * @remarks * This parameter is required. * * @example * workspace_name */ name?: string; option?: AddWorkspaceRequestOption; /** * @remarks * This parameter is required. * * @example * union_id */ operatorId?: string; static names(): { [key: string]: string } { return { name: 'name', option: 'option', operatorId: 'operatorId', }; } static types(): { [key: string]: any } { return { name: 'string', option: AddWorkspaceRequestOption, operatorId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class AddWorkspaceResponseBody extends $tea.Model { workspace?: AddWorkspaceResponseBodyWorkspace; static names(): { [key: string]: string } { return { workspace: 'workspace', }; } static types(): { [key: string]: any } { return { workspace: AddWorkspaceResponseBodyWorkspace, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class AddWorkspaceResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: AddWorkspaceResponseBody; 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: AddWorkspaceResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class AddWorkspacesManagerHeaders 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 AddWorkspacesManagerRequest extends $tea.Model { /** * @remarks * This parameter is required. * * @example * [1] */ userIds?: string[]; /** * @remarks * This parameter is required. * * @example * union_id */ operatorId?: string; /** * @remarks * This parameter is required. * * @example * workspace_id */ workspaceId?: string; static names(): { [key: string]: string } { return { userIds: 'userIds', operatorId: 'operatorId', workspaceId: 'workspaceId', }; } static types(): { [key: string]: any } { return { userIds: { 'type': 'array', 'itemType': 'string' }, operatorId: 'string', workspaceId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class AddWorkspacesManagerResponseBody extends $tea.Model { /** * @example * true */ 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 AddWorkspacesManagerResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: AddWorkspacesManagerResponseBody; 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: AddWorkspacesManagerResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class DeleteTeamHeaders 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 DeleteTeamRequest extends $tea.Model { /** * @remarks * This parameter is required. * * @example * union_id */ operatorId?: string; static names(): { [key: string]: string } { return { operatorId: 'operatorId', }; } static types(): { [key: string]: any } { return { operatorId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class DeleteTeamResponseBody extends $tea.Model { /** * @example * true */ 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 DeleteTeamResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: DeleteTeamResponseBody; 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: DeleteTeamResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetDefaultHandOverUserHeaders 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 GetDefaultHandOverUserRequest extends $tea.Model { /** * @remarks * This parameter is required. * * @example * union_id */ operatorId?: string; static names(): { [key: string]: string } { return { operatorId: 'operatorId', }; } static types(): { [key: string]: any } { return { operatorId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetDefaultHandOverUserResponseBody extends $tea.Model { /** * @example * staff_id */ defaultHandoverUserId?: string; static names(): { [key: string]: string } { return { defaultHandoverUserId: 'defaultHandoverUserId', }; } static types(): { [key: string]: any } { return { defaultHandoverUserId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetDefaultHandOverUserResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: GetDefaultHandOverUserResponseBody; 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: GetDefaultHandOverUserResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetMineWorkspaceHeaders 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 GetMineWorkspaceRequest extends $tea.Model { /** * @remarks * This parameter is required. * * @example * union_id */ operatorId?: string; static names(): { [key: string]: string } { return { operatorId: 'operatorId', }; } static types(): { [key: string]: any } { return { operatorId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetMineWorkspaceResponseBody extends $tea.Model { workspace?: GetMineWorkspaceResponseBodyWorkspace; static names(): { [key: string]: string } { return { workspace: 'workspace', }; } static types(): { [key: string]: any } { return { workspace: GetMineWorkspaceResponseBodyWorkspace, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetMineWorkspaceResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: GetMineWorkspaceResponseBody; 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: GetMineWorkspaceResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetNodeHeaders 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 GetNodeRequest extends $tea.Model { /** * @remarks * This parameter is required. * * @example * union_id */ operatorId?: string; /** * @example * false */ withPermissionRole?: boolean; /** * @example * false */ withStatisticalInfo?: boolean; static names(): { [key: string]: string } { return { operatorId: 'operatorId', withPermissionRole: 'withPermissionRole', withStatisticalInfo: 'withStatisticalInfo', }; } static types(): { [key: string]: any } { return { operatorId: 'string', withPermissionRole: 'boolean', withStatisticalInfo: 'boolean', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetNodeResponseBody extends $tea.Model { node?: GetNodeResponseBodyNode; static names(): { [key: string]: string } { return { node: 'node', }; } static types(): { [key: string]: any } { return { node: GetNodeResponseBodyNode, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetNodeResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: GetNodeResponseBody; 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: GetNodeResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetNodeByUrlHeaders 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 GetNodeByUrlRequest extends $tea.Model { option?: GetNodeByUrlRequestOption; /** * @remarks * This parameter is required. * * @example * node_url */ url?: string; /** * @remarks * This parameter is required. * * @example * union_id */ operatorId?: string; static names(): { [key: string]: string } { return { option: 'option', url: 'url', operatorId: 'operatorId', }; } static types(): { [key: string]: any } { return { option: GetNodeByUrlRequestOption, url: 'string', operatorId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetNodeByUrlResponseBody extends $tea.Model { node?: GetNodeByUrlResponseBodyNode; static names(): { [key: string]: string } { return { node: 'node', }; } static types(): { [key: string]: any } { return { node: GetNodeByUrlResponseBodyNode, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetNodeByUrlResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: GetNodeByUrlResponseBody; 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: GetNodeByUrlResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetNodesHeaders 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 GetNodesRequest extends $tea.Model { /** * @remarks * This parameter is required. */ nodeIds?: string[]; option?: GetNodesRequestOption; /** * @remarks * This parameter is required. * * @example * union_id */ operatorId?: string; static names(): { [key: string]: string } { return { nodeIds: 'nodeIds', option: 'option', operatorId: 'operatorId', }; } static types(): { [key: string]: any } { return { nodeIds: { 'type': 'array', 'itemType': 'string' }, option: GetNodesRequestOption, operatorId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetNodesResponseBody extends $tea.Model { nodes?: GetNodesResponseBodyNodes[]; static names(): { [key: string]: string } { return { nodes: 'nodes', }; } static types(): { [key: string]: any } { return { nodes: { 'type': 'array', 'itemType': GetNodesResponseBodyNodes }, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetNodesResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: GetNodesResponseBody; 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: GetNodesResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetTeamHeaders 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 GetTeamRequest extends $tea.Model { /** * @remarks * This parameter is required. * * @example * union_id */ operatorId?: string; static names(): { [key: string]: string } { return { operatorId: 'operatorId', }; } static types(): { [key: string]: any } { return { operatorId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetTeamResponseBody extends $tea.Model { team?: GetTeamResponseBodyTeam; static names(): { [key: string]: string } { return { team: 'team', }; } static types(): { [key: string]: any } { return { team: GetTeamResponseBodyTeam, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetTeamResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: GetTeamResponseBody; 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: GetTeamResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetWorkspaceHeaders 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 GetWorkspaceRequest extends $tea.Model { /** * @remarks * This parameter is required. * * @example * union_id */ operatorId?: string; /** * @example * false */ withPermissionRole?: boolean; static names(): { [key: string]: string } { return { operatorId: 'operatorId', withPermissionRole: 'withPermissionRole', }; } static types(): { [key: string]: any } { return { operatorId: 'string', withPermissionRole: 'boolean', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetWorkspaceResponseBody extends $tea.Model { workspace?: GetWorkspaceResponseBodyWorkspace; static names(): { [key: string]: string } { return { workspace: 'workspace', }; } static types(): { [key: string]: any } { return { workspace: GetWorkspaceResponseBodyWorkspace, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetWorkspaceResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: GetWorkspaceResponseBody; 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: GetWorkspaceResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetWorkspacesHeaders 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 GetWorkspacesRequest extends $tea.Model { option?: GetWorkspacesRequestOption; /** * @remarks * This parameter is required. */ workspaceIds?: string[]; /** * @remarks * This parameter is required. * * @example * union_id */ operatorId?: string; static names(): { [key: string]: string } { return { option: 'option', workspaceIds: 'workspaceIds', operatorId: 'operatorId', }; } static types(): { [key: string]: any } { return { option: GetWorkspacesRequestOption, workspaceIds: { 'type': 'array', 'itemType': 'string' }, operatorId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetWorkspacesResponseBody extends $tea.Model { workspaces?: GetWorkspacesResponseBodyWorkspaces[]; static names(): { [key: string]: string } { return { workspaces: 'workspaces', }; } static types(): { [key: string]: any } { return { workspaces: { 'type': 'array', 'itemType': GetWorkspacesResponseBodyWorkspaces }, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetWorkspacesResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: GetWorkspacesResponseBody; 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: GetWorkspacesResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class HandOverWorkspaceHeaders 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 HandOverWorkspaceRequest extends $tea.Model { /** * @remarks * This parameter is required. * * @example * source_owner_id */ sourceOwnerId?: string; /** * @remarks * This parameter is required. * * @example * source_owner_id */ targetOwnerId?: string; /** * @remarks * This parameter is required. * * @example * workspace_id */ workspaceId?: string; /** * @remarks * This parameter is required. * * @example * union_id */ operatorId?: string; static names(): { [key: string]: string } { return { sourceOwnerId: 'sourceOwnerId', targetOwnerId: 'targetOwnerId', workspaceId: 'workspaceId', operatorId: 'operatorId', }; } static types(): { [key: string]: any } { return { sourceOwnerId: 'string', targetOwnerId: 'string', workspaceId: 'string', operatorId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class HandOverWorkspaceResponseBody extends $tea.Model { /** * @example * true */ 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 HandOverWorkspaceResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: HandOverWorkspaceResponseBody; 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: HandOverWorkspaceResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class ListNodesHeaders 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 ListNodesRequest extends $tea.Model { /** * @example * 30 */ maxResults?: number; /** * @example * next_token */ nextToken?: string; /** * @remarks * This parameter is required. * * @example * union_id */ operatorId?: string; /** * @remarks * This parameter is required. * * @example * parent_node_id */ parentNodeId?: string; /** * @example * false */ withPermissionRole?: boolean; static names(): { [key: string]: string } { return { maxResults: 'maxResults', nextToken: 'nextToken', operatorId: 'operatorId', parentNodeId: 'parentNodeId', withPermissionRole: 'withPermissionRole', }; } static types(): { [key: string]: any } { return { maxResults: 'number', nextToken: 'string', operatorId: 'string', parentNodeId: 'string', withPermissionRole: 'boolean', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class ListNodesResponseBody extends $tea.Model { /** * @example * next_token */ nextToken?: string; nodes?: ListNodesResponseBodyNodes[]; static names(): { [key: string]: string } { return { nextToken: 'nextToken', nodes: 'nodes', }; } static types(): { [key: string]: any } { return { nextToken: 'string', nodes: { 'type': 'array', 'itemType': ListNodesResponseBodyNodes }, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class ListNodesResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: ListNodesResponseBody; 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: ListNodesResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class ListOrgWorkspacesHeaders 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 ListOrgWorkspacesRequest extends $tea.Model { /** * @remarks * This parameter is required. * * @example * union_id */ operatorId?: string; /** * @example * 1 */ pageNumber?: number; /** * @example * 10 */ pageSize?: number; /** * @example * 0 */ status?: number; static names(): { [key: string]: string } { return { operatorId: 'operatorId', pageNumber: 'pageNumber', pageSize: 'pageSize', status: 'status', }; } static types(): { [key: string]: any } { return { operatorId: 'string', pageNumber: 'number', pageSize: 'number', status: 'number', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class ListOrgWorkspacesResponseBody extends $tea.Model { pageNumber?: number; pageSize?: number; workspaces?: ListOrgWorkspacesResponseBodyWorkspaces[]; static names(): { [key: string]: string } { return { pageNumber: 'pageNumber', pageSize: 'pageSize', workspaces: 'workspaces', }; } static types(): { [key: string]: any } { return { pageNumber: 'number', pageSize: 'number', workspaces: { 'type': 'array', 'itemType': ListOrgWorkspacesResponseBodyWorkspaces }, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class ListOrgWorkspacesResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: ListOrgWorkspacesResponseBody; 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: ListOrgWorkspacesResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class ListTeamsHeaders 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 ListTeamsRequest extends $tea.Model { /** * @example * 30 */ maxResults?: number; /** * @example * next_token */ nextToken?: string; /** * @remarks * This parameter is required. * * @example * union_id */ operatorId?: string; static names(): { [key: string]: string } { return { maxResults: 'maxResults', nextToken: 'nextToken', operatorId: 'operatorId', }; } static types(): { [key: string]: any } { return { maxResults: 'number', nextToken: 'string', operatorId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class ListTeamsResponseBody extends $tea.Model { /** * @example * next_token */ nextToken?: string; teams?: ListTeamsResponseBodyTeams[]; static names(): { [key: string]: string } { return { nextToken: 'nextToken', teams: 'teams', }; } static types(): { [key: string]: any } { return { nextToken: 'string', teams: { 'type': 'array', 'itemType': ListTeamsResponseBodyTeams }, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class ListTeamsResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: ListTeamsResponseBody; 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: ListTeamsResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class ListWorkspacesHeaders 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 ListWorkspacesRequest extends $tea.Model { /** * @example * 30 */ maxResults?: number; /** * @example * next_token */ nextToken?: string; /** * @remarks * This parameter is required. * * @example * union_id */ operatorId?: string; /** * @example * VIEW_TIME_DESC */ orderBy?: string; /** * @example * team_id */ teamId?: string; /** * @example * false */ withPermissionRole?: boolean; static names(): { [key: string]: string } { return { maxResults: 'maxResults', nextToken: 'nextToken', operatorId: 'operatorId', orderBy: 'orderBy', teamId: 'teamId', withPermissionRole: 'withPermissionRole', }; } static types(): { [key: string]: any } { return { maxResults: 'number', nextToken: 'string', operatorId: 'string', orderBy: 'string', teamId: 'string', withPermissionRole: 'boolean', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class ListWorkspacesResponseBody extends $tea.Model { /** * @example * next_token */ nextToken?: string; workspaces?: ListWorkspacesResponseBodyWorkspaces[]; static names(): { [key: string]: string } { return { nextToken: 'nextToken', workspaces: 'workspaces', }; } static types(): { [key: string]: any } { return { nextToken: 'string', workspaces: { 'type': 'array', 'itemType': ListWorkspacesResponseBodyWorkspaces }, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class ListWorkspacesResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: ListWorkspacesResponseBody; 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: ListWorkspacesResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class SetDefaultHandOverUserHeaders 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 SetDefaultHandOverUserRequest extends $tea.Model { /** * @example * staff_id */ defaultHandoverUserId?: string; /** * @remarks * This parameter is required. * * @example * union_id */ operatorId?: string; static names(): { [key: string]: string } { return { defaultHandoverUserId: 'defaultHandoverUserId', operatorId: 'operatorId', }; } static types(): { [key: string]: any } { return { defaultHandoverUserId: 'string', operatorId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class SetDefaultHandOverUserResponseBody extends $tea.Model { /** * @example * true */ 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 SetDefaultHandOverUserResponse extends $tea.Model { headers?: { [key: string]: string }; statusCode?: number; body?: SetDefaultHandOverUserResponseBody; 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: SetDefaultHandOverUserResponseBody, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class AddTeamRequestOptionIcon extends $tea.Model { /** * @example * URL */ type?: string; /** * @example * icon_url */ value?: string; static names(): { [key: string]: string } { return { type: 'type', value: 'value', }; } static types(): { [key: string]: any } { return { type: 'string', value: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class AddTeamRequestOption extends $tea.Model { /** * @example * team_cover */ cover?: string; /** * @example * team_description */ description?: string; icon?: AddTeamRequestOptionIcon; static names(): { [key: string]: string } { return { cover: 'cover', description: 'description', icon: 'icon', }; } static types(): { [key: string]: any } { return { cover: 'string', description: 'string', icon: AddTeamRequestOptionIcon, }; } constructor(map?: { [key: string]: any }) { super(map); } } export class AddTeamResponseBodyTeamIcon extends $tea.Model { /** * @example * URL */ type?: string; /** * @example * icon_url */ value?: string; static names(): { [key: string]: string } { return { type: 'type', value: 'value', }; } static types(): { [key: string]: any } { return { type: 'string', value: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class AddTeamResponseBodyTeam extends $tea.Model { /** * @example * corp_id */ corpId?: string; /** * @example * team_cover */ cover?: string; /** * @example * team_create_time */ createTime?: string; /** * @example * team_creator_id */ creatorId?: string; /** * @example * team_description */ description?: string; icon?: AddTeamResponseBodyTeamIcon; /** * @example * team_modified_time */ modifiedTime?: string; /** * @example * team_modifier_id */ modifierId?: string; /** * @example * team_name */ name?: string; /** * @example * team_id */ teamId?: string; static names(): { [key: string]: string } { return { corpId: 'corpId', cover: 'cover', createTime: 'createTime', creatorId: 'creatorId', description: 'description', icon: 'icon', modifiedTime: 'modifiedTime', modifierId: 'modifierId', name: 'name', teamId: 'teamId', }; } static types(): { [key: string]: any } { return { corpId: 'string', cover: 'string', createTime: 'string', creatorId: 'string', description: 'string', icon: AddTeamResponseBodyTeamIcon, modifiedTime: 'string', modifierId: 'string', name: 'string', teamId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class AddWorkspaceRequestOption extends $tea.Model { /** * @example * workspace_description */ description?: string; /** * @example * team_id */ teamId?: string; static names(): { [key: string]: string } { return { description: 'description', teamId: 'teamId', }; } static types(): { [key: string]: any } { return { description: 'string', teamId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class AddWorkspaceResponseBodyWorkspaceIcon extends $tea.Model { /** * @example * URL */ type?: string; /** * @example * icon_url */ value?: string; static names(): { [key: string]: string } { return { type: 'type', value: 'value', }; } static types(): { [key: string]: any } { return { type: 'string', value: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class AddWorkspaceResponseBodyWorkspace extends $tea.Model { /** * @example * corp_id */ corpId?: string; /** * @example * workspace_cover */ cover?: string; /** * @example * workspace_create_time */ createTime?: string; /** * @example * workspace_creator_id */ creatorId?: string; /** * @example * workspace_description */ description?: string; icon?: AddWorkspaceResponseBodyWorkspaceIcon; /** * @example * workspace_modified_time */ modifiedTime?: string; /** * @example * workspace_modifier_id */ modifierId?: string; /** * @example * workspace_name */ name?: string; /** * @example * READER */ permissionRole?: string; /** * @example * root_node_uuid */ rootNodeId?: string; /** * @example * team_id */ teamId?: string; /** * @example * TEAM */ type?: string; /** * @example * workspace_url */ url?: string; /** * @example * workspace_id */ workspaceId?: string; static names(): { [key: string]: string } { return { corpId: 'corpId', cover: 'cover', createTime: 'createTime', creatorId: 'creatorId', description: 'description', icon: 'icon', modifiedTime: 'modifiedTime', modifierId: 'modifierId', name: 'name', permissionRole: 'permissionRole', rootNodeId: 'rootNodeId', teamId: 'teamId', type: 'type', url: 'url', workspaceId: 'workspaceId', }; } static types(): { [key: string]: any } { return { corpId: 'string', cover: 'string', createTime: 'string', creatorId: 'string', description: 'string', icon: AddWorkspaceResponseBodyWorkspaceIcon, modifiedTime: 'string', modifierId: 'string', name: 'string', permissionRole: 'string', rootNodeId: 'string', teamId: 'string', type: 'string', url: 'string', workspaceId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetMineWorkspaceResponseBodyWorkspaceIcon extends $tea.Model { /** * @example * URL */ type?: string; /** * @example * icon_url */ value?: string; static names(): { [key: string]: string } { return { type: 'type', value: 'value', }; } static types(): { [key: string]: any } { return { type: 'string', value: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetMineWorkspaceResponseBodyWorkspace extends $tea.Model { /** * @example * corp_id */ corpId?: string; /** * @example * workspace_cover */ cover?: string; /** * @example * workspace_create_time */ createTime?: string; /** * @example * workspace_creator_id */ creatorId?: string; /** * @example * workspace_description */ description?: string; icon?: GetMineWorkspaceResponseBodyWorkspaceIcon; /** * @example * workspace_modified_time */ modifiedTime?: string; /** * @example * workspace_modifier_id */ modifierId?: string; /** * @example * workspace_name */ name?: string; /** * @example * READER */ permissionRole?: string; /** * @example * root_node_uuid */ rootNodeId?: string; /** * @example * team_id */ teamId?: string; /** * @example * TEAM */ type?: string; /** * @example * workspace_url */ url?: string; /** * @example * workspace_id */ workspaceId?: string; static names(): { [key: string]: string } { return { corpId: 'corpId', cover: 'cover', createTime: 'createTime', creatorId: 'creatorId', description: 'description', icon: 'icon', modifiedTime: 'modifiedTime', modifierId: 'modifierId', name: 'name', permissionRole: 'permissionRole', rootNodeId: 'rootNodeId', teamId: 'teamId', type: 'type', url: 'url', workspaceId: 'workspaceId', }; } static types(): { [key: string]: any } { return { corpId: 'string', cover: 'string', createTime: 'string', creatorId: 'string', description: 'string', icon: GetMineWorkspaceResponseBodyWorkspaceIcon, modifiedTime: 'string', modifierId: 'string', name: 'string', permissionRole: 'string', rootNodeId: 'string', teamId: 'string', type: 'string', url: 'string', workspaceId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetNodeResponseBodyNodeStatisticalInfo extends $tea.Model { /** * @example * 123 */ wordCount?: number; static names(): { [key: string]: string } { return { wordCount: 'wordCount', }; } static types(): { [key: string]: any } { return { wordCount: 'number', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetNodeResponseBodyNode extends $tea.Model { /** * @example * ALIDOC */ category?: string; /** * @example * node_create_time */ createTime?: string; /** * @example * node_creator_id */ creatorId?: string; /** * @example * adoc */ extension?: string; /** * @example * false */ hasChildren?: boolean; /** * @example * node_modified_time */ modifiedTime?: string; /** * @example * node_modifier_id */ modifierId?: string; /** * @example * node_name */ name?: string; /** * @example * node_id */ nodeId?: string; /** * @example * READER */ permissionRole?: string; /** * @example * 512 */ size?: number; statisticalInfo?: GetNodeResponseBodyNodeStatisticalInfo; /** * @example * FILE */ type?: string; /** * @example * node_url */ url?: string; /** * @example * workspace_id */ workspaceId?: string; static names(): { [key: string]: string } { return { category: 'category', createTime: 'createTime', creatorId: 'creatorId', extension: 'extension', hasChildren: 'hasChildren', modifiedTime: 'modifiedTime', modifierId: 'modifierId', name: 'name', nodeId: 'nodeId', permissionRole: 'permissionRole', size: 'size', statisticalInfo: 'statisticalInfo', type: 'type', url: 'url', workspaceId: 'workspaceId', }; } static types(): { [key: string]: any } { return { category: 'string', createTime: 'string', creatorId: 'string', extension: 'string', hasChildren: 'boolean', modifiedTime: 'string', modifierId: 'string', name: 'string', nodeId: 'string', permissionRole: 'string', size: 'number', statisticalInfo: GetNodeResponseBodyNodeStatisticalInfo, type: 'string', url: 'string', workspaceId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetNodeByUrlRequestOption extends $tea.Model { /** * @example * false */ withPermissionRole?: boolean; /** * @example * false */ withStatisticalInfo?: boolean; static names(): { [key: string]: string } { return { withPermissionRole: 'withPermissionRole', withStatisticalInfo: 'withStatisticalInfo', }; } static types(): { [key: string]: any } { return { withPermissionRole: 'boolean', withStatisticalInfo: 'boolean', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetNodeByUrlResponseBodyNodeStatisticalInfo extends $tea.Model { /** * @example * 123 */ wordCount?: number; static names(): { [key: string]: string } { return { wordCount: 'wordCount', }; } static types(): { [key: string]: any } { return { wordCount: 'number', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetNodeByUrlResponseBodyNode extends $tea.Model { /** * @example * ALIDOC */ category?: string; /** * @example * node_create_time */ createTime?: string; /** * @example * node_creator_id */ creatorId?: string; /** * @example * adoc */ extension?: string; /** * @example * false */ hasChildren?: boolean; /** * @example * node_modified_time */ modifiedTime?: string; /** * @example * node_modifier_id */ modifierId?: string; /** * @example * node_name */ name?: string; /** * @example * node_id */ nodeId?: string; /** * @example * READER */ permissionRole?: string; /** * @example * 512 */ size?: number; statisticalInfo?: GetNodeByUrlResponseBodyNodeStatisticalInfo; /** * @example * FILE */ type?: string; /** * @example * node_url */ url?: string; /** * @example * workspace_id */ workspaceId?: string; static names(): { [key: string]: string } { return { category: 'category', createTime: 'createTime', creatorId: 'creatorId', extension: 'extension', hasChildren: 'hasChildren', modifiedTime: 'modifiedTime', modifierId: 'modifierId', name: 'name', nodeId: 'nodeId', permissionRole: 'permissionRole', size: 'size', statisticalInfo: 'statisticalInfo', type: 'type', url: 'url', workspaceId: 'workspaceId', }; } static types(): { [key: string]: any } { return { category: 'string', createTime: 'string', creatorId: 'string', extension: 'string', hasChildren: 'boolean', modifiedTime: 'string', modifierId: 'string', name: 'string', nodeId: 'string', permissionRole: 'string', size: 'number', statisticalInfo: GetNodeByUrlResponseBodyNodeStatisticalInfo, type: 'string', url: 'string', workspaceId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetNodesRequestOption extends $tea.Model { /** * @example * false */ withPermissionRole?: boolean; /** * @example * false */ withStatisticalInfo?: boolean; static names(): { [key: string]: string } { return { withPermissionRole: 'withPermissionRole', withStatisticalInfo: 'withStatisticalInfo', }; } static types(): { [key: string]: any } { return { withPermissionRole: 'boolean', withStatisticalInfo: 'boolean', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetNodesResponseBodyNodesStatisticalInfo extends $tea.Model { /** * @example * 123 */ wordCount?: number; static names(): { [key: string]: string } { return { wordCount: 'wordCount', }; } static types(): { [key: string]: any } { return { wordCount: 'number', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetNodesResponseBodyNodes extends $tea.Model { /** * @example * ALIDOC */ category?: string; /** * @example * node_create_time */ createTime?: string; /** * @example * node_creator_id */ creatorId?: string; /** * @example * adoc */ extension?: string; /** * @example * false */ hasChildren?: boolean; /** * @example * node_modified_time */ modifiedTime?: string; /** * @example * node_modifier_id */ modifierId?: string; /** * @example * node_name */ name?: string; /** * @example * node_id */ nodeId?: string; /** * @example * READER */ permissionRole?: string; /** * @example * 512 */ size?: number; statisticalInfo?: GetNodesResponseBodyNodesStatisticalInfo; /** * @example * FILE */ type?: string; /** * @example * node_url */ url?: string; /** * @example * workspace_id */ workspaceId?: string; static names(): { [key: string]: string } { return { category: 'category', createTime: 'createTime', creatorId: 'creatorId', extension: 'extension', hasChildren: 'hasChildren', modifiedTime: 'modifiedTime', modifierId: 'modifierId', name: 'name', nodeId: 'nodeId', permissionRole: 'permissionRole', size: 'size', statisticalInfo: 'statisticalInfo', type: 'type', url: 'url', workspaceId: 'workspaceId', }; } static types(): { [key: string]: any } { return { category: 'string', createTime: 'string', creatorId: 'string', extension: 'string', hasChildren: 'boolean', modifiedTime: 'string', modifierId: 'string', name: 'string', nodeId: 'string', permissionRole: 'string', size: 'number', statisticalInfo: GetNodesResponseBodyNodesStatisticalInfo, type: 'string', url: 'string', workspaceId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetTeamResponseBodyTeamIcon extends $tea.Model { /** * @example * URL */ type?: string; /** * @example * icon_url */ value?: string; static names(): { [key: string]: string } { return { type: 'type', value: 'value', }; } static types(): { [key: string]: any } { return { type: 'string', value: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetTeamResponseBodyTeam extends $tea.Model { /** * @example * corp_id */ corpId?: string; /** * @example * team_cover */ cover?: string; /** * @example * team_create_time */ createTime?: string; /** * @example * team_creator_id */ creatorId?: string; /** * @example * team_description */ description?: string; icon?: GetTeamResponseBodyTeamIcon; /** * @example * team_modified_time */ modifiedTime?: string; /** * @example * team_modifier_id */ modifierId?: string; /** * @example * team_name */ name?: string; /** * @example * team_id */ teamId?: string; static names(): { [key: string]: string } { return { corpId: 'corpId', cover: 'cover', createTime: 'createTime', creatorId: 'creatorId', description: 'description', icon: 'icon', modifiedTime: 'modifiedTime', modifierId: 'modifierId', name: 'name', teamId: 'teamId', }; } static types(): { [key: string]: any } { return { corpId: 'string', cover: 'string', createTime: 'string', creatorId: 'string', description: 'string', icon: GetTeamResponseBodyTeamIcon, modifiedTime: 'string', modifierId: 'string', name: 'string', teamId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetWorkspaceResponseBodyWorkspaceIcon extends $tea.Model { /** * @example * URL */ type?: string; /** * @example * icon_url */ value?: string; static names(): { [key: string]: string } { return { type: 'type', value: 'value', }; } static types(): { [key: string]: any } { return { type: 'string', value: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetWorkspaceResponseBodyWorkspace extends $tea.Model { /** * @example * corp_id */ corpId?: string; /** * @example * workspace_cover */ cover?: string; /** * @example * workspace_create_time */ createTime?: string; /** * @example * workspace_creator_id */ creatorId?: string; /** * @example * workspace_description */ description?: string; icon?: GetWorkspaceResponseBodyWorkspaceIcon; /** * @example * workspace_modified_time */ modifiedTime?: string; /** * @example * workspace_modifier_id */ modifierId?: string; /** * @example * workspace_name */ name?: string; /** * @example * READER */ permissionRole?: string; /** * @example * root_node_uuid */ rootNodeId?: string; /** * @example * team_id */ teamId?: string; /** * @example * TEAM */ type?: string; /** * @example * workspace_url */ url?: string; /** * @example * workspace_id */ workspaceId?: string; static names(): { [key: string]: string } { return { corpId: 'corpId', cover: 'cover', createTime: 'createTime', creatorId: 'creatorId', description: 'description', icon: 'icon', modifiedTime: 'modifiedTime', modifierId: 'modifierId', name: 'name', permissionRole: 'permissionRole', rootNodeId: 'rootNodeId', teamId: 'teamId', type: 'type', url: 'url', workspaceId: 'workspaceId', }; } static types(): { [key: string]: any } { return { corpId: 'string', cover: 'string', createTime: 'string', creatorId: 'string', description: 'string', icon: GetWorkspaceResponseBodyWorkspaceIcon, modifiedTime: 'string', modifierId: 'string', name: 'string', permissionRole: 'string', rootNodeId: 'string', teamId: 'string', type: 'string', url: 'string', workspaceId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetWorkspacesRequestOption extends $tea.Model { /** * @example * false */ withPermissionRole?: boolean; static names(): { [key: string]: string } { return { withPermissionRole: 'withPermissionRole', }; } static types(): { [key: string]: any } { return { withPermissionRole: 'boolean', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetWorkspacesResponseBodyWorkspacesIcon extends $tea.Model { /** * @example * URL */ type?: string; /** * @example * icon_url */ value?: string; static names(): { [key: string]: string } { return { type: 'type', value: 'value', }; } static types(): { [key: string]: any } { return { type: 'string', value: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class GetWorkspacesResponseBodyWorkspaces extends $tea.Model { /** * @example * corp_id */ corpId?: string; /** * @example * workspace_cover */ cover?: string; /** * @example * workspace_create_time */ createTime?: string; /** * @example * workspace_creator_id */ creatorId?: string; /** * @example * workspace_description */ description?: string; icon?: GetWorkspacesResponseBodyWorkspacesIcon; /** * @example * workspace_modified_time */ modifiedTime?: string; /** * @example * workspace_modifier_id */ modifierId?: string; /** * @example * workspace_name */ name?: string; /** * @example * READER */ permissionRole?: string; /** * @example * root_node_uuid */ rootNodeId?: string; /** * @example * team_id */ teamId?: string; /** * @example * TEAM */ type?: string; /** * @example * workspace_url */ url?: string; /** * @example * workspace_id */ workspaceId?: string; static names(): { [key: string]: string } { return { corpId: 'corpId', cover: 'cover', createTime: 'createTime', creatorId: 'creatorId', description: 'description', icon: 'icon', modifiedTime: 'modifiedTime', modifierId: 'modifierId', name: 'name', permissionRole: 'permissionRole', rootNodeId: 'rootNodeId', teamId: 'teamId', type: 'type', url: 'url', workspaceId: 'workspaceId', }; } static types(): { [key: string]: any } { return { corpId: 'string', cover: 'string', createTime: 'string', creatorId: 'string', description: 'string', icon: GetWorkspacesResponseBodyWorkspacesIcon, modifiedTime: 'string', modifierId: 'string', name: 'string', permissionRole: 'string', rootNodeId: 'string', teamId: 'string', type: 'string', url: 'string', workspaceId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class ListNodesResponseBodyNodesStatisticalInfo extends $tea.Model { /** * @example * 123 */ wordCount?: number; static names(): { [key: string]: string } { return { wordCount: 'wordCount', }; } static types(): { [key: string]: any } { return { wordCount: 'number', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class ListNodesResponseBodyNodes extends $tea.Model { /** * @example * ALIDOC */ category?: string; /** * @example * node_create_time */ createTime?: string; /** * @example * node_creator_id */ creatorId?: string; /** * @example * adoc */ extension?: string; /** * @example * false */ hasChildren?: boolean; /** * @example * node_modified_time */ modifiedTime?: string; /** * @example * node_modifier_id */ modifierId?: string; /** * @example * node_name */ name?: string; /** * @example * node_id */ nodeId?: string; /** * @example * READER */ permissionRole?: string; /** * @example * 512 */ size?: number; statisticalInfo?: ListNodesResponseBodyNodesStatisticalInfo; /** * @example * FILE */ type?: string; /** * @example * node_url */ url?: string; /** * @example * workspace_id */ workspaceId?: string; static names(): { [key: string]: string } { return { category: 'category', createTime: 'createTime', creatorId: 'creatorId', extension: 'extension', hasChildren: 'hasChildren', modifiedTime: 'modifiedTime', modifierId: 'modifierId', name: 'name', nodeId: 'nodeId', permissionRole: 'permissionRole', size: 'size', statisticalInfo: 'statisticalInfo', type: 'type', url: 'url', workspaceId: 'workspaceId', }; } static types(): { [key: string]: any } { return { category: 'string', createTime: 'string', creatorId: 'string', extension: 'string', hasChildren: 'boolean', modifiedTime: 'string', modifierId: 'string', name: 'string', nodeId: 'string', permissionRole: 'string', size: 'number', statisticalInfo: ListNodesResponseBodyNodesStatisticalInfo, type: 'string', url: 'string', workspaceId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class ListOrgWorkspacesResponseBodyWorkspaces extends $tea.Model { /** * @example * 0 */ createTime?: string; /** * @example * workspace_id */ rootDentryUuid?: string; /** * @example * 0 */ status?: number; /** * @example * url */ url?: string; /** * @example * workspace_id */ workspaceId?: string; /** * @example * workspace_name */ workspaceName?: string; static names(): { [key: string]: string } { return { createTime: 'createTime', rootDentryUuid: 'rootDentryUuid', status: 'status', url: 'url', workspaceId: 'workspaceId', workspaceName: 'workspaceName', }; } static types(): { [key: string]: any } { return { createTime: 'string', rootDentryUuid: 'string', status: 'number', url: 'string', workspaceId: 'string', workspaceName: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class ListTeamsResponseBodyTeamsIcon extends $tea.Model { /** * @example * URL */ type?: string; /** * @example * icon_url */ value?: string; static names(): { [key: string]: string } { return { type: 'type', value: 'value', }; } static types(): { [key: string]: any } { return { type: 'string', value: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class ListTeamsResponseBodyTeams extends $tea.Model { /** * @example * corp_id */ corpId?: string; /** * @example * team_cover */ cover?: string; /** * @example * team_create_time */ createTime?: string; /** * @example * team_creator_id */ creatorId?: string; /** * @example * team_description */ description?: string; icon?: ListTeamsResponseBodyTeamsIcon; /** * @example * team_modified_time */ modifiedTime?: string; /** * @example * team_modifier_id */ modifierId?: string; /** * @example * team_name */ name?: string; /** * @example * team_id */ teamId?: string; static names(): { [key: string]: string } { return { corpId: 'corpId', cover: 'cover', createTime: 'createTime', creatorId: 'creatorId', description: 'description', icon: 'icon', modifiedTime: 'modifiedTime', modifierId: 'modifierId', name: 'name', teamId: 'teamId', }; } static types(): { [key: string]: any } { return { corpId: 'string', cover: 'string', createTime: 'string', creatorId: 'string', description: 'string', icon: ListTeamsResponseBodyTeamsIcon, modifiedTime: 'string', modifierId: 'string', name: 'string', teamId: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class ListWorkspacesResponseBodyWorkspacesIcon extends $tea.Model { /** * @example * URL */ type?: string; /** * @example * icon_url */ value?: string; static names(): { [key: string]: string } { return { type: 'type', value: 'value', }; } static types(): { [key: string]: any } { return { type: 'string', value: 'string', }; } constructor(map?: { [key: string]: any }) { super(map); } } export class ListWorkspacesResponseBodyWorkspaces extends $tea.Model { /** * @example * corp_id */ corpId?: string; /** * @example * workspace_cover */ cover?: string; /** * @example * workspace_create_time */ createTime?: string; /** * @example * workspace_creator_id */ creatorId?: string; /** * @example * workspace_description */ description?: string; icon?: ListWorkspacesResponseBodyWorkspacesIcon; /** * @example * workspace_modified_time */ modifiedTime?: string; /** * @example * workspace_modifier_id */ modifierId?: string; /** * @example * workspace_name */ name?: string; /** * @example * READER */ permissionRole?: string; /** * @example * root_node_uuid */ rootNodeId?: string; /** * @example * team_id */ teamId?: string; /** * @example * TEAM */ type?: string; /** * @example * workspace_url */ url?: string; /** * @example * workspace_id */ workspaceId?: string; static names(): { [key: string]: string } { return { corpId: 'corpId', cover: 'cover', createTime: 'createTime', creatorId: 'creatorId', description: 'description', icon: 'icon', modifiedTime: 'modifiedTime', modifierId: 'modifierId', name: 'name', permissionRole: 'permissionRole', rootNodeId: 'rootNodeId', teamId: 'teamId', type: 'type', url: 'url', workspaceId: 'workspaceId', }; } static types(): { [key: string]: any } { return { corpId: 'string', cover: 'string', createTime: 'string', creatorId: 'string', description: 'string', icon: ListWorkspacesResponseBodyWorkspacesIcon, modifiedTime: 'string', modifierId: 'string', name: 'string', permissionRole: 'string', rootNodeId: 'string', teamId: 'string', type: 'string', url: 'string', workspaceId: '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 - AddTeamRequest * @param headers - AddTeamHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns AddTeamResponse */ async addTeamWithOptions(request: AddTeamRequest, headers: AddTeamHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let query : {[key: string ]: any} = { }; if (!Util.isUnset(request.operatorId)) { query["operatorId"] = request.operatorId; } let body : {[key: string ]: any} = { }; if (!Util.isUnset(request.name)) { body["name"] = request.name; } if (!Util.isUnset(request.option)) { body["option"] = request.option; } 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: "AddTeam", version: "wiki_2.0", protocol: "HTTP", pathname: `/v2.0/wiki/teams`, method: "POST", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new AddTeamResponse({})); } /** * 新建知识小组 * * @param request - AddTeamRequest * @returns AddTeamResponse */ async addTeam(request: AddTeamRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new AddTeamHeaders({ }); return await this.addTeamWithOptions(request, headers, runtime); } /** * 新建知识库 * * @param request - AddWorkspaceRequest * @param headers - AddWorkspaceHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns AddWorkspaceResponse */ async addWorkspaceWithOptions(request: AddWorkspaceRequest, headers: AddWorkspaceHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let query : {[key: string ]: any} = { }; if (!Util.isUnset(request.operatorId)) { query["operatorId"] = request.operatorId; } let body : {[key: string ]: any} = { }; if (!Util.isUnset(request.name)) { body["name"] = request.name; } if (!Util.isUnset(request.option)) { body["option"] = request.option; } 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: "AddWorkspace", version: "wiki_2.0", protocol: "HTTP", pathname: `/v2.0/wiki/workspaces`, method: "POST", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new AddWorkspaceResponse({})); } /** * 新建知识库 * * @param request - AddWorkspaceRequest * @returns AddWorkspaceResponse */ async addWorkspace(request: AddWorkspaceRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new AddWorkspaceHeaders({ }); return await this.addWorkspaceWithOptions(request, headers, runtime); } /** * 添加知识库管理员 * * @param request - AddWorkspacesManagerRequest * @param headers - AddWorkspacesManagerHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns AddWorkspacesManagerResponse */ async addWorkspacesManagerWithOptions(request: AddWorkspacesManagerRequest, headers: AddWorkspacesManagerHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let query : {[key: string ]: any} = { }; if (!Util.isUnset(request.operatorId)) { query["operatorId"] = request.operatorId; } if (!Util.isUnset(request.workspaceId)) { query["workspaceId"] = request.workspaceId; } let body : {[key: string ]: any} = { }; if (!Util.isUnset(request.userIds)) { body["userIds"] = request.userIds; } 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: "AddWorkspacesManager", version: "wiki_2.0", protocol: "HTTP", pathname: `/v2.0/wiki/workspaces/managers`, method: "POST", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new AddWorkspacesManagerResponse({})); } /** * 添加知识库管理员 * * @param request - AddWorkspacesManagerRequest * @returns AddWorkspacesManagerResponse */ async addWorkspacesManager(request: AddWorkspacesManagerRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new AddWorkspacesManagerHeaders({ }); return await this.addWorkspacesManagerWithOptions(request, headers, runtime); } /** * 删除知识小组 * * @param request - DeleteTeamRequest * @param headers - DeleteTeamHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns DeleteTeamResponse */ async deleteTeamWithOptions(teamId: string, request: DeleteTeamRequest, headers: DeleteTeamHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let query : {[key: string ]: any} = { }; if (!Util.isUnset(request.operatorId)) { query["operatorId"] = request.operatorId; } 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: "DeleteTeam", version: "wiki_2.0", protocol: "HTTP", pathname: `/v2.0/wiki/teams/${teamId}`, method: "DELETE", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new DeleteTeamResponse({})); } /** * 删除知识小组 * * @param request - DeleteTeamRequest * @returns DeleteTeamResponse */ async deleteTeam(teamId: string, request: DeleteTeamRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new DeleteTeamHeaders({ }); return await this.deleteTeamWithOptions(teamId, request, headers, runtime); } /** * 查询员工离职时知识库默认转交人 * * @param request - GetDefaultHandOverUserRequest * @param headers - GetDefaultHandOverUserHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns GetDefaultHandOverUserResponse */ async getDefaultHandOverUserWithOptions(request: GetDefaultHandOverUserRequest, headers: GetDefaultHandOverUserHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let query : {[key: string ]: any} = { }; if (!Util.isUnset(request.operatorId)) { query["operatorId"] = request.operatorId; } 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: "GetDefaultHandOverUser", version: "wiki_2.0", protocol: "HTTP", pathname: `/v2.0/wiki/managementSettings/defaultHandOverUsers`, method: "GET", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new GetDefaultHandOverUserResponse({})); } /** * 查询员工离职时知识库默认转交人 * * @param request - GetDefaultHandOverUserRequest * @returns GetDefaultHandOverUserResponse */ async getDefaultHandOverUser(request: GetDefaultHandOverUserRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new GetDefaultHandOverUserHeaders({ }); return await this.getDefaultHandOverUserWithOptions(request, headers, runtime); } /** * 获取我的文档 * * @param request - GetMineWorkspaceRequest * @param headers - GetMineWorkspaceHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns GetMineWorkspaceResponse */ async getMineWorkspaceWithOptions(request: GetMineWorkspaceRequest, headers: GetMineWorkspaceHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let query : {[key: string ]: any} = { }; if (!Util.isUnset(request.operatorId)) { query["operatorId"] = request.operatorId; } 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: "GetMineWorkspace", version: "wiki_2.0", protocol: "HTTP", pathname: `/v2.0/wiki/mineWorkspaces`, method: "GET", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new GetMineWorkspaceResponse({})); } /** * 获取我的文档 * * @param request - GetMineWorkspaceRequest * @returns GetMineWorkspaceResponse */ async getMineWorkspace(request: GetMineWorkspaceRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new GetMineWorkspaceHeaders({ }); return await this.getMineWorkspaceWithOptions(request, headers, runtime); } /** * 获取节点 * * @param request - GetNodeRequest * @param headers - GetNodeHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns GetNodeResponse */ async getNodeWithOptions(nodeId: string, request: GetNodeRequest, headers: GetNodeHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let query : {[key: string ]: any} = { }; if (!Util.isUnset(request.operatorId)) { query["operatorId"] = request.operatorId; } if (!Util.isUnset(request.withPermissionRole)) { query["withPermissionRole"] = request.withPermissionRole; } if (!Util.isUnset(request.withStatisticalInfo)) { query["withStatisticalInfo"] = request.withStatisticalInfo; } 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: "GetNode", version: "wiki_2.0", protocol: "HTTP", pathname: `/v2.0/wiki/nodes/${nodeId}`, method: "GET", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new GetNodeResponse({})); } /** * 获取节点 * * @param request - GetNodeRequest * @returns GetNodeResponse */ async getNode(nodeId: string, request: GetNodeRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new GetNodeHeaders({ }); return await this.getNodeWithOptions(nodeId, request, headers, runtime); } /** * 通过链接获取节点 * * @param request - GetNodeByUrlRequest * @param headers - GetNodeByUrlHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns GetNodeByUrlResponse */ async getNodeByUrlWithOptions(request: GetNodeByUrlRequest, headers: GetNodeByUrlHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let query : {[key: string ]: any} = { }; if (!Util.isUnset(request.operatorId)) { query["operatorId"] = request.operatorId; } let body : {[key: string ]: any} = { }; if (!Util.isUnset(request.option)) { body["option"] = request.option; } if (!Util.isUnset(request.url)) { body["url"] = request.url; } 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: "GetNodeByUrl", version: "wiki_2.0", protocol: "HTTP", pathname: `/v2.0/wiki/nodes/queryByUrl`, method: "POST", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new GetNodeByUrlResponse({})); } /** * 通过链接获取节点 * * @param request - GetNodeByUrlRequest * @returns GetNodeByUrlResponse */ async getNodeByUrl(request: GetNodeByUrlRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new GetNodeByUrlHeaders({ }); return await this.getNodeByUrlWithOptions(request, headers, runtime); } /** * 批量获取节点 * * @param request - GetNodesRequest * @param headers - GetNodesHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns GetNodesResponse */ async getNodesWithOptions(request: GetNodesRequest, headers: GetNodesHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let query : {[key: string ]: any} = { }; if (!Util.isUnset(request.operatorId)) { query["operatorId"] = request.operatorId; } let body : {[key: string ]: any} = { }; if (!Util.isUnset(request.nodeIds)) { body["nodeIds"] = request.nodeIds; } if (!Util.isUnset(request.option)) { body["option"] = request.option; } 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: "GetNodes", version: "wiki_2.0", protocol: "HTTP", pathname: `/v2.0/wiki/nodes/batchQuery`, method: "POST", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new GetNodesResponse({})); } /** * 批量获取节点 * * @param request - GetNodesRequest * @returns GetNodesResponse */ async getNodes(request: GetNodesRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new GetNodesHeaders({ }); return await this.getNodesWithOptions(request, headers, runtime); } /** * 获取知识小组 * * @param request - GetTeamRequest * @param headers - GetTeamHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns GetTeamResponse */ async getTeamWithOptions(teamId: string, request: GetTeamRequest, headers: GetTeamHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let query : {[key: string ]: any} = { }; if (!Util.isUnset(request.operatorId)) { query["operatorId"] = request.operatorId; } 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: "GetTeam", version: "wiki_2.0", protocol: "HTTP", pathname: `/v2.0/wiki/teams/${teamId}`, method: "GET", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new GetTeamResponse({})); } /** * 获取知识小组 * * @param request - GetTeamRequest * @returns GetTeamResponse */ async getTeam(teamId: string, request: GetTeamRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new GetTeamHeaders({ }); return await this.getTeamWithOptions(teamId, request, headers, runtime); } /** * 获取知识库 * * @param request - GetWorkspaceRequest * @param headers - GetWorkspaceHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns GetWorkspaceResponse */ async getWorkspaceWithOptions(workspaceId: string, request: GetWorkspaceRequest, headers: GetWorkspaceHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let query : {[key: string ]: any} = { }; if (!Util.isUnset(request.operatorId)) { query["operatorId"] = request.operatorId; } if (!Util.isUnset(request.withPermissionRole)) { query["withPermissionRole"] = request.withPermissionRole; } 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: "GetWorkspace", version: "wiki_2.0", protocol: "HTTP", pathname: `/v2.0/wiki/workspaces/${workspaceId}`, method: "GET", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new GetWorkspaceResponse({})); } /** * 获取知识库 * * @param request - GetWorkspaceRequest * @returns GetWorkspaceResponse */ async getWorkspace(workspaceId: string, request: GetWorkspaceRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new GetWorkspaceHeaders({ }); return await this.getWorkspaceWithOptions(workspaceId, request, headers, runtime); } /** * 批量获取知识库 * * @param request - GetWorkspacesRequest * @param headers - GetWorkspacesHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns GetWorkspacesResponse */ async getWorkspacesWithOptions(request: GetWorkspacesRequest, headers: GetWorkspacesHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let query : {[key: string ]: any} = { }; if (!Util.isUnset(request.operatorId)) { query["operatorId"] = request.operatorId; } let body : {[key: string ]: any} = { }; if (!Util.isUnset(request.option)) { body["option"] = request.option; } if (!Util.isUnset(request.workspaceIds)) { body["workspaceIds"] = request.workspaceIds; } 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: "GetWorkspaces", version: "wiki_2.0", protocol: "HTTP", pathname: `/v2.0/wiki/workspaces/batchQuery`, method: "POST", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new GetWorkspacesResponse({})); } /** * 批量获取知识库 * * @param request - GetWorkspacesRequest * @returns GetWorkspacesResponse */ async getWorkspaces(request: GetWorkspacesRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new GetWorkspacesHeaders({ }); return await this.getWorkspacesWithOptions(request, headers, runtime); } /** * 转交知识库 * * @param request - HandOverWorkspaceRequest * @param headers - HandOverWorkspaceHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns HandOverWorkspaceResponse */ async handOverWorkspaceWithOptions(request: HandOverWorkspaceRequest, headers: HandOverWorkspaceHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let query : {[key: string ]: any} = { }; if (!Util.isUnset(request.operatorId)) { query["operatorId"] = request.operatorId; } let body : {[key: string ]: any} = { }; if (!Util.isUnset(request.sourceOwnerId)) { body["sourceOwnerId"] = request.sourceOwnerId; } if (!Util.isUnset(request.targetOwnerId)) { body["targetOwnerId"] = request.targetOwnerId; } if (!Util.isUnset(request.workspaceId)) { body["workspaceId"] = request.workspaceId; } 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: "HandOverWorkspace", version: "wiki_2.0", protocol: "HTTP", pathname: `/v2.0/wiki/managementOperations/workspaces/handOver`, method: "POST", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new HandOverWorkspaceResponse({})); } /** * 转交知识库 * * @param request - HandOverWorkspaceRequest * @returns HandOverWorkspaceResponse */ async handOverWorkspace(request: HandOverWorkspaceRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new HandOverWorkspaceHeaders({ }); return await this.handOverWorkspaceWithOptions(request, headers, runtime); } /** * 获取节点列表 * * @param request - ListNodesRequest * @param headers - ListNodesHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns ListNodesResponse */ async listNodesWithOptions(request: ListNodesRequest, headers: ListNodesHeaders, 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; } if (!Util.isUnset(request.operatorId)) { query["operatorId"] = request.operatorId; } if (!Util.isUnset(request.parentNodeId)) { query["parentNodeId"] = request.parentNodeId; } if (!Util.isUnset(request.withPermissionRole)) { query["withPermissionRole"] = request.withPermissionRole; } 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: "ListNodes", version: "wiki_2.0", protocol: "HTTP", pathname: `/v2.0/wiki/nodes`, method: "GET", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new ListNodesResponse({})); } /** * 获取节点列表 * * @param request - ListNodesRequest * @returns ListNodesResponse */ async listNodes(request: ListNodesRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new ListNodesHeaders({ }); return await this.listNodesWithOptions(request, headers, runtime); } /** * 获取组织所有知识库列表 * * @param request - ListOrgWorkspacesRequest * @param headers - ListOrgWorkspacesHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns ListOrgWorkspacesResponse */ async listOrgWorkspacesWithOptions(request: ListOrgWorkspacesRequest, headers: ListOrgWorkspacesHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let query : {[key: string ]: any} = { }; if (!Util.isUnset(request.operatorId)) { query["operatorId"] = request.operatorId; } if (!Util.isUnset(request.pageNumber)) { query["pageNumber"] = request.pageNumber; } if (!Util.isUnset(request.pageSize)) { query["pageSize"] = request.pageSize; } if (!Util.isUnset(request.status)) { query["status"] = request.status; } 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: "ListOrgWorkspaces", version: "wiki_2.0", protocol: "HTTP", pathname: `/v2.0/wiki/org/workspaces`, method: "GET", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new ListOrgWorkspacesResponse({})); } /** * 获取组织所有知识库列表 * * @param request - ListOrgWorkspacesRequest * @returns ListOrgWorkspacesResponse */ async listOrgWorkspaces(request: ListOrgWorkspacesRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new ListOrgWorkspacesHeaders({ }); return await this.listOrgWorkspacesWithOptions(request, headers, runtime); } /** * 获取知识小组列表 * * @param request - ListTeamsRequest * @param headers - ListTeamsHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns ListTeamsResponse */ async listTeamsWithOptions(request: ListTeamsRequest, headers: ListTeamsHeaders, 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; } if (!Util.isUnset(request.operatorId)) { query["operatorId"] = request.operatorId; } 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: "ListTeams", version: "wiki_2.0", protocol: "HTTP", pathname: `/v2.0/wiki/teams`, method: "GET", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new ListTeamsResponse({})); } /** * 获取知识小组列表 * * @param request - ListTeamsRequest * @returns ListTeamsResponse */ async listTeams(request: ListTeamsRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new ListTeamsHeaders({ }); return await this.listTeamsWithOptions(request, headers, runtime); } /** * 获取知识库列表 * * @param request - ListWorkspacesRequest * @param headers - ListWorkspacesHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns ListWorkspacesResponse */ async listWorkspacesWithOptions(request: ListWorkspacesRequest, headers: ListWorkspacesHeaders, 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; } if (!Util.isUnset(request.operatorId)) { query["operatorId"] = request.operatorId; } if (!Util.isUnset(request.orderBy)) { query["orderBy"] = request.orderBy; } if (!Util.isUnset(request.teamId)) { query["teamId"] = request.teamId; } if (!Util.isUnset(request.withPermissionRole)) { query["withPermissionRole"] = request.withPermissionRole; } 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: "ListWorkspaces", version: "wiki_2.0", protocol: "HTTP", pathname: `/v2.0/wiki/workspaces`, method: "GET", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new ListWorkspacesResponse({})); } /** * 获取知识库列表 * * @param request - ListWorkspacesRequest * @returns ListWorkspacesResponse */ async listWorkspaces(request: ListWorkspacesRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new ListWorkspacesHeaders({ }); return await this.listWorkspacesWithOptions(request, headers, runtime); } /** * 设置员工离职时知识库默认转交人 * * @param request - SetDefaultHandOverUserRequest * @param headers - SetDefaultHandOverUserHeaders * @param runtime - runtime options for this request RuntimeOptions * @returns SetDefaultHandOverUserResponse */ async setDefaultHandOverUserWithOptions(request: SetDefaultHandOverUserRequest, headers: SetDefaultHandOverUserHeaders, runtime: $Util.RuntimeOptions): Promise { Util.validateModel(request); let query : {[key: string ]: any} = { }; if (!Util.isUnset(request.operatorId)) { query["operatorId"] = request.operatorId; } let body : {[key: string ]: any} = { }; if (!Util.isUnset(request.defaultHandoverUserId)) { body["defaultHandoverUserId"] = request.defaultHandoverUserId; } 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: "SetDefaultHandOverUser", version: "wiki_2.0", protocol: "HTTP", pathname: `/v2.0/wiki/managementSettings/defaultHandOverUsers/set`, method: "POST", authType: "AK", style: "ROA", reqBodyType: "none", bodyType: "json", }); return $tea.cast(await this.execute(params, req, runtime), new SetDefaultHandOverUserResponse({})); } /** * 设置员工离职时知识库默认转交人 * * @param request - SetDefaultHandOverUserRequest * @returns SetDefaultHandOverUserResponse */ async setDefaultHandOverUser(request: SetDefaultHandOverUserRequest): Promise { let runtime = new $Util.RuntimeOptions({ }); let headers = new SetDefaultHandOverUserHeaders({ }); return await this.setDefaultHandOverUserWithOptions(request, headers, runtime); } }