"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || (function () {
    var ownKeys = function(o) {
        ownKeys = Object.getOwnPropertyNames || function (o) {
            var ar = [];
            for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
            return ar;
        };
        return ownKeys(o);
    };
    return function (mod) {
        if (mod && mod.__esModule) return mod;
        var result = {};
        if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
        __setModuleDefault(result, mod);
        return result;
    };
})();
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.GetUsersResponseBody = exports.GetUsersRequest = exports.GetUsersHeaders = exports.GetUploadUrlResponse = exports.GetUploadUrlResponseBody = exports.GetUploadUrlRequest = exports.GetUploadUrlHeaders = exports.GetRolesResponse = exports.GetRolesResponseBody = exports.GetRolesHeaders = exports.GetRoleUsersResponse = exports.GetRoleUsersResponseBody = exports.GetRoleUsersRequest = exports.GetRoleUsersHeaders = exports.GetOrganizationsResponse = exports.GetOrganizationsResponseBody = exports.GetOrganizationsRequest = exports.GetOrganizationsHeaders = exports.GetAttachmentTemporaryUrlResponse = exports.GetAttachmentTemporaryUrlResponseBody = exports.GetAttachmentTemporaryUrlRequest = exports.GetAttachmentTemporaryUrlHeaders = exports.GetAppsResponse = exports.GetAppsResponseBody = exports.GetAppsRequest = exports.GetAppsHeaders = exports.DeleteProcessesInstanceResponse = exports.DeleteProcessesInstanceResponseBody = exports.DeleteProcessesInstanceRequest = exports.DeleteProcessesInstanceHeaders = exports.DeleteBizObjectResponse = exports.DeleteBizObjectResponseBody = exports.DeleteBizObjectRequest = exports.DeleteBizObjectHeaders = exports.CreateProcessesInstanceResponse = exports.CreateProcessesInstanceResponseBody = exports.CreateProcessesInstanceRequest = exports.CreateProcessesInstanceHeaders = exports.CreateBizObjectResponse = exports.CreateBizObjectResponseBody = exports.CreateBizObjectRequest = exports.CreateBizObjectHeaders = exports.CancelProcessInstanceResponse = exports.CancelProcessInstanceResponseBody = exports.CancelProcessInstanceRequest = exports.CancelProcessInstanceHeaders = exports.BatchInsertBizObjectResponse = exports.BatchInsertBizObjectResponseBody = exports.BatchInsertBizObjectRequest = exports.BatchInsertBizObjectHeaders = void 0;
exports.QueryProcessesInstanceResponseBodyData = exports.QueryProcessesInstanceResponseBodyDataOriginator = exports.QueryAppFunctionNodesResponseBodyData = exports.LoadBizObjectsResponseBodyData = exports.LoadBizObjectsRequestSortByFields = exports.LoadBizFieldsResponseBodyData = exports.LoadBizFieldsResponseBodyDataFields = exports.LoadBizFieldsResponseBodyDataChildForms = exports.LoadBizFieldsResponseBodyDataChildFormsFields = exports.GetUsersResponseBodyData = exports.GetUploadUrlResponseBodyData = exports.GetRolesResponseBodyData = exports.GetRolesResponseBodyDataRoles = exports.GetRolesResponseBodyDataRoleGroups = exports.GetRoleUsersResponseBodyData = exports.GetOrganizationsResponseBodyData = exports.GetAttachmentTemporaryUrlResponseBodyData = exports.GetAppsResponseBodyData = exports.CreateProcessesInstanceResponseBodyData = exports.CreateBizObjectResponseBodyData = exports.BatchInsertBizObjectResponseBodyData = exports.UpdateBizObjectResponse = exports.UpdateBizObjectResponseBody = exports.UpdateBizObjectRequest = exports.UpdateBizObjectHeaders = exports.QueryProcessesWorkItemsResponse = exports.QueryProcessesWorkItemsResponseBody = exports.QueryProcessesWorkItemsRequest = exports.QueryProcessesWorkItemsHeaders = exports.QueryProcessesInstanceResponse = exports.QueryProcessesInstanceResponseBody = exports.QueryProcessesInstanceRequest = exports.QueryProcessesInstanceHeaders = exports.QueryAppFunctionNodesResponse = exports.QueryAppFunctionNodesResponseBody = exports.QueryAppFunctionNodesRequest = exports.QueryAppFunctionNodesHeaders = exports.LoadBizObjectsResponse = exports.LoadBizObjectsResponseBody = exports.LoadBizObjectsRequest = exports.LoadBizObjectsHeaders = exports.LoadBizObjectResponse = exports.LoadBizObjectResponseBody = exports.LoadBizObjectRequest = exports.LoadBizObjectHeaders = exports.LoadBizFieldsResponse = exports.LoadBizFieldsResponseBody = exports.LoadBizFieldsRequest = exports.LoadBizFieldsHeaders = exports.GetUsersResponse = void 0;
exports.QueryProcessesWorkItemsResponseBodyData = exports.QueryProcessesWorkItemsResponseBodyDataReceiptor = exports.QueryProcessesWorkItemsResponseBodyDataParticipant = exports.QueryProcessesWorkItemsResponseBodyDataFinisher = void 0;
// This file is auto-generated, don't edit it
/**
 */
const tea_util_1 = __importStar(require("@alicloud/tea-util")), $Util = tea_util_1;
const gateway_dingtalk_1 = __importDefault(require("@alicloud/gateway-dingtalk"));
const openapi_client_1 = __importStar(require("@alicloud/openapi-client")), $OpenApi = openapi_client_1;
const openapi_util_1 = __importDefault(require("@alicloud/openapi-util"));
const $tea = __importStar(require("@alicloud/tea-typescript"));
class BatchInsertBizObjectHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.BatchInsertBizObjectHeaders = BatchInsertBizObjectHeaders;
class BatchInsertBizObjectRequest extends $tea.Model {
    static names() {
        return {
            bizObjectJsonArray: 'bizObjectJsonArray',
            isDraft: 'isDraft',
            opUserId: 'opUserId',
            schemaCode: 'schemaCode',
        };
    }
    static types() {
        return {
            bizObjectJsonArray: { 'type': 'array', 'itemType': 'string' },
            isDraft: 'boolean',
            opUserId: 'string',
            schemaCode: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.BatchInsertBizObjectRequest = BatchInsertBizObjectRequest;
class BatchInsertBizObjectResponseBody extends $tea.Model {
    static names() {
        return {
            code: 'code',
            data: 'data',
            message: 'message',
        };
    }
    static types() {
        return {
            code: 'string',
            data: BatchInsertBizObjectResponseBodyData,
            message: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.BatchInsertBizObjectResponseBody = BatchInsertBizObjectResponseBody;
class BatchInsertBizObjectResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: BatchInsertBizObjectResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.BatchInsertBizObjectResponse = BatchInsertBizObjectResponse;
class CancelProcessInstanceHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.CancelProcessInstanceHeaders = CancelProcessInstanceHeaders;
class CancelProcessInstanceRequest extends $tea.Model {
    static names() {
        return {
            processInstanceId: 'processInstanceId',
        };
    }
    static types() {
        return {
            processInstanceId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.CancelProcessInstanceRequest = CancelProcessInstanceRequest;
class CancelProcessInstanceResponseBody extends $tea.Model {
    static names() {
        return {
            code: 'code',
            message: 'message',
        };
    }
    static types() {
        return {
            code: 'string',
            message: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.CancelProcessInstanceResponseBody = CancelProcessInstanceResponseBody;
class CancelProcessInstanceResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: CancelProcessInstanceResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.CancelProcessInstanceResponse = CancelProcessInstanceResponse;
class CreateBizObjectHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.CreateBizObjectHeaders = CreateBizObjectHeaders;
class CreateBizObjectRequest extends $tea.Model {
    static names() {
        return {
            bizObjectJson: 'bizObjectJson',
            isDraft: 'isDraft',
            opUserId: 'opUserId',
            schemaCode: 'schemaCode',
        };
    }
    static types() {
        return {
            bizObjectJson: 'string',
            isDraft: 'boolean',
            opUserId: 'string',
            schemaCode: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.CreateBizObjectRequest = CreateBizObjectRequest;
class CreateBizObjectResponseBody extends $tea.Model {
    static names() {
        return {
            code: 'code',
            data: 'data',
            message: 'message',
        };
    }
    static types() {
        return {
            code: 'string',
            data: CreateBizObjectResponseBodyData,
            message: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.CreateBizObjectResponseBody = CreateBizObjectResponseBody;
class CreateBizObjectResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: CreateBizObjectResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.CreateBizObjectResponse = CreateBizObjectResponse;
class CreateProcessesInstanceHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.CreateProcessesInstanceHeaders = CreateProcessesInstanceHeaders;
class CreateProcessesInstanceRequest extends $tea.Model {
    static names() {
        return {
            bizObjectId: 'bizObjectId',
            opUserId: 'opUserId',
            schemaCode: 'schemaCode',
        };
    }
    static types() {
        return {
            bizObjectId: 'string',
            opUserId: 'string',
            schemaCode: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.CreateProcessesInstanceRequest = CreateProcessesInstanceRequest;
class CreateProcessesInstanceResponseBody extends $tea.Model {
    static names() {
        return {
            code: 'code',
            data: 'data',
            message: 'message',
        };
    }
    static types() {
        return {
            code: 'string',
            data: CreateProcessesInstanceResponseBodyData,
            message: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.CreateProcessesInstanceResponseBody = CreateProcessesInstanceResponseBody;
class CreateProcessesInstanceResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: CreateProcessesInstanceResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.CreateProcessesInstanceResponse = CreateProcessesInstanceResponse;
class DeleteBizObjectHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.DeleteBizObjectHeaders = DeleteBizObjectHeaders;
class DeleteBizObjectRequest extends $tea.Model {
    static names() {
        return {
            bizObjectId: 'bizObjectId',
            schemaCode: 'schemaCode',
        };
    }
    static types() {
        return {
            bizObjectId: 'string',
            schemaCode: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.DeleteBizObjectRequest = DeleteBizObjectRequest;
class DeleteBizObjectResponseBody extends $tea.Model {
    static names() {
        return {
            code: 'code',
            message: 'message',
        };
    }
    static types() {
        return {
            code: 'string',
            message: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.DeleteBizObjectResponseBody = DeleteBizObjectResponseBody;
class DeleteBizObjectResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: DeleteBizObjectResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.DeleteBizObjectResponse = DeleteBizObjectResponse;
class DeleteProcessesInstanceHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.DeleteProcessesInstanceHeaders = DeleteProcessesInstanceHeaders;
class DeleteProcessesInstanceRequest extends $tea.Model {
    static names() {
        return {
            isAutoUpdateBizObject: 'isAutoUpdateBizObject',
            processInstanceId: 'processInstanceId',
        };
    }
    static types() {
        return {
            isAutoUpdateBizObject: 'boolean',
            processInstanceId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.DeleteProcessesInstanceRequest = DeleteProcessesInstanceRequest;
class DeleteProcessesInstanceResponseBody extends $tea.Model {
    static names() {
        return {
            code: 'code',
            message: 'message',
        };
    }
    static types() {
        return {
            code: 'string',
            message: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.DeleteProcessesInstanceResponseBody = DeleteProcessesInstanceResponseBody;
class DeleteProcessesInstanceResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: DeleteProcessesInstanceResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.DeleteProcessesInstanceResponse = DeleteProcessesInstanceResponse;
class GetAppsHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetAppsHeaders = GetAppsHeaders;
class GetAppsRequest extends $tea.Model {
    static names() {
        return {
            queryType: 'queryType',
            values: 'values',
        };
    }
    static types() {
        return {
            queryType: 'string',
            values: { 'type': 'array', 'itemType': 'string' },
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetAppsRequest = GetAppsRequest;
class GetAppsResponseBody extends $tea.Model {
    static names() {
        return {
            code: 'code',
            data: 'data',
            message: 'message',
        };
    }
    static types() {
        return {
            code: 'string',
            data: { 'type': 'array', 'itemType': GetAppsResponseBodyData },
            message: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetAppsResponseBody = GetAppsResponseBody;
class GetAppsResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: GetAppsResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetAppsResponse = GetAppsResponse;
class GetAttachmentTemporaryUrlHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetAttachmentTemporaryUrlHeaders = GetAttachmentTemporaryUrlHeaders;
class GetAttachmentTemporaryUrlRequest extends $tea.Model {
    static names() {
        return {
            attachmentId: 'attachmentId',
        };
    }
    static types() {
        return {
            attachmentId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetAttachmentTemporaryUrlRequest = GetAttachmentTemporaryUrlRequest;
class GetAttachmentTemporaryUrlResponseBody extends $tea.Model {
    static names() {
        return {
            code: 'code',
            data: 'data',
            message: 'message',
        };
    }
    static types() {
        return {
            code: 'string',
            data: GetAttachmentTemporaryUrlResponseBodyData,
            message: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetAttachmentTemporaryUrlResponseBody = GetAttachmentTemporaryUrlResponseBody;
class GetAttachmentTemporaryUrlResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: GetAttachmentTemporaryUrlResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetAttachmentTemporaryUrlResponse = GetAttachmentTemporaryUrlResponse;
class GetOrganizationsHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetOrganizationsHeaders = GetOrganizationsHeaders;
class GetOrganizationsRequest extends $tea.Model {
    static names() {
        return {
            departmentId: 'departmentId',
        };
    }
    static types() {
        return {
            departmentId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetOrganizationsRequest = GetOrganizationsRequest;
class GetOrganizationsResponseBody extends $tea.Model {
    static names() {
        return {
            code: 'code',
            data: 'data',
            message: 'message',
        };
    }
    static types() {
        return {
            code: 'string',
            data: { 'type': 'array', 'itemType': GetOrganizationsResponseBodyData },
            message: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetOrganizationsResponseBody = GetOrganizationsResponseBody;
class GetOrganizationsResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: GetOrganizationsResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetOrganizationsResponse = GetOrganizationsResponse;
class GetRoleUsersHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetRoleUsersHeaders = GetRoleUsersHeaders;
class GetRoleUsersRequest extends $tea.Model {
    static names() {
        return {
            roleId: 'roleId',
        };
    }
    static types() {
        return {
            roleId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetRoleUsersRequest = GetRoleUsersRequest;
class GetRoleUsersResponseBody extends $tea.Model {
    static names() {
        return {
            code: 'code',
            data: 'data',
            message: 'message',
        };
    }
    static types() {
        return {
            code: 'string',
            data: { 'type': 'array', 'itemType': GetRoleUsersResponseBodyData },
            message: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetRoleUsersResponseBody = GetRoleUsersResponseBody;
class GetRoleUsersResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: GetRoleUsersResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetRoleUsersResponse = GetRoleUsersResponse;
class GetRolesHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetRolesHeaders = GetRolesHeaders;
class GetRolesResponseBody extends $tea.Model {
    static names() {
        return {
            code: 'code',
            data: 'data',
            message: 'message',
        };
    }
    static types() {
        return {
            code: 'string',
            data: GetRolesResponseBodyData,
            message: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetRolesResponseBody = GetRolesResponseBody;
class GetRolesResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: GetRolesResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetRolesResponse = GetRolesResponse;
class GetUploadUrlHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetUploadUrlHeaders = GetUploadUrlHeaders;
class GetUploadUrlRequest extends $tea.Model {
    static names() {
        return {
            bizObjectId: 'bizObjectId',
            fieldName: 'fieldName',
            isOverwrite: 'isOverwrite',
            schemaCode: 'schemaCode',
        };
    }
    static types() {
        return {
            bizObjectId: 'string',
            fieldName: 'string',
            isOverwrite: 'boolean',
            schemaCode: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetUploadUrlRequest = GetUploadUrlRequest;
class GetUploadUrlResponseBody extends $tea.Model {
    static names() {
        return {
            code: 'code',
            data: 'data',
            message: 'message',
        };
    }
    static types() {
        return {
            code: 'string',
            data: GetUploadUrlResponseBodyData,
            message: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetUploadUrlResponseBody = GetUploadUrlResponseBody;
class GetUploadUrlResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: GetUploadUrlResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetUploadUrlResponse = GetUploadUrlResponse;
class GetUsersHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetUsersHeaders = GetUsersHeaders;
class GetUsersRequest extends $tea.Model {
    static names() {
        return {
            departmentId: 'departmentId',
            isRecursive: 'isRecursive',
        };
    }
    static types() {
        return {
            departmentId: 'string',
            isRecursive: 'boolean',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetUsersRequest = GetUsersRequest;
class GetUsersResponseBody extends $tea.Model {
    static names() {
        return {
            code: 'code',
            data: 'data',
            message: 'message',
        };
    }
    static types() {
        return {
            code: 'string',
            data: { 'type': 'array', 'itemType': GetUsersResponseBodyData },
            message: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetUsersResponseBody = GetUsersResponseBody;
class GetUsersResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: GetUsersResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetUsersResponse = GetUsersResponse;
class LoadBizFieldsHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.LoadBizFieldsHeaders = LoadBizFieldsHeaders;
class LoadBizFieldsRequest extends $tea.Model {
    static names() {
        return {
            schemaCode: 'schemaCode',
        };
    }
    static types() {
        return {
            schemaCode: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.LoadBizFieldsRequest = LoadBizFieldsRequest;
class LoadBizFieldsResponseBody extends $tea.Model {
    static names() {
        return {
            code: 'code',
            data: 'data',
            message: 'message',
        };
    }
    static types() {
        return {
            code: 'string',
            data: LoadBizFieldsResponseBodyData,
            message: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.LoadBizFieldsResponseBody = LoadBizFieldsResponseBody;
class LoadBizFieldsResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: LoadBizFieldsResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.LoadBizFieldsResponse = LoadBizFieldsResponse;
class LoadBizObjectHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.LoadBizObjectHeaders = LoadBizObjectHeaders;
class LoadBizObjectRequest extends $tea.Model {
    static names() {
        return {
            bizObjectId: 'bizObjectId',
            schemaCode: 'schemaCode',
        };
    }
    static types() {
        return {
            bizObjectId: 'string',
            schemaCode: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.LoadBizObjectRequest = LoadBizObjectRequest;
class LoadBizObjectResponseBody extends $tea.Model {
    static names() {
        return {
            code: 'code',
            data: 'data',
            message: 'message',
        };
    }
    static types() {
        return {
            code: 'string',
            data: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
            message: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.LoadBizObjectResponseBody = LoadBizObjectResponseBody;
class LoadBizObjectResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: LoadBizObjectResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.LoadBizObjectResponse = LoadBizObjectResponse;
class LoadBizObjectsHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.LoadBizObjectsHeaders = LoadBizObjectsHeaders;
class LoadBizObjectsRequest extends $tea.Model {
    static names() {
        return {
            matcherJson: 'matcherJson',
            pageNumber: 'pageNumber',
            pageSize: 'pageSize',
            returnFields: 'returnFields',
            schemaCode: 'schemaCode',
            sortByFields: 'sortByFields',
        };
    }
    static types() {
        return {
            matcherJson: 'string',
            pageNumber: 'number',
            pageSize: 'number',
            returnFields: { 'type': 'array', 'itemType': 'string' },
            schemaCode: 'string',
            sortByFields: { 'type': 'array', 'itemType': LoadBizObjectsRequestSortByFields },
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.LoadBizObjectsRequest = LoadBizObjectsRequest;
class LoadBizObjectsResponseBody extends $tea.Model {
    static names() {
        return {
            code: 'code',
            data: 'data',
            message: 'message',
        };
    }
    static types() {
        return {
            code: 'string',
            data: LoadBizObjectsResponseBodyData,
            message: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.LoadBizObjectsResponseBody = LoadBizObjectsResponseBody;
class LoadBizObjectsResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: LoadBizObjectsResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.LoadBizObjectsResponse = LoadBizObjectsResponse;
class QueryAppFunctionNodesHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.QueryAppFunctionNodesHeaders = QueryAppFunctionNodesHeaders;
class QueryAppFunctionNodesRequest extends $tea.Model {
    static names() {
        return {
            appCode: 'appCode',
        };
    }
    static types() {
        return {
            appCode: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.QueryAppFunctionNodesRequest = QueryAppFunctionNodesRequest;
class QueryAppFunctionNodesResponseBody extends $tea.Model {
    static names() {
        return {
            code: 'code',
            data: 'data',
            message: 'message',
        };
    }
    static types() {
        return {
            code: 'string',
            data: { 'type': 'array', 'itemType': QueryAppFunctionNodesResponseBodyData },
            message: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.QueryAppFunctionNodesResponseBody = QueryAppFunctionNodesResponseBody;
class QueryAppFunctionNodesResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: QueryAppFunctionNodesResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.QueryAppFunctionNodesResponse = QueryAppFunctionNodesResponse;
class QueryProcessesInstanceHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.QueryProcessesInstanceHeaders = QueryProcessesInstanceHeaders;
class QueryProcessesInstanceRequest extends $tea.Model {
    static names() {
        return {
            bizObjectId: 'bizObjectId',
            schemaCode: 'schemaCode',
        };
    }
    static types() {
        return {
            bizObjectId: 'string',
            schemaCode: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.QueryProcessesInstanceRequest = QueryProcessesInstanceRequest;
class QueryProcessesInstanceResponseBody extends $tea.Model {
    static names() {
        return {
            code: 'code',
            data: 'data',
            message: 'message',
        };
    }
    static types() {
        return {
            code: 'string',
            data: { 'type': 'array', 'itemType': QueryProcessesInstanceResponseBodyData },
            message: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.QueryProcessesInstanceResponseBody = QueryProcessesInstanceResponseBody;
class QueryProcessesInstanceResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: QueryProcessesInstanceResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.QueryProcessesInstanceResponse = QueryProcessesInstanceResponse;
class QueryProcessesWorkItemsHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.QueryProcessesWorkItemsHeaders = QueryProcessesWorkItemsHeaders;
class QueryProcessesWorkItemsRequest extends $tea.Model {
    static names() {
        return {
            processInstanceId: 'processInstanceId',
        };
    }
    static types() {
        return {
            processInstanceId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.QueryProcessesWorkItemsRequest = QueryProcessesWorkItemsRequest;
class QueryProcessesWorkItemsResponseBody extends $tea.Model {
    static names() {
        return {
            code: 'code',
            data: 'data',
            message: 'message',
        };
    }
    static types() {
        return {
            code: 'string',
            data: { 'type': 'array', 'itemType': QueryProcessesWorkItemsResponseBodyData },
            message: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.QueryProcessesWorkItemsResponseBody = QueryProcessesWorkItemsResponseBody;
class QueryProcessesWorkItemsResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: QueryProcessesWorkItemsResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.QueryProcessesWorkItemsResponse = QueryProcessesWorkItemsResponse;
class UpdateBizObjectHeaders extends $tea.Model {
    static names() {
        return {
            commonHeaders: 'commonHeaders',
            xAcsDingtalkAccessToken: 'x-acs-dingtalk-access-token',
        };
    }
    static types() {
        return {
            commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            xAcsDingtalkAccessToken: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.UpdateBizObjectHeaders = UpdateBizObjectHeaders;
class UpdateBizObjectRequest extends $tea.Model {
    static names() {
        return {
            bizObjectId: 'bizObjectId',
            bizObjectJson: 'bizObjectJson',
            schemaCode: 'schemaCode',
        };
    }
    static types() {
        return {
            bizObjectId: 'string',
            bizObjectJson: 'string',
            schemaCode: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.UpdateBizObjectRequest = UpdateBizObjectRequest;
class UpdateBizObjectResponseBody extends $tea.Model {
    static names() {
        return {
            code: 'code',
            message: 'message',
        };
    }
    static types() {
        return {
            code: 'string',
            message: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.UpdateBizObjectResponseBody = UpdateBizObjectResponseBody;
class UpdateBizObjectResponse extends $tea.Model {
    static names() {
        return {
            headers: 'headers',
            statusCode: 'statusCode',
            body: 'body',
        };
    }
    static types() {
        return {
            headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
            statusCode: 'number',
            body: UpdateBizObjectResponseBody,
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.UpdateBizObjectResponse = UpdateBizObjectResponse;
class BatchInsertBizObjectResponseBodyData extends $tea.Model {
    static names() {
        return {
            bizObjectIds: 'bizObjectIds',
            failedDatas: 'failedDatas',
            failedMessages: 'failedMessages',
            processIds: 'processIds',
        };
    }
    static types() {
        return {
            bizObjectIds: { 'type': 'array', 'itemType': 'string' },
            failedDatas: { 'type': 'array', 'itemType': 'string' },
            failedMessages: { 'type': 'array', 'itemType': 'string' },
            processIds: { 'type': 'array', 'itemType': 'string' },
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.BatchInsertBizObjectResponseBodyData = BatchInsertBizObjectResponseBodyData;
class CreateBizObjectResponseBodyData extends $tea.Model {
    static names() {
        return {
            bizObjectId: 'bizObjectId',
            formUsageType: 'formUsageType',
            processInstanceId: 'processInstanceId',
            schemaCode: 'schemaCode',
        };
    }
    static types() {
        return {
            bizObjectId: 'string',
            formUsageType: 'string',
            processInstanceId: 'string',
            schemaCode: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.CreateBizObjectResponseBodyData = CreateBizObjectResponseBodyData;
class CreateProcessesInstanceResponseBodyData extends $tea.Model {
    static names() {
        return {
            processInstanceId: 'processInstanceId',
        };
    }
    static types() {
        return {
            processInstanceId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.CreateProcessesInstanceResponseBodyData = CreateProcessesInstanceResponseBodyData;
class GetAppsResponseBodyData extends $tea.Model {
    static names() {
        return {
            appCode: 'appCode',
            appSource: 'appSource',
            appState: 'appState',
            displayName: 'displayName',
            solution: 'solution',
        };
    }
    static types() {
        return {
            appCode: 'string',
            appSource: 'string',
            appState: 'string',
            displayName: 'string',
            solution: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetAppsResponseBodyData = GetAppsResponseBodyData;
class GetAttachmentTemporaryUrlResponseBodyData extends $tea.Model {
    static names() {
        return {
            attachmentUrl: 'attachmentUrl',
        };
    }
    static types() {
        return {
            attachmentUrl: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetAttachmentTemporaryUrlResponseBodyData = GetAttachmentTemporaryUrlResponseBodyData;
class GetOrganizationsResponseBodyData extends $tea.Model {
    static names() {
        return {
            code: 'code',
            description: 'description',
            id: 'id',
            name: 'name',
            parentId: 'parentId',
            sortKey: 'sortKey',
            unitType: 'unitType',
        };
    }
    static types() {
        return {
            code: 'string',
            description: 'string',
            id: 'string',
            name: 'string',
            parentId: 'string',
            sortKey: 'number',
            unitType: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetOrganizationsResponseBodyData = GetOrganizationsResponseBodyData;
class GetRoleUsersResponseBodyData extends $tea.Model {
    static names() {
        return {
            code: 'code',
            departmentId: 'departmentId',
            departmentName: 'departmentName',
            description: 'description',
            domainType: 'domainType',
            email: 'email',
            mobile: 'mobile',
            name: 'name',
            partDepartmentIds: 'partDepartmentIds',
            sex: 'sex',
            sortKey: 'sortKey',
            userId: 'userId',
        };
    }
    static types() {
        return {
            code: 'string',
            departmentId: 'string',
            departmentName: 'string',
            description: 'string',
            domainType: 'string',
            email: 'string',
            mobile: 'string',
            name: 'string',
            partDepartmentIds: { 'type': 'array', 'itemType': 'string' },
            sex: 'string',
            sortKey: 'number',
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetRoleUsersResponseBodyData = GetRoleUsersResponseBodyData;
class GetRolesResponseBodyDataRoleGroups extends $tea.Model {
    static names() {
        return {
            companyId: 'companyId',
            description: 'description',
            groupCode: 'groupCode',
            groupId: 'groupId',
            groupName: 'groupName',
            state: 'state',
            visibility: 'visibility',
        };
    }
    static types() {
        return {
            companyId: 'string',
            description: 'string',
            groupCode: 'string',
            groupId: 'string',
            groupName: 'string',
            state: 'string',
            visibility: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetRolesResponseBodyDataRoleGroups = GetRolesResponseBodyDataRoleGroups;
class GetRolesResponseBodyDataRoles extends $tea.Model {
    static names() {
        return {
            companyId: 'companyId',
            description: 'description',
            groupId: 'groupId',
            roleCode: 'roleCode',
            roleId: 'roleId',
            roleName: 'roleName',
            state: 'state',
            visibility: 'visibility',
        };
    }
    static types() {
        return {
            companyId: 'string',
            description: 'string',
            groupId: 'string',
            roleCode: 'string',
            roleId: 'string',
            roleName: 'string',
            state: 'string',
            visibility: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetRolesResponseBodyDataRoles = GetRolesResponseBodyDataRoles;
class GetRolesResponseBodyData extends $tea.Model {
    static names() {
        return {
            roleGroups: 'roleGroups',
            roles: 'roles',
        };
    }
    static types() {
        return {
            roleGroups: { 'type': 'array', 'itemType': GetRolesResponseBodyDataRoleGroups },
            roles: { 'type': 'array', 'itemType': GetRolesResponseBodyDataRoles },
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetRolesResponseBodyData = GetRolesResponseBodyData;
class GetUploadUrlResponseBodyData extends $tea.Model {
    static names() {
        return {
            uploadUrl: 'uploadUrl',
        };
    }
    static types() {
        return {
            uploadUrl: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetUploadUrlResponseBodyData = GetUploadUrlResponseBodyData;
class GetUsersResponseBodyData extends $tea.Model {
    static names() {
        return {
            code: 'code',
            departmentId: 'departmentId',
            departmentName: 'departmentName',
            description: 'description',
            domainType: 'domainType',
            email: 'email',
            id: 'id',
            mobile: 'mobile',
            name: 'name',
            partDepartmentIds: 'partDepartmentIds',
            sex: 'sex',
            sortKey: 'sortKey',
        };
    }
    static types() {
        return {
            code: 'string',
            departmentId: 'string',
            departmentName: 'string',
            description: 'string',
            domainType: 'string',
            email: 'string',
            id: 'string',
            mobile: 'string',
            name: 'string',
            partDepartmentIds: { 'type': 'array', 'itemType': 'string' },
            sex: 'string',
            sortKey: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.GetUsersResponseBodyData = GetUsersResponseBodyData;
class LoadBizFieldsResponseBodyDataChildFormsFields extends $tea.Model {
    static names() {
        return {
            bizDataType: 'bizDataType',
            fieldName: 'fieldName',
            label: 'label',
        };
    }
    static types() {
        return {
            bizDataType: 'string',
            fieldName: 'string',
            label: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.LoadBizFieldsResponseBodyDataChildFormsFields = LoadBizFieldsResponseBodyDataChildFormsFields;
class LoadBizFieldsResponseBodyDataChildForms extends $tea.Model {
    static names() {
        return {
            fields: 'fields',
            formName: 'formName',
            schemaCode: 'schemaCode',
        };
    }
    static types() {
        return {
            fields: { 'type': 'array', 'itemType': LoadBizFieldsResponseBodyDataChildFormsFields },
            formName: 'string',
            schemaCode: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.LoadBizFieldsResponseBodyDataChildForms = LoadBizFieldsResponseBodyDataChildForms;
class LoadBizFieldsResponseBodyDataFields extends $tea.Model {
    static names() {
        return {
            bizDataType: 'bizDataType',
            fieldName: 'fieldName',
            label: 'label',
        };
    }
    static types() {
        return {
            bizDataType: 'string',
            fieldName: 'string',
            label: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.LoadBizFieldsResponseBodyDataFields = LoadBizFieldsResponseBodyDataFields;
class LoadBizFieldsResponseBodyData extends $tea.Model {
    static names() {
        return {
            childForms: 'childForms',
            fields: 'fields',
            formName: 'formName',
            schemaCode: 'schemaCode',
        };
    }
    static types() {
        return {
            childForms: { 'type': 'array', 'itemType': LoadBizFieldsResponseBodyDataChildForms },
            fields: { 'type': 'array', 'itemType': LoadBizFieldsResponseBodyDataFields },
            formName: 'string',
            schemaCode: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.LoadBizFieldsResponseBodyData = LoadBizFieldsResponseBodyData;
class LoadBizObjectsRequestSortByFields extends $tea.Model {
    static names() {
        return {
            direction: 'direction',
            fieldName: 'fieldName',
        };
    }
    static types() {
        return {
            direction: 'string',
            fieldName: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.LoadBizObjectsRequestSortByFields = LoadBizObjectsRequestSortByFields;
class LoadBizObjectsResponseBodyData extends $tea.Model {
    static names() {
        return {
            bizObjects: 'bizObjects',
            pageNumber: 'pageNumber',
            pageSize: 'pageSize',
            totalCount: 'totalCount',
        };
    }
    static types() {
        return {
            bizObjects: { 'type': 'array', 'itemType': { 'type': 'map', 'keyType': 'string', 'valueType': 'any' } },
            pageNumber: 'number',
            pageSize: 'number',
            totalCount: 'number',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.LoadBizObjectsResponseBodyData = LoadBizObjectsResponseBodyData;
class QueryAppFunctionNodesResponseBodyData extends $tea.Model {
    static names() {
        return {
            appCode: 'appCode',
            displayName: 'displayName',
            isSystem: 'isSystem',
            nodeType: 'nodeType',
            nodeVisibleType: 'nodeVisibleType',
            parentCode: 'parentCode',
            schemaCode: 'schemaCode',
            sortKey: 'sortKey',
            state: 'state',
        };
    }
    static types() {
        return {
            appCode: 'string',
            displayName: 'string',
            isSystem: 'boolean',
            nodeType: 'string',
            nodeVisibleType: 'string',
            parentCode: 'string',
            schemaCode: 'string',
            sortKey: 'number',
            state: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.QueryAppFunctionNodesResponseBodyData = QueryAppFunctionNodesResponseBodyData;
class QueryProcessesInstanceResponseBodyDataOriginator extends $tea.Model {
    static names() {
        return {
            departmentId: 'departmentId',
            departmentName: 'departmentName',
            name: 'name',
            userId: 'userId',
        };
    }
    static types() {
        return {
            departmentId: 'string',
            departmentName: 'string',
            name: 'string',
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.QueryProcessesInstanceResponseBodyDataOriginator = QueryProcessesInstanceResponseBodyDataOriginator;
class QueryProcessesInstanceResponseBodyData extends $tea.Model {
    static names() {
        return {
            appCode: 'appCode',
            bizObjectId: 'bizObjectId',
            createdTimeGMT: 'createdTimeGMT',
            dingTalkProcessId: 'dingTalkProcessId',
            finishTimeGMT: 'finishTimeGMT',
            originator: 'originator',
            processDisplayName: 'processDisplayName',
            processInstanceId: 'processInstanceId',
            processVersion: 'processVersion',
            schemaCode: 'schemaCode',
            startTimeGMT: 'startTimeGMT',
            state: 'state',
        };
    }
    static types() {
        return {
            appCode: 'string',
            bizObjectId: 'string',
            createdTimeGMT: 'string',
            dingTalkProcessId: 'string',
            finishTimeGMT: 'string',
            originator: QueryProcessesInstanceResponseBodyDataOriginator,
            processDisplayName: 'string',
            processInstanceId: 'string',
            processVersion: 'number',
            schemaCode: 'string',
            startTimeGMT: 'string',
            state: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.QueryProcessesInstanceResponseBodyData = QueryProcessesInstanceResponseBodyData;
class QueryProcessesWorkItemsResponseBodyDataFinisher extends $tea.Model {
    static names() {
        return {
            departmentId: 'departmentId',
            departmentName: 'departmentName',
            name: 'name',
            userId: 'userId',
        };
    }
    static types() {
        return {
            departmentId: 'string',
            departmentName: 'string',
            name: 'string',
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.QueryProcessesWorkItemsResponseBodyDataFinisher = QueryProcessesWorkItemsResponseBodyDataFinisher;
class QueryProcessesWorkItemsResponseBodyDataParticipant extends $tea.Model {
    static names() {
        return {
            departmentId: 'departmentId',
            departmentName: 'departmentName',
            name: 'name',
            userId: 'userId',
        };
    }
    static types() {
        return {
            departmentId: 'string',
            departmentName: 'string',
            name: 'string',
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.QueryProcessesWorkItemsResponseBodyDataParticipant = QueryProcessesWorkItemsResponseBodyDataParticipant;
class QueryProcessesWorkItemsResponseBodyDataReceiptor extends $tea.Model {
    static names() {
        return {
            departmentId: 'departmentId',
            departmentName: 'departmentName',
            name: 'name',
            userId: 'userId',
        };
    }
    static types() {
        return {
            departmentId: 'string',
            departmentName: 'string',
            name: 'string',
            userId: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.QueryProcessesWorkItemsResponseBodyDataReceiptor = QueryProcessesWorkItemsResponseBodyDataReceiptor;
class QueryProcessesWorkItemsResponseBodyData extends $tea.Model {
    static names() {
        return {
            activityCode: 'activityCode',
            activityName: 'activityName',
            appCode: 'appCode',
            bizObjectId: 'bizObjectId',
            comment: 'comment',
            displayName: 'displayName',
            finishTimeGMT: 'finishTimeGMT',
            finisher: 'finisher',
            isApproval: 'isApproval',
            isFinish: 'isFinish',
            participant: 'participant',
            processInstanceId: 'processInstanceId',
            processVersion: 'processVersion',
            receiptor: 'receiptor',
            receiveTimeGMT: 'receiveTimeGMT',
            schemaCode: 'schemaCode',
            startTimeGMT: 'startTimeGMT',
            state: 'state',
            workItemId: 'workItemId',
            workItemType: 'workItemType',
        };
    }
    static types() {
        return {
            activityCode: 'string',
            activityName: 'string',
            appCode: 'string',
            bizObjectId: 'string',
            comment: 'string',
            displayName: 'string',
            finishTimeGMT: 'string',
            finisher: QueryProcessesWorkItemsResponseBodyDataFinisher,
            isApproval: 'boolean',
            isFinish: 'boolean',
            participant: QueryProcessesWorkItemsResponseBodyDataParticipant,
            processInstanceId: 'string',
            processVersion: 'string',
            receiptor: QueryProcessesWorkItemsResponseBodyDataReceiptor,
            receiveTimeGMT: 'string',
            schemaCode: 'string',
            startTimeGMT: 'string',
            state: 'string',
            workItemId: 'string',
            workItemType: 'string',
        };
    }
    constructor(map) {
        super(map);
    }
}
exports.QueryProcessesWorkItemsResponseBodyData = QueryProcessesWorkItemsResponseBodyData;
class Client extends openapi_client_1.default {
    constructor(config) {
        super(config);
        let gatewayClient = new gateway_dingtalk_1.default();
        this._spi = gatewayClient;
        this._endpointRule = "";
        if (tea_util_1.default.empty(this._endpoint)) {
            this._endpoint = "api.dingtalk.com";
        }
    }
    /**
     * 批量创建表单业务对象数据
     *
     * @param request - BatchInsertBizObjectRequest
     * @param headers - BatchInsertBizObjectHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns BatchInsertBizObjectResponse
     */
    async batchInsertBizObjectWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let body = {};
        if (!tea_util_1.default.isUnset(request.bizObjectJsonArray)) {
            body["bizObjectJsonArray"] = request.bizObjectJsonArray;
        }
        if (!tea_util_1.default.isUnset(request.isDraft)) {
            body["isDraft"] = request.isDraft;
        }
        if (!tea_util_1.default.isUnset(request.opUserId)) {
            body["opUserId"] = request.opUserId;
        }
        if (!tea_util_1.default.isUnset(request.schemaCode)) {
            body["schemaCode"] = request.schemaCode;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            body: openapi_util_1.default.parseToMap(body),
        });
        let params = new $OpenApi.Params({
            action: "BatchInsertBizObject",
            version: "h3yun_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/h3yun/forms/instances/batch`,
            method: "POST",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new BatchInsertBizObjectResponse({}));
    }
    /**
     * 批量创建表单业务对象数据
     *
     * @param request - BatchInsertBizObjectRequest
     * @returns BatchInsertBizObjectResponse
     */
    async batchInsertBizObject(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new BatchInsertBizObjectHeaders({});
        return await this.batchInsertBizObjectWithOptions(request, headers, runtime);
    }
    /**
     * 取消流程实例
     *
     * @param request - CancelProcessInstanceRequest
     * @param headers - CancelProcessInstanceHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns CancelProcessInstanceResponse
     */
    async cancelProcessInstanceWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let body = {};
        if (!tea_util_1.default.isUnset(request.processInstanceId)) {
            body["processInstanceId"] = request.processInstanceId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            body: openapi_util_1.default.parseToMap(body),
        });
        let params = new $OpenApi.Params({
            action: "CancelProcessInstance",
            version: "h3yun_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/h3yun/processes/instances/cancel`,
            method: "POST",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new CancelProcessInstanceResponse({}));
    }
    /**
     * 取消流程实例
     *
     * @param request - CancelProcessInstanceRequest
     * @returns CancelProcessInstanceResponse
     */
    async cancelProcessInstance(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new CancelProcessInstanceHeaders({});
        return await this.cancelProcessInstanceWithOptions(request, headers, runtime);
    }
    /**
     * 创建单条表单业务对象实例
     *
     * @param request - CreateBizObjectRequest
     * @param headers - CreateBizObjectHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns CreateBizObjectResponse
     */
    async createBizObjectWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let body = {};
        if (!tea_util_1.default.isUnset(request.bizObjectJson)) {
            body["bizObjectJson"] = request.bizObjectJson;
        }
        if (!tea_util_1.default.isUnset(request.isDraft)) {
            body["isDraft"] = request.isDraft;
        }
        if (!tea_util_1.default.isUnset(request.opUserId)) {
            body["opUserId"] = request.opUserId;
        }
        if (!tea_util_1.default.isUnset(request.schemaCode)) {
            body["schemaCode"] = request.schemaCode;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            body: openapi_util_1.default.parseToMap(body),
        });
        let params = new $OpenApi.Params({
            action: "CreateBizObject",
            version: "h3yun_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/h3yun/forms/instances`,
            method: "POST",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new CreateBizObjectResponse({}));
    }
    /**
     * 创建单条表单业务对象实例
     *
     * @param request - CreateBizObjectRequest
     * @returns CreateBizObjectResponse
     */
    async createBizObject(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new CreateBizObjectHeaders({});
        return await this.createBizObjectWithOptions(request, headers, runtime);
    }
    /**
     * 创建流程实例
     *
     * @param request - CreateProcessesInstanceRequest
     * @param headers - CreateProcessesInstanceHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns CreateProcessesInstanceResponse
     */
    async createProcessesInstanceWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let body = {};
        if (!tea_util_1.default.isUnset(request.bizObjectId)) {
            body["bizObjectId"] = request.bizObjectId;
        }
        if (!tea_util_1.default.isUnset(request.opUserId)) {
            body["opUserId"] = request.opUserId;
        }
        if (!tea_util_1.default.isUnset(request.schemaCode)) {
            body["schemaCode"] = request.schemaCode;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            body: openapi_util_1.default.parseToMap(body),
        });
        let params = new $OpenApi.Params({
            action: "CreateProcessesInstance",
            version: "h3yun_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/h3yun/processes/instances`,
            method: "POST",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new CreateProcessesInstanceResponse({}));
    }
    /**
     * 创建流程实例
     *
     * @param request - CreateProcessesInstanceRequest
     * @returns CreateProcessesInstanceResponse
     */
    async createProcessesInstance(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new CreateProcessesInstanceHeaders({});
        return await this.createProcessesInstanceWithOptions(request, headers, runtime);
    }
    /**
     * 删除表单业务对象实例
     *
     * @param request - DeleteBizObjectRequest
     * @param headers - DeleteBizObjectHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns DeleteBizObjectResponse
     */
    async deleteBizObjectWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.bizObjectId)) {
            query["bizObjectId"] = request.bizObjectId;
        }
        if (!tea_util_1.default.isUnset(request.schemaCode)) {
            query["schemaCode"] = request.schemaCode;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
        });
        let params = new $OpenApi.Params({
            action: "DeleteBizObject",
            version: "h3yun_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/h3yun/forms/instances`,
            method: "DELETE",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new DeleteBizObjectResponse({}));
    }
    /**
     * 删除表单业务对象实例
     *
     * @param request - DeleteBizObjectRequest
     * @returns DeleteBizObjectResponse
     */
    async deleteBizObject(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new DeleteBizObjectHeaders({});
        return await this.deleteBizObjectWithOptions(request, headers, runtime);
    }
    /**
     * 删除流程实例
     *
     * @param request - DeleteProcessesInstanceRequest
     * @param headers - DeleteProcessesInstanceHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns DeleteProcessesInstanceResponse
     */
    async deleteProcessesInstanceWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.isAutoUpdateBizObject)) {
            query["isAutoUpdateBizObject"] = request.isAutoUpdateBizObject;
        }
        if (!tea_util_1.default.isUnset(request.processInstanceId)) {
            query["processInstanceId"] = request.processInstanceId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
        });
        let params = new $OpenApi.Params({
            action: "DeleteProcessesInstance",
            version: "h3yun_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/h3yun/processes/instances`,
            method: "DELETE",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new DeleteProcessesInstanceResponse({}));
    }
    /**
     * 删除流程实例
     *
     * @param request - DeleteProcessesInstanceRequest
     * @returns DeleteProcessesInstanceResponse
     */
    async deleteProcessesInstance(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new DeleteProcessesInstanceHeaders({});
        return await this.deleteProcessesInstanceWithOptions(request, headers, runtime);
    }
    /**
     * 获取应用数据
     *
     * @param request - GetAppsRequest
     * @param headers - GetAppsHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns GetAppsResponse
     */
    async getAppsWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let body = {};
        if (!tea_util_1.default.isUnset(request.queryType)) {
            body["queryType"] = request.queryType;
        }
        if (!tea_util_1.default.isUnset(request.values)) {
            body["values"] = request.values;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            body: openapi_util_1.default.parseToMap(body),
        });
        let params = new $OpenApi.Params({
            action: "GetApps",
            version: "h3yun_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/h3yun/apps/search`,
            method: "POST",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new GetAppsResponse({}));
    }
    /**
     * 获取应用数据
     *
     * @param request - GetAppsRequest
     * @returns GetAppsResponse
     */
    async getApps(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new GetAppsHeaders({});
        return await this.getAppsWithOptions(request, headers, runtime);
    }
    /**
     * 获取附件临时免登地址
     *
     * @param request - GetAttachmentTemporaryUrlRequest
     * @param headers - GetAttachmentTemporaryUrlHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns GetAttachmentTemporaryUrlResponse
     */
    async getAttachmentTemporaryUrlWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.attachmentId)) {
            query["attachmentId"] = request.attachmentId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
        });
        let params = new $OpenApi.Params({
            action: "GetAttachmentTemporaryUrl",
            version: "h3yun_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/h3yun/attachments/temporaryUrls`,
            method: "GET",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new GetAttachmentTemporaryUrlResponse({}));
    }
    /**
     * 获取附件临时免登地址
     *
     * @param request - GetAttachmentTemporaryUrlRequest
     * @returns GetAttachmentTemporaryUrlResponse
     */
    async getAttachmentTemporaryUrl(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new GetAttachmentTemporaryUrlHeaders({});
        return await this.getAttachmentTemporaryUrlWithOptions(request, headers, runtime);
    }
    /**
     * 获取组织数据
     *
     * @param request - GetOrganizationsRequest
     * @param headers - GetOrganizationsHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns GetOrganizationsResponse
     */
    async getOrganizationsWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.departmentId)) {
            query["departmentId"] = request.departmentId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
        });
        let params = new $OpenApi.Params({
            action: "GetOrganizations",
            version: "h3yun_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/h3yun/departments`,
            method: "GET",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new GetOrganizationsResponse({}));
    }
    /**
     * 获取组织数据
     *
     * @param request - GetOrganizationsRequest
     * @returns GetOrganizationsResponse
     */
    async getOrganizations(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new GetOrganizationsHeaders({});
        return await this.getOrganizationsWithOptions(request, headers, runtime);
    }
    /**
     * 获取角色用户信息
     *
     * @param request - GetRoleUsersRequest
     * @param headers - GetRoleUsersHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns GetRoleUsersResponse
     */
    async getRoleUsersWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.roleId)) {
            query["roleId"] = request.roleId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
        });
        let params = new $OpenApi.Params({
            action: "GetRoleUsers",
            version: "h3yun_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/h3yun/roles/roleUsers`,
            method: "GET",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new GetRoleUsersResponse({}));
    }
    /**
     * 获取角色用户信息
     *
     * @param request - GetRoleUsersRequest
     * @returns GetRoleUsersResponse
     */
    async getRoleUsers(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new GetRoleUsersHeaders({});
        return await this.getRoleUsersWithOptions(request, headers, runtime);
    }
    /**
     * 获取角色数据
     *
     * @param headers - GetRolesHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns GetRolesResponse
     */
    async getRolesWithOptions(headers, runtime) {
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
        });
        let params = new $OpenApi.Params({
            action: "GetRoles",
            version: "h3yun_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/h3yun/roles`,
            method: "GET",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new GetRolesResponse({}));
    }
    /**
     * 获取角色数据
     * @returns GetRolesResponse
     */
    async getRoles() {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new GetRolesHeaders({});
        return await this.getRolesWithOptions(headers, runtime);
    }
    /**
     * 获取文件上传地址
     *
     * @param request - GetUploadUrlRequest
     * @param headers - GetUploadUrlHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns GetUploadUrlResponse
     */
    async getUploadUrlWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.bizObjectId)) {
            query["bizObjectId"] = request.bizObjectId;
        }
        if (!tea_util_1.default.isUnset(request.fieldName)) {
            query["fieldName"] = request.fieldName;
        }
        if (!tea_util_1.default.isUnset(request.isOverwrite)) {
            query["isOverwrite"] = request.isOverwrite;
        }
        if (!tea_util_1.default.isUnset(request.schemaCode)) {
            query["schemaCode"] = request.schemaCode;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
        });
        let params = new $OpenApi.Params({
            action: "GetUploadUrl",
            version: "h3yun_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/h3yun/attachments/uploadUrls`,
            method: "GET",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new GetUploadUrlResponse({}));
    }
    /**
     * 获取文件上传地址
     *
     * @param request - GetUploadUrlRequest
     * @returns GetUploadUrlResponse
     */
    async getUploadUrl(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new GetUploadUrlHeaders({});
        return await this.getUploadUrlWithOptions(request, headers, runtime);
    }
    /**
     * 获取用户数据
     *
     * @param request - GetUsersRequest
     * @param headers - GetUsersHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns GetUsersResponse
     */
    async getUsersWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.departmentId)) {
            query["departmentId"] = request.departmentId;
        }
        if (!tea_util_1.default.isUnset(request.isRecursive)) {
            query["isRecursive"] = request.isRecursive;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
        });
        let params = new $OpenApi.Params({
            action: "GetUsers",
            version: "h3yun_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/h3yun/users`,
            method: "GET",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new GetUsersResponse({}));
    }
    /**
     * 获取用户数据
     *
     * @param request - GetUsersRequest
     * @returns GetUsersResponse
     */
    async getUsers(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new GetUsersHeaders({});
        return await this.getUsersWithOptions(request, headers, runtime);
    }
    /**
     * 获取表单业务字段信息
     *
     * @param request - LoadBizFieldsRequest
     * @param headers - LoadBizFieldsHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns LoadBizFieldsResponse
     */
    async loadBizFieldsWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.schemaCode)) {
            query["schemaCode"] = request.schemaCode;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
        });
        let params = new $OpenApi.Params({
            action: "LoadBizFields",
            version: "h3yun_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/h3yun/forms/loadBizFields`,
            method: "GET",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new LoadBizFieldsResponse({}));
    }
    /**
     * 获取表单业务字段信息
     *
     * @param request - LoadBizFieldsRequest
     * @returns LoadBizFieldsResponse
     */
    async loadBizFields(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new LoadBizFieldsHeaders({});
        return await this.loadBizFieldsWithOptions(request, headers, runtime);
    }
    /**
     * 获取单条表单业务对象实例
     *
     * @param request - LoadBizObjectRequest
     * @param headers - LoadBizObjectHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns LoadBizObjectResponse
     */
    async loadBizObjectWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.bizObjectId)) {
            query["bizObjectId"] = request.bizObjectId;
        }
        if (!tea_util_1.default.isUnset(request.schemaCode)) {
            query["schemaCode"] = request.schemaCode;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
        });
        let params = new $OpenApi.Params({
            action: "LoadBizObject",
            version: "h3yun_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/h3yun/forms/instances/loadInstances`,
            method: "GET",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new LoadBizObjectResponse({}));
    }
    /**
     * 获取单条表单业务对象实例
     *
     * @param request - LoadBizObjectRequest
     * @returns LoadBizObjectResponse
     */
    async loadBizObject(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new LoadBizObjectHeaders({});
        return await this.loadBizObjectWithOptions(request, headers, runtime);
    }
    /**
     * 查询表单实例列表
     *
     * @param request - LoadBizObjectsRequest
     * @param headers - LoadBizObjectsHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns LoadBizObjectsResponse
     */
    async loadBizObjectsWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let body = {};
        if (!tea_util_1.default.isUnset(request.matcherJson)) {
            body["matcherJson"] = request.matcherJson;
        }
        if (!tea_util_1.default.isUnset(request.pageNumber)) {
            body["pageNumber"] = request.pageNumber;
        }
        if (!tea_util_1.default.isUnset(request.pageSize)) {
            body["pageSize"] = request.pageSize;
        }
        if (!tea_util_1.default.isUnset(request.returnFields)) {
            body["returnFields"] = request.returnFields;
        }
        if (!tea_util_1.default.isUnset(request.schemaCode)) {
            body["schemaCode"] = request.schemaCode;
        }
        if (!tea_util_1.default.isUnset(request.sortByFields)) {
            body["sortByFields"] = request.sortByFields;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            body: openapi_util_1.default.parseToMap(body),
        });
        let params = new $OpenApi.Params({
            action: "LoadBizObjects",
            version: "h3yun_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/h3yun/forms/instances/search`,
            method: "POST",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new LoadBizObjectsResponse({}));
    }
    /**
     * 查询表单实例列表
     *
     * @param request - LoadBizObjectsRequest
     * @returns LoadBizObjectsResponse
     */
    async loadBizObjects(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new LoadBizObjectsHeaders({});
        return await this.loadBizObjectsWithOptions(request, headers, runtime);
    }
    /**
     * 获取应用的功能节点信息
     *
     * @param request - QueryAppFunctionNodesRequest
     * @param headers - QueryAppFunctionNodesHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns QueryAppFunctionNodesResponse
     */
    async queryAppFunctionNodesWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.appCode)) {
            query["appCode"] = request.appCode;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
        });
        let params = new $OpenApi.Params({
            action: "QueryAppFunctionNodes",
            version: "h3yun_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/h3yun/apps/functionNodes`,
            method: "GET",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new QueryAppFunctionNodesResponse({}));
    }
    /**
     * 获取应用的功能节点信息
     *
     * @param request - QueryAppFunctionNodesRequest
     * @returns QueryAppFunctionNodesResponse
     */
    async queryAppFunctionNodes(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new QueryAppFunctionNodesHeaders({});
        return await this.queryAppFunctionNodesWithOptions(request, headers, runtime);
    }
    /**
     * 获取流程实例
     *
     * @param request - QueryProcessesInstanceRequest
     * @param headers - QueryProcessesInstanceHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns QueryProcessesInstanceResponse
     */
    async queryProcessesInstanceWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.bizObjectId)) {
            query["bizObjectId"] = request.bizObjectId;
        }
        if (!tea_util_1.default.isUnset(request.schemaCode)) {
            query["schemaCode"] = request.schemaCode;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
        });
        let params = new $OpenApi.Params({
            action: "QueryProcessesInstance",
            version: "h3yun_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/h3yun/processes/instances`,
            method: "GET",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new QueryProcessesInstanceResponse({}));
    }
    /**
     * 获取流程实例
     *
     * @param request - QueryProcessesInstanceRequest
     * @returns QueryProcessesInstanceResponse
     */
    async queryProcessesInstance(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new QueryProcessesInstanceHeaders({});
        return await this.queryProcessesInstanceWithOptions(request, headers, runtime);
    }
    /**
     * 获取流程实例节点工作项
     *
     * @param request - QueryProcessesWorkItemsRequest
     * @param headers - QueryProcessesWorkItemsHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns QueryProcessesWorkItemsResponse
     */
    async queryProcessesWorkItemsWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let query = {};
        if (!tea_util_1.default.isUnset(request.processInstanceId)) {
            query["processInstanceId"] = request.processInstanceId;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            query: openapi_util_1.default.query(query),
        });
        let params = new $OpenApi.Params({
            action: "QueryProcessesWorkItems",
            version: "h3yun_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/h3yun/processes/workItems`,
            method: "GET",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new QueryProcessesWorkItemsResponse({}));
    }
    /**
     * 获取流程实例节点工作项
     *
     * @param request - QueryProcessesWorkItemsRequest
     * @returns QueryProcessesWorkItemsResponse
     */
    async queryProcessesWorkItems(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new QueryProcessesWorkItemsHeaders({});
        return await this.queryProcessesWorkItemsWithOptions(request, headers, runtime);
    }
    /**
     * 修改表单业务对象数据
     *
     * @param request - UpdateBizObjectRequest
     * @param headers - UpdateBizObjectHeaders
     * @param runtime - runtime options for this request RuntimeOptions
     * @returns UpdateBizObjectResponse
     */
    async updateBizObjectWithOptions(request, headers, runtime) {
        tea_util_1.default.validateModel(request);
        let body = {};
        if (!tea_util_1.default.isUnset(request.bizObjectId)) {
            body["bizObjectId"] = request.bizObjectId;
        }
        if (!tea_util_1.default.isUnset(request.bizObjectJson)) {
            body["bizObjectJson"] = request.bizObjectJson;
        }
        if (!tea_util_1.default.isUnset(request.schemaCode)) {
            body["schemaCode"] = request.schemaCode;
        }
        let realHeaders = {};
        if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
            realHeaders = headers.commonHeaders;
        }
        if (!tea_util_1.default.isUnset(headers.xAcsDingtalkAccessToken)) {
            realHeaders["x-acs-dingtalk-access-token"] = tea_util_1.default.toJSONString(headers.xAcsDingtalkAccessToken);
        }
        let req = new $OpenApi.OpenApiRequest({
            headers: realHeaders,
            body: openapi_util_1.default.parseToMap(body),
        });
        let params = new $OpenApi.Params({
            action: "UpdateBizObject",
            version: "h3yun_1.0",
            protocol: "HTTP",
            pathname: `/v1.0/h3yun/forms/instances`,
            method: "PUT",
            authType: "AK",
            style: "ROA",
            reqBodyType: "none",
            bodyType: "json",
        });
        return $tea.cast(await this.execute(params, req, runtime), new UpdateBizObjectResponse({}));
    }
    /**
     * 修改表单业务对象数据
     *
     * @param request - UpdateBizObjectRequest
     * @returns UpdateBizObjectResponse
     */
    async updateBizObject(request) {
        let runtime = new $Util.RuntimeOptions({});
        let headers = new UpdateBizObjectHeaders({});
        return await this.updateBizObjectWithOptions(request, headers, runtime);
    }
}
exports.default = Client;
//# sourceMappingURL=client.js.map