@miradorlabs/web-grpc 3.45.1 → 3.47.0
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/package.json +1 -1
- package/proto/gateway/web/v1/ai_gateway.ts +2425 -3
- package/proto/gateway/web/v1/ai_gateway_grpc_pb.js +70 -0
- package/proto/gateway/web/v1/ai_gateway_pb.js +3734 -1
- package/proto/gateway/web/v1/oauth_gateway.ts +735 -80
- package/proto/gateway/web/v1/oauth_gateway_grpc_pb.js +104 -0
- package/proto/gateway/web/v1/oauth_gateway_pb.js +1236 -0
|
@@ -7,6 +7,28 @@ var google_api_field_behavior_pb = require('../../../../google/api/field_behavio
|
|
|
7
7
|
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
|
|
8
8
|
var proto_gateway_common_v1_status_pb = require('../../../../proto/gateway/common/v1/status_pb.js');
|
|
9
9
|
|
|
10
|
+
function serialize_gateway_web_v1_CompleteLinearOAuthRequest(arg) {
|
|
11
|
+
if (!(arg instanceof proto_gateway_web_v1_oauth_gateway_pb.CompleteLinearOAuthRequest)) {
|
|
12
|
+
throw new Error('Expected argument of type gateway.web.v1.CompleteLinearOAuthRequest');
|
|
13
|
+
}
|
|
14
|
+
return Buffer.from(arg.serializeBinary());
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
function deserialize_gateway_web_v1_CompleteLinearOAuthRequest(buffer_arg) {
|
|
18
|
+
return proto_gateway_web_v1_oauth_gateway_pb.CompleteLinearOAuthRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
function serialize_gateway_web_v1_CompleteLinearOAuthResponse(arg) {
|
|
22
|
+
if (!(arg instanceof proto_gateway_web_v1_oauth_gateway_pb.CompleteLinearOAuthResponse)) {
|
|
23
|
+
throw new Error('Expected argument of type gateway.web.v1.CompleteLinearOAuthResponse');
|
|
24
|
+
}
|
|
25
|
+
return Buffer.from(arg.serializeBinary());
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
function deserialize_gateway_web_v1_CompleteLinearOAuthResponse(buffer_arg) {
|
|
29
|
+
return proto_gateway_web_v1_oauth_gateway_pb.CompleteLinearOAuthResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
30
|
+
}
|
|
31
|
+
|
|
10
32
|
function serialize_gateway_web_v1_CompletePagerDutyOAuthRequest(arg) {
|
|
11
33
|
if (!(arg instanceof proto_gateway_web_v1_oauth_gateway_pb.CompletePagerDutyOAuthRequest)) {
|
|
12
34
|
throw new Error('Expected argument of type gateway.web.v1.CompletePagerDutyOAuthRequest');
|
|
@@ -51,6 +73,28 @@ function deserialize_gateway_web_v1_CompleteSlackOAuthResponse(buffer_arg) {
|
|
|
51
73
|
return proto_gateway_web_v1_oauth_gateway_pb.CompleteSlackOAuthResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
52
74
|
}
|
|
53
75
|
|
|
76
|
+
function serialize_gateway_web_v1_DisconnectLinearRequest(arg) {
|
|
77
|
+
if (!(arg instanceof proto_gateway_web_v1_oauth_gateway_pb.DisconnectLinearRequest)) {
|
|
78
|
+
throw new Error('Expected argument of type gateway.web.v1.DisconnectLinearRequest');
|
|
79
|
+
}
|
|
80
|
+
return Buffer.from(arg.serializeBinary());
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
function deserialize_gateway_web_v1_DisconnectLinearRequest(buffer_arg) {
|
|
84
|
+
return proto_gateway_web_v1_oauth_gateway_pb.DisconnectLinearRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
function serialize_gateway_web_v1_DisconnectLinearResponse(arg) {
|
|
88
|
+
if (!(arg instanceof proto_gateway_web_v1_oauth_gateway_pb.DisconnectLinearResponse)) {
|
|
89
|
+
throw new Error('Expected argument of type gateway.web.v1.DisconnectLinearResponse');
|
|
90
|
+
}
|
|
91
|
+
return Buffer.from(arg.serializeBinary());
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
function deserialize_gateway_web_v1_DisconnectLinearResponse(buffer_arg) {
|
|
95
|
+
return proto_gateway_web_v1_oauth_gateway_pb.DisconnectLinearResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
96
|
+
}
|
|
97
|
+
|
|
54
98
|
function serialize_gateway_web_v1_GetOAuthConnectionRequest(arg) {
|
|
55
99
|
if (!(arg instanceof proto_gateway_web_v1_oauth_gateway_pb.GetOAuthConnectionRequest)) {
|
|
56
100
|
throw new Error('Expected argument of type gateway.web.v1.GetOAuthConnectionRequest');
|
|
@@ -73,6 +117,28 @@ function deserialize_gateway_web_v1_GetOAuthConnectionResponse(buffer_arg) {
|
|
|
73
117
|
return proto_gateway_web_v1_oauth_gateway_pb.GetOAuthConnectionResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
74
118
|
}
|
|
75
119
|
|
|
120
|
+
function serialize_gateway_web_v1_InitiateLinearOAuthRequest(arg) {
|
|
121
|
+
if (!(arg instanceof proto_gateway_web_v1_oauth_gateway_pb.InitiateLinearOAuthRequest)) {
|
|
122
|
+
throw new Error('Expected argument of type gateway.web.v1.InitiateLinearOAuthRequest');
|
|
123
|
+
}
|
|
124
|
+
return Buffer.from(arg.serializeBinary());
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
function deserialize_gateway_web_v1_InitiateLinearOAuthRequest(buffer_arg) {
|
|
128
|
+
return proto_gateway_web_v1_oauth_gateway_pb.InitiateLinearOAuthRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
function serialize_gateway_web_v1_InitiateLinearOAuthResponse(arg) {
|
|
132
|
+
if (!(arg instanceof proto_gateway_web_v1_oauth_gateway_pb.InitiateLinearOAuthResponse)) {
|
|
133
|
+
throw new Error('Expected argument of type gateway.web.v1.InitiateLinearOAuthResponse');
|
|
134
|
+
}
|
|
135
|
+
return Buffer.from(arg.serializeBinary());
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
function deserialize_gateway_web_v1_InitiateLinearOAuthResponse(buffer_arg) {
|
|
139
|
+
return proto_gateway_web_v1_oauth_gateway_pb.InitiateLinearOAuthResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
140
|
+
}
|
|
141
|
+
|
|
76
142
|
function serialize_gateway_web_v1_InitiatePagerDutyOAuthRequest(arg) {
|
|
77
143
|
if (!(arg instanceof proto_gateway_web_v1_oauth_gateway_pb.InitiatePagerDutyOAuthRequest)) {
|
|
78
144
|
throw new Error('Expected argument of type gateway.web.v1.InitiatePagerDutyOAuthRequest');
|
|
@@ -245,6 +311,44 @@ listSlackChannels: {
|
|
|
245
311
|
responseSerialize: serialize_gateway_web_v1_ListPagerDutyServicesResponse,
|
|
246
312
|
responseDeserialize: deserialize_gateway_web_v1_ListPagerDutyServicesResponse,
|
|
247
313
|
},
|
|
314
|
+
// Org admin of a Terma organization. Returns Linear's authorize URL (scope read); send flow_id back with the code.
|
|
315
|
+
// GetOAuthConnection with provider "linear" reads the connection.
|
|
316
|
+
initiateLinearOAuth: {
|
|
317
|
+
path: '/gateway.web.v1.OAuthGatewayService/InitiateLinearOAuth',
|
|
318
|
+
requestStream: false,
|
|
319
|
+
responseStream: false,
|
|
320
|
+
requestType: proto_gateway_web_v1_oauth_gateway_pb.InitiateLinearOAuthRequest,
|
|
321
|
+
responseType: proto_gateway_web_v1_oauth_gateway_pb.InitiateLinearOAuthResponse,
|
|
322
|
+
requestSerialize: serialize_gateway_web_v1_InitiateLinearOAuthRequest,
|
|
323
|
+
requestDeserialize: deserialize_gateway_web_v1_InitiateLinearOAuthRequest,
|
|
324
|
+
responseSerialize: serialize_gateway_web_v1_InitiateLinearOAuthResponse,
|
|
325
|
+
responseDeserialize: deserialize_gateway_web_v1_InitiateLinearOAuthResponse,
|
|
326
|
+
},
|
|
327
|
+
// Org admin. Exchanges the code for the flow InitiateLinearOAuth started (single use) and stores the connection;
|
|
328
|
+
// provider_team_id is the Linear organization id.
|
|
329
|
+
completeLinearOAuth: {
|
|
330
|
+
path: '/gateway.web.v1.OAuthGatewayService/CompleteLinearOAuth',
|
|
331
|
+
requestStream: false,
|
|
332
|
+
responseStream: false,
|
|
333
|
+
requestType: proto_gateway_web_v1_oauth_gateway_pb.CompleteLinearOAuthRequest,
|
|
334
|
+
responseType: proto_gateway_web_v1_oauth_gateway_pb.CompleteLinearOAuthResponse,
|
|
335
|
+
requestSerialize: serialize_gateway_web_v1_CompleteLinearOAuthRequest,
|
|
336
|
+
requestDeserialize: deserialize_gateway_web_v1_CompleteLinearOAuthRequest,
|
|
337
|
+
responseSerialize: serialize_gateway_web_v1_CompleteLinearOAuthResponse,
|
|
338
|
+
responseDeserialize: deserialize_gateway_web_v1_CompleteLinearOAuthResponse,
|
|
339
|
+
},
|
|
340
|
+
// Org admin. Deletes the Linear connection and revokes its grant at Linear.
|
|
341
|
+
disconnectLinear: {
|
|
342
|
+
path: '/gateway.web.v1.OAuthGatewayService/DisconnectLinear',
|
|
343
|
+
requestStream: false,
|
|
344
|
+
responseStream: false,
|
|
345
|
+
requestType: proto_gateway_web_v1_oauth_gateway_pb.DisconnectLinearRequest,
|
|
346
|
+
responseType: proto_gateway_web_v1_oauth_gateway_pb.DisconnectLinearResponse,
|
|
347
|
+
requestSerialize: serialize_gateway_web_v1_DisconnectLinearRequest,
|
|
348
|
+
requestDeserialize: deserialize_gateway_web_v1_DisconnectLinearRequest,
|
|
349
|
+
responseSerialize: serialize_gateway_web_v1_DisconnectLinearResponse,
|
|
350
|
+
responseDeserialize: deserialize_gateway_web_v1_DisconnectLinearResponse,
|
|
351
|
+
},
|
|
248
352
|
};
|
|
249
353
|
|
|
250
354
|
exports.OAuthGatewayServiceClient = grpc.makeGenericClientConstructor(OAuthGatewayServiceService, 'OAuthGatewayService');
|