@lansweeper/integrations-webhooks-notifier-grpc 0.2.2 → 0.3.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,33 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.3.2](https://github.com/Lansweeper/lansweeperapis/compare/@lansweeper/integrations-webhooks-notifier-grpc@0.3.1...@lansweeper/integrations-webhooks-notifier-grpc@0.3.2) (2021-09-16)
7
+
8
+ **Note:** Version bump only for package @lansweeper/integrations-webhooks-notifier-grpc
9
+
10
+
11
+
12
+
13
+
14
+ ## [0.3.1](https://github.com/Lansweeper/lansweeperapis/compare/@lansweeper/integrations-webhooks-notifier-grpc@0.3.0...@lansweeper/integrations-webhooks-notifier-grpc@0.3.1) (2021-09-15)
15
+
16
+ **Note:** Version bump only for package @lansweeper/integrations-webhooks-notifier-grpc
17
+
18
+
19
+
20
+
21
+
22
+ # [0.3.0](https://github.com/Lansweeper/lansweeperapis/compare/@lansweeper/integrations-webhooks-notifier-grpc@0.2.2...@lansweeper/integrations-webhooks-notifier-grpc@0.3.0) (2021-09-13)
23
+
24
+
25
+ ### Features
26
+
27
+ * add validation service to webhook notifier ([b59a535](https://github.com/Lansweeper/lansweeperapis/commit/b59a535c1eb2c04b78f6c37ea9dc7ec78e8cf70d))
28
+
29
+
30
+
31
+
32
+
6
33
  ## [0.2.2](https://github.com/Lansweeper/lansweeperapis/compare/@lansweeper/integrations-webhooks-notifier-grpc@0.2.1...@lansweeper/integrations-webhooks-notifier-grpc@0.2.2) (2021-05-24)
7
34
 
8
35
  **Note:** Version bump only for package @lansweeper/integrations-webhooks-notifier-grpc
package/buf.yaml ADDED
@@ -0,0 +1,20 @@
1
+ version: v1
2
+ build:
3
+ excludes:
4
+ - node_modules
5
+ lint:
6
+ use:
7
+ - DEFAULT
8
+ except:
9
+ - FIELD_LOWER_SNAKE_CASE
10
+ - PACKAGE_DIRECTORY_MATCH
11
+ - PACKAGE_SAME_DIRECTORY
12
+ - SERVICE_SUFFIX
13
+ - RPC_REQUEST_STANDARD_NAME
14
+ - RPC_RESPONSE_STANDARD_NAME
15
+ - RPC_REQUEST_RESPONSE_UNIQUE
16
+ - ENUM_ZERO_VALUE_SUFFIX
17
+ - ENUM_VALUE_PREFIX
18
+ breaking:
19
+ use:
20
+ - FILE
@@ -1 +1 @@
1
- {"file":[{"name":"webhooks_notifier_consumer.proto","package":"lansweeper.integrationswebhooknotifierconsumer.v1","messageType":[{"name":"RedeliverNotificationRequest","field":[{"name":"notificationId","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"notificationId"},{"name":"traceId","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"traceId"}]},{"name":"RedeliverNotificationResponse","field":[{"name":"success","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_INT64","jsonName":"success"}]}],"service":[{"name":"IntegrationsRedeliverService","method":[{"name":"RedeliverNotification","inputType":".lansweeper.integrationswebhooknotifierconsumer.v1.RedeliverNotificationRequest","outputType":".lansweeper.integrationswebhooknotifierconsumer.v1.RedeliverNotificationResponse","options":{}}]}],"sourceCodeInfo":{"location":[{"span":[0,0,15,1]},{"path":[12],"span":[0,0,18]},{"path":[2],"span":[2,0,58]},{"path":[4,0],"span":[4,0,7,1]},{"path":[4,0,1],"span":[4,8,36]},{"path":[4,0,2,0],"span":[5,2,28]},{"path":[4,0,2,0,5],"span":[5,2,8]},{"path":[4,0,2,0,1],"span":[5,9,23]},{"path":[4,0,2,0,3],"span":[5,26,27]},{"path":[4,0,2,1],"span":[6,2,21]},{"path":[4,0,2,1,5],"span":[6,2,8]},{"path":[4,0,2,1,1],"span":[6,9,16]},{"path":[4,0,2,1,3],"span":[6,19,20]},{"path":[4,1],"span":[9,0,11,1]},{"path":[4,1,1],"span":[9,8,37]},{"path":[4,1,2,0],"span":[10,2,20]},{"path":[4,1,2,0,5],"span":[10,2,7]},{"path":[4,1,2,0,1],"span":[10,8,15]},{"path":[4,1,2,0,3],"span":[10,18,19]},{"path":[6,0],"span":[13,0,15,1]},{"path":[6,0,1],"span":[13,8,36]},{"path":[6,0,2,0],"span":[14,2,101]},{"path":[6,0,2,0,1],"span":[14,6,27]},{"path":[6,0,2,0,2],"span":[14,29,57]},{"path":[6,0,2,0,3],"span":[14,68,97]}]},"syntax":"proto3"}],"bufbuildImageExtension":{}}
1
+ {"file":[{"name":"proto/webhooks_notifier_consumer.proto","package":"lansweeper.integrationswebhooknotifierconsumer.v1","messageType":[{"name":"RedeliverNotificationRequest","field":[{"name":"notificationId","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"notificationId"},{"name":"traceId","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"traceId"}]},{"name":"RedeliverNotificationResponse","field":[{"name":"success","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_INT64","jsonName":"success"}]},{"name":"IsTrustedDomainRequest","field":[{"name":"hostname","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"hostname"},{"name":"traceId","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"traceId"}]},{"name":"IsTrustedDomainResponse","field":[{"name":"isTrusted","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_BOOL","jsonName":"isTrusted"}]}],"service":[{"name":"IntegrationsRedeliverService","method":[{"name":"RedeliverNotification","inputType":".lansweeper.integrationswebhooknotifierconsumer.v1.RedeliverNotificationRequest","outputType":".lansweeper.integrationswebhooknotifierconsumer.v1.RedeliverNotificationResponse","options":{}}]},{"name":"IntegrationsValidateDomainService","method":[{"name":"IsTrustedDomain","inputType":".lansweeper.integrationswebhooknotifierconsumer.v1.IsTrustedDomainRequest","outputType":".lansweeper.integrationswebhooknotifierconsumer.v1.IsTrustedDomainResponse","options":{}}]}],"sourceCodeInfo":{"location":[{"span":[0,0,29,1]},{"path":[12],"span":[0,0,18]},{"path":[2],"span":[2,0,58]},{"path":[4,0],"span":[4,0,7,1]},{"path":[4,0,1],"span":[4,8,36]},{"path":[4,0,2,0],"span":[5,2,28]},{"path":[4,0,2,0,5],"span":[5,2,8]},{"path":[4,0,2,0,1],"span":[5,9,23]},{"path":[4,0,2,0,3],"span":[5,26,27]},{"path":[4,0,2,1],"span":[6,2,21]},{"path":[4,0,2,1,5],"span":[6,2,8]},{"path":[4,0,2,1,1],"span":[6,9,16]},{"path":[4,0,2,1,3],"span":[6,19,20]},{"path":[4,1],"span":[9,0,11,1]},{"path":[4,1,1],"span":[9,8,37]},{"path":[4,1,2,0],"span":[10,2,20]},{"path":[4,1,2,0,5],"span":[10,2,7]},{"path":[4,1,2,0,1],"span":[10,8,15]},{"path":[4,1,2,0,3],"span":[10,18,19]},{"path":[6,0],"span":[14,0,16,1]},{"path":[6,0,1],"span":[14,8,36]},{"path":[6,0,2,0],"span":[15,2,101]},{"path":[6,0,2,0,1],"span":[15,6,27]},{"path":[6,0,2,0,2],"span":[15,29,57]},{"path":[6,0,2,0,3],"span":[15,68,97]},{"path":[4,2],"span":[18,0,21,1]},{"path":[4,2,1],"span":[18,8,30]},{"path":[4,2,2,0],"span":[19,2,22]},{"path":[4,2,2,0,5],"span":[19,2,8]},{"path":[4,2,2,0,1],"span":[19,9,17]},{"path":[4,2,2,0,3],"span":[19,20,21]},{"path":[4,2,2,1],"span":[20,2,21]},{"path":[4,2,2,1,5],"span":[20,2,8]},{"path":[4,2,2,1,1],"span":[20,9,16]},{"path":[4,2,2,1,3],"span":[20,19,20]},{"path":[4,3],"span":[23,0,25,1]},{"path":[4,3,1],"span":[23,8,31]},{"path":[4,3,2,0],"span":[24,2,21]},{"path":[4,3,2,0,5],"span":[24,2,6]},{"path":[4,3,2,0,1],"span":[24,7,16]},{"path":[4,3,2,0,3],"span":[24,19,20]},{"path":[6,1],"span":[27,0,29,1]},{"path":[6,1,1],"span":[27,8,41]},{"path":[6,1,2,0],"span":[28,2,83]},{"path":[6,1,2,0,1],"span":[28,6,21]},{"path":[6,1,2,0,2],"span":[28,23,45]},{"path":[6,1,2,0,3],"span":[28,56,79]}]},"syntax":"proto3","bufExtension":{"isImport":false,"isSyntaxUnspecified":false}}]}
@@ -5,7 +5,6 @@
5
5
  /* eslint-disable */
6
6
 
7
7
  import * as grpc from "@grpc/grpc-js";
8
- import {handleClientStreamingCall} from "@grpc/grpc-js/build/src/server-call";
9
8
  import * as webhooks_notifier_consumer_pb from "./webhooks_notifier_consumer_pb";
10
9
 
11
10
  interface IIntegrationsRedeliverServiceService extends grpc.ServiceDefinition<grpc.UntypedServiceImplementation> {
@@ -40,3 +39,36 @@ export class IntegrationsRedeliverServiceClient extends grpc.Client implements I
40
39
  public redeliverNotification(request: webhooks_notifier_consumer_pb.RedeliverNotificationRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: webhooks_notifier_consumer_pb.RedeliverNotificationResponse) => void): grpc.ClientUnaryCall;
41
40
  public redeliverNotification(request: webhooks_notifier_consumer_pb.RedeliverNotificationRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: webhooks_notifier_consumer_pb.RedeliverNotificationResponse) => void): grpc.ClientUnaryCall;
42
41
  }
42
+
43
+ interface IIntegrationsValidateDomainServiceService extends grpc.ServiceDefinition<grpc.UntypedServiceImplementation> {
44
+ isTrustedDomain: IIntegrationsValidateDomainServiceService_IIsTrustedDomain;
45
+ }
46
+
47
+ interface IIntegrationsValidateDomainServiceService_IIsTrustedDomain extends grpc.MethodDefinition<webhooks_notifier_consumer_pb.IsTrustedDomainRequest, webhooks_notifier_consumer_pb.IsTrustedDomainResponse> {
48
+ path: "/lansweeper.integrationswebhooknotifierconsumer.v1.IntegrationsValidateDomainService/IsTrustedDomain";
49
+ requestStream: false;
50
+ responseStream: false;
51
+ requestSerialize: grpc.serialize<webhooks_notifier_consumer_pb.IsTrustedDomainRequest>;
52
+ requestDeserialize: grpc.deserialize<webhooks_notifier_consumer_pb.IsTrustedDomainRequest>;
53
+ responseSerialize: grpc.serialize<webhooks_notifier_consumer_pb.IsTrustedDomainResponse>;
54
+ responseDeserialize: grpc.deserialize<webhooks_notifier_consumer_pb.IsTrustedDomainResponse>;
55
+ }
56
+
57
+ export const IntegrationsValidateDomainServiceService: IIntegrationsValidateDomainServiceService;
58
+
59
+ export interface IIntegrationsValidateDomainServiceServer extends grpc.UntypedServiceImplementation {
60
+ isTrustedDomain: grpc.handleUnaryCall<webhooks_notifier_consumer_pb.IsTrustedDomainRequest, webhooks_notifier_consumer_pb.IsTrustedDomainResponse>;
61
+ }
62
+
63
+ export interface IIntegrationsValidateDomainServiceClient {
64
+ isTrustedDomain(request: webhooks_notifier_consumer_pb.IsTrustedDomainRequest, callback: (error: grpc.ServiceError | null, response: webhooks_notifier_consumer_pb.IsTrustedDomainResponse) => void): grpc.ClientUnaryCall;
65
+ isTrustedDomain(request: webhooks_notifier_consumer_pb.IsTrustedDomainRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: webhooks_notifier_consumer_pb.IsTrustedDomainResponse) => void): grpc.ClientUnaryCall;
66
+ isTrustedDomain(request: webhooks_notifier_consumer_pb.IsTrustedDomainRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: webhooks_notifier_consumer_pb.IsTrustedDomainResponse) => void): grpc.ClientUnaryCall;
67
+ }
68
+
69
+ export class IntegrationsValidateDomainServiceClient extends grpc.Client implements IIntegrationsValidateDomainServiceClient {
70
+ constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial<grpc.ClientOptions>);
71
+ public isTrustedDomain(request: webhooks_notifier_consumer_pb.IsTrustedDomainRequest, callback: (error: grpc.ServiceError | null, response: webhooks_notifier_consumer_pb.IsTrustedDomainResponse) => void): grpc.ClientUnaryCall;
72
+ public isTrustedDomain(request: webhooks_notifier_consumer_pb.IsTrustedDomainRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: webhooks_notifier_consumer_pb.IsTrustedDomainResponse) => void): grpc.ClientUnaryCall;
73
+ public isTrustedDomain(request: webhooks_notifier_consumer_pb.IsTrustedDomainRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: webhooks_notifier_consumer_pb.IsTrustedDomainResponse) => void): grpc.ClientUnaryCall;
74
+ }
@@ -4,6 +4,28 @@
4
4
  var grpc = require('@grpc/grpc-js');
5
5
  var webhooks_notifier_consumer_pb = require('./webhooks_notifier_consumer_pb.js');
6
6
 
7
+ function serialize_lansweeper_integrationswebhooknotifierconsumer_v1_IsTrustedDomainRequest(arg) {
8
+ if (!(arg instanceof webhooks_notifier_consumer_pb.IsTrustedDomainRequest)) {
9
+ throw new Error('Expected argument of type lansweeper.integrationswebhooknotifierconsumer.v1.IsTrustedDomainRequest');
10
+ }
11
+ return Buffer.from(arg.serializeBinary());
12
+ }
13
+
14
+ function deserialize_lansweeper_integrationswebhooknotifierconsumer_v1_IsTrustedDomainRequest(buffer_arg) {
15
+ return webhooks_notifier_consumer_pb.IsTrustedDomainRequest.deserializeBinary(new Uint8Array(buffer_arg));
16
+ }
17
+
18
+ function serialize_lansweeper_integrationswebhooknotifierconsumer_v1_IsTrustedDomainResponse(arg) {
19
+ if (!(arg instanceof webhooks_notifier_consumer_pb.IsTrustedDomainResponse)) {
20
+ throw new Error('Expected argument of type lansweeper.integrationswebhooknotifierconsumer.v1.IsTrustedDomainResponse');
21
+ }
22
+ return Buffer.from(arg.serializeBinary());
23
+ }
24
+
25
+ function deserialize_lansweeper_integrationswebhooknotifierconsumer_v1_IsTrustedDomainResponse(buffer_arg) {
26
+ return webhooks_notifier_consumer_pb.IsTrustedDomainResponse.deserializeBinary(new Uint8Array(buffer_arg));
27
+ }
28
+
7
29
  function serialize_lansweeper_integrationswebhooknotifierconsumer_v1_RedeliverNotificationRequest(arg) {
8
30
  if (!(arg instanceof webhooks_notifier_consumer_pb.RedeliverNotificationRequest)) {
9
31
  throw new Error('Expected argument of type lansweeper.integrationswebhooknotifierconsumer.v1.RedeliverNotificationRequest');
@@ -42,3 +64,18 @@ var IntegrationsRedeliverServiceService = exports.IntegrationsRedeliverServiceSe
42
64
  };
43
65
 
44
66
  exports.IntegrationsRedeliverServiceClient = grpc.makeGenericClientConstructor(IntegrationsRedeliverServiceService);
67
+ var IntegrationsValidateDomainServiceService = exports.IntegrationsValidateDomainServiceService = {
68
+ isTrustedDomain: {
69
+ path: '/lansweeper.integrationswebhooknotifierconsumer.v1.IntegrationsValidateDomainService/IsTrustedDomain',
70
+ requestStream: false,
71
+ responseStream: false,
72
+ requestType: webhooks_notifier_consumer_pb.IsTrustedDomainRequest,
73
+ responseType: webhooks_notifier_consumer_pb.IsTrustedDomainResponse,
74
+ requestSerialize: serialize_lansweeper_integrationswebhooknotifierconsumer_v1_IsTrustedDomainRequest,
75
+ requestDeserialize: deserialize_lansweeper_integrationswebhooknotifierconsumer_v1_IsTrustedDomainRequest,
76
+ responseSerialize: serialize_lansweeper_integrationswebhooknotifierconsumer_v1_IsTrustedDomainResponse,
77
+ responseDeserialize: deserialize_lansweeper_integrationswebhooknotifierconsumer_v1_IsTrustedDomainResponse,
78
+ },
79
+ };
80
+
81
+ exports.IntegrationsValidateDomainServiceClient = grpc.makeGenericClientConstructor(IntegrationsValidateDomainServiceService);
@@ -48,3 +48,46 @@ export namespace RedeliverNotificationResponse {
48
48
  success: number,
49
49
  }
50
50
  }
51
+
52
+ export class IsTrustedDomainRequest extends jspb.Message {
53
+ getHostname(): string;
54
+ setHostname(value: string): IsTrustedDomainRequest;
55
+ getTraceid(): string;
56
+ setTraceid(value: string): IsTrustedDomainRequest;
57
+
58
+ serializeBinary(): Uint8Array;
59
+ toObject(includeInstance?: boolean): IsTrustedDomainRequest.AsObject;
60
+ static toObject(includeInstance: boolean, msg: IsTrustedDomainRequest): IsTrustedDomainRequest.AsObject;
61
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
62
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
63
+ static serializeBinaryToWriter(message: IsTrustedDomainRequest, writer: jspb.BinaryWriter): void;
64
+ static deserializeBinary(bytes: Uint8Array): IsTrustedDomainRequest;
65
+ static deserializeBinaryFromReader(message: IsTrustedDomainRequest, reader: jspb.BinaryReader): IsTrustedDomainRequest;
66
+ }
67
+
68
+ export namespace IsTrustedDomainRequest {
69
+ export type AsObject = {
70
+ hostname: string,
71
+ traceid: string,
72
+ }
73
+ }
74
+
75
+ export class IsTrustedDomainResponse extends jspb.Message {
76
+ getIstrusted(): boolean;
77
+ setIstrusted(value: boolean): IsTrustedDomainResponse;
78
+
79
+ serializeBinary(): Uint8Array;
80
+ toObject(includeInstance?: boolean): IsTrustedDomainResponse.AsObject;
81
+ static toObject(includeInstance: boolean, msg: IsTrustedDomainResponse): IsTrustedDomainResponse.AsObject;
82
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
83
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
84
+ static serializeBinaryToWriter(message: IsTrustedDomainResponse, writer: jspb.BinaryWriter): void;
85
+ static deserializeBinary(bytes: Uint8Array): IsTrustedDomainResponse;
86
+ static deserializeBinaryFromReader(message: IsTrustedDomainResponse, reader: jspb.BinaryReader): IsTrustedDomainResponse;
87
+ }
88
+
89
+ export namespace IsTrustedDomainResponse {
90
+ export type AsObject = {
91
+ istrusted: boolean,
92
+ }
93
+ }
@@ -15,6 +15,8 @@ var jspb = require('google-protobuf');
15
15
  var goog = jspb;
16
16
  var global = Function('return this')();
17
17
 
18
+ goog.exportSymbol('proto.lansweeper.integrationswebhooknotifierconsumer.v1.IsTrustedDomainRequest', null, global);
19
+ goog.exportSymbol('proto.lansweeper.integrationswebhooknotifierconsumer.v1.IsTrustedDomainResponse', null, global);
18
20
  goog.exportSymbol('proto.lansweeper.integrationswebhooknotifierconsumer.v1.RedeliverNotificationRequest', null, global);
19
21
  goog.exportSymbol('proto.lansweeper.integrationswebhooknotifierconsumer.v1.RedeliverNotificationResponse', null, global);
20
22
  /**
@@ -59,6 +61,48 @@ if (goog.DEBUG && !COMPILED) {
59
61
  */
60
62
  proto.lansweeper.integrationswebhooknotifierconsumer.v1.RedeliverNotificationResponse.displayName = 'proto.lansweeper.integrationswebhooknotifierconsumer.v1.RedeliverNotificationResponse';
61
63
  }
64
+ /**
65
+ * Generated by JsPbCodeGenerator.
66
+ * @param {Array=} opt_data Optional initial data array, typically from a
67
+ * server response, or constructed directly in Javascript. The array is used
68
+ * in place and becomes part of the constructed object. It is not cloned.
69
+ * If no data is provided, the constructed object will be empty, but still
70
+ * valid.
71
+ * @extends {jspb.Message}
72
+ * @constructor
73
+ */
74
+ proto.lansweeper.integrationswebhooknotifierconsumer.v1.IsTrustedDomainRequest = function(opt_data) {
75
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
76
+ };
77
+ goog.inherits(proto.lansweeper.integrationswebhooknotifierconsumer.v1.IsTrustedDomainRequest, jspb.Message);
78
+ if (goog.DEBUG && !COMPILED) {
79
+ /**
80
+ * @public
81
+ * @override
82
+ */
83
+ proto.lansweeper.integrationswebhooknotifierconsumer.v1.IsTrustedDomainRequest.displayName = 'proto.lansweeper.integrationswebhooknotifierconsumer.v1.IsTrustedDomainRequest';
84
+ }
85
+ /**
86
+ * Generated by JsPbCodeGenerator.
87
+ * @param {Array=} opt_data Optional initial data array, typically from a
88
+ * server response, or constructed directly in Javascript. The array is used
89
+ * in place and becomes part of the constructed object. It is not cloned.
90
+ * If no data is provided, the constructed object will be empty, but still
91
+ * valid.
92
+ * @extends {jspb.Message}
93
+ * @constructor
94
+ */
95
+ proto.lansweeper.integrationswebhooknotifierconsumer.v1.IsTrustedDomainResponse = function(opt_data) {
96
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
97
+ };
98
+ goog.inherits(proto.lansweeper.integrationswebhooknotifierconsumer.v1.IsTrustedDomainResponse, jspb.Message);
99
+ if (goog.DEBUG && !COMPILED) {
100
+ /**
101
+ * @public
102
+ * @override
103
+ */
104
+ proto.lansweeper.integrationswebhooknotifierconsumer.v1.IsTrustedDomainResponse.displayName = 'proto.lansweeper.integrationswebhooknotifierconsumer.v1.IsTrustedDomainResponse';
105
+ }
62
106
 
63
107
 
64
108
 
@@ -349,4 +393,294 @@ proto.lansweeper.integrationswebhooknotifierconsumer.v1.RedeliverNotificationRes
349
393
  };
350
394
 
351
395
 
396
+
397
+
398
+
399
+ if (jspb.Message.GENERATE_TO_OBJECT) {
400
+ /**
401
+ * Creates an object representation of this proto.
402
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
403
+ * Optional fields that are not set will be set to undefined.
404
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
405
+ * For the list of reserved names please see:
406
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
407
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
408
+ * JSPB instance for transitional soy proto support:
409
+ * http://goto/soy-param-migration
410
+ * @return {!Object}
411
+ */
412
+ proto.lansweeper.integrationswebhooknotifierconsumer.v1.IsTrustedDomainRequest.prototype.toObject = function(opt_includeInstance) {
413
+ return proto.lansweeper.integrationswebhooknotifierconsumer.v1.IsTrustedDomainRequest.toObject(opt_includeInstance, this);
414
+ };
415
+
416
+
417
+ /**
418
+ * Static version of the {@see toObject} method.
419
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
420
+ * the JSPB instance for transitional soy proto support:
421
+ * http://goto/soy-param-migration
422
+ * @param {!proto.lansweeper.integrationswebhooknotifierconsumer.v1.IsTrustedDomainRequest} msg The msg instance to transform.
423
+ * @return {!Object}
424
+ * @suppress {unusedLocalVariables} f is only used for nested messages
425
+ */
426
+ proto.lansweeper.integrationswebhooknotifierconsumer.v1.IsTrustedDomainRequest.toObject = function(includeInstance, msg) {
427
+ var f, obj = {
428
+ hostname: jspb.Message.getFieldWithDefault(msg, 1, ""),
429
+ traceid: jspb.Message.getFieldWithDefault(msg, 2, "")
430
+ };
431
+
432
+ if (includeInstance) {
433
+ obj.$jspbMessageInstance = msg;
434
+ }
435
+ return obj;
436
+ };
437
+ }
438
+
439
+
440
+ /**
441
+ * Deserializes binary data (in protobuf wire format).
442
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
443
+ * @return {!proto.lansweeper.integrationswebhooknotifierconsumer.v1.IsTrustedDomainRequest}
444
+ */
445
+ proto.lansweeper.integrationswebhooknotifierconsumer.v1.IsTrustedDomainRequest.deserializeBinary = function(bytes) {
446
+ var reader = new jspb.BinaryReader(bytes);
447
+ var msg = new proto.lansweeper.integrationswebhooknotifierconsumer.v1.IsTrustedDomainRequest;
448
+ return proto.lansweeper.integrationswebhooknotifierconsumer.v1.IsTrustedDomainRequest.deserializeBinaryFromReader(msg, reader);
449
+ };
450
+
451
+
452
+ /**
453
+ * Deserializes binary data (in protobuf wire format) from the
454
+ * given reader into the given message object.
455
+ * @param {!proto.lansweeper.integrationswebhooknotifierconsumer.v1.IsTrustedDomainRequest} msg The message object to deserialize into.
456
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
457
+ * @return {!proto.lansweeper.integrationswebhooknotifierconsumer.v1.IsTrustedDomainRequest}
458
+ */
459
+ proto.lansweeper.integrationswebhooknotifierconsumer.v1.IsTrustedDomainRequest.deserializeBinaryFromReader = function(msg, reader) {
460
+ while (reader.nextField()) {
461
+ if (reader.isEndGroup()) {
462
+ break;
463
+ }
464
+ var field = reader.getFieldNumber();
465
+ switch (field) {
466
+ case 1:
467
+ var value = /** @type {string} */ (reader.readString());
468
+ msg.setHostname(value);
469
+ break;
470
+ case 2:
471
+ var value = /** @type {string} */ (reader.readString());
472
+ msg.setTraceid(value);
473
+ break;
474
+ default:
475
+ reader.skipField();
476
+ break;
477
+ }
478
+ }
479
+ return msg;
480
+ };
481
+
482
+
483
+ /**
484
+ * Serializes the message to binary data (in protobuf wire format).
485
+ * @return {!Uint8Array}
486
+ */
487
+ proto.lansweeper.integrationswebhooknotifierconsumer.v1.IsTrustedDomainRequest.prototype.serializeBinary = function() {
488
+ var writer = new jspb.BinaryWriter();
489
+ proto.lansweeper.integrationswebhooknotifierconsumer.v1.IsTrustedDomainRequest.serializeBinaryToWriter(this, writer);
490
+ return writer.getResultBuffer();
491
+ };
492
+
493
+
494
+ /**
495
+ * Serializes the given message to binary data (in protobuf wire
496
+ * format), writing to the given BinaryWriter.
497
+ * @param {!proto.lansweeper.integrationswebhooknotifierconsumer.v1.IsTrustedDomainRequest} message
498
+ * @param {!jspb.BinaryWriter} writer
499
+ * @suppress {unusedLocalVariables} f is only used for nested messages
500
+ */
501
+ proto.lansweeper.integrationswebhooknotifierconsumer.v1.IsTrustedDomainRequest.serializeBinaryToWriter = function(message, writer) {
502
+ var f = undefined;
503
+ f = message.getHostname();
504
+ if (f.length > 0) {
505
+ writer.writeString(
506
+ 1,
507
+ f
508
+ );
509
+ }
510
+ f = message.getTraceid();
511
+ if (f.length > 0) {
512
+ writer.writeString(
513
+ 2,
514
+ f
515
+ );
516
+ }
517
+ };
518
+
519
+
520
+ /**
521
+ * optional string hostname = 1;
522
+ * @return {string}
523
+ */
524
+ proto.lansweeper.integrationswebhooknotifierconsumer.v1.IsTrustedDomainRequest.prototype.getHostname = function() {
525
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
526
+ };
527
+
528
+
529
+ /**
530
+ * @param {string} value
531
+ * @return {!proto.lansweeper.integrationswebhooknotifierconsumer.v1.IsTrustedDomainRequest} returns this
532
+ */
533
+ proto.lansweeper.integrationswebhooknotifierconsumer.v1.IsTrustedDomainRequest.prototype.setHostname = function(value) {
534
+ return jspb.Message.setProto3StringField(this, 1, value);
535
+ };
536
+
537
+
538
+ /**
539
+ * optional string traceId = 2;
540
+ * @return {string}
541
+ */
542
+ proto.lansweeper.integrationswebhooknotifierconsumer.v1.IsTrustedDomainRequest.prototype.getTraceid = function() {
543
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
544
+ };
545
+
546
+
547
+ /**
548
+ * @param {string} value
549
+ * @return {!proto.lansweeper.integrationswebhooknotifierconsumer.v1.IsTrustedDomainRequest} returns this
550
+ */
551
+ proto.lansweeper.integrationswebhooknotifierconsumer.v1.IsTrustedDomainRequest.prototype.setTraceid = function(value) {
552
+ return jspb.Message.setProto3StringField(this, 2, value);
553
+ };
554
+
555
+
556
+
557
+
558
+
559
+ if (jspb.Message.GENERATE_TO_OBJECT) {
560
+ /**
561
+ * Creates an object representation of this proto.
562
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
563
+ * Optional fields that are not set will be set to undefined.
564
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
565
+ * For the list of reserved names please see:
566
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
567
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
568
+ * JSPB instance for transitional soy proto support:
569
+ * http://goto/soy-param-migration
570
+ * @return {!Object}
571
+ */
572
+ proto.lansweeper.integrationswebhooknotifierconsumer.v1.IsTrustedDomainResponse.prototype.toObject = function(opt_includeInstance) {
573
+ return proto.lansweeper.integrationswebhooknotifierconsumer.v1.IsTrustedDomainResponse.toObject(opt_includeInstance, this);
574
+ };
575
+
576
+
577
+ /**
578
+ * Static version of the {@see toObject} method.
579
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
580
+ * the JSPB instance for transitional soy proto support:
581
+ * http://goto/soy-param-migration
582
+ * @param {!proto.lansweeper.integrationswebhooknotifierconsumer.v1.IsTrustedDomainResponse} msg The msg instance to transform.
583
+ * @return {!Object}
584
+ * @suppress {unusedLocalVariables} f is only used for nested messages
585
+ */
586
+ proto.lansweeper.integrationswebhooknotifierconsumer.v1.IsTrustedDomainResponse.toObject = function(includeInstance, msg) {
587
+ var f, obj = {
588
+ istrusted: jspb.Message.getBooleanFieldWithDefault(msg, 1, false)
589
+ };
590
+
591
+ if (includeInstance) {
592
+ obj.$jspbMessageInstance = msg;
593
+ }
594
+ return obj;
595
+ };
596
+ }
597
+
598
+
599
+ /**
600
+ * Deserializes binary data (in protobuf wire format).
601
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
602
+ * @return {!proto.lansweeper.integrationswebhooknotifierconsumer.v1.IsTrustedDomainResponse}
603
+ */
604
+ proto.lansweeper.integrationswebhooknotifierconsumer.v1.IsTrustedDomainResponse.deserializeBinary = function(bytes) {
605
+ var reader = new jspb.BinaryReader(bytes);
606
+ var msg = new proto.lansweeper.integrationswebhooknotifierconsumer.v1.IsTrustedDomainResponse;
607
+ return proto.lansweeper.integrationswebhooknotifierconsumer.v1.IsTrustedDomainResponse.deserializeBinaryFromReader(msg, reader);
608
+ };
609
+
610
+
611
+ /**
612
+ * Deserializes binary data (in protobuf wire format) from the
613
+ * given reader into the given message object.
614
+ * @param {!proto.lansweeper.integrationswebhooknotifierconsumer.v1.IsTrustedDomainResponse} msg The message object to deserialize into.
615
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
616
+ * @return {!proto.lansweeper.integrationswebhooknotifierconsumer.v1.IsTrustedDomainResponse}
617
+ */
618
+ proto.lansweeper.integrationswebhooknotifierconsumer.v1.IsTrustedDomainResponse.deserializeBinaryFromReader = function(msg, reader) {
619
+ while (reader.nextField()) {
620
+ if (reader.isEndGroup()) {
621
+ break;
622
+ }
623
+ var field = reader.getFieldNumber();
624
+ switch (field) {
625
+ case 1:
626
+ var value = /** @type {boolean} */ (reader.readBool());
627
+ msg.setIstrusted(value);
628
+ break;
629
+ default:
630
+ reader.skipField();
631
+ break;
632
+ }
633
+ }
634
+ return msg;
635
+ };
636
+
637
+
638
+ /**
639
+ * Serializes the message to binary data (in protobuf wire format).
640
+ * @return {!Uint8Array}
641
+ */
642
+ proto.lansweeper.integrationswebhooknotifierconsumer.v1.IsTrustedDomainResponse.prototype.serializeBinary = function() {
643
+ var writer = new jspb.BinaryWriter();
644
+ proto.lansweeper.integrationswebhooknotifierconsumer.v1.IsTrustedDomainResponse.serializeBinaryToWriter(this, writer);
645
+ return writer.getResultBuffer();
646
+ };
647
+
648
+
649
+ /**
650
+ * Serializes the given message to binary data (in protobuf wire
651
+ * format), writing to the given BinaryWriter.
652
+ * @param {!proto.lansweeper.integrationswebhooknotifierconsumer.v1.IsTrustedDomainResponse} message
653
+ * @param {!jspb.BinaryWriter} writer
654
+ * @suppress {unusedLocalVariables} f is only used for nested messages
655
+ */
656
+ proto.lansweeper.integrationswebhooknotifierconsumer.v1.IsTrustedDomainResponse.serializeBinaryToWriter = function(message, writer) {
657
+ var f = undefined;
658
+ f = message.getIstrusted();
659
+ if (f) {
660
+ writer.writeBool(
661
+ 1,
662
+ f
663
+ );
664
+ }
665
+ };
666
+
667
+
668
+ /**
669
+ * optional bool isTrusted = 1;
670
+ * @return {boolean}
671
+ */
672
+ proto.lansweeper.integrationswebhooknotifierconsumer.v1.IsTrustedDomainResponse.prototype.getIstrusted = function() {
673
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
674
+ };
675
+
676
+
677
+ /**
678
+ * @param {boolean} value
679
+ * @return {!proto.lansweeper.integrationswebhooknotifierconsumer.v1.IsTrustedDomainResponse} returns this
680
+ */
681
+ proto.lansweeper.integrationswebhooknotifierconsumer.v1.IsTrustedDomainResponse.prototype.setIstrusted = function(value) {
682
+ return jspb.Message.setProto3BooleanField(this, 1, value);
683
+ };
684
+
685
+
352
686
  goog.object.extend(exports, proto.lansweeper.integrationswebhooknotifierconsumer.v1);
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@lansweeper/integrations-webhooks-notifier-grpc",
3
- "version": "0.2.2",
3
+ "version": "0.3.2",
4
+ "description": "Webhooks notifier for gRPC",
4
5
  "main": "gen-proto/index.js",
5
6
  "types": "gen-proto/index.d.ts",
6
7
  "license": "MIT",
@@ -8,5 +9,5 @@
8
9
  "@grpc/grpc-js": "^1.3.2",
9
10
  "google-protobuf": "^3.17.0"
10
11
  },
11
- "gitHead": "f2b029a2de060d0bded7b42ed6caacc44f3ebd45"
12
+ "gitHead": "fddf7c770b9e4a73b069d57613d4e539ad4a5d24"
12
13
  }
@@ -1,16 +1,31 @@
1
- syntax = "proto3";
2
-
3
- package lansweeper.integrationswebhooknotifierconsumer.v1;
4
-
5
- message RedeliverNotificationRequest {
6
- string notificationId = 1;
7
- string traceId = 2;
8
- }
9
-
10
- message RedeliverNotificationResponse {
11
- int64 success = 1;
12
- }
13
-
14
- service IntegrationsRedeliverService {
15
- rpc RedeliverNotification (RedeliverNotificationRequest) returns (RedeliverNotificationResponse) {}
16
- }
1
+ syntax = "proto3";
2
+
3
+ package lansweeper.integrationswebhooknotifierconsumer.v1;
4
+
5
+ message RedeliverNotificationRequest {
6
+ string notificationId = 1;
7
+ string traceId = 2;
8
+ }
9
+
10
+ message RedeliverNotificationResponse {
11
+ int64 success = 1;
12
+ }
13
+
14
+
15
+ service IntegrationsRedeliverService {
16
+ rpc RedeliverNotification (RedeliverNotificationRequest) returns (RedeliverNotificationResponse) {}
17
+ }
18
+
19
+ message IsTrustedDomainRequest {
20
+ string hostname = 1;
21
+ string traceId = 2;
22
+ }
23
+
24
+ message IsTrustedDomainResponse {
25
+ bool isTrusted = 1;
26
+ }
27
+
28
+ service IntegrationsValidateDomainService {
29
+ rpc IsTrustedDomain (IsTrustedDomainRequest) returns (IsTrustedDomainResponse) {}
30
+ }
31
+