YDocMethods constructor

YDocMethods(
  1. WasmLibrary library
)

Implementation

YDocMethods(WasmLibrary library)
  : _yDocDispose = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#y-doc-dispose',
      const FuncType([('ref', YDoc._spec)], [('', Bool())]),
    )!,
    _yTextDispose = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#y-text-dispose',
      const FuncType([('ref', YText._spec)], [('', Bool())]),
    )!,
    _yArrayDispose = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#y-array-dispose',
      const FuncType([('ref', YArray._spec)], [('', Bool())]),
    )!,
    _yMapDispose = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#y-map-dispose',
      const FuncType([('ref', YMap._spec)], [('', Bool())]),
    )!,
    _yXmlElementDispose = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#y-xml-element-dispose',
      const FuncType([('ref', YXmlElement._spec)], [('', Bool())]),
    )!,
    _yXmlFragmentDispose = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#y-xml-fragment-dispose',
      const FuncType([('ref', YXmlFragment._spec)], [('', Bool())]),
    )!,
    _yXmlTextDispose = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#y-xml-text-dispose',
      const FuncType([('ref', YXmlText._spec)], [('', Bool())]),
    )!,
    _yTransactionDispose = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#y-transaction-dispose',
      const FuncType([('ref', YTransaction._spec)], [('', Bool())]),
    )!,
    _yValueDispose = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#y-value-dispose',
      const FuncType([('ref', YValue._spec)], [('', Bool())]),
    )!,
    _ySnapshotDispose = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#y-snapshot-dispose',
      const FuncType([('ref', YSnapshot._spec)], [('', Bool())]),
    )!,
    _undoManagerDispose = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#undo-manager-dispose',
      const FuncType([('ref', UndoManagerRef._spec)], [('', Bool())]),
    )!,
    _callbackDispose = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#callback-dispose',
      const FuncType([('ref', EventObserver._spec)], [('', Bool())]),
    )!,
    _yDocNew = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#y-doc-new',
      const FuncType(
        [('options', OptionType(YDocOptions._spec))],
        [('', YDoc._spec)],
      ),
    )!,
    _yDocParentDoc = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#y-doc-parent-doc',
      const FuncType([('ref', YDoc._spec)], [('', OptionType(YDoc._spec))]),
    )!,
    _yDocId = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#y-doc-id',
      const FuncType([('ref', YDoc._spec)], [('', U64())]),
    )!,
    _yDocGuid = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#y-doc-guid',
      const FuncType([('ref', YDoc._spec)], [('', StringType())]),
    )!,
    _yDocReadTransaction = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#y-doc-read-transaction',
      const FuncType([('ref', YDoc._spec)], [('', ReadTransaction._spec)]),
    )!,
    _yDocWriteTransaction = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#y-doc-write-transaction',
      const FuncType(
        [('ref', YDoc._spec), ('origin', ListType(U8()))],
        [('', WriteTransaction._spec)],
      ),
    )!,
    _yDocText = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#y-doc-text',
      const FuncType(
        [('ref', YDoc._spec), ('name', StringType())],
        [('', YText._spec)],
      ),
    )!,
    _yDocArray = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#y-doc-array',
      const FuncType(
        [('ref', YDoc._spec), ('name', StringType())],
        [('', YArray._spec)],
      ),
    )!,
    _yDocMap = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#y-doc-map',
      const FuncType(
        [('ref', YDoc._spec), ('name', StringType())],
        [('', YMap._spec)],
      ),
    )!,
    _yDocXmlFragment = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#y-doc-xml-fragment',
      const FuncType(
        [('ref', YDoc._spec), ('name', StringType())],
        [('', YXmlFragment._spec)],
      ),
    )!,
    _yDocXmlElement = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#y-doc-xml-element',
      const FuncType(
        [('ref', YDoc._spec), ('name', StringType())],
        [('', YXmlElement._spec)],
      ),
    )!,
    _yDocXmlText = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#y-doc-xml-text',
      const FuncType(
        [('ref', YDoc._spec), ('name', StringType())],
        [('', YXmlText._spec)],
      ),
    )!,
    _yDocOnUpdateV1 = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#y-doc-on-update-v1',
      const FuncType(
        [('ref', YDoc._spec), ('function-id', U32())],
        [('', EventObserver._spec)],
      ),
    )!,
    _yDocLoad = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#y-doc-load',
      const FuncType([
        ('ref', YDoc._spec),
        ('parent-txn', OptionType(YTransaction._spec)),
      ], []),
    )!,
    _yDocDestroy = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#y-doc-destroy',
      const FuncType([
        ('ref', YDoc._spec),
        ('parent-txn', OptionType(YTransaction._spec)),
      ], []),
    )!,
    _yDocSubdocs = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#y-doc-subdocs',
      const FuncType(
        [('ref', YDoc._spec), ('txn', OptionType(YTransaction._spec))],
        [('', ListType(YDoc._spec))],
      ),
    )!,
    _yDocSubdocGuids = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#y-doc-subdoc-guids',
      const FuncType(
        [('ref', YDoc._spec), ('txn', OptionType(YTransaction._spec))],
        [('', ListType(StringType()))],
      ),
    )!,
    _encodeStateVector = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#encode-state-vector',
      const FuncType([('ref', YDoc._spec)], [('', ListType(U8()))]),
    )!,
    _encodeStateAsUpdate = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#encode-state-as-update',
      const FuncType(
        [('ref', YDoc._spec), ('vector', OptionType(ListType(U8())))],
        [('', ResultType(ListType(U8()), StringType()))],
      ),
    )!,
    _encodeStateAsUpdateV2 = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#encode-state-as-update-v2',
      const FuncType(
        [('ref', YDoc._spec), ('vector', OptionType(ListType(U8())))],
        [('', ResultType(ListType(U8()), StringType()))],
      ),
    )!,
    _applyUpdate = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#apply-update',
      const FuncType(
        [
          ('ref', YDoc._spec),
          ('diff', ListType(U8())),
          ('origin', ListType(U8())),
        ],
        [('', ResultType(null, StringType()))],
      ),
    )!,
    _applyUpdateV2 = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#apply-update-v2',
      const FuncType(
        [
          ('ref', YDoc._spec),
          ('diff', ListType(U8())),
          ('origin', ListType(U8())),
        ],
        [('', ResultType(null, StringType()))],
      ),
    )!,
    _transactionOrigin = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#transaction-origin',
      const FuncType(
        [('txn', YTransaction._spec)],
        [('', OptionType(ListType(U8())))],
      ),
    )!,
    _transactionCommit = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#transaction-commit',
      const FuncType([('txn', YTransaction._spec)], []),
    )!,
    _transactionStateVectorV1 = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#transaction-state-vector-v1',
      const FuncType([('txn', YTransaction._spec)], [('', ListType(U8()))]),
    )!,
    _transactionDiffV1 = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#transaction-diff-v1',
      const FuncType(
        [('txn', YTransaction._spec), ('vector', OptionType(ListType(U8())))],
        [('', ResultType(ListType(U8()), StringType()))],
      ),
    )!,
    _transactionDiffV2 = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#transaction-diff-v2',
      const FuncType(
        [('txn', YTransaction._spec), ('vector', OptionType(ListType(U8())))],
        [('', ResultType(ListType(U8()), StringType()))],
      ),
    )!,
    _transactionApplyV1 = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#transaction-apply-v1',
      const FuncType(
        [('txn', YTransaction._spec), ('diff', ListType(U8()))],
        [('', ResultType(null, StringType()))],
      ),
    )!,
    _transactionApplyV2 = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#transaction-apply-v2',
      const FuncType(
        [('txn', YTransaction._spec), ('diff', ListType(U8()))],
        [('', ResultType(null, StringType()))],
      ),
    )!,
    _transactionEncodeUpdate = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#transaction-encode-update',
      const FuncType([('txn', YTransaction._spec)], [('', ListType(U8()))]),
    )!,
    _transactionEncodeUpdateV2 = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#transaction-encode-update-v2',
      const FuncType([('txn', YTransaction._spec)], [('', ListType(U8()))]),
    )!,
    _yTextNew = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#y-text-new',
      const FuncType(
        [('init', OptionType(StringType()))],
        [('', YText._spec)],
      ),
    )!,
    _yTextPrelim = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#y-text-prelim',
      const FuncType([('ref', YText._spec)], [('', Bool())]),
    )!,
    _yTextLength = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#y-text-length',
      const FuncType(
        [('ref', YText._spec), ('txn', OptionType(YTransaction._spec))],
        [('', U32())],
      ),
    )!,
    _yTextToString = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#y-text-to-string',
      const FuncType(
        [('ref', YText._spec), ('txn', OptionType(YTransaction._spec))],
        [('', StringType())],
      ),
    )!,
    _yTextToJson = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#y-text-to-json',
      const FuncType(
        [('ref', YText._spec), ('txn', OptionType(YTransaction._spec))],
        [('', StringType())],
      ),
    )!,
    _yTextInsert = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#y-text-insert',
      const FuncType([
        ('ref', YText._spec),
        ('index', U32()),
        ('chunk', StringType()),
        ('attributes', OptionType(JsonValueItem._spec)),
        ('txn', OptionType(YTransaction._spec)),
      ], []),
    )!,
    _yTextInsertEmbed = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#y-text-insert-embed',
      const FuncType([
        ('ref', YText._spec),
        ('index', U32()),
        ('embed', JsonValueItem._spec),
        ('attributes', OptionType(JsonValueItem._spec)),
        ('txn', OptionType(YTransaction._spec)),
      ], []),
    )!,
    _yTextFormat = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#y-text-format',
      const FuncType([
        ('ref', YText._spec),
        ('index', U32()),
        ('length', U32()),
        ('attributes', JsonValueItem._spec),
        ('txn', OptionType(YTransaction._spec)),
      ], []),
    )!,
    _yTextPush = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#y-text-push',
      const FuncType([
        ('ref', YText._spec),
        ('chunk', StringType()),
        ('attributes', OptionType(JsonValueItem._spec)),
        ('txn', OptionType(YTransaction._spec)),
      ], []),
    )!,
    _yTextDelete = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#y-text-delete',
      const FuncType([
        ('ref', YText._spec),
        ('index', U32()),
        ('length', U32()),
        ('txn', OptionType(YTransaction._spec)),
      ], []),
    )!,
    _yTextToDelta = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#y-text-to-delta',
      const FuncType(
        [
          ('ref', YText._spec),
          ('snapshot', OptionType(YSnapshot._spec)),
          ('prev-snapshot', OptionType(YSnapshot._spec)),
          ('txn', OptionType(YTransaction._spec)),
        ],
        [('', ListType(YTextDelta._spec))],
      ),
    )!,
    _yTextObserve = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#y-text-observe',
      const FuncType(
        [('ref', YText._spec), ('function-id', U32())],
        [('', EventObserver._spec)],
      ),
    )!,
    _yTextObserveDeep = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#y-text-observe-deep',
      const FuncType(
        [('ref', YText._spec), ('function-id', U32())],
        [('', EventObserver._spec)],
      ),
    )!,
    _snapshot = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#snapshot',
      const FuncType([('doc', YDoc._spec)], [('', YSnapshot._spec)]),
    )!,
    _equalSnapshot = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#equal-snapshot',
      const FuncType(
        [('left', YSnapshot._spec), ('right', YSnapshot._spec)],
        [('', Bool())],
      ),
    )!,
    _encodeSnapshotV1 = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#encode-snapshot-v1',
      const FuncType([('snapshot', YSnapshot._spec)], [('', ListType(U8()))]),
    )!,
    _encodeSnapshotV2 = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#encode-snapshot-v2',
      const FuncType([('snapshot', YSnapshot._spec)], [('', ListType(U8()))]),
    )!,
    _decodeSnapshotV1 = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#decode-snapshot-v1',
      const FuncType(
        [('snapshot', ListType(U8()))],
        [('', ResultType(YSnapshot._spec, StringType()))],
      ),
    )!,
    _decodeSnapshotV2 = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#decode-snapshot-v2',
      const FuncType(
        [('snapshot', ListType(U8()))],
        [('', ResultType(YSnapshot._spec, StringType()))],
      ),
    )!,
    _encodeStateFromSnapshotV1 = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#encode-state-from-snapshot-v1',
      const FuncType(
        [('doc', YDoc._spec), ('snapshot', YSnapshot._spec)],
        [('', ResultType(ListType(U8()), StringType()))],
      ),
    )!,
    _encodeStateFromSnapshotV2 = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#encode-state-from-snapshot-v2',
      const FuncType(
        [('doc', YDoc._spec), ('snapshot', YSnapshot._spec)],
        [('', ResultType(ListType(U8()), StringType()))],
      ),
    )!,
    _yArrayNew = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#y-array-new',
      const FuncType(
        [('init', OptionType(JsonValueItem._spec))],
        [('', YArray._spec)],
      ),
    )!,
    _yArrayPrelim = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#y-array-prelim',
      const FuncType([('ref', YArray._spec)], [('', Bool())]),
    )!,
    _yArrayLength = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#y-array-length',
      const FuncType(
        [('ref', YArray._spec), ('txn', OptionType(YTransaction._spec))],
        [('', U32())],
      ),
    )!,
    _yArrayToJson = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#y-array-to-json',
      const FuncType(
        [('ref', YArray._spec), ('txn', OptionType(YTransaction._spec))],
        [('', JsonValueItem._spec)],
      ),
    )!,
    _yArrayInsert = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#y-array-insert',
      const FuncType([
        ('ref', YArray._spec),
        ('index', U32()),
        ('items', JsonValueItem._spec),
        ('txn', OptionType(YTransaction._spec)),
      ], []),
    )!,
    _yArrayPush = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#y-array-push',
      const FuncType([
        ('ref', YArray._spec),
        ('items', JsonValueItem._spec),
        ('txn', OptionType(YTransaction._spec)),
      ], []),
    )!,
    _yArrayDelete = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#y-array-delete',
      const FuncType([
        ('ref', YArray._spec),
        ('index', U32()),
        ('length', U32()),
        ('txn', OptionType(YTransaction._spec)),
      ], []),
    )!,
    _yArrayMoveContent = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#y-array-move-content',
      const FuncType([
        ('ref', YArray._spec),
        ('source', U32()),
        ('target', U32()),
        ('txn', OptionType(YTransaction._spec)),
      ], []),
    )!,
    _yArrayGet = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#y-array-get',
      const FuncType(
        [
          ('ref', YArray._spec),
          ('index', U32()),
          ('txn', OptionType(YTransaction._spec)),
        ],
        [('', ResultType(YValue._spec, StringType()))],
      ),
    )!,
    _yArrayValues = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#y-array-values',
      const FuncType(
        [('ref', YArray._spec), ('txn', OptionType(YTransaction._spec))],
        [('', ListType(YValue._spec))],
      ),
    )!,
    _yArrayObserve = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#y-array-observe',
      const FuncType(
        [('ref', YArray._spec), ('function-id', U32())],
        [('', EventObserver._spec)],
      ),
    )!,
    _yArrayObserveDeep = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#y-array-observe-deep',
      const FuncType(
        [('ref', YArray._spec), ('function-id', U32())],
        [('', EventObserver._spec)],
      ),
    )!,
    _yMapNew = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#y-map-new',
      const FuncType(
        [('init', OptionType(JsonValueItem._spec))],
        [('', YMap._spec)],
      ),
    )!,
    _yMapPrelim = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#y-map-prelim',
      const FuncType([('ref', YMap._spec)], [('', Bool())]),
    )!,
    _yMapLength = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#y-map-length',
      const FuncType(
        [('ref', YMap._spec), ('txn', OptionType(YTransaction._spec))],
        [('', U32())],
      ),
    )!,
    _yMapToJson = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#y-map-to-json',
      const FuncType(
        [('ref', YMap._spec), ('txn', OptionType(YTransaction._spec))],
        [('', JsonValueItem._spec)],
      ),
    )!,
    _yMapSet = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#y-map-set',
      const FuncType([
        ('ref', YMap._spec),
        ('key', StringType()),
        ('value', JsonValueItem._spec),
        ('txn', OptionType(YTransaction._spec)),
      ], []),
    )!,
    _yMapDelete = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#y-map-delete',
      const FuncType([
        ('ref', YMap._spec),
        ('key', StringType()),
        ('txn', OptionType(YTransaction._spec)),
      ], []),
    )!,
    _yMapGet = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#y-map-get',
      const FuncType(
        [
          ('ref', YMap._spec),
          ('key', StringType()),
          ('txn', OptionType(YTransaction._spec)),
        ],
        [('', OptionType(YValue._spec))],
      ),
    )!,
    _yMapEntries = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#y-map-entries',
      const FuncType(
        [('ref', YMap._spec), ('txn', OptionType(YTransaction._spec))],
        [
          ('', ListType(Tuple([StringType(), YValue._spec]))),
        ],
      ),
    )!,
    _yMapObserve = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#y-map-observe',
      const FuncType(
        [('ref', YMap._spec), ('function-id', U32())],
        [('', EventObserver._spec)],
      ),
    )!,
    _yMapObserveDeep = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#y-map-observe-deep',
      const FuncType(
        [('ref', YMap._spec), ('function-id', U32())],
        [('', EventObserver._spec)],
      ),
    )!,
    _yXmlElementName = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#y-xml-element-name',
      const FuncType(
        [('ref', YXmlElement._spec)],
        [('', OptionType(StringType()))],
      ),
    )!,
    _yXmlElementLength = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#y-xml-element-length',
      const FuncType(
        [('ref', YXmlElement._spec), ('txn', OptionType(YTransaction._spec))],
        [('', U32())],
      ),
    )!,
    _yXmlElementInsertXmlElement = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#y-xml-element-insert-xml-element',
      const FuncType(
        [
          ('ref', YXmlElement._spec),
          ('index', U32()),
          ('name', StringType()),
          ('txn', OptionType(YTransaction._spec)),
        ],
        [('', YXmlElement._spec)],
      ),
    )!,
    _yXmlElementInsertXmlText = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#y-xml-element-insert-xml-text',
      const FuncType(
        [
          ('ref', YXmlElement._spec),
          ('index', U32()),
          ('txn', OptionType(YTransaction._spec)),
        ],
        [('', YXmlText._spec)],
      ),
    )!,
    _yXmlElementDelete = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#y-xml-element-delete',
      const FuncType([
        ('ref', YXmlElement._spec),
        ('index', U32()),
        ('length', U32()),
        ('txn', OptionType(YTransaction._spec)),
      ], []),
    )!,
    _yXmlFragmentName = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#y-xml-fragment-name',
      const FuncType(
        [('ref', YXmlFragment._spec)],
        [('', OptionType(StringType()))],
      ),
    )!,
    _yXmlFragmentLength = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#y-xml-fragment-length',
      const FuncType(
        [
          ('ref', YXmlFragment._spec),
          ('txn', OptionType(YTransaction._spec)),
        ],
        [('', U32())],
      ),
    )!,
    _yXmlTextLength = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#y-xml-text-length',
      const FuncType(
        [('ref', YXmlText._spec), ('txn', OptionType(YTransaction._spec))],
        [('', U32())],
      ),
    )!,
    _undoManagerNew = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#undo-manager-new',
      const FuncType(
        [
          ('doc', YDoc._spec),
          ('scope', YType._spec),
          ('options', UndoManagerOptions._spec),
        ],
        [('', UndoManagerRef._spec)],
      ),
    )!,
    _undoManagerAddToScope = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#undo-manager-add-to-scope',
      const FuncType([
        ('ref', UndoManagerRef._spec),
        ('ytypes', ListType(YType._spec)),
      ], []),
    )!,
    _undoManagerAddTrackedOrigin = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#undo-manager-add-tracked-origin',
      const FuncType([
        ('ref', UndoManagerRef._spec),
        ('origin', ListType(U8())),
      ], []),
    )!,
    _undoManagerRemoveTrackedOrigin = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#undo-manager-remove-tracked-origin',
      const FuncType([
        ('ref', UndoManagerRef._spec),
        ('origin', ListType(U8())),
      ], []),
    )!,
    _undoManagerClear = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#undo-manager-clear',
      const FuncType(
        [('ref', UndoManagerRef._spec)],
        [('', ResultType(null, StringType()))],
      ),
    )!,
    _undoManagerStopCapturing = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#undo-manager-stop-capturing',
      const FuncType([('ref', UndoManagerRef._spec)], []),
    )!,
    _undoManagerUndo = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#undo-manager-undo',
      const FuncType(
        [('ref', UndoManagerRef._spec)],
        [('', ResultType(Bool(), StringType()))],
      ),
    )!,
    _undoManagerRedo = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#undo-manager-redo',
      const FuncType(
        [('ref', UndoManagerRef._spec)],
        [('', ResultType(Bool(), StringType()))],
      ),
    )!,
    _undoManagerCanUndo = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#undo-manager-can-undo',
      const FuncType([('ref', UndoManagerRef._spec)], [('', Bool())]),
    )!,
    _undoManagerCanRedo = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#undo-manager-can-redo',
      const FuncType([('ref', UndoManagerRef._spec)], [('', Bool())]),
    )!,
    _undoManagerOnItemAdded = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#undo-manager-on-item-added',
      const FuncType(
        [('ref', UndoManagerRef._spec), ('function-id', U32())],
        [('', EventObserver._spec)],
      ),
    )!,
    _undoManagerOnItemPopped = library.getComponentFunction(
      'y-crdt-namespace:y-crdt/y-doc-methods#undo-manager-on-item-popped',
      const FuncType(
        [('ref', UndoManagerRef._spec), ('function-id', U32())],
        [('', EventObserver._spec)],
      ),
    )!;