import { __decorateMetadata } from "../../../../../../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.mjs";
import { __decorate } from "../../../../../../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorate.mjs";
import { IsValidMessageType, parseMessageType } from "../../../../../util/messageType.mjs";
import { DidCommMessage } from "../../../../../DidCommMessage.mjs";
import { Expose } from "class-transformer";
import { IsInt } from "class-validator";

//#region ../didcomm/src/modules/message-pickup/protocol/v1/messages/DidCommBatchPickupMessage.ts
/**
* A message to request to have multiple waiting messages sent inside a `batch` message.
*
* @see https://github.com/hyperledger/aries-rfcs/blob/master/features/0212-pickup/README.md#batch-pickup
*/
var DidCommBatchPickupMessage = class DidCommBatchPickupMessage extends DidCommMessage {
	/**
	* Create new BatchPickupMessage instance.
	*
	* @param options
	*/
	constructor(options) {
		super();
		this.allowQueueTransport = false;
		this.type = DidCommBatchPickupMessage.type.messageTypeUri;
		if (options) {
			this.id = options.id || this.generateId();
			this.batchSize = options.batchSize;
		}
	}
};
DidCommBatchPickupMessage.type = parseMessageType("https://didcomm.org/messagepickup/1.0/batch-pickup");
__decorate([IsValidMessageType(DidCommBatchPickupMessage.type), __decorateMetadata("design:type", Object)], DidCommBatchPickupMessage.prototype, "type", void 0);
__decorate([
	IsInt(),
	Expose({ name: "batch_size" }),
	__decorateMetadata("design:type", Number)
], DidCommBatchPickupMessage.prototype, "batchSize", void 0);

//#endregion
export { DidCommBatchPickupMessage };
//# sourceMappingURL=DidCommBatchPickupMessage.mjs.map