New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@textile/hub-grpc

Package Overview
Dependencies
Maintainers
5
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@textile/hub-grpc - npm Package Compare versions

Comparing version 2.5.1 to 2.6.0-rc1

38

api/billingd/pb/billingd_pb_service.d.ts

@@ -115,2 +115,20 @@ // package: api.billingd.pb

type APIServiceIdentify = {
readonly methodName: string;
readonly service: typeof APIService;
readonly requestStream: false;
readonly responseStream: false;
readonly requestType: typeof api_billingd_pb_billingd_pb.IdentifyRequest;
readonly responseType: typeof api_billingd_pb_billingd_pb.IdentifyResponse;
};
type APIServiceTrackEvent = {
readonly methodName: string;
readonly service: typeof APIService;
readonly requestStream: false;
readonly responseStream: false;
readonly requestType: typeof api_billingd_pb_billingd_pb.TrackEventRequest;
readonly responseType: typeof api_billingd_pb_billingd_pb.TrackEventResponse;
};
export class APIService {

@@ -130,2 +148,4 @@ static readonly serviceName: string;

static readonly ReportCustomerUsage: APIServiceReportCustomerUsage;
static readonly Identify: APIServiceIdentify;
static readonly TrackEvent: APIServiceTrackEvent;
}

@@ -273,3 +293,21 @@

): UnaryResponse;
identify(
requestMessage: api_billingd_pb_billingd_pb.IdentifyRequest,
metadata: grpc.Metadata,
callback: (error: ServiceError|null, responseMessage: api_billingd_pb_billingd_pb.IdentifyResponse|null) => void
): UnaryResponse;
identify(
requestMessage: api_billingd_pb_billingd_pb.IdentifyRequest,
callback: (error: ServiceError|null, responseMessage: api_billingd_pb_billingd_pb.IdentifyResponse|null) => void
): UnaryResponse;
trackEvent(
requestMessage: api_billingd_pb_billingd_pb.TrackEventRequest,
metadata: grpc.Metadata,
callback: (error: ServiceError|null, responseMessage: api_billingd_pb_billingd_pb.TrackEventResponse|null) => void
): UnaryResponse;
trackEvent(
requestMessage: api_billingd_pb_billingd_pb.TrackEventRequest,
callback: (error: ServiceError|null, responseMessage: api_billingd_pb_billingd_pb.TrackEventResponse|null) => void
): UnaryResponse;
}

@@ -121,2 +121,20 @@ // package: api.billingd.pb

APIService.Identify = {
methodName: "Identify",
service: APIService,
requestStream: false,
responseStream: false,
requestType: api_billingd_pb_billingd_pb.IdentifyRequest,
responseType: api_billingd_pb_billingd_pb.IdentifyResponse
};
APIService.TrackEvent = {
methodName: "TrackEvent",
service: APIService,
requestStream: false,
responseStream: false,
requestType: api_billingd_pb_billingd_pb.TrackEventRequest,
responseType: api_billingd_pb_billingd_pb.TrackEventResponse
};
exports.APIService = APIService;

@@ -501,3 +519,65 @@

APIServiceClient.prototype.identify = function identify(requestMessage, metadata, callback) {
if (arguments.length === 2) {
callback = arguments[1];
}
var client = grpc.unary(APIService.Identify, {
request: requestMessage,
host: this.serviceHost,
metadata: metadata,
transport: this.options.transport,
debug: this.options.debug,
onEnd: function (response) {
if (callback) {
if (response.status !== grpc.Code.OK) {
var err = new Error(response.statusMessage);
err.code = response.status;
err.metadata = response.trailers;
callback(err, null);
} else {
callback(null, response.message);
}
}
}
});
return {
cancel: function () {
callback = null;
client.close();
}
};
};
APIServiceClient.prototype.trackEvent = function trackEvent(requestMessage, metadata, callback) {
if (arguments.length === 2) {
callback = arguments[1];
}
var client = grpc.unary(APIService.TrackEvent, {
request: requestMessage,
host: this.serviceHost,
metadata: metadata,
transport: this.options.transport,
debug: this.options.debug,
onEnd: function (response) {
if (callback) {
if (response.status !== grpc.Code.OK) {
var err = new Error(response.statusMessage);
err.code = response.status;
err.metadata = response.trailers;
callback(err, null);
} else {
callback(null, response.message);
}
}
}
});
return {
cancel: function () {
callback = null;
client.close();
}
};
};
exports.APIServiceClient = APIServiceClient;

@@ -145,2 +145,5 @@ // package: api.billingd.pb

getUsername(): string;
setUsername(value: string): void;
serializeBinary(): Uint8Array;

@@ -161,2 +164,3 @@ toObject(includeInstance?: boolean): Params.AsObject;

accountType: number,
username: string,
}

@@ -660,1 +664,103 @@ }

export class IdentifyRequest extends jspb.Message {
getKey(): string;
setKey(value: string): void;
getAccountType(): number;
setAccountType(value: number): void;
getActive(): boolean;
setActive(value: boolean): void;
getEmail(): string;
setEmail(value: string): void;
getPropertiesMap(): jspb.Map<string, string>;
clearPropertiesMap(): void;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): IdentifyRequest.AsObject;
static toObject(includeInstance: boolean, msg: IdentifyRequest): IdentifyRequest.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: IdentifyRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): IdentifyRequest;
static deserializeBinaryFromReader(message: IdentifyRequest, reader: jspb.BinaryReader): IdentifyRequest;
}
export namespace IdentifyRequest {
export type AsObject = {
key: string,
accountType: number,
active: boolean,
email: string,
propertiesMap: Array<[string, string]>,
}
}
export class IdentifyResponse extends jspb.Message {
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): IdentifyResponse.AsObject;
static toObject(includeInstance: boolean, msg: IdentifyResponse): IdentifyResponse.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: IdentifyResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): IdentifyResponse;
static deserializeBinaryFromReader(message: IdentifyResponse, reader: jspb.BinaryReader): IdentifyResponse;
}
export namespace IdentifyResponse {
export type AsObject = {
}
}
export class TrackEventRequest extends jspb.Message {
getKey(): string;
setKey(value: string): void;
getAccountType(): number;
setAccountType(value: number): void;
getActive(): boolean;
setActive(value: boolean): void;
getEvent(): number;
setEvent(value: number): void;
getPropertiesMap(): jspb.Map<string, string>;
clearPropertiesMap(): void;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): TrackEventRequest.AsObject;
static toObject(includeInstance: boolean, msg: TrackEventRequest): TrackEventRequest.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: TrackEventRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): TrackEventRequest;
static deserializeBinaryFromReader(message: TrackEventRequest, reader: jspb.BinaryReader): TrackEventRequest;
}
export namespace TrackEventRequest {
export type AsObject = {
key: string,
accountType: number,
active: boolean,
event: number,
propertiesMap: Array<[string, string]>,
}
}
export class TrackEventResponse extends jspb.Message {
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): TrackEventResponse.AsObject;
static toObject(includeInstance: boolean, msg: TrackEventResponse): TrackEventResponse.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: TrackEventResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): TrackEventResponse;
static deserializeBinaryFromReader(message: TrackEventResponse, reader: jspb.BinaryReader): TrackEventResponse;
}
export namespace TrackEventResponse {
export type AsObject = {
}
}

2

package.json
{
"name": "@textile/hub-grpc",
"version": "2.5.1",
"version": "2.6.0-rc1",
"description": "A client for interacting with the Textile Hub gRPC API.",

@@ -5,0 +5,0 @@ "repository": {

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc