@raystack/proton 0.1.0-881c92a4cab2490e6c680462a94660b551b1040f → 0.1.0-8cb19702a3e47d173732860d58084b83d6941865

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 (96) hide show
  1. package/package.json +1 -1
  2. package/raystack/assets/index.ts +29 -29
  3. package/raystack/common/index.ts +1 -1
  4. package/raystack/compass/index.ts +1 -1
  5. package/raystack/entropy/index.ts +2 -2
  6. package/raystack/frontier/index.ts +3 -3
  7. package/raystack/guardian/index.ts +1 -1
  8. package/raystack/predator/index.ts +2 -2
  9. package/raystack/raccoon/index.ts +1 -1
  10. package/raystack/siren/index.ts +1 -1
  11. package/raystack/stencil/index.ts +1 -1
  12. package/google/api/field_behavior.ts +0 -95
  13. package/google/api/http.ts +0 -695
  14. package/google/api/httpbody.ts +0 -159
  15. package/google/protobuf/any.ts +0 -322
  16. package/google/protobuf/descriptor.ts +0 -3475
  17. package/google/protobuf/duration.ts +0 -231
  18. package/google/protobuf/struct.ts +0 -484
  19. package/google/protobuf/timestamp.ts +0 -290
  20. package/google/protobuf/wrappers.ts +0 -752
  21. package/protoc-gen-openapiv2/options/openapiv2.ts +0 -3110
  22. package/raystack/assets/v1beta1/bucket.ts +0 -362
  23. package/raystack/assets/v1beta1/dashboard.ts +0 -426
  24. package/raystack/assets/v1beta1/event.ts +0 -105
  25. package/raystack/assets/v1beta1/group.ts +0 -223
  26. package/raystack/assets/v1beta1/job.ts +0 -147
  27. package/raystack/assets/v1beta1/lineage.ts +0 -90
  28. package/raystack/assets/v1beta1/ownership.ts +0 -179
  29. package/raystack/assets/v1beta1/preview.ts +0 -87
  30. package/raystack/assets/v1beta1/properties.ts +0 -116
  31. package/raystack/assets/v1beta1/resource.ts +0 -149
  32. package/raystack/assets/v1beta1/schema.ts +0 -421
  33. package/raystack/assets/v1beta1/table.ts +0 -408
  34. package/raystack/assets/v1beta1/timestamp.ts +0 -158
  35. package/raystack/assets/v1beta1/topic.ts +0 -253
  36. package/raystack/assets/v1beta1/user.ts +0 -451
  37. package/raystack/assets/v1beta2/application.ts +0 -125
  38. package/raystack/assets/v1beta2/asset.ts +0 -269
  39. package/raystack/assets/v1beta2/bucket.ts +0 -341
  40. package/raystack/assets/v1beta2/common.ts +0 -392
  41. package/raystack/assets/v1beta2/dashboard.ts +0 -393
  42. package/raystack/assets/v1beta2/experiment.ts +0 -274
  43. package/raystack/assets/v1beta2/feature_table.ts +0 -387
  44. package/raystack/assets/v1beta2/group.ts +0 -178
  45. package/raystack/assets/v1beta2/job.ts +0 -99
  46. package/raystack/assets/v1beta2/metric.ts +0 -163
  47. package/raystack/assets/v1beta2/model.ts +0 -519
  48. package/raystack/assets/v1beta2/table.ts +0 -663
  49. package/raystack/assets/v1beta2/topic.ts +0 -275
  50. package/raystack/assets/v1beta2/user.ts +0 -433
  51. package/raystack/common/v1/service.client.ts +0 -37
  52. package/raystack/common/v1/service.ts +0 -245
  53. package/raystack/compass/v1beta1/service.client.ts +0 -594
  54. package/raystack/compass/v1beta1/service.ts +0 -8169
  55. package/raystack/entropy/v1beta1/module.client.ts +0 -89
  56. package/raystack/entropy/v1beta1/module.ts +0 -692
  57. package/raystack/entropy/v1beta1/resource.client.ts +0 -129
  58. package/raystack/entropy/v1beta1/resource.ts +0 -1817
  59. package/raystack/frontier/v1beta1/admin.client.ts +0 -866
  60. package/raystack/frontier/v1beta1/admin.ts +0 -9117
  61. package/raystack/frontier/v1beta1/frontier.client.ts +0 -2307
  62. package/raystack/frontier/v1beta1/frontier.ts +0 -23706
  63. package/raystack/frontier/v1beta1/models.ts +0 -7433
  64. package/raystack/guardian/v1beta1/guardian.client.ts +0 -552
  65. package/raystack/guardian/v1beta1/guardian.ts +0 -9688
  66. package/raystack/optimus/core/v1beta1/backup.client.ts +0 -63
  67. package/raystack/optimus/core/v1beta1/backup.ts +0 -708
  68. package/raystack/optimus/core/v1beta1/job_run.client.ts +0 -96
  69. package/raystack/optimus/core/v1beta1/job_run.ts +0 -1008
  70. package/raystack/optimus/core/v1beta1/job_spec.client.ts +0 -363
  71. package/raystack/optimus/core/v1beta1/job_spec.ts +0 -5134
  72. package/raystack/optimus/core/v1beta1/namespace.client.ts +0 -75
  73. package/raystack/optimus/core/v1beta1/namespace.ts +0 -477
  74. package/raystack/optimus/core/v1beta1/project.client.ts +0 -75
  75. package/raystack/optimus/core/v1beta1/project.ts +0 -520
  76. package/raystack/optimus/core/v1beta1/replay.client.ts +0 -76
  77. package/raystack/optimus/core/v1beta1/replay.ts +0 -881
  78. package/raystack/optimus/core/v1beta1/resource.client.ts +0 -148
  79. package/raystack/optimus/core/v1beta1/resource.ts +0 -1329
  80. package/raystack/optimus/core/v1beta1/runtime.client.ts +0 -45
  81. package/raystack/optimus/core/v1beta1/runtime.ts +0 -131
  82. package/raystack/optimus/core/v1beta1/secret.client.ts +0 -92
  83. package/raystack/optimus/core/v1beta1/secret.ts +0 -619
  84. package/raystack/optimus/core/v1beta1/status.ts +0 -113
  85. package/raystack/optimus/integration/v1beta1/event.ts +0 -531
  86. package/raystack/optimus/plugins/v1beta1/dependency_resolver.client.ts +0 -100
  87. package/raystack/optimus/plugins/v1beta1/dependency_resolver.ts +0 -950
  88. package/raystack/predator/v1beta1/metrics_log.ts +0 -457
  89. package/raystack/predator/v1beta1/result_log.ts +0 -390
  90. package/raystack/raccoon/v1beta1/raccoon.client.ts +0 -37
  91. package/raystack/raccoon/v1beta1/raccoon.ts +0 -442
  92. package/raystack/siren/v1beta1/siren.client.ts +0 -479
  93. package/raystack/siren/v1beta1/siren.ts +0 -6507
  94. package/raystack/stencil/v1beta1/stencil.client.ts +0 -232
  95. package/raystack/stencil/v1beta1/stencil.ts +0 -2716
  96. package/validate/validate.ts +0 -4130
@@ -1,393 +0,0 @@
1
- // @generated by protobuf-ts 2.11.1
2
- // @generated from protobuf file "raystack/assets/v1beta2/dashboard.proto" (package "raystack.assets.v1beta2", syntax proto3)
3
- // tslint:disable
4
- import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
5
- import type { IBinaryWriter } from "@protobuf-ts/runtime";
6
- import { WireType } from "@protobuf-ts/runtime";
7
- import type { BinaryReadOptions } from "@protobuf-ts/runtime";
8
- import type { IBinaryReader } from "@protobuf-ts/runtime";
9
- import { UnknownFieldHandler } from "@protobuf-ts/runtime";
10
- import type { PartialMessage } from "@protobuf-ts/runtime";
11
- import { reflectionMergePartial } from "@protobuf-ts/runtime";
12
- import { MessageType } from "@protobuf-ts/runtime";
13
- import { Event } from "./common";
14
- import { Lineage } from "./common";
15
- import { Owner } from "./common";
16
- import { Timestamp } from "../../../google/protobuf/timestamp";
17
- import { Struct } from "../../../google/protobuf/struct";
18
- /**
19
- * Dashboard is a resource that represents a dashboard.
20
- *
21
- * @generated from protobuf message raystack.assets.v1beta2.Dashboard
22
- */
23
- export interface Dashboard {
24
- /**
25
- * The list of the charts in the dashboard.
26
- * For an example, check the schema of the chart.
27
- *
28
- * @generated from protobuf field: repeated raystack.assets.v1beta2.Chart charts = 1
29
- */
30
- charts: Chart[];
31
- /**
32
- * List of attributes the model has.
33
- *
34
- * @generated from protobuf field: google.protobuf.Struct attributes = 8
35
- */
36
- attributes?: Struct;
37
- /**
38
- * The timestamp of the dashboard's creation.
39
- *
40
- * @generated from protobuf field: google.protobuf.Timestamp create_time = 101
41
- */
42
- createTime?: Timestamp;
43
- /**
44
- * The timestamp when the dashboard was last modified.
45
- *
46
- * @generated from protobuf field: google.protobuf.Timestamp update_time = 102
47
- */
48
- updateTime?: Timestamp;
49
- }
50
- /**
51
- * @generated from protobuf message raystack.assets.v1beta2.Chart
52
- */
53
- export interface Chart {
54
- /**
55
- * The URN of the chart.
56
- * Example: `chart:1`.
57
- *
58
- * @generated from protobuf field: string urn = 1
59
- */
60
- urn: string;
61
- /**
62
- * The name of the chart.
63
- * Example: `My Chart`.
64
- *
65
- * @generated from protobuf field: string name = 2
66
- */
67
- name: string;
68
- /**
69
- * The type of the chart.
70
- * Example: `line`.
71
- *
72
- * @generated from protobuf field: string type = 3
73
- */
74
- type: string;
75
- /**
76
- * The source of the chart.
77
- * Example: `metabase`.
78
- *
79
- * @generated from protobuf field: string source = 4
80
- */
81
- source: string;
82
- /**
83
- * The description of the chart.
84
- * Example: `This is a chart for my dashboard.`
85
- *
86
- * @generated from protobuf field: string description = 5
87
- */
88
- description: string;
89
- /**
90
- * The url of the chart.
91
- * Example: `http://metabase.com/charts/mychart`.
92
- *
93
- * @generated from protobuf field: string url = 6
94
- */
95
- url: string;
96
- /**
97
- * The raw query of the chart.
98
- * Example: `SELECT * FROM my_table`.
99
- *
100
- * @generated from protobuf field: string raw_query = 7
101
- */
102
- rawQuery: string;
103
- /**
104
- * The source of the data.
105
- * Example: `bigquery,graphite`.
106
- *
107
- * @generated from protobuf field: string data_source = 8
108
- */
109
- dataSource: string;
110
- /**
111
- * The dashboard ur of the chart.
112
- * Example: `dashboard:1`.
113
- *
114
- * @generated from protobuf field: string dashboard_urn = 9
115
- */
116
- dashboardUrn: string;
117
- /**
118
- * The source of the dashboard of the chart.
119
- * Example: `metabase`.
120
- *
121
- * @generated from protobuf field: string dashboard_source = 10
122
- */
123
- dashboardSource: string;
124
- /**
125
- * The ownership of the dashboard.
126
- * For an example check out ownership.
127
- *
128
- * @generated from protobuf field: repeated raystack.assets.v1beta2.Owner owners = 31
129
- */
130
- owners: Owner[];
131
- /**
132
- * List of properties the model has.
133
- *
134
- * @generated from protobuf field: google.protobuf.Struct attributes = 32
135
- */
136
- attributes?: Struct;
137
- /**
138
- * The lineage of the chart.
139
- * For an example check out lineage schema.
140
- *
141
- * @generated from protobuf field: raystack.assets.v1beta2.Lineage lineage = 33
142
- */
143
- lineage?: Lineage;
144
- /**
145
- * The timestamp when the object was created.
146
- *
147
- * @generated from protobuf field: google.protobuf.Timestamp create_time = 34
148
- */
149
- createTime?: Timestamp;
150
- /**
151
- * The timestamp when the object was last modified.
152
- *
153
- * @generated from protobuf field: google.protobuf.Timestamp update_time = 35
154
- */
155
- updateTime?: Timestamp;
156
- /**
157
- * The timestamp of the generated event.
158
- * Event schemas is defined in the common event schema.
159
- *
160
- * @generated from protobuf field: raystack.assets.v1beta2.Event event = 100
161
- */
162
- event?: Event;
163
- }
164
- // @generated message type with reflection information, may provide speed optimized methods
165
- class Dashboard$Type extends MessageType<Dashboard> {
166
- constructor() {
167
- super("raystack.assets.v1beta2.Dashboard", [
168
- { no: 1, name: "charts", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Chart },
169
- { no: 8, name: "attributes", kind: "message", T: () => Struct },
170
- { no: 101, name: "create_time", kind: "message", T: () => Timestamp },
171
- { no: 102, name: "update_time", kind: "message", T: () => Timestamp }
172
- ]);
173
- }
174
- create(value?: PartialMessage<Dashboard>): Dashboard {
175
- const message = globalThis.Object.create((this.messagePrototype!));
176
- message.charts = [];
177
- if (value !== undefined)
178
- reflectionMergePartial<Dashboard>(this, message, value);
179
- return message;
180
- }
181
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Dashboard): Dashboard {
182
- let message = target ?? this.create(), end = reader.pos + length;
183
- while (reader.pos < end) {
184
- let [fieldNo, wireType] = reader.tag();
185
- switch (fieldNo) {
186
- case /* repeated raystack.assets.v1beta2.Chart charts */ 1:
187
- message.charts.push(Chart.internalBinaryRead(reader, reader.uint32(), options));
188
- break;
189
- case /* google.protobuf.Struct attributes */ 8:
190
- message.attributes = Struct.internalBinaryRead(reader, reader.uint32(), options, message.attributes);
191
- break;
192
- case /* google.protobuf.Timestamp create_time */ 101:
193
- message.createTime = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createTime);
194
- break;
195
- case /* google.protobuf.Timestamp update_time */ 102:
196
- message.updateTime = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.updateTime);
197
- break;
198
- default:
199
- let u = options.readUnknownField;
200
- if (u === "throw")
201
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
202
- let d = reader.skip(wireType);
203
- if (u !== false)
204
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
205
- }
206
- }
207
- return message;
208
- }
209
- internalBinaryWrite(message: Dashboard, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
210
- /* repeated raystack.assets.v1beta2.Chart charts = 1; */
211
- for (let i = 0; i < message.charts.length; i++)
212
- Chart.internalBinaryWrite(message.charts[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
213
- /* google.protobuf.Struct attributes = 8; */
214
- if (message.attributes)
215
- Struct.internalBinaryWrite(message.attributes, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
216
- /* google.protobuf.Timestamp create_time = 101; */
217
- if (message.createTime)
218
- Timestamp.internalBinaryWrite(message.createTime, writer.tag(101, WireType.LengthDelimited).fork(), options).join();
219
- /* google.protobuf.Timestamp update_time = 102; */
220
- if (message.updateTime)
221
- Timestamp.internalBinaryWrite(message.updateTime, writer.tag(102, WireType.LengthDelimited).fork(), options).join();
222
- let u = options.writeUnknownFields;
223
- if (u !== false)
224
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
225
- return writer;
226
- }
227
- }
228
- /**
229
- * @generated MessageType for protobuf message raystack.assets.v1beta2.Dashboard
230
- */
231
- export const Dashboard = new Dashboard$Type();
232
- // @generated message type with reflection information, may provide speed optimized methods
233
- class Chart$Type extends MessageType<Chart> {
234
- constructor() {
235
- super("raystack.assets.v1beta2.Chart", [
236
- { no: 1, name: "urn", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
237
- { no: 2, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
238
- { no: 3, name: "type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
239
- { no: 4, name: "source", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
240
- { no: 5, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
241
- { no: 6, name: "url", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
242
- { no: 7, name: "raw_query", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
243
- { no: 8, name: "data_source", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
244
- { no: 9, name: "dashboard_urn", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
245
- { no: 10, name: "dashboard_source", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
246
- { no: 31, name: "owners", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Owner },
247
- { no: 32, name: "attributes", kind: "message", T: () => Struct },
248
- { no: 33, name: "lineage", kind: "message", T: () => Lineage },
249
- { no: 34, name: "create_time", kind: "message", T: () => Timestamp },
250
- { no: 35, name: "update_time", kind: "message", T: () => Timestamp },
251
- { no: 100, name: "event", kind: "message", T: () => Event }
252
- ]);
253
- }
254
- create(value?: PartialMessage<Chart>): Chart {
255
- const message = globalThis.Object.create((this.messagePrototype!));
256
- message.urn = "";
257
- message.name = "";
258
- message.type = "";
259
- message.source = "";
260
- message.description = "";
261
- message.url = "";
262
- message.rawQuery = "";
263
- message.dataSource = "";
264
- message.dashboardUrn = "";
265
- message.dashboardSource = "";
266
- message.owners = [];
267
- if (value !== undefined)
268
- reflectionMergePartial<Chart>(this, message, value);
269
- return message;
270
- }
271
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Chart): Chart {
272
- let message = target ?? this.create(), end = reader.pos + length;
273
- while (reader.pos < end) {
274
- let [fieldNo, wireType] = reader.tag();
275
- switch (fieldNo) {
276
- case /* string urn */ 1:
277
- message.urn = reader.string();
278
- break;
279
- case /* string name */ 2:
280
- message.name = reader.string();
281
- break;
282
- case /* string type */ 3:
283
- message.type = reader.string();
284
- break;
285
- case /* string source */ 4:
286
- message.source = reader.string();
287
- break;
288
- case /* string description */ 5:
289
- message.description = reader.string();
290
- break;
291
- case /* string url */ 6:
292
- message.url = reader.string();
293
- break;
294
- case /* string raw_query */ 7:
295
- message.rawQuery = reader.string();
296
- break;
297
- case /* string data_source */ 8:
298
- message.dataSource = reader.string();
299
- break;
300
- case /* string dashboard_urn */ 9:
301
- message.dashboardUrn = reader.string();
302
- break;
303
- case /* string dashboard_source */ 10:
304
- message.dashboardSource = reader.string();
305
- break;
306
- case /* repeated raystack.assets.v1beta2.Owner owners */ 31:
307
- message.owners.push(Owner.internalBinaryRead(reader, reader.uint32(), options));
308
- break;
309
- case /* google.protobuf.Struct attributes */ 32:
310
- message.attributes = Struct.internalBinaryRead(reader, reader.uint32(), options, message.attributes);
311
- break;
312
- case /* raystack.assets.v1beta2.Lineage lineage */ 33:
313
- message.lineage = Lineage.internalBinaryRead(reader, reader.uint32(), options, message.lineage);
314
- break;
315
- case /* google.protobuf.Timestamp create_time */ 34:
316
- message.createTime = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createTime);
317
- break;
318
- case /* google.protobuf.Timestamp update_time */ 35:
319
- message.updateTime = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.updateTime);
320
- break;
321
- case /* raystack.assets.v1beta2.Event event */ 100:
322
- message.event = Event.internalBinaryRead(reader, reader.uint32(), options, message.event);
323
- break;
324
- default:
325
- let u = options.readUnknownField;
326
- if (u === "throw")
327
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
328
- let d = reader.skip(wireType);
329
- if (u !== false)
330
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
331
- }
332
- }
333
- return message;
334
- }
335
- internalBinaryWrite(message: Chart, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
336
- /* string urn = 1; */
337
- if (message.urn !== "")
338
- writer.tag(1, WireType.LengthDelimited).string(message.urn);
339
- /* string name = 2; */
340
- if (message.name !== "")
341
- writer.tag(2, WireType.LengthDelimited).string(message.name);
342
- /* string type = 3; */
343
- if (message.type !== "")
344
- writer.tag(3, WireType.LengthDelimited).string(message.type);
345
- /* string source = 4; */
346
- if (message.source !== "")
347
- writer.tag(4, WireType.LengthDelimited).string(message.source);
348
- /* string description = 5; */
349
- if (message.description !== "")
350
- writer.tag(5, WireType.LengthDelimited).string(message.description);
351
- /* string url = 6; */
352
- if (message.url !== "")
353
- writer.tag(6, WireType.LengthDelimited).string(message.url);
354
- /* string raw_query = 7; */
355
- if (message.rawQuery !== "")
356
- writer.tag(7, WireType.LengthDelimited).string(message.rawQuery);
357
- /* string data_source = 8; */
358
- if (message.dataSource !== "")
359
- writer.tag(8, WireType.LengthDelimited).string(message.dataSource);
360
- /* string dashboard_urn = 9; */
361
- if (message.dashboardUrn !== "")
362
- writer.tag(9, WireType.LengthDelimited).string(message.dashboardUrn);
363
- /* string dashboard_source = 10; */
364
- if (message.dashboardSource !== "")
365
- writer.tag(10, WireType.LengthDelimited).string(message.dashboardSource);
366
- /* repeated raystack.assets.v1beta2.Owner owners = 31; */
367
- for (let i = 0; i < message.owners.length; i++)
368
- Owner.internalBinaryWrite(message.owners[i], writer.tag(31, WireType.LengthDelimited).fork(), options).join();
369
- /* google.protobuf.Struct attributes = 32; */
370
- if (message.attributes)
371
- Struct.internalBinaryWrite(message.attributes, writer.tag(32, WireType.LengthDelimited).fork(), options).join();
372
- /* raystack.assets.v1beta2.Lineage lineage = 33; */
373
- if (message.lineage)
374
- Lineage.internalBinaryWrite(message.lineage, writer.tag(33, WireType.LengthDelimited).fork(), options).join();
375
- /* google.protobuf.Timestamp create_time = 34; */
376
- if (message.createTime)
377
- Timestamp.internalBinaryWrite(message.createTime, writer.tag(34, WireType.LengthDelimited).fork(), options).join();
378
- /* google.protobuf.Timestamp update_time = 35; */
379
- if (message.updateTime)
380
- Timestamp.internalBinaryWrite(message.updateTime, writer.tag(35, WireType.LengthDelimited).fork(), options).join();
381
- /* raystack.assets.v1beta2.Event event = 100; */
382
- if (message.event)
383
- Event.internalBinaryWrite(message.event, writer.tag(100, WireType.LengthDelimited).fork(), options).join();
384
- let u = options.writeUnknownFields;
385
- if (u !== false)
386
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
387
- return writer;
388
- }
389
- }
390
- /**
391
- * @generated MessageType for protobuf message raystack.assets.v1beta2.Chart
392
- */
393
- export const Chart = new Chart$Type();
@@ -1,274 +0,0 @@
1
- // @generated by protobuf-ts 2.11.1
2
- // @generated from protobuf file "raystack/assets/v1beta2/experiment.proto" (package "raystack.assets.v1beta2", syntax proto3)
3
- // tslint:disable
4
- import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
5
- import type { IBinaryWriter } from "@protobuf-ts/runtime";
6
- import { WireType } from "@protobuf-ts/runtime";
7
- import type { BinaryReadOptions } from "@protobuf-ts/runtime";
8
- import type { IBinaryReader } from "@protobuf-ts/runtime";
9
- import { UnknownFieldHandler } from "@protobuf-ts/runtime";
10
- import type { PartialMessage } from "@protobuf-ts/runtime";
11
- import { reflectionMergePartial } from "@protobuf-ts/runtime";
12
- import { MessageType } from "@protobuf-ts/runtime";
13
- import { Timestamp } from "../../../google/protobuf/timestamp";
14
- import { Struct } from "../../../google/protobuf/struct";
15
- /**
16
- * An experiment is the set of configurations and filters that allow for
17
- * systematically varying some independent variables to impact some other
18
- * dependent variables.
19
- *
20
- * @generated from protobuf message raystack.assets.v1beta2.Experiment
21
- */
22
- export interface Experiment {
23
- /**
24
- * Optional: Type of the entity being experimented over. ex: customer, session,
25
- * device, driver etc.
26
- *
27
- * @generated from protobuf field: string entity = 1
28
- */
29
- entity: string;
30
- /**
31
- * Optional: Percentage of the traffic that the experiment is enabled for.
32
- *
33
- * @generated from protobuf field: float traffic_percent = 2
34
- */
35
- trafficPercent: number;
36
- /**
37
- * The variants of the experiment possibly including the control group.
38
- *
39
- * @generated from protobuf field: repeated raystack.assets.v1beta2.Experiment.Variant variants = 3
40
- */
41
- variants: Experiment_Variant[];
42
- /**
43
- * Optional: List of attributes the experiment has. This could include the
44
- * following:
45
- * - client_id[string]: The ID if the client running the experiment.
46
- * - client_name[string]: The name of the client running the experiment.
47
- * - primary_metric[string]: Used to determine a statistically significant
48
- * winning or losing variant.
49
- * - guardrail_metric[string]: Business metric designed to indirectly measure
50
- * business value and track any potentially misleading or erroneous results
51
- * and analysis.
52
- * - variant_sample_size[double]: Sample size per variant.
53
- * - filter_rules[repeated string]: Textual representation of rules required
54
- * to be satisfied for experiment to be shown to the user.
55
- * - start_time[RFC 3339 string]: The timestamp at which the
56
- * experiment would start.
57
- * - end_time[RFC 3339 string]: The timestamp at which the
58
- * experiment would end.
59
- *
60
- * @generated from protobuf field: google.protobuf.Struct attributes = 5
61
- */
62
- attributes?: Struct;
63
- /**
64
- * The timestamp of the experiment's creation.
65
- *
66
- * @generated from protobuf field: google.protobuf.Timestamp create_time = 101
67
- */
68
- createTime?: Timestamp;
69
- /**
70
- * The timestamp when the experiment was last modified.
71
- *
72
- * @generated from protobuf field: google.protobuf.Timestamp update_time = 102
73
- */
74
- updateTime?: Timestamp;
75
- }
76
- /**
77
- * Instance of configurations to be compared in the experiment.
78
- *
79
- * @generated from protobuf message raystack.assets.v1beta2.Experiment.Variant
80
- */
81
- export interface Experiment_Variant {
82
- /**
83
- * Name of the experiment variant.
84
- *
85
- * @generated from protobuf field: string name = 1
86
- */
87
- name: string;
88
- /**
89
- * Traffic percent enabled for the variant.
90
- *
91
- * @generated from protobuf field: float traffic_percent = 2
92
- */
93
- trafficPercent: number;
94
- /**
95
- * Indicated whether the variant is the control for the experiment.
96
- *
97
- * @generated from protobuf field: bool is_control = 3
98
- */
99
- isControl: boolean;
100
- /**
101
- * List of properties the entity has.
102
- *
103
- * @generated from protobuf field: google.protobuf.Struct attributes = 4
104
- */
105
- attributes?: Struct;
106
- /**
107
- * Whether the variant has been promoted to all users.
108
- *
109
- * @generated from protobuf field: bool is_promoted = 5
110
- */
111
- isPromoted: boolean;
112
- }
113
- // @generated message type with reflection information, may provide speed optimized methods
114
- class Experiment$Type extends MessageType<Experiment> {
115
- constructor() {
116
- super("raystack.assets.v1beta2.Experiment", [
117
- { no: 1, name: "entity", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
118
- { no: 2, name: "traffic_percent", kind: "scalar", T: 2 /*ScalarType.FLOAT*/ },
119
- { no: 3, name: "variants", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Experiment_Variant },
120
- { no: 5, name: "attributes", kind: "message", T: () => Struct },
121
- { no: 101, name: "create_time", kind: "message", T: () => Timestamp },
122
- { no: 102, name: "update_time", kind: "message", T: () => Timestamp }
123
- ]);
124
- }
125
- create(value?: PartialMessage<Experiment>): Experiment {
126
- const message = globalThis.Object.create((this.messagePrototype!));
127
- message.entity = "";
128
- message.trafficPercent = 0;
129
- message.variants = [];
130
- if (value !== undefined)
131
- reflectionMergePartial<Experiment>(this, message, value);
132
- return message;
133
- }
134
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Experiment): Experiment {
135
- let message = target ?? this.create(), end = reader.pos + length;
136
- while (reader.pos < end) {
137
- let [fieldNo, wireType] = reader.tag();
138
- switch (fieldNo) {
139
- case /* string entity */ 1:
140
- message.entity = reader.string();
141
- break;
142
- case /* float traffic_percent */ 2:
143
- message.trafficPercent = reader.float();
144
- break;
145
- case /* repeated raystack.assets.v1beta2.Experiment.Variant variants */ 3:
146
- message.variants.push(Experiment_Variant.internalBinaryRead(reader, reader.uint32(), options));
147
- break;
148
- case /* google.protobuf.Struct attributes */ 5:
149
- message.attributes = Struct.internalBinaryRead(reader, reader.uint32(), options, message.attributes);
150
- break;
151
- case /* google.protobuf.Timestamp create_time */ 101:
152
- message.createTime = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createTime);
153
- break;
154
- case /* google.protobuf.Timestamp update_time */ 102:
155
- message.updateTime = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.updateTime);
156
- break;
157
- default:
158
- let u = options.readUnknownField;
159
- if (u === "throw")
160
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
161
- let d = reader.skip(wireType);
162
- if (u !== false)
163
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
164
- }
165
- }
166
- return message;
167
- }
168
- internalBinaryWrite(message: Experiment, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
169
- /* string entity = 1; */
170
- if (message.entity !== "")
171
- writer.tag(1, WireType.LengthDelimited).string(message.entity);
172
- /* float traffic_percent = 2; */
173
- if (message.trafficPercent !== 0)
174
- writer.tag(2, WireType.Bit32).float(message.trafficPercent);
175
- /* repeated raystack.assets.v1beta2.Experiment.Variant variants = 3; */
176
- for (let i = 0; i < message.variants.length; i++)
177
- Experiment_Variant.internalBinaryWrite(message.variants[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
178
- /* google.protobuf.Struct attributes = 5; */
179
- if (message.attributes)
180
- Struct.internalBinaryWrite(message.attributes, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
181
- /* google.protobuf.Timestamp create_time = 101; */
182
- if (message.createTime)
183
- Timestamp.internalBinaryWrite(message.createTime, writer.tag(101, WireType.LengthDelimited).fork(), options).join();
184
- /* google.protobuf.Timestamp update_time = 102; */
185
- if (message.updateTime)
186
- Timestamp.internalBinaryWrite(message.updateTime, writer.tag(102, WireType.LengthDelimited).fork(), options).join();
187
- let u = options.writeUnknownFields;
188
- if (u !== false)
189
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
190
- return writer;
191
- }
192
- }
193
- /**
194
- * @generated MessageType for protobuf message raystack.assets.v1beta2.Experiment
195
- */
196
- export const Experiment = new Experiment$Type();
197
- // @generated message type with reflection information, may provide speed optimized methods
198
- class Experiment_Variant$Type extends MessageType<Experiment_Variant> {
199
- constructor() {
200
- super("raystack.assets.v1beta2.Experiment.Variant", [
201
- { no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
202
- { no: 2, name: "traffic_percent", kind: "scalar", T: 2 /*ScalarType.FLOAT*/ },
203
- { no: 3, name: "is_control", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
204
- { no: 4, name: "attributes", kind: "message", T: () => Struct },
205
- { no: 5, name: "is_promoted", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
206
- ]);
207
- }
208
- create(value?: PartialMessage<Experiment_Variant>): Experiment_Variant {
209
- const message = globalThis.Object.create((this.messagePrototype!));
210
- message.name = "";
211
- message.trafficPercent = 0;
212
- message.isControl = false;
213
- message.isPromoted = false;
214
- if (value !== undefined)
215
- reflectionMergePartial<Experiment_Variant>(this, message, value);
216
- return message;
217
- }
218
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Experiment_Variant): Experiment_Variant {
219
- let message = target ?? this.create(), end = reader.pos + length;
220
- while (reader.pos < end) {
221
- let [fieldNo, wireType] = reader.tag();
222
- switch (fieldNo) {
223
- case /* string name */ 1:
224
- message.name = reader.string();
225
- break;
226
- case /* float traffic_percent */ 2:
227
- message.trafficPercent = reader.float();
228
- break;
229
- case /* bool is_control */ 3:
230
- message.isControl = reader.bool();
231
- break;
232
- case /* google.protobuf.Struct attributes */ 4:
233
- message.attributes = Struct.internalBinaryRead(reader, reader.uint32(), options, message.attributes);
234
- break;
235
- case /* bool is_promoted */ 5:
236
- message.isPromoted = reader.bool();
237
- break;
238
- default:
239
- let u = options.readUnknownField;
240
- if (u === "throw")
241
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
242
- let d = reader.skip(wireType);
243
- if (u !== false)
244
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
245
- }
246
- }
247
- return message;
248
- }
249
- internalBinaryWrite(message: Experiment_Variant, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
250
- /* string name = 1; */
251
- if (message.name !== "")
252
- writer.tag(1, WireType.LengthDelimited).string(message.name);
253
- /* float traffic_percent = 2; */
254
- if (message.trafficPercent !== 0)
255
- writer.tag(2, WireType.Bit32).float(message.trafficPercent);
256
- /* bool is_control = 3; */
257
- if (message.isControl !== false)
258
- writer.tag(3, WireType.Varint).bool(message.isControl);
259
- /* google.protobuf.Struct attributes = 4; */
260
- if (message.attributes)
261
- Struct.internalBinaryWrite(message.attributes, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
262
- /* bool is_promoted = 5; */
263
- if (message.isPromoted !== false)
264
- writer.tag(5, WireType.Varint).bool(message.isPromoted);
265
- let u = options.writeUnknownFields;
266
- if (u !== false)
267
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
268
- return writer;
269
- }
270
- }
271
- /**
272
- * @generated MessageType for protobuf message raystack.assets.v1beta2.Experiment.Variant
273
- */
274
- export const Experiment_Variant = new Experiment_Variant$Type();