@miradorlabs/web-grpc 3.11.0 → 3.13.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/google/api/field_behavior.ts +145 -0
- package/google/api/field_behavior_grpc_pb.js +1 -0
- package/google/api/field_behavior_pb.js +62 -0
- package/google/protobuf/descriptor.ts +5211 -0
- package/package.json +1 -1
- package/proto/gateway/common/v1/attribute_value_pb.js +2 -0
- package/proto/gateway/web/v1/account_gateway.ts +4 -4
- package/proto/gateway/web/v1/account_gateway_grpc_pb.js +1 -0
- package/proto/gateway/web/v1/account_gateway_pb.js +2 -0
- package/proto/gateway/web/v1/admin_gateway.ts +5 -8
- package/proto/gateway/web/v1/admin_gateway_grpc_pb.js +1 -0
- package/proto/gateway/web/v1/admin_gateway_pb.js +2 -0
- package/proto/gateway/web/v1/beta_gateway_grpc_pb.js +1 -0
- package/proto/gateway/web/v1/beta_gateway_pb.js +2 -0
- package/proto/gateway/web/v1/chain_gateway_grpc_pb.js +1 -0
- package/proto/gateway/web/v1/chain_gateway_pb.js +2 -0
- package/proto/gateway/web/v1/derived_metric_gateway_grpc_pb.js +1 -0
- package/proto/gateway/web/v1/derived_metric_gateway_pb.js +2 -0
- package/proto/gateway/web/v1/github_connector.ts +2 -0
- package/proto/gateway/web/v1/github_connector_grpc_pb.js +1 -0
- package/proto/gateway/web/v1/github_connector_pb.js +2 -0
- package/proto/gateway/web/v1/integration_gateway.ts +89 -14
- package/proto/gateway/web/v1/integration_gateway_grpc_pb.js +1 -0
- package/proto/gateway/web/v1/integration_gateway_pb.js +188 -13
- package/proto/gateway/web/v1/log_gateway.ts +13 -9
- package/proto/gateway/web/v1/log_gateway_grpc_pb.js +1 -0
- package/proto/gateway/web/v1/log_gateway_pb.js +8 -6
- package/proto/gateway/web/v1/market_gateway_grpc_pb.js +1 -0
- package/proto/gateway/web/v1/market_gateway_pb.js +2 -0
- package/proto/gateway/web/v1/metric_gateway_grpc_pb.js +1 -0
- package/proto/gateway/web/v1/metric_gateway_pb.js +2 -0
- package/proto/gateway/web/v1/oauth_gateway_grpc_pb.js +1 -0
- package/proto/gateway/web/v1/oauth_gateway_pb.js +2 -0
- package/proto/gateway/web/v1/plan_gateway_grpc_pb.js +1 -0
- package/proto/gateway/web/v1/plan_gateway_pb.js +2 -0
- package/proto/gateway/web/v1/policy_gateway.ts +23 -147
- package/proto/gateway/web/v1/policy_gateway_grpc_pb.js +1 -0
- package/proto/gateway/web/v1/policy_gateway_pb.js +23 -138
- package/proto/gateway/web/v1/reference_gateway.ts +120 -41
- package/proto/gateway/web/v1/reference_gateway_grpc_pb.js +1 -0
- package/proto/gateway/web/v1/reference_gateway_pb.js +229 -54
- package/proto/gateway/web/v1/rule_gateway.ts +28 -68
- package/proto/gateway/web/v1/rule_gateway_grpc_pb.js +1 -0
- package/proto/gateway/web/v1/rule_gateway_pb.js +20 -204
- package/proto/gateway/web/v1/slo_gateway_grpc_pb.js +1 -0
- package/proto/gateway/web/v1/slo_gateway_pb.js +2 -0
- package/proto/gateway/web/v1/trace_gateway.ts +158 -307
- package/proto/gateway/web/v1/trace_gateway_grpc_pb.js +1 -0
- package/proto/gateway/web/v1/trace_gateway_pb.js +168 -511
- package/proto/gateway/web/v1/trace_measure_gateway.ts +1 -3
- package/proto/gateway/web/v1/trace_measure_gateway_grpc_pb.js +1 -0
- package/proto/gateway/web/v1/trace_measure_gateway_pb.js +2 -0
package/package.json
CHANGED
|
@@ -15,6 +15,8 @@ var jspb = require('google-protobuf');
|
|
|
15
15
|
var goog = jspb;
|
|
16
16
|
var global = globalThis;
|
|
17
17
|
|
|
18
|
+
var google_api_field_behavior_pb = require('../../../../google/api/field_behavior_pb.js');
|
|
19
|
+
goog.object.extend(proto, google_api_field_behavior_pb);
|
|
18
20
|
goog.exportSymbol('proto.gateway.common.v1.AttributeArray', null, global);
|
|
19
21
|
goog.exportSymbol('proto.gateway.common.v1.AttributeKeyValue', null, global);
|
|
20
22
|
goog.exportSymbol('proto.gateway.common.v1.AttributeKeyValueList', null, global);
|
|
@@ -352,7 +352,7 @@ export function invitationStatusToJSON(object: InvitationStatus): string {
|
|
|
352
352
|
}
|
|
353
353
|
|
|
354
354
|
export interface LogonRequest {
|
|
355
|
-
/**
|
|
355
|
+
/** Invitation ID for accepting invites during logon */
|
|
356
356
|
invitationId?: string | undefined;
|
|
357
357
|
}
|
|
358
358
|
|
|
@@ -783,7 +783,7 @@ export interface UpdateOrganizationResponse {
|
|
|
783
783
|
export interface CreateOrganizationRequest {
|
|
784
784
|
/** Current org context for identity resolution */
|
|
785
785
|
organizationId: string;
|
|
786
|
-
/**
|
|
786
|
+
/** Non-empty */
|
|
787
787
|
name: string;
|
|
788
788
|
}
|
|
789
789
|
|
|
@@ -801,9 +801,9 @@ export interface UpdateProjectRequest {
|
|
|
801
801
|
organizationId: string;
|
|
802
802
|
/** Project UUID to update */
|
|
803
803
|
projectId: string;
|
|
804
|
-
/** New project name
|
|
804
|
+
/** New project name; empty means no change. At least one of name or description must be set. */
|
|
805
805
|
name: string;
|
|
806
|
-
/** New project description
|
|
806
|
+
/** New project description; empty means no change. */
|
|
807
807
|
description: string;
|
|
808
808
|
}
|
|
809
809
|
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
'use strict';
|
|
4
4
|
var grpc = require('@grpc/grpc-js');
|
|
5
5
|
var proto_gateway_web_v1_account_gateway_pb = require('../../../../proto/gateway/web/v1/account_gateway_pb.js');
|
|
6
|
+
var google_api_field_behavior_pb = require('../../../../google/api/field_behavior_pb.js');
|
|
6
7
|
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
|
|
7
8
|
var proto_gateway_common_v1_status_pb = require('../../../../proto/gateway/common/v1/status_pb.js');
|
|
8
9
|
|
|
@@ -15,6 +15,8 @@ var jspb = require('google-protobuf');
|
|
|
15
15
|
var goog = jspb;
|
|
16
16
|
var global = globalThis;
|
|
17
17
|
|
|
18
|
+
var google_api_field_behavior_pb = require('../../../../google/api/field_behavior_pb.js');
|
|
19
|
+
goog.object.extend(proto, google_api_field_behavior_pb);
|
|
18
20
|
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
|
|
19
21
|
goog.object.extend(proto, google_protobuf_timestamp_pb);
|
|
20
22
|
var proto_gateway_common_v1_status_pb = require('../../../../proto/gateway/common/v1/status_pb.js');
|
|
@@ -54,9 +54,8 @@ export interface ListInviteCodesResponse {
|
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
export interface UpdateAIProviderRequest {
|
|
57
|
-
/** Required. */
|
|
58
57
|
name: string;
|
|
59
|
-
/**
|
|
58
|
+
/** Needs a letter or digit. Stored as its lowercase slug ("GPT 6 Sol" -> "gpt-6-sol"). */
|
|
60
59
|
displayName: string;
|
|
61
60
|
}
|
|
62
61
|
|
|
@@ -66,9 +65,8 @@ export interface UpdateAIProviderResponse {
|
|
|
66
65
|
}
|
|
67
66
|
|
|
68
67
|
export interface UpdateAIModelRequest {
|
|
69
|
-
/** Required. */
|
|
70
68
|
name: string;
|
|
71
|
-
/**
|
|
69
|
+
/** Needs a letter or digit. Stored as its lowercase slug ("GPT 6 Sol" -> "gpt-6-sol"). */
|
|
72
70
|
displayName: string;
|
|
73
71
|
}
|
|
74
72
|
|
|
@@ -78,9 +76,9 @@ export interface UpdateAIModelResponse {
|
|
|
78
76
|
}
|
|
79
77
|
|
|
80
78
|
export interface UpdateAIEffortRequest {
|
|
81
|
-
/**
|
|
79
|
+
/** "" is a valid effort name. */
|
|
82
80
|
name: string;
|
|
83
|
-
/**
|
|
81
|
+
/** Needs a letter or digit. Stored as its lowercase slug ("GPT 6 Sol" -> "gpt-6-sol"). */
|
|
84
82
|
displayName: string;
|
|
85
83
|
}
|
|
86
84
|
|
|
@@ -90,9 +88,8 @@ export interface UpdateAIEffortResponse {
|
|
|
90
88
|
}
|
|
91
89
|
|
|
92
90
|
export interface UpdateAIBillerRequest {
|
|
93
|
-
/** Required. */
|
|
94
91
|
name: string;
|
|
95
|
-
/**
|
|
92
|
+
/** Needs a letter or digit. Stored as its lowercase slug ("GPT 6 Sol" -> "gpt-6-sol"). */
|
|
96
93
|
displayName: string;
|
|
97
94
|
}
|
|
98
95
|
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
'use strict';
|
|
4
4
|
var grpc = require('@grpc/grpc-js');
|
|
5
5
|
var proto_gateway_web_v1_admin_gateway_pb = require('../../../../proto/gateway/web/v1/admin_gateway_pb.js');
|
|
6
|
+
var google_api_field_behavior_pb = require('../../../../google/api/field_behavior_pb.js');
|
|
6
7
|
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
|
|
7
8
|
var proto_gateway_common_v1_status_pb = require('../../../../proto/gateway/common/v1/status_pb.js');
|
|
8
9
|
var proto_gateway_web_v1_beta_gateway_pb = require('../../../../proto/gateway/web/v1/beta_gateway_pb.js');
|
|
@@ -15,6 +15,8 @@ var jspb = require('google-protobuf');
|
|
|
15
15
|
var goog = jspb;
|
|
16
16
|
var global = globalThis;
|
|
17
17
|
|
|
18
|
+
var google_api_field_behavior_pb = require('../../../../google/api/field_behavior_pb.js');
|
|
19
|
+
goog.object.extend(proto, google_api_field_behavior_pb);
|
|
18
20
|
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
|
|
19
21
|
goog.object.extend(proto, google_protobuf_timestamp_pb);
|
|
20
22
|
var proto_gateway_common_v1_status_pb = require('../../../../proto/gateway/common/v1/status_pb.js');
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
'use strict';
|
|
4
4
|
var grpc = require('@grpc/grpc-js');
|
|
5
5
|
var proto_gateway_web_v1_beta_gateway_pb = require('../../../../proto/gateway/web/v1/beta_gateway_pb.js');
|
|
6
|
+
var google_api_field_behavior_pb = require('../../../../google/api/field_behavior_pb.js');
|
|
6
7
|
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
|
|
7
8
|
var proto_gateway_common_v1_status_pb = require('../../../../proto/gateway/common/v1/status_pb.js');
|
|
8
9
|
|
|
@@ -15,6 +15,8 @@ var jspb = require('google-protobuf');
|
|
|
15
15
|
var goog = jspb;
|
|
16
16
|
var global = globalThis;
|
|
17
17
|
|
|
18
|
+
var google_api_field_behavior_pb = require('../../../../google/api/field_behavior_pb.js');
|
|
19
|
+
goog.object.extend(proto, google_api_field_behavior_pb);
|
|
18
20
|
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
|
|
19
21
|
goog.object.extend(proto, google_protobuf_timestamp_pb);
|
|
20
22
|
var proto_gateway_common_v1_status_pb = require('../../../../proto/gateway/common/v1/status_pb.js');
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
'use strict';
|
|
4
4
|
var grpc = require('@grpc/grpc-js');
|
|
5
5
|
var proto_gateway_web_v1_chain_gateway_pb = require('../../../../proto/gateway/web/v1/chain_gateway_pb.js');
|
|
6
|
+
var google_api_field_behavior_pb = require('../../../../google/api/field_behavior_pb.js');
|
|
6
7
|
var proto_gateway_common_v1_status_pb = require('../../../../proto/gateway/common/v1/status_pb.js');
|
|
7
8
|
var proto_gateway_common_v1_types_pb = require('../../../../proto/gateway/common/v1/types_pb.js');
|
|
8
9
|
|
|
@@ -15,6 +15,8 @@ var jspb = require('google-protobuf');
|
|
|
15
15
|
var goog = jspb;
|
|
16
16
|
var global = globalThis;
|
|
17
17
|
|
|
18
|
+
var google_api_field_behavior_pb = require('../../../../google/api/field_behavior_pb.js');
|
|
19
|
+
goog.object.extend(proto, google_api_field_behavior_pb);
|
|
18
20
|
var proto_gateway_common_v1_status_pb = require('../../../../proto/gateway/common/v1/status_pb.js');
|
|
19
21
|
goog.object.extend(proto, proto_gateway_common_v1_status_pb);
|
|
20
22
|
var proto_gateway_common_v1_types_pb = require('../../../../proto/gateway/common/v1/types_pb.js');
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
'use strict';
|
|
4
4
|
var grpc = require('@grpc/grpc-js');
|
|
5
5
|
var proto_gateway_web_v1_derived_metric_gateway_pb = require('../../../../proto/gateway/web/v1/derived_metric_gateway_pb.js');
|
|
6
|
+
var google_api_field_behavior_pb = require('../../../../google/api/field_behavior_pb.js');
|
|
6
7
|
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
|
|
7
8
|
var proto_gateway_common_v1_status_pb = require('../../../../proto/gateway/common/v1/status_pb.js');
|
|
8
9
|
|
|
@@ -15,6 +15,8 @@ var jspb = require('google-protobuf');
|
|
|
15
15
|
var goog = jspb;
|
|
16
16
|
var global = globalThis;
|
|
17
17
|
|
|
18
|
+
var google_api_field_behavior_pb = require('../../../../google/api/field_behavior_pb.js');
|
|
19
|
+
goog.object.extend(proto, google_api_field_behavior_pb);
|
|
18
20
|
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
|
|
19
21
|
goog.object.extend(proto, google_protobuf_timestamp_pb);
|
|
20
22
|
var proto_gateway_common_v1_status_pb = require('../../../../proto/gateway/common/v1/status_pb.js');
|
|
@@ -53,7 +53,9 @@ export interface GitHubCompleteRequest {
|
|
|
53
53
|
organizationId: string;
|
|
54
54
|
state: string;
|
|
55
55
|
browserSecret: string;
|
|
56
|
+
/** required unless denied */
|
|
56
57
|
code: string;
|
|
58
|
+
/** required when the user manages several installations */
|
|
57
59
|
installationId: string;
|
|
58
60
|
denied: boolean;
|
|
59
61
|
}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
'use strict';
|
|
4
4
|
var grpc = require('@grpc/grpc-js');
|
|
5
5
|
var proto_gateway_web_v1_github_connector_pb = require('../../../../proto/gateway/web/v1/github_connector_pb.js');
|
|
6
|
+
var google_api_field_behavior_pb = require('../../../../google/api/field_behavior_pb.js');
|
|
6
7
|
var proto_gateway_common_v1_status_pb = require('../../../../proto/gateway/common/v1/status_pb.js');
|
|
7
8
|
|
|
8
9
|
function serialize_gateway_web_v1_CreateInstallTermaPullRequestsRequest(arg) {
|
|
@@ -15,6 +15,8 @@ var jspb = require('google-protobuf');
|
|
|
15
15
|
var goog = jspb;
|
|
16
16
|
var global = globalThis;
|
|
17
17
|
|
|
18
|
+
var google_api_field_behavior_pb = require('../../../../google/api/field_behavior_pb.js');
|
|
19
|
+
goog.object.extend(proto, google_api_field_behavior_pb);
|
|
18
20
|
var proto_gateway_common_v1_status_pb = require('../../../../proto/gateway/common/v1/status_pb.js');
|
|
19
21
|
goog.object.extend(proto, proto_gateway_common_v1_status_pb);
|
|
20
22
|
goog.exportSymbol('proto.gateway.web.v1.CreateInstallTermaPullRequestsRequest', null, global);
|
|
@@ -124,6 +124,7 @@ export interface Integration {
|
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
export interface WebhookConfig {
|
|
127
|
+
/** Required on create; empty on update keeps the current URL. */
|
|
127
128
|
url: string;
|
|
128
129
|
headers: { [key: string]: string };
|
|
129
130
|
}
|
|
@@ -134,6 +135,7 @@ export interface WebhookConfig_HeadersEntry {
|
|
|
134
135
|
}
|
|
135
136
|
|
|
136
137
|
export interface SlackConfig {
|
|
138
|
+
/** Required on create; empty on update keeps the current channel. */
|
|
137
139
|
channelId: string;
|
|
138
140
|
channelName: string;
|
|
139
141
|
teamId: string;
|
|
@@ -141,10 +143,12 @@ export interface SlackConfig {
|
|
|
141
143
|
}
|
|
142
144
|
|
|
143
145
|
export interface EmailConfig {
|
|
146
|
+
/** At least one on create; empty on update keeps the current recipients. */
|
|
144
147
|
recipients: string[];
|
|
145
148
|
}
|
|
146
149
|
|
|
147
150
|
export interface PagerDutyConfig {
|
|
151
|
+
/** Required on create; the service cannot be changed on update. */
|
|
148
152
|
serviceId: string;
|
|
149
153
|
serviceName: string;
|
|
150
154
|
}
|
|
@@ -176,7 +180,13 @@ export interface GetIntegrationResponse {
|
|
|
176
180
|
|
|
177
181
|
export interface ListIntegrationsRequest {
|
|
178
182
|
organizationId: string;
|
|
179
|
-
|
|
183
|
+
filter: IntegrationFilter | undefined;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
/** IntegrationFilter narrows ListIntegrations; unset fields do not filter. */
|
|
187
|
+
export interface IntegrationFilter {
|
|
188
|
+
/** UNSPECIFIED = every type. */
|
|
189
|
+
type: IntegrationType;
|
|
180
190
|
}
|
|
181
191
|
|
|
182
192
|
export interface ListIntegrationsResponse {
|
|
@@ -1508,7 +1518,7 @@ export const GetIntegrationResponse: MessageFns<GetIntegrationResponse> = {
|
|
|
1508
1518
|
};
|
|
1509
1519
|
|
|
1510
1520
|
function createBaseListIntegrationsRequest(): ListIntegrationsRequest {
|
|
1511
|
-
return { organizationId: "",
|
|
1521
|
+
return { organizationId: "", filter: undefined };
|
|
1512
1522
|
}
|
|
1513
1523
|
|
|
1514
1524
|
export const ListIntegrationsRequest: MessageFns<ListIntegrationsRequest> = {
|
|
@@ -1516,8 +1526,8 @@ export const ListIntegrationsRequest: MessageFns<ListIntegrationsRequest> = {
|
|
|
1516
1526
|
if (message.organizationId !== "") {
|
|
1517
1527
|
writer.uint32(10).string(message.organizationId);
|
|
1518
1528
|
}
|
|
1519
|
-
if (message.
|
|
1520
|
-
writer.uint32(
|
|
1529
|
+
if (message.filter !== undefined) {
|
|
1530
|
+
IntegrationFilter.encode(message.filter, writer.uint32(18).fork()).join();
|
|
1521
1531
|
}
|
|
1522
1532
|
return writer;
|
|
1523
1533
|
},
|
|
@@ -1544,11 +1554,11 @@ export const ListIntegrationsRequest: MessageFns<ListIntegrationsRequest> = {
|
|
|
1544
1554
|
continue;
|
|
1545
1555
|
}
|
|
1546
1556
|
case 2: {
|
|
1547
|
-
if (tag !==
|
|
1557
|
+
if (tag !== 18) {
|
|
1548
1558
|
break;
|
|
1549
1559
|
}
|
|
1550
1560
|
|
|
1551
|
-
message.
|
|
1561
|
+
message.filter = IntegrationFilter.decode(reader, reader.uint32());
|
|
1552
1562
|
continue;
|
|
1553
1563
|
}
|
|
1554
1564
|
}
|
|
@@ -1570,11 +1580,7 @@ export const ListIntegrationsRequest: MessageFns<ListIntegrationsRequest> = {
|
|
|
1570
1580
|
: isSet(object.organization_id)
|
|
1571
1581
|
? globalThis.String(object.organization_id)
|
|
1572
1582
|
: "",
|
|
1573
|
-
|
|
1574
|
-
? integrationTypeFromJSON(object.typeFilter)
|
|
1575
|
-
: isSet(object.type_filter)
|
|
1576
|
-
? integrationTypeFromJSON(object.type_filter)
|
|
1577
|
-
: 0,
|
|
1583
|
+
filter: isSet(object.filter) ? IntegrationFilter.fromJSON(object.filter) : undefined,
|
|
1578
1584
|
};
|
|
1579
1585
|
},
|
|
1580
1586
|
|
|
@@ -1583,8 +1589,8 @@ export const ListIntegrationsRequest: MessageFns<ListIntegrationsRequest> = {
|
|
|
1583
1589
|
if (message.organizationId !== "") {
|
|
1584
1590
|
obj.organizationId = message.organizationId;
|
|
1585
1591
|
}
|
|
1586
|
-
if (message.
|
|
1587
|
-
obj.
|
|
1592
|
+
if (message.filter !== undefined) {
|
|
1593
|
+
obj.filter = IntegrationFilter.toJSON(message.filter);
|
|
1588
1594
|
}
|
|
1589
1595
|
return obj;
|
|
1590
1596
|
},
|
|
@@ -1595,7 +1601,76 @@ export const ListIntegrationsRequest: MessageFns<ListIntegrationsRequest> = {
|
|
|
1595
1601
|
fromPartial<I extends Exact<DeepPartial<ListIntegrationsRequest>, I>>(object: I): ListIntegrationsRequest {
|
|
1596
1602
|
const message = createBaseListIntegrationsRequest();
|
|
1597
1603
|
message.organizationId = object.organizationId ?? "";
|
|
1598
|
-
message.
|
|
1604
|
+
message.filter = (object.filter !== undefined && object.filter !== null)
|
|
1605
|
+
? IntegrationFilter.fromPartial(object.filter)
|
|
1606
|
+
: undefined;
|
|
1607
|
+
return message;
|
|
1608
|
+
},
|
|
1609
|
+
};
|
|
1610
|
+
|
|
1611
|
+
function createBaseIntegrationFilter(): IntegrationFilter {
|
|
1612
|
+
return { type: 0 };
|
|
1613
|
+
}
|
|
1614
|
+
|
|
1615
|
+
export const IntegrationFilter: MessageFns<IntegrationFilter> = {
|
|
1616
|
+
encode(message: IntegrationFilter, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1617
|
+
if (message.type !== 0) {
|
|
1618
|
+
writer.uint32(8).int32(message.type);
|
|
1619
|
+
}
|
|
1620
|
+
return writer;
|
|
1621
|
+
},
|
|
1622
|
+
|
|
1623
|
+
decode(input: BinaryReader | Uint8Array, length?: number): IntegrationFilter {
|
|
1624
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1625
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
1626
|
+
if (previousRecursionDepth >= 100) {
|
|
1627
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
1628
|
+
}
|
|
1629
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
1630
|
+
try {
|
|
1631
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1632
|
+
const message = createBaseIntegrationFilter();
|
|
1633
|
+
while (reader.pos < end) {
|
|
1634
|
+
const tag = reader.uint32();
|
|
1635
|
+
switch (tag >>> 3) {
|
|
1636
|
+
case 1: {
|
|
1637
|
+
if (tag !== 8) {
|
|
1638
|
+
break;
|
|
1639
|
+
}
|
|
1640
|
+
|
|
1641
|
+
message.type = reader.int32() as any;
|
|
1642
|
+
continue;
|
|
1643
|
+
}
|
|
1644
|
+
}
|
|
1645
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1646
|
+
break;
|
|
1647
|
+
}
|
|
1648
|
+
reader.skip(tag & 7);
|
|
1649
|
+
}
|
|
1650
|
+
return message;
|
|
1651
|
+
} finally {
|
|
1652
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
1653
|
+
}
|
|
1654
|
+
},
|
|
1655
|
+
|
|
1656
|
+
fromJSON(object: any): IntegrationFilter {
|
|
1657
|
+
return { type: isSet(object.type) ? integrationTypeFromJSON(object.type) : 0 };
|
|
1658
|
+
},
|
|
1659
|
+
|
|
1660
|
+
toJSON(message: IntegrationFilter): unknown {
|
|
1661
|
+
const obj: any = {};
|
|
1662
|
+
if (message.type !== 0) {
|
|
1663
|
+
obj.type = integrationTypeToJSON(message.type);
|
|
1664
|
+
}
|
|
1665
|
+
return obj;
|
|
1666
|
+
},
|
|
1667
|
+
|
|
1668
|
+
create<I extends Exact<DeepPartial<IntegrationFilter>, I>>(base?: I): IntegrationFilter {
|
|
1669
|
+
return IntegrationFilter.fromPartial(base ?? ({} as any));
|
|
1670
|
+
},
|
|
1671
|
+
fromPartial<I extends Exact<DeepPartial<IntegrationFilter>, I>>(object: I): IntegrationFilter {
|
|
1672
|
+
const message = createBaseIntegrationFilter();
|
|
1673
|
+
message.type = object.type ?? 0;
|
|
1599
1674
|
return message;
|
|
1600
1675
|
},
|
|
1601
1676
|
};
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
'use strict';
|
|
4
4
|
var grpc = require('@grpc/grpc-js');
|
|
5
5
|
var proto_gateway_web_v1_integration_gateway_pb = require('../../../../proto/gateway/web/v1/integration_gateway_pb.js');
|
|
6
|
+
var google_api_field_behavior_pb = require('../../../../google/api/field_behavior_pb.js');
|
|
6
7
|
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
|
|
7
8
|
var proto_gateway_common_v1_status_pb = require('../../../../proto/gateway/common/v1/status_pb.js');
|
|
8
9
|
var proto_gateway_web_v1_common_pb = require('../../../../proto/gateway/web/v1/common_pb.js');
|
|
@@ -15,6 +15,8 @@ var jspb = require('google-protobuf');
|
|
|
15
15
|
var goog = jspb;
|
|
16
16
|
var global = globalThis;
|
|
17
17
|
|
|
18
|
+
var google_api_field_behavior_pb = require('../../../../google/api/field_behavior_pb.js');
|
|
19
|
+
goog.object.extend(proto, google_api_field_behavior_pb);
|
|
18
20
|
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
|
|
19
21
|
goog.object.extend(proto, google_protobuf_timestamp_pb);
|
|
20
22
|
var proto_gateway_common_v1_status_pb = require('../../../../proto/gateway/common/v1/status_pb.js');
|
|
@@ -35,6 +37,7 @@ goog.exportSymbol('proto.gateway.web.v1.Integration', null, global);
|
|
|
35
37
|
goog.exportSymbol('proto.gateway.web.v1.Integration.ConfigCase', null, global);
|
|
36
38
|
goog.exportSymbol('proto.gateway.web.v1.IntegrationDelivery', null, global);
|
|
37
39
|
goog.exportSymbol('proto.gateway.web.v1.IntegrationDelivery.DestinationCase', null, global);
|
|
40
|
+
goog.exportSymbol('proto.gateway.web.v1.IntegrationFilter', null, global);
|
|
38
41
|
goog.exportSymbol('proto.gateway.web.v1.IntegrationType', null, global);
|
|
39
42
|
goog.exportSymbol('proto.gateway.web.v1.ListIntegrationsRequest', null, global);
|
|
40
43
|
goog.exportSymbol('proto.gateway.web.v1.ListIntegrationsResponse', null, global);
|
|
@@ -260,6 +263,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
260
263
|
*/
|
|
261
264
|
proto.gateway.web.v1.ListIntegrationsRequest.displayName = 'proto.gateway.web.v1.ListIntegrationsRequest';
|
|
262
265
|
}
|
|
266
|
+
/**
|
|
267
|
+
* Generated by JsPbCodeGenerator.
|
|
268
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
269
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
270
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
271
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
272
|
+
* valid.
|
|
273
|
+
* @extends {jspb.Message}
|
|
274
|
+
* @constructor
|
|
275
|
+
*/
|
|
276
|
+
proto.gateway.web.v1.IntegrationFilter = function(opt_data) {
|
|
277
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
278
|
+
};
|
|
279
|
+
goog.inherits(proto.gateway.web.v1.IntegrationFilter, jspb.Message);
|
|
280
|
+
if (goog.DEBUG && !COMPILED) {
|
|
281
|
+
/**
|
|
282
|
+
* @public
|
|
283
|
+
* @override
|
|
284
|
+
*/
|
|
285
|
+
proto.gateway.web.v1.IntegrationFilter.displayName = 'proto.gateway.web.v1.IntegrationFilter';
|
|
286
|
+
}
|
|
263
287
|
/**
|
|
264
288
|
* Generated by JsPbCodeGenerator.
|
|
265
289
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -2841,7 +2865,7 @@ proto.gateway.web.v1.ListIntegrationsRequest.prototype.toObject = function(opt_i
|
|
|
2841
2865
|
proto.gateway.web.v1.ListIntegrationsRequest.toObject = function(includeInstance, msg) {
|
|
2842
2866
|
var f, obj = {
|
|
2843
2867
|
organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
2844
|
-
|
|
2868
|
+
filter: (f = msg.getFilter()) && proto.gateway.web.v1.IntegrationFilter.toObject(includeInstance, f)
|
|
2845
2869
|
};
|
|
2846
2870
|
|
|
2847
2871
|
if (includeInstance) {
|
|
@@ -2883,8 +2907,9 @@ proto.gateway.web.v1.ListIntegrationsRequest.deserializeBinaryFromReader = funct
|
|
|
2883
2907
|
msg.setOrganizationId(value);
|
|
2884
2908
|
break;
|
|
2885
2909
|
case 2:
|
|
2886
|
-
var value =
|
|
2887
|
-
|
|
2910
|
+
var value = new proto.gateway.web.v1.IntegrationFilter;
|
|
2911
|
+
reader.readMessage(value,proto.gateway.web.v1.IntegrationFilter.deserializeBinaryFromReader);
|
|
2912
|
+
msg.setFilter(value);
|
|
2888
2913
|
break;
|
|
2889
2914
|
default:
|
|
2890
2915
|
reader.skipField();
|
|
@@ -2922,11 +2947,12 @@ proto.gateway.web.v1.ListIntegrationsRequest.serializeBinaryToWriter = function(
|
|
|
2922
2947
|
f
|
|
2923
2948
|
);
|
|
2924
2949
|
}
|
|
2925
|
-
f = message.
|
|
2926
|
-
if (f
|
|
2927
|
-
writer.
|
|
2950
|
+
f = message.getFilter();
|
|
2951
|
+
if (f != null) {
|
|
2952
|
+
writer.writeMessage(
|
|
2928
2953
|
2,
|
|
2929
|
-
f
|
|
2954
|
+
f,
|
|
2955
|
+
proto.gateway.web.v1.IntegrationFilter.serializeBinaryToWriter
|
|
2930
2956
|
);
|
|
2931
2957
|
}
|
|
2932
2958
|
};
|
|
@@ -2951,20 +2977,169 @@ proto.gateway.web.v1.ListIntegrationsRequest.prototype.setOrganizationId = funct
|
|
|
2951
2977
|
|
|
2952
2978
|
|
|
2953
2979
|
/**
|
|
2954
|
-
* optional
|
|
2980
|
+
* optional IntegrationFilter filter = 2;
|
|
2981
|
+
* @return {?proto.gateway.web.v1.IntegrationFilter}
|
|
2982
|
+
*/
|
|
2983
|
+
proto.gateway.web.v1.ListIntegrationsRequest.prototype.getFilter = function() {
|
|
2984
|
+
return /** @type{?proto.gateway.web.v1.IntegrationFilter} */ (
|
|
2985
|
+
jspb.Message.getWrapperField(this, proto.gateway.web.v1.IntegrationFilter, 2));
|
|
2986
|
+
};
|
|
2987
|
+
|
|
2988
|
+
|
|
2989
|
+
/**
|
|
2990
|
+
* @param {?proto.gateway.web.v1.IntegrationFilter|undefined} value
|
|
2991
|
+
* @return {!proto.gateway.web.v1.ListIntegrationsRequest} returns this
|
|
2992
|
+
*/
|
|
2993
|
+
proto.gateway.web.v1.ListIntegrationsRequest.prototype.setFilter = function(value) {
|
|
2994
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
2995
|
+
};
|
|
2996
|
+
|
|
2997
|
+
|
|
2998
|
+
/**
|
|
2999
|
+
* Clears the message field making it undefined.
|
|
3000
|
+
* @return {!proto.gateway.web.v1.ListIntegrationsRequest} returns this
|
|
3001
|
+
*/
|
|
3002
|
+
proto.gateway.web.v1.ListIntegrationsRequest.prototype.clearFilter = function() {
|
|
3003
|
+
return this.setFilter(undefined);
|
|
3004
|
+
};
|
|
3005
|
+
|
|
3006
|
+
|
|
3007
|
+
/**
|
|
3008
|
+
* Returns whether this field is set.
|
|
3009
|
+
* @return {boolean}
|
|
3010
|
+
*/
|
|
3011
|
+
proto.gateway.web.v1.ListIntegrationsRequest.prototype.hasFilter = function() {
|
|
3012
|
+
return jspb.Message.getField(this, 2) != null;
|
|
3013
|
+
};
|
|
3014
|
+
|
|
3015
|
+
|
|
3016
|
+
|
|
3017
|
+
|
|
3018
|
+
|
|
3019
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3020
|
+
/**
|
|
3021
|
+
* Creates an object representation of this proto.
|
|
3022
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3023
|
+
* Optional fields that are not set will be set to undefined.
|
|
3024
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3025
|
+
* For the list of reserved names please see:
|
|
3026
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3027
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3028
|
+
* JSPB instance for transitional soy proto support:
|
|
3029
|
+
* http://goto/soy-param-migration
|
|
3030
|
+
* @return {!Object}
|
|
3031
|
+
*/
|
|
3032
|
+
proto.gateway.web.v1.IntegrationFilter.prototype.toObject = function(opt_includeInstance) {
|
|
3033
|
+
return proto.gateway.web.v1.IntegrationFilter.toObject(opt_includeInstance, this);
|
|
3034
|
+
};
|
|
3035
|
+
|
|
3036
|
+
|
|
3037
|
+
/**
|
|
3038
|
+
* Static version of the {@see toObject} method.
|
|
3039
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3040
|
+
* the JSPB instance for transitional soy proto support:
|
|
3041
|
+
* http://goto/soy-param-migration
|
|
3042
|
+
* @param {!proto.gateway.web.v1.IntegrationFilter} msg The msg instance to transform.
|
|
3043
|
+
* @return {!Object}
|
|
3044
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3045
|
+
*/
|
|
3046
|
+
proto.gateway.web.v1.IntegrationFilter.toObject = function(includeInstance, msg) {
|
|
3047
|
+
var f, obj = {
|
|
3048
|
+
type: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
|
3049
|
+
};
|
|
3050
|
+
|
|
3051
|
+
if (includeInstance) {
|
|
3052
|
+
obj.$jspbMessageInstance = msg;
|
|
3053
|
+
}
|
|
3054
|
+
return obj;
|
|
3055
|
+
};
|
|
3056
|
+
}
|
|
3057
|
+
|
|
3058
|
+
|
|
3059
|
+
/**
|
|
3060
|
+
* Deserializes binary data (in protobuf wire format).
|
|
3061
|
+
* @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
|
|
3062
|
+
* @return {!proto.gateway.web.v1.IntegrationFilter}
|
|
3063
|
+
*/
|
|
3064
|
+
proto.gateway.web.v1.IntegrationFilter.deserializeBinary = function(bytes) {
|
|
3065
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3066
|
+
var msg = new proto.gateway.web.v1.IntegrationFilter;
|
|
3067
|
+
return proto.gateway.web.v1.IntegrationFilter.deserializeBinaryFromReader(msg, reader);
|
|
3068
|
+
};
|
|
3069
|
+
|
|
3070
|
+
|
|
3071
|
+
/**
|
|
3072
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
3073
|
+
* given reader into the given message object.
|
|
3074
|
+
* @param {!proto.gateway.web.v1.IntegrationFilter} msg The message object to deserialize into.
|
|
3075
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3076
|
+
* @return {!proto.gateway.web.v1.IntegrationFilter}
|
|
3077
|
+
*/
|
|
3078
|
+
proto.gateway.web.v1.IntegrationFilter.deserializeBinaryFromReader = function(msg, reader) {
|
|
3079
|
+
while (reader.nextField()) {
|
|
3080
|
+
if (reader.isEndGroup()) {
|
|
3081
|
+
break;
|
|
3082
|
+
}
|
|
3083
|
+
var field = reader.getFieldNumber();
|
|
3084
|
+
switch (field) {
|
|
3085
|
+
case 1:
|
|
3086
|
+
var value = /** @type {!proto.gateway.web.v1.IntegrationType} */ (reader.readEnum());
|
|
3087
|
+
msg.setType(value);
|
|
3088
|
+
break;
|
|
3089
|
+
default:
|
|
3090
|
+
reader.skipField();
|
|
3091
|
+
break;
|
|
3092
|
+
}
|
|
3093
|
+
}
|
|
3094
|
+
return msg;
|
|
3095
|
+
};
|
|
3096
|
+
|
|
3097
|
+
|
|
3098
|
+
/**
|
|
3099
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
3100
|
+
* @return {!Uint8Array}
|
|
3101
|
+
*/
|
|
3102
|
+
proto.gateway.web.v1.IntegrationFilter.prototype.serializeBinary = function() {
|
|
3103
|
+
var writer = new jspb.BinaryWriter();
|
|
3104
|
+
proto.gateway.web.v1.IntegrationFilter.serializeBinaryToWriter(this, writer);
|
|
3105
|
+
return writer.getResultBuffer();
|
|
3106
|
+
};
|
|
3107
|
+
|
|
3108
|
+
|
|
3109
|
+
/**
|
|
3110
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
3111
|
+
* format), writing to the given BinaryWriter.
|
|
3112
|
+
* @param {!proto.gateway.web.v1.IntegrationFilter} message
|
|
3113
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3114
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3115
|
+
*/
|
|
3116
|
+
proto.gateway.web.v1.IntegrationFilter.serializeBinaryToWriter = function(message, writer) {
|
|
3117
|
+
var f = undefined;
|
|
3118
|
+
f = message.getType();
|
|
3119
|
+
if (f !== 0.0) {
|
|
3120
|
+
writer.writeEnum(
|
|
3121
|
+
1,
|
|
3122
|
+
f
|
|
3123
|
+
);
|
|
3124
|
+
}
|
|
3125
|
+
};
|
|
3126
|
+
|
|
3127
|
+
|
|
3128
|
+
/**
|
|
3129
|
+
* optional IntegrationType type = 1;
|
|
2955
3130
|
* @return {!proto.gateway.web.v1.IntegrationType}
|
|
2956
3131
|
*/
|
|
2957
|
-
proto.gateway.web.v1.
|
|
2958
|
-
return /** @type {!proto.gateway.web.v1.IntegrationType} */ (jspb.Message.getFieldWithDefault(this,
|
|
3132
|
+
proto.gateway.web.v1.IntegrationFilter.prototype.getType = function() {
|
|
3133
|
+
return /** @type {!proto.gateway.web.v1.IntegrationType} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
2959
3134
|
};
|
|
2960
3135
|
|
|
2961
3136
|
|
|
2962
3137
|
/**
|
|
2963
3138
|
* @param {!proto.gateway.web.v1.IntegrationType} value
|
|
2964
|
-
* @return {!proto.gateway.web.v1.
|
|
3139
|
+
* @return {!proto.gateway.web.v1.IntegrationFilter} returns this
|
|
2965
3140
|
*/
|
|
2966
|
-
proto.gateway.web.v1.
|
|
2967
|
-
return jspb.Message.setProto3EnumField(this,
|
|
3141
|
+
proto.gateway.web.v1.IntegrationFilter.prototype.setType = function(value) {
|
|
3142
|
+
return jspb.Message.setProto3EnumField(this, 1, value);
|
|
2968
3143
|
};
|
|
2969
3144
|
|
|
2970
3145
|
|