@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,163 +0,0 @@
1
- // @generated by protobuf-ts 2.11.1
2
- // @generated from protobuf file "raystack/assets/v1beta2/metric.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
- * A metric is a timeseries aggregation over a table that supports zero or more dimensions.
17
- *
18
- * @generated from protobuf message raystack.assets.v1beta2.Metric
19
- */
20
- export interface Metric {
21
- /**
22
- * Namespace of the metric. Something like `{project}-{model}` for dbt and
23
- * `schema` for Cube.
24
- *
25
- * @generated from protobuf field: string namespace = 1
26
- */
27
- namespace: string;
28
- /**
29
- * The field being used to calculate a metric.
30
- *
31
- * @generated from protobuf field: string field_name = 2
32
- */
33
- fieldName: string;
34
- /**
35
- * Type of the evaluated metric. ex: count_distinct, average etc.
36
- *
37
- * @generated from protobuf field: string measure_type = 3
38
- */
39
- measureType: string;
40
- /**
41
- * Optional: The query, possibly in SQL representation, with filters and aggregations.
42
- *
43
- * @generated from protobuf field: string query = 4
44
- */
45
- query: string;
46
- /**
47
- * Optional: List of attributes the metric has. This could include the
48
- * following:
49
- * - time_grains[repeated string]: One or more "grains" at which the metric
50
- * can be evaluated. Ex: [day, week, month].
51
- * - dimensions[repeated string]: A list of dimensions to group or filter the
52
- * metric by. Ex: [plan, country].
53
- * - filters[repeated map<string, string>]: Predicates for the metric. Ex:
54
- * [{"field": "is_paying", "operator": "is", "value": "true"}].
55
- *
56
- * @generated from protobuf field: google.protobuf.Struct attributes = 5
57
- */
58
- attributes?: Struct;
59
- /**
60
- * The timestamp of the metric's creation.
61
- *
62
- * @generated from protobuf field: google.protobuf.Timestamp create_time = 101
63
- */
64
- createTime?: Timestamp;
65
- /**
66
- * The timestamp when the metric was last modified.
67
- *
68
- * @generated from protobuf field: google.protobuf.Timestamp update_time = 102
69
- */
70
- updateTime?: Timestamp;
71
- }
72
- // @generated message type with reflection information, may provide speed optimized methods
73
- class Metric$Type extends MessageType<Metric> {
74
- constructor() {
75
- super("raystack.assets.v1beta2.Metric", [
76
- { no: 1, name: "namespace", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
77
- { no: 2, name: "field_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
78
- { no: 3, name: "measure_type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
79
- { no: 4, name: "query", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
80
- { no: 5, name: "attributes", kind: "message", T: () => Struct },
81
- { no: 101, name: "create_time", kind: "message", T: () => Timestamp },
82
- { no: 102, name: "update_time", kind: "message", T: () => Timestamp }
83
- ]);
84
- }
85
- create(value?: PartialMessage<Metric>): Metric {
86
- const message = globalThis.Object.create((this.messagePrototype!));
87
- message.namespace = "";
88
- message.fieldName = "";
89
- message.measureType = "";
90
- message.query = "";
91
- if (value !== undefined)
92
- reflectionMergePartial<Metric>(this, message, value);
93
- return message;
94
- }
95
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Metric): Metric {
96
- let message = target ?? this.create(), end = reader.pos + length;
97
- while (reader.pos < end) {
98
- let [fieldNo, wireType] = reader.tag();
99
- switch (fieldNo) {
100
- case /* string namespace */ 1:
101
- message.namespace = reader.string();
102
- break;
103
- case /* string field_name */ 2:
104
- message.fieldName = reader.string();
105
- break;
106
- case /* string measure_type */ 3:
107
- message.measureType = reader.string();
108
- break;
109
- case /* string query */ 4:
110
- message.query = reader.string();
111
- break;
112
- case /* google.protobuf.Struct attributes */ 5:
113
- message.attributes = Struct.internalBinaryRead(reader, reader.uint32(), options, message.attributes);
114
- break;
115
- case /* google.protobuf.Timestamp create_time */ 101:
116
- message.createTime = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createTime);
117
- break;
118
- case /* google.protobuf.Timestamp update_time */ 102:
119
- message.updateTime = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.updateTime);
120
- break;
121
- default:
122
- let u = options.readUnknownField;
123
- if (u === "throw")
124
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
125
- let d = reader.skip(wireType);
126
- if (u !== false)
127
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
128
- }
129
- }
130
- return message;
131
- }
132
- internalBinaryWrite(message: Metric, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
133
- /* string namespace = 1; */
134
- if (message.namespace !== "")
135
- writer.tag(1, WireType.LengthDelimited).string(message.namespace);
136
- /* string field_name = 2; */
137
- if (message.fieldName !== "")
138
- writer.tag(2, WireType.LengthDelimited).string(message.fieldName);
139
- /* string measure_type = 3; */
140
- if (message.measureType !== "")
141
- writer.tag(3, WireType.LengthDelimited).string(message.measureType);
142
- /* string query = 4; */
143
- if (message.query !== "")
144
- writer.tag(4, WireType.LengthDelimited).string(message.query);
145
- /* google.protobuf.Struct attributes = 5; */
146
- if (message.attributes)
147
- Struct.internalBinaryWrite(message.attributes, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
148
- /* google.protobuf.Timestamp create_time = 101; */
149
- if (message.createTime)
150
- Timestamp.internalBinaryWrite(message.createTime, writer.tag(101, WireType.LengthDelimited).fork(), options).join();
151
- /* google.protobuf.Timestamp update_time = 102; */
152
- if (message.updateTime)
153
- Timestamp.internalBinaryWrite(message.updateTime, writer.tag(102, WireType.LengthDelimited).fork(), options).join();
154
- let u = options.writeUnknownFields;
155
- if (u !== false)
156
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
157
- return writer;
158
- }
159
- }
160
- /**
161
- * @generated MessageType for protobuf message raystack.assets.v1beta2.Metric
162
- */
163
- export const Metric = new Metric$Type();
@@ -1,519 +0,0 @@
1
- // @generated by protobuf-ts 2.11.1
2
- // @generated from protobuf file "raystack/assets/v1beta2/model.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
- * Schema of the model's inputs and outputs. Strongly inspired by
17
- * https://mlflow.org/docs/latest/python_api/mlflow.models.html#mlflow.models.ModelSignature.
18
- *
19
- * @generated from protobuf message raystack.assets.v1beta2.ModelSignature
20
- */
21
- export interface ModelSignature {
22
- /**
23
- * @generated from protobuf field: repeated raystack.assets.v1beta2.ModelSignature.Parameter inputs = 1
24
- */
25
- inputs: ModelSignature_Parameter[];
26
- /**
27
- * @generated from protobuf field: repeated raystack.assets.v1beta2.ModelSignature.Parameter outputs = 2
28
- */
29
- outputs: ModelSignature_Parameter[];
30
- }
31
- /**
32
- * Specification of name and type of a single column in a dataset.
33
- *
34
- * @generated from protobuf message raystack.assets.v1beta2.ModelSignature.Parameter
35
- */
36
- export interface ModelSignature_Parameter {
37
- /**
38
- * Optional: Name of the input or output parameter.
39
- *
40
- * @generated from protobuf field: string name = 1
41
- */
42
- name: string;
43
- /**
44
- * Data type of the parameter. Ex: boolean, double, numpy's dtypes etc.
45
- *
46
- * @generated from protobuf field: string data_type = 2
47
- */
48
- dataType: string;
49
- /**
50
- * Optional: The tensor shape.
51
- *
52
- * @generated from protobuf field: repeated int64 shape = 3
53
- */
54
- shape: bigint[];
55
- }
56
- /**
57
- * @generated from protobuf message raystack.assets.v1beta2.ModelVersion
58
- */
59
- export interface ModelVersion {
60
- /**
61
- * The schema of a model version’s inputs and outputs.
62
- *
63
- * @generated from protobuf field: raystack.assets.v1beta2.ModelSignature signature = 1
64
- */
65
- signature?: ModelSignature;
66
- /**
67
- * Status of the model version. ex: pending/ready/serving/terminated etc.
68
- *
69
- * @generated from protobuf field: string status = 2
70
- */
71
- status: string;
72
- /**
73
- * Version of the model
74
- *
75
- * @generated from protobuf field: string version = 3
76
- */
77
- version: string;
78
- /**
79
- * List of attributes the model version has. This could include the following:
80
- * - mlflow_run_id[string]: MLFlow expriment run ID associated with the model
81
- * version. Relevant for Merlin models.
82
- * - mlflow_run_url[string]: URL of MLFlow experiment run associated with
83
- * the model. Relevant for Merlin models.
84
- * - endpoint_url[string]: Endpoint that the model is serving requests on.
85
- * Ex: http://<model_name>-<version>.<project_name>.<merlin_base_url>.
86
- * - version_endpoint_url[string]: Endpoint that the model is serving
87
- * requests on for the specific version. Ex:
88
- * http://<model_name>-<version>.<project_name>.<merlin_base_url>.
89
- * - traffic[double]: Percentage of traffic being served by this version of
90
- * the model.
91
- * - weight[double]: Weightage for the model version endpoint.
92
- * - params[map<string, string>]: Parameters for the Model's run.
93
- * - metrics[map<string, double>]: Metrics for the model's run.
94
- *
95
- * @generated from protobuf field: google.protobuf.Struct attributes = 4
96
- */
97
- attributes?: Struct;
98
- /**
99
- * Optional. List of labels the model version has.
100
- *
101
- * @generated from protobuf field: map<string, string> labels = 5
102
- */
103
- labels: {
104
- [key: string]: string;
105
- };
106
- /**
107
- * The timestamp of the model's creation.
108
- *
109
- * @generated from protobuf field: google.protobuf.Timestamp create_time = 101
110
- */
111
- createTime?: Timestamp;
112
- /**
113
- * The timestamp when the model was last modified.
114
- *
115
- * @generated from protobuf field: google.protobuf.Timestamp update_time = 102
116
- */
117
- updateTime?: Timestamp;
118
- }
119
- /**
120
- * Model represents a Data Science Model commonly used for Machine Learning
121
- * (ML). Models are algorithms trained on data to find patterns or make
122
- * predictions. Models typically consume ML features to generate a meaningful
123
- * output. The inputs can also include contextual information that is made
124
- * available in realtime as part of the request to the model server.
125
- *
126
- * @generated from protobuf message raystack.assets.v1beta2.Model
127
- */
128
- export interface Model {
129
- /**
130
- * Optional: Model's namespace or project.
131
- *
132
- * @generated from protobuf field: string namespace = 1
133
- */
134
- namespace: string;
135
- /**
136
- * Flavor of the ML Model. ex: pytorch, tensorflow etc.
137
- *
138
- * @generated from protobuf field: string flavor = 2
139
- */
140
- flavor: string;
141
- /**
142
- * Optional: Algorithm used to train the ML Model.
143
- *
144
- * @generated from protobuf field: string algorithm = 3
145
- */
146
- algorithm: string;
147
- /**
148
- * Status of the model. ex: active/deleted etc.
149
- *
150
- * @generated from protobuf field: string status = 4
151
- */
152
- status: string;
153
- /**
154
- * Versions of the model, similar to experiment runs in MLFlow and model
155
- * version in Merlin.
156
- *
157
- * @generated from protobuf field: repeated raystack.assets.v1beta2.ModelVersion versions = 5
158
- */
159
- versions: ModelVersion[];
160
- /**
161
- * List of attributes the model version has. This could include the following:
162
- * - project_id[double]: ID of project the model is present in.
163
- * - project_name[string]: Name of project the model is present in.
164
- * - mlflow_experiment_id[double]: MLFlow experiment ID associated with the
165
- * model. Relevant for Merlin models.
166
- * - mlflow_experiment_url[string]: URL of MLFlow experiment associated with
167
- * the model. Relevant for Merlin models.
168
- * - endpoint_urls[repeated string]: List of URLs associated with endpoints
169
- * that are serving requests for the model. Relevant for Merlin models.
170
- *
171
- * @generated from protobuf field: google.protobuf.Struct attributes = 6
172
- */
173
- attributes?: Struct;
174
- /**
175
- * The timestamp of the model's creation.
176
- *
177
- * @generated from protobuf field: google.protobuf.Timestamp create_time = 101
178
- */
179
- createTime?: Timestamp;
180
- /**
181
- * The timestamp when the model was last modified.
182
- *
183
- * @generated from protobuf field: google.protobuf.Timestamp update_time = 102
184
- */
185
- updateTime?: Timestamp;
186
- }
187
- // @generated message type with reflection information, may provide speed optimized methods
188
- class ModelSignature$Type extends MessageType<ModelSignature> {
189
- constructor() {
190
- super("raystack.assets.v1beta2.ModelSignature", [
191
- { no: 1, name: "inputs", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ModelSignature_Parameter },
192
- { no: 2, name: "outputs", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ModelSignature_Parameter }
193
- ]);
194
- }
195
- create(value?: PartialMessage<ModelSignature>): ModelSignature {
196
- const message = globalThis.Object.create((this.messagePrototype!));
197
- message.inputs = [];
198
- message.outputs = [];
199
- if (value !== undefined)
200
- reflectionMergePartial<ModelSignature>(this, message, value);
201
- return message;
202
- }
203
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ModelSignature): ModelSignature {
204
- let message = target ?? this.create(), end = reader.pos + length;
205
- while (reader.pos < end) {
206
- let [fieldNo, wireType] = reader.tag();
207
- switch (fieldNo) {
208
- case /* repeated raystack.assets.v1beta2.ModelSignature.Parameter inputs */ 1:
209
- message.inputs.push(ModelSignature_Parameter.internalBinaryRead(reader, reader.uint32(), options));
210
- break;
211
- case /* repeated raystack.assets.v1beta2.ModelSignature.Parameter outputs */ 2:
212
- message.outputs.push(ModelSignature_Parameter.internalBinaryRead(reader, reader.uint32(), options));
213
- break;
214
- default:
215
- let u = options.readUnknownField;
216
- if (u === "throw")
217
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
218
- let d = reader.skip(wireType);
219
- if (u !== false)
220
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
221
- }
222
- }
223
- return message;
224
- }
225
- internalBinaryWrite(message: ModelSignature, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
226
- /* repeated raystack.assets.v1beta2.ModelSignature.Parameter inputs = 1; */
227
- for (let i = 0; i < message.inputs.length; i++)
228
- ModelSignature_Parameter.internalBinaryWrite(message.inputs[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
229
- /* repeated raystack.assets.v1beta2.ModelSignature.Parameter outputs = 2; */
230
- for (let i = 0; i < message.outputs.length; i++)
231
- ModelSignature_Parameter.internalBinaryWrite(message.outputs[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
232
- let u = options.writeUnknownFields;
233
- if (u !== false)
234
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
235
- return writer;
236
- }
237
- }
238
- /**
239
- * @generated MessageType for protobuf message raystack.assets.v1beta2.ModelSignature
240
- */
241
- export const ModelSignature = new ModelSignature$Type();
242
- // @generated message type with reflection information, may provide speed optimized methods
243
- class ModelSignature_Parameter$Type extends MessageType<ModelSignature_Parameter> {
244
- constructor() {
245
- super("raystack.assets.v1beta2.ModelSignature.Parameter", [
246
- { no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
247
- { no: 2, name: "data_type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
248
- { no: 3, name: "shape", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }
249
- ]);
250
- }
251
- create(value?: PartialMessage<ModelSignature_Parameter>): ModelSignature_Parameter {
252
- const message = globalThis.Object.create((this.messagePrototype!));
253
- message.name = "";
254
- message.dataType = "";
255
- message.shape = [];
256
- if (value !== undefined)
257
- reflectionMergePartial<ModelSignature_Parameter>(this, message, value);
258
- return message;
259
- }
260
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ModelSignature_Parameter): ModelSignature_Parameter {
261
- let message = target ?? this.create(), end = reader.pos + length;
262
- while (reader.pos < end) {
263
- let [fieldNo, wireType] = reader.tag();
264
- switch (fieldNo) {
265
- case /* string name */ 1:
266
- message.name = reader.string();
267
- break;
268
- case /* string data_type */ 2:
269
- message.dataType = reader.string();
270
- break;
271
- case /* repeated int64 shape */ 3:
272
- if (wireType === WireType.LengthDelimited)
273
- for (let e = reader.int32() + reader.pos; reader.pos < e;)
274
- message.shape.push(reader.int64().toBigInt());
275
- else
276
- message.shape.push(reader.int64().toBigInt());
277
- break;
278
- default:
279
- let u = options.readUnknownField;
280
- if (u === "throw")
281
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
282
- let d = reader.skip(wireType);
283
- if (u !== false)
284
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
285
- }
286
- }
287
- return message;
288
- }
289
- internalBinaryWrite(message: ModelSignature_Parameter, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
290
- /* string name = 1; */
291
- if (message.name !== "")
292
- writer.tag(1, WireType.LengthDelimited).string(message.name);
293
- /* string data_type = 2; */
294
- if (message.dataType !== "")
295
- writer.tag(2, WireType.LengthDelimited).string(message.dataType);
296
- /* repeated int64 shape = 3; */
297
- if (message.shape.length) {
298
- writer.tag(3, WireType.LengthDelimited).fork();
299
- for (let i = 0; i < message.shape.length; i++)
300
- writer.int64(message.shape[i]);
301
- writer.join();
302
- }
303
- let u = options.writeUnknownFields;
304
- if (u !== false)
305
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
306
- return writer;
307
- }
308
- }
309
- /**
310
- * @generated MessageType for protobuf message raystack.assets.v1beta2.ModelSignature.Parameter
311
- */
312
- export const ModelSignature_Parameter = new ModelSignature_Parameter$Type();
313
- // @generated message type with reflection information, may provide speed optimized methods
314
- class ModelVersion$Type extends MessageType<ModelVersion> {
315
- constructor() {
316
- super("raystack.assets.v1beta2.ModelVersion", [
317
- { no: 1, name: "signature", kind: "message", T: () => ModelSignature },
318
- { no: 2, name: "status", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
319
- { no: 3, name: "version", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
320
- { no: 4, name: "attributes", kind: "message", T: () => Struct },
321
- { no: 5, name: "labels", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "scalar", T: 9 /*ScalarType.STRING*/ } },
322
- { no: 101, name: "create_time", kind: "message", T: () => Timestamp },
323
- { no: 102, name: "update_time", kind: "message", T: () => Timestamp }
324
- ]);
325
- }
326
- create(value?: PartialMessage<ModelVersion>): ModelVersion {
327
- const message = globalThis.Object.create((this.messagePrototype!));
328
- message.status = "";
329
- message.version = "";
330
- message.labels = {};
331
- if (value !== undefined)
332
- reflectionMergePartial<ModelVersion>(this, message, value);
333
- return message;
334
- }
335
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ModelVersion): ModelVersion {
336
- let message = target ?? this.create(), end = reader.pos + length;
337
- while (reader.pos < end) {
338
- let [fieldNo, wireType] = reader.tag();
339
- switch (fieldNo) {
340
- case /* raystack.assets.v1beta2.ModelSignature signature */ 1:
341
- message.signature = ModelSignature.internalBinaryRead(reader, reader.uint32(), options, message.signature);
342
- break;
343
- case /* string status */ 2:
344
- message.status = reader.string();
345
- break;
346
- case /* string version */ 3:
347
- message.version = reader.string();
348
- break;
349
- case /* google.protobuf.Struct attributes */ 4:
350
- message.attributes = Struct.internalBinaryRead(reader, reader.uint32(), options, message.attributes);
351
- break;
352
- case /* map<string, string> labels */ 5:
353
- this.binaryReadMap5(message.labels, reader, options);
354
- break;
355
- case /* google.protobuf.Timestamp create_time */ 101:
356
- message.createTime = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createTime);
357
- break;
358
- case /* google.protobuf.Timestamp update_time */ 102:
359
- message.updateTime = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.updateTime);
360
- break;
361
- default:
362
- let u = options.readUnknownField;
363
- if (u === "throw")
364
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
365
- let d = reader.skip(wireType);
366
- if (u !== false)
367
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
368
- }
369
- }
370
- return message;
371
- }
372
- private binaryReadMap5(map: ModelVersion["labels"], reader: IBinaryReader, options: BinaryReadOptions): void {
373
- let len = reader.uint32(), end = reader.pos + len, key: keyof ModelVersion["labels"] | undefined, val: ModelVersion["labels"][any] | undefined;
374
- while (reader.pos < end) {
375
- let [fieldNo, wireType] = reader.tag();
376
- switch (fieldNo) {
377
- case 1:
378
- key = reader.string();
379
- break;
380
- case 2:
381
- val = reader.string();
382
- break;
383
- default: throw new globalThis.Error("unknown map entry field for raystack.assets.v1beta2.ModelVersion.labels");
384
- }
385
- }
386
- map[key ?? ""] = val ?? "";
387
- }
388
- internalBinaryWrite(message: ModelVersion, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
389
- /* raystack.assets.v1beta2.ModelSignature signature = 1; */
390
- if (message.signature)
391
- ModelSignature.internalBinaryWrite(message.signature, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
392
- /* string status = 2; */
393
- if (message.status !== "")
394
- writer.tag(2, WireType.LengthDelimited).string(message.status);
395
- /* string version = 3; */
396
- if (message.version !== "")
397
- writer.tag(3, WireType.LengthDelimited).string(message.version);
398
- /* google.protobuf.Struct attributes = 4; */
399
- if (message.attributes)
400
- Struct.internalBinaryWrite(message.attributes, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
401
- /* map<string, string> labels = 5; */
402
- for (let k of globalThis.Object.keys(message.labels))
403
- writer.tag(5, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k).tag(2, WireType.LengthDelimited).string(message.labels[k]).join();
404
- /* google.protobuf.Timestamp create_time = 101; */
405
- if (message.createTime)
406
- Timestamp.internalBinaryWrite(message.createTime, writer.tag(101, WireType.LengthDelimited).fork(), options).join();
407
- /* google.protobuf.Timestamp update_time = 102; */
408
- if (message.updateTime)
409
- Timestamp.internalBinaryWrite(message.updateTime, writer.tag(102, WireType.LengthDelimited).fork(), options).join();
410
- let u = options.writeUnknownFields;
411
- if (u !== false)
412
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
413
- return writer;
414
- }
415
- }
416
- /**
417
- * @generated MessageType for protobuf message raystack.assets.v1beta2.ModelVersion
418
- */
419
- export const ModelVersion = new ModelVersion$Type();
420
- // @generated message type with reflection information, may provide speed optimized methods
421
- class Model$Type extends MessageType<Model> {
422
- constructor() {
423
- super("raystack.assets.v1beta2.Model", [
424
- { no: 1, name: "namespace", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
425
- { no: 2, name: "flavor", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
426
- { no: 3, name: "algorithm", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
427
- { no: 4, name: "status", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
428
- { no: 5, name: "versions", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ModelVersion },
429
- { no: 6, name: "attributes", kind: "message", T: () => Struct },
430
- { no: 101, name: "create_time", kind: "message", T: () => Timestamp },
431
- { no: 102, name: "update_time", kind: "message", T: () => Timestamp }
432
- ]);
433
- }
434
- create(value?: PartialMessage<Model>): Model {
435
- const message = globalThis.Object.create((this.messagePrototype!));
436
- message.namespace = "";
437
- message.flavor = "";
438
- message.algorithm = "";
439
- message.status = "";
440
- message.versions = [];
441
- if (value !== undefined)
442
- reflectionMergePartial<Model>(this, message, value);
443
- return message;
444
- }
445
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Model): Model {
446
- let message = target ?? this.create(), end = reader.pos + length;
447
- while (reader.pos < end) {
448
- let [fieldNo, wireType] = reader.tag();
449
- switch (fieldNo) {
450
- case /* string namespace */ 1:
451
- message.namespace = reader.string();
452
- break;
453
- case /* string flavor */ 2:
454
- message.flavor = reader.string();
455
- break;
456
- case /* string algorithm */ 3:
457
- message.algorithm = reader.string();
458
- break;
459
- case /* string status */ 4:
460
- message.status = reader.string();
461
- break;
462
- case /* repeated raystack.assets.v1beta2.ModelVersion versions */ 5:
463
- message.versions.push(ModelVersion.internalBinaryRead(reader, reader.uint32(), options));
464
- break;
465
- case /* google.protobuf.Struct attributes */ 6:
466
- message.attributes = Struct.internalBinaryRead(reader, reader.uint32(), options, message.attributes);
467
- break;
468
- case /* google.protobuf.Timestamp create_time */ 101:
469
- message.createTime = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createTime);
470
- break;
471
- case /* google.protobuf.Timestamp update_time */ 102:
472
- message.updateTime = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.updateTime);
473
- break;
474
- default:
475
- let u = options.readUnknownField;
476
- if (u === "throw")
477
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
478
- let d = reader.skip(wireType);
479
- if (u !== false)
480
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
481
- }
482
- }
483
- return message;
484
- }
485
- internalBinaryWrite(message: Model, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
486
- /* string namespace = 1; */
487
- if (message.namespace !== "")
488
- writer.tag(1, WireType.LengthDelimited).string(message.namespace);
489
- /* string flavor = 2; */
490
- if (message.flavor !== "")
491
- writer.tag(2, WireType.LengthDelimited).string(message.flavor);
492
- /* string algorithm = 3; */
493
- if (message.algorithm !== "")
494
- writer.tag(3, WireType.LengthDelimited).string(message.algorithm);
495
- /* string status = 4; */
496
- if (message.status !== "")
497
- writer.tag(4, WireType.LengthDelimited).string(message.status);
498
- /* repeated raystack.assets.v1beta2.ModelVersion versions = 5; */
499
- for (let i = 0; i < message.versions.length; i++)
500
- ModelVersion.internalBinaryWrite(message.versions[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
501
- /* google.protobuf.Struct attributes = 6; */
502
- if (message.attributes)
503
- Struct.internalBinaryWrite(message.attributes, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
504
- /* google.protobuf.Timestamp create_time = 101; */
505
- if (message.createTime)
506
- Timestamp.internalBinaryWrite(message.createTime, writer.tag(101, WireType.LengthDelimited).fork(), options).join();
507
- /* google.protobuf.Timestamp update_time = 102; */
508
- if (message.updateTime)
509
- Timestamp.internalBinaryWrite(message.updateTime, writer.tag(102, WireType.LengthDelimited).fork(), options).join();
510
- let u = options.writeUnknownFields;
511
- if (u !== false)
512
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
513
- return writer;
514
- }
515
- }
516
- /**
517
- * @generated MessageType for protobuf message raystack.assets.v1beta2.Model
518
- */
519
- export const Model = new Model$Type();