Type alias RestObjectOperationMapCreateWithObjectId

RestObjectOperationMapCreateWithObjectId: RestObjectOperationBase & {
    mapCreateWithObjectId: {
        initialValue: string;
        nonce: string;
    };
    objectId: string;
}

Operation to create a new map object with a client-generated object ID and initial entries. Use generateObjectId to generate the object ID, nonce, and initial value needed for this operation.

Type declaration

  • mapCreateWithObjectId: {
        initialValue: string;
        nonce: string;
    }

    The map creation parameters for a pre-computed object ID.

    • initialValue: string

      JSON-encoded string representation of the mapCreate object. Binary values in entries must be Base64-encoded in this JSON string. For example: '{"semantics":"lww","entries":{"name":{"data":{"string":"Alice"}}}}'.

    • nonce: string

      Random string used to generate the object ID.

  • objectId: string

    The object ID for the new map object. Use generateObjectId to generate this value along with the matching nonce and initial value.

Generated using TypeDoc