textiot
Version:
A framework for building web and native (IoT) Dapps on the IPFS network
1,376 lines (1,146 loc) • 440 kB
TypeScript
import * as $protobuf from "protobufjs";
/** Properties of a CafeChallenge. */
export interface ICafeChallenge {
/** CafeChallenge address */
address: string;
}
/** Represents a CafeChallenge. */
export class CafeChallenge implements ICafeChallenge {
/**
* Constructs a new CafeChallenge.
* @param [properties] Properties to set
*/
constructor(properties?: ICafeChallenge);
/** CafeChallenge address. */
public address: string;
/**
* Creates a new CafeChallenge instance using the specified properties.
* @param [properties] Properties to set
* @returns CafeChallenge instance
*/
public static create(properties?: ICafeChallenge): CafeChallenge;
/**
* Encodes the specified CafeChallenge message. Does not implicitly {@link CafeChallenge.verify|verify} messages.
* @param message CafeChallenge message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: ICafeChallenge, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified CafeChallenge message, length delimited. Does not implicitly {@link CafeChallenge.verify|verify} messages.
* @param message CafeChallenge message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: ICafeChallenge, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a CafeChallenge message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns CafeChallenge
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): CafeChallenge;
/**
* Decodes a CafeChallenge message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns CafeChallenge
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): CafeChallenge;
/**
* Verifies a CafeChallenge message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a CafeChallenge message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns CafeChallenge
*/
public static fromObject(object: { [k: string]: any }): CafeChallenge;
/**
* Creates a plain object from a CafeChallenge message. Also converts values to other types if specified.
* @param message CafeChallenge
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: CafeChallenge, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this CafeChallenge to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
/** Properties of a CafeNonce. */
export interface ICafeNonce {
/** CafeNonce value */
value: string;
}
/** Represents a CafeNonce. */
export class CafeNonce implements ICafeNonce {
/**
* Constructs a new CafeNonce.
* @param [properties] Properties to set
*/
constructor(properties?: ICafeNonce);
/** CafeNonce value. */
public value: string;
/**
* Creates a new CafeNonce instance using the specified properties.
* @param [properties] Properties to set
* @returns CafeNonce instance
*/
public static create(properties?: ICafeNonce): CafeNonce;
/**
* Encodes the specified CafeNonce message. Does not implicitly {@link CafeNonce.verify|verify} messages.
* @param message CafeNonce message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: ICafeNonce, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified CafeNonce message, length delimited. Does not implicitly {@link CafeNonce.verify|verify} messages.
* @param message CafeNonce message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: ICafeNonce, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a CafeNonce message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns CafeNonce
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): CafeNonce;
/**
* Decodes a CafeNonce message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns CafeNonce
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): CafeNonce;
/**
* Verifies a CafeNonce message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a CafeNonce message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns CafeNonce
*/
public static fromObject(object: { [k: string]: any }): CafeNonce;
/**
* Creates a plain object from a CafeNonce message. Also converts values to other types if specified.
* @param message CafeNonce
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: CafeNonce, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this CafeNonce to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
/** Properties of a CafeRegistration. */
export interface ICafeRegistration {
/** CafeRegistration address */
address: string;
/** CafeRegistration value */
value: string;
/** CafeRegistration nonce */
nonce: string;
/** CafeRegistration sig */
sig: Uint8Array;
/** CafeRegistration token */
token: string;
}
/** Represents a CafeRegistration. */
export class CafeRegistration implements ICafeRegistration {
/**
* Constructs a new CafeRegistration.
* @param [properties] Properties to set
*/
constructor(properties?: ICafeRegistration);
/** CafeRegistration address. */
public address: string;
/** CafeRegistration value. */
public value: string;
/** CafeRegistration nonce. */
public nonce: string;
/** CafeRegistration sig. */
public sig: Uint8Array;
/** CafeRegistration token. */
public token: string;
/**
* Creates a new CafeRegistration instance using the specified properties.
* @param [properties] Properties to set
* @returns CafeRegistration instance
*/
public static create(properties?: ICafeRegistration): CafeRegistration;
/**
* Encodes the specified CafeRegistration message. Does not implicitly {@link CafeRegistration.verify|verify} messages.
* @param message CafeRegistration message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: ICafeRegistration, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified CafeRegistration message, length delimited. Does not implicitly {@link CafeRegistration.verify|verify} messages.
* @param message CafeRegistration message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: ICafeRegistration, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a CafeRegistration message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns CafeRegistration
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): CafeRegistration;
/**
* Decodes a CafeRegistration message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns CafeRegistration
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): CafeRegistration;
/**
* Verifies a CafeRegistration message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a CafeRegistration message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns CafeRegistration
*/
public static fromObject(object: { [k: string]: any }): CafeRegistration;
/**
* Creates a plain object from a CafeRegistration message. Also converts values to other types if specified.
* @param message CafeRegistration
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: CafeRegistration, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this CafeRegistration to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
/** Properties of a CafeDeregistration. */
export interface ICafeDeregistration {
/** CafeDeregistration token */
token: string;
}
/** Represents a CafeDeregistration. */
export class CafeDeregistration implements ICafeDeregistration {
/**
* Constructs a new CafeDeregistration.
* @param [properties] Properties to set
*/
constructor(properties?: ICafeDeregistration);
/** CafeDeregistration token. */
public token: string;
/**
* Creates a new CafeDeregistration instance using the specified properties.
* @param [properties] Properties to set
* @returns CafeDeregistration instance
*/
public static create(properties?: ICafeDeregistration): CafeDeregistration;
/**
* Encodes the specified CafeDeregistration message. Does not implicitly {@link CafeDeregistration.verify|verify} messages.
* @param message CafeDeregistration message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: ICafeDeregistration, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified CafeDeregistration message, length delimited. Does not implicitly {@link CafeDeregistration.verify|verify} messages.
* @param message CafeDeregistration message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: ICafeDeregistration, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a CafeDeregistration message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns CafeDeregistration
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): CafeDeregistration;
/**
* Decodes a CafeDeregistration message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns CafeDeregistration
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): CafeDeregistration;
/**
* Verifies a CafeDeregistration message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a CafeDeregistration message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns CafeDeregistration
*/
public static fromObject(object: { [k: string]: any }): CafeDeregistration;
/**
* Creates a plain object from a CafeDeregistration message. Also converts values to other types if specified.
* @param message CafeDeregistration
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: CafeDeregistration, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this CafeDeregistration to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
/** Properties of a CafeDeregistrationAck. */
export interface ICafeDeregistrationAck {
/** CafeDeregistrationAck id */
id: string;
}
/** Represents a CafeDeregistrationAck. */
export class CafeDeregistrationAck implements ICafeDeregistrationAck {
/**
* Constructs a new CafeDeregistrationAck.
* @param [properties] Properties to set
*/
constructor(properties?: ICafeDeregistrationAck);
/** CafeDeregistrationAck id. */
public id: string;
/**
* Creates a new CafeDeregistrationAck instance using the specified properties.
* @param [properties] Properties to set
* @returns CafeDeregistrationAck instance
*/
public static create(properties?: ICafeDeregistrationAck): CafeDeregistrationAck;
/**
* Encodes the specified CafeDeregistrationAck message. Does not implicitly {@link CafeDeregistrationAck.verify|verify} messages.
* @param message CafeDeregistrationAck message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: ICafeDeregistrationAck, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified CafeDeregistrationAck message, length delimited. Does not implicitly {@link CafeDeregistrationAck.verify|verify} messages.
* @param message CafeDeregistrationAck message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: ICafeDeregistrationAck, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a CafeDeregistrationAck message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns CafeDeregistrationAck
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): CafeDeregistrationAck;
/**
* Decodes a CafeDeregistrationAck message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns CafeDeregistrationAck
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): CafeDeregistrationAck;
/**
* Verifies a CafeDeregistrationAck message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a CafeDeregistrationAck message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns CafeDeregistrationAck
*/
public static fromObject(object: { [k: string]: any }): CafeDeregistrationAck;
/**
* Creates a plain object from a CafeDeregistrationAck message. Also converts values to other types if specified.
* @param message CafeDeregistrationAck
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: CafeDeregistrationAck, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this CafeDeregistrationAck to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
/** Properties of a CafeRefreshSession. */
export interface ICafeRefreshSession {
/** CafeRefreshSession access */
access: string;
/** CafeRefreshSession refresh */
refresh: string;
}
/** Represents a CafeRefreshSession. */
export class CafeRefreshSession implements ICafeRefreshSession {
/**
* Constructs a new CafeRefreshSession.
* @param [properties] Properties to set
*/
constructor(properties?: ICafeRefreshSession);
/** CafeRefreshSession access. */
public access: string;
/** CafeRefreshSession refresh. */
public refresh: string;
/**
* Creates a new CafeRefreshSession instance using the specified properties.
* @param [properties] Properties to set
* @returns CafeRefreshSession instance
*/
public static create(properties?: ICafeRefreshSession): CafeRefreshSession;
/**
* Encodes the specified CafeRefreshSession message. Does not implicitly {@link CafeRefreshSession.verify|verify} messages.
* @param message CafeRefreshSession message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: ICafeRefreshSession, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified CafeRefreshSession message, length delimited. Does not implicitly {@link CafeRefreshSession.verify|verify} messages.
* @param message CafeRefreshSession message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: ICafeRefreshSession, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a CafeRefreshSession message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns CafeRefreshSession
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): CafeRefreshSession;
/**
* Decodes a CafeRefreshSession message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns CafeRefreshSession
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): CafeRefreshSession;
/**
* Verifies a CafeRefreshSession message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a CafeRefreshSession message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns CafeRefreshSession
*/
public static fromObject(object: { [k: string]: any }): CafeRefreshSession;
/**
* Creates a plain object from a CafeRefreshSession message. Also converts values to other types if specified.
* @param message CafeRefreshSession
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: CafeRefreshSession, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this CafeRefreshSession to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
/** Properties of a CafePublishPeer. */
export interface ICafePublishPeer {
/** CafePublishPeer token */
token: string;
/** CafePublishPeer peer */
peer: IPeer;
}
/** Represents a CafePublishPeer. */
export class CafePublishPeer implements ICafePublishPeer {
/**
* Constructs a new CafePublishPeer.
* @param [properties] Properties to set
*/
constructor(properties?: ICafePublishPeer);
/** CafePublishPeer token. */
public token: string;
/** CafePublishPeer peer. */
public peer: IPeer;
/**
* Creates a new CafePublishPeer instance using the specified properties.
* @param [properties] Properties to set
* @returns CafePublishPeer instance
*/
public static create(properties?: ICafePublishPeer): CafePublishPeer;
/**
* Encodes the specified CafePublishPeer message. Does not implicitly {@link CafePublishPeer.verify|verify} messages.
* @param message CafePublishPeer message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: ICafePublishPeer, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified CafePublishPeer message, length delimited. Does not implicitly {@link CafePublishPeer.verify|verify} messages.
* @param message CafePublishPeer message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: ICafePublishPeer, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a CafePublishPeer message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns CafePublishPeer
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): CafePublishPeer;
/**
* Decodes a CafePublishPeer message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns CafePublishPeer
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): CafePublishPeer;
/**
* Verifies a CafePublishPeer message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a CafePublishPeer message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns CafePublishPeer
*/
public static fromObject(object: { [k: string]: any }): CafePublishPeer;
/**
* Creates a plain object from a CafePublishPeer message. Also converts values to other types if specified.
* @param message CafePublishPeer
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: CafePublishPeer, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this CafePublishPeer to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
/** Properties of a CafePublishPeerAck. */
export interface ICafePublishPeerAck {
/** CafePublishPeerAck id */
id: string;
}
/** Represents a CafePublishPeerAck. */
export class CafePublishPeerAck implements ICafePublishPeerAck {
/**
* Constructs a new CafePublishPeerAck.
* @param [properties] Properties to set
*/
constructor(properties?: ICafePublishPeerAck);
/** CafePublishPeerAck id. */
public id: string;
/**
* Creates a new CafePublishPeerAck instance using the specified properties.
* @param [properties] Properties to set
* @returns CafePublishPeerAck instance
*/
public static create(properties?: ICafePublishPeerAck): CafePublishPeerAck;
/**
* Encodes the specified CafePublishPeerAck message. Does not implicitly {@link CafePublishPeerAck.verify|verify} messages.
* @param message CafePublishPeerAck message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: ICafePublishPeerAck, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified CafePublishPeerAck message, length delimited. Does not implicitly {@link CafePublishPeerAck.verify|verify} messages.
* @param message CafePublishPeerAck message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: ICafePublishPeerAck, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a CafePublishPeerAck message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns CafePublishPeerAck
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): CafePublishPeerAck;
/**
* Decodes a CafePublishPeerAck message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns CafePublishPeerAck
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): CafePublishPeerAck;
/**
* Verifies a CafePublishPeerAck message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a CafePublishPeerAck message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns CafePublishPeerAck
*/
public static fromObject(object: { [k: string]: any }): CafePublishPeerAck;
/**
* Creates a plain object from a CafePublishPeerAck message. Also converts values to other types if specified.
* @param message CafePublishPeerAck
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: CafePublishPeerAck, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this CafePublishPeerAck to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
/** Properties of a CafeStore. */
export interface ICafeStore {
/** CafeStore token */
token: string;
/** CafeStore cids */
cids: string[];
}
/** Represents a CafeStore. */
export class CafeStore implements ICafeStore {
/**
* Constructs a new CafeStore.
* @param [properties] Properties to set
*/
constructor(properties?: ICafeStore);
/** CafeStore token. */
public token: string;
/** CafeStore cids. */
public cids: string[];
/**
* Creates a new CafeStore instance using the specified properties.
* @param [properties] Properties to set
* @returns CafeStore instance
*/
public static create(properties?: ICafeStore): CafeStore;
/**
* Encodes the specified CafeStore message. Does not implicitly {@link CafeStore.verify|verify} messages.
* @param message CafeStore message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: ICafeStore, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified CafeStore message, length delimited. Does not implicitly {@link CafeStore.verify|verify} messages.
* @param message CafeStore message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: ICafeStore, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a CafeStore message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns CafeStore
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): CafeStore;
/**
* Decodes a CafeStore message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns CafeStore
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): CafeStore;
/**
* Verifies a CafeStore message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a CafeStore message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns CafeStore
*/
public static fromObject(object: { [k: string]: any }): CafeStore;
/**
* Creates a plain object from a CafeStore message. Also converts values to other types if specified.
* @param message CafeStore
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: CafeStore, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this CafeStore to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
/** Properties of a CafeStoreAck. */
export interface ICafeStoreAck {
/** CafeStoreAck id */
id: string;
}
/** Represents a CafeStoreAck. */
export class CafeStoreAck implements ICafeStoreAck {
/**
* Constructs a new CafeStoreAck.
* @param [properties] Properties to set
*/
constructor(properties?: ICafeStoreAck);
/** CafeStoreAck id. */
public id: string;
/**
* Creates a new CafeStoreAck instance using the specified properties.
* @param [properties] Properties to set
* @returns CafeStoreAck instance
*/
public static create(properties?: ICafeStoreAck): CafeStoreAck;
/**
* Encodes the specified CafeStoreAck message. Does not implicitly {@link CafeStoreAck.verify|verify} messages.
* @param message CafeStoreAck message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: ICafeStoreAck, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified CafeStoreAck message, length delimited. Does not implicitly {@link CafeStoreAck.verify|verify} messages.
* @param message CafeStoreAck message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: ICafeStoreAck, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a CafeStoreAck message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns CafeStoreAck
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): CafeStoreAck;
/**
* Decodes a CafeStoreAck message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns CafeStoreAck
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): CafeStoreAck;
/**
* Verifies a CafeStoreAck message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a CafeStoreAck message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns CafeStoreAck
*/
public static fromObject(object: { [k: string]: any }): CafeStoreAck;
/**
* Creates a plain object from a CafeStoreAck message. Also converts values to other types if specified.
* @param message CafeStoreAck
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: CafeStoreAck, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this CafeStoreAck to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
/** Properties of a CafeUnstore. */
export interface ICafeUnstore {
/** CafeUnstore token */
token: string;
/** CafeUnstore cids */
cids: string[];
}
/** Represents a CafeUnstore. */
export class CafeUnstore implements ICafeUnstore {
/**
* Constructs a new CafeUnstore.
* @param [properties] Properties to set
*/
constructor(properties?: ICafeUnstore);
/** CafeUnstore token. */
public token: string;
/** CafeUnstore cids. */
public cids: string[];
/**
* Creates a new CafeUnstore instance using the specified properties.
* @param [properties] Properties to set
* @returns CafeUnstore instance
*/
public static create(properties?: ICafeUnstore): CafeUnstore;
/**
* Encodes the specified CafeUnstore message. Does not implicitly {@link CafeUnstore.verify|verify} messages.
* @param message CafeUnstore message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: ICafeUnstore, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified CafeUnstore message, length delimited. Does not implicitly {@link CafeUnstore.verify|verify} messages.
* @param message CafeUnstore message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: ICafeUnstore, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a CafeUnstore message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns CafeUnstore
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): CafeUnstore;
/**
* Decodes a CafeUnstore message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns CafeUnstore
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): CafeUnstore;
/**
* Verifies a CafeUnstore message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a CafeUnstore message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns CafeUnstore
*/
public static fromObject(object: { [k: string]: any }): CafeUnstore;
/**
* Creates a plain object from a CafeUnstore message. Also converts values to other types if specified.
* @param message CafeUnstore
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: CafeUnstore, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this CafeUnstore to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
/** Properties of a CafeUnstoreAck. */
export interface ICafeUnstoreAck {
/** CafeUnstoreAck cids */
cids: string[];
}
/** Represents a CafeUnstoreAck. */
export class CafeUnstoreAck implements ICafeUnstoreAck {
/**
* Constructs a new CafeUnstoreAck.
* @param [properties] Properties to set
*/
constructor(properties?: ICafeUnstoreAck);
/** CafeUnstoreAck cids. */
public cids: string[];
/**
* Creates a new CafeUnstoreAck instance using the specified properties.
* @param [properties] Properties to set
* @returns CafeUnstoreAck instance
*/
public static create(properties?: ICafeUnstoreAck): CafeUnstoreAck;
/**
* Encodes the specified CafeUnstoreAck message. Does not implicitly {@link CafeUnstoreAck.verify|verify} messages.
* @param message CafeUnstoreAck message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: ICafeUnstoreAck, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified CafeUnstoreAck message, length delimited. Does not implicitly {@link CafeUnstoreAck.verify|verify} messages.
* @param message CafeUnstoreAck message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: ICafeUnstoreAck, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a CafeUnstoreAck message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns CafeUnstoreAck
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): CafeUnstoreAck;
/**
* Decodes a CafeUnstoreAck message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns CafeUnstoreAck
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): CafeUnstoreAck;
/**
* Verifies a CafeUnstoreAck message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a CafeUnstoreAck message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns CafeUnstoreAck
*/
public static fromObject(object: { [k: string]: any }): CafeUnstoreAck;
/**
* Creates a plain object from a CafeUnstoreAck message. Also converts values to other types if specified.
* @param message CafeUnstoreAck
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: CafeUnstoreAck, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this CafeUnstoreAck to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
/** Properties of a CafeObjectList. */
export interface ICafeObjectList {
/** CafeObjectList cids */
cids: string[];
}
/** Represents a CafeObjectList. */
export class CafeObjectList implements ICafeObjectList {
/**
* Constructs a new CafeObjectList.
* @param [properties] Properties to set
*/
constructor(properties?: ICafeObjectList);
/** CafeObjectList cids. */
public cids: string[];
/**
* Creates a new CafeObjectList instance using the specified properties.
* @param [properties] Properties to set
* @returns CafeObjectList instance
*/
public static create(properties?: ICafeObjectList): CafeObjectList;
/**
* Encodes the specified CafeObjectList message. Does not implicitly {@link CafeObjectList.verify|verify} messages.
* @param message CafeObjectList message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: ICafeObjectList, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified CafeObjectList message, length delimited. Does not implicitly {@link CafeObjectList.verify|verify} messages.
* @param message CafeObjectList message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: ICafeObjectList, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a CafeObjectList message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns CafeObjectList
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): CafeObjectList;
/**
* Decodes a CafeObjectList message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns CafeObjectList
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): CafeObjectList;
/**
* Verifies a CafeObjectList message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a CafeObjectList message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns CafeObjectList
*/
public static fromObject(object: { [k: string]: any }): CafeObjectList;
/**
* Creates a plain object from a CafeObjectList message. Also converts values to other types if specified.
* @param message CafeObjectList
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: CafeObjectList, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this CafeObjectList to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
/** Properties of a CafeObject. */
export interface ICafeObject {
/** CafeObject token */
token: string;
/** CafeObject cid */
cid: string;
/** CafeObject data */
data: Uint8Array;
/** CafeObject node */
node: Uint8Array;
}
/** Represents a CafeObject. */
export class CafeObject implements ICafeObject {
/**
* Constructs a new CafeObject.
* @param [properties] Properties to set
*/
constructor(properties?: ICafeObject);
/** CafeObject token. */
public token: string;
/** CafeObject cid. */
public cid: string;
/** CafeObject data. */
public data: Uint8Array;
/** CafeObject node. */
public node: Uint8Array;
/**
* Creates a new CafeObject instance using the specified properties.
* @param [properties] Properties to set
* @returns CafeObject instance
*/
public static create(properties?: ICafeObject): CafeObject;
/**
* Encodes the specified CafeObject message. Does not implicitly {@link CafeObject.verify|verify} messages.
* @param message CafeObject message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: ICafeObject, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified CafeObject message, length delimited. Does not implicitly {@link CafeObject.verify|verify} messages.
* @param message CafeObject message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: ICafeObject, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a CafeObject message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns CafeObject
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): CafeObject;
/**
* Decodes a CafeObject message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns CafeObject
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): CafeObject;
/**
* Verifies a CafeObject message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a CafeObject message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns CafeObject
*/
public static fromObject(object: { [k: string]: any }): CafeObject;
/**
* Creates a plain object from a CafeObject message. Also converts values to other types if specified.
* @param message CafeObject
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: CafeObject, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this CafeObject to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
/** Properties of a CafeStoreThread. */
export interface ICafeStoreThread {
/** CafeStoreThread token */
token: string;
/** CafeStoreThread id */
id: string;
/** CafeStoreThread ciphertext */
ciphertext: Uint8Array;
}
/** Represents a CafeStoreThread. */
export class CafeStoreThread implements ICafeStoreThread {
/**
* Constructs a new CafeStoreThread.
* @param [properties] Properties to set
*/
constructor(properties?: ICafeStoreThread);
/** CafeStoreThread token. */
public token: string;
/** CafeStoreThread id. */
public id: string;
/** CafeStoreThread ciphertext. */
public ciphertext: Uint8Array;
/**
* Creates a new CafeStoreThread instance using the specified properties.
* @param [properties] Properties to set
* @returns CafeStoreThread instance
*/
public static create(properties?: ICafeStoreThread): CafeStoreThread;
/**
* Encodes the specified CafeStoreThread message. Does not implicitly {@link CafeStoreThread.verify|verify} messages.
* @param message CafeStoreThread message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: ICafeStoreThread, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified CafeStoreThread message, length delimited. Does not implicitly {@link CafeStoreThread.verify|verify} messages.