@raystack/proton 0.1.0-8a4f578dceca476c696c82054faaf4871b1b949c → 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 (198) hide show
  1. package/google/api/annotations_pb.ts +15 -9
  2. package/google/api/field_behavior_pb.ts +19 -19
  3. package/google/api/http_pb.ts +43 -108
  4. package/google/api/httpbody_pb.ts +23 -37
  5. package/index.ts +10 -0
  6. package/package.json +61 -17
  7. package/protoc-gen-openapiv2/options/annotations_pb.ts +23 -29
  8. package/protoc-gen-openapiv2/options/openapiv2_pb.ts +338 -808
  9. package/raystack/assets/index.ts +29 -29
  10. package/raystack/assets/v1beta1/bucket_pb.ts +46 -89
  11. package/raystack/assets/v1beta1/dashboard_pb.ts +49 -97
  12. package/raystack/assets/v1beta1/event_pb.ts +22 -36
  13. package/raystack/assets/v1beta1/group_pb.ts +38 -74
  14. package/raystack/assets/v1beta1/job_pb.ts +30 -43
  15. package/raystack/assets/v1beta1/lineage_pb.ts +22 -36
  16. package/raystack/assets/v1beta1/ownership_pb.ts +31 -68
  17. package/raystack/assets/v1beta1/preview_pb.ts +21 -34
  18. package/raystack/assets/v1beta1/properties_pb.ts +22 -37
  19. package/raystack/assets/v1beta1/resource_pb.ts +24 -43
  20. package/raystack/assets/v1beta1/schema_pb.ts +59 -145
  21. package/raystack/assets/v1beta1/table_pb.ts +59 -120
  22. package/raystack/assets/v1beta1/timestamp_pb.ts +28 -62
  23. package/raystack/assets/v1beta1/topic_pb.ts +43 -78
  24. package/raystack/assets/v1beta1/user_pb.ts +58 -125
  25. package/raystack/assets/v1beta2/application_pb.ts +23 -39
  26. package/raystack/assets/v1beta2/asset_pb.ts +30 -53
  27. package/raystack/assets/v1beta2/bucket_pb.ts +41 -87
  28. package/raystack/assets/v1beta2/common_pb.ts +56 -137
  29. package/raystack/assets/v1beta2/dashboard_pb.ts +44 -93
  30. package/raystack/assets/v1beta2/experiment_pb.ts +38 -79
  31. package/raystack/assets/v1beta2/feature_table_pb.ts +51 -115
  32. package/raystack/assets/v1beta2/group_pb.ts +32 -68
  33. package/raystack/assets/v1beta2/job_pb.ts +21 -35
  34. package/raystack/assets/v1beta2/metric_pb.ts +25 -43
  35. package/raystack/assets/v1beta2/model_pb.ts +59 -147
  36. package/raystack/assets/v1beta2/table_pb.ts +82 -200
  37. package/raystack/assets/v1beta2/topic_pb.ts +41 -99
  38. package/raystack/assets/v1beta2/user_pb.ts +53 -121
  39. package/raystack/common/index.ts +1 -2
  40. package/raystack/common/v1/service-CommonService_connectquery.ts +3 -14
  41. package/raystack/common/v1/service_pb.ts +57 -97
  42. package/raystack/compass/index.ts +1 -2
  43. package/raystack/compass/v1beta1/service-CompassService_connectquery.ts +44 -424
  44. package/raystack/compass/v1beta1/service_pb.ts +1448 -3319
  45. package/raystack/entropy/index.ts +2 -4
  46. package/raystack/entropy/v1beta1/module-ModuleService_connectquery.ts +7 -54
  47. package/raystack/entropy/v1beta1/module_pb.ts +156 -324
  48. package/raystack/entropy/v1beta1/resource-ResourceService_connectquery.ts +9 -74
  49. package/raystack/entropy/v1beta1/resource_pb.ts +330 -756
  50. package/raystack/frontier/index.ts +3 -5
  51. package/raystack/frontier/v1beta1/admin-AdminService_connectquery.ts +60 -514
  52. package/raystack/frontier/v1beta1/admin_pb.ts +1774 -3791
  53. package/raystack/frontier/v1beta1/frontier-FrontierService_connectquery.ts +169 -1674
  54. package/raystack/frontier/v1beta1/frontier_pb.ts +4850 -10959
  55. package/raystack/frontier/v1beta1/models_pb.ts +810 -2296
  56. package/raystack/guardian/index.ts +1 -2
  57. package/raystack/guardian/v1beta1/guardian-GuardianService_connectquery.ts +42 -404
  58. package/raystack/guardian/v1beta1/guardian_pb.ts +1584 -3783
  59. package/raystack/optimus/core/v1beta1/backup-BackupService_connectquery.ts +5 -34
  60. package/raystack/optimus/core/v1beta1/backup_pb.ts +137 -273
  61. package/raystack/optimus/core/v1beta1/job_run-JobRunService_connectquery.ts +6 -44
  62. package/raystack/optimus/core/v1beta1/job_run_pb.ts +194 -376
  63. package/raystack/optimus/core/v1beta1/job_spec-JobSpecificationService_connectquery.ts +17 -154
  64. package/raystack/optimus/core/v1beta1/job_spec_pb.ts +910 -2081
  65. package/raystack/optimus/core/v1beta1/namespace-NamespaceService_connectquery.ts +5 -34
  66. package/raystack/optimus/core/v1beta1/namespace_pb.ts +113 -212
  67. package/raystack/optimus/core/v1beta1/project-ProjectService_connectquery.ts +5 -34
  68. package/raystack/optimus/core/v1beta1/project_pb.ts +121 -238
  69. package/raystack/optimus/core/v1beta1/replay-ReplayService_connectquery.ts +6 -44
  70. package/raystack/optimus/core/v1beta1/replay_pb.ts +160 -335
  71. package/raystack/optimus/core/v1beta1/resource-ResourceService_connectquery.ts +8 -64
  72. package/raystack/optimus/core/v1beta1/resource_pb.ts +266 -527
  73. package/raystack/optimus/core/v1beta1/runtime-RuntimeService_connectquery.ts +3 -14
  74. package/raystack/optimus/core/v1beta1/runtime_pb.ts +48 -61
  75. package/raystack/optimus/core/v1beta1/secret-SecretService_connectquery.ts +6 -44
  76. package/raystack/optimus/core/v1beta1/secret_pb.ts +155 -283
  77. package/raystack/optimus/core/v1beta1/status_pb.ts +35 -54
  78. package/raystack/optimus/integration/v1beta1/event_pb.ts +75 -187
  79. package/raystack/optimus/plugins/v1beta1/dependency_resolver-DependencyResolverModService_connectquery.ts +6 -44
  80. package/raystack/optimus/plugins/v1beta1/dependency_resolver_pb.ts +193 -426
  81. package/raystack/predator/index.ts +2 -2
  82. package/raystack/predator/v1beta1/metrics_log_pb.ts +67 -173
  83. package/raystack/predator/v1beta1/result_log_pb.ts +60 -144
  84. package/raystack/raccoon/index.ts +1 -2
  85. package/raystack/raccoon/v1beta1/raccoon-EventService_connectquery.ts +3 -14
  86. package/raystack/raccoon/v1beta1/raccoon_pb.ts +142 -189
  87. package/raystack/siren/index.ts +1 -2
  88. package/raystack/siren/v1beta1/siren-SirenService_connectquery.ts +37 -354
  89. package/raystack/siren/v1beta1/siren_pb.ts +1155 -2637
  90. package/raystack/stencil/index.ts +1 -2
  91. package/raystack/stencil/v1beta1/stencil-StencilService_connectquery.ts +18 -164
  92. package/raystack/stencil/v1beta1/stencil_pb.ts +530 -1157
  93. package/validate/validate_pb.ts +401 -1038
  94. package/google/api/field_behavior.ts +0 -95
  95. package/google/api/http.ts +0 -695
  96. package/google/api/httpbody.ts +0 -159
  97. package/google/protobuf/any.ts +0 -322
  98. package/google/protobuf/descriptor.ts +0 -3475
  99. package/google/protobuf/duration.ts +0 -231
  100. package/google/protobuf/struct.ts +0 -484
  101. package/google/protobuf/timestamp.ts +0 -290
  102. package/google/protobuf/wrappers.ts +0 -752
  103. package/protoc-gen-openapiv2/options/openapiv2.ts +0 -3110
  104. package/raystack/assets/v1beta1/bucket.ts +0 -362
  105. package/raystack/assets/v1beta1/dashboard.ts +0 -426
  106. package/raystack/assets/v1beta1/event.ts +0 -105
  107. package/raystack/assets/v1beta1/group.ts +0 -223
  108. package/raystack/assets/v1beta1/job.ts +0 -147
  109. package/raystack/assets/v1beta1/lineage.ts +0 -90
  110. package/raystack/assets/v1beta1/ownership.ts +0 -179
  111. package/raystack/assets/v1beta1/preview.ts +0 -87
  112. package/raystack/assets/v1beta1/properties.ts +0 -116
  113. package/raystack/assets/v1beta1/resource.ts +0 -149
  114. package/raystack/assets/v1beta1/schema.ts +0 -421
  115. package/raystack/assets/v1beta1/table.ts +0 -408
  116. package/raystack/assets/v1beta1/timestamp.ts +0 -158
  117. package/raystack/assets/v1beta1/topic.ts +0 -253
  118. package/raystack/assets/v1beta1/user.ts +0 -451
  119. package/raystack/assets/v1beta2/application.ts +0 -125
  120. package/raystack/assets/v1beta2/asset.ts +0 -269
  121. package/raystack/assets/v1beta2/bucket.ts +0 -341
  122. package/raystack/assets/v1beta2/common.ts +0 -392
  123. package/raystack/assets/v1beta2/dashboard.ts +0 -393
  124. package/raystack/assets/v1beta2/experiment.ts +0 -274
  125. package/raystack/assets/v1beta2/feature_table.ts +0 -387
  126. package/raystack/assets/v1beta2/group.ts +0 -178
  127. package/raystack/assets/v1beta2/job.ts +0 -99
  128. package/raystack/assets/v1beta2/metric.ts +0 -163
  129. package/raystack/assets/v1beta2/model.ts +0 -519
  130. package/raystack/assets/v1beta2/table.ts +0 -663
  131. package/raystack/assets/v1beta2/topic.ts +0 -275
  132. package/raystack/assets/v1beta2/user.ts +0 -433
  133. package/raystack/common/v1/service.client.ts +0 -37
  134. package/raystack/common/v1/service.ts +0 -245
  135. package/raystack/common/v1/service_connect.ts +0 -26
  136. package/raystack/compass/v1beta1/service.client.ts +0 -594
  137. package/raystack/compass/v1beta1/service.ts +0 -8169
  138. package/raystack/compass/v1beta1/service_connect.ts +0 -407
  139. package/raystack/entropy/v1beta1/module.client.ts +0 -89
  140. package/raystack/entropy/v1beta1/module.ts +0 -692
  141. package/raystack/entropy/v1beta1/module_connect.ts +0 -62
  142. package/raystack/entropy/v1beta1/resource.client.ts +0 -129
  143. package/raystack/entropy/v1beta1/resource.ts +0 -1817
  144. package/raystack/entropy/v1beta1/resource_connect.ts +0 -89
  145. package/raystack/frontier/v1beta1/admin.client.ts +0 -849
  146. package/raystack/frontier/v1beta1/admin.ts +0 -9007
  147. package/raystack/frontier/v1beta1/admin_connect.ts +0 -573
  148. package/raystack/frontier/v1beta1/frontier.client.ts +0 -2307
  149. package/raystack/frontier/v1beta1/frontier.ts +0 -23706
  150. package/raystack/frontier/v1beta1/frontier_connect.ts +0 -1574
  151. package/raystack/frontier/v1beta1/models.ts +0 -7433
  152. package/raystack/guardian/v1beta1/guardian.client.ts +0 -552
  153. package/raystack/guardian/v1beta1/guardian.ts +0 -9688
  154. package/raystack/guardian/v1beta1/guardian_connect.ts +0 -381
  155. package/raystack/optimus/core/v1beta1/backup.client.ts +0 -63
  156. package/raystack/optimus/core/v1beta1/backup.ts +0 -708
  157. package/raystack/optimus/core/v1beta1/backup_connect.ts +0 -44
  158. package/raystack/optimus/core/v1beta1/job_run.client.ts +0 -96
  159. package/raystack/optimus/core/v1beta1/job_run.ts +0 -1008
  160. package/raystack/optimus/core/v1beta1/job_run_connect.ts +0 -63
  161. package/raystack/optimus/core/v1beta1/job_spec.client.ts +0 -363
  162. package/raystack/optimus/core/v1beta1/job_spec.ts +0 -5134
  163. package/raystack/optimus/core/v1beta1/job_spec_connect.ts +0 -233
  164. package/raystack/optimus/core/v1beta1/namespace.client.ts +0 -75
  165. package/raystack/optimus/core/v1beta1/namespace.ts +0 -477
  166. package/raystack/optimus/core/v1beta1/namespace_connect.ts +0 -50
  167. package/raystack/optimus/core/v1beta1/project.client.ts +0 -75
  168. package/raystack/optimus/core/v1beta1/project.ts +0 -520
  169. package/raystack/optimus/core/v1beta1/project_connect.ts +0 -50
  170. package/raystack/optimus/core/v1beta1/replay.client.ts +0 -76
  171. package/raystack/optimus/core/v1beta1/replay.ts +0 -881
  172. package/raystack/optimus/core/v1beta1/replay_connect.ts +0 -53
  173. package/raystack/optimus/core/v1beta1/resource.client.ts +0 -148
  174. package/raystack/optimus/core/v1beta1/resource.ts +0 -1329
  175. package/raystack/optimus/core/v1beta1/resource_connect.ts +0 -96
  176. package/raystack/optimus/core/v1beta1/runtime.client.ts +0 -45
  177. package/raystack/optimus/core/v1beta1/runtime.ts +0 -131
  178. package/raystack/optimus/core/v1beta1/runtime_connect.ts +0 -30
  179. package/raystack/optimus/core/v1beta1/secret.client.ts +0 -92
  180. package/raystack/optimus/core/v1beta1/secret.ts +0 -619
  181. package/raystack/optimus/core/v1beta1/secret_connect.ts +0 -61
  182. package/raystack/optimus/core/v1beta1/status.ts +0 -113
  183. package/raystack/optimus/integration/v1beta1/event.ts +0 -531
  184. package/raystack/optimus/plugins/v1beta1/dependency_resolver.client.ts +0 -100
  185. package/raystack/optimus/plugins/v1beta1/dependency_resolver.ts +0 -950
  186. package/raystack/optimus/plugins/v1beta1/dependency_resolver_connect.ts +0 -65
  187. package/raystack/predator/v1beta1/metrics_log.ts +0 -457
  188. package/raystack/predator/v1beta1/result_log.ts +0 -390
  189. package/raystack/raccoon/v1beta1/raccoon.client.ts +0 -37
  190. package/raystack/raccoon/v1beta1/raccoon.ts +0 -442
  191. package/raystack/raccoon/v1beta1/raccoon_connect.ts +0 -26
  192. package/raystack/siren/v1beta1/siren.client.ts +0 -479
  193. package/raystack/siren/v1beta1/siren.ts +0 -6507
  194. package/raystack/siren/v1beta1/siren_connect.ts +0 -332
  195. package/raystack/stencil/v1beta1/stencil.client.ts +0 -232
  196. package/raystack/stencil/v1beta1/stencil.ts +0 -2716
  197. package/raystack/stencil/v1beta1/stencil_connect.ts +0 -161
  198. 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();