@opsee/mcp-server 0.8.1 → 0.8.3
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/gen/api/v1/board_pb.d.ts +225 -1
- package/gen/api/v1/board_pb.js +54 -5
- package/gen/api/v1/comment_pb.d.ts +15 -0
- package/gen/api/v1/comment_pb.js +1 -1
- package/gen/api/v1/initiative_pb.d.ts +785 -0
- package/gen/api/v1/initiative_pb.js +199 -0
- package/gen/api/v1/integration_pb.d.ts +750 -0
- package/gen/api/v1/integration_pb.js +193 -0
- package/gen/api/v1/models_pb.d.ts +234 -0
- package/gen/api/v1/models_pb.js +17 -3
- package/gen/api/v1/readiness_pb.d.ts +834 -0
- package/gen/api/v1/readiness_pb.js +197 -0
- package/gen/api/v1/task_pb.d.ts +8 -0
- package/gen/api/v1/task_pb.js +1 -1
- package/package.json +1 -1
- package/src/client/api.ts +3 -0
- package/src/server.ts +2 -0
- package/src/tools/comments.ts +10 -6
- package/src/tools/initiatives.ts +321 -0
- package/src/tools/tasks.ts +100 -1
- package/src/utils/format.ts +244 -1
|
@@ -0,0 +1,750 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.2.3
|
|
2
|
+
// @generated from file api/v1/integration.proto (package api.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv1";
|
|
6
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
7
|
+
import type { EmptySchema } from "@bufbuild/protobuf/wkt";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Describes the file api/v1/integration.proto.
|
|
11
|
+
*/
|
|
12
|
+
export declare const file_api_v1_integration: GenFile;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* A connected third-party integration (e.g. a Slack workspace). Credentials are
|
|
16
|
+
* never exposed over the wire.
|
|
17
|
+
*
|
|
18
|
+
* @generated from message api.v1.Integration
|
|
19
|
+
*/
|
|
20
|
+
export declare type Integration = Message<"api.v1.Integration"> & {
|
|
21
|
+
/**
|
|
22
|
+
* @generated from field: uint32 id = 1;
|
|
23
|
+
*/
|
|
24
|
+
id: number;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* registry key, e.g. "slack"
|
|
28
|
+
*
|
|
29
|
+
* @generated from field: string provider = 2;
|
|
30
|
+
*/
|
|
31
|
+
provider: string;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* "messaging", "issue_tracker", ...
|
|
35
|
+
*
|
|
36
|
+
* @generated from field: string category = 3;
|
|
37
|
+
*/
|
|
38
|
+
category: string;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* e.g. Slack team id
|
|
42
|
+
*
|
|
43
|
+
* @generated from field: string external_account_id = 4;
|
|
44
|
+
*/
|
|
45
|
+
externalAccountId: string;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* workspace/org display name
|
|
49
|
+
*
|
|
50
|
+
* @generated from field: string external_account_name = 5;
|
|
51
|
+
*/
|
|
52
|
+
externalAccountName: string;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* @generated from field: string external_account_url = 6;
|
|
56
|
+
*/
|
|
57
|
+
externalAccountUrl: string;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* @generated from field: string avatar_url = 7;
|
|
61
|
+
*/
|
|
62
|
+
avatarUrl: string;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* active | revoked | error | pending
|
|
66
|
+
*
|
|
67
|
+
* @generated from field: string status = 8;
|
|
68
|
+
*/
|
|
69
|
+
status: string;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* @generated from field: uint32 installed_by_user_id = 9;
|
|
73
|
+
*/
|
|
74
|
+
installedByUserId: number;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* calling user's DM opt-in for this integration
|
|
78
|
+
*
|
|
79
|
+
* @generated from field: bool dm_opt_in = 10;
|
|
80
|
+
*/
|
|
81
|
+
dmOptIn: boolean;
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Describes the message api.v1.Integration.
|
|
86
|
+
* Use `create(IntegrationSchema)` to create a new message.
|
|
87
|
+
*/
|
|
88
|
+
export declare const IntegrationSchema: GenMessage<Integration>;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Static metadata about an available (registered) provider.
|
|
92
|
+
*
|
|
93
|
+
* @generated from message api.v1.IntegrationProviderDescriptor
|
|
94
|
+
*/
|
|
95
|
+
export declare type IntegrationProviderDescriptor = Message<"api.v1.IntegrationProviderDescriptor"> & {
|
|
96
|
+
/**
|
|
97
|
+
* @generated from field: string type = 1;
|
|
98
|
+
*/
|
|
99
|
+
type: string;
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* @generated from field: string category = 2;
|
|
103
|
+
*/
|
|
104
|
+
category: string;
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* @generated from field: string display_name = 3;
|
|
108
|
+
*/
|
|
109
|
+
displayName: string;
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* @generated from field: repeated string capabilities = 4;
|
|
113
|
+
*/
|
|
114
|
+
capabilities: string[];
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* @generated from field: repeated string scopes = 5;
|
|
118
|
+
*/
|
|
119
|
+
scopes: string[];
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Describes the message api.v1.IntegrationProviderDescriptor.
|
|
124
|
+
* Use `create(IntegrationProviderDescriptorSchema)` to create a new message.
|
|
125
|
+
*/
|
|
126
|
+
export declare const IntegrationProviderDescriptorSchema: GenMessage<IntegrationProviderDescriptor>;
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* A routing rule: where events of a given type for a given project are delivered.
|
|
130
|
+
*
|
|
131
|
+
* @generated from message api.v1.IntegrationRoute
|
|
132
|
+
*/
|
|
133
|
+
export declare type IntegrationRoute = Message<"api.v1.IntegrationRoute"> & {
|
|
134
|
+
/**
|
|
135
|
+
* @generated from field: uint32 id = 1;
|
|
136
|
+
*/
|
|
137
|
+
id: number;
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* @generated from field: uint32 integration_id = 2;
|
|
141
|
+
*/
|
|
142
|
+
integrationId: number;
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* unset = company-wide default
|
|
146
|
+
*
|
|
147
|
+
* @generated from field: optional uint32 project_id = 3;
|
|
148
|
+
*/
|
|
149
|
+
projectId?: number;
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* "*" or canonical event type
|
|
153
|
+
*
|
|
154
|
+
* @generated from field: string event_type = 4;
|
|
155
|
+
*/
|
|
156
|
+
eventType: string;
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* "channel" | "dm"
|
|
160
|
+
*
|
|
161
|
+
* @generated from field: string destination_type = 5;
|
|
162
|
+
*/
|
|
163
|
+
destinationType: string;
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* channel id (for channel routes)
|
|
167
|
+
*
|
|
168
|
+
* @generated from field: string destination_ref = 6;
|
|
169
|
+
*/
|
|
170
|
+
destinationRef: string;
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* @generated from field: bool enabled = 7;
|
|
174
|
+
*/
|
|
175
|
+
enabled: boolean;
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* @generated from field: int32 priority = 8;
|
|
179
|
+
*/
|
|
180
|
+
priority: number;
|
|
181
|
+
};
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* Describes the message api.v1.IntegrationRoute.
|
|
185
|
+
* Use `create(IntegrationRouteSchema)` to create a new message.
|
|
186
|
+
*/
|
|
187
|
+
export declare const IntegrationRouteSchema: GenMessage<IntegrationRoute>;
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* A possible outbound destination (e.g. a Slack channel) for the routing UI.
|
|
191
|
+
*
|
|
192
|
+
* @generated from message api.v1.IntegrationDestination
|
|
193
|
+
*/
|
|
194
|
+
export declare type IntegrationDestination = Message<"api.v1.IntegrationDestination"> & {
|
|
195
|
+
/**
|
|
196
|
+
* channel id
|
|
197
|
+
*
|
|
198
|
+
* @generated from field: string ref = 1;
|
|
199
|
+
*/
|
|
200
|
+
ref: string;
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* channel name
|
|
204
|
+
*
|
|
205
|
+
* @generated from field: string name = 2;
|
|
206
|
+
*/
|
|
207
|
+
name: string;
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* @generated from field: bool is_private = 3;
|
|
211
|
+
*/
|
|
212
|
+
isPrivate: boolean;
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* whether the bot can post here
|
|
216
|
+
*
|
|
217
|
+
* @generated from field: bool is_member = 4;
|
|
218
|
+
*/
|
|
219
|
+
isMember: boolean;
|
|
220
|
+
};
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* Describes the message api.v1.IntegrationDestination.
|
|
224
|
+
* Use `create(IntegrationDestinationSchema)` to create a new message.
|
|
225
|
+
*/
|
|
226
|
+
export declare const IntegrationDestinationSchema: GenMessage<IntegrationDestination>;
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* @generated from message api.v1.ListAvailableProvidersRequest
|
|
230
|
+
*/
|
|
231
|
+
export declare type ListAvailableProvidersRequest = Message<"api.v1.ListAvailableProvidersRequest"> & {
|
|
232
|
+
};
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* Describes the message api.v1.ListAvailableProvidersRequest.
|
|
236
|
+
* Use `create(ListAvailableProvidersRequestSchema)` to create a new message.
|
|
237
|
+
*/
|
|
238
|
+
export declare const ListAvailableProvidersRequestSchema: GenMessage<ListAvailableProvidersRequest>;
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* @generated from message api.v1.ListAvailableProvidersResponse
|
|
242
|
+
*/
|
|
243
|
+
export declare type ListAvailableProvidersResponse = Message<"api.v1.ListAvailableProvidersResponse"> & {
|
|
244
|
+
/**
|
|
245
|
+
* @generated from field: repeated api.v1.IntegrationProviderDescriptor providers = 1;
|
|
246
|
+
*/
|
|
247
|
+
providers: IntegrationProviderDescriptor[];
|
|
248
|
+
};
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* Describes the message api.v1.ListAvailableProvidersResponse.
|
|
252
|
+
* Use `create(ListAvailableProvidersResponseSchema)` to create a new message.
|
|
253
|
+
*/
|
|
254
|
+
export declare const ListAvailableProvidersResponseSchema: GenMessage<ListAvailableProvidersResponse>;
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* @generated from message api.v1.InitiateConnectionRequest
|
|
258
|
+
*/
|
|
259
|
+
export declare type InitiateConnectionRequest = Message<"api.v1.InitiateConnectionRequest"> & {
|
|
260
|
+
/**
|
|
261
|
+
* @generated from field: string provider = 1;
|
|
262
|
+
*/
|
|
263
|
+
provider: string;
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* @generated from field: optional uint32 project_id = 2;
|
|
267
|
+
*/
|
|
268
|
+
projectId?: number;
|
|
269
|
+
};
|
|
270
|
+
|
|
271
|
+
/**
|
|
272
|
+
* Describes the message api.v1.InitiateConnectionRequest.
|
|
273
|
+
* Use `create(InitiateConnectionRequestSchema)` to create a new message.
|
|
274
|
+
*/
|
|
275
|
+
export declare const InitiateConnectionRequestSchema: GenMessage<InitiateConnectionRequest>;
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* @generated from message api.v1.InitiateConnectionResponse
|
|
279
|
+
*/
|
|
280
|
+
export declare type InitiateConnectionResponse = Message<"api.v1.InitiateConnectionResponse"> & {
|
|
281
|
+
/**
|
|
282
|
+
* @generated from field: string authorization_url = 1;
|
|
283
|
+
*/
|
|
284
|
+
authorizationUrl: string;
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* @generated from field: string state = 2;
|
|
288
|
+
*/
|
|
289
|
+
state: string;
|
|
290
|
+
};
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* Describes the message api.v1.InitiateConnectionResponse.
|
|
294
|
+
* Use `create(InitiateConnectionResponseSchema)` to create a new message.
|
|
295
|
+
*/
|
|
296
|
+
export declare const InitiateConnectionResponseSchema: GenMessage<InitiateConnectionResponse>;
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* @generated from message api.v1.CompleteConnectionRequest
|
|
300
|
+
*/
|
|
301
|
+
export declare type CompleteConnectionRequest = Message<"api.v1.CompleteConnectionRequest"> & {
|
|
302
|
+
/**
|
|
303
|
+
* @generated from field: string provider = 1;
|
|
304
|
+
*/
|
|
305
|
+
provider: string;
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* @generated from field: string state = 2;
|
|
309
|
+
*/
|
|
310
|
+
state: string;
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* @generated from field: string code = 3;
|
|
314
|
+
*/
|
|
315
|
+
code: string;
|
|
316
|
+
};
|
|
317
|
+
|
|
318
|
+
/**
|
|
319
|
+
* Describes the message api.v1.CompleteConnectionRequest.
|
|
320
|
+
* Use `create(CompleteConnectionRequestSchema)` to create a new message.
|
|
321
|
+
*/
|
|
322
|
+
export declare const CompleteConnectionRequestSchema: GenMessage<CompleteConnectionRequest>;
|
|
323
|
+
|
|
324
|
+
/**
|
|
325
|
+
* @generated from message api.v1.CompleteConnectionResponse
|
|
326
|
+
*/
|
|
327
|
+
export declare type CompleteConnectionResponse = Message<"api.v1.CompleteConnectionResponse"> & {
|
|
328
|
+
/**
|
|
329
|
+
* @generated from field: bool success = 1;
|
|
330
|
+
*/
|
|
331
|
+
success: boolean;
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
* @generated from field: string message = 2;
|
|
335
|
+
*/
|
|
336
|
+
message: string;
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
* @generated from field: api.v1.Integration integration = 3;
|
|
340
|
+
*/
|
|
341
|
+
integration?: Integration;
|
|
342
|
+
};
|
|
343
|
+
|
|
344
|
+
/**
|
|
345
|
+
* Describes the message api.v1.CompleteConnectionResponse.
|
|
346
|
+
* Use `create(CompleteConnectionResponseSchema)` to create a new message.
|
|
347
|
+
*/
|
|
348
|
+
export declare const CompleteConnectionResponseSchema: GenMessage<CompleteConnectionResponse>;
|
|
349
|
+
|
|
350
|
+
/**
|
|
351
|
+
* @generated from message api.v1.ListIntegrationsRequest
|
|
352
|
+
*/
|
|
353
|
+
export declare type ListIntegrationsRequest = Message<"api.v1.ListIntegrationsRequest"> & {
|
|
354
|
+
/**
|
|
355
|
+
* @generated from field: optional string provider = 1;
|
|
356
|
+
*/
|
|
357
|
+
provider?: string;
|
|
358
|
+
};
|
|
359
|
+
|
|
360
|
+
/**
|
|
361
|
+
* Describes the message api.v1.ListIntegrationsRequest.
|
|
362
|
+
* Use `create(ListIntegrationsRequestSchema)` to create a new message.
|
|
363
|
+
*/
|
|
364
|
+
export declare const ListIntegrationsRequestSchema: GenMessage<ListIntegrationsRequest>;
|
|
365
|
+
|
|
366
|
+
/**
|
|
367
|
+
* @generated from message api.v1.ListIntegrationsResponse
|
|
368
|
+
*/
|
|
369
|
+
export declare type ListIntegrationsResponse = Message<"api.v1.ListIntegrationsResponse"> & {
|
|
370
|
+
/**
|
|
371
|
+
* @generated from field: repeated api.v1.Integration integrations = 1;
|
|
372
|
+
*/
|
|
373
|
+
integrations: Integration[];
|
|
374
|
+
};
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
* Describes the message api.v1.ListIntegrationsResponse.
|
|
378
|
+
* Use `create(ListIntegrationsResponseSchema)` to create a new message.
|
|
379
|
+
*/
|
|
380
|
+
export declare const ListIntegrationsResponseSchema: GenMessage<ListIntegrationsResponse>;
|
|
381
|
+
|
|
382
|
+
/**
|
|
383
|
+
* @generated from message api.v1.GetIntegrationRequest
|
|
384
|
+
*/
|
|
385
|
+
export declare type GetIntegrationRequest = Message<"api.v1.GetIntegrationRequest"> & {
|
|
386
|
+
/**
|
|
387
|
+
* @generated from field: uint32 id = 1;
|
|
388
|
+
*/
|
|
389
|
+
id: number;
|
|
390
|
+
};
|
|
391
|
+
|
|
392
|
+
/**
|
|
393
|
+
* Describes the message api.v1.GetIntegrationRequest.
|
|
394
|
+
* Use `create(GetIntegrationRequestSchema)` to create a new message.
|
|
395
|
+
*/
|
|
396
|
+
export declare const GetIntegrationRequestSchema: GenMessage<GetIntegrationRequest>;
|
|
397
|
+
|
|
398
|
+
/**
|
|
399
|
+
* @generated from message api.v1.GetIntegrationResponse
|
|
400
|
+
*/
|
|
401
|
+
export declare type GetIntegrationResponse = Message<"api.v1.GetIntegrationResponse"> & {
|
|
402
|
+
/**
|
|
403
|
+
* @generated from field: api.v1.Integration integration = 1;
|
|
404
|
+
*/
|
|
405
|
+
integration?: Integration;
|
|
406
|
+
};
|
|
407
|
+
|
|
408
|
+
/**
|
|
409
|
+
* Describes the message api.v1.GetIntegrationResponse.
|
|
410
|
+
* Use `create(GetIntegrationResponseSchema)` to create a new message.
|
|
411
|
+
*/
|
|
412
|
+
export declare const GetIntegrationResponseSchema: GenMessage<GetIntegrationResponse>;
|
|
413
|
+
|
|
414
|
+
/**
|
|
415
|
+
* @generated from message api.v1.DisconnectIntegrationRequest
|
|
416
|
+
*/
|
|
417
|
+
export declare type DisconnectIntegrationRequest = Message<"api.v1.DisconnectIntegrationRequest"> & {
|
|
418
|
+
/**
|
|
419
|
+
* @generated from field: uint32 id = 1;
|
|
420
|
+
*/
|
|
421
|
+
id: number;
|
|
422
|
+
};
|
|
423
|
+
|
|
424
|
+
/**
|
|
425
|
+
* Describes the message api.v1.DisconnectIntegrationRequest.
|
|
426
|
+
* Use `create(DisconnectIntegrationRequestSchema)` to create a new message.
|
|
427
|
+
*/
|
|
428
|
+
export declare const DisconnectIntegrationRequestSchema: GenMessage<DisconnectIntegrationRequest>;
|
|
429
|
+
|
|
430
|
+
/**
|
|
431
|
+
* @generated from message api.v1.ListDestinationsRequest
|
|
432
|
+
*/
|
|
433
|
+
export declare type ListDestinationsRequest = Message<"api.v1.ListDestinationsRequest"> & {
|
|
434
|
+
/**
|
|
435
|
+
* @generated from field: uint32 integration_id = 1;
|
|
436
|
+
*/
|
|
437
|
+
integrationId: number;
|
|
438
|
+
|
|
439
|
+
/**
|
|
440
|
+
* @generated from field: string cursor = 2;
|
|
441
|
+
*/
|
|
442
|
+
cursor: string;
|
|
443
|
+
|
|
444
|
+
/**
|
|
445
|
+
* @generated from field: string search = 3;
|
|
446
|
+
*/
|
|
447
|
+
search: string;
|
|
448
|
+
};
|
|
449
|
+
|
|
450
|
+
/**
|
|
451
|
+
* Describes the message api.v1.ListDestinationsRequest.
|
|
452
|
+
* Use `create(ListDestinationsRequestSchema)` to create a new message.
|
|
453
|
+
*/
|
|
454
|
+
export declare const ListDestinationsRequestSchema: GenMessage<ListDestinationsRequest>;
|
|
455
|
+
|
|
456
|
+
/**
|
|
457
|
+
* @generated from message api.v1.ListDestinationsResponse
|
|
458
|
+
*/
|
|
459
|
+
export declare type ListDestinationsResponse = Message<"api.v1.ListDestinationsResponse"> & {
|
|
460
|
+
/**
|
|
461
|
+
* @generated from field: repeated api.v1.IntegrationDestination destinations = 1;
|
|
462
|
+
*/
|
|
463
|
+
destinations: IntegrationDestination[];
|
|
464
|
+
|
|
465
|
+
/**
|
|
466
|
+
* @generated from field: string next_cursor = 2;
|
|
467
|
+
*/
|
|
468
|
+
nextCursor: string;
|
|
469
|
+
};
|
|
470
|
+
|
|
471
|
+
/**
|
|
472
|
+
* Describes the message api.v1.ListDestinationsResponse.
|
|
473
|
+
* Use `create(ListDestinationsResponseSchema)` to create a new message.
|
|
474
|
+
*/
|
|
475
|
+
export declare const ListDestinationsResponseSchema: GenMessage<ListDestinationsResponse>;
|
|
476
|
+
|
|
477
|
+
/**
|
|
478
|
+
* @generated from message api.v1.ListRoutesRequest
|
|
479
|
+
*/
|
|
480
|
+
export declare type ListRoutesRequest = Message<"api.v1.ListRoutesRequest"> & {
|
|
481
|
+
/**
|
|
482
|
+
* @generated from field: uint32 integration_id = 1;
|
|
483
|
+
*/
|
|
484
|
+
integrationId: number;
|
|
485
|
+
};
|
|
486
|
+
|
|
487
|
+
/**
|
|
488
|
+
* Describes the message api.v1.ListRoutesRequest.
|
|
489
|
+
* Use `create(ListRoutesRequestSchema)` to create a new message.
|
|
490
|
+
*/
|
|
491
|
+
export declare const ListRoutesRequestSchema: GenMessage<ListRoutesRequest>;
|
|
492
|
+
|
|
493
|
+
/**
|
|
494
|
+
* @generated from message api.v1.ListRoutesResponse
|
|
495
|
+
*/
|
|
496
|
+
export declare type ListRoutesResponse = Message<"api.v1.ListRoutesResponse"> & {
|
|
497
|
+
/**
|
|
498
|
+
* @generated from field: repeated api.v1.IntegrationRoute routes = 1;
|
|
499
|
+
*/
|
|
500
|
+
routes: IntegrationRoute[];
|
|
501
|
+
};
|
|
502
|
+
|
|
503
|
+
/**
|
|
504
|
+
* Describes the message api.v1.ListRoutesResponse.
|
|
505
|
+
* Use `create(ListRoutesResponseSchema)` to create a new message.
|
|
506
|
+
*/
|
|
507
|
+
export declare const ListRoutesResponseSchema: GenMessage<ListRoutesResponse>;
|
|
508
|
+
|
|
509
|
+
/**
|
|
510
|
+
* @generated from message api.v1.SetRouteRequest
|
|
511
|
+
*/
|
|
512
|
+
export declare type SetRouteRequest = Message<"api.v1.SetRouteRequest"> & {
|
|
513
|
+
/**
|
|
514
|
+
* @generated from field: uint32 integration_id = 1;
|
|
515
|
+
*/
|
|
516
|
+
integrationId: number;
|
|
517
|
+
|
|
518
|
+
/**
|
|
519
|
+
* set to update an existing route
|
|
520
|
+
*
|
|
521
|
+
* @generated from field: optional uint32 route_id = 2;
|
|
522
|
+
*/
|
|
523
|
+
routeId?: number;
|
|
524
|
+
|
|
525
|
+
/**
|
|
526
|
+
* @generated from field: optional uint32 project_id = 3;
|
|
527
|
+
*/
|
|
528
|
+
projectId?: number;
|
|
529
|
+
|
|
530
|
+
/**
|
|
531
|
+
* @generated from field: string event_type = 4;
|
|
532
|
+
*/
|
|
533
|
+
eventType: string;
|
|
534
|
+
|
|
535
|
+
/**
|
|
536
|
+
* @generated from field: string destination_type = 5;
|
|
537
|
+
*/
|
|
538
|
+
destinationType: string;
|
|
539
|
+
|
|
540
|
+
/**
|
|
541
|
+
* @generated from field: string destination_ref = 6;
|
|
542
|
+
*/
|
|
543
|
+
destinationRef: string;
|
|
544
|
+
|
|
545
|
+
/**
|
|
546
|
+
* @generated from field: bool enabled = 7;
|
|
547
|
+
*/
|
|
548
|
+
enabled: boolean;
|
|
549
|
+
|
|
550
|
+
/**
|
|
551
|
+
* @generated from field: int32 priority = 8;
|
|
552
|
+
*/
|
|
553
|
+
priority: number;
|
|
554
|
+
};
|
|
555
|
+
|
|
556
|
+
/**
|
|
557
|
+
* Describes the message api.v1.SetRouteRequest.
|
|
558
|
+
* Use `create(SetRouteRequestSchema)` to create a new message.
|
|
559
|
+
*/
|
|
560
|
+
export declare const SetRouteRequestSchema: GenMessage<SetRouteRequest>;
|
|
561
|
+
|
|
562
|
+
/**
|
|
563
|
+
* @generated from message api.v1.SetRouteResponse
|
|
564
|
+
*/
|
|
565
|
+
export declare type SetRouteResponse = Message<"api.v1.SetRouteResponse"> & {
|
|
566
|
+
/**
|
|
567
|
+
* @generated from field: api.v1.IntegrationRoute route = 1;
|
|
568
|
+
*/
|
|
569
|
+
route?: IntegrationRoute;
|
|
570
|
+
};
|
|
571
|
+
|
|
572
|
+
/**
|
|
573
|
+
* Describes the message api.v1.SetRouteResponse.
|
|
574
|
+
* Use `create(SetRouteResponseSchema)` to create a new message.
|
|
575
|
+
*/
|
|
576
|
+
export declare const SetRouteResponseSchema: GenMessage<SetRouteResponse>;
|
|
577
|
+
|
|
578
|
+
/**
|
|
579
|
+
* @generated from message api.v1.DeleteRouteRequest
|
|
580
|
+
*/
|
|
581
|
+
export declare type DeleteRouteRequest = Message<"api.v1.DeleteRouteRequest"> & {
|
|
582
|
+
/**
|
|
583
|
+
* @generated from field: uint32 route_id = 1;
|
|
584
|
+
*/
|
|
585
|
+
routeId: number;
|
|
586
|
+
};
|
|
587
|
+
|
|
588
|
+
/**
|
|
589
|
+
* Describes the message api.v1.DeleteRouteRequest.
|
|
590
|
+
* Use `create(DeleteRouteRequestSchema)` to create a new message.
|
|
591
|
+
*/
|
|
592
|
+
export declare const DeleteRouteRequestSchema: GenMessage<DeleteRouteRequest>;
|
|
593
|
+
|
|
594
|
+
/**
|
|
595
|
+
* @generated from message api.v1.SetDmOptInRequest
|
|
596
|
+
*/
|
|
597
|
+
export declare type SetDmOptInRequest = Message<"api.v1.SetDmOptInRequest"> & {
|
|
598
|
+
/**
|
|
599
|
+
* @generated from field: uint32 integration_id = 1;
|
|
600
|
+
*/
|
|
601
|
+
integrationId: number;
|
|
602
|
+
|
|
603
|
+
/**
|
|
604
|
+
* @generated from field: bool dm_opt_in = 2;
|
|
605
|
+
*/
|
|
606
|
+
dmOptIn: boolean;
|
|
607
|
+
};
|
|
608
|
+
|
|
609
|
+
/**
|
|
610
|
+
* Describes the message api.v1.SetDmOptInRequest.
|
|
611
|
+
* Use `create(SetDmOptInRequestSchema)` to create a new message.
|
|
612
|
+
*/
|
|
613
|
+
export declare const SetDmOptInRequestSchema: GenMessage<SetDmOptInRequest>;
|
|
614
|
+
|
|
615
|
+
/**
|
|
616
|
+
* @generated from message api.v1.SetDmOptInResponse
|
|
617
|
+
*/
|
|
618
|
+
export declare type SetDmOptInResponse = Message<"api.v1.SetDmOptInResponse"> & {
|
|
619
|
+
/**
|
|
620
|
+
* @generated from field: bool success = 1;
|
|
621
|
+
*/
|
|
622
|
+
success: boolean;
|
|
623
|
+
};
|
|
624
|
+
|
|
625
|
+
/**
|
|
626
|
+
* Describes the message api.v1.SetDmOptInResponse.
|
|
627
|
+
* Use `create(SetDmOptInResponseSchema)` to create a new message.
|
|
628
|
+
*/
|
|
629
|
+
export declare const SetDmOptInResponseSchema: GenMessage<SetDmOptInResponse>;
|
|
630
|
+
|
|
631
|
+
/**
|
|
632
|
+
* IntegrationService manages third-party integrations: catalog, OAuth connect,
|
|
633
|
+
* CRUD, routing rules, and per-user DM preferences. Provider is a string so new
|
|
634
|
+
* providers register without a proto change.
|
|
635
|
+
*
|
|
636
|
+
* @generated from service api.v1.IntegrationService
|
|
637
|
+
*/
|
|
638
|
+
export declare const IntegrationService: GenService<{
|
|
639
|
+
/**
|
|
640
|
+
* Catalog of registered providers.
|
|
641
|
+
*
|
|
642
|
+
* @generated from rpc api.v1.IntegrationService.ListAvailableProviders
|
|
643
|
+
*/
|
|
644
|
+
listAvailableProviders: {
|
|
645
|
+
methodKind: "unary";
|
|
646
|
+
input: typeof ListAvailableProvidersRequestSchema;
|
|
647
|
+
output: typeof ListAvailableProvidersResponseSchema;
|
|
648
|
+
},
|
|
649
|
+
/**
|
|
650
|
+
* Begin an OAuth install flow.
|
|
651
|
+
*
|
|
652
|
+
* @generated from rpc api.v1.IntegrationService.InitiateConnection
|
|
653
|
+
*/
|
|
654
|
+
initiateConnection: {
|
|
655
|
+
methodKind: "unary";
|
|
656
|
+
input: typeof InitiateConnectionRequestSchema;
|
|
657
|
+
output: typeof InitiateConnectionResponseSchema;
|
|
658
|
+
},
|
|
659
|
+
/**
|
|
660
|
+
* Complete an OAuth install flow after the provider redirect.
|
|
661
|
+
*
|
|
662
|
+
* @generated from rpc api.v1.IntegrationService.CompleteConnection
|
|
663
|
+
*/
|
|
664
|
+
completeConnection: {
|
|
665
|
+
methodKind: "unary";
|
|
666
|
+
input: typeof CompleteConnectionRequestSchema;
|
|
667
|
+
output: typeof CompleteConnectionResponseSchema;
|
|
668
|
+
},
|
|
669
|
+
/**
|
|
670
|
+
* List the company's connected integrations.
|
|
671
|
+
*
|
|
672
|
+
* @generated from rpc api.v1.IntegrationService.ListIntegrations
|
|
673
|
+
*/
|
|
674
|
+
listIntegrations: {
|
|
675
|
+
methodKind: "unary";
|
|
676
|
+
input: typeof ListIntegrationsRequestSchema;
|
|
677
|
+
output: typeof ListIntegrationsResponseSchema;
|
|
678
|
+
},
|
|
679
|
+
/**
|
|
680
|
+
* Get one integration.
|
|
681
|
+
*
|
|
682
|
+
* @generated from rpc api.v1.IntegrationService.GetIntegration
|
|
683
|
+
*/
|
|
684
|
+
getIntegration: {
|
|
685
|
+
methodKind: "unary";
|
|
686
|
+
input: typeof GetIntegrationRequestSchema;
|
|
687
|
+
output: typeof GetIntegrationResponseSchema;
|
|
688
|
+
},
|
|
689
|
+
/**
|
|
690
|
+
* Disconnect (deactivate) an integration.
|
|
691
|
+
*
|
|
692
|
+
* @generated from rpc api.v1.IntegrationService.DisconnectIntegration
|
|
693
|
+
*/
|
|
694
|
+
disconnectIntegration: {
|
|
695
|
+
methodKind: "unary";
|
|
696
|
+
input: typeof DisconnectIntegrationRequestSchema;
|
|
697
|
+
output: typeof EmptySchema;
|
|
698
|
+
},
|
|
699
|
+
/**
|
|
700
|
+
* List provider destinations (e.g. Slack channels) for the routing UI.
|
|
701
|
+
*
|
|
702
|
+
* @generated from rpc api.v1.IntegrationService.ListDestinations
|
|
703
|
+
*/
|
|
704
|
+
listDestinations: {
|
|
705
|
+
methodKind: "unary";
|
|
706
|
+
input: typeof ListDestinationsRequestSchema;
|
|
707
|
+
output: typeof ListDestinationsResponseSchema;
|
|
708
|
+
},
|
|
709
|
+
/**
|
|
710
|
+
* List routing rules for an integration.
|
|
711
|
+
*
|
|
712
|
+
* @generated from rpc api.v1.IntegrationService.ListRoutes
|
|
713
|
+
*/
|
|
714
|
+
listRoutes: {
|
|
715
|
+
methodKind: "unary";
|
|
716
|
+
input: typeof ListRoutesRequestSchema;
|
|
717
|
+
output: typeof ListRoutesResponseSchema;
|
|
718
|
+
},
|
|
719
|
+
/**
|
|
720
|
+
* Create or update a routing rule.
|
|
721
|
+
*
|
|
722
|
+
* @generated from rpc api.v1.IntegrationService.SetRoute
|
|
723
|
+
*/
|
|
724
|
+
setRoute: {
|
|
725
|
+
methodKind: "unary";
|
|
726
|
+
input: typeof SetRouteRequestSchema;
|
|
727
|
+
output: typeof SetRouteResponseSchema;
|
|
728
|
+
},
|
|
729
|
+
/**
|
|
730
|
+
* Delete a routing rule.
|
|
731
|
+
*
|
|
732
|
+
* @generated from rpc api.v1.IntegrationService.DeleteRoute
|
|
733
|
+
*/
|
|
734
|
+
deleteRoute: {
|
|
735
|
+
methodKind: "unary";
|
|
736
|
+
input: typeof DeleteRouteRequestSchema;
|
|
737
|
+
output: typeof EmptySchema;
|
|
738
|
+
},
|
|
739
|
+
/**
|
|
740
|
+
* Set the current user's DM opt-in for an integration.
|
|
741
|
+
*
|
|
742
|
+
* @generated from rpc api.v1.IntegrationService.SetDmOptIn
|
|
743
|
+
*/
|
|
744
|
+
setDmOptIn: {
|
|
745
|
+
methodKind: "unary";
|
|
746
|
+
input: typeof SetDmOptInRequestSchema;
|
|
747
|
+
output: typeof SetDmOptInResponseSchema;
|
|
748
|
+
},
|
|
749
|
+
}>;
|
|
750
|
+
|