@raystack/proton 0.1.0-ce225175aa066e6f296bc489293bb83ed0edcef6 → 0.1.0-d7ccfeef8ed0a304b5da3537c1b2bb5e7d99c77c

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 (383) hide show
  1. package/README.md +115 -0
  2. package/google/api/annotations_pb.d.ts +34 -0
  3. package/google/api/annotations_pb.js +36 -0
  4. package/google/api/annotations_pb.ts +15 -9
  5. package/google/api/field_behavior_pb.d.ts +134 -0
  6. package/google/api/field_behavior_pb.js +65 -0
  7. package/google/api/field_behavior_pb.ts +19 -19
  8. package/google/api/http_pb.d.ts +477 -0
  9. package/google/api/http_pb.js +47 -0
  10. package/google/api/http_pb.ts +43 -108
  11. package/google/api/httpbody_pb.d.ts +104 -0
  12. package/google/api/httpbody_pb.js +34 -0
  13. package/google/api/httpbody_pb.ts +23 -37
  14. package/index.d.ts +10 -0
  15. package/index.js +10 -0
  16. package/index.ts +10 -0
  17. package/package.json +64 -17
  18. package/protoc-gen-openapiv2/options/annotations_pb.d.ts +63 -0
  19. package/protoc-gen-openapiv2/options/annotations_pb.js +69 -0
  20. package/protoc-gen-openapiv2/options/annotations_pb.ts +23 -29
  21. package/protoc-gen-openapiv2/options/openapiv2_pb.d.ts +1497 -0
  22. package/protoc-gen-openapiv2/options/openapiv2_pb.js +232 -0
  23. package/protoc-gen-openapiv2/options/openapiv2_pb.ts +338 -808
  24. package/raystack/assets/index.d.ts +29 -0
  25. package/raystack/assets/index.js +29 -0
  26. package/raystack/assets/index.ts +29 -29
  27. package/raystack/assets/v1beta1/bucket_pb.d.ts +180 -0
  28. package/raystack/assets/v1beta1/bucket_pb.js +32 -0
  29. package/raystack/assets/v1beta1/bucket_pb.ts +46 -89
  30. package/raystack/assets/v1beta1/dashboard_pb.d.ts +217 -0
  31. package/raystack/assets/v1beta1/dashboard_pb.js +32 -0
  32. package/raystack/assets/v1beta1/dashboard_pb.ts +49 -97
  33. package/raystack/assets/v1beta1/event_pb.d.ts +52 -0
  34. package/raystack/assets/v1beta1/event_pb.js +20 -0
  35. package/raystack/assets/v1beta1/event_pb.ts +22 -36
  36. package/raystack/assets/v1beta1/group_pb.d.ts +105 -0
  37. package/raystack/assets/v1beta1/group_pb.js +30 -0
  38. package/raystack/assets/v1beta1/group_pb.ts +38 -74
  39. package/raystack/assets/v1beta1/job_pb.d.ts +78 -0
  40. package/raystack/assets/v1beta1/job_pb.js +25 -0
  41. package/raystack/assets/v1beta1/job_pb.ts +30 -43
  42. package/raystack/assets/v1beta1/lineage_pb.d.ts +43 -0
  43. package/raystack/assets/v1beta1/lineage_pb.js +20 -0
  44. package/raystack/assets/v1beta1/lineage_pb.ts +22 -36
  45. package/raystack/assets/v1beta1/ownership_pb.d.ts +78 -0
  46. package/raystack/assets/v1beta1/ownership_pb.js +26 -0
  47. package/raystack/assets/v1beta1/ownership_pb.ts +31 -68
  48. package/raystack/assets/v1beta1/preview_pb.d.ts +41 -0
  49. package/raystack/assets/v1beta1/preview_pb.js +20 -0
  50. package/raystack/assets/v1beta1/preview_pb.ts +21 -34
  51. package/raystack/assets/v1beta1/properties_pb.d.ts +44 -0
  52. package/raystack/assets/v1beta1/properties_pb.js +20 -0
  53. package/raystack/assets/v1beta1/properties_pb.ts +22 -37
  54. package/raystack/assets/v1beta1/resource_pb.d.ts +74 -0
  55. package/raystack/assets/v1beta1/resource_pb.js +19 -0
  56. package/raystack/assets/v1beta1/resource_pb.ts +24 -43
  57. package/raystack/assets/v1beta1/schema_pb.d.ts +169 -0
  58. package/raystack/assets/v1beta1/schema_pb.js +41 -0
  59. package/raystack/assets/v1beta1/schema_pb.ts +59 -145
  60. package/raystack/assets/v1beta1/table_pb.d.ts +192 -0
  61. package/raystack/assets/v1beta1/table_pb.js +41 -0
  62. package/raystack/assets/v1beta1/table_pb.ts +59 -120
  63. package/raystack/assets/v1beta1/timestamp_pb.d.ts +68 -0
  64. package/raystack/assets/v1beta1/timestamp_pb.js +27 -0
  65. package/raystack/assets/v1beta1/timestamp_pb.ts +28 -62
  66. package/raystack/assets/v1beta1/topic_pb.d.ts +125 -0
  67. package/raystack/assets/v1beta1/topic_pb.js +33 -0
  68. package/raystack/assets/v1beta1/topic_pb.ts +43 -78
  69. package/raystack/assets/v1beta1/user_pb.d.ts +216 -0
  70. package/raystack/assets/v1beta1/user_pb.js +37 -0
  71. package/raystack/assets/v1beta1/user_pb.ts +58 -125
  72. package/raystack/assets/v1beta2/application_pb.d.ts +59 -0
  73. package/raystack/assets/v1beta2/application_pb.js +20 -0
  74. package/raystack/assets/v1beta2/application_pb.ts +23 -39
  75. package/raystack/assets/v1beta2/asset_pb.d.ts +129 -0
  76. package/raystack/assets/v1beta2/asset_pb.js +21 -0
  77. package/raystack/assets/v1beta2/asset_pb.ts +30 -53
  78. package/raystack/assets/v1beta2/bucket_pb.d.ts +163 -0
  79. package/raystack/assets/v1beta2/bucket_pb.js +28 -0
  80. package/raystack/assets/v1beta2/bucket_pb.ts +41 -87
  81. package/raystack/assets/v1beta2/common_pb.d.ts +170 -0
  82. package/raystack/assets/v1beta2/common_pb.js +41 -0
  83. package/raystack/assets/v1beta2/common_pb.ts +56 -137
  84. package/raystack/assets/v1beta2/dashboard_pb.d.ts +192 -0
  85. package/raystack/assets/v1beta2/dashboard_pb.js +28 -0
  86. package/raystack/assets/v1beta2/dashboard_pb.ts +44 -93
  87. package/raystack/assets/v1beta2/experiment_pb.d.ts +134 -0
  88. package/raystack/assets/v1beta2/experiment_pb.js +27 -0
  89. package/raystack/assets/v1beta2/experiment_pb.ts +38 -79
  90. package/raystack/assets/v1beta2/feature_table_pb.d.ts +167 -0
  91. package/raystack/assets/v1beta2/feature_table_pb.js +34 -0
  92. package/raystack/assets/v1beta2/feature_table_pb.ts +51 -115
  93. package/raystack/assets/v1beta2/group_pb.d.ts +77 -0
  94. package/raystack/assets/v1beta2/group_pb.js +27 -0
  95. package/raystack/assets/v1beta2/group_pb.ts +32 -68
  96. package/raystack/assets/v1beta2/job_pb.d.ts +47 -0
  97. package/raystack/assets/v1beta2/job_pb.js +20 -0
  98. package/raystack/assets/v1beta2/job_pb.ts +21 -35
  99. package/raystack/assets/v1beta2/metric_pb.d.ts +83 -0
  100. package/raystack/assets/v1beta2/metric_pb.js +20 -0
  101. package/raystack/assets/v1beta2/metric_pb.ts +25 -43
  102. package/raystack/assets/v1beta2/model_pb.d.ts +227 -0
  103. package/raystack/assets/v1beta2/model_pb.js +41 -0
  104. package/raystack/assets/v1beta2/model_pb.ts +59 -147
  105. package/raystack/assets/v1beta2/table_pb.d.ts +283 -0
  106. package/raystack/assets/v1beta2/table_pb.js +48 -0
  107. package/raystack/assets/v1beta2/table_pb.ts +82 -200
  108. package/raystack/assets/v1beta2/topic_pb.d.ts +117 -0
  109. package/raystack/assets/v1beta2/topic_pb.js +34 -0
  110. package/raystack/assets/v1beta2/topic_pb.ts +41 -99
  111. package/raystack/assets/v1beta2/user_pb.d.ts +203 -0
  112. package/raystack/assets/v1beta2/user_pb.js +34 -0
  113. package/raystack/assets/v1beta2/user_pb.ts +53 -121
  114. package/raystack/common/index.d.ts +2 -0
  115. package/raystack/common/index.js +2 -0
  116. package/raystack/common/index.ts +1 -2
  117. package/raystack/common/v1/service-CommonService_connectquery.d.ts +10 -0
  118. package/raystack/common/v1/service-CommonService_connectquery.js +10 -0
  119. package/raystack/common/v1/service-CommonService_connectquery.ts +3 -14
  120. package/raystack/common/v1/service_pb.d.ts +100 -0
  121. package/raystack/common/v1/service_pb.js +42 -0
  122. package/raystack/common/v1/service_pb.ts +57 -97
  123. package/raystack/compass/index.d.ts +2 -0
  124. package/raystack/compass/index.js +2 -0
  125. package/raystack/compass/index.ts +1 -2
  126. package/raystack/compass/v1beta1/service-CompassService_connectquery.d.ts +184 -0
  127. package/raystack/compass/v1beta1/service-CompassService_connectquery.js +225 -0
  128. package/raystack/compass/v1beta1/service-CompassService_connectquery.ts +44 -424
  129. package/raystack/compass/v1beta1/service_pb.d.ts +2994 -0
  130. package/raystack/compass/v1beta1/service_pb.js +745 -0
  131. package/raystack/compass/v1beta1/service_pb.ts +1448 -3319
  132. package/raystack/entropy/index.d.ts +4 -0
  133. package/raystack/entropy/index.js +4 -0
  134. package/raystack/entropy/index.ts +2 -4
  135. package/raystack/entropy/v1beta1/module-ModuleService_connectquery.d.ts +26 -0
  136. package/raystack/entropy/v1beta1/module-ModuleService_connectquery.js +30 -0
  137. package/raystack/entropy/v1beta1/module-ModuleService_connectquery.ts +7 -54
  138. package/raystack/entropy/v1beta1/module_pb.d.ts +261 -0
  139. package/raystack/entropy/v1beta1/module_pb.js +97 -0
  140. package/raystack/entropy/v1beta1/module_pb.ts +156 -324
  141. package/raystack/entropy/v1beta1/resource-ResourceService_connectquery.d.ts +34 -0
  142. package/raystack/entropy/v1beta1/resource-ResourceService_connectquery.js +40 -0
  143. package/raystack/entropy/v1beta1/resource-ResourceService_connectquery.ts +9 -74
  144. package/raystack/entropy/v1beta1/resource_pb.d.ts +636 -0
  145. package/raystack/entropy/v1beta1/resource_pb.js +200 -0
  146. package/raystack/entropy/v1beta1/resource_pb.ts +330 -756
  147. package/raystack/frontier/index.d.ts +5 -0
  148. package/raystack/frontier/index.js +5 -0
  149. package/raystack/frontier/index.ts +3 -5
  150. package/raystack/frontier/v1beta1/admin-AdminService_connectquery.d.ts +269 -0
  151. package/raystack/frontier/v1beta1/admin-AdminService_connectquery.js +323 -0
  152. package/raystack/frontier/v1beta1/admin-AdminService_connectquery.ts +81 -514
  153. package/raystack/frontier/v1beta1/admin_pb.d.ts +3626 -0
  154. package/raystack/frontier/v1beta1/admin_pb.js +935 -0
  155. package/raystack/frontier/v1beta1/admin_pb.ts +1945 -3794
  156. package/raystack/frontier/v1beta1/frontier-FrontierService_connectquery.d.ts +738 -0
  157. package/raystack/frontier/v1beta1/frontier-FrontierService_connectquery.js +905 -0
  158. package/raystack/frontier/v1beta1/frontier-FrontierService_connectquery.ts +194 -1688
  159. package/raystack/frontier/v1beta1/frontier_pb.d.ts +8814 -0
  160. package/raystack/frontier/v1beta1/frontier_pb.js +2593 -0
  161. package/raystack/frontier/v1beta1/frontier_pb.ts +4997 -11065
  162. package/raystack/frontier/v1beta1/models_pb.d.ts +3092 -0
  163. package/raystack/frontier/v1beta1/models_pb.js +504 -0
  164. package/raystack/frontier/v1beta1/models_pb.ts +1145 -2324
  165. package/raystack/guardian/index.d.ts +2 -0
  166. package/raystack/guardian/index.js +2 -0
  167. package/raystack/guardian/index.ts +1 -2
  168. package/raystack/guardian/v1beta1/guardian-GuardianService_connectquery.d.ts +168 -0
  169. package/raystack/guardian/v1beta1/guardian-GuardianService_connectquery.js +207 -0
  170. package/raystack/guardian/v1beta1/guardian-GuardianService_connectquery.ts +42 -404
  171. package/raystack/guardian/v1beta1/guardian_pb.d.ts +3537 -0
  172. package/raystack/guardian/v1beta1/guardian_pb.js +823 -0
  173. package/raystack/guardian/v1beta1/guardian_pb.ts +1584 -3783
  174. package/raystack/optimus/core/v1beta1/backup-BackupService_connectquery.d.ts +18 -0
  175. package/raystack/optimus/core/v1beta1/backup-BackupService_connectquery.js +20 -0
  176. package/raystack/optimus/core/v1beta1/backup-BackupService_connectquery.ts +5 -34
  177. package/raystack/optimus/core/v1beta1/backup_pb.d.ts +256 -0
  178. package/raystack/optimus/core/v1beta1/backup_pb.js +77 -0
  179. package/raystack/optimus/core/v1beta1/backup_pb.ts +137 -273
  180. package/raystack/optimus/core/v1beta1/job_run-JobRunService_connectquery.d.ts +30 -0
  181. package/raystack/optimus/core/v1beta1/job_run-JobRunService_connectquery.js +33 -0
  182. package/raystack/optimus/core/v1beta1/job_run-JobRunService_connectquery.ts +6 -44
  183. package/raystack/optimus/core/v1beta1/job_run_pb.d.ts +410 -0
  184. package/raystack/optimus/core/v1beta1/job_run_pb.js +127 -0
  185. package/raystack/optimus/core/v1beta1/job_run_pb.ts +194 -376
  186. package/raystack/optimus/core/v1beta1/job_spec-JobSpecificationService_connectquery.d.ts +98 -0
  187. package/raystack/optimus/core/v1beta1/job_spec-JobSpecificationService_connectquery.js +112 -0
  188. package/raystack/optimus/core/v1beta1/job_spec-JobSpecificationService_connectquery.ts +17 -154
  189. package/raystack/optimus/core/v1beta1/job_spec_pb.d.ts +1953 -0
  190. package/raystack/optimus/core/v1beta1/job_spec_pb.js +487 -0
  191. package/raystack/optimus/core/v1beta1/job_spec_pb.ts +910 -2081
  192. package/raystack/optimus/core/v1beta1/namespace-NamespaceService_connectquery.d.ts +24 -0
  193. package/raystack/optimus/core/v1beta1/namespace-NamespaceService_connectquery.js +26 -0
  194. package/raystack/optimus/core/v1beta1/namespace-NamespaceService_connectquery.ts +5 -34
  195. package/raystack/optimus/core/v1beta1/namespace_pb.d.ts +180 -0
  196. package/raystack/optimus/core/v1beta1/namespace_pb.js +69 -0
  197. package/raystack/optimus/core/v1beta1/namespace_pb.ts +113 -212
  198. package/raystack/optimus/core/v1beta1/project-ProjectService_connectquery.d.ts +24 -0
  199. package/raystack/optimus/core/v1beta1/project-ProjectService_connectquery.js +26 -0
  200. package/raystack/optimus/core/v1beta1/project-ProjectService_connectquery.ts +5 -34
  201. package/raystack/optimus/core/v1beta1/project_pb.d.ts +166 -0
  202. package/raystack/optimus/core/v1beta1/project_pb.js +69 -0
  203. package/raystack/optimus/core/v1beta1/project_pb.ts +104 -248
  204. package/raystack/optimus/core/v1beta1/replay-ReplayService_connectquery.d.ts +22 -0
  205. package/raystack/optimus/core/v1beta1/replay-ReplayService_connectquery.js +25 -0
  206. package/raystack/optimus/core/v1beta1/replay-ReplayService_connectquery.ts +6 -44
  207. package/raystack/optimus/core/v1beta1/replay_pb.d.ts +331 -0
  208. package/raystack/optimus/core/v1beta1/replay_pb.js +91 -0
  209. package/raystack/optimus/core/v1beta1/replay_pb.ts +160 -335
  210. package/raystack/optimus/core/v1beta1/resource-ResourceService_connectquery.d.ts +43 -0
  211. package/raystack/optimus/core/v1beta1/resource-ResourceService_connectquery.js +48 -0
  212. package/raystack/optimus/core/v1beta1/resource-ResourceService_connectquery.ts +8 -64
  213. package/raystack/optimus/core/v1beta1/resource_pb.d.ts +507 -0
  214. package/raystack/optimus/core/v1beta1/resource_pb.js +134 -0
  215. package/raystack/optimus/core/v1beta1/resource_pb.ts +266 -527
  216. package/raystack/optimus/core/v1beta1/runtime-RuntimeService_connectquery.d.ts +12 -0
  217. package/raystack/optimus/core/v1beta1/runtime-RuntimeService_connectquery.js +12 -0
  218. package/raystack/optimus/core/v1beta1/runtime-RuntimeService_connectquery.ts +3 -14
  219. package/raystack/optimus/core/v1beta1/runtime_pb.d.ts +62 -0
  220. package/raystack/optimus/core/v1beta1/runtime_pb.js +36 -0
  221. package/raystack/optimus/core/v1beta1/runtime_pb.ts +48 -61
  222. package/raystack/optimus/core/v1beta1/secret-SecretService_connectquery.d.ts +30 -0
  223. package/raystack/optimus/core/v1beta1/secret-SecretService_connectquery.js +33 -0
  224. package/raystack/optimus/core/v1beta1/secret-SecretService_connectquery.ts +6 -44
  225. package/raystack/optimus/core/v1beta1/secret_pb.d.ts +250 -0
  226. package/raystack/optimus/core/v1beta1/secret_pb.js +84 -0
  227. package/raystack/optimus/core/v1beta1/secret_pb.ts +155 -283
  228. package/raystack/optimus/core/v1beta1/status_pb.d.ts +78 -0
  229. package/raystack/optimus/core/v1beta1/status_pb.js +31 -0
  230. package/raystack/optimus/core/v1beta1/status_pb.ts +35 -54
  231. package/raystack/optimus/integration/v1beta1/event_pb.d.ts +239 -0
  232. package/raystack/optimus/integration/v1beta1/event_pb.js +62 -0
  233. package/raystack/optimus/integration/v1beta1/event_pb.ts +75 -187
  234. package/raystack/optimus/plugins/v1beta1/dependency_resolver-DependencyResolverModService_connectquery.d.ts +31 -0
  235. package/raystack/optimus/plugins/v1beta1/dependency_resolver-DependencyResolverModService_connectquery.js +34 -0
  236. package/raystack/optimus/plugins/v1beta1/dependency_resolver-DependencyResolverModService_connectquery.ts +6 -44
  237. package/raystack/optimus/plugins/v1beta1/dependency_resolver_pb.d.ts +353 -0
  238. package/raystack/optimus/plugins/v1beta1/dependency_resolver_pb.js +120 -0
  239. package/raystack/optimus/plugins/v1beta1/dependency_resolver_pb.ts +193 -426
  240. package/raystack/predator/index.d.ts +2 -0
  241. package/raystack/predator/index.js +2 -0
  242. package/raystack/predator/index.ts +2 -2
  243. package/raystack/predator/v1beta1/metrics_log_pb.d.ts +163 -0
  244. package/raystack/predator/v1beta1/metrics_log_pb.js +48 -0
  245. package/raystack/predator/v1beta1/metrics_log_pb.ts +67 -173
  246. package/raystack/predator/v1beta1/result_log_pb.d.ts +143 -0
  247. package/raystack/predator/v1beta1/result_log_pb.js +42 -0
  248. package/raystack/predator/v1beta1/result_log_pb.ts +60 -144
  249. package/raystack/raccoon/index.d.ts +2 -0
  250. package/raystack/raccoon/index.js +2 -0
  251. package/raystack/raccoon/index.ts +1 -2
  252. package/raystack/raccoon/v1beta1/raccoon-EventService_connectquery.d.ts +10 -0
  253. package/raystack/raccoon/v1beta1/raccoon-EventService_connectquery.js +10 -0
  254. package/raystack/raccoon/v1beta1/raccoon-EventService_connectquery.ts +3 -14
  255. package/raystack/raccoon/v1beta1/raccoon_pb.d.ts +268 -0
  256. package/raystack/raccoon/v1beta1/raccoon_pb.js +64 -0
  257. package/raystack/raccoon/v1beta1/raccoon_pb.ts +142 -189
  258. package/raystack/siren/index.d.ts +2 -0
  259. package/raystack/siren/index.js +2 -0
  260. package/raystack/siren/index.ts +1 -2
  261. package/raystack/siren/v1beta1/siren-SirenService_connectquery.d.ts +146 -0
  262. package/raystack/siren/v1beta1/siren-SirenService_connectquery.js +180 -0
  263. package/raystack/siren/v1beta1/siren-SirenService_connectquery.ts +37 -354
  264. package/raystack/siren/v1beta1/siren_pb.d.ts +2281 -0
  265. package/raystack/siren/v1beta1/siren_pb.js +603 -0
  266. package/raystack/siren/v1beta1/siren_pb.ts +1155 -2637
  267. package/raystack/stencil/index.d.ts +2 -0
  268. package/raystack/stencil/index.js +2 -0
  269. package/raystack/stencil/index.ts +1 -2
  270. package/raystack/stencil/v1beta1/stencil-StencilService_connectquery.d.ts +70 -0
  271. package/raystack/stencil/v1beta1/stencil-StencilService_connectquery.js +85 -0
  272. package/raystack/stencil/v1beta1/stencil-StencilService_connectquery.ts +18 -164
  273. package/raystack/stencil/v1beta1/stencil_pb.d.ts +1057 -0
  274. package/raystack/stencil/v1beta1/stencil_pb.js +298 -0
  275. package/raystack/stencil/v1beta1/stencil_pb.ts +530 -1157
  276. package/validate/validate_pb.d.ts +1953 -0
  277. package/validate/validate_pb.js +223 -0
  278. package/validate/validate_pb.ts +401 -1038
  279. package/google/api/field_behavior.ts +0 -95
  280. package/google/api/http.ts +0 -695
  281. package/google/api/httpbody.ts +0 -159
  282. package/google/protobuf/any.ts +0 -322
  283. package/google/protobuf/descriptor.ts +0 -3475
  284. package/google/protobuf/duration.ts +0 -231
  285. package/google/protobuf/struct.ts +0 -484
  286. package/google/protobuf/timestamp.ts +0 -290
  287. package/google/protobuf/wrappers.ts +0 -752
  288. package/protoc-gen-openapiv2/options/openapiv2.ts +0 -3110
  289. package/raystack/assets/v1beta1/bucket.ts +0 -362
  290. package/raystack/assets/v1beta1/dashboard.ts +0 -426
  291. package/raystack/assets/v1beta1/event.ts +0 -105
  292. package/raystack/assets/v1beta1/group.ts +0 -223
  293. package/raystack/assets/v1beta1/job.ts +0 -147
  294. package/raystack/assets/v1beta1/lineage.ts +0 -90
  295. package/raystack/assets/v1beta1/ownership.ts +0 -179
  296. package/raystack/assets/v1beta1/preview.ts +0 -87
  297. package/raystack/assets/v1beta1/properties.ts +0 -116
  298. package/raystack/assets/v1beta1/resource.ts +0 -149
  299. package/raystack/assets/v1beta1/schema.ts +0 -421
  300. package/raystack/assets/v1beta1/table.ts +0 -408
  301. package/raystack/assets/v1beta1/timestamp.ts +0 -158
  302. package/raystack/assets/v1beta1/topic.ts +0 -253
  303. package/raystack/assets/v1beta1/user.ts +0 -451
  304. package/raystack/assets/v1beta2/application.ts +0 -125
  305. package/raystack/assets/v1beta2/asset.ts +0 -269
  306. package/raystack/assets/v1beta2/bucket.ts +0 -341
  307. package/raystack/assets/v1beta2/common.ts +0 -392
  308. package/raystack/assets/v1beta2/dashboard.ts +0 -393
  309. package/raystack/assets/v1beta2/experiment.ts +0 -274
  310. package/raystack/assets/v1beta2/feature_table.ts +0 -387
  311. package/raystack/assets/v1beta2/group.ts +0 -178
  312. package/raystack/assets/v1beta2/job.ts +0 -99
  313. package/raystack/assets/v1beta2/metric.ts +0 -163
  314. package/raystack/assets/v1beta2/model.ts +0 -519
  315. package/raystack/assets/v1beta2/table.ts +0 -663
  316. package/raystack/assets/v1beta2/topic.ts +0 -275
  317. package/raystack/assets/v1beta2/user.ts +0 -433
  318. package/raystack/common/v1/service.client.ts +0 -37
  319. package/raystack/common/v1/service.ts +0 -245
  320. package/raystack/common/v1/service_connect.ts +0 -26
  321. package/raystack/compass/v1beta1/service.client.ts +0 -594
  322. package/raystack/compass/v1beta1/service.ts +0 -8169
  323. package/raystack/compass/v1beta1/service_connect.ts +0 -407
  324. package/raystack/entropy/v1beta1/module.client.ts +0 -89
  325. package/raystack/entropy/v1beta1/module.ts +0 -692
  326. package/raystack/entropy/v1beta1/module_connect.ts +0 -62
  327. package/raystack/entropy/v1beta1/resource.client.ts +0 -129
  328. package/raystack/entropy/v1beta1/resource.ts +0 -1817
  329. package/raystack/entropy/v1beta1/resource_connect.ts +0 -89
  330. package/raystack/frontier/v1beta1/admin.client.ts +0 -849
  331. package/raystack/frontier/v1beta1/admin.ts +0 -9007
  332. package/raystack/frontier/v1beta1/admin_connect.ts +0 -573
  333. package/raystack/frontier/v1beta1/frontier.client.ts +0 -2307
  334. package/raystack/frontier/v1beta1/frontier.ts +0 -23706
  335. package/raystack/frontier/v1beta1/frontier_connect.ts +0 -1574
  336. package/raystack/frontier/v1beta1/models.ts +0 -7433
  337. package/raystack/guardian/v1beta1/guardian.client.ts +0 -552
  338. package/raystack/guardian/v1beta1/guardian.ts +0 -9688
  339. package/raystack/guardian/v1beta1/guardian_connect.ts +0 -381
  340. package/raystack/optimus/core/v1beta1/backup.client.ts +0 -63
  341. package/raystack/optimus/core/v1beta1/backup.ts +0 -708
  342. package/raystack/optimus/core/v1beta1/backup_connect.ts +0 -44
  343. package/raystack/optimus/core/v1beta1/job_run.client.ts +0 -96
  344. package/raystack/optimus/core/v1beta1/job_run.ts +0 -1008
  345. package/raystack/optimus/core/v1beta1/job_run_connect.ts +0 -63
  346. package/raystack/optimus/core/v1beta1/job_spec.client.ts +0 -363
  347. package/raystack/optimus/core/v1beta1/job_spec.ts +0 -5134
  348. package/raystack/optimus/core/v1beta1/job_spec_connect.ts +0 -233
  349. package/raystack/optimus/core/v1beta1/namespace.client.ts +0 -75
  350. package/raystack/optimus/core/v1beta1/namespace.ts +0 -477
  351. package/raystack/optimus/core/v1beta1/namespace_connect.ts +0 -50
  352. package/raystack/optimus/core/v1beta1/project.client.ts +0 -75
  353. package/raystack/optimus/core/v1beta1/project.ts +0 -520
  354. package/raystack/optimus/core/v1beta1/project_connect.ts +0 -50
  355. package/raystack/optimus/core/v1beta1/replay.client.ts +0 -76
  356. package/raystack/optimus/core/v1beta1/replay.ts +0 -881
  357. package/raystack/optimus/core/v1beta1/replay_connect.ts +0 -53
  358. package/raystack/optimus/core/v1beta1/resource.client.ts +0 -148
  359. package/raystack/optimus/core/v1beta1/resource.ts +0 -1329
  360. package/raystack/optimus/core/v1beta1/resource_connect.ts +0 -96
  361. package/raystack/optimus/core/v1beta1/runtime.client.ts +0 -45
  362. package/raystack/optimus/core/v1beta1/runtime.ts +0 -131
  363. package/raystack/optimus/core/v1beta1/runtime_connect.ts +0 -30
  364. package/raystack/optimus/core/v1beta1/secret.client.ts +0 -92
  365. package/raystack/optimus/core/v1beta1/secret.ts +0 -619
  366. package/raystack/optimus/core/v1beta1/secret_connect.ts +0 -61
  367. package/raystack/optimus/core/v1beta1/status.ts +0 -113
  368. package/raystack/optimus/integration/v1beta1/event.ts +0 -531
  369. package/raystack/optimus/plugins/v1beta1/dependency_resolver.client.ts +0 -100
  370. package/raystack/optimus/plugins/v1beta1/dependency_resolver.ts +0 -950
  371. package/raystack/optimus/plugins/v1beta1/dependency_resolver_connect.ts +0 -65
  372. package/raystack/predator/v1beta1/metrics_log.ts +0 -457
  373. package/raystack/predator/v1beta1/result_log.ts +0 -390
  374. package/raystack/raccoon/v1beta1/raccoon.client.ts +0 -37
  375. package/raystack/raccoon/v1beta1/raccoon.ts +0 -442
  376. package/raystack/raccoon/v1beta1/raccoon_connect.ts +0 -26
  377. package/raystack/siren/v1beta1/siren.client.ts +0 -479
  378. package/raystack/siren/v1beta1/siren.ts +0 -6507
  379. package/raystack/siren/v1beta1/siren_connect.ts +0 -332
  380. package/raystack/stencil/v1beta1/stencil.client.ts +0 -232
  381. package/raystack/stencil/v1beta1/stencil.ts +0 -2716
  382. package/raystack/stencil/v1beta1/stencil_connect.ts +0 -161
  383. package/validate/validate.ts +0 -4130
@@ -1,159 +0,0 @@
1
- // @generated by protobuf-ts 2.11.1
2
- // @generated from protobuf file "google/api/httpbody.proto" (package "google.api", syntax proto3)
3
- // tslint:disable
4
- //
5
- // Copyright 2023 Google LLC
6
- //
7
- // Licensed under the Apache License, Version 2.0 (the "License");
8
- // you may not use this file except in compliance with the License.
9
- // You may obtain a copy of the License at
10
- //
11
- // http://www.apache.org/licenses/LICENSE-2.0
12
- //
13
- // Unless required by applicable law or agreed to in writing, software
14
- // distributed under the License is distributed on an "AS IS" BASIS,
15
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- // See the License for the specific language governing permissions and
17
- // limitations under the License.
18
- //
19
- import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
20
- import type { IBinaryWriter } from "@protobuf-ts/runtime";
21
- import { WireType } from "@protobuf-ts/runtime";
22
- import type { BinaryReadOptions } from "@protobuf-ts/runtime";
23
- import type { IBinaryReader } from "@protobuf-ts/runtime";
24
- import { UnknownFieldHandler } from "@protobuf-ts/runtime";
25
- import type { PartialMessage } from "@protobuf-ts/runtime";
26
- import { reflectionMergePartial } from "@protobuf-ts/runtime";
27
- import { MessageType } from "@protobuf-ts/runtime";
28
- import { Any } from "../protobuf/any";
29
- /**
30
- * Message that represents an arbitrary HTTP body. It should only be used for
31
- * payload formats that can't be represented as JSON, such as raw binary or
32
- * an HTML page.
33
- *
34
- *
35
- * This message can be used both in streaming and non-streaming API methods in
36
- * the request as well as the response.
37
- *
38
- * It can be used as a top-level request field, which is convenient if one
39
- * wants to extract parameters from either the URL or HTTP template into the
40
- * request fields and also want access to the raw HTTP body.
41
- *
42
- * Example:
43
- *
44
- * message GetResourceRequest {
45
- * // A unique request id.
46
- * string request_id = 1;
47
- *
48
- * // The raw HTTP body is bound to this field.
49
- * google.api.HttpBody http_body = 2;
50
- *
51
- * }
52
- *
53
- * service ResourceService {
54
- * rpc GetResource(GetResourceRequest)
55
- * returns (google.api.HttpBody);
56
- * rpc UpdateResource(google.api.HttpBody)
57
- * returns (google.protobuf.Empty);
58
- *
59
- * }
60
- *
61
- * Example with streaming methods:
62
- *
63
- * service CaldavService {
64
- * rpc GetCalendar(stream google.api.HttpBody)
65
- * returns (stream google.api.HttpBody);
66
- * rpc UpdateCalendar(stream google.api.HttpBody)
67
- * returns (stream google.api.HttpBody);
68
- *
69
- * }
70
- *
71
- * Use of this type only changes how the request and response bodies are
72
- * handled, all other features will continue to work unchanged.
73
- *
74
- * @generated from protobuf message google.api.HttpBody
75
- */
76
- export interface HttpBody {
77
- /**
78
- * The HTTP Content-Type header value specifying the content type of the body.
79
- *
80
- * @generated from protobuf field: string content_type = 1
81
- */
82
- contentType: string;
83
- /**
84
- * The HTTP request/response body as raw binary.
85
- *
86
- * @generated from protobuf field: bytes data = 2
87
- */
88
- data: Uint8Array;
89
- /**
90
- * Application specific response metadata. Must be set in the first response
91
- * for streaming APIs.
92
- *
93
- * @generated from protobuf field: repeated google.protobuf.Any extensions = 3
94
- */
95
- extensions: Any[];
96
- }
97
- // @generated message type with reflection information, may provide speed optimized methods
98
- class HttpBody$Type extends MessageType<HttpBody> {
99
- constructor() {
100
- super("google.api.HttpBody", [
101
- { no: 1, name: "content_type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
102
- { no: 2, name: "data", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
103
- { no: 3, name: "extensions", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Any }
104
- ]);
105
- }
106
- create(value?: PartialMessage<HttpBody>): HttpBody {
107
- const message = globalThis.Object.create((this.messagePrototype!));
108
- message.contentType = "";
109
- message.data = new Uint8Array(0);
110
- message.extensions = [];
111
- if (value !== undefined)
112
- reflectionMergePartial<HttpBody>(this, message, value);
113
- return message;
114
- }
115
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: HttpBody): HttpBody {
116
- let message = target ?? this.create(), end = reader.pos + length;
117
- while (reader.pos < end) {
118
- let [fieldNo, wireType] = reader.tag();
119
- switch (fieldNo) {
120
- case /* string content_type */ 1:
121
- message.contentType = reader.string();
122
- break;
123
- case /* bytes data */ 2:
124
- message.data = reader.bytes();
125
- break;
126
- case /* repeated google.protobuf.Any extensions */ 3:
127
- message.extensions.push(Any.internalBinaryRead(reader, reader.uint32(), options));
128
- break;
129
- default:
130
- let u = options.readUnknownField;
131
- if (u === "throw")
132
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
133
- let d = reader.skip(wireType);
134
- if (u !== false)
135
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
136
- }
137
- }
138
- return message;
139
- }
140
- internalBinaryWrite(message: HttpBody, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
141
- /* string content_type = 1; */
142
- if (message.contentType !== "")
143
- writer.tag(1, WireType.LengthDelimited).string(message.contentType);
144
- /* bytes data = 2; */
145
- if (message.data.length)
146
- writer.tag(2, WireType.LengthDelimited).bytes(message.data);
147
- /* repeated google.protobuf.Any extensions = 3; */
148
- for (let i = 0; i < message.extensions.length; i++)
149
- Any.internalBinaryWrite(message.extensions[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
150
- let u = options.writeUnknownFields;
151
- if (u !== false)
152
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
153
- return writer;
154
- }
155
- }
156
- /**
157
- * @generated MessageType for protobuf message google.api.HttpBody
158
- */
159
- export const HttpBody = new HttpBody$Type();
@@ -1,322 +0,0 @@
1
- // @generated by protobuf-ts 2.11.1
2
- // @generated from protobuf file "google/protobuf/any.proto" (package "google.protobuf", syntax proto3)
3
- // tslint:disable
4
- //
5
- // Protocol Buffers - Google's data interchange format
6
- // Copyright 2008 Google Inc. All rights reserved.
7
- // https://developers.google.com/protocol-buffers/
8
- //
9
- // Redistribution and use in source and binary forms, with or without
10
- // modification, are permitted provided that the following conditions are
11
- // met:
12
- //
13
- // * Redistributions of source code must retain the above copyright
14
- // notice, this list of conditions and the following disclaimer.
15
- // * Redistributions in binary form must reproduce the above
16
- // copyright notice, this list of conditions and the following disclaimer
17
- // in the documentation and/or other materials provided with the
18
- // distribution.
19
- // * Neither the name of Google Inc. nor the names of its
20
- // contributors may be used to endorse or promote products derived from
21
- // this software without specific prior written permission.
22
- //
23
- // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
24
- // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
25
- // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
26
- // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
27
- // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
28
- // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
29
- // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
30
- // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
31
- // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
32
- // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
33
- // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34
- //
35
- import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
36
- import type { IBinaryWriter } from "@protobuf-ts/runtime";
37
- import { WireType } from "@protobuf-ts/runtime";
38
- import type { IBinaryReader } from "@protobuf-ts/runtime";
39
- import { UnknownFieldHandler } from "@protobuf-ts/runtime";
40
- import type { PartialMessage } from "@protobuf-ts/runtime";
41
- import { reflectionMergePartial } from "@protobuf-ts/runtime";
42
- import { isJsonObject } from "@protobuf-ts/runtime";
43
- import { typeofJsonValue } from "@protobuf-ts/runtime";
44
- import type { JsonValue } from "@protobuf-ts/runtime";
45
- import { jsonWriteOptions } from "@protobuf-ts/runtime";
46
- import type { JsonReadOptions } from "@protobuf-ts/runtime";
47
- import type { JsonWriteOptions } from "@protobuf-ts/runtime";
48
- import type { BinaryReadOptions } from "@protobuf-ts/runtime";
49
- import type { IMessageType } from "@protobuf-ts/runtime";
50
- import { MessageType } from "@protobuf-ts/runtime";
51
- /**
52
- * `Any` contains an arbitrary serialized protocol buffer message along with a
53
- * URL that describes the type of the serialized message.
54
- *
55
- * Protobuf library provides support to pack/unpack Any values in the form
56
- * of utility functions or additional generated methods of the Any type.
57
- *
58
- * Example 1: Pack and unpack a message in C++.
59
- *
60
- * Foo foo = ...;
61
- * Any any;
62
- * any.PackFrom(foo);
63
- * ...
64
- * if (any.UnpackTo(&foo)) {
65
- * ...
66
- * }
67
- *
68
- * Example 2: Pack and unpack a message in Java.
69
- *
70
- * Foo foo = ...;
71
- * Any any = Any.pack(foo);
72
- * ...
73
- * if (any.is(Foo.class)) {
74
- * foo = any.unpack(Foo.class);
75
- * }
76
- *
77
- * Example 3: Pack and unpack a message in Python.
78
- *
79
- * foo = Foo(...)
80
- * any = Any()
81
- * any.Pack(foo)
82
- * ...
83
- * if any.Is(Foo.DESCRIPTOR):
84
- * any.Unpack(foo)
85
- * ...
86
- *
87
- * Example 4: Pack and unpack a message in Go
88
- *
89
- * foo := &pb.Foo{...}
90
- * any, err := anypb.New(foo)
91
- * if err != nil {
92
- * ...
93
- * }
94
- * ...
95
- * foo := &pb.Foo{}
96
- * if err := any.UnmarshalTo(foo); err != nil {
97
- * ...
98
- * }
99
- *
100
- * The pack methods provided by protobuf library will by default use
101
- * 'type.googleapis.com/full.type.name' as the type URL and the unpack
102
- * methods only use the fully qualified type name after the last '/'
103
- * in the type URL, for example "foo.bar.com/x/y.z" will yield type
104
- * name "y.z".
105
- *
106
- *
107
- * JSON
108
- *
109
- * The JSON representation of an `Any` value uses the regular
110
- * representation of the deserialized, embedded message, with an
111
- * additional field `@type` which contains the type URL. Example:
112
- *
113
- * package google.profile;
114
- * message Person {
115
- * string first_name = 1;
116
- * string last_name = 2;
117
- * }
118
- *
119
- * {
120
- * "@type": "type.googleapis.com/google.profile.Person",
121
- * "firstName": <string>,
122
- * "lastName": <string>
123
- * }
124
- *
125
- * If the embedded message type is well-known and has a custom JSON
126
- * representation, that representation will be embedded adding a field
127
- * `value` which holds the custom JSON in addition to the `@type`
128
- * field. Example (for message [google.protobuf.Duration][]):
129
- *
130
- * {
131
- * "@type": "type.googleapis.com/google.protobuf.Duration",
132
- * "value": "1.212s"
133
- * }
134
- *
135
- *
136
- * @generated from protobuf message google.protobuf.Any
137
- */
138
- export interface Any {
139
- /**
140
- * A URL/resource name that uniquely identifies the type of the serialized
141
- * protocol buffer message. This string must contain at least
142
- * one "/" character. The last segment of the URL's path must represent
143
- * the fully qualified name of the type (as in
144
- * `path/google.protobuf.Duration`). The name should be in a canonical form
145
- * (e.g., leading "." is not accepted).
146
- *
147
- * In practice, teams usually precompile into the binary all types that they
148
- * expect it to use in the context of Any. However, for URLs which use the
149
- * scheme `http`, `https`, or no scheme, one can optionally set up a type
150
- * server that maps type URLs to message definitions as follows:
151
- *
152
- * * If no scheme is provided, `https` is assumed.
153
- * * An HTTP GET on the URL must yield a [google.protobuf.Type][]
154
- * value in binary format, or produce an error.
155
- * * Applications are allowed to cache lookup results based on the
156
- * URL, or have them precompiled into a binary to avoid any
157
- * lookup. Therefore, binary compatibility needs to be preserved
158
- * on changes to types. (Use versioned type names to manage
159
- * breaking changes.)
160
- *
161
- * Note: this functionality is not currently available in the official
162
- * protobuf release, and it is not used for type URLs beginning with
163
- * type.googleapis.com.
164
- *
165
- * Schemes other than `http`, `https` (or the empty scheme) might be
166
- * used with implementation specific semantics.
167
- *
168
- *
169
- * @generated from protobuf field: string type_url = 1
170
- */
171
- typeUrl: string;
172
- /**
173
- * Must be a valid serialized protocol buffer of the above specified type.
174
- *
175
- * @generated from protobuf field: bytes value = 2
176
- */
177
- value: Uint8Array;
178
- }
179
- // @generated message type with reflection information, may provide speed optimized methods
180
- class Any$Type extends MessageType<Any> {
181
- constructor() {
182
- super("google.protobuf.Any", [
183
- { no: 1, name: "type_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
184
- { no: 2, name: "value", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
185
- ]);
186
- }
187
- /**
188
- * Pack the message into a new `Any`.
189
- *
190
- * Uses 'type.googleapis.com/full.type.name' as the type URL.
191
- */
192
- pack<T extends object>(message: T, type: IMessageType<T>): Any {
193
- return {
194
- typeUrl: this.typeNameToUrl(type.typeName), value: type.toBinary(message),
195
- };
196
- }
197
- /**
198
- * Unpack the message from the `Any`.
199
- */
200
- unpack<T extends object>(any: Any, type: IMessageType<T>, options?: Partial<BinaryReadOptions>): T {
201
- if (!this.contains(any, type))
202
- throw new Error("Cannot unpack google.protobuf.Any with typeUrl '" + any.typeUrl + "' as " + type.typeName + ".");
203
- return type.fromBinary(any.value, options);
204
- }
205
- /**
206
- * Does the given `Any` contain a packed message of the given type?
207
- */
208
- contains(any: Any, type: IMessageType<any> | string): boolean {
209
- if (!any.typeUrl.length)
210
- return false;
211
- let wants = typeof type == "string" ? type : type.typeName;
212
- let has = this.typeUrlToName(any.typeUrl);
213
- return wants === has;
214
- }
215
- /**
216
- * Convert the message to canonical JSON value.
217
- *
218
- * You have to provide the `typeRegistry` option so that the
219
- * packed message can be converted to JSON.
220
- *
221
- * The `typeRegistry` option is also required to read
222
- * `google.protobuf.Any` from JSON format.
223
- */
224
- internalJsonWrite(any: Any, options: JsonWriteOptions): JsonValue {
225
- if (any.typeUrl === "")
226
- return {};
227
- let typeName = this.typeUrlToName(any.typeUrl);
228
- let opt = jsonWriteOptions(options);
229
- let type = opt.typeRegistry?.find(t => t.typeName === typeName);
230
- if (!type)
231
- throw new globalThis.Error("Unable to convert google.protobuf.Any with typeUrl '" + any.typeUrl + "' to JSON. The specified type " + typeName + " is not available in the type registry.");
232
- let value = type.fromBinary(any.value, { readUnknownField: false });
233
- let json = type.internalJsonWrite(value, opt);
234
- if (typeName.startsWith("google.protobuf.") || !isJsonObject(json))
235
- json = { value: json };
236
- json["@type"] = any.typeUrl;
237
- return json;
238
- }
239
- internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: Any): Any {
240
- if (!isJsonObject(json))
241
- throw new globalThis.Error("Unable to parse google.protobuf.Any from JSON " + typeofJsonValue(json) + ".");
242
- if (typeof json["@type"] != "string" || json["@type"] == "")
243
- return this.create();
244
- let typeName = this.typeUrlToName(json["@type"]);
245
- let type = options?.typeRegistry?.find(t => t.typeName == typeName);
246
- if (!type)
247
- throw new globalThis.Error("Unable to parse google.protobuf.Any from JSON. The specified type " + typeName + " is not available in the type registry.");
248
- let value;
249
- if (typeName.startsWith("google.protobuf.") && json.hasOwnProperty("value"))
250
- value = type.fromJson(json["value"], options);
251
- else {
252
- let copy = Object.assign({}, json);
253
- delete copy["@type"];
254
- value = type.fromJson(copy, options);
255
- }
256
- if (target === undefined)
257
- target = this.create();
258
- target.typeUrl = json["@type"];
259
- target.value = type.toBinary(value);
260
- return target;
261
- }
262
- typeNameToUrl(name: string): string {
263
- if (!name.length)
264
- throw new Error("invalid type name: " + name);
265
- return "type.googleapis.com/" + name;
266
- }
267
- typeUrlToName(url: string): string {
268
- if (!url.length)
269
- throw new Error("invalid type url: " + url);
270
- let slash = url.lastIndexOf("/");
271
- let name = slash > 0 ? url.substring(slash + 1) : url;
272
- if (!name.length)
273
- throw new Error("invalid type url: " + url);
274
- return name;
275
- }
276
- create(value?: PartialMessage<Any>): Any {
277
- const message = globalThis.Object.create((this.messagePrototype!));
278
- message.typeUrl = "";
279
- message.value = new Uint8Array(0);
280
- if (value !== undefined)
281
- reflectionMergePartial<Any>(this, message, value);
282
- return message;
283
- }
284
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Any): Any {
285
- let message = target ?? this.create(), end = reader.pos + length;
286
- while (reader.pos < end) {
287
- let [fieldNo, wireType] = reader.tag();
288
- switch (fieldNo) {
289
- case /* string type_url */ 1:
290
- message.typeUrl = reader.string();
291
- break;
292
- case /* bytes value */ 2:
293
- message.value = reader.bytes();
294
- break;
295
- default:
296
- let u = options.readUnknownField;
297
- if (u === "throw")
298
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
299
- let d = reader.skip(wireType);
300
- if (u !== false)
301
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
302
- }
303
- }
304
- return message;
305
- }
306
- internalBinaryWrite(message: Any, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
307
- /* string type_url = 1; */
308
- if (message.typeUrl !== "")
309
- writer.tag(1, WireType.LengthDelimited).string(message.typeUrl);
310
- /* bytes value = 2; */
311
- if (message.value.length)
312
- writer.tag(2, WireType.LengthDelimited).bytes(message.value);
313
- let u = options.writeUnknownFields;
314
- if (u !== false)
315
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
316
- return writer;
317
- }
318
- }
319
- /**
320
- * @generated MessageType for protobuf message google.protobuf.Any
321
- */
322
- export const Any = new Any$Type();