@raystack/proton 0.1.0-ce225175aa066e6f296bc489293bb83ed0edcef6

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 (197) hide show
  1. package/google/api/annotations_pb.ts +33 -0
  2. package/google/api/field_behavior.ts +95 -0
  3. package/google/api/field_behavior_pb.ts +139 -0
  4. package/google/api/http.ts +695 -0
  5. package/google/api/http_pb.ts +547 -0
  6. package/google/api/httpbody.ts +159 -0
  7. package/google/api/httpbody_pb.ts +122 -0
  8. package/google/protobuf/any.ts +322 -0
  9. package/google/protobuf/descriptor.ts +3475 -0
  10. package/google/protobuf/duration.ts +231 -0
  11. package/google/protobuf/struct.ts +484 -0
  12. package/google/protobuf/timestamp.ts +290 -0
  13. package/google/protobuf/wrappers.ts +752 -0
  14. package/package.json +47 -0
  15. package/protoc-gen-openapiv2/options/annotations_pb.ts +78 -0
  16. package/protoc-gen-openapiv2/options/openapiv2.ts +3110 -0
  17. package/protoc-gen-openapiv2/options/openapiv2_pb.ts +1995 -0
  18. package/raystack/assets/index.ts +29 -0
  19. package/raystack/assets/v1beta1/bucket.ts +362 -0
  20. package/raystack/assets/v1beta1/bucket_pb.ts +233 -0
  21. package/raystack/assets/v1beta1/dashboard.ts +426 -0
  22. package/raystack/assets/v1beta1/dashboard_pb.ts +275 -0
  23. package/raystack/assets/v1beta1/event.ts +105 -0
  24. package/raystack/assets/v1beta1/event_pb.ts +70 -0
  25. package/raystack/assets/v1beta1/group.ts +223 -0
  26. package/raystack/assets/v1beta1/group_pb.ts +149 -0
  27. package/raystack/assets/v1beta1/job.ts +147 -0
  28. package/raystack/assets/v1beta1/job_pb.ts +100 -0
  29. package/raystack/assets/v1beta1/lineage.ts +90 -0
  30. package/raystack/assets/v1beta1/lineage_pb.ts +61 -0
  31. package/raystack/assets/v1beta1/ownership.ts +179 -0
  32. package/raystack/assets/v1beta1/ownership_pb.ts +119 -0
  33. package/raystack/assets/v1beta1/preview.ts +87 -0
  34. package/raystack/assets/v1beta1/preview_pb.ts +58 -0
  35. package/raystack/assets/v1beta1/properties.ts +116 -0
  36. package/raystack/assets/v1beta1/properties_pb.ts +63 -0
  37. package/raystack/assets/v1beta1/resource.ts +149 -0
  38. package/raystack/assets/v1beta1/resource_pb.ts +96 -0
  39. package/raystack/assets/v1beta1/schema.ts +421 -0
  40. package/raystack/assets/v1beta1/schema_pb.ts +262 -0
  41. package/raystack/assets/v1beta1/table.ts +408 -0
  42. package/raystack/assets/v1beta1/table_pb.ts +266 -0
  43. package/raystack/assets/v1beta1/timestamp.ts +158 -0
  44. package/raystack/assets/v1beta1/timestamp_pb.ts +107 -0
  45. package/raystack/assets/v1beta1/topic.ts +253 -0
  46. package/raystack/assets/v1beta1/topic_pb.ts +171 -0
  47. package/raystack/assets/v1beta1/user.ts +451 -0
  48. package/raystack/assets/v1beta1/user_pb.ts +292 -0
  49. package/raystack/assets/v1beta2/application.ts +125 -0
  50. package/raystack/assets/v1beta2/application_pb.ts +79 -0
  51. package/raystack/assets/v1beta2/asset.ts +269 -0
  52. package/raystack/assets/v1beta2/asset_pb.ts +157 -0
  53. package/raystack/assets/v1beta2/bucket.ts +341 -0
  54. package/raystack/assets/v1beta2/bucket_pb.ts +215 -0
  55. package/raystack/assets/v1beta2/common.ts +392 -0
  56. package/raystack/assets/v1beta2/common_pb.ts +258 -0
  57. package/raystack/assets/v1beta2/dashboard.ts +393 -0
  58. package/raystack/assets/v1beta2/dashboard_pb.ts +247 -0
  59. package/raystack/assets/v1beta2/experiment.ts +274 -0
  60. package/raystack/assets/v1beta2/experiment_pb.ts +180 -0
  61. package/raystack/assets/v1beta2/feature_table.ts +387 -0
  62. package/raystack/assets/v1beta2/feature_table_pb.ts +237 -0
  63. package/raystack/assets/v1beta2/group.ts +178 -0
  64. package/raystack/assets/v1beta2/group_pb.ts +118 -0
  65. package/raystack/assets/v1beta2/job.ts +99 -0
  66. package/raystack/assets/v1beta2/job_pb.ts +65 -0
  67. package/raystack/assets/v1beta2/metric.ts +163 -0
  68. package/raystack/assets/v1beta2/metric_pb.ts +105 -0
  69. package/raystack/assets/v1beta2/model.ts +519 -0
  70. package/raystack/assets/v1beta2/model_pb.ts +322 -0
  71. package/raystack/assets/v1beta2/table.ts +663 -0
  72. package/raystack/assets/v1beta2/table_pb.ts +409 -0
  73. package/raystack/assets/v1beta2/topic.ts +275 -0
  74. package/raystack/assets/v1beta2/topic_pb.ts +181 -0
  75. package/raystack/assets/v1beta2/user.ts +433 -0
  76. package/raystack/assets/v1beta2/user_pb.ts +277 -0
  77. package/raystack/common/index.ts +3 -0
  78. package/raystack/common/v1/service-CommonService_connectquery.ts +21 -0
  79. package/raystack/common/v1/service.client.ts +37 -0
  80. package/raystack/common/v1/service.ts +245 -0
  81. package/raystack/common/v1/service_connect.ts +26 -0
  82. package/raystack/common/v1/service_pb.ts +149 -0
  83. package/raystack/compass/index.ts +3 -0
  84. package/raystack/compass/v1beta1/service-CompassService_connectquery.ts +605 -0
  85. package/raystack/compass/v1beta1/service.client.ts +594 -0
  86. package/raystack/compass/v1beta1/service.ts +8169 -0
  87. package/raystack/compass/v1beta1/service_connect.ts +407 -0
  88. package/raystack/compass/v1beta1/service_pb.ts +4975 -0
  89. package/raystack/entropy/index.ts +6 -0
  90. package/raystack/entropy/v1beta1/module-ModuleService_connectquery.ts +77 -0
  91. package/raystack/entropy/v1beta1/module.client.ts +89 -0
  92. package/raystack/entropy/v1beta1/module.ts +692 -0
  93. package/raystack/entropy/v1beta1/module_connect.ts +62 -0
  94. package/raystack/entropy/v1beta1/module_pb.ts +445 -0
  95. package/raystack/entropy/v1beta1/resource-ResourceService_connectquery.ts +105 -0
  96. package/raystack/entropy/v1beta1/resource.client.ts +129 -0
  97. package/raystack/entropy/v1beta1/resource.ts +1817 -0
  98. package/raystack/entropy/v1beta1/resource_connect.ts +89 -0
  99. package/raystack/entropy/v1beta1/resource_pb.ts +1092 -0
  100. package/raystack/frontier/index.ts +7 -0
  101. package/raystack/frontier/v1beta1/admin-AdminService_connectquery.ts +756 -0
  102. package/raystack/frontier/v1beta1/admin.client.ts +849 -0
  103. package/raystack/frontier/v1beta1/admin.ts +9007 -0
  104. package/raystack/frontier/v1beta1/admin_connect.ts +573 -0
  105. package/raystack/frontier/v1beta1/admin_pb.ts +5615 -0
  106. package/raystack/frontier/v1beta1/frontier-FrontierService_connectquery.ts +2399 -0
  107. package/raystack/frontier/v1beta1/frontier.client.ts +2307 -0
  108. package/raystack/frontier/v1beta1/frontier.ts +23706 -0
  109. package/raystack/frontier/v1beta1/frontier_connect.ts +1574 -0
  110. package/raystack/frontier/v1beta1/frontier_pb.ts +15258 -0
  111. package/raystack/frontier/v1beta1/models.ts +7433 -0
  112. package/raystack/frontier/v1beta1/models_pb.ts +4345 -0
  113. package/raystack/guardian/index.ts +3 -0
  114. package/raystack/guardian/v1beta1/guardian-GuardianService_connectquery.ts +569 -0
  115. package/raystack/guardian/v1beta1/guardian.client.ts +552 -0
  116. package/raystack/guardian/v1beta1/guardian.ts +9688 -0
  117. package/raystack/guardian/v1beta1/guardian_connect.ts +381 -0
  118. package/raystack/guardian/v1beta1/guardian_pb.ts +5858 -0
  119. package/raystack/optimus/core/v1beta1/backup-BackupService_connectquery.ts +49 -0
  120. package/raystack/optimus/core/v1beta1/backup.client.ts +63 -0
  121. package/raystack/optimus/core/v1beta1/backup.ts +708 -0
  122. package/raystack/optimus/core/v1beta1/backup_connect.ts +44 -0
  123. package/raystack/optimus/core/v1beta1/backup_pb.ts +406 -0
  124. package/raystack/optimus/core/v1beta1/job_run-JobRunService_connectquery.ts +71 -0
  125. package/raystack/optimus/core/v1beta1/job_run.client.ts +96 -0
  126. package/raystack/optimus/core/v1beta1/job_run.ts +1008 -0
  127. package/raystack/optimus/core/v1beta1/job_run_connect.ts +63 -0
  128. package/raystack/optimus/core/v1beta1/job_run_pb.ts +612 -0
  129. package/raystack/optimus/core/v1beta1/job_spec-JobSpecificationService_connectquery.ts +249 -0
  130. package/raystack/optimus/core/v1beta1/job_spec.client.ts +363 -0
  131. package/raystack/optimus/core/v1beta1/job_spec.ts +5134 -0
  132. package/raystack/optimus/core/v1beta1/job_spec_connect.ts +233 -0
  133. package/raystack/optimus/core/v1beta1/job_spec_pb.ts +3196 -0
  134. package/raystack/optimus/core/v1beta1/namespace-NamespaceService_connectquery.ts +55 -0
  135. package/raystack/optimus/core/v1beta1/namespace.client.ts +75 -0
  136. package/raystack/optimus/core/v1beta1/namespace.ts +477 -0
  137. package/raystack/optimus/core/v1beta1/namespace_connect.ts +50 -0
  138. package/raystack/optimus/core/v1beta1/namespace_pb.ts +291 -0
  139. package/raystack/optimus/core/v1beta1/project-ProjectService_connectquery.ts +55 -0
  140. package/raystack/optimus/core/v1beta1/project.client.ts +75 -0
  141. package/raystack/optimus/core/v1beta1/project.ts +520 -0
  142. package/raystack/optimus/core/v1beta1/project_connect.ts +50 -0
  143. package/raystack/optimus/core/v1beta1/project_pb.ts +322 -0
  144. package/raystack/optimus/core/v1beta1/replay-ReplayService_connectquery.ts +63 -0
  145. package/raystack/optimus/core/v1beta1/replay.client.ts +76 -0
  146. package/raystack/optimus/core/v1beta1/replay.ts +881 -0
  147. package/raystack/optimus/core/v1beta1/replay_connect.ts +53 -0
  148. package/raystack/optimus/core/v1beta1/replay_pb.ts +522 -0
  149. package/raystack/optimus/core/v1beta1/resource-ResourceService_connectquery.ts +104 -0
  150. package/raystack/optimus/core/v1beta1/resource.client.ts +148 -0
  151. package/raystack/optimus/core/v1beta1/resource.ts +1329 -0
  152. package/raystack/optimus/core/v1beta1/resource_connect.ts +96 -0
  153. package/raystack/optimus/core/v1beta1/resource_pb.ts +791 -0
  154. package/raystack/optimus/core/v1beta1/runtime-RuntimeService_connectquery.ts +23 -0
  155. package/raystack/optimus/core/v1beta1/runtime.client.ts +45 -0
  156. package/raystack/optimus/core/v1beta1/runtime.ts +131 -0
  157. package/raystack/optimus/core/v1beta1/runtime_connect.ts +30 -0
  158. package/raystack/optimus/core/v1beta1/runtime_pb.ts +82 -0
  159. package/raystack/optimus/core/v1beta1/secret-SecretService_connectquery.ts +71 -0
  160. package/raystack/optimus/core/v1beta1/secret.client.ts +92 -0
  161. package/raystack/optimus/core/v1beta1/secret.ts +619 -0
  162. package/raystack/optimus/core/v1beta1/secret_connect.ts +61 -0
  163. package/raystack/optimus/core/v1beta1/secret_pb.ts +393 -0
  164. package/raystack/optimus/core/v1beta1/status.ts +113 -0
  165. package/raystack/optimus/core/v1beta1/status_pb.ts +101 -0
  166. package/raystack/optimus/integration/v1beta1/event.ts +531 -0
  167. package/raystack/optimus/integration/v1beta1/event_pb.ts +362 -0
  168. package/raystack/optimus/plugins/v1beta1/dependency_resolver-DependencyResolverModService_connectquery.ts +72 -0
  169. package/raystack/optimus/plugins/v1beta1/dependency_resolver.client.ts +100 -0
  170. package/raystack/optimus/plugins/v1beta1/dependency_resolver.ts +950 -0
  171. package/raystack/optimus/plugins/v1beta1/dependency_resolver_connect.ts +65 -0
  172. package/raystack/optimus/plugins/v1beta1/dependency_resolver_pb.ts +604 -0
  173. package/raystack/predator/index.ts +2 -0
  174. package/raystack/predator/v1beta1/metrics_log.ts +457 -0
  175. package/raystack/predator/v1beta1/metrics_log_pb.ts +277 -0
  176. package/raystack/predator/v1beta1/result_log.ts +390 -0
  177. package/raystack/predator/v1beta1/result_log_pb.ts +235 -0
  178. package/raystack/raccoon/index.ts +3 -0
  179. package/raystack/raccoon/v1beta1/raccoon-EventService_connectquery.ts +21 -0
  180. package/raystack/raccoon/v1beta1/raccoon.client.ts +37 -0
  181. package/raystack/raccoon/v1beta1/raccoon.ts +442 -0
  182. package/raystack/raccoon/v1beta1/raccoon_connect.ts +26 -0
  183. package/raystack/raccoon/v1beta1/raccoon_pb.ts +324 -0
  184. package/raystack/siren/index.ts +3 -0
  185. package/raystack/siren/v1beta1/siren-SirenService_connectquery.ts +497 -0
  186. package/raystack/siren/v1beta1/siren.client.ts +479 -0
  187. package/raystack/siren/v1beta1/siren.ts +6507 -0
  188. package/raystack/siren/v1beta1/siren_connect.ts +332 -0
  189. package/raystack/siren/v1beta1/siren_pb.ts +3853 -0
  190. package/raystack/stencil/index.ts +3 -0
  191. package/raystack/stencil/v1beta1/stencil-StencilService_connectquery.ts +231 -0
  192. package/raystack/stencil/v1beta1/stencil.client.ts +232 -0
  193. package/raystack/stencil/v1beta1/stencil.ts +2716 -0
  194. package/raystack/stencil/v1beta1/stencil_connect.ts +161 -0
  195. package/raystack/stencil/v1beta1/stencil_pb.ts +1729 -0
  196. package/validate/validate.ts +4130 -0
  197. package/validate/validate_pb.ts +2621 -0
@@ -0,0 +1,44 @@
1
+ // @generated by protoc-gen-connect-es v1.6.1 with parameter "target=ts"
2
+ // @generated from file raystack/optimus/core/v1beta1/backup.proto (package raystack.optimus.core.v1beta1, syntax proto3)
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+
6
+ import { CreateBackupRequest, CreateBackupResponse, GetBackupRequest, GetBackupResponse, ListBackupsRequest, ListBackupsResponse } from "./backup_pb.js";
7
+ import { MethodKind } from "@bufbuild/protobuf";
8
+
9
+ /**
10
+ * @generated from service raystack.optimus.core.v1beta1.BackupService
11
+ */
12
+ export const BackupService = {
13
+ typeName: "raystack.optimus.core.v1beta1.BackupService",
14
+ methods: {
15
+ /**
16
+ * @generated from rpc raystack.optimus.core.v1beta1.BackupService.CreateBackup
17
+ */
18
+ createBackup: {
19
+ name: "CreateBackup",
20
+ I: CreateBackupRequest,
21
+ O: CreateBackupResponse,
22
+ kind: MethodKind.Unary,
23
+ },
24
+ /**
25
+ * @generated from rpc raystack.optimus.core.v1beta1.BackupService.ListBackups
26
+ */
27
+ listBackups: {
28
+ name: "ListBackups",
29
+ I: ListBackupsRequest,
30
+ O: ListBackupsResponse,
31
+ kind: MethodKind.Unary,
32
+ },
33
+ /**
34
+ * @generated from rpc raystack.optimus.core.v1beta1.BackupService.GetBackup
35
+ */
36
+ getBackup: {
37
+ name: "GetBackup",
38
+ I: GetBackupRequest,
39
+ O: GetBackupResponse,
40
+ kind: MethodKind.Unary,
41
+ },
42
+ }
43
+ } as const;
44
+
@@ -0,0 +1,406 @@
1
+ // @generated by protoc-gen-es v1.10.1 with parameter "target=ts,import_extension=none"
2
+ // @generated from file raystack/optimus/core/v1beta1/backup.proto (package raystack.optimus.core.v1beta1, syntax proto3)
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+
6
+ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
7
+ import { Message, proto3, Timestamp } from "@bufbuild/protobuf";
8
+
9
+ /**
10
+ * @generated from message raystack.optimus.core.v1beta1.IgnoredResource
11
+ */
12
+ export class IgnoredResource extends Message<IgnoredResource> {
13
+ /**
14
+ * @generated from field: string name = 1;
15
+ */
16
+ name = "";
17
+
18
+ /**
19
+ * @generated from field: string reason = 2;
20
+ */
21
+ reason = "";
22
+
23
+ constructor(data?: PartialMessage<IgnoredResource>) {
24
+ super();
25
+ proto3.util.initPartial(data, this);
26
+ }
27
+
28
+ static readonly runtime: typeof proto3 = proto3;
29
+ static readonly typeName = "raystack.optimus.core.v1beta1.IgnoredResource";
30
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
31
+ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
32
+ { no: 2, name: "reason", kind: "scalar", T: 9 /* ScalarType.STRING */ },
33
+ ]);
34
+
35
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): IgnoredResource {
36
+ return new IgnoredResource().fromBinary(bytes, options);
37
+ }
38
+
39
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): IgnoredResource {
40
+ return new IgnoredResource().fromJson(jsonValue, options);
41
+ }
42
+
43
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): IgnoredResource {
44
+ return new IgnoredResource().fromJsonString(jsonString, options);
45
+ }
46
+
47
+ static equals(a: IgnoredResource | PlainMessage<IgnoredResource> | undefined, b: IgnoredResource | PlainMessage<IgnoredResource> | undefined): boolean {
48
+ return proto3.util.equals(IgnoredResource, a, b);
49
+ }
50
+ }
51
+
52
+ /**
53
+ * @generated from message raystack.optimus.core.v1beta1.CreateBackupRequest
54
+ */
55
+ export class CreateBackupRequest extends Message<CreateBackupRequest> {
56
+ /**
57
+ * @generated from field: string project_name = 1;
58
+ */
59
+ projectName = "";
60
+
61
+ /**
62
+ * @generated from field: string datastore_name = 2;
63
+ */
64
+ datastoreName = "";
65
+
66
+ /**
67
+ * @generated from field: string namespace_name = 4;
68
+ */
69
+ namespaceName = "";
70
+
71
+ /**
72
+ * @generated from field: string description = 5;
73
+ */
74
+ description = "";
75
+
76
+ /**
77
+ * @generated from field: map<string, string> config = 7;
78
+ */
79
+ config: { [key: string]: string } = {};
80
+
81
+ /**
82
+ * @generated from field: repeated string resource_names = 9;
83
+ */
84
+ resourceNames: string[] = [];
85
+
86
+ constructor(data?: PartialMessage<CreateBackupRequest>) {
87
+ super();
88
+ proto3.util.initPartial(data, this);
89
+ }
90
+
91
+ static readonly runtime: typeof proto3 = proto3;
92
+ static readonly typeName = "raystack.optimus.core.v1beta1.CreateBackupRequest";
93
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
94
+ { no: 1, name: "project_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
95
+ { no: 2, name: "datastore_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
96
+ { no: 4, name: "namespace_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
97
+ { no: 5, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
98
+ { no: 7, name: "config", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
99
+ { no: 9, name: "resource_names", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
100
+ ]);
101
+
102
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateBackupRequest {
103
+ return new CreateBackupRequest().fromBinary(bytes, options);
104
+ }
105
+
106
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateBackupRequest {
107
+ return new CreateBackupRequest().fromJson(jsonValue, options);
108
+ }
109
+
110
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateBackupRequest {
111
+ return new CreateBackupRequest().fromJsonString(jsonString, options);
112
+ }
113
+
114
+ static equals(a: CreateBackupRequest | PlainMessage<CreateBackupRequest> | undefined, b: CreateBackupRequest | PlainMessage<CreateBackupRequest> | undefined): boolean {
115
+ return proto3.util.equals(CreateBackupRequest, a, b);
116
+ }
117
+ }
118
+
119
+ /**
120
+ * @generated from message raystack.optimus.core.v1beta1.CreateBackupResponse
121
+ */
122
+ export class CreateBackupResponse extends Message<CreateBackupResponse> {
123
+ /**
124
+ * @generated from field: repeated string resource_names = 1;
125
+ */
126
+ resourceNames: string[] = [];
127
+
128
+ /**
129
+ * @generated from field: repeated raystack.optimus.core.v1beta1.IgnoredResource ignored_resources = 3;
130
+ */
131
+ ignoredResources: IgnoredResource[] = [];
132
+
133
+ /**
134
+ * @generated from field: string backup_id = 4;
135
+ */
136
+ backupId = "";
137
+
138
+ constructor(data?: PartialMessage<CreateBackupResponse>) {
139
+ super();
140
+ proto3.util.initPartial(data, this);
141
+ }
142
+
143
+ static readonly runtime: typeof proto3 = proto3;
144
+ static readonly typeName = "raystack.optimus.core.v1beta1.CreateBackupResponse";
145
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
146
+ { no: 1, name: "resource_names", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
147
+ { no: 3, name: "ignored_resources", kind: "message", T: IgnoredResource, repeated: true },
148
+ { no: 4, name: "backup_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
149
+ ]);
150
+
151
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateBackupResponse {
152
+ return new CreateBackupResponse().fromBinary(bytes, options);
153
+ }
154
+
155
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateBackupResponse {
156
+ return new CreateBackupResponse().fromJson(jsonValue, options);
157
+ }
158
+
159
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateBackupResponse {
160
+ return new CreateBackupResponse().fromJsonString(jsonString, options);
161
+ }
162
+
163
+ static equals(a: CreateBackupResponse | PlainMessage<CreateBackupResponse> | undefined, b: CreateBackupResponse | PlainMessage<CreateBackupResponse> | undefined): boolean {
164
+ return proto3.util.equals(CreateBackupResponse, a, b);
165
+ }
166
+ }
167
+
168
+ /**
169
+ * @generated from message raystack.optimus.core.v1beta1.ListBackupsRequest
170
+ */
171
+ export class ListBackupsRequest extends Message<ListBackupsRequest> {
172
+ /**
173
+ * @generated from field: string project_name = 1;
174
+ */
175
+ projectName = "";
176
+
177
+ /**
178
+ * @generated from field: string datastore_name = 2;
179
+ */
180
+ datastoreName = "";
181
+
182
+ /**
183
+ * @generated from field: string namespace_name = 3;
184
+ */
185
+ namespaceName = "";
186
+
187
+ constructor(data?: PartialMessage<ListBackupsRequest>) {
188
+ super();
189
+ proto3.util.initPartial(data, this);
190
+ }
191
+
192
+ static readonly runtime: typeof proto3 = proto3;
193
+ static readonly typeName = "raystack.optimus.core.v1beta1.ListBackupsRequest";
194
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
195
+ { no: 1, name: "project_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
196
+ { no: 2, name: "datastore_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
197
+ { no: 3, name: "namespace_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
198
+ ]);
199
+
200
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListBackupsRequest {
201
+ return new ListBackupsRequest().fromBinary(bytes, options);
202
+ }
203
+
204
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListBackupsRequest {
205
+ return new ListBackupsRequest().fromJson(jsonValue, options);
206
+ }
207
+
208
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListBackupsRequest {
209
+ return new ListBackupsRequest().fromJsonString(jsonString, options);
210
+ }
211
+
212
+ static equals(a: ListBackupsRequest | PlainMessage<ListBackupsRequest> | undefined, b: ListBackupsRequest | PlainMessage<ListBackupsRequest> | undefined): boolean {
213
+ return proto3.util.equals(ListBackupsRequest, a, b);
214
+ }
215
+ }
216
+
217
+ /**
218
+ * @generated from message raystack.optimus.core.v1beta1.ListBackupsResponse
219
+ */
220
+ export class ListBackupsResponse extends Message<ListBackupsResponse> {
221
+ /**
222
+ * @generated from field: repeated raystack.optimus.core.v1beta1.BackupSpec backups = 1;
223
+ */
224
+ backups: BackupSpec[] = [];
225
+
226
+ constructor(data?: PartialMessage<ListBackupsResponse>) {
227
+ super();
228
+ proto3.util.initPartial(data, this);
229
+ }
230
+
231
+ static readonly runtime: typeof proto3 = proto3;
232
+ static readonly typeName = "raystack.optimus.core.v1beta1.ListBackupsResponse";
233
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
234
+ { no: 1, name: "backups", kind: "message", T: BackupSpec, repeated: true },
235
+ ]);
236
+
237
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListBackupsResponse {
238
+ return new ListBackupsResponse().fromBinary(bytes, options);
239
+ }
240
+
241
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListBackupsResponse {
242
+ return new ListBackupsResponse().fromJson(jsonValue, options);
243
+ }
244
+
245
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListBackupsResponse {
246
+ return new ListBackupsResponse().fromJsonString(jsonString, options);
247
+ }
248
+
249
+ static equals(a: ListBackupsResponse | PlainMessage<ListBackupsResponse> | undefined, b: ListBackupsResponse | PlainMessage<ListBackupsResponse> | undefined): boolean {
250
+ return proto3.util.equals(ListBackupsResponse, a, b);
251
+ }
252
+ }
253
+
254
+ /**
255
+ * @generated from message raystack.optimus.core.v1beta1.BackupSpec
256
+ */
257
+ export class BackupSpec extends Message<BackupSpec> {
258
+ /**
259
+ * @generated from field: string id = 1;
260
+ */
261
+ id = "";
262
+
263
+ /**
264
+ * @generated from field: google.protobuf.Timestamp created_at = 3;
265
+ */
266
+ createdAt?: Timestamp;
267
+
268
+ /**
269
+ * @generated from field: string description = 4;
270
+ */
271
+ description = "";
272
+
273
+ /**
274
+ * @generated from field: map<string, string> config = 5;
275
+ */
276
+ config: { [key: string]: string } = {};
277
+
278
+ /**
279
+ * @generated from field: repeated string resource_names = 6;
280
+ */
281
+ resourceNames: string[] = [];
282
+
283
+ constructor(data?: PartialMessage<BackupSpec>) {
284
+ super();
285
+ proto3.util.initPartial(data, this);
286
+ }
287
+
288
+ static readonly runtime: typeof proto3 = proto3;
289
+ static readonly typeName = "raystack.optimus.core.v1beta1.BackupSpec";
290
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
291
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
292
+ { no: 3, name: "created_at", kind: "message", T: Timestamp },
293
+ { no: 4, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
294
+ { no: 5, name: "config", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
295
+ { no: 6, name: "resource_names", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
296
+ ]);
297
+
298
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BackupSpec {
299
+ return new BackupSpec().fromBinary(bytes, options);
300
+ }
301
+
302
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BackupSpec {
303
+ return new BackupSpec().fromJson(jsonValue, options);
304
+ }
305
+
306
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BackupSpec {
307
+ return new BackupSpec().fromJsonString(jsonString, options);
308
+ }
309
+
310
+ static equals(a: BackupSpec | PlainMessage<BackupSpec> | undefined, b: BackupSpec | PlainMessage<BackupSpec> | undefined): boolean {
311
+ return proto3.util.equals(BackupSpec, a, b);
312
+ }
313
+ }
314
+
315
+ /**
316
+ * @generated from message raystack.optimus.core.v1beta1.GetBackupRequest
317
+ */
318
+ export class GetBackupRequest extends Message<GetBackupRequest> {
319
+ /**
320
+ * @generated from field: string project_name = 1;
321
+ */
322
+ projectName = "";
323
+
324
+ /**
325
+ * @generated from field: string datastore_name = 2;
326
+ */
327
+ datastoreName = "";
328
+
329
+ /**
330
+ * @generated from field: string namespace_name = 3;
331
+ */
332
+ namespaceName = "";
333
+
334
+ /**
335
+ * @generated from field: string id = 4;
336
+ */
337
+ id = "";
338
+
339
+ constructor(data?: PartialMessage<GetBackupRequest>) {
340
+ super();
341
+ proto3.util.initPartial(data, this);
342
+ }
343
+
344
+ static readonly runtime: typeof proto3 = proto3;
345
+ static readonly typeName = "raystack.optimus.core.v1beta1.GetBackupRequest";
346
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
347
+ { no: 1, name: "project_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
348
+ { no: 2, name: "datastore_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
349
+ { no: 3, name: "namespace_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
350
+ { no: 4, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
351
+ ]);
352
+
353
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetBackupRequest {
354
+ return new GetBackupRequest().fromBinary(bytes, options);
355
+ }
356
+
357
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetBackupRequest {
358
+ return new GetBackupRequest().fromJson(jsonValue, options);
359
+ }
360
+
361
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetBackupRequest {
362
+ return new GetBackupRequest().fromJsonString(jsonString, options);
363
+ }
364
+
365
+ static equals(a: GetBackupRequest | PlainMessage<GetBackupRequest> | undefined, b: GetBackupRequest | PlainMessage<GetBackupRequest> | undefined): boolean {
366
+ return proto3.util.equals(GetBackupRequest, a, b);
367
+ }
368
+ }
369
+
370
+ /**
371
+ * @generated from message raystack.optimus.core.v1beta1.GetBackupResponse
372
+ */
373
+ export class GetBackupResponse extends Message<GetBackupResponse> {
374
+ /**
375
+ * @generated from field: raystack.optimus.core.v1beta1.BackupSpec spec = 1;
376
+ */
377
+ spec?: BackupSpec;
378
+
379
+ constructor(data?: PartialMessage<GetBackupResponse>) {
380
+ super();
381
+ proto3.util.initPartial(data, this);
382
+ }
383
+
384
+ static readonly runtime: typeof proto3 = proto3;
385
+ static readonly typeName = "raystack.optimus.core.v1beta1.GetBackupResponse";
386
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
387
+ { no: 1, name: "spec", kind: "message", T: BackupSpec },
388
+ ]);
389
+
390
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetBackupResponse {
391
+ return new GetBackupResponse().fromBinary(bytes, options);
392
+ }
393
+
394
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetBackupResponse {
395
+ return new GetBackupResponse().fromJson(jsonValue, options);
396
+ }
397
+
398
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetBackupResponse {
399
+ return new GetBackupResponse().fromJsonString(jsonString, options);
400
+ }
401
+
402
+ static equals(a: GetBackupResponse | PlainMessage<GetBackupResponse> | undefined, b: GetBackupResponse | PlainMessage<GetBackupResponse> | undefined): boolean {
403
+ return proto3.util.equals(GetBackupResponse, a, b);
404
+ }
405
+ }
406
+
@@ -0,0 +1,71 @@
1
+ // @generated by protoc-gen-connect-query v1.4.2 with parameter "target=ts"
2
+ // @generated from file raystack/optimus/core/v1beta1/job_run.proto (package raystack.optimus.core.v1beta1, syntax proto3)
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+
6
+ import { MethodKind } from "@bufbuild/protobuf";
7
+ import { JobRunInputRequest, JobRunInputResponse, JobRunRequest, JobRunResponse, RegisterJobEventRequest, RegisterJobEventResponse, UploadToSchedulerRequest, UploadToSchedulerResponse } from "./job_run_pb.js";
8
+
9
+ /**
10
+ * JobRunInput is used to fetch task/hook compiled configuration and assets.
11
+ *
12
+ * @generated from rpc raystack.optimus.core.v1beta1.JobRunService.JobRunInput
13
+ */
14
+ export const jobRunInput = {
15
+ localName: "jobRunInput",
16
+ name: "JobRunInput",
17
+ kind: MethodKind.Unary,
18
+ I: JobRunInputRequest,
19
+ O: JobRunInputResponse,
20
+ service: {
21
+ typeName: "raystack.optimus.core.v1beta1.JobRunService"
22
+ }
23
+ } as const;
24
+
25
+ /**
26
+ * JobRun returns the current and past run status of jobs on a given range
27
+ *
28
+ * @generated from rpc raystack.optimus.core.v1beta1.JobRunService.JobRun
29
+ */
30
+ export const jobRun = {
31
+ localName: "jobRun",
32
+ name: "JobRun",
33
+ kind: MethodKind.Unary,
34
+ I: JobRunRequest,
35
+ O: JobRunResponse,
36
+ service: {
37
+ typeName: "raystack.optimus.core.v1beta1.JobRunService"
38
+ }
39
+ } as const;
40
+
41
+ /**
42
+ * RegisterJobEvent notifies optimus service about an event related to job
43
+ *
44
+ * @generated from rpc raystack.optimus.core.v1beta1.JobRunService.RegisterJobEvent
45
+ */
46
+ export const registerJobEvent = {
47
+ localName: "registerJobEvent",
48
+ name: "RegisterJobEvent",
49
+ kind: MethodKind.Unary,
50
+ I: RegisterJobEventRequest,
51
+ O: RegisterJobEventResponse,
52
+ service: {
53
+ typeName: "raystack.optimus.core.v1beta1.JobRunService"
54
+ }
55
+ } as const;
56
+
57
+ /**
58
+ * UploadToScheduler comiles jobSpec from database into DAGs and uploads the generated DAGs to scheduler
59
+ *
60
+ * @generated from rpc raystack.optimus.core.v1beta1.JobRunService.UploadToScheduler
61
+ */
62
+ export const uploadToScheduler = {
63
+ localName: "uploadToScheduler",
64
+ name: "UploadToScheduler",
65
+ kind: MethodKind.Unary,
66
+ I: UploadToSchedulerRequest,
67
+ O: UploadToSchedulerResponse,
68
+ service: {
69
+ typeName: "raystack.optimus.core.v1beta1.JobRunService"
70
+ }
71
+ } as const;
@@ -0,0 +1,96 @@
1
+ // @generated by protobuf-ts 2.11.1
2
+ // @generated from protobuf file "raystack/optimus/core/v1beta1/job_run.proto" (package "raystack.optimus.core.v1beta1", syntax proto3)
3
+ // tslint:disable
4
+ import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
5
+ import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
6
+ import { JobRunService } from "./job_run";
7
+ import type { UploadToSchedulerResponse } from "./job_run";
8
+ import type { UploadToSchedulerRequest } from "./job_run";
9
+ import type { RegisterJobEventResponse } from "./job_run";
10
+ import type { RegisterJobEventRequest } from "./job_run";
11
+ import type { JobRunResponse } from "./job_run";
12
+ import type { JobRunRequest } from "./job_run";
13
+ import { stackIntercept } from "@protobuf-ts/runtime-rpc";
14
+ import type { JobRunInputResponse } from "./job_run";
15
+ import type { JobRunInputRequest } from "./job_run";
16
+ import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
17
+ import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
18
+ /**
19
+ * todo: should this not be called, scheduler service, as this will also, manage the runtime functions , like airflow events
20
+ *
21
+ * @generated from protobuf service raystack.optimus.core.v1beta1.JobRunService
22
+ */
23
+ export interface IJobRunServiceClient {
24
+ /**
25
+ * JobRunInput is used to fetch task/hook compiled configuration and assets.
26
+ *
27
+ * @generated from protobuf rpc: JobRunInput
28
+ */
29
+ jobRunInput(input: JobRunInputRequest, options?: RpcOptions): UnaryCall<JobRunInputRequest, JobRunInputResponse>;
30
+ /**
31
+ * JobRun returns the current and past run status of jobs on a given range
32
+ *
33
+ * @generated from protobuf rpc: JobRun
34
+ */
35
+ jobRun(input: JobRunRequest, options?: RpcOptions): UnaryCall<JobRunRequest, JobRunResponse>;
36
+ /**
37
+ * RegisterJobEvent notifies optimus service about an event related to job
38
+ *
39
+ * @generated from protobuf rpc: RegisterJobEvent
40
+ */
41
+ registerJobEvent(input: RegisterJobEventRequest, options?: RpcOptions): UnaryCall<RegisterJobEventRequest, RegisterJobEventResponse>;
42
+ /**
43
+ * UploadToScheduler comiles jobSpec from database into DAGs and uploads the generated DAGs to scheduler
44
+ *
45
+ * @generated from protobuf rpc: UploadToScheduler
46
+ */
47
+ uploadToScheduler(input: UploadToSchedulerRequest, options?: RpcOptions): UnaryCall<UploadToSchedulerRequest, UploadToSchedulerResponse>;
48
+ }
49
+ /**
50
+ * todo: should this not be called, scheduler service, as this will also, manage the runtime functions , like airflow events
51
+ *
52
+ * @generated from protobuf service raystack.optimus.core.v1beta1.JobRunService
53
+ */
54
+ export class JobRunServiceClient implements IJobRunServiceClient, ServiceInfo {
55
+ typeName = JobRunService.typeName;
56
+ methods = JobRunService.methods;
57
+ options = JobRunService.options;
58
+ constructor(private readonly _transport: RpcTransport) {
59
+ }
60
+ /**
61
+ * JobRunInput is used to fetch task/hook compiled configuration and assets.
62
+ *
63
+ * @generated from protobuf rpc: JobRunInput
64
+ */
65
+ jobRunInput(input: JobRunInputRequest, options?: RpcOptions): UnaryCall<JobRunInputRequest, JobRunInputResponse> {
66
+ const method = this.methods[0], opt = this._transport.mergeOptions(options);
67
+ return stackIntercept<JobRunInputRequest, JobRunInputResponse>("unary", this._transport, method, opt, input);
68
+ }
69
+ /**
70
+ * JobRun returns the current and past run status of jobs on a given range
71
+ *
72
+ * @generated from protobuf rpc: JobRun
73
+ */
74
+ jobRun(input: JobRunRequest, options?: RpcOptions): UnaryCall<JobRunRequest, JobRunResponse> {
75
+ const method = this.methods[1], opt = this._transport.mergeOptions(options);
76
+ return stackIntercept<JobRunRequest, JobRunResponse>("unary", this._transport, method, opt, input);
77
+ }
78
+ /**
79
+ * RegisterJobEvent notifies optimus service about an event related to job
80
+ *
81
+ * @generated from protobuf rpc: RegisterJobEvent
82
+ */
83
+ registerJobEvent(input: RegisterJobEventRequest, options?: RpcOptions): UnaryCall<RegisterJobEventRequest, RegisterJobEventResponse> {
84
+ const method = this.methods[2], opt = this._transport.mergeOptions(options);
85
+ return stackIntercept<RegisterJobEventRequest, RegisterJobEventResponse>("unary", this._transport, method, opt, input);
86
+ }
87
+ /**
88
+ * UploadToScheduler comiles jobSpec from database into DAGs and uploads the generated DAGs to scheduler
89
+ *
90
+ * @generated from protobuf rpc: UploadToScheduler
91
+ */
92
+ uploadToScheduler(input: UploadToSchedulerRequest, options?: RpcOptions): UnaryCall<UploadToSchedulerRequest, UploadToSchedulerResponse> {
93
+ const method = this.methods[3], opt = this._transport.mergeOptions(options);
94
+ return stackIntercept<UploadToSchedulerRequest, UploadToSchedulerResponse>("unary", this._transport, method, opt, input);
95
+ }
96
+ }