@miradorlabs/web-grpc 1.0.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.
Files changed (33) hide show
  1. package/README.md +5 -0
  2. package/google/protobuf/timestamp.ts +229 -0
  3. package/package.json +11 -0
  4. package/proto/gateway/common/v1/status.ts +179 -0
  5. package/proto/gateway/common/v1/status_grpc_pb.js +1 -0
  6. package/proto/gateway/common/v1/status_pb.js +237 -0
  7. package/proto/gateway/common/v1/types.ts +176 -0
  8. package/proto/gateway/common/v1/types_grpc_pb.js +1 -0
  9. package/proto/gateway/common/v1/types_pb.js +216 -0
  10. package/proto/gateway/web/v1/account_gateway.ts +7037 -0
  11. package/proto/gateway/web/v1/account_gateway_grpc_pb.js +813 -0
  12. package/proto/gateway/web/v1/account_gateway_pb.js +14338 -0
  13. package/proto/gateway/web/v1/automation_gateway.ts +5605 -0
  14. package/proto/gateway/web/v1/automation_gateway_grpc_pb.js +485 -0
  15. package/proto/gateway/web/v1/automation_gateway_pb.js +11618 -0
  16. package/proto/gateway/web/v1/chain_gateway.ts +3805 -0
  17. package/proto/gateway/web/v1/chain_gateway_grpc_pb.js +115 -0
  18. package/proto/gateway/web/v1/chain_gateway_pb.js +7049 -0
  19. package/proto/gateway/web/v1/market_gateway.ts +492 -0
  20. package/proto/gateway/web/v1/market_gateway_grpc_pb.js +45 -0
  21. package/proto/gateway/web/v1/market_gateway_pb.js +1063 -0
  22. package/proto/gateway/web/v1/oauth_gateway.ts +1163 -0
  23. package/proto/gateway/web/v1/oauth_gateway_grpc_pb.js +150 -0
  24. package/proto/gateway/web/v1/oauth_gateway_pb.js +2316 -0
  25. package/proto/gateway/web/v1/plan_gateway.ts +2463 -0
  26. package/proto/gateway/web/v1/plan_gateway_grpc_pb.js +152 -0
  27. package/proto/gateway/web/v1/plan_gateway_pb.js +4840 -0
  28. package/proto/gateway/web/v1/stream_gateway.ts +2354 -0
  29. package/proto/gateway/web/v1/stream_gateway_grpc_pb.js +145 -0
  30. package/proto/gateway/web/v1/stream_gateway_pb.js +4593 -0
  31. package/proto/gateway/web/v1/trace_gateway.ts +16320 -0
  32. package/proto/gateway/web/v1/trace_gateway_grpc_pb.js +280 -0
  33. package/proto/gateway/web/v1/trace_gateway_pb.js +28667 -0
@@ -0,0 +1,152 @@
1
+ // GENERATED CODE -- DO NOT EDIT!
2
+
3
+ 'use strict';
4
+ var grpc = require('@grpc/grpc-js');
5
+ var proto_gateway_web_v1_plan_gateway_pb = require('../../../../proto/gateway/web/v1/plan_gateway_pb.js');
6
+ var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
7
+ var proto_gateway_common_v1_status_pb = require('../../../../proto/gateway/common/v1/status_pb.js');
8
+
9
+ function serialize_gateway_web_v1_GetPlanRequest(arg) {
10
+ if (!(arg instanceof proto_gateway_web_v1_plan_gateway_pb.GetPlanRequest)) {
11
+ throw new Error('Expected argument of type gateway.web.v1.GetPlanRequest');
12
+ }
13
+ return Buffer.from(arg.serializeBinary());
14
+ }
15
+
16
+ function deserialize_gateway_web_v1_GetPlanRequest(buffer_arg) {
17
+ return proto_gateway_web_v1_plan_gateway_pb.GetPlanRequest.deserializeBinary(new Uint8Array(buffer_arg));
18
+ }
19
+
20
+ function serialize_gateway_web_v1_GetPlanResponse(arg) {
21
+ if (!(arg instanceof proto_gateway_web_v1_plan_gateway_pb.GetPlanResponse)) {
22
+ throw new Error('Expected argument of type gateway.web.v1.GetPlanResponse');
23
+ }
24
+ return Buffer.from(arg.serializeBinary());
25
+ }
26
+
27
+ function deserialize_gateway_web_v1_GetPlanResponse(buffer_arg) {
28
+ return proto_gateway_web_v1_plan_gateway_pb.GetPlanResponse.deserializeBinary(new Uint8Array(buffer_arg));
29
+ }
30
+
31
+ function serialize_gateway_web_v1_ListAvailablePlansRequest(arg) {
32
+ if (!(arg instanceof proto_gateway_web_v1_plan_gateway_pb.ListAvailablePlansRequest)) {
33
+ throw new Error('Expected argument of type gateway.web.v1.ListAvailablePlansRequest');
34
+ }
35
+ return Buffer.from(arg.serializeBinary());
36
+ }
37
+
38
+ function deserialize_gateway_web_v1_ListAvailablePlansRequest(buffer_arg) {
39
+ return proto_gateway_web_v1_plan_gateway_pb.ListAvailablePlansRequest.deserializeBinary(new Uint8Array(buffer_arg));
40
+ }
41
+
42
+ function serialize_gateway_web_v1_ListAvailablePlansResponse(arg) {
43
+ if (!(arg instanceof proto_gateway_web_v1_plan_gateway_pb.ListAvailablePlansResponse)) {
44
+ throw new Error('Expected argument of type gateway.web.v1.ListAvailablePlansResponse');
45
+ }
46
+ return Buffer.from(arg.serializeBinary());
47
+ }
48
+
49
+ function deserialize_gateway_web_v1_ListAvailablePlansResponse(buffer_arg) {
50
+ return proto_gateway_web_v1_plan_gateway_pb.ListAvailablePlansResponse.deserializeBinary(new Uint8Array(buffer_arg));
51
+ }
52
+
53
+ function serialize_gateway_web_v1_PlanUpdateEnvelope(arg) {
54
+ if (!(arg instanceof proto_gateway_web_v1_plan_gateway_pb.PlanUpdateEnvelope)) {
55
+ throw new Error('Expected argument of type gateway.web.v1.PlanUpdateEnvelope');
56
+ }
57
+ return Buffer.from(arg.serializeBinary());
58
+ }
59
+
60
+ function deserialize_gateway_web_v1_PlanUpdateEnvelope(buffer_arg) {
61
+ return proto_gateway_web_v1_plan_gateway_pb.PlanUpdateEnvelope.deserializeBinary(new Uint8Array(buffer_arg));
62
+ }
63
+
64
+ function serialize_gateway_web_v1_QuotaUpdateEnvelope(arg) {
65
+ if (!(arg instanceof proto_gateway_web_v1_plan_gateway_pb.QuotaUpdateEnvelope)) {
66
+ throw new Error('Expected argument of type gateway.web.v1.QuotaUpdateEnvelope');
67
+ }
68
+ return Buffer.from(arg.serializeBinary());
69
+ }
70
+
71
+ function deserialize_gateway_web_v1_QuotaUpdateEnvelope(buffer_arg) {
72
+ return proto_gateway_web_v1_plan_gateway_pb.QuotaUpdateEnvelope.deserializeBinary(new Uint8Array(buffer_arg));
73
+ }
74
+
75
+ function serialize_gateway_web_v1_StreamPlanUpdatesRequest(arg) {
76
+ if (!(arg instanceof proto_gateway_web_v1_plan_gateway_pb.StreamPlanUpdatesRequest)) {
77
+ throw new Error('Expected argument of type gateway.web.v1.StreamPlanUpdatesRequest');
78
+ }
79
+ return Buffer.from(arg.serializeBinary());
80
+ }
81
+
82
+ function deserialize_gateway_web_v1_StreamPlanUpdatesRequest(buffer_arg) {
83
+ return proto_gateway_web_v1_plan_gateway_pb.StreamPlanUpdatesRequest.deserializeBinary(new Uint8Array(buffer_arg));
84
+ }
85
+
86
+ function serialize_gateway_web_v1_StreamQuotaUpdatesRequest(arg) {
87
+ if (!(arg instanceof proto_gateway_web_v1_plan_gateway_pb.StreamQuotaUpdatesRequest)) {
88
+ throw new Error('Expected argument of type gateway.web.v1.StreamQuotaUpdatesRequest');
89
+ }
90
+ return Buffer.from(arg.serializeBinary());
91
+ }
92
+
93
+ function deserialize_gateway_web_v1_StreamQuotaUpdatesRequest(buffer_arg) {
94
+ return proto_gateway_web_v1_plan_gateway_pb.StreamQuotaUpdatesRequest.deserializeBinary(new Uint8Array(buffer_arg));
95
+ }
96
+
97
+
98
+ // PlanGatewayService provides plan and quota information for the billing UI.
99
+ var PlanGatewayServiceService = exports.PlanGatewayServiceService = {
100
+ // GetPlan returns the current plan and payment info for an organization.
101
+ getPlan: {
102
+ path: '/gateway.web.v1.PlanGatewayService/GetPlan',
103
+ requestStream: false,
104
+ responseStream: false,
105
+ requestType: proto_gateway_web_v1_plan_gateway_pb.GetPlanRequest,
106
+ responseType: proto_gateway_web_v1_plan_gateway_pb.GetPlanResponse,
107
+ requestSerialize: serialize_gateway_web_v1_GetPlanRequest,
108
+ requestDeserialize: deserialize_gateway_web_v1_GetPlanRequest,
109
+ responseSerialize: serialize_gateway_web_v1_GetPlanResponse,
110
+ responseDeserialize: deserialize_gateway_web_v1_GetPlanResponse,
111
+ },
112
+ // StreamPlanUpdates streams plan lifecycle events (created, updated, deactivated).
113
+ // First message is always a snapshot of the current plan state.
114
+ streamPlanUpdates: {
115
+ path: '/gateway.web.v1.PlanGatewayService/StreamPlanUpdates',
116
+ requestStream: false,
117
+ responseStream: true,
118
+ requestType: proto_gateway_web_v1_plan_gateway_pb.StreamPlanUpdatesRequest,
119
+ responseType: proto_gateway_web_v1_plan_gateway_pb.PlanUpdateEnvelope,
120
+ requestSerialize: serialize_gateway_web_v1_StreamPlanUpdatesRequest,
121
+ requestDeserialize: deserialize_gateway_web_v1_StreamPlanUpdatesRequest,
122
+ responseSerialize: serialize_gateway_web_v1_PlanUpdateEnvelope,
123
+ responseDeserialize: deserialize_gateway_web_v1_PlanUpdateEnvelope,
124
+ },
125
+ // StreamQuotaUpdates streams quota usage events filtered by organization.
126
+ streamQuotaUpdates: {
127
+ path: '/gateway.web.v1.PlanGatewayService/StreamQuotaUpdates',
128
+ requestStream: false,
129
+ responseStream: true,
130
+ requestType: proto_gateway_web_v1_plan_gateway_pb.StreamQuotaUpdatesRequest,
131
+ responseType: proto_gateway_web_v1_plan_gateway_pb.QuotaUpdateEnvelope,
132
+ requestSerialize: serialize_gateway_web_v1_StreamQuotaUpdatesRequest,
133
+ requestDeserialize: deserialize_gateway_web_v1_StreamQuotaUpdatesRequest,
134
+ responseSerialize: serialize_gateway_web_v1_QuotaUpdateEnvelope,
135
+ responseDeserialize: deserialize_gateway_web_v1_QuotaUpdateEnvelope,
136
+ },
137
+ // ListAvailablePlans returns the catalog of self-serve plan tiers and their
138
+ // per-period limits. Unauthenticated — safe for public consumption.
139
+ listAvailablePlans: {
140
+ path: '/gateway.web.v1.PlanGatewayService/ListAvailablePlans',
141
+ requestStream: false,
142
+ responseStream: false,
143
+ requestType: proto_gateway_web_v1_plan_gateway_pb.ListAvailablePlansRequest,
144
+ responseType: proto_gateway_web_v1_plan_gateway_pb.ListAvailablePlansResponse,
145
+ requestSerialize: serialize_gateway_web_v1_ListAvailablePlansRequest,
146
+ requestDeserialize: deserialize_gateway_web_v1_ListAvailablePlansRequest,
147
+ responseSerialize: serialize_gateway_web_v1_ListAvailablePlansResponse,
148
+ responseDeserialize: deserialize_gateway_web_v1_ListAvailablePlansResponse,
149
+ },
150
+ };
151
+
152
+ exports.PlanGatewayServiceClient = grpc.makeGenericClientConstructor(PlanGatewayServiceService, 'PlanGatewayService');