@fairmint/canton-node-sdk
Version:
Canton Node SDK
33 lines • 1.39 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.JsSubmitAndWaitForTransactionTreeResponseSchema = exports.SubmitResponseSchema = void 0;
const zod_1 = require("zod");
/**
* Submit response for async command submission.
*/
exports.SubmitResponseSchema = zod_1.z.object({
// Empty object as per OpenAPI spec
}).strict();
/**
* Submit and wait for transaction tree response.
*/
exports.JsSubmitAndWaitForTransactionTreeResponseSchema = zod_1.z.object({
/** The transaction tree that resulted from the submitted command. */
transactionTree: zod_1.z.object({
/** Unique update ID for the transaction. */
updateId: zod_1.z.string(),
/** Command ID associated with the transaction (optional). */
commandId: zod_1.z.string().optional(),
/** Workflow ID associated with the transaction (optional). */
workflowId: zod_1.z.string().optional(),
/** Effective time of the transaction (ISO 8601). */
effectiveAt: zod_1.z.string(),
/** Offset of the transaction in the ledger stream. */
offset: zod_1.z.number(),
/** Map of event node IDs to tree events. */
eventsById: zod_1.z.record(zod_1.z.string(), zod_1.z.any()),
/** Record time of the transaction. */
recordTime: zod_1.z.string(),
}),
});
//# sourceMappingURL=command-responses.js.map