@milaboratories/pl-client 2.17.6 → 2.17.8

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 (274) hide show
  1. package/dist/_virtual/_rolldown/runtime.cjs +43 -0
  2. package/dist/_virtual/_rolldown/runtime.js +18 -0
  3. package/dist/core/PromiseTracker.cjs +33 -33
  4. package/dist/core/PromiseTracker.cjs.map +1 -1
  5. package/dist/core/PromiseTracker.d.ts +10 -7
  6. package/dist/core/PromiseTracker.js +33 -31
  7. package/dist/core/PromiseTracker.js.map +1 -1
  8. package/dist/core/StatefulPromise.cjs +60 -61
  9. package/dist/core/StatefulPromise.cjs.map +1 -1
  10. package/dist/core/StatefulPromise.js +60 -60
  11. package/dist/core/StatefulPromise.js.map +1 -1
  12. package/dist/core/abstract_stream.d.ts +18 -15
  13. package/dist/core/advisory_locks.cjs +42 -49
  14. package/dist/core/advisory_locks.cjs.map +1 -1
  15. package/dist/core/advisory_locks.js +42 -48
  16. package/dist/core/advisory_locks.js.map +1 -1
  17. package/dist/core/auth.cjs +10 -15
  18. package/dist/core/auth.cjs.map +1 -1
  19. package/dist/core/auth.d.ts +7 -3
  20. package/dist/core/auth.js +10 -13
  21. package/dist/core/auth.js.map +1 -1
  22. package/dist/core/cache.d.ts +11 -7
  23. package/dist/core/client.cjs +255 -306
  24. package/dist/core/client.cjs.map +1 -1
  25. package/dist/core/client.d.ts +72 -68
  26. package/dist/core/client.js +253 -285
  27. package/dist/core/client.js.map +1 -1
  28. package/dist/core/config.cjs +81 -99
  29. package/dist/core/config.cjs.map +1 -1
  30. package/dist/core/config.d.ts +93 -90
  31. package/dist/core/config.js +81 -98
  32. package/dist/core/config.js.map +1 -1
  33. package/dist/core/default_client.cjs +84 -125
  34. package/dist/core/default_client.cjs.map +1 -1
  35. package/dist/core/default_client.d.ts +9 -6
  36. package/dist/core/default_client.js +78 -103
  37. package/dist/core/default_client.js.map +1 -1
  38. package/dist/core/driver.cjs +12 -16
  39. package/dist/core/driver.cjs.map +1 -1
  40. package/dist/core/driver.d.ts +18 -14
  41. package/dist/core/driver.js +12 -15
  42. package/dist/core/driver.js.map +1 -1
  43. package/dist/core/error_resource.cjs +5 -4
  44. package/dist/core/error_resource.cjs.map +1 -1
  45. package/dist/core/error_resource.js +5 -3
  46. package/dist/core/error_resource.js.map +1 -1
  47. package/dist/core/errors.cjs +104 -140
  48. package/dist/core/errors.cjs.map +1 -1
  49. package/dist/core/errors.d.ts +34 -30
  50. package/dist/core/errors.js +102 -137
  51. package/dist/core/errors.js.map +1 -1
  52. package/dist/core/final.cjs +63 -89
  53. package/dist/core/final.cjs.map +1 -1
  54. package/dist/core/final.d.ts +8 -4
  55. package/dist/core/final.js +63 -87
  56. package/dist/core/final.js.map +1 -1
  57. package/dist/core/ll_client.cjs +416 -521
  58. package/dist/core/ll_client.cjs.map +1 -1
  59. package/dist/core/ll_client.d.ts +100 -97
  60. package/dist/core/ll_client.js +415 -519
  61. package/dist/core/ll_client.js.map +1 -1
  62. package/dist/core/ll_transaction.cjs +206 -240
  63. package/dist/core/ll_transaction.cjs.map +1 -1
  64. package/dist/core/ll_transaction.d.ts +50 -52
  65. package/dist/core/ll_transaction.js +205 -238
  66. package/dist/core/ll_transaction.js.map +1 -1
  67. package/dist/core/stat.cjs +64 -63
  68. package/dist/core/stat.cjs.map +1 -1
  69. package/dist/core/stat.d.ts +35 -36
  70. package/dist/core/stat.js +64 -62
  71. package/dist/core/stat.js.map +1 -1
  72. package/dist/core/transaction.cjs +613 -650
  73. package/dist/core/transaction.cjs.map +1 -1
  74. package/dist/core/transaction.d.ts +165 -162
  75. package/dist/core/transaction.js +612 -648
  76. package/dist/core/transaction.js.map +1 -1
  77. package/dist/core/type_conversion.cjs +62 -83
  78. package/dist/core/type_conversion.cjs.map +1 -1
  79. package/dist/core/type_conversion.js +61 -81
  80. package/dist/core/type_conversion.js.map +1 -1
  81. package/dist/core/types.cjs +56 -86
  82. package/dist/core/types.cjs.map +1 -1
  83. package/dist/core/types.d.ts +63 -62
  84. package/dist/core/types.js +54 -83
  85. package/dist/core/types.js.map +1 -1
  86. package/dist/core/unauth_client.cjs +35 -41
  87. package/dist/core/unauth_client.cjs.map +1 -1
  88. package/dist/core/unauth_client.d.ts +18 -14
  89. package/dist/core/unauth_client.js +34 -39
  90. package/dist/core/unauth_client.js.map +1 -1
  91. package/dist/core/websocket_stream.cjs +277 -349
  92. package/dist/core/websocket_stream.cjs.map +1 -1
  93. package/dist/core/websocket_stream.js +275 -347
  94. package/dist/core/websocket_stream.js.map +1 -1
  95. package/dist/core/wire.d.ts +21 -17
  96. package/dist/helpers/pl.cjs +71 -73
  97. package/dist/helpers/pl.cjs.map +1 -1
  98. package/dist/helpers/pl.d.ts +40 -41
  99. package/dist/helpers/pl.js +66 -46
  100. package/dist/helpers/pl.js.map +1 -1
  101. package/dist/helpers/poll.cjs +99 -134
  102. package/dist/helpers/poll.cjs.map +1 -1
  103. package/dist/helpers/poll.d.ts +37 -34
  104. package/dist/helpers/poll.js +97 -113
  105. package/dist/helpers/poll.js.map +1 -1
  106. package/dist/helpers/retry_strategy.cjs +82 -87
  107. package/dist/helpers/retry_strategy.cjs.map +1 -1
  108. package/dist/helpers/retry_strategy.js +83 -86
  109. package/dist/helpers/retry_strategy.js.map +1 -1
  110. package/dist/helpers/tx_helpers.cjs +21 -20
  111. package/dist/helpers/tx_helpers.cjs.map +1 -1
  112. package/dist/helpers/tx_helpers.d.ts +11 -7
  113. package/dist/helpers/tx_helpers.js +20 -18
  114. package/dist/helpers/tx_helpers.js.map +1 -1
  115. package/dist/index.cjs +117 -106
  116. package/dist/index.d.ts +17 -17
  117. package/dist/index.js +17 -19
  118. package/dist/proto-grpc/github.com/googleapis/googleapis/google/rpc/status.cjs +72 -66
  119. package/dist/proto-grpc/github.com/googleapis/googleapis/google/rpc/status.cjs.map +1 -1
  120. package/dist/proto-grpc/github.com/googleapis/googleapis/google/rpc/status.d.ts +35 -37
  121. package/dist/proto-grpc/github.com/googleapis/googleapis/google/rpc/status.js +71 -64
  122. package/dist/proto-grpc/github.com/googleapis/googleapis/google/rpc/status.js.map +1 -1
  123. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.cjs +12611 -12866
  124. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.cjs.map +1 -1
  125. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.client.cjs +226 -226
  126. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.client.cjs.map +1 -1
  127. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.client.d.ts +281 -330
  128. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.client.js +225 -224
  129. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.client.js.map +1 -1
  130. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.d.ts +2640 -4294
  131. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.js +12608 -12706
  132. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.js.map +1 -1
  133. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api_types.cjs +1230 -1089
  134. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api_types.cjs.map +1 -1
  135. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api_types.d.ts +393 -420
  136. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api_types.js +1228 -1083
  137. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api_types.js.map +1 -1
  138. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/base_types.cjs +142 -143
  139. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/base_types.cjs.map +1 -1
  140. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/base_types.d.ts +62 -64
  141. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/base_types.js +140 -141
  142. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/base_types.js.map +1 -1
  143. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/resource_types.cjs +572 -487
  144. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/resource_types.cjs.map +1 -1
  145. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/resource_types.d.ts +125 -228
  146. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/resource_types.js +572 -485
  147. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/resource_types.js.map +1 -1
  148. package/dist/proto-grpc/google/protobuf/any.cjs +131 -146
  149. package/dist/proto-grpc/google/protobuf/any.cjs.map +1 -1
  150. package/dist/proto-grpc/google/protobuf/any.d.ts +78 -84
  151. package/dist/proto-grpc/google/protobuf/any.js +130 -144
  152. package/dist/proto-grpc/google/protobuf/any.js.map +1 -1
  153. package/dist/proto-grpc/google/protobuf/duration.cjs +92 -100
  154. package/dist/proto-grpc/google/protobuf/duration.cjs.map +1 -1
  155. package/dist/proto-grpc/google/protobuf/duration.d.ts +38 -43
  156. package/dist/proto-grpc/google/protobuf/duration.js +91 -98
  157. package/dist/proto-grpc/google/protobuf/duration.js.map +1 -1
  158. package/dist/proto-grpc/google/protobuf/timestamp.cjs +117 -128
  159. package/dist/proto-grpc/google/protobuf/timestamp.cjs.map +1 -1
  160. package/dist/proto-grpc/google/protobuf/timestamp.d.ts +50 -55
  161. package/dist/proto-grpc/google/protobuf/timestamp.js +116 -126
  162. package/dist/proto-grpc/google/protobuf/timestamp.js.map +1 -1
  163. package/dist/proto-grpc/google/rpc/code.cjs +223 -238
  164. package/dist/proto-grpc/google/rpc/code.cjs.map +1 -1
  165. package/dist/proto-grpc/google/rpc/code.d.ts +209 -206
  166. package/dist/proto-grpc/google/rpc/code.js +221 -237
  167. package/dist/proto-grpc/google/rpc/code.js.map +1 -1
  168. package/dist/proto-rest/index.cjs +67 -66
  169. package/dist/proto-rest/index.cjs.map +1 -1
  170. package/dist/proto-rest/index.d.ts +24 -18
  171. package/dist/proto-rest/index.js +61 -65
  172. package/dist/proto-rest/index.js.map +1 -1
  173. package/dist/proto-rest/plapi.d.ts +1400 -1477
  174. package/dist/test/tcp-proxy.cjs +100 -126
  175. package/dist/test/tcp-proxy.cjs.map +1 -1
  176. package/dist/test/tcp-proxy.d.ts +17 -13
  177. package/dist/test/tcp-proxy.js +97 -104
  178. package/dist/test/tcp-proxy.js.map +1 -1
  179. package/dist/test/test_config.cjs +145 -194
  180. package/dist/test/test_config.cjs.map +1 -1
  181. package/dist/test/test_config.d.ts +34 -30
  182. package/dist/test/test_config.js +138 -166
  183. package/dist/test/test_config.js.map +1 -1
  184. package/dist/util/pl.cjs +4 -3
  185. package/dist/util/pl.cjs.map +1 -1
  186. package/dist/util/pl.js +4 -2
  187. package/dist/util/pl.js.map +1 -1
  188. package/dist/util/util.cjs +7 -10
  189. package/dist/util/util.cjs.map +1 -1
  190. package/dist/util/util.js +7 -9
  191. package/dist/util/util.js.map +1 -1
  192. package/package.json +10 -10
  193. package/src/core/transaction.ts +123 -133
  194. package/dist/__external/.pnpm/@rollup_plugin-typescript@12.3.0_rollup@4.52.4_tslib@2.8.1_typescript@5.6.3/__external/tslib/tslib.es6.cjs +0 -61
  195. package/dist/__external/.pnpm/@rollup_plugin-typescript@12.3.0_rollup@4.52.4_tslib@2.8.1_typescript@5.6.3/__external/tslib/tslib.es6.cjs.map +0 -1
  196. package/dist/__external/.pnpm/@rollup_plugin-typescript@12.3.0_rollup@4.52.4_tslib@2.8.1_typescript@5.6.3/__external/tslib/tslib.es6.js +0 -58
  197. package/dist/__external/.pnpm/@rollup_plugin-typescript@12.3.0_rollup@4.52.4_tslib@2.8.1_typescript@5.6.3/__external/tslib/tslib.es6.js.map +0 -1
  198. package/dist/core/PromiseTracker.d.ts.map +0 -1
  199. package/dist/core/StatefulPromise.d.ts +0 -39
  200. package/dist/core/StatefulPromise.d.ts.map +0 -1
  201. package/dist/core/abstract_stream.d.ts.map +0 -1
  202. package/dist/core/advisory_locks.d.ts +0 -10
  203. package/dist/core/advisory_locks.d.ts.map +0 -1
  204. package/dist/core/auth.d.ts.map +0 -1
  205. package/dist/core/cache.d.ts.map +0 -1
  206. package/dist/core/client.d.ts.map +0 -1
  207. package/dist/core/config.d.ts.map +0 -1
  208. package/dist/core/default_client.d.ts.map +0 -1
  209. package/dist/core/driver.d.ts.map +0 -1
  210. package/dist/core/error_resource.d.ts +0 -6
  211. package/dist/core/error_resource.d.ts.map +0 -1
  212. package/dist/core/errors.d.ts.map +0 -1
  213. package/dist/core/final.d.ts.map +0 -1
  214. package/dist/core/ll_client.d.ts.map +0 -1
  215. package/dist/core/ll_transaction.d.ts.map +0 -1
  216. package/dist/core/stat.d.ts.map +0 -1
  217. package/dist/core/transaction.d.ts.map +0 -1
  218. package/dist/core/type_conversion.d.ts +0 -8
  219. package/dist/core/type_conversion.d.ts.map +0 -1
  220. package/dist/core/types.d.ts.map +0 -1
  221. package/dist/core/unauth_client.d.ts.map +0 -1
  222. package/dist/core/websocket_stream.d.ts +0 -67
  223. package/dist/core/websocket_stream.d.ts.map +0 -1
  224. package/dist/core/wire.d.ts.map +0 -1
  225. package/dist/helpers/pl.d.ts.map +0 -1
  226. package/dist/helpers/poll.d.ts.map +0 -1
  227. package/dist/helpers/retry_strategy.d.ts +0 -24
  228. package/dist/helpers/retry_strategy.d.ts.map +0 -1
  229. package/dist/helpers/state_helpers.d.ts +0 -3
  230. package/dist/helpers/state_helpers.d.ts.map +0 -1
  231. package/dist/helpers/tx_helpers.d.ts.map +0 -1
  232. package/dist/index.cjs.map +0 -1
  233. package/dist/index.d.ts.map +0 -1
  234. package/dist/index.js.map +0 -1
  235. package/dist/proto-grpc/github.com/googleapis/googleapis/google/rpc/status.d.ts.map +0 -1
  236. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.client.d.ts.map +0 -1
  237. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.d.ts.map +0 -1
  238. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api_types.d.ts.map +0 -1
  239. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/base_types.d.ts.map +0 -1
  240. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/import.d.ts +0 -106
  241. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/import.d.ts.map +0 -1
  242. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/resource_types.d.ts.map +0 -1
  243. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/ws-test.d.ts +0 -73
  244. package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/ws-test.d.ts.map +0 -1
  245. package/dist/proto-grpc/google/api/http.d.ts +0 -456
  246. package/dist/proto-grpc/google/api/http.d.ts.map +0 -1
  247. package/dist/proto-grpc/google/protobuf/any.d.ts.map +0 -1
  248. package/dist/proto-grpc/google/protobuf/descriptor.d.ts +0 -2340
  249. package/dist/proto-grpc/google/protobuf/descriptor.d.ts.map +0 -1
  250. package/dist/proto-grpc/google/protobuf/duration.d.ts.map +0 -1
  251. package/dist/proto-grpc/google/protobuf/empty.d.ts +0 -32
  252. package/dist/proto-grpc/google/protobuf/empty.d.ts.map +0 -1
  253. package/dist/proto-grpc/google/protobuf/struct.d.ts +0 -187
  254. package/dist/proto-grpc/google/protobuf/struct.d.ts.map +0 -1
  255. package/dist/proto-grpc/google/protobuf/timestamp.d.ts.map +0 -1
  256. package/dist/proto-grpc/google/protobuf/wrappers.d.ts +0 -308
  257. package/dist/proto-grpc/google/protobuf/wrappers.d.ts.map +0 -1
  258. package/dist/proto-grpc/google/rpc/code.d.ts.map +0 -1
  259. package/dist/proto-grpc/google/rpc/error_details.d.ts +0 -654
  260. package/dist/proto-grpc/google/rpc/error_details.d.ts.map +0 -1
  261. package/dist/proto-grpc/google/rpc/http.d.ts +0 -121
  262. package/dist/proto-grpc/google/rpc/http.d.ts.map +0 -1
  263. package/dist/proto-grpc/google/rpc/status.d.ts +0 -55
  264. package/dist/proto-grpc/google/rpc/status.d.ts.map +0 -1
  265. package/dist/proto-rest/index.d.ts.map +0 -1
  266. package/dist/proto-rest/plapi.d.ts.map +0 -1
  267. package/dist/test/tcp-proxy.d.ts.map +0 -1
  268. package/dist/test/test_config.d.ts.map +0 -1
  269. package/dist/util/branding.d.ts +0 -7
  270. package/dist/util/branding.d.ts.map +0 -1
  271. package/dist/util/pl.d.ts +0 -9
  272. package/dist/util/pl.d.ts.map +0 -1
  273. package/dist/util/util.d.ts +0 -2
  274. package/dist/util/util.d.ts.map +0 -1
@@ -1,3 +1,4 @@
1
+ //#region src/proto-grpc/google/rpc/code.d.ts
1
2
  /**
2
3
  * The canonical error codes for gRPC APIs.
3
4
  *
@@ -9,211 +10,213 @@
9
10
  *
10
11
  * @generated from protobuf enum google.rpc.Code
11
12
  */
12
- export declare enum Code {
13
- /**
14
- * Not an error; returned on success.
15
- *
16
- * HTTP Mapping: 200 OK
17
- *
18
- * @generated from protobuf enum value: OK = 0;
19
- */
20
- OK = 0,
21
- /**
22
- * The operation was cancelled, typically by the caller.
23
- *
24
- * HTTP Mapping: 499 Client Closed Request
25
- *
26
- * @generated from protobuf enum value: CANCELLED = 1;
27
- */
28
- CANCELLED = 1,
29
- /**
30
- * Unknown error. For example, this error may be returned when
31
- * a `Status` value received from another address space belongs to
32
- * an error space that is not known in this address space. Also
33
- * errors raised by APIs that do not return enough error information
34
- * may be converted to this error.
35
- *
36
- * HTTP Mapping: 500 Internal Server Error
37
- *
38
- * @generated from protobuf enum value: UNKNOWN = 2;
39
- */
40
- UNKNOWN = 2,
41
- /**
42
- * The client specified an invalid argument. Note that this differs
43
- * from `FAILED_PRECONDITION`. `INVALID_ARGUMENT` indicates arguments
44
- * that are problematic regardless of the state of the system
45
- * (e.g., a malformed file name).
46
- *
47
- * HTTP Mapping: 400 Bad Request
48
- *
49
- * @generated from protobuf enum value: INVALID_ARGUMENT = 3;
50
- */
51
- INVALID_ARGUMENT = 3,
52
- /**
53
- * The deadline expired before the operation could complete. For operations
54
- * that change the state of the system, this error may be returned
55
- * even if the operation has completed successfully. For example, a
56
- * successful response from a server could have been delayed long
57
- * enough for the deadline to expire.
58
- *
59
- * HTTP Mapping: 504 Gateway Timeout
60
- *
61
- * @generated from protobuf enum value: DEADLINE_EXCEEDED = 4;
62
- */
63
- DEADLINE_EXCEEDED = 4,
64
- /**
65
- * Some requested entity (e.g., file or directory) was not found.
66
- *
67
- * Note to server developers: if a request is denied for an entire class
68
- * of users, such as gradual feature rollout or undocumented allowlist,
69
- * `NOT_FOUND` may be used. If a request is denied for some users within
70
- * a class of users, such as user-based access control, `PERMISSION_DENIED`
71
- * must be used.
72
- *
73
- * HTTP Mapping: 404 Not Found
74
- *
75
- * @generated from protobuf enum value: NOT_FOUND = 5;
76
- */
77
- NOT_FOUND = 5,
78
- /**
79
- * The entity that a client attempted to create (e.g., file or directory)
80
- * already exists.
81
- *
82
- * HTTP Mapping: 409 Conflict
83
- *
84
- * @generated from protobuf enum value: ALREADY_EXISTS = 6;
85
- */
86
- ALREADY_EXISTS = 6,
87
- /**
88
- * The caller does not have permission to execute the specified
89
- * operation. `PERMISSION_DENIED` must not be used for rejections
90
- * caused by exhausting some resource (use `RESOURCE_EXHAUSTED`
91
- * instead for those errors). `PERMISSION_DENIED` must not be
92
- * used if the caller can not be identified (use `UNAUTHENTICATED`
93
- * instead for those errors). This error code does not imply the
94
- * request is valid or the requested entity exists or satisfies
95
- * other pre-conditions.
96
- *
97
- * HTTP Mapping: 403 Forbidden
98
- *
99
- * @generated from protobuf enum value: PERMISSION_DENIED = 7;
100
- */
101
- PERMISSION_DENIED = 7,
102
- /**
103
- * The request does not have valid authentication credentials for the
104
- * operation.
105
- *
106
- * HTTP Mapping: 401 Unauthorized
107
- *
108
- * @generated from protobuf enum value: UNAUTHENTICATED = 16;
109
- */
110
- UNAUTHENTICATED = 16,
111
- /**
112
- * Some resource has been exhausted, perhaps a per-user quota, or
113
- * perhaps the entire file system is out of space.
114
- *
115
- * HTTP Mapping: 429 Too Many Requests
116
- *
117
- * @generated from protobuf enum value: RESOURCE_EXHAUSTED = 8;
118
- */
119
- RESOURCE_EXHAUSTED = 8,
120
- /**
121
- * The operation was rejected because the system is not in a state
122
- * required for the operation's execution. For example, the directory
123
- * to be deleted is non-empty, an rmdir operation is applied to
124
- * a non-directory, etc.
125
- *
126
- * Service implementors can use the following guidelines to decide
127
- * between `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`:
128
- * (a) Use `UNAVAILABLE` if the client can retry just the failing call.
129
- * (b) Use `ABORTED` if the client should retry at a higher level. For
130
- * example, when a client-specified test-and-set fails, indicating the
131
- * client should restart a read-modify-write sequence.
132
- * (c) Use `FAILED_PRECONDITION` if the client should not retry until
133
- * the system state has been explicitly fixed. For example, if an "rmdir"
134
- * fails because the directory is non-empty, `FAILED_PRECONDITION`
135
- * should be returned since the client should not retry unless
136
- * the files are deleted from the directory.
137
- *
138
- * HTTP Mapping: 400 Bad Request
139
- *
140
- * @generated from protobuf enum value: FAILED_PRECONDITION = 9;
141
- */
142
- FAILED_PRECONDITION = 9,
143
- /**
144
- * The operation was aborted, typically due to a concurrency issue such as
145
- * a sequencer check failure or transaction abort.
146
- *
147
- * See the guidelines above for deciding between `FAILED_PRECONDITION`,
148
- * `ABORTED`, and `UNAVAILABLE`.
149
- *
150
- * HTTP Mapping: 409 Conflict
151
- *
152
- * @generated from protobuf enum value: ABORTED = 10;
153
- */
154
- ABORTED = 10,
155
- /**
156
- * The operation was attempted past the valid range. E.g., seeking or
157
- * reading past end-of-file.
158
- *
159
- * Unlike `INVALID_ARGUMENT`, this error indicates a problem that may
160
- * be fixed if the system state changes. For example, a 32-bit file
161
- * system will generate `INVALID_ARGUMENT` if asked to read at an
162
- * offset that is not in the range [0,2^32-1], but it will generate
163
- * `OUT_OF_RANGE` if asked to read from an offset past the current
164
- * file size.
165
- *
166
- * There is a fair bit of overlap between `FAILED_PRECONDITION` and
167
- * `OUT_OF_RANGE`. We recommend using `OUT_OF_RANGE` (the more specific
168
- * error) when it applies so that callers who are iterating through
169
- * a space can easily look for an `OUT_OF_RANGE` error to detect when
170
- * they are done.
171
- *
172
- * HTTP Mapping: 400 Bad Request
173
- *
174
- * @generated from protobuf enum value: OUT_OF_RANGE = 11;
175
- */
176
- OUT_OF_RANGE = 11,
177
- /**
178
- * The operation is not implemented or is not supported/enabled in this
179
- * service.
180
- *
181
- * HTTP Mapping: 501 Not Implemented
182
- *
183
- * @generated from protobuf enum value: UNIMPLEMENTED = 12;
184
- */
185
- UNIMPLEMENTED = 12,
186
- /**
187
- * Internal errors. This means that some invariants expected by the
188
- * underlying system have been broken. This error code is reserved
189
- * for serious errors.
190
- *
191
- * HTTP Mapping: 500 Internal Server Error
192
- *
193
- * @generated from protobuf enum value: INTERNAL = 13;
194
- */
195
- INTERNAL = 13,
196
- /**
197
- * The service is currently unavailable. This is most likely a
198
- * transient condition, which can be corrected by retrying with
199
- * a backoff. Note that it is not always safe to retry
200
- * non-idempotent operations.
201
- *
202
- * See the guidelines above for deciding between `FAILED_PRECONDITION`,
203
- * `ABORTED`, and `UNAVAILABLE`.
204
- *
205
- * HTTP Mapping: 503 Service Unavailable
206
- *
207
- * @generated from protobuf enum value: UNAVAILABLE = 14;
208
- */
209
- UNAVAILABLE = 14,
210
- /**
211
- * Unrecoverable data loss or corruption.
212
- *
213
- * HTTP Mapping: 500 Internal Server Error
214
- *
215
- * @generated from protobuf enum value: DATA_LOSS = 15;
216
- */
217
- DATA_LOSS = 15
13
+ declare enum Code {
14
+ /**
15
+ * Not an error; returned on success.
16
+ *
17
+ * HTTP Mapping: 200 OK
18
+ *
19
+ * @generated from protobuf enum value: OK = 0;
20
+ */
21
+ OK = 0,
22
+ /**
23
+ * The operation was cancelled, typically by the caller.
24
+ *
25
+ * HTTP Mapping: 499 Client Closed Request
26
+ *
27
+ * @generated from protobuf enum value: CANCELLED = 1;
28
+ */
29
+ CANCELLED = 1,
30
+ /**
31
+ * Unknown error. For example, this error may be returned when
32
+ * a `Status` value received from another address space belongs to
33
+ * an error space that is not known in this address space. Also
34
+ * errors raised by APIs that do not return enough error information
35
+ * may be converted to this error.
36
+ *
37
+ * HTTP Mapping: 500 Internal Server Error
38
+ *
39
+ * @generated from protobuf enum value: UNKNOWN = 2;
40
+ */
41
+ UNKNOWN = 2,
42
+ /**
43
+ * The client specified an invalid argument. Note that this differs
44
+ * from `FAILED_PRECONDITION`. `INVALID_ARGUMENT` indicates arguments
45
+ * that are problematic regardless of the state of the system
46
+ * (e.g., a malformed file name).
47
+ *
48
+ * HTTP Mapping: 400 Bad Request
49
+ *
50
+ * @generated from protobuf enum value: INVALID_ARGUMENT = 3;
51
+ */
52
+ INVALID_ARGUMENT = 3,
53
+ /**
54
+ * The deadline expired before the operation could complete. For operations
55
+ * that change the state of the system, this error may be returned
56
+ * even if the operation has completed successfully. For example, a
57
+ * successful response from a server could have been delayed long
58
+ * enough for the deadline to expire.
59
+ *
60
+ * HTTP Mapping: 504 Gateway Timeout
61
+ *
62
+ * @generated from protobuf enum value: DEADLINE_EXCEEDED = 4;
63
+ */
64
+ DEADLINE_EXCEEDED = 4,
65
+ /**
66
+ * Some requested entity (e.g., file or directory) was not found.
67
+ *
68
+ * Note to server developers: if a request is denied for an entire class
69
+ * of users, such as gradual feature rollout or undocumented allowlist,
70
+ * `NOT_FOUND` may be used. If a request is denied for some users within
71
+ * a class of users, such as user-based access control, `PERMISSION_DENIED`
72
+ * must be used.
73
+ *
74
+ * HTTP Mapping: 404 Not Found
75
+ *
76
+ * @generated from protobuf enum value: NOT_FOUND = 5;
77
+ */
78
+ NOT_FOUND = 5,
79
+ /**
80
+ * The entity that a client attempted to create (e.g., file or directory)
81
+ * already exists.
82
+ *
83
+ * HTTP Mapping: 409 Conflict
84
+ *
85
+ * @generated from protobuf enum value: ALREADY_EXISTS = 6;
86
+ */
87
+ ALREADY_EXISTS = 6,
88
+ /**
89
+ * The caller does not have permission to execute the specified
90
+ * operation. `PERMISSION_DENIED` must not be used for rejections
91
+ * caused by exhausting some resource (use `RESOURCE_EXHAUSTED`
92
+ * instead for those errors). `PERMISSION_DENIED` must not be
93
+ * used if the caller can not be identified (use `UNAUTHENTICATED`
94
+ * instead for those errors). This error code does not imply the
95
+ * request is valid or the requested entity exists or satisfies
96
+ * other pre-conditions.
97
+ *
98
+ * HTTP Mapping: 403 Forbidden
99
+ *
100
+ * @generated from protobuf enum value: PERMISSION_DENIED = 7;
101
+ */
102
+ PERMISSION_DENIED = 7,
103
+ /**
104
+ * The request does not have valid authentication credentials for the
105
+ * operation.
106
+ *
107
+ * HTTP Mapping: 401 Unauthorized
108
+ *
109
+ * @generated from protobuf enum value: UNAUTHENTICATED = 16;
110
+ */
111
+ UNAUTHENTICATED = 16,
112
+ /**
113
+ * Some resource has been exhausted, perhaps a per-user quota, or
114
+ * perhaps the entire file system is out of space.
115
+ *
116
+ * HTTP Mapping: 429 Too Many Requests
117
+ *
118
+ * @generated from protobuf enum value: RESOURCE_EXHAUSTED = 8;
119
+ */
120
+ RESOURCE_EXHAUSTED = 8,
121
+ /**
122
+ * The operation was rejected because the system is not in a state
123
+ * required for the operation's execution. For example, the directory
124
+ * to be deleted is non-empty, an rmdir operation is applied to
125
+ * a non-directory, etc.
126
+ *
127
+ * Service implementors can use the following guidelines to decide
128
+ * between `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`:
129
+ * (a) Use `UNAVAILABLE` if the client can retry just the failing call.
130
+ * (b) Use `ABORTED` if the client should retry at a higher level. For
131
+ * example, when a client-specified test-and-set fails, indicating the
132
+ * client should restart a read-modify-write sequence.
133
+ * (c) Use `FAILED_PRECONDITION` if the client should not retry until
134
+ * the system state has been explicitly fixed. For example, if an "rmdir"
135
+ * fails because the directory is non-empty, `FAILED_PRECONDITION`
136
+ * should be returned since the client should not retry unless
137
+ * the files are deleted from the directory.
138
+ *
139
+ * HTTP Mapping: 400 Bad Request
140
+ *
141
+ * @generated from protobuf enum value: FAILED_PRECONDITION = 9;
142
+ */
143
+ FAILED_PRECONDITION = 9,
144
+ /**
145
+ * The operation was aborted, typically due to a concurrency issue such as
146
+ * a sequencer check failure or transaction abort.
147
+ *
148
+ * See the guidelines above for deciding between `FAILED_PRECONDITION`,
149
+ * `ABORTED`, and `UNAVAILABLE`.
150
+ *
151
+ * HTTP Mapping: 409 Conflict
152
+ *
153
+ * @generated from protobuf enum value: ABORTED = 10;
154
+ */
155
+ ABORTED = 10,
156
+ /**
157
+ * The operation was attempted past the valid range. E.g., seeking or
158
+ * reading past end-of-file.
159
+ *
160
+ * Unlike `INVALID_ARGUMENT`, this error indicates a problem that may
161
+ * be fixed if the system state changes. For example, a 32-bit file
162
+ * system will generate `INVALID_ARGUMENT` if asked to read at an
163
+ * offset that is not in the range [0,2^32-1], but it will generate
164
+ * `OUT_OF_RANGE` if asked to read from an offset past the current
165
+ * file size.
166
+ *
167
+ * There is a fair bit of overlap between `FAILED_PRECONDITION` and
168
+ * `OUT_OF_RANGE`. We recommend using `OUT_OF_RANGE` (the more specific
169
+ * error) when it applies so that callers who are iterating through
170
+ * a space can easily look for an `OUT_OF_RANGE` error to detect when
171
+ * they are done.
172
+ *
173
+ * HTTP Mapping: 400 Bad Request
174
+ *
175
+ * @generated from protobuf enum value: OUT_OF_RANGE = 11;
176
+ */
177
+ OUT_OF_RANGE = 11,
178
+ /**
179
+ * The operation is not implemented or is not supported/enabled in this
180
+ * service.
181
+ *
182
+ * HTTP Mapping: 501 Not Implemented
183
+ *
184
+ * @generated from protobuf enum value: UNIMPLEMENTED = 12;
185
+ */
186
+ UNIMPLEMENTED = 12,
187
+ /**
188
+ * Internal errors. This means that some invariants expected by the
189
+ * underlying system have been broken. This error code is reserved
190
+ * for serious errors.
191
+ *
192
+ * HTTP Mapping: 500 Internal Server Error
193
+ *
194
+ * @generated from protobuf enum value: INTERNAL = 13;
195
+ */
196
+ INTERNAL = 13,
197
+ /**
198
+ * The service is currently unavailable. This is most likely a
199
+ * transient condition, which can be corrected by retrying with
200
+ * a backoff. Note that it is not always safe to retry
201
+ * non-idempotent operations.
202
+ *
203
+ * See the guidelines above for deciding between `FAILED_PRECONDITION`,
204
+ * `ABORTED`, and `UNAVAILABLE`.
205
+ *
206
+ * HTTP Mapping: 503 Service Unavailable
207
+ *
208
+ * @generated from protobuf enum value: UNAVAILABLE = 14;
209
+ */
210
+ UNAVAILABLE = 14,
211
+ /**
212
+ * Unrecoverable data loss or corruption.
213
+ *
214
+ * HTTP Mapping: 500 Internal Server Error
215
+ *
216
+ * @generated from protobuf enum value: DATA_LOSS = 15;
217
+ */
218
+ DATA_LOSS = 15
218
219
  }
220
+ //#endregion
221
+ export { Code };
219
222
  //# sourceMappingURL=code.d.ts.map