@milaboratories/pl-client 3.11.5 → 3.12.1
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.
- package/dist/core/PromiseTracker.cjs.map +1 -1
- package/dist/core/PromiseTracker.d.ts.map +1 -1
- package/dist/core/PromiseTracker.js.map +1 -1
- package/dist/core/StatefulPromise.cjs +2 -0
- package/dist/core/StatefulPromise.cjs.map +1 -1
- package/dist/core/StatefulPromise.js +2 -0
- package/dist/core/StatefulPromise.js.map +1 -1
- package/dist/core/abstract_stream.d.ts +1 -1
- package/dist/core/advisory_locks.cjs.map +1 -1
- package/dist/core/advisory_locks.js.map +1 -1
- package/dist/core/auth.cjs.map +1 -1
- package/dist/core/auth.d.ts.map +1 -1
- package/dist/core/auth.js.map +1 -1
- package/dist/core/cache.d.ts.map +1 -1
- package/dist/core/capabilities.cjs.map +1 -1
- package/dist/core/capabilities.d.ts +2 -3
- package/dist/core/capabilities.d.ts.map +1 -1
- package/dist/core/capabilities.js.map +1 -1
- package/dist/core/client.cjs +23 -6
- package/dist/core/client.cjs.map +1 -1
- package/dist/core/client.d.ts +14 -4
- package/dist/core/client.d.ts.map +1 -1
- package/dist/core/client.js +22 -5
- package/dist/core/client.js.map +1 -1
- package/dist/core/config.cjs.map +1 -1
- package/dist/core/config.d.ts.map +1 -1
- package/dist/core/config.js.map +1 -1
- package/dist/core/default_client.cjs +5 -5
- package/dist/core/default_client.cjs.map +1 -1
- package/dist/core/default_client.d.ts.map +1 -1
- package/dist/core/default_client.js.map +1 -1
- package/dist/core/driver.cjs.map +1 -1
- package/dist/core/driver.d.ts.map +1 -1
- package/dist/core/driver.js.map +1 -1
- package/dist/core/error_resource.cjs.map +1 -1
- package/dist/core/error_resource.js.map +1 -1
- package/dist/core/errors.cjs +11 -11
- package/dist/core/errors.cjs.map +1 -1
- package/dist/core/errors.d.ts.map +1 -1
- package/dist/core/errors.js +11 -10
- package/dist/core/errors.js.map +1 -1
- package/dist/core/final.cjs +6 -2
- package/dist/core/final.cjs.map +1 -1
- package/dist/core/final.d.ts.map +1 -1
- package/dist/core/final.js +4 -1
- package/dist/core/final.js.map +1 -1
- package/dist/core/ll_client.cjs +60 -16
- package/dist/core/ll_client.cjs.map +1 -1
- package/dist/core/ll_client.d.ts +23 -7
- package/dist/core/ll_client.d.ts.map +1 -1
- package/dist/core/ll_client.js +62 -17
- package/dist/core/ll_client.js.map +1 -1
- package/dist/core/ll_transaction.cjs +3 -1
- package/dist/core/ll_transaction.cjs.map +1 -1
- package/dist/core/ll_transaction.d.ts +1 -1
- package/dist/core/ll_transaction.d.ts.map +1 -1
- package/dist/core/ll_transaction.js +2 -1
- package/dist/core/ll_transaction.js.map +1 -1
- package/dist/core/stat.cjs.map +1 -1
- package/dist/core/stat.js.map +1 -1
- package/dist/core/transaction.cjs +91 -4
- package/dist/core/transaction.cjs.map +1 -1
- package/dist/core/transaction.d.ts +52 -2
- package/dist/core/transaction.d.ts.map +1 -1
- package/dist/core/transaction.js +90 -5
- package/dist/core/transaction.js.map +1 -1
- package/dist/core/tree_filter.cjs +73 -18
- package/dist/core/tree_filter.cjs.map +1 -1
- package/dist/core/tree_filter.d.ts +1 -1
- package/dist/core/tree_filter.d.ts.map +1 -1
- package/dist/core/tree_filter.js +72 -19
- package/dist/core/tree_filter.js.map +1 -1
- package/dist/core/type_conversion.cjs +19 -20
- package/dist/core/type_conversion.cjs.map +1 -1
- package/dist/core/type_conversion.js +19 -19
- package/dist/core/type_conversion.js.map +1 -1
- package/dist/core/types.cjs +2 -3
- package/dist/core/types.cjs.map +1 -1
- package/dist/core/types.d.ts.map +1 -1
- package/dist/core/types.js +2 -2
- package/dist/core/types.js.map +1 -1
- package/dist/core/unauth_client.cjs +7 -6
- package/dist/core/unauth_client.cjs.map +1 -1
- package/dist/core/unauth_client.d.ts +9 -0
- package/dist/core/unauth_client.d.ts.map +1 -1
- package/dist/core/unauth_client.js +7 -5
- package/dist/core/unauth_client.js.map +1 -1
- package/dist/core/user_resources.cjs +57 -1
- package/dist/core/user_resources.cjs.map +1 -1
- package/dist/core/user_resources.d.ts +55 -1
- package/dist/core/user_resources.d.ts.map +1 -1
- package/dist/core/user_resources.js +57 -0
- package/dist/core/user_resources.js.map +1 -1
- package/dist/core/websocket_stream.cjs +17 -20
- package/dist/core/websocket_stream.cjs.map +1 -1
- package/dist/core/websocket_stream.js +16 -19
- package/dist/core/websocket_stream.js.map +1 -1
- package/dist/core/wire.d.ts.map +1 -1
- package/dist/helpers/pl.cjs +25 -0
- package/dist/helpers/pl.cjs.map +1 -1
- package/dist/helpers/pl.d.ts +1 -1
- package/dist/helpers/pl.d.ts.map +1 -1
- package/dist/helpers/pl.js +1 -1
- package/dist/helpers/pl.js.map +1 -1
- package/dist/helpers/poll.cjs +5 -1
- package/dist/helpers/poll.cjs.map +1 -1
- package/dist/helpers/poll.d.ts.map +1 -1
- package/dist/helpers/poll.js +4 -0
- package/dist/helpers/poll.js.map +1 -1
- package/dist/helpers/retry_strategy.cjs +1 -0
- package/dist/helpers/retry_strategy.cjs.map +1 -1
- package/dist/helpers/retry_strategy.js +1 -1
- package/dist/helpers/retry_strategy.js.map +1 -1
- package/dist/helpers/tx_helpers.cjs +0 -1
- package/dist/helpers/tx_helpers.cjs.map +1 -1
- package/dist/helpers/tx_helpers.d.ts.map +1 -1
- package/dist/helpers/tx_helpers.js.map +1 -1
- package/dist/index.cjs +3 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2 -2
- package/dist/proto-grpc/github.com/googleapis/googleapis/google/rpc/status.cjs +0 -1
- package/dist/proto-grpc/github.com/googleapis/googleapis/google/rpc/status.cjs.map +1 -1
- package/dist/proto-grpc/github.com/googleapis/googleapis/google/rpc/status.d.ts.map +1 -1
- package/dist/proto-grpc/github.com/googleapis/googleapis/google/rpc/status.js.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.cjs +537 -83
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.cjs.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.client.cjs +11 -4
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.client.cjs.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.client.d.ts +12 -6
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.client.d.ts.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.client.js +11 -3
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.client.js.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.d.ts +112 -7
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.d.ts.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.js +336 -83
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.js.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api_types.cjs +23 -7
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api_types.cjs.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api_types.d.ts +10 -3
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api_types.d.ts.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api_types.js +18 -7
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api_types.js.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/base_types.cjs +1 -2
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/base_types.cjs.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/base_types.d.ts.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/base_types.js +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/base_types.js.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/resource_types.cjs +2 -2
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/resource_types.cjs.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/resource_types.d.ts +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/resource_types.d.ts.map +1 -1
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/resource_types.js +2 -2
- package/dist/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/resource_types.js.map +1 -1
- package/dist/proto-grpc/google/protobuf/any.cjs +1 -2
- package/dist/proto-grpc/google/protobuf/any.cjs.map +1 -1
- package/dist/proto-grpc/google/protobuf/any.d.ts.map +1 -1
- package/dist/proto-grpc/google/protobuf/any.js +1 -1
- package/dist/proto-grpc/google/protobuf/any.js.map +1 -1
- package/dist/proto-grpc/google/protobuf/duration.cjs +0 -1
- package/dist/proto-grpc/google/protobuf/duration.cjs.map +1 -1
- package/dist/proto-grpc/google/protobuf/duration.d.ts.map +1 -1
- package/dist/proto-grpc/google/protobuf/duration.js.map +1 -1
- package/dist/proto-grpc/google/protobuf/timestamp.cjs +0 -1
- package/dist/proto-grpc/google/protobuf/timestamp.cjs.map +1 -1
- package/dist/proto-grpc/google/protobuf/timestamp.d.ts.map +1 -1
- package/dist/proto-grpc/google/protobuf/timestamp.js.map +1 -1
- package/dist/proto-grpc/google/rpc/code.d.ts.map +1 -1
- package/dist/proto-rest/index.cjs +1 -1
- package/dist/proto-rest/index.cjs.map +1 -1
- package/dist/proto-rest/index.d.ts +1 -1
- package/dist/proto-rest/index.d.ts.map +1 -1
- package/dist/proto-rest/index.js.map +1 -1
- package/dist/proto-rest/plapi.d.ts +30 -9
- package/dist/proto-rest/plapi.d.ts.map +1 -1
- package/dist/test/tcp-proxy.cjs +2 -2
- package/dist/test/tcp-proxy.cjs.map +1 -1
- package/dist/test/tcp-proxy.d.ts +1 -1
- package/dist/test/tcp-proxy.js.map +1 -1
- package/dist/test/test_config.cjs +8 -2
- package/dist/test/test_config.cjs.map +1 -1
- package/dist/test/test_config.d.ts +1 -1
- package/dist/test/test_config.d.ts.map +1 -1
- package/dist/test/test_config.js +1 -1
- package/dist/test/test_config.js.map +1 -1
- package/dist/util/pl.cjs.map +1 -1
- package/dist/util/pl.js.map +1 -1
- package/dist/util/util.cjs.map +1 -1
- package/dist/util/util.js.map +1 -1
- package/package.json +4 -4
- package/src/core/capabilities.ts +10 -3
- package/src/core/client.ts +30 -3
- package/src/core/errors.ts +2 -0
- package/src/core/final.ts +4 -0
- package/src/core/ll_client.test.ts +15 -2
- package/src/core/ll_client.ts +66 -11
- package/src/core/transaction.ts +103 -3
- package/src/core/unauth_client.ts +17 -2
- package/src/core/user_resources.ts +85 -0
- package/src/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.client.ts +16 -3
- package/src/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api.ts +335 -12
- package/src/proto-grpc/github.com/milaboratory/pl/plapi/plapiproto/api_types.ts +21 -7
- package/src/proto-rest/plapi.ts +29 -8
- package/dist/proto-grpc/google/rpc/code.cjs +0 -224
- package/dist/proto-grpc/google/rpc/code.cjs.map +0 -1
- package/dist/proto-grpc/google/rpc/code.js +0 -224
- package/dist/proto-grpc/google/rpc/code.js.map +0 -1
package/src/proto-rest/plapi.ts
CHANGED
|
@@ -576,6 +576,15 @@ export interface components {
|
|
|
576
576
|
nonce: string;
|
|
577
577
|
/** Format: date-time */
|
|
578
578
|
expiresAt: string;
|
|
579
|
+
/**
|
|
580
|
+
* @description Confidential-client secret for the IdP token exchange; absent for public clients.
|
|
581
|
+
* Rationale: Google's OIDC does not support public clients — it requires a
|
|
582
|
+
* client_secret at the token endpoint even for the PKCE auth-code flow. That is a
|
|
583
|
+
* gap in Google Cloud OIDC: a desktop app cannot use Google OIDC without the secret
|
|
584
|
+
* leaving the server. So the backend holds the secret and forwards it here to the
|
|
585
|
+
* desktop, which performs the token exchange as a confidential client.
|
|
586
|
+
*/
|
|
587
|
+
clientSecret: string;
|
|
579
588
|
};
|
|
580
589
|
AuthAPI_BeginSSOLogin_Request: Record<string, never>;
|
|
581
590
|
AuthAPI_BeginSSOLogin_Response: {
|
|
@@ -657,6 +666,7 @@ export interface components {
|
|
|
657
666
|
groupsClaim: string;
|
|
658
667
|
/** Format: enum */
|
|
659
668
|
flowType: number;
|
|
669
|
+
accessType: string;
|
|
660
670
|
};
|
|
661
671
|
AuthAPI_ListMethods_TokenAuthMethod: Record<string, never>;
|
|
662
672
|
AuthAPI_Login_BasicCredentials: {
|
|
@@ -957,14 +967,20 @@ export interface components {
|
|
|
957
967
|
os: string;
|
|
958
968
|
arch: string;
|
|
959
969
|
/**
|
|
960
|
-
* @description Opt-in capabilities advertised by this server instance
|
|
961
|
-
*
|
|
962
|
-
*
|
|
970
|
+
* @description Opt-in capabilities advertised by this server instance. Two
|
|
971
|
+
* client-side usage modes share this same wire field, decided
|
|
972
|
+
* per-token by the client:
|
|
973
|
+
* - Optimization hint. Client picks between a fast path and a
|
|
974
|
+
* fallback without probing by trial-and-error; missing tokens
|
|
975
|
+
* just cause the fallback to run (e.g. "treeFilter:v2").
|
|
976
|
+
* - Install-time gate. Client refuses to install a block whose
|
|
977
|
+
* manifest declares a required capability the server doesn't
|
|
978
|
+
* advertise; missing tokens fail closed (e.g. "wasm:v1").
|
|
963
979
|
*
|
|
964
980
|
* Each entry is an opaque token "<feature>:<version>" (e.g.
|
|
965
|
-
* "
|
|
966
|
-
*
|
|
967
|
-
*
|
|
981
|
+
* "treeFilter:v2"). The field is unset on servers predating this
|
|
982
|
+
* mechanism, which the client treats as "no optional capabilities
|
|
983
|
+
* advertised" — fallback for hints, fail-closed for gates.
|
|
968
984
|
*
|
|
969
985
|
* All list see pl/platform/api/plapiserver/server_capabilities.go
|
|
970
986
|
*/
|
|
@@ -1063,8 +1079,8 @@ export interface components {
|
|
|
1063
1079
|
};
|
|
1064
1080
|
ResourceSchema_AccessFlags: {
|
|
1065
1081
|
/**
|
|
1066
|
-
* @description
|
|
1067
|
-
* Controllers set
|
|
1082
|
+
* @description Allow-list approach: default = forbidden (false)
|
|
1083
|
+
* Controllers set this to true allow non-controller roles (role='u', role='w')
|
|
1068
1084
|
*/
|
|
1069
1085
|
createResource: boolean;
|
|
1070
1086
|
/** @description IMPORTANT: read_fields=false with write_fields=true is a forbidden combination */
|
|
@@ -1083,6 +1099,11 @@ export interface components {
|
|
|
1083
1099
|
writeByFieldType: {
|
|
1084
1100
|
[key: string]: boolean;
|
|
1085
1101
|
};
|
|
1102
|
+
/**
|
|
1103
|
+
* @description Allows non-controller roles (role='u', role='w') to set error on the resource,
|
|
1104
|
+
* marking it as failed and dropping it from recovery/deduplication indicies.
|
|
1105
|
+
*/
|
|
1106
|
+
setError: boolean;
|
|
1086
1107
|
};
|
|
1087
1108
|
ResourceType: {
|
|
1088
1109
|
name: string;
|
|
@@ -1,224 +0,0 @@
|
|
|
1
|
-
//#region src/proto-grpc/google/rpc/code.ts
|
|
2
|
-
/**
|
|
3
|
-
* The canonical error codes for gRPC APIs.
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* Sometimes multiple error codes may apply. Services should return
|
|
7
|
-
* the most specific error code that applies. For example, prefer
|
|
8
|
-
* `OUT_OF_RANGE` over `FAILED_PRECONDITION` if both codes apply.
|
|
9
|
-
* Similarly prefer `NOT_FOUND` or `ALREADY_EXISTS` over `FAILED_PRECONDITION`.
|
|
10
|
-
*
|
|
11
|
-
* @generated from protobuf enum google.rpc.Code
|
|
12
|
-
*/
|
|
13
|
-
let Code = /* @__PURE__ */ function(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
|
-
Code[Code["OK"] = 0] = "OK";
|
|
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
|
-
Code[Code["CANCELLED"] = 1] = "CANCELLED";
|
|
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
|
-
Code[Code["UNKNOWN"] = 2] = "UNKNOWN";
|
|
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
|
-
Code[Code["INVALID_ARGUMENT"] = 3] = "INVALID_ARGUMENT";
|
|
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
|
-
Code[Code["DEADLINE_EXCEEDED"] = 4] = "DEADLINE_EXCEEDED";
|
|
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
|
-
Code[Code["NOT_FOUND"] = 5] = "NOT_FOUND";
|
|
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
|
-
Code[Code["ALREADY_EXISTS"] = 6] = "ALREADY_EXISTS";
|
|
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
|
-
Code[Code["PERMISSION_DENIED"] = 7] = "PERMISSION_DENIED";
|
|
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
|
-
Code[Code["UNAUTHENTICATED"] = 16] = "UNAUTHENTICATED";
|
|
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
|
-
Code[Code["RESOURCE_EXHAUSTED"] = 8] = "RESOURCE_EXHAUSTED";
|
|
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
|
-
Code[Code["FAILED_PRECONDITION"] = 9] = "FAILED_PRECONDITION";
|
|
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
|
-
Code[Code["ABORTED"] = 10] = "ABORTED";
|
|
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
|
-
Code[Code["OUT_OF_RANGE"] = 11] = "OUT_OF_RANGE";
|
|
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
|
-
Code[Code["UNIMPLEMENTED"] = 12] = "UNIMPLEMENTED";
|
|
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
|
-
Code[Code["INTERNAL"] = 13] = "INTERNAL";
|
|
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
|
-
Code[Code["UNAVAILABLE"] = 14] = "UNAVAILABLE";
|
|
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
|
-
Code[Code["DATA_LOSS"] = 15] = "DATA_LOSS";
|
|
219
|
-
return Code;
|
|
220
|
-
}({});
|
|
221
|
-
//#endregion
|
|
222
|
-
exports.Code = Code;
|
|
223
|
-
|
|
224
|
-
//# sourceMappingURL=code.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"code.cjs","names":[],"sources":["../../../../src/proto-grpc/google/rpc/code.ts"],"sourcesContent":["// @generated by protobuf-ts 2.11.1 with parameter client_generic,optimize_speed,generate_dependencies,force_server_none\n// @generated from protobuf file \"google/rpc/code.proto\" (package \"google.rpc\", syntax proto3)\n// tslint:disable\n//\n// Copyright 2025 Google LLC\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n//\n/**\n * The canonical error codes for gRPC APIs.\n *\n *\n * Sometimes multiple error codes may apply. Services should return\n * the most specific error code that applies. For example, prefer\n * `OUT_OF_RANGE` over `FAILED_PRECONDITION` if both codes apply.\n * Similarly prefer `NOT_FOUND` or `ALREADY_EXISTS` over `FAILED_PRECONDITION`.\n *\n * @generated from protobuf enum google.rpc.Code\n */\nexport enum Code {\n /**\n * Not an error; returned on success.\n *\n * HTTP Mapping: 200 OK\n *\n * @generated from protobuf enum value: OK = 0;\n */\n OK = 0,\n /**\n * The operation was cancelled, typically by the caller.\n *\n * HTTP Mapping: 499 Client Closed Request\n *\n * @generated from protobuf enum value: CANCELLED = 1;\n */\n CANCELLED = 1,\n /**\n * Unknown error. For example, this error may be returned when\n * a `Status` value received from another address space belongs to\n * an error space that is not known in this address space. Also\n * errors raised by APIs that do not return enough error information\n * may be converted to this error.\n *\n * HTTP Mapping: 500 Internal Server Error\n *\n * @generated from protobuf enum value: UNKNOWN = 2;\n */\n UNKNOWN = 2,\n /**\n * The client specified an invalid argument. Note that this differs\n * from `FAILED_PRECONDITION`. `INVALID_ARGUMENT` indicates arguments\n * that are problematic regardless of the state of the system\n * (e.g., a malformed file name).\n *\n * HTTP Mapping: 400 Bad Request\n *\n * @generated from protobuf enum value: INVALID_ARGUMENT = 3;\n */\n INVALID_ARGUMENT = 3,\n /**\n * The deadline expired before the operation could complete. For operations\n * that change the state of the system, this error may be returned\n * even if the operation has completed successfully. For example, a\n * successful response from a server could have been delayed long\n * enough for the deadline to expire.\n *\n * HTTP Mapping: 504 Gateway Timeout\n *\n * @generated from protobuf enum value: DEADLINE_EXCEEDED = 4;\n */\n DEADLINE_EXCEEDED = 4,\n /**\n * Some requested entity (e.g., file or directory) was not found.\n *\n * Note to server developers: if a request is denied for an entire class\n * of users, such as gradual feature rollout or undocumented allowlist,\n * `NOT_FOUND` may be used. If a request is denied for some users within\n * a class of users, such as user-based access control, `PERMISSION_DENIED`\n * must be used.\n *\n * HTTP Mapping: 404 Not Found\n *\n * @generated from protobuf enum value: NOT_FOUND = 5;\n */\n NOT_FOUND = 5,\n /**\n * The entity that a client attempted to create (e.g., file or directory)\n * already exists.\n *\n * HTTP Mapping: 409 Conflict\n *\n * @generated from protobuf enum value: ALREADY_EXISTS = 6;\n */\n ALREADY_EXISTS = 6,\n /**\n * The caller does not have permission to execute the specified\n * operation. `PERMISSION_DENIED` must not be used for rejections\n * caused by exhausting some resource (use `RESOURCE_EXHAUSTED`\n * instead for those errors). `PERMISSION_DENIED` must not be\n * used if the caller can not be identified (use `UNAUTHENTICATED`\n * instead for those errors). This error code does not imply the\n * request is valid or the requested entity exists or satisfies\n * other pre-conditions.\n *\n * HTTP Mapping: 403 Forbidden\n *\n * @generated from protobuf enum value: PERMISSION_DENIED = 7;\n */\n PERMISSION_DENIED = 7,\n /**\n * The request does not have valid authentication credentials for the\n * operation.\n *\n * HTTP Mapping: 401 Unauthorized\n *\n * @generated from protobuf enum value: UNAUTHENTICATED = 16;\n */\n UNAUTHENTICATED = 16,\n /**\n * Some resource has been exhausted, perhaps a per-user quota, or\n * perhaps the entire file system is out of space.\n *\n * HTTP Mapping: 429 Too Many Requests\n *\n * @generated from protobuf enum value: RESOURCE_EXHAUSTED = 8;\n */\n RESOURCE_EXHAUSTED = 8,\n /**\n * The operation was rejected because the system is not in a state\n * required for the operation's execution. For example, the directory\n * to be deleted is non-empty, an rmdir operation is applied to\n * a non-directory, etc.\n *\n * Service implementors can use the following guidelines to decide\n * between `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`:\n * (a) Use `UNAVAILABLE` if the client can retry just the failing call.\n * (b) Use `ABORTED` if the client should retry at a higher level. For\n * example, when a client-specified test-and-set fails, indicating the\n * client should restart a read-modify-write sequence.\n * (c) Use `FAILED_PRECONDITION` if the client should not retry until\n * the system state has been explicitly fixed. For example, if an \"rmdir\"\n * fails because the directory is non-empty, `FAILED_PRECONDITION`\n * should be returned since the client should not retry unless\n * the files are deleted from the directory.\n *\n * HTTP Mapping: 400 Bad Request\n *\n * @generated from protobuf enum value: FAILED_PRECONDITION = 9;\n */\n FAILED_PRECONDITION = 9,\n /**\n * The operation was aborted, typically due to a concurrency issue such as\n * a sequencer check failure or transaction abort.\n *\n * See the guidelines above for deciding between `FAILED_PRECONDITION`,\n * `ABORTED`, and `UNAVAILABLE`.\n *\n * HTTP Mapping: 409 Conflict\n *\n * @generated from protobuf enum value: ABORTED = 10;\n */\n ABORTED = 10,\n /**\n * The operation was attempted past the valid range. E.g., seeking or\n * reading past end-of-file.\n *\n * Unlike `INVALID_ARGUMENT`, this error indicates a problem that may\n * be fixed if the system state changes. For example, a 32-bit file\n * system will generate `INVALID_ARGUMENT` if asked to read at an\n * offset that is not in the range [0,2^32-1], but it will generate\n * `OUT_OF_RANGE` if asked to read from an offset past the current\n * file size.\n *\n * There is a fair bit of overlap between `FAILED_PRECONDITION` and\n * `OUT_OF_RANGE`. We recommend using `OUT_OF_RANGE` (the more specific\n * error) when it applies so that callers who are iterating through\n * a space can easily look for an `OUT_OF_RANGE` error to detect when\n * they are done.\n *\n * HTTP Mapping: 400 Bad Request\n *\n * @generated from protobuf enum value: OUT_OF_RANGE = 11;\n */\n OUT_OF_RANGE = 11,\n /**\n * The operation is not implemented or is not supported/enabled in this\n * service.\n *\n * HTTP Mapping: 501 Not Implemented\n *\n * @generated from protobuf enum value: UNIMPLEMENTED = 12;\n */\n UNIMPLEMENTED = 12,\n /**\n * Internal errors. This means that some invariants expected by the\n * underlying system have been broken. This error code is reserved\n * for serious errors.\n *\n * HTTP Mapping: 500 Internal Server Error\n *\n * @generated from protobuf enum value: INTERNAL = 13;\n */\n INTERNAL = 13,\n /**\n * The service is currently unavailable. This is most likely a\n * transient condition, which can be corrected by retrying with\n * a backoff. Note that it is not always safe to retry\n * non-idempotent operations.\n *\n * See the guidelines above for deciding between `FAILED_PRECONDITION`,\n * `ABORTED`, and `UNAVAILABLE`.\n *\n * HTTP Mapping: 503 Service Unavailable\n *\n * @generated from protobuf enum value: UNAVAILABLE = 14;\n */\n UNAVAILABLE = 14,\n /**\n * Unrecoverable data loss or corruption.\n *\n * HTTP Mapping: 500 Internal Server Error\n *\n * @generated from protobuf enum value: DATA_LOSS = 15;\n */\n DATA_LOSS = 15\n}\n"],"mappings":";;;;;;;;;;;;AA6BA,IAAY,OAAL,yBAAA,MAAA;;;;;;;;AAQH,MAAA,KAAA,QAAA,KAAA;;;;;;;;AAQA,MAAA,KAAA,eAAA,KAAA;;;;;;;;;;;;AAYA,MAAA,KAAA,aAAA,KAAA;;;;;;;;;;;AAWA,MAAA,KAAA,sBAAA,KAAA;;;;;;;;;;;;AAYA,MAAA,KAAA,uBAAA,KAAA;;;;;;;;;;;;;;AAcA,MAAA,KAAA,eAAA,KAAA;;;;;;;;;AASA,MAAA,KAAA,oBAAA,KAAA;;;;;;;;;;;;;;;AAeA,MAAA,KAAA,uBAAA,KAAA;;;;;;;;;AASA,MAAA,KAAA,qBAAA,MAAA;;;;;;;;;AASA,MAAA,KAAA,wBAAA,KAAA;;;;;;;;;;;;;;;;;;;;;;;AAuBA,MAAA,KAAA,yBAAA,KAAA;;;;;;;;;;;;AAYA,MAAA,KAAA,aAAA,MAAA;;;;;;;;;;;;;;;;;;;;;;AAsBA,MAAA,KAAA,kBAAA,MAAA;;;;;;;;;AASA,MAAA,KAAA,mBAAA,MAAA;;;;;;;;;;AAUA,MAAA,KAAA,cAAA,MAAA;;;;;;;;;;;;;;AAcA,MAAA,KAAA,iBAAA,MAAA;;;;;;;;AAQA,MAAA,KAAA,eAAA,MAAA;;KACH"}
|
|
@@ -1,224 +0,0 @@
|
|
|
1
|
-
//#region src/proto-grpc/google/rpc/code.ts
|
|
2
|
-
/**
|
|
3
|
-
* The canonical error codes for gRPC APIs.
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* Sometimes multiple error codes may apply. Services should return
|
|
7
|
-
* the most specific error code that applies. For example, prefer
|
|
8
|
-
* `OUT_OF_RANGE` over `FAILED_PRECONDITION` if both codes apply.
|
|
9
|
-
* Similarly prefer `NOT_FOUND` or `ALREADY_EXISTS` over `FAILED_PRECONDITION`.
|
|
10
|
-
*
|
|
11
|
-
* @generated from protobuf enum google.rpc.Code
|
|
12
|
-
*/
|
|
13
|
-
let Code = /* @__PURE__ */ function(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
|
-
Code[Code["OK"] = 0] = "OK";
|
|
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
|
-
Code[Code["CANCELLED"] = 1] = "CANCELLED";
|
|
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
|
-
Code[Code["UNKNOWN"] = 2] = "UNKNOWN";
|
|
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
|
-
Code[Code["INVALID_ARGUMENT"] = 3] = "INVALID_ARGUMENT";
|
|
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
|
-
Code[Code["DEADLINE_EXCEEDED"] = 4] = "DEADLINE_EXCEEDED";
|
|
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
|
-
Code[Code["NOT_FOUND"] = 5] = "NOT_FOUND";
|
|
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
|
-
Code[Code["ALREADY_EXISTS"] = 6] = "ALREADY_EXISTS";
|
|
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
|
-
Code[Code["PERMISSION_DENIED"] = 7] = "PERMISSION_DENIED";
|
|
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
|
-
Code[Code["UNAUTHENTICATED"] = 16] = "UNAUTHENTICATED";
|
|
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
|
-
Code[Code["RESOURCE_EXHAUSTED"] = 8] = "RESOURCE_EXHAUSTED";
|
|
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
|
-
Code[Code["FAILED_PRECONDITION"] = 9] = "FAILED_PRECONDITION";
|
|
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
|
-
Code[Code["ABORTED"] = 10] = "ABORTED";
|
|
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
|
-
Code[Code["OUT_OF_RANGE"] = 11] = "OUT_OF_RANGE";
|
|
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
|
-
Code[Code["UNIMPLEMENTED"] = 12] = "UNIMPLEMENTED";
|
|
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
|
-
Code[Code["INTERNAL"] = 13] = "INTERNAL";
|
|
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
|
-
Code[Code["UNAVAILABLE"] = 14] = "UNAVAILABLE";
|
|
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
|
-
Code[Code["DATA_LOSS"] = 15] = "DATA_LOSS";
|
|
219
|
-
return Code;
|
|
220
|
-
}({});
|
|
221
|
-
//#endregion
|
|
222
|
-
export { Code };
|
|
223
|
-
|
|
224
|
-
//# sourceMappingURL=code.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"code.js","names":[],"sources":["../../../../src/proto-grpc/google/rpc/code.ts"],"sourcesContent":["// @generated by protobuf-ts 2.11.1 with parameter client_generic,optimize_speed,generate_dependencies,force_server_none\n// @generated from protobuf file \"google/rpc/code.proto\" (package \"google.rpc\", syntax proto3)\n// tslint:disable\n//\n// Copyright 2025 Google LLC\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n//\n/**\n * The canonical error codes for gRPC APIs.\n *\n *\n * Sometimes multiple error codes may apply. Services should return\n * the most specific error code that applies. For example, prefer\n * `OUT_OF_RANGE` over `FAILED_PRECONDITION` if both codes apply.\n * Similarly prefer `NOT_FOUND` or `ALREADY_EXISTS` over `FAILED_PRECONDITION`.\n *\n * @generated from protobuf enum google.rpc.Code\n */\nexport enum Code {\n /**\n * Not an error; returned on success.\n *\n * HTTP Mapping: 200 OK\n *\n * @generated from protobuf enum value: OK = 0;\n */\n OK = 0,\n /**\n * The operation was cancelled, typically by the caller.\n *\n * HTTP Mapping: 499 Client Closed Request\n *\n * @generated from protobuf enum value: CANCELLED = 1;\n */\n CANCELLED = 1,\n /**\n * Unknown error. For example, this error may be returned when\n * a `Status` value received from another address space belongs to\n * an error space that is not known in this address space. Also\n * errors raised by APIs that do not return enough error information\n * may be converted to this error.\n *\n * HTTP Mapping: 500 Internal Server Error\n *\n * @generated from protobuf enum value: UNKNOWN = 2;\n */\n UNKNOWN = 2,\n /**\n * The client specified an invalid argument. Note that this differs\n * from `FAILED_PRECONDITION`. `INVALID_ARGUMENT` indicates arguments\n * that are problematic regardless of the state of the system\n * (e.g., a malformed file name).\n *\n * HTTP Mapping: 400 Bad Request\n *\n * @generated from protobuf enum value: INVALID_ARGUMENT = 3;\n */\n INVALID_ARGUMENT = 3,\n /**\n * The deadline expired before the operation could complete. For operations\n * that change the state of the system, this error may be returned\n * even if the operation has completed successfully. For example, a\n * successful response from a server could have been delayed long\n * enough for the deadline to expire.\n *\n * HTTP Mapping: 504 Gateway Timeout\n *\n * @generated from protobuf enum value: DEADLINE_EXCEEDED = 4;\n */\n DEADLINE_EXCEEDED = 4,\n /**\n * Some requested entity (e.g., file or directory) was not found.\n *\n * Note to server developers: if a request is denied for an entire class\n * of users, such as gradual feature rollout or undocumented allowlist,\n * `NOT_FOUND` may be used. If a request is denied for some users within\n * a class of users, such as user-based access control, `PERMISSION_DENIED`\n * must be used.\n *\n * HTTP Mapping: 404 Not Found\n *\n * @generated from protobuf enum value: NOT_FOUND = 5;\n */\n NOT_FOUND = 5,\n /**\n * The entity that a client attempted to create (e.g., file or directory)\n * already exists.\n *\n * HTTP Mapping: 409 Conflict\n *\n * @generated from protobuf enum value: ALREADY_EXISTS = 6;\n */\n ALREADY_EXISTS = 6,\n /**\n * The caller does not have permission to execute the specified\n * operation. `PERMISSION_DENIED` must not be used for rejections\n * caused by exhausting some resource (use `RESOURCE_EXHAUSTED`\n * instead for those errors). `PERMISSION_DENIED` must not be\n * used if the caller can not be identified (use `UNAUTHENTICATED`\n * instead for those errors). This error code does not imply the\n * request is valid or the requested entity exists or satisfies\n * other pre-conditions.\n *\n * HTTP Mapping: 403 Forbidden\n *\n * @generated from protobuf enum value: PERMISSION_DENIED = 7;\n */\n PERMISSION_DENIED = 7,\n /**\n * The request does not have valid authentication credentials for the\n * operation.\n *\n * HTTP Mapping: 401 Unauthorized\n *\n * @generated from protobuf enum value: UNAUTHENTICATED = 16;\n */\n UNAUTHENTICATED = 16,\n /**\n * Some resource has been exhausted, perhaps a per-user quota, or\n * perhaps the entire file system is out of space.\n *\n * HTTP Mapping: 429 Too Many Requests\n *\n * @generated from protobuf enum value: RESOURCE_EXHAUSTED = 8;\n */\n RESOURCE_EXHAUSTED = 8,\n /**\n * The operation was rejected because the system is not in a state\n * required for the operation's execution. For example, the directory\n * to be deleted is non-empty, an rmdir operation is applied to\n * a non-directory, etc.\n *\n * Service implementors can use the following guidelines to decide\n * between `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`:\n * (a) Use `UNAVAILABLE` if the client can retry just the failing call.\n * (b) Use `ABORTED` if the client should retry at a higher level. For\n * example, when a client-specified test-and-set fails, indicating the\n * client should restart a read-modify-write sequence.\n * (c) Use `FAILED_PRECONDITION` if the client should not retry until\n * the system state has been explicitly fixed. For example, if an \"rmdir\"\n * fails because the directory is non-empty, `FAILED_PRECONDITION`\n * should be returned since the client should not retry unless\n * the files are deleted from the directory.\n *\n * HTTP Mapping: 400 Bad Request\n *\n * @generated from protobuf enum value: FAILED_PRECONDITION = 9;\n */\n FAILED_PRECONDITION = 9,\n /**\n * The operation was aborted, typically due to a concurrency issue such as\n * a sequencer check failure or transaction abort.\n *\n * See the guidelines above for deciding between `FAILED_PRECONDITION`,\n * `ABORTED`, and `UNAVAILABLE`.\n *\n * HTTP Mapping: 409 Conflict\n *\n * @generated from protobuf enum value: ABORTED = 10;\n */\n ABORTED = 10,\n /**\n * The operation was attempted past the valid range. E.g., seeking or\n * reading past end-of-file.\n *\n * Unlike `INVALID_ARGUMENT`, this error indicates a problem that may\n * be fixed if the system state changes. For example, a 32-bit file\n * system will generate `INVALID_ARGUMENT` if asked to read at an\n * offset that is not in the range [0,2^32-1], but it will generate\n * `OUT_OF_RANGE` if asked to read from an offset past the current\n * file size.\n *\n * There is a fair bit of overlap between `FAILED_PRECONDITION` and\n * `OUT_OF_RANGE`. We recommend using `OUT_OF_RANGE` (the more specific\n * error) when it applies so that callers who are iterating through\n * a space can easily look for an `OUT_OF_RANGE` error to detect when\n * they are done.\n *\n * HTTP Mapping: 400 Bad Request\n *\n * @generated from protobuf enum value: OUT_OF_RANGE = 11;\n */\n OUT_OF_RANGE = 11,\n /**\n * The operation is not implemented or is not supported/enabled in this\n * service.\n *\n * HTTP Mapping: 501 Not Implemented\n *\n * @generated from protobuf enum value: UNIMPLEMENTED = 12;\n */\n UNIMPLEMENTED = 12,\n /**\n * Internal errors. This means that some invariants expected by the\n * underlying system have been broken. This error code is reserved\n * for serious errors.\n *\n * HTTP Mapping: 500 Internal Server Error\n *\n * @generated from protobuf enum value: INTERNAL = 13;\n */\n INTERNAL = 13,\n /**\n * The service is currently unavailable. This is most likely a\n * transient condition, which can be corrected by retrying with\n * a backoff. Note that it is not always safe to retry\n * non-idempotent operations.\n *\n * See the guidelines above for deciding between `FAILED_PRECONDITION`,\n * `ABORTED`, and `UNAVAILABLE`.\n *\n * HTTP Mapping: 503 Service Unavailable\n *\n * @generated from protobuf enum value: UNAVAILABLE = 14;\n */\n UNAVAILABLE = 14,\n /**\n * Unrecoverable data loss or corruption.\n *\n * HTTP Mapping: 500 Internal Server Error\n *\n * @generated from protobuf enum value: DATA_LOSS = 15;\n */\n DATA_LOSS = 15\n}\n"],"mappings":";;;;;;;;;;;;AA6BA,IAAY,OAAL,yBAAA,MAAA;;;;;;;;AAQH,MAAA,KAAA,QAAA,KAAA;;;;;;;;AAQA,MAAA,KAAA,eAAA,KAAA;;;;;;;;;;;;AAYA,MAAA,KAAA,aAAA,KAAA;;;;;;;;;;;AAWA,MAAA,KAAA,sBAAA,KAAA;;;;;;;;;;;;AAYA,MAAA,KAAA,uBAAA,KAAA;;;;;;;;;;;;;;AAcA,MAAA,KAAA,eAAA,KAAA;;;;;;;;;AASA,MAAA,KAAA,oBAAA,KAAA;;;;;;;;;;;;;;;AAeA,MAAA,KAAA,uBAAA,KAAA;;;;;;;;;AASA,MAAA,KAAA,qBAAA,MAAA;;;;;;;;;AASA,MAAA,KAAA,wBAAA,KAAA;;;;;;;;;;;;;;;;;;;;;;;AAuBA,MAAA,KAAA,yBAAA,KAAA;;;;;;;;;;;;AAYA,MAAA,KAAA,aAAA,MAAA;;;;;;;;;;;;;;;;;;;;;;AAsBA,MAAA,KAAA,kBAAA,MAAA;;;;;;;;;AASA,MAAA,KAAA,mBAAA,MAAA;;;;;;;;;;AAUA,MAAA,KAAA,cAAA,MAAA;;;;;;;;;;;;;;AAcA,MAAA,KAAA,iBAAA,MAAA;;;;;;;;AAQA,MAAA,KAAA,eAAA,MAAA;;KACH"}
|