@lansweeper/data-platform-outbound-grpc 0.16.0 → 0.16.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13,6 +13,7 @@ interface IDataCoreOutboundServiceService extends grpc.ServiceDefinition<grpc.Un
13
13
  getEntity: IDataCoreOutboundServiceService_IGetEntity;
14
14
  getEntities: IDataCoreOutboundServiceService_IGetEntities;
15
15
  listEntities: IDataCoreOutboundServiceService_IListEntities;
16
+ getEntityIdByRawSourceId: IDataCoreOutboundServiceService_IGetEntityIdByRawSourceId;
16
17
  catalogLookup: IDataCoreOutboundServiceService_ICatalogLookup;
17
18
  getIpLocationConfig: IDataCoreOutboundServiceService_IGetIpLocationConfig;
18
19
  setIpLocationConfig: IDataCoreOutboundServiceService_ISetIpLocationConfig;
@@ -45,6 +46,15 @@ interface IDataCoreOutboundServiceService_IListEntities extends grpc.MethodDefin
45
46
  responseSerialize: grpc.serialize<outbound_pb.ListEntityResponse>;
46
47
  responseDeserialize: grpc.deserialize<outbound_pb.ListEntityResponse>;
47
48
  }
49
+ interface IDataCoreOutboundServiceService_IGetEntityIdByRawSourceId extends grpc.MethodDefinition<outbound_pb.GetEntityIdByRawSourceIdAndEntityTypeRequest, outbound_pb.GetEntityIdByRawSourceIdResponse> {
50
+ path: "/com.lansweeper.dp.outbound.v1.DataCoreOutboundService/GetEntityIdByRawSourceId";
51
+ requestStream: false;
52
+ responseStream: true;
53
+ requestSerialize: grpc.serialize<outbound_pb.GetEntityIdByRawSourceIdAndEntityTypeRequest>;
54
+ requestDeserialize: grpc.deserialize<outbound_pb.GetEntityIdByRawSourceIdAndEntityTypeRequest>;
55
+ responseSerialize: grpc.serialize<outbound_pb.GetEntityIdByRawSourceIdResponse>;
56
+ responseDeserialize: grpc.deserialize<outbound_pb.GetEntityIdByRawSourceIdResponse>;
57
+ }
48
58
  interface IDataCoreOutboundServiceService_ICatalogLookup extends grpc.MethodDefinition<outbound_pb.CatalogLookupRequest, outbound_pb.CatalogLookupResponse> {
49
59
  path: "/com.lansweeper.dp.outbound.v1.DataCoreOutboundService/CatalogLookup";
50
60
  requestStream: false;
@@ -79,6 +89,7 @@ export interface IDataCoreOutboundServiceServer extends grpc.UntypedServiceImple
79
89
  getEntity: grpc.handleUnaryCall<outbound_pb.GetEntityRequest, outbound_pb.GetEntityResponse>;
80
90
  getEntities: grpc.handleServerStreamingCall<outbound_pb.GetEntitiesRequest, outbound_pb.GetEntityResponse>;
81
91
  listEntities: grpc.handleServerStreamingCall<outbound_pb.ListEntityRequest, outbound_pb.ListEntityResponse>;
92
+ getEntityIdByRawSourceId: grpc.handleServerStreamingCall<outbound_pb.GetEntityIdByRawSourceIdAndEntityTypeRequest, outbound_pb.GetEntityIdByRawSourceIdResponse>;
82
93
  catalogLookup: grpc.handleUnaryCall<outbound_pb.CatalogLookupRequest, outbound_pb.CatalogLookupResponse>;
83
94
  getIpLocationConfig: grpc.handleUnaryCall<outbound_pb.GetIpLocationConfigRequest, outbound_pb.GetIpLocationConfigResponse>;
84
95
  setIpLocationConfig: grpc.handleUnaryCall<outbound_pb.SetIpLocationConfigRequest, outbound_pb.SetIpLocationConfigResponse>;
@@ -92,6 +103,8 @@ export interface IDataCoreOutboundServiceClient {
92
103
  getEntities(request: outbound_pb.GetEntitiesRequest, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<outbound_pb.GetEntityResponse>;
93
104
  listEntities(request: outbound_pb.ListEntityRequest, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<outbound_pb.ListEntityResponse>;
94
105
  listEntities(request: outbound_pb.ListEntityRequest, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<outbound_pb.ListEntityResponse>;
106
+ getEntityIdByRawSourceId(request: outbound_pb.GetEntityIdByRawSourceIdAndEntityTypeRequest, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<outbound_pb.GetEntityIdByRawSourceIdResponse>;
107
+ getEntityIdByRawSourceId(request: outbound_pb.GetEntityIdByRawSourceIdAndEntityTypeRequest, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<outbound_pb.GetEntityIdByRawSourceIdResponse>;
95
108
  catalogLookup(request: outbound_pb.CatalogLookupRequest, callback: (error: grpc.ServiceError | null, response: outbound_pb.CatalogLookupResponse) => void): grpc.ClientUnaryCall;
96
109
  catalogLookup(request: outbound_pb.CatalogLookupRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: outbound_pb.CatalogLookupResponse) => void): grpc.ClientUnaryCall;
97
110
  catalogLookup(request: outbound_pb.CatalogLookupRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: outbound_pb.CatalogLookupResponse) => void): grpc.ClientUnaryCall;
@@ -112,6 +125,8 @@ export class DataCoreOutboundServiceClient extends grpc.Client implements IDataC
112
125
  public getEntities(request: outbound_pb.GetEntitiesRequest, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<outbound_pb.GetEntityResponse>;
113
126
  public listEntities(request: outbound_pb.ListEntityRequest, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<outbound_pb.ListEntityResponse>;
114
127
  public listEntities(request: outbound_pb.ListEntityRequest, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<outbound_pb.ListEntityResponse>;
128
+ public getEntityIdByRawSourceId(request: outbound_pb.GetEntityIdByRawSourceIdAndEntityTypeRequest, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<outbound_pb.GetEntityIdByRawSourceIdResponse>;
129
+ public getEntityIdByRawSourceId(request: outbound_pb.GetEntityIdByRawSourceIdAndEntityTypeRequest, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<outbound_pb.GetEntityIdByRawSourceIdResponse>;
115
130
  public catalogLookup(request: outbound_pb.CatalogLookupRequest, callback: (error: grpc.ServiceError | null, response: outbound_pb.CatalogLookupResponse) => void): grpc.ClientUnaryCall;
116
131
  public catalogLookup(request: outbound_pb.CatalogLookupRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: outbound_pb.CatalogLookupResponse) => void): grpc.ClientUnaryCall;
117
132
  public catalogLookup(request: outbound_pb.CatalogLookupRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: outbound_pb.CatalogLookupResponse) => void): grpc.ClientUnaryCall;
@@ -123,6 +123,28 @@ function deserialize_com_lansweeper_dp_outbound_v1_GetEntitiesRequest(buffer_arg
123
123
  return outbound_pb.GetEntitiesRequest.deserializeBinary(new Uint8Array(buffer_arg));
124
124
  }
125
125
 
126
+ function serialize_com_lansweeper_dp_outbound_v1_GetEntityIdByRawSourceIdAndEntityTypeRequest(arg) {
127
+ if (!(arg instanceof outbound_pb.GetEntityIdByRawSourceIdAndEntityTypeRequest)) {
128
+ throw new Error('Expected argument of type com.lansweeper.dp.outbound.v1.GetEntityIdByRawSourceIdAndEntityTypeRequest');
129
+ }
130
+ return Buffer.from(arg.serializeBinary());
131
+ }
132
+
133
+ function deserialize_com_lansweeper_dp_outbound_v1_GetEntityIdByRawSourceIdAndEntityTypeRequest(buffer_arg) {
134
+ return outbound_pb.GetEntityIdByRawSourceIdAndEntityTypeRequest.deserializeBinary(new Uint8Array(buffer_arg));
135
+ }
136
+
137
+ function serialize_com_lansweeper_dp_outbound_v1_GetEntityIdByRawSourceIdResponse(arg) {
138
+ if (!(arg instanceof outbound_pb.GetEntityIdByRawSourceIdResponse)) {
139
+ throw new Error('Expected argument of type com.lansweeper.dp.outbound.v1.GetEntityIdByRawSourceIdResponse');
140
+ }
141
+ return Buffer.from(arg.serializeBinary());
142
+ }
143
+
144
+ function deserialize_com_lansweeper_dp_outbound_v1_GetEntityIdByRawSourceIdResponse(buffer_arg) {
145
+ return outbound_pb.GetEntityIdByRawSourceIdResponse.deserializeBinary(new Uint8Array(buffer_arg));
146
+ }
147
+
126
148
  function serialize_com_lansweeper_dp_outbound_v1_GetEntityRequest(arg) {
127
149
  if (!(arg instanceof outbound_pb.GetEntityRequest)) {
128
150
  throw new Error('Expected argument of type com.lansweeper.dp.outbound.v1.GetEntityRequest');
@@ -238,9 +260,9 @@ function deserialize_com_lansweeper_dp_outbound_v1_SiteKey(buffer_arg) {
238
260
  //
239
261
  // *
240
262
  // GRPC Service. Currently supported operation:
241
- // - Get Entity
242
- // - Stream Entities
243
- // - Deconcile Entity
263
+ // - Get Entity
264
+ // - Stream Entities
265
+ // - Deconcile Entity
244
266
  var DataCoreOutboundServiceService = exports.DataCoreOutboundServiceService = {
245
267
  // ----------------------------------------
246
268
  // ACCESS API
@@ -269,7 +291,7 @@ getEntity: {
269
291
  responseSerialize: serialize_com_lansweeper_dp_outbound_v1_GetEntityResponse,
270
292
  responseDeserialize: deserialize_com_lansweeper_dp_outbound_v1_GetEntityResponse,
271
293
  },
272
- // lists entities for a site or site/type
294
+ // Lists entities for a site or site/type
273
295
  listEntities: {
274
296
  path: '/com.lansweeper.dp.outbound.v1.DataCoreOutboundService/ListEntities',
275
297
  requestStream: false,
@@ -281,6 +303,18 @@ listEntities: {
281
303
  responseSerialize: serialize_com_lansweeper_dp_outbound_v1_ListEntityResponse,
282
304
  responseDeserialize: deserialize_com_lansweeper_dp_outbound_v1_ListEntityResponse,
283
305
  },
306
+ // Given a site and a list of raw source id(s), retrieve the corresponding entity id(s).
307
+ getEntityIdByRawSourceId: {
308
+ path: '/com.lansweeper.dp.outbound.v1.DataCoreOutboundService/GetEntityIdByRawSourceId',
309
+ requestStream: false,
310
+ responseStream: true,
311
+ requestType: outbound_pb.GetEntityIdByRawSourceIdAndEntityTypeRequest,
312
+ responseType: outbound_pb.GetEntityIdByRawSourceIdResponse,
313
+ requestSerialize: serialize_com_lansweeper_dp_outbound_v1_GetEntityIdByRawSourceIdAndEntityTypeRequest,
314
+ requestDeserialize: deserialize_com_lansweeper_dp_outbound_v1_GetEntityIdByRawSourceIdAndEntityTypeRequest,
315
+ responseSerialize: serialize_com_lansweeper_dp_outbound_v1_GetEntityIdByRawSourceIdResponse,
316
+ responseDeserialize: deserialize_com_lansweeper_dp_outbound_v1_GetEntityIdByRawSourceIdResponse,
317
+ },
284
318
  // ----------------------------------------
285
319
  // ENRICHMENT API
286
320
  // ----------------------------------------
@@ -203,6 +203,115 @@ export namespace EntityFilter {
203
203
 
204
204
  }
205
205
 
206
+ export class GetEntityIdByRawSourceIdAndEntityTypeRequest extends jspb.Message {
207
+ getSiteId(): string;
208
+ setSiteId(value: string): GetEntityIdByRawSourceIdAndEntityTypeRequest;
209
+ clearSourceEntityList(): void;
210
+ getSourceEntityList(): Array<SourceEntity>;
211
+ setSourceEntityList(value: Array<SourceEntity>): GetEntityIdByRawSourceIdAndEntityTypeRequest;
212
+ addSourceEntity(value?: SourceEntity, index?: number): SourceEntity;
213
+
214
+ serializeBinary(): Uint8Array;
215
+ toObject(includeInstance?: boolean): GetEntityIdByRawSourceIdAndEntityTypeRequest.AsObject;
216
+ static toObject(includeInstance: boolean, msg: GetEntityIdByRawSourceIdAndEntityTypeRequest): GetEntityIdByRawSourceIdAndEntityTypeRequest.AsObject;
217
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
218
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
219
+ static serializeBinaryToWriter(message: GetEntityIdByRawSourceIdAndEntityTypeRequest, writer: jspb.BinaryWriter): void;
220
+ static deserializeBinary(bytes: Uint8Array): GetEntityIdByRawSourceIdAndEntityTypeRequest;
221
+ static deserializeBinaryFromReader(message: GetEntityIdByRawSourceIdAndEntityTypeRequest, reader: jspb.BinaryReader): GetEntityIdByRawSourceIdAndEntityTypeRequest;
222
+ }
223
+
224
+ export namespace GetEntityIdByRawSourceIdAndEntityTypeRequest {
225
+ export type AsObject = {
226
+ siteId: string,
227
+ sourceEntityList: Array<SourceEntity.AsObject>,
228
+ }
229
+ }
230
+
231
+ export class SourceEntity extends jspb.Message {
232
+ getRawSourceId(): string;
233
+ setRawSourceId(value: string): SourceEntity;
234
+ getEntityType(): SourceEntity.EntityType;
235
+ setEntityType(value: SourceEntity.EntityType): SourceEntity;
236
+
237
+ serializeBinary(): Uint8Array;
238
+ toObject(includeInstance?: boolean): SourceEntity.AsObject;
239
+ static toObject(includeInstance: boolean, msg: SourceEntity): SourceEntity.AsObject;
240
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
241
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
242
+ static serializeBinaryToWriter(message: SourceEntity, writer: jspb.BinaryWriter): void;
243
+ static deserializeBinary(bytes: Uint8Array): SourceEntity;
244
+ static deserializeBinaryFromReader(message: SourceEntity, reader: jspb.BinaryReader): SourceEntity;
245
+ }
246
+
247
+ export namespace SourceEntity {
248
+ export type AsObject = {
249
+ rawSourceId: string,
250
+ entityType: SourceEntity.EntityType,
251
+ }
252
+
253
+ export enum EntityType {
254
+ ASSET = 0,
255
+ USER = 1,
256
+ GROUP = 2,
257
+ }
258
+
259
+ }
260
+
261
+ export class GetEntityIdByRawSourceIdResponse extends jspb.Message {
262
+ getRawSourceId(): string;
263
+ setRawSourceId(value: string): GetEntityIdByRawSourceIdResponse;
264
+
265
+ hasAliasId(): boolean;
266
+ clearAliasId(): void;
267
+ getAliasId(): string | undefined;
268
+ setAliasId(value: string): GetEntityIdByRawSourceIdResponse;
269
+ getProcessingStatus(): GetEntityIdByRawSourceIdResponse.ProcessingStatus;
270
+ setProcessingStatus(value: GetEntityIdByRawSourceIdResponse.ProcessingStatus): GetEntityIdByRawSourceIdResponse;
271
+
272
+ hasTag(): boolean;
273
+ clearTag(): void;
274
+ getTag(): Tag | undefined;
275
+ setTag(value?: Tag): GetEntityIdByRawSourceIdResponse;
276
+
277
+ hasEntityPath(): boolean;
278
+ clearEntityPath(): void;
279
+ getEntityPath(): EntityPath | undefined;
280
+ setEntityPath(value?: EntityPath): GetEntityIdByRawSourceIdResponse;
281
+
282
+ hasLastUpdated(): boolean;
283
+ clearLastUpdated(): void;
284
+ getLastUpdated(): google_protobuf_timestamp_pb.Timestamp | undefined;
285
+ setLastUpdated(value?: google_protobuf_timestamp_pb.Timestamp): GetEntityIdByRawSourceIdResponse;
286
+
287
+ serializeBinary(): Uint8Array;
288
+ toObject(includeInstance?: boolean): GetEntityIdByRawSourceIdResponse.AsObject;
289
+ static toObject(includeInstance: boolean, msg: GetEntityIdByRawSourceIdResponse): GetEntityIdByRawSourceIdResponse.AsObject;
290
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
291
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
292
+ static serializeBinaryToWriter(message: GetEntityIdByRawSourceIdResponse, writer: jspb.BinaryWriter): void;
293
+ static deserializeBinary(bytes: Uint8Array): GetEntityIdByRawSourceIdResponse;
294
+ static deserializeBinaryFromReader(message: GetEntityIdByRawSourceIdResponse, reader: jspb.BinaryReader): GetEntityIdByRawSourceIdResponse;
295
+ }
296
+
297
+ export namespace GetEntityIdByRawSourceIdResponse {
298
+ export type AsObject = {
299
+ rawSourceId: string,
300
+ aliasId?: string,
301
+ processingStatus: GetEntityIdByRawSourceIdResponse.ProcessingStatus,
302
+ tag?: Tag.AsObject,
303
+ entityPath?: EntityPath.AsObject,
304
+ lastUpdated?: google_protobuf_timestamp_pb.Timestamp.AsObject,
305
+ }
306
+
307
+ export enum ProcessingStatus {
308
+ NOT_FOUND = 0,
309
+ PROCESSED = 1,
310
+ PROCESSING_FAILED = 2,
311
+ }
312
+
313
+ }
314
+
206
315
  export class GetEntityRequest extends jspb.Message {
207
316
 
208
317
  hasEntityPath(): boolean;
@@ -2928,6 +3037,11 @@ export class CloudEntity extends jspb.Message {
2928
3037
  getScannerType(): CloudEntity.ScannerType | undefined;
2929
3038
  setScannerType(value: CloudEntity.ScannerType): CloudEntity;
2930
3039
 
3040
+ hasCloudAssetType(): boolean;
3041
+ clearCloudAssetType(): void;
3042
+ getCloudAssetType(): string | undefined;
3043
+ setCloudAssetType(value: string): CloudEntity;
3044
+
2931
3045
  serializeBinary(): Uint8Array;
2932
3046
  toObject(includeInstance?: boolean): CloudEntity.AsObject;
2933
3047
  static toObject(includeInstance: boolean, msg: CloudEntity): CloudEntity.AsObject;
@@ -2955,6 +3069,7 @@ export namespace CloudEntity {
2955
3069
  publicCloudLinksList: Array<PublicCloudLink.AsObject>,
2956
3070
  resourceId?: string,
2957
3071
  scannerType?: CloudEntity.ScannerType,
3072
+ cloudAssetType?: string,
2958
3073
  }
2959
3074
 
2960
3075
  export enum ScannerType {