@miradorlabs/web-grpc 2.23.0 → 2.24.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/metric_gateway.ts +81 -9
- package/proto/gateway/web/v1/metric_gateway_pb.js +208 -12
- package/proto/gateway/web/v1/plan_gateway.ts +11 -777
- package/proto/gateway/web/v1/plan_gateway_grpc_pb.js +3 -37
- package/proto/gateway/web/v1/plan_gateway_pb.js +38 -1512
|
@@ -182,13 +182,8 @@ export interface Plan {
|
|
|
182
182
|
organizationId: string;
|
|
183
183
|
tier: PlanTier;
|
|
184
184
|
planStatus: PlanStatus;
|
|
185
|
-
traceSoftLimit: number;
|
|
186
|
-
traceHardLimit: number;
|
|
187
185
|
createdAt: Date | undefined;
|
|
188
186
|
updatedAt: Date | undefined;
|
|
189
|
-
projectLimit: number;
|
|
190
|
-
automationRuleLimit: number;
|
|
191
|
-
automationRuleMatchLimit: number;
|
|
192
187
|
}
|
|
193
188
|
|
|
194
189
|
export interface PlanPayment {
|
|
@@ -235,34 +230,6 @@ export interface PlanDeactivated {
|
|
|
235
230
|
reason: string;
|
|
236
231
|
}
|
|
237
232
|
|
|
238
|
-
export interface StreamQuotaUpdatesRequest {
|
|
239
|
-
organizationId: string;
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
export interface QuotaUpdateEnvelope {
|
|
243
|
-
quotaSnapshot?: QuotaSnapshot | undefined;
|
|
244
|
-
quotaUpdated?: QuotaUpdate | undefined;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
export interface QuotaSnapshot {
|
|
248
|
-
details: QuotaDetails | undefined;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
export interface QuotaUpdate {
|
|
252
|
-
details: QuotaDetails | undefined;
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
export interface QuotaDetails {
|
|
256
|
-
traceCount: number;
|
|
257
|
-
traceSoftLimit: number;
|
|
258
|
-
softBreachedAt?: Date | undefined;
|
|
259
|
-
traceHardLimit: number;
|
|
260
|
-
hardBreachedAt?: Date | undefined;
|
|
261
|
-
automationRuleMatchCount: number;
|
|
262
|
-
automationRuleMatchLimit: number;
|
|
263
|
-
automationRuleMatchBreachedAt?: Date | undefined;
|
|
264
|
-
}
|
|
265
|
-
|
|
266
233
|
export interface ListAvailablePlansRequest {
|
|
267
234
|
}
|
|
268
235
|
|
|
@@ -277,13 +244,8 @@ export interface PlanDetails {
|
|
|
277
244
|
description: string;
|
|
278
245
|
/** Display-only price string (e.g. "$49"). Empty for contact-sales or custom tiers. */
|
|
279
246
|
displayPrice: string;
|
|
280
|
-
traceSoftLimit: number;
|
|
281
|
-
traceHardLimit: number;
|
|
282
|
-
automationRuleLimit: number;
|
|
283
|
-
automationRuleMatchLimit: number;
|
|
284
247
|
/** Whether this plan can be self-service selected from the billing UI. */
|
|
285
248
|
selfServe: boolean;
|
|
286
|
-
projectLimit: number;
|
|
287
249
|
}
|
|
288
250
|
|
|
289
251
|
function createBaseGetPlanRequest(): GetPlanRequest {
|
|
@@ -447,19 +409,7 @@ export const GetPlanResponse: MessageFns<GetPlanResponse> = {
|
|
|
447
409
|
};
|
|
448
410
|
|
|
449
411
|
function createBasePlan(): Plan {
|
|
450
|
-
return {
|
|
451
|
-
planId: "",
|
|
452
|
-
organizationId: "",
|
|
453
|
-
tier: 0,
|
|
454
|
-
planStatus: 0,
|
|
455
|
-
traceSoftLimit: 0,
|
|
456
|
-
traceHardLimit: 0,
|
|
457
|
-
createdAt: undefined,
|
|
458
|
-
updatedAt: undefined,
|
|
459
|
-
projectLimit: 0,
|
|
460
|
-
automationRuleLimit: 0,
|
|
461
|
-
automationRuleMatchLimit: 0,
|
|
462
|
-
};
|
|
412
|
+
return { planId: "", organizationId: "", tier: 0, planStatus: 0, createdAt: undefined, updatedAt: undefined };
|
|
463
413
|
}
|
|
464
414
|
|
|
465
415
|
export const Plan: MessageFns<Plan> = {
|
|
@@ -476,26 +426,11 @@ export const Plan: MessageFns<Plan> = {
|
|
|
476
426
|
if (message.planStatus !== 0) {
|
|
477
427
|
writer.uint32(32).int32(message.planStatus);
|
|
478
428
|
}
|
|
479
|
-
if (message.traceSoftLimit !== 0) {
|
|
480
|
-
writer.uint32(40).int64(message.traceSoftLimit);
|
|
481
|
-
}
|
|
482
|
-
if (message.traceHardLimit !== 0) {
|
|
483
|
-
writer.uint32(48).int64(message.traceHardLimit);
|
|
484
|
-
}
|
|
485
429
|
if (message.createdAt !== undefined) {
|
|
486
|
-
Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(
|
|
430
|
+
Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(42).fork()).join();
|
|
487
431
|
}
|
|
488
432
|
if (message.updatedAt !== undefined) {
|
|
489
|
-
Timestamp.encode(toTimestamp(message.updatedAt), writer.uint32(
|
|
490
|
-
}
|
|
491
|
-
if (message.projectLimit !== 0) {
|
|
492
|
-
writer.uint32(72).int64(message.projectLimit);
|
|
493
|
-
}
|
|
494
|
-
if (message.automationRuleLimit !== 0) {
|
|
495
|
-
writer.uint32(80).int64(message.automationRuleLimit);
|
|
496
|
-
}
|
|
497
|
-
if (message.automationRuleMatchLimit !== 0) {
|
|
498
|
-
writer.uint32(88).int64(message.automationRuleMatchLimit);
|
|
433
|
+
Timestamp.encode(toTimestamp(message.updatedAt), writer.uint32(50).fork()).join();
|
|
499
434
|
}
|
|
500
435
|
return writer;
|
|
501
436
|
},
|
|
@@ -540,61 +475,21 @@ export const Plan: MessageFns<Plan> = {
|
|
|
540
475
|
continue;
|
|
541
476
|
}
|
|
542
477
|
case 5: {
|
|
543
|
-
if (tag !==
|
|
544
|
-
break;
|
|
545
|
-
}
|
|
546
|
-
|
|
547
|
-
message.traceSoftLimit = longToNumber(reader.int64());
|
|
548
|
-
continue;
|
|
549
|
-
}
|
|
550
|
-
case 6: {
|
|
551
|
-
if (tag !== 48) {
|
|
552
|
-
break;
|
|
553
|
-
}
|
|
554
|
-
|
|
555
|
-
message.traceHardLimit = longToNumber(reader.int64());
|
|
556
|
-
continue;
|
|
557
|
-
}
|
|
558
|
-
case 7: {
|
|
559
|
-
if (tag !== 58) {
|
|
478
|
+
if (tag !== 42) {
|
|
560
479
|
break;
|
|
561
480
|
}
|
|
562
481
|
|
|
563
482
|
message.createdAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
564
483
|
continue;
|
|
565
484
|
}
|
|
566
|
-
case
|
|
567
|
-
if (tag !==
|
|
485
|
+
case 6: {
|
|
486
|
+
if (tag !== 50) {
|
|
568
487
|
break;
|
|
569
488
|
}
|
|
570
489
|
|
|
571
490
|
message.updatedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
572
491
|
continue;
|
|
573
492
|
}
|
|
574
|
-
case 9: {
|
|
575
|
-
if (tag !== 72) {
|
|
576
|
-
break;
|
|
577
|
-
}
|
|
578
|
-
|
|
579
|
-
message.projectLimit = longToNumber(reader.int64());
|
|
580
|
-
continue;
|
|
581
|
-
}
|
|
582
|
-
case 10: {
|
|
583
|
-
if (tag !== 80) {
|
|
584
|
-
break;
|
|
585
|
-
}
|
|
586
|
-
|
|
587
|
-
message.automationRuleLimit = longToNumber(reader.int64());
|
|
588
|
-
continue;
|
|
589
|
-
}
|
|
590
|
-
case 11: {
|
|
591
|
-
if (tag !== 88) {
|
|
592
|
-
break;
|
|
593
|
-
}
|
|
594
|
-
|
|
595
|
-
message.automationRuleMatchLimit = longToNumber(reader.int64());
|
|
596
|
-
continue;
|
|
597
|
-
}
|
|
598
493
|
}
|
|
599
494
|
if ((tag & 7) === 4 || tag === 0) {
|
|
600
495
|
break;
|
|
@@ -622,16 +517,6 @@ export const Plan: MessageFns<Plan> = {
|
|
|
622
517
|
: isSet(object.plan_status)
|
|
623
518
|
? planStatusFromJSON(object.plan_status)
|
|
624
519
|
: 0,
|
|
625
|
-
traceSoftLimit: isSet(object.traceSoftLimit)
|
|
626
|
-
? globalThis.Number(object.traceSoftLimit)
|
|
627
|
-
: isSet(object.trace_soft_limit)
|
|
628
|
-
? globalThis.Number(object.trace_soft_limit)
|
|
629
|
-
: 0,
|
|
630
|
-
traceHardLimit: isSet(object.traceHardLimit)
|
|
631
|
-
? globalThis.Number(object.traceHardLimit)
|
|
632
|
-
: isSet(object.trace_hard_limit)
|
|
633
|
-
? globalThis.Number(object.trace_hard_limit)
|
|
634
|
-
: 0,
|
|
635
520
|
createdAt: isSet(object.createdAt)
|
|
636
521
|
? fromJsonTimestamp(object.createdAt)
|
|
637
522
|
: isSet(object.created_at)
|
|
@@ -642,21 +527,6 @@ export const Plan: MessageFns<Plan> = {
|
|
|
642
527
|
: isSet(object.updated_at)
|
|
643
528
|
? fromJsonTimestamp(object.updated_at)
|
|
644
529
|
: undefined,
|
|
645
|
-
projectLimit: isSet(object.projectLimit)
|
|
646
|
-
? globalThis.Number(object.projectLimit)
|
|
647
|
-
: isSet(object.project_limit)
|
|
648
|
-
? globalThis.Number(object.project_limit)
|
|
649
|
-
: 0,
|
|
650
|
-
automationRuleLimit: isSet(object.automationRuleLimit)
|
|
651
|
-
? globalThis.Number(object.automationRuleLimit)
|
|
652
|
-
: isSet(object.automation_rule_limit)
|
|
653
|
-
? globalThis.Number(object.automation_rule_limit)
|
|
654
|
-
: 0,
|
|
655
|
-
automationRuleMatchLimit: isSet(object.automationRuleMatchLimit)
|
|
656
|
-
? globalThis.Number(object.automationRuleMatchLimit)
|
|
657
|
-
: isSet(object.automation_rule_match_limit)
|
|
658
|
-
? globalThis.Number(object.automation_rule_match_limit)
|
|
659
|
-
: 0,
|
|
660
530
|
};
|
|
661
531
|
},
|
|
662
532
|
|
|
@@ -674,27 +544,12 @@ export const Plan: MessageFns<Plan> = {
|
|
|
674
544
|
if (message.planStatus !== 0) {
|
|
675
545
|
obj.planStatus = planStatusToJSON(message.planStatus);
|
|
676
546
|
}
|
|
677
|
-
if (message.traceSoftLimit !== 0) {
|
|
678
|
-
obj.traceSoftLimit = Math.round(message.traceSoftLimit);
|
|
679
|
-
}
|
|
680
|
-
if (message.traceHardLimit !== 0) {
|
|
681
|
-
obj.traceHardLimit = Math.round(message.traceHardLimit);
|
|
682
|
-
}
|
|
683
547
|
if (message.createdAt !== undefined) {
|
|
684
548
|
obj.createdAt = message.createdAt.toISOString();
|
|
685
549
|
}
|
|
686
550
|
if (message.updatedAt !== undefined) {
|
|
687
551
|
obj.updatedAt = message.updatedAt.toISOString();
|
|
688
552
|
}
|
|
689
|
-
if (message.projectLimit !== 0) {
|
|
690
|
-
obj.projectLimit = Math.round(message.projectLimit);
|
|
691
|
-
}
|
|
692
|
-
if (message.automationRuleLimit !== 0) {
|
|
693
|
-
obj.automationRuleLimit = Math.round(message.automationRuleLimit);
|
|
694
|
-
}
|
|
695
|
-
if (message.automationRuleMatchLimit !== 0) {
|
|
696
|
-
obj.automationRuleMatchLimit = Math.round(message.automationRuleMatchLimit);
|
|
697
|
-
}
|
|
698
553
|
return obj;
|
|
699
554
|
},
|
|
700
555
|
|
|
@@ -707,13 +562,8 @@ export const Plan: MessageFns<Plan> = {
|
|
|
707
562
|
message.organizationId = object.organizationId ?? "";
|
|
708
563
|
message.tier = object.tier ?? 0;
|
|
709
564
|
message.planStatus = object.planStatus ?? 0;
|
|
710
|
-
message.traceSoftLimit = object.traceSoftLimit ?? 0;
|
|
711
|
-
message.traceHardLimit = object.traceHardLimit ?? 0;
|
|
712
565
|
message.createdAt = object.createdAt ?? undefined;
|
|
713
566
|
message.updatedAt = object.updatedAt ?? undefined;
|
|
714
|
-
message.projectLimit = object.projectLimit ?? 0;
|
|
715
|
-
message.automationRuleLimit = object.automationRuleLimit ?? 0;
|
|
716
|
-
message.automationRuleMatchLimit = object.automationRuleMatchLimit ?? 0;
|
|
717
567
|
return message;
|
|
718
568
|
},
|
|
719
569
|
};
|
|
@@ -1478,491 +1328,6 @@ export const PlanDeactivated: MessageFns<PlanDeactivated> = {
|
|
|
1478
1328
|
},
|
|
1479
1329
|
};
|
|
1480
1330
|
|
|
1481
|
-
function createBaseStreamQuotaUpdatesRequest(): StreamQuotaUpdatesRequest {
|
|
1482
|
-
return { organizationId: "" };
|
|
1483
|
-
}
|
|
1484
|
-
|
|
1485
|
-
export const StreamQuotaUpdatesRequest: MessageFns<StreamQuotaUpdatesRequest> = {
|
|
1486
|
-
encode(message: StreamQuotaUpdatesRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1487
|
-
if (message.organizationId !== "") {
|
|
1488
|
-
writer.uint32(10).string(message.organizationId);
|
|
1489
|
-
}
|
|
1490
|
-
return writer;
|
|
1491
|
-
},
|
|
1492
|
-
|
|
1493
|
-
decode(input: BinaryReader | Uint8Array, length?: number): StreamQuotaUpdatesRequest {
|
|
1494
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1495
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1496
|
-
const message = createBaseStreamQuotaUpdatesRequest();
|
|
1497
|
-
while (reader.pos < end) {
|
|
1498
|
-
const tag = reader.uint32();
|
|
1499
|
-
switch (tag >>> 3) {
|
|
1500
|
-
case 1: {
|
|
1501
|
-
if (tag !== 10) {
|
|
1502
|
-
break;
|
|
1503
|
-
}
|
|
1504
|
-
|
|
1505
|
-
message.organizationId = reader.string();
|
|
1506
|
-
continue;
|
|
1507
|
-
}
|
|
1508
|
-
}
|
|
1509
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1510
|
-
break;
|
|
1511
|
-
}
|
|
1512
|
-
reader.skip(tag & 7);
|
|
1513
|
-
}
|
|
1514
|
-
return message;
|
|
1515
|
-
},
|
|
1516
|
-
|
|
1517
|
-
fromJSON(object: any): StreamQuotaUpdatesRequest {
|
|
1518
|
-
return {
|
|
1519
|
-
organizationId: isSet(object.organizationId)
|
|
1520
|
-
? globalThis.String(object.organizationId)
|
|
1521
|
-
: isSet(object.organization_id)
|
|
1522
|
-
? globalThis.String(object.organization_id)
|
|
1523
|
-
: "",
|
|
1524
|
-
};
|
|
1525
|
-
},
|
|
1526
|
-
|
|
1527
|
-
toJSON(message: StreamQuotaUpdatesRequest): unknown {
|
|
1528
|
-
const obj: any = {};
|
|
1529
|
-
if (message.organizationId !== "") {
|
|
1530
|
-
obj.organizationId = message.organizationId;
|
|
1531
|
-
}
|
|
1532
|
-
return obj;
|
|
1533
|
-
},
|
|
1534
|
-
|
|
1535
|
-
create<I extends Exact<DeepPartial<StreamQuotaUpdatesRequest>, I>>(base?: I): StreamQuotaUpdatesRequest {
|
|
1536
|
-
return StreamQuotaUpdatesRequest.fromPartial(base ?? ({} as any));
|
|
1537
|
-
},
|
|
1538
|
-
fromPartial<I extends Exact<DeepPartial<StreamQuotaUpdatesRequest>, I>>(object: I): StreamQuotaUpdatesRequest {
|
|
1539
|
-
const message = createBaseStreamQuotaUpdatesRequest();
|
|
1540
|
-
message.organizationId = object.organizationId ?? "";
|
|
1541
|
-
return message;
|
|
1542
|
-
},
|
|
1543
|
-
};
|
|
1544
|
-
|
|
1545
|
-
function createBaseQuotaUpdateEnvelope(): QuotaUpdateEnvelope {
|
|
1546
|
-
return { quotaSnapshot: undefined, quotaUpdated: undefined };
|
|
1547
|
-
}
|
|
1548
|
-
|
|
1549
|
-
export const QuotaUpdateEnvelope: MessageFns<QuotaUpdateEnvelope> = {
|
|
1550
|
-
encode(message: QuotaUpdateEnvelope, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1551
|
-
if (message.quotaSnapshot !== undefined) {
|
|
1552
|
-
QuotaSnapshot.encode(message.quotaSnapshot, writer.uint32(10).fork()).join();
|
|
1553
|
-
}
|
|
1554
|
-
if (message.quotaUpdated !== undefined) {
|
|
1555
|
-
QuotaUpdate.encode(message.quotaUpdated, writer.uint32(18).fork()).join();
|
|
1556
|
-
}
|
|
1557
|
-
return writer;
|
|
1558
|
-
},
|
|
1559
|
-
|
|
1560
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QuotaUpdateEnvelope {
|
|
1561
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1562
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1563
|
-
const message = createBaseQuotaUpdateEnvelope();
|
|
1564
|
-
while (reader.pos < end) {
|
|
1565
|
-
const tag = reader.uint32();
|
|
1566
|
-
switch (tag >>> 3) {
|
|
1567
|
-
case 1: {
|
|
1568
|
-
if (tag !== 10) {
|
|
1569
|
-
break;
|
|
1570
|
-
}
|
|
1571
|
-
|
|
1572
|
-
message.quotaSnapshot = QuotaSnapshot.decode(reader, reader.uint32());
|
|
1573
|
-
continue;
|
|
1574
|
-
}
|
|
1575
|
-
case 2: {
|
|
1576
|
-
if (tag !== 18) {
|
|
1577
|
-
break;
|
|
1578
|
-
}
|
|
1579
|
-
|
|
1580
|
-
message.quotaUpdated = QuotaUpdate.decode(reader, reader.uint32());
|
|
1581
|
-
continue;
|
|
1582
|
-
}
|
|
1583
|
-
}
|
|
1584
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1585
|
-
break;
|
|
1586
|
-
}
|
|
1587
|
-
reader.skip(tag & 7);
|
|
1588
|
-
}
|
|
1589
|
-
return message;
|
|
1590
|
-
},
|
|
1591
|
-
|
|
1592
|
-
fromJSON(object: any): QuotaUpdateEnvelope {
|
|
1593
|
-
return {
|
|
1594
|
-
quotaSnapshot: isSet(object.quotaSnapshot)
|
|
1595
|
-
? QuotaSnapshot.fromJSON(object.quotaSnapshot)
|
|
1596
|
-
: isSet(object.quota_snapshot)
|
|
1597
|
-
? QuotaSnapshot.fromJSON(object.quota_snapshot)
|
|
1598
|
-
: undefined,
|
|
1599
|
-
quotaUpdated: isSet(object.quotaUpdated)
|
|
1600
|
-
? QuotaUpdate.fromJSON(object.quotaUpdated)
|
|
1601
|
-
: isSet(object.quota_updated)
|
|
1602
|
-
? QuotaUpdate.fromJSON(object.quota_updated)
|
|
1603
|
-
: undefined,
|
|
1604
|
-
};
|
|
1605
|
-
},
|
|
1606
|
-
|
|
1607
|
-
toJSON(message: QuotaUpdateEnvelope): unknown {
|
|
1608
|
-
const obj: any = {};
|
|
1609
|
-
if (message.quotaSnapshot !== undefined) {
|
|
1610
|
-
obj.quotaSnapshot = QuotaSnapshot.toJSON(message.quotaSnapshot);
|
|
1611
|
-
}
|
|
1612
|
-
if (message.quotaUpdated !== undefined) {
|
|
1613
|
-
obj.quotaUpdated = QuotaUpdate.toJSON(message.quotaUpdated);
|
|
1614
|
-
}
|
|
1615
|
-
return obj;
|
|
1616
|
-
},
|
|
1617
|
-
|
|
1618
|
-
create<I extends Exact<DeepPartial<QuotaUpdateEnvelope>, I>>(base?: I): QuotaUpdateEnvelope {
|
|
1619
|
-
return QuotaUpdateEnvelope.fromPartial(base ?? ({} as any));
|
|
1620
|
-
},
|
|
1621
|
-
fromPartial<I extends Exact<DeepPartial<QuotaUpdateEnvelope>, I>>(object: I): QuotaUpdateEnvelope {
|
|
1622
|
-
const message = createBaseQuotaUpdateEnvelope();
|
|
1623
|
-
message.quotaSnapshot = (object.quotaSnapshot !== undefined && object.quotaSnapshot !== null)
|
|
1624
|
-
? QuotaSnapshot.fromPartial(object.quotaSnapshot)
|
|
1625
|
-
: undefined;
|
|
1626
|
-
message.quotaUpdated = (object.quotaUpdated !== undefined && object.quotaUpdated !== null)
|
|
1627
|
-
? QuotaUpdate.fromPartial(object.quotaUpdated)
|
|
1628
|
-
: undefined;
|
|
1629
|
-
return message;
|
|
1630
|
-
},
|
|
1631
|
-
};
|
|
1632
|
-
|
|
1633
|
-
function createBaseQuotaSnapshot(): QuotaSnapshot {
|
|
1634
|
-
return { details: undefined };
|
|
1635
|
-
}
|
|
1636
|
-
|
|
1637
|
-
export const QuotaSnapshot: MessageFns<QuotaSnapshot> = {
|
|
1638
|
-
encode(message: QuotaSnapshot, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1639
|
-
if (message.details !== undefined) {
|
|
1640
|
-
QuotaDetails.encode(message.details, writer.uint32(10).fork()).join();
|
|
1641
|
-
}
|
|
1642
|
-
return writer;
|
|
1643
|
-
},
|
|
1644
|
-
|
|
1645
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QuotaSnapshot {
|
|
1646
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1647
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1648
|
-
const message = createBaseQuotaSnapshot();
|
|
1649
|
-
while (reader.pos < end) {
|
|
1650
|
-
const tag = reader.uint32();
|
|
1651
|
-
switch (tag >>> 3) {
|
|
1652
|
-
case 1: {
|
|
1653
|
-
if (tag !== 10) {
|
|
1654
|
-
break;
|
|
1655
|
-
}
|
|
1656
|
-
|
|
1657
|
-
message.details = QuotaDetails.decode(reader, reader.uint32());
|
|
1658
|
-
continue;
|
|
1659
|
-
}
|
|
1660
|
-
}
|
|
1661
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1662
|
-
break;
|
|
1663
|
-
}
|
|
1664
|
-
reader.skip(tag & 7);
|
|
1665
|
-
}
|
|
1666
|
-
return message;
|
|
1667
|
-
},
|
|
1668
|
-
|
|
1669
|
-
fromJSON(object: any): QuotaSnapshot {
|
|
1670
|
-
return { details: isSet(object.details) ? QuotaDetails.fromJSON(object.details) : undefined };
|
|
1671
|
-
},
|
|
1672
|
-
|
|
1673
|
-
toJSON(message: QuotaSnapshot): unknown {
|
|
1674
|
-
const obj: any = {};
|
|
1675
|
-
if (message.details !== undefined) {
|
|
1676
|
-
obj.details = QuotaDetails.toJSON(message.details);
|
|
1677
|
-
}
|
|
1678
|
-
return obj;
|
|
1679
|
-
},
|
|
1680
|
-
|
|
1681
|
-
create<I extends Exact<DeepPartial<QuotaSnapshot>, I>>(base?: I): QuotaSnapshot {
|
|
1682
|
-
return QuotaSnapshot.fromPartial(base ?? ({} as any));
|
|
1683
|
-
},
|
|
1684
|
-
fromPartial<I extends Exact<DeepPartial<QuotaSnapshot>, I>>(object: I): QuotaSnapshot {
|
|
1685
|
-
const message = createBaseQuotaSnapshot();
|
|
1686
|
-
message.details = (object.details !== undefined && object.details !== null)
|
|
1687
|
-
? QuotaDetails.fromPartial(object.details)
|
|
1688
|
-
: undefined;
|
|
1689
|
-
return message;
|
|
1690
|
-
},
|
|
1691
|
-
};
|
|
1692
|
-
|
|
1693
|
-
function createBaseQuotaUpdate(): QuotaUpdate {
|
|
1694
|
-
return { details: undefined };
|
|
1695
|
-
}
|
|
1696
|
-
|
|
1697
|
-
export const QuotaUpdate: MessageFns<QuotaUpdate> = {
|
|
1698
|
-
encode(message: QuotaUpdate, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1699
|
-
if (message.details !== undefined) {
|
|
1700
|
-
QuotaDetails.encode(message.details, writer.uint32(10).fork()).join();
|
|
1701
|
-
}
|
|
1702
|
-
return writer;
|
|
1703
|
-
},
|
|
1704
|
-
|
|
1705
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QuotaUpdate {
|
|
1706
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1707
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1708
|
-
const message = createBaseQuotaUpdate();
|
|
1709
|
-
while (reader.pos < end) {
|
|
1710
|
-
const tag = reader.uint32();
|
|
1711
|
-
switch (tag >>> 3) {
|
|
1712
|
-
case 1: {
|
|
1713
|
-
if (tag !== 10) {
|
|
1714
|
-
break;
|
|
1715
|
-
}
|
|
1716
|
-
|
|
1717
|
-
message.details = QuotaDetails.decode(reader, reader.uint32());
|
|
1718
|
-
continue;
|
|
1719
|
-
}
|
|
1720
|
-
}
|
|
1721
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1722
|
-
break;
|
|
1723
|
-
}
|
|
1724
|
-
reader.skip(tag & 7);
|
|
1725
|
-
}
|
|
1726
|
-
return message;
|
|
1727
|
-
},
|
|
1728
|
-
|
|
1729
|
-
fromJSON(object: any): QuotaUpdate {
|
|
1730
|
-
return { details: isSet(object.details) ? QuotaDetails.fromJSON(object.details) : undefined };
|
|
1731
|
-
},
|
|
1732
|
-
|
|
1733
|
-
toJSON(message: QuotaUpdate): unknown {
|
|
1734
|
-
const obj: any = {};
|
|
1735
|
-
if (message.details !== undefined) {
|
|
1736
|
-
obj.details = QuotaDetails.toJSON(message.details);
|
|
1737
|
-
}
|
|
1738
|
-
return obj;
|
|
1739
|
-
},
|
|
1740
|
-
|
|
1741
|
-
create<I extends Exact<DeepPartial<QuotaUpdate>, I>>(base?: I): QuotaUpdate {
|
|
1742
|
-
return QuotaUpdate.fromPartial(base ?? ({} as any));
|
|
1743
|
-
},
|
|
1744
|
-
fromPartial<I extends Exact<DeepPartial<QuotaUpdate>, I>>(object: I): QuotaUpdate {
|
|
1745
|
-
const message = createBaseQuotaUpdate();
|
|
1746
|
-
message.details = (object.details !== undefined && object.details !== null)
|
|
1747
|
-
? QuotaDetails.fromPartial(object.details)
|
|
1748
|
-
: undefined;
|
|
1749
|
-
return message;
|
|
1750
|
-
},
|
|
1751
|
-
};
|
|
1752
|
-
|
|
1753
|
-
function createBaseQuotaDetails(): QuotaDetails {
|
|
1754
|
-
return {
|
|
1755
|
-
traceCount: 0,
|
|
1756
|
-
traceSoftLimit: 0,
|
|
1757
|
-
softBreachedAt: undefined,
|
|
1758
|
-
traceHardLimit: 0,
|
|
1759
|
-
hardBreachedAt: undefined,
|
|
1760
|
-
automationRuleMatchCount: 0,
|
|
1761
|
-
automationRuleMatchLimit: 0,
|
|
1762
|
-
automationRuleMatchBreachedAt: undefined,
|
|
1763
|
-
};
|
|
1764
|
-
}
|
|
1765
|
-
|
|
1766
|
-
export const QuotaDetails: MessageFns<QuotaDetails> = {
|
|
1767
|
-
encode(message: QuotaDetails, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1768
|
-
if (message.traceCount !== 0) {
|
|
1769
|
-
writer.uint32(8).int64(message.traceCount);
|
|
1770
|
-
}
|
|
1771
|
-
if (message.traceSoftLimit !== 0) {
|
|
1772
|
-
writer.uint32(16).int64(message.traceSoftLimit);
|
|
1773
|
-
}
|
|
1774
|
-
if (message.softBreachedAt !== undefined) {
|
|
1775
|
-
Timestamp.encode(toTimestamp(message.softBreachedAt), writer.uint32(26).fork()).join();
|
|
1776
|
-
}
|
|
1777
|
-
if (message.traceHardLimit !== 0) {
|
|
1778
|
-
writer.uint32(32).int64(message.traceHardLimit);
|
|
1779
|
-
}
|
|
1780
|
-
if (message.hardBreachedAt !== undefined) {
|
|
1781
|
-
Timestamp.encode(toTimestamp(message.hardBreachedAt), writer.uint32(42).fork()).join();
|
|
1782
|
-
}
|
|
1783
|
-
if (message.automationRuleMatchCount !== 0) {
|
|
1784
|
-
writer.uint32(48).int64(message.automationRuleMatchCount);
|
|
1785
|
-
}
|
|
1786
|
-
if (message.automationRuleMatchLimit !== 0) {
|
|
1787
|
-
writer.uint32(56).int64(message.automationRuleMatchLimit);
|
|
1788
|
-
}
|
|
1789
|
-
if (message.automationRuleMatchBreachedAt !== undefined) {
|
|
1790
|
-
Timestamp.encode(toTimestamp(message.automationRuleMatchBreachedAt), writer.uint32(66).fork()).join();
|
|
1791
|
-
}
|
|
1792
|
-
return writer;
|
|
1793
|
-
},
|
|
1794
|
-
|
|
1795
|
-
decode(input: BinaryReader | Uint8Array, length?: number): QuotaDetails {
|
|
1796
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1797
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1798
|
-
const message = createBaseQuotaDetails();
|
|
1799
|
-
while (reader.pos < end) {
|
|
1800
|
-
const tag = reader.uint32();
|
|
1801
|
-
switch (tag >>> 3) {
|
|
1802
|
-
case 1: {
|
|
1803
|
-
if (tag !== 8) {
|
|
1804
|
-
break;
|
|
1805
|
-
}
|
|
1806
|
-
|
|
1807
|
-
message.traceCount = longToNumber(reader.int64());
|
|
1808
|
-
continue;
|
|
1809
|
-
}
|
|
1810
|
-
case 2: {
|
|
1811
|
-
if (tag !== 16) {
|
|
1812
|
-
break;
|
|
1813
|
-
}
|
|
1814
|
-
|
|
1815
|
-
message.traceSoftLimit = longToNumber(reader.int64());
|
|
1816
|
-
continue;
|
|
1817
|
-
}
|
|
1818
|
-
case 3: {
|
|
1819
|
-
if (tag !== 26) {
|
|
1820
|
-
break;
|
|
1821
|
-
}
|
|
1822
|
-
|
|
1823
|
-
message.softBreachedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
1824
|
-
continue;
|
|
1825
|
-
}
|
|
1826
|
-
case 4: {
|
|
1827
|
-
if (tag !== 32) {
|
|
1828
|
-
break;
|
|
1829
|
-
}
|
|
1830
|
-
|
|
1831
|
-
message.traceHardLimit = longToNumber(reader.int64());
|
|
1832
|
-
continue;
|
|
1833
|
-
}
|
|
1834
|
-
case 5: {
|
|
1835
|
-
if (tag !== 42) {
|
|
1836
|
-
break;
|
|
1837
|
-
}
|
|
1838
|
-
|
|
1839
|
-
message.hardBreachedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
1840
|
-
continue;
|
|
1841
|
-
}
|
|
1842
|
-
case 6: {
|
|
1843
|
-
if (tag !== 48) {
|
|
1844
|
-
break;
|
|
1845
|
-
}
|
|
1846
|
-
|
|
1847
|
-
message.automationRuleMatchCount = longToNumber(reader.int64());
|
|
1848
|
-
continue;
|
|
1849
|
-
}
|
|
1850
|
-
case 7: {
|
|
1851
|
-
if (tag !== 56) {
|
|
1852
|
-
break;
|
|
1853
|
-
}
|
|
1854
|
-
|
|
1855
|
-
message.automationRuleMatchLimit = longToNumber(reader.int64());
|
|
1856
|
-
continue;
|
|
1857
|
-
}
|
|
1858
|
-
case 8: {
|
|
1859
|
-
if (tag !== 66) {
|
|
1860
|
-
break;
|
|
1861
|
-
}
|
|
1862
|
-
|
|
1863
|
-
message.automationRuleMatchBreachedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
1864
|
-
continue;
|
|
1865
|
-
}
|
|
1866
|
-
}
|
|
1867
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1868
|
-
break;
|
|
1869
|
-
}
|
|
1870
|
-
reader.skip(tag & 7);
|
|
1871
|
-
}
|
|
1872
|
-
return message;
|
|
1873
|
-
},
|
|
1874
|
-
|
|
1875
|
-
fromJSON(object: any): QuotaDetails {
|
|
1876
|
-
return {
|
|
1877
|
-
traceCount: isSet(object.traceCount)
|
|
1878
|
-
? globalThis.Number(object.traceCount)
|
|
1879
|
-
: isSet(object.trace_count)
|
|
1880
|
-
? globalThis.Number(object.trace_count)
|
|
1881
|
-
: 0,
|
|
1882
|
-
traceSoftLimit: isSet(object.traceSoftLimit)
|
|
1883
|
-
? globalThis.Number(object.traceSoftLimit)
|
|
1884
|
-
: isSet(object.trace_soft_limit)
|
|
1885
|
-
? globalThis.Number(object.trace_soft_limit)
|
|
1886
|
-
: 0,
|
|
1887
|
-
softBreachedAt: isSet(object.softBreachedAt)
|
|
1888
|
-
? fromJsonTimestamp(object.softBreachedAt)
|
|
1889
|
-
: isSet(object.soft_breached_at)
|
|
1890
|
-
? fromJsonTimestamp(object.soft_breached_at)
|
|
1891
|
-
: undefined,
|
|
1892
|
-
traceHardLimit: isSet(object.traceHardLimit)
|
|
1893
|
-
? globalThis.Number(object.traceHardLimit)
|
|
1894
|
-
: isSet(object.trace_hard_limit)
|
|
1895
|
-
? globalThis.Number(object.trace_hard_limit)
|
|
1896
|
-
: 0,
|
|
1897
|
-
hardBreachedAt: isSet(object.hardBreachedAt)
|
|
1898
|
-
? fromJsonTimestamp(object.hardBreachedAt)
|
|
1899
|
-
: isSet(object.hard_breached_at)
|
|
1900
|
-
? fromJsonTimestamp(object.hard_breached_at)
|
|
1901
|
-
: undefined,
|
|
1902
|
-
automationRuleMatchCount: isSet(object.automationRuleMatchCount)
|
|
1903
|
-
? globalThis.Number(object.automationRuleMatchCount)
|
|
1904
|
-
: isSet(object.automation_rule_match_count)
|
|
1905
|
-
? globalThis.Number(object.automation_rule_match_count)
|
|
1906
|
-
: 0,
|
|
1907
|
-
automationRuleMatchLimit: isSet(object.automationRuleMatchLimit)
|
|
1908
|
-
? globalThis.Number(object.automationRuleMatchLimit)
|
|
1909
|
-
: isSet(object.automation_rule_match_limit)
|
|
1910
|
-
? globalThis.Number(object.automation_rule_match_limit)
|
|
1911
|
-
: 0,
|
|
1912
|
-
automationRuleMatchBreachedAt: isSet(object.automationRuleMatchBreachedAt)
|
|
1913
|
-
? fromJsonTimestamp(object.automationRuleMatchBreachedAt)
|
|
1914
|
-
: isSet(object.automation_rule_match_breached_at)
|
|
1915
|
-
? fromJsonTimestamp(object.automation_rule_match_breached_at)
|
|
1916
|
-
: undefined,
|
|
1917
|
-
};
|
|
1918
|
-
},
|
|
1919
|
-
|
|
1920
|
-
toJSON(message: QuotaDetails): unknown {
|
|
1921
|
-
const obj: any = {};
|
|
1922
|
-
if (message.traceCount !== 0) {
|
|
1923
|
-
obj.traceCount = Math.round(message.traceCount);
|
|
1924
|
-
}
|
|
1925
|
-
if (message.traceSoftLimit !== 0) {
|
|
1926
|
-
obj.traceSoftLimit = Math.round(message.traceSoftLimit);
|
|
1927
|
-
}
|
|
1928
|
-
if (message.softBreachedAt !== undefined) {
|
|
1929
|
-
obj.softBreachedAt = message.softBreachedAt.toISOString();
|
|
1930
|
-
}
|
|
1931
|
-
if (message.traceHardLimit !== 0) {
|
|
1932
|
-
obj.traceHardLimit = Math.round(message.traceHardLimit);
|
|
1933
|
-
}
|
|
1934
|
-
if (message.hardBreachedAt !== undefined) {
|
|
1935
|
-
obj.hardBreachedAt = message.hardBreachedAt.toISOString();
|
|
1936
|
-
}
|
|
1937
|
-
if (message.automationRuleMatchCount !== 0) {
|
|
1938
|
-
obj.automationRuleMatchCount = Math.round(message.automationRuleMatchCount);
|
|
1939
|
-
}
|
|
1940
|
-
if (message.automationRuleMatchLimit !== 0) {
|
|
1941
|
-
obj.automationRuleMatchLimit = Math.round(message.automationRuleMatchLimit);
|
|
1942
|
-
}
|
|
1943
|
-
if (message.automationRuleMatchBreachedAt !== undefined) {
|
|
1944
|
-
obj.automationRuleMatchBreachedAt = message.automationRuleMatchBreachedAt.toISOString();
|
|
1945
|
-
}
|
|
1946
|
-
return obj;
|
|
1947
|
-
},
|
|
1948
|
-
|
|
1949
|
-
create<I extends Exact<DeepPartial<QuotaDetails>, I>>(base?: I): QuotaDetails {
|
|
1950
|
-
return QuotaDetails.fromPartial(base ?? ({} as any));
|
|
1951
|
-
},
|
|
1952
|
-
fromPartial<I extends Exact<DeepPartial<QuotaDetails>, I>>(object: I): QuotaDetails {
|
|
1953
|
-
const message = createBaseQuotaDetails();
|
|
1954
|
-
message.traceCount = object.traceCount ?? 0;
|
|
1955
|
-
message.traceSoftLimit = object.traceSoftLimit ?? 0;
|
|
1956
|
-
message.softBreachedAt = object.softBreachedAt ?? undefined;
|
|
1957
|
-
message.traceHardLimit = object.traceHardLimit ?? 0;
|
|
1958
|
-
message.hardBreachedAt = object.hardBreachedAt ?? undefined;
|
|
1959
|
-
message.automationRuleMatchCount = object.automationRuleMatchCount ?? 0;
|
|
1960
|
-
message.automationRuleMatchLimit = object.automationRuleMatchLimit ?? 0;
|
|
1961
|
-
message.automationRuleMatchBreachedAt = object.automationRuleMatchBreachedAt ?? undefined;
|
|
1962
|
-
return message;
|
|
1963
|
-
},
|
|
1964
|
-
};
|
|
1965
|
-
|
|
1966
1331
|
function createBaseListAvailablePlansRequest(): ListAvailablePlansRequest {
|
|
1967
1332
|
return {};
|
|
1968
1333
|
}
|
|
@@ -2085,18 +1450,7 @@ export const ListAvailablePlansResponse: MessageFns<ListAvailablePlansResponse>
|
|
|
2085
1450
|
};
|
|
2086
1451
|
|
|
2087
1452
|
function createBasePlanDetails(): PlanDetails {
|
|
2088
|
-
return {
|
|
2089
|
-
tier: 0,
|
|
2090
|
-
name: "",
|
|
2091
|
-
description: "",
|
|
2092
|
-
displayPrice: "",
|
|
2093
|
-
traceSoftLimit: 0,
|
|
2094
|
-
traceHardLimit: 0,
|
|
2095
|
-
automationRuleLimit: 0,
|
|
2096
|
-
automationRuleMatchLimit: 0,
|
|
2097
|
-
selfServe: false,
|
|
2098
|
-
projectLimit: 0,
|
|
2099
|
-
};
|
|
1453
|
+
return { tier: 0, name: "", description: "", displayPrice: "", selfServe: false };
|
|
2100
1454
|
}
|
|
2101
1455
|
|
|
2102
1456
|
export const PlanDetails: MessageFns<PlanDetails> = {
|
|
@@ -2113,23 +1467,8 @@ export const PlanDetails: MessageFns<PlanDetails> = {
|
|
|
2113
1467
|
if (message.displayPrice !== "") {
|
|
2114
1468
|
writer.uint32(34).string(message.displayPrice);
|
|
2115
1469
|
}
|
|
2116
|
-
if (message.traceSoftLimit !== 0) {
|
|
2117
|
-
writer.uint32(40).int64(message.traceSoftLimit);
|
|
2118
|
-
}
|
|
2119
|
-
if (message.traceHardLimit !== 0) {
|
|
2120
|
-
writer.uint32(48).int64(message.traceHardLimit);
|
|
2121
|
-
}
|
|
2122
|
-
if (message.automationRuleLimit !== 0) {
|
|
2123
|
-
writer.uint32(56).int64(message.automationRuleLimit);
|
|
2124
|
-
}
|
|
2125
|
-
if (message.automationRuleMatchLimit !== 0) {
|
|
2126
|
-
writer.uint32(64).int64(message.automationRuleMatchLimit);
|
|
2127
|
-
}
|
|
2128
1470
|
if (message.selfServe !== false) {
|
|
2129
|
-
writer.uint32(
|
|
2130
|
-
}
|
|
2131
|
-
if (message.projectLimit !== 0) {
|
|
2132
|
-
writer.uint32(80).int64(message.projectLimit);
|
|
1471
|
+
writer.uint32(40).bool(message.selfServe);
|
|
2133
1472
|
}
|
|
2134
1473
|
return writer;
|
|
2135
1474
|
},
|
|
@@ -2178,49 +1517,9 @@ export const PlanDetails: MessageFns<PlanDetails> = {
|
|
|
2178
1517
|
break;
|
|
2179
1518
|
}
|
|
2180
1519
|
|
|
2181
|
-
message.traceSoftLimit = longToNumber(reader.int64());
|
|
2182
|
-
continue;
|
|
2183
|
-
}
|
|
2184
|
-
case 6: {
|
|
2185
|
-
if (tag !== 48) {
|
|
2186
|
-
break;
|
|
2187
|
-
}
|
|
2188
|
-
|
|
2189
|
-
message.traceHardLimit = longToNumber(reader.int64());
|
|
2190
|
-
continue;
|
|
2191
|
-
}
|
|
2192
|
-
case 7: {
|
|
2193
|
-
if (tag !== 56) {
|
|
2194
|
-
break;
|
|
2195
|
-
}
|
|
2196
|
-
|
|
2197
|
-
message.automationRuleLimit = longToNumber(reader.int64());
|
|
2198
|
-
continue;
|
|
2199
|
-
}
|
|
2200
|
-
case 8: {
|
|
2201
|
-
if (tag !== 64) {
|
|
2202
|
-
break;
|
|
2203
|
-
}
|
|
2204
|
-
|
|
2205
|
-
message.automationRuleMatchLimit = longToNumber(reader.int64());
|
|
2206
|
-
continue;
|
|
2207
|
-
}
|
|
2208
|
-
case 9: {
|
|
2209
|
-
if (tag !== 72) {
|
|
2210
|
-
break;
|
|
2211
|
-
}
|
|
2212
|
-
|
|
2213
1520
|
message.selfServe = reader.bool();
|
|
2214
1521
|
continue;
|
|
2215
1522
|
}
|
|
2216
|
-
case 10: {
|
|
2217
|
-
if (tag !== 80) {
|
|
2218
|
-
break;
|
|
2219
|
-
}
|
|
2220
|
-
|
|
2221
|
-
message.projectLimit = longToNumber(reader.int64());
|
|
2222
|
-
continue;
|
|
2223
|
-
}
|
|
2224
1523
|
}
|
|
2225
1524
|
if ((tag & 7) === 4 || tag === 0) {
|
|
2226
1525
|
break;
|
|
@@ -2240,36 +1539,11 @@ export const PlanDetails: MessageFns<PlanDetails> = {
|
|
|
2240
1539
|
: isSet(object.display_price)
|
|
2241
1540
|
? globalThis.String(object.display_price)
|
|
2242
1541
|
: "",
|
|
2243
|
-
traceSoftLimit: isSet(object.traceSoftLimit)
|
|
2244
|
-
? globalThis.Number(object.traceSoftLimit)
|
|
2245
|
-
: isSet(object.trace_soft_limit)
|
|
2246
|
-
? globalThis.Number(object.trace_soft_limit)
|
|
2247
|
-
: 0,
|
|
2248
|
-
traceHardLimit: isSet(object.traceHardLimit)
|
|
2249
|
-
? globalThis.Number(object.traceHardLimit)
|
|
2250
|
-
: isSet(object.trace_hard_limit)
|
|
2251
|
-
? globalThis.Number(object.trace_hard_limit)
|
|
2252
|
-
: 0,
|
|
2253
|
-
automationRuleLimit: isSet(object.automationRuleLimit)
|
|
2254
|
-
? globalThis.Number(object.automationRuleLimit)
|
|
2255
|
-
: isSet(object.automation_rule_limit)
|
|
2256
|
-
? globalThis.Number(object.automation_rule_limit)
|
|
2257
|
-
: 0,
|
|
2258
|
-
automationRuleMatchLimit: isSet(object.automationRuleMatchLimit)
|
|
2259
|
-
? globalThis.Number(object.automationRuleMatchLimit)
|
|
2260
|
-
: isSet(object.automation_rule_match_limit)
|
|
2261
|
-
? globalThis.Number(object.automation_rule_match_limit)
|
|
2262
|
-
: 0,
|
|
2263
1542
|
selfServe: isSet(object.selfServe)
|
|
2264
1543
|
? globalThis.Boolean(object.selfServe)
|
|
2265
1544
|
: isSet(object.self_serve)
|
|
2266
1545
|
? globalThis.Boolean(object.self_serve)
|
|
2267
1546
|
: false,
|
|
2268
|
-
projectLimit: isSet(object.projectLimit)
|
|
2269
|
-
? globalThis.Number(object.projectLimit)
|
|
2270
|
-
: isSet(object.project_limit)
|
|
2271
|
-
? globalThis.Number(object.project_limit)
|
|
2272
|
-
: 0,
|
|
2273
1547
|
};
|
|
2274
1548
|
},
|
|
2275
1549
|
|
|
@@ -2287,24 +1561,9 @@ export const PlanDetails: MessageFns<PlanDetails> = {
|
|
|
2287
1561
|
if (message.displayPrice !== "") {
|
|
2288
1562
|
obj.displayPrice = message.displayPrice;
|
|
2289
1563
|
}
|
|
2290
|
-
if (message.traceSoftLimit !== 0) {
|
|
2291
|
-
obj.traceSoftLimit = Math.round(message.traceSoftLimit);
|
|
2292
|
-
}
|
|
2293
|
-
if (message.traceHardLimit !== 0) {
|
|
2294
|
-
obj.traceHardLimit = Math.round(message.traceHardLimit);
|
|
2295
|
-
}
|
|
2296
|
-
if (message.automationRuleLimit !== 0) {
|
|
2297
|
-
obj.automationRuleLimit = Math.round(message.automationRuleLimit);
|
|
2298
|
-
}
|
|
2299
|
-
if (message.automationRuleMatchLimit !== 0) {
|
|
2300
|
-
obj.automationRuleMatchLimit = Math.round(message.automationRuleMatchLimit);
|
|
2301
|
-
}
|
|
2302
1564
|
if (message.selfServe !== false) {
|
|
2303
1565
|
obj.selfServe = message.selfServe;
|
|
2304
1566
|
}
|
|
2305
|
-
if (message.projectLimit !== 0) {
|
|
2306
|
-
obj.projectLimit = Math.round(message.projectLimit);
|
|
2307
|
-
}
|
|
2308
1567
|
return obj;
|
|
2309
1568
|
},
|
|
2310
1569
|
|
|
@@ -2317,17 +1576,12 @@ export const PlanDetails: MessageFns<PlanDetails> = {
|
|
|
2317
1576
|
message.name = object.name ?? "";
|
|
2318
1577
|
message.description = object.description ?? "";
|
|
2319
1578
|
message.displayPrice = object.displayPrice ?? "";
|
|
2320
|
-
message.traceSoftLimit = object.traceSoftLimit ?? 0;
|
|
2321
|
-
message.traceHardLimit = object.traceHardLimit ?? 0;
|
|
2322
|
-
message.automationRuleLimit = object.automationRuleLimit ?? 0;
|
|
2323
|
-
message.automationRuleMatchLimit = object.automationRuleMatchLimit ?? 0;
|
|
2324
1579
|
message.selfServe = object.selfServe ?? false;
|
|
2325
|
-
message.projectLimit = object.projectLimit ?? 0;
|
|
2326
1580
|
return message;
|
|
2327
1581
|
},
|
|
2328
1582
|
};
|
|
2329
1583
|
|
|
2330
|
-
/** PlanGatewayService provides plan
|
|
1584
|
+
/** PlanGatewayService provides plan information for the billing UI. */
|
|
2331
1585
|
export interface PlanGatewayService {
|
|
2332
1586
|
/** GetPlan returns the current plan and payment info for an organization. */
|
|
2333
1587
|
GetPlan(request: GetPlanRequest, metadata?: Metadata): Promise<GetPlanResponse>;
|
|
@@ -2336,11 +1590,9 @@ export interface PlanGatewayService {
|
|
|
2336
1590
|
* First message is always a snapshot of the current plan state.
|
|
2337
1591
|
*/
|
|
2338
1592
|
StreamPlanUpdates(request: StreamPlanUpdatesRequest, metadata?: Metadata): Observable<PlanUpdateEnvelope>;
|
|
2339
|
-
/** StreamQuotaUpdates streams quota usage events filtered by organization. */
|
|
2340
|
-
StreamQuotaUpdates(request: StreamQuotaUpdatesRequest, metadata?: Metadata): Observable<QuotaUpdateEnvelope>;
|
|
2341
1593
|
/**
|
|
2342
|
-
* ListAvailablePlans returns the catalog of self-serve plan tiers
|
|
2343
|
-
*
|
|
1594
|
+
* ListAvailablePlans returns the catalog of self-serve plan tiers.
|
|
1595
|
+
* Unauthenticated — safe for public consumption.
|
|
2344
1596
|
*/
|
|
2345
1597
|
ListAvailablePlans(request: ListAvailablePlansRequest, metadata?: Metadata): Promise<ListAvailablePlansResponse>;
|
|
2346
1598
|
}
|
|
@@ -2354,7 +1606,6 @@ export class PlanGatewayServiceClientImpl implements PlanGatewayService {
|
|
|
2354
1606
|
this.rpc = rpc;
|
|
2355
1607
|
this.GetPlan = this.GetPlan.bind(this);
|
|
2356
1608
|
this.StreamPlanUpdates = this.StreamPlanUpdates.bind(this);
|
|
2357
|
-
this.StreamQuotaUpdates = this.StreamQuotaUpdates.bind(this);
|
|
2358
1609
|
this.ListAvailablePlans = this.ListAvailablePlans.bind(this);
|
|
2359
1610
|
}
|
|
2360
1611
|
GetPlan(request: GetPlanRequest, metadata?: Metadata): Promise<GetPlanResponse> {
|
|
@@ -2369,12 +1620,6 @@ export class PlanGatewayServiceClientImpl implements PlanGatewayService {
|
|
|
2369
1620
|
return result.pipe(map((data) => PlanUpdateEnvelope.decode(new BinaryReader(data))));
|
|
2370
1621
|
}
|
|
2371
1622
|
|
|
2372
|
-
StreamQuotaUpdates(request: StreamQuotaUpdatesRequest, metadata?: Metadata): Observable<QuotaUpdateEnvelope> {
|
|
2373
|
-
const data = StreamQuotaUpdatesRequest.encode(request).finish();
|
|
2374
|
-
const result = this.rpc.serverStreamingRequest(this.service, "StreamQuotaUpdates", data, metadata);
|
|
2375
|
-
return result.pipe(map((data) => QuotaUpdateEnvelope.decode(new BinaryReader(data))));
|
|
2376
|
-
}
|
|
2377
|
-
|
|
2378
1623
|
ListAvailablePlans(request: ListAvailablePlansRequest, metadata?: Metadata): Promise<ListAvailablePlansResponse> {
|
|
2379
1624
|
const data = ListAvailablePlansRequest.encode(request).finish();
|
|
2380
1625
|
const promise = this.rpc.request(this.service, "ListAvailablePlans", data, metadata);
|
|
@@ -2438,17 +1683,6 @@ function fromJsonTimestamp(o: any): Date {
|
|
|
2438
1683
|
}
|
|
2439
1684
|
}
|
|
2440
1685
|
|
|
2441
|
-
function longToNumber(int64: { toString(): string }): number {
|
|
2442
|
-
const num = globalThis.Number(int64.toString());
|
|
2443
|
-
if (num > globalThis.Number.MAX_SAFE_INTEGER) {
|
|
2444
|
-
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
2445
|
-
}
|
|
2446
|
-
if (num < globalThis.Number.MIN_SAFE_INTEGER) {
|
|
2447
|
-
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
2448
|
-
}
|
|
2449
|
-
return num;
|
|
2450
|
-
}
|
|
2451
|
-
|
|
2452
1686
|
function isSet(value: any): boolean {
|
|
2453
1687
|
return value !== null && value !== undefined;
|
|
2454
1688
|
}
|