@fatehan/tsrp 1.4.30 → 1.4.35
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/api.d.ts +4 -0
- package/dist/api.d.ts.map +1 -1
- package/dist/api.js +16 -0
- package/dist/fatehan/activities/camera.js +11 -11
- package/dist/fatehan/activities/workflow.js +18 -18
- package/dist/fatehan/apis/client.d.ts +1 -67
- package/dist/fatehan/apis/client.d.ts.map +1 -1
- package/dist/fatehan/apis/client.js +24 -1075
- package/dist/fatehan/areas/area.js +7 -7
- package/dist/fatehan/devices/devices.d.ts +15 -0
- package/dist/fatehan/devices/devices.d.ts.map +1 -1
- package/dist/fatehan/devices/devices.js +270 -32
- package/dist/fatehan/devices/maintenance.js +3 -3
- package/dist/fatehan/financial/financial.js +11 -11
- package/dist/fatehan/google/error_details.d.ts +421 -0
- package/dist/fatehan/google/error_details.d.ts.map +1 -0
- package/dist/fatehan/google/error_details.js +1296 -0
- package/dist/fatehan/google/protobuf/any.d.ts +146 -0
- package/dist/fatehan/google/protobuf/any.d.ts.map +1 -0
- package/dist/fatehan/google/protobuf/any.js +108 -0
- package/dist/fatehan/google/protobuf/descriptor.js +35 -35
- package/dist/fatehan/google/protobuf/duration.js +2 -2
- package/dist/fatehan/google/protobuf/field_mask.js +2 -2
- package/dist/fatehan/google/protobuf/timestamp.js +2 -2
- package/dist/fatehan/google/status.d.ts +53 -0
- package/dist/fatehan/google/status.d.ts.map +1 -0
- package/dist/fatehan/google/status.js +100 -0
- package/dist/fatehan/identities/authentication.js +10 -10
- package/dist/fatehan/identities/identities.d.ts +6 -0
- package/dist/fatehan/identities/identities.d.ts.map +1 -1
- package/dist/fatehan/identities/identities.js +44 -13
- package/dist/fatehan/models/fusion.js +9 -9
- package/dist/fatehan/models/models.js +14 -14
- package/dist/fatehan/notifies/notify.js +33 -33
- package/dist/fatehan/packets/dataModel.js +55 -55
- package/dist/fatehan/packets/dataModule.js +6 -6
- package/dist/fatehan/packets/messages.js +9 -9
- package/dist/fatehan/reports/report.d.ts +3 -0
- package/dist/fatehan/reports/report.d.ts.map +1 -1
- package/dist/fatehan/reports/report.js +203 -155
- package/dist/fatehan/services/api.d.ts +41 -1
- package/dist/fatehan/services/api.d.ts.map +1 -1
- package/dist/fatehan/services/api.js +613 -48
- package/dist/fatehan/services/repositories.js +9 -9
- package/dist/fatehan/trips/trip.js +19 -19
- package/dist/fatehan/utils/buf/validate/validate.js +33 -33
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v2.7.
|
|
4
|
+
// protoc-gen-ts_proto v2.7.0
|
|
5
5
|
// protoc v6.31.1
|
|
6
6
|
// source: financial/financial.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
@@ -53,7 +53,7 @@ exports.Wallet = {
|
|
|
53
53
|
},
|
|
54
54
|
decode(input, length) {
|
|
55
55
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
56
|
-
|
|
56
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
57
57
|
const message = createBaseWallet();
|
|
58
58
|
while (reader.pos < end) {
|
|
59
59
|
const tag = reader.uint32();
|
|
@@ -219,7 +219,7 @@ exports.Currency = {
|
|
|
219
219
|
},
|
|
220
220
|
decode(input, length) {
|
|
221
221
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
222
|
-
|
|
222
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
223
223
|
const message = createBaseCurrency();
|
|
224
224
|
while (reader.pos < end) {
|
|
225
225
|
const tag = reader.uint32();
|
|
@@ -375,7 +375,7 @@ exports.Partner = {
|
|
|
375
375
|
},
|
|
376
376
|
decode(input, length) {
|
|
377
377
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
378
|
-
|
|
378
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
379
379
|
const message = createBasePartner();
|
|
380
380
|
while (reader.pos < end) {
|
|
381
381
|
const tag = reader.uint32();
|
|
@@ -492,7 +492,7 @@ exports.ProductType = {
|
|
|
492
492
|
},
|
|
493
493
|
decode(input, length) {
|
|
494
494
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
495
|
-
|
|
495
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
496
496
|
const message = createBaseProductType();
|
|
497
497
|
while (reader.pos < end) {
|
|
498
498
|
const tag = reader.uint32();
|
|
@@ -724,7 +724,7 @@ exports.Product = {
|
|
|
724
724
|
},
|
|
725
725
|
decode(input, length) {
|
|
726
726
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
727
|
-
|
|
727
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
728
728
|
const message = createBaseProduct();
|
|
729
729
|
while (reader.pos < end) {
|
|
730
730
|
const tag = reader.uint32();
|
|
@@ -1024,7 +1024,7 @@ exports.PaymentGateway = {
|
|
|
1024
1024
|
},
|
|
1025
1025
|
decode(input, length) {
|
|
1026
1026
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1027
|
-
|
|
1027
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1028
1028
|
const message = createBasePaymentGateway();
|
|
1029
1029
|
while (reader.pos < end) {
|
|
1030
1030
|
const tag = reader.uint32();
|
|
@@ -1210,7 +1210,7 @@ exports.PaymentGateway_Config = {
|
|
|
1210
1210
|
},
|
|
1211
1211
|
decode(input, length) {
|
|
1212
1212
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1213
|
-
|
|
1213
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1214
1214
|
const message = createBasePaymentGateway_Config();
|
|
1215
1215
|
while (reader.pos < end) {
|
|
1216
1216
|
const tag = reader.uint32();
|
|
@@ -1318,7 +1318,7 @@ exports.OrderPagination = {
|
|
|
1318
1318
|
},
|
|
1319
1319
|
decode(input, length) {
|
|
1320
1320
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1321
|
-
|
|
1321
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1322
1322
|
const message = createBaseOrderPagination();
|
|
1323
1323
|
while (reader.pos < end) {
|
|
1324
1324
|
const tag = reader.uint32();
|
|
@@ -1591,7 +1591,7 @@ exports.Order = {
|
|
|
1591
1591
|
},
|
|
1592
1592
|
decode(input, length) {
|
|
1593
1593
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1594
|
-
|
|
1594
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1595
1595
|
const message = createBaseOrder();
|
|
1596
1596
|
while (reader.pos < end) {
|
|
1597
1597
|
const tag = reader.uint32();
|
|
@@ -2012,7 +2012,7 @@ exports.OrderProduct = {
|
|
|
2012
2012
|
},
|
|
2013
2013
|
decode(input, length) {
|
|
2014
2014
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2015
|
-
|
|
2015
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2016
2016
|
const message = createBaseOrderProduct();
|
|
2017
2017
|
while (reader.pos < end) {
|
|
2018
2018
|
const tag = reader.uint32();
|
|
@@ -0,0 +1,421 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
import Long from "long";
|
|
3
|
+
import { Duration } from "./protobuf/duration";
|
|
4
|
+
export declare const protobufPackage = "google.rpc";
|
|
5
|
+
/**
|
|
6
|
+
* Describes the cause of the error with structured details.
|
|
7
|
+
*
|
|
8
|
+
* Example of an error when contacting the "pubsub.googleapis.com" API when it
|
|
9
|
+
* is not enabled:
|
|
10
|
+
*
|
|
11
|
+
* { "reason": "API_DISABLED"
|
|
12
|
+
* "domain": "googleapis.com"
|
|
13
|
+
* "metadata": {
|
|
14
|
+
* "resource": "projects/123",
|
|
15
|
+
* "service": "pubsub.googleapis.com"
|
|
16
|
+
* }
|
|
17
|
+
* }
|
|
18
|
+
*
|
|
19
|
+
* This response indicates that the pubsub.googleapis.com API is not enabled.
|
|
20
|
+
*
|
|
21
|
+
* Example of an error that is returned when attempting to create a Spanner
|
|
22
|
+
* instance in a region that is out of stock:
|
|
23
|
+
*
|
|
24
|
+
* { "reason": "STOCKOUT"
|
|
25
|
+
* "domain": "spanner.googleapis.com",
|
|
26
|
+
* "metadata": {
|
|
27
|
+
* "availableRegions": "us-central1,us-east2"
|
|
28
|
+
* }
|
|
29
|
+
* }
|
|
30
|
+
*/
|
|
31
|
+
export interface ErrorInfo {
|
|
32
|
+
/**
|
|
33
|
+
* The reason of the error. This is a constant value that identifies the
|
|
34
|
+
* proximate cause of the error. Error reasons are unique within a particular
|
|
35
|
+
* domain of errors. This should be at most 63 characters and match a
|
|
36
|
+
* regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`, which represents
|
|
37
|
+
* UPPER_SNAKE_CASE.
|
|
38
|
+
*/
|
|
39
|
+
reason: string;
|
|
40
|
+
/**
|
|
41
|
+
* The logical grouping to which the "reason" belongs. The error domain
|
|
42
|
+
* is typically the registered service name of the tool or product that
|
|
43
|
+
* generates the error. Example: "pubsub.googleapis.com". If the error is
|
|
44
|
+
* generated by some common infrastructure, the error domain must be a
|
|
45
|
+
* globally unique value that identifies the infrastructure. For Google API
|
|
46
|
+
* infrastructure, the error domain is "googleapis.com".
|
|
47
|
+
*/
|
|
48
|
+
domain: string;
|
|
49
|
+
/**
|
|
50
|
+
* Additional structured details about this error.
|
|
51
|
+
*
|
|
52
|
+
* Keys must match a regular expression of `[a-z][a-zA-Z0-9-_]+` but should
|
|
53
|
+
* ideally be lowerCamelCase. Also, they must be limited to 64 characters in
|
|
54
|
+
* length. When identifying the current value of an exceeded limit, the units
|
|
55
|
+
* should be contained in the key, not the value. For example, rather than
|
|
56
|
+
* `{"instanceLimit": "100/request"}`, should be returned as,
|
|
57
|
+
* `{"instanceLimitPerRequest": "100"}`, if the client exceeds the number of
|
|
58
|
+
* instances that can be created in a single (batch) request.
|
|
59
|
+
*/
|
|
60
|
+
metadata: {
|
|
61
|
+
[key: string]: string;
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
export interface ErrorInfo_MetadataEntry {
|
|
65
|
+
key: string;
|
|
66
|
+
value: string;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Describes when the clients can retry a failed request. Clients could ignore
|
|
70
|
+
* the recommendation here or retry when this information is missing from error
|
|
71
|
+
* responses.
|
|
72
|
+
*
|
|
73
|
+
* It's always recommended that clients should use exponential backoff when
|
|
74
|
+
* retrying.
|
|
75
|
+
*
|
|
76
|
+
* Clients should wait until `retry_delay` amount of time has passed since
|
|
77
|
+
* receiving the error response before retrying. If retrying requests also
|
|
78
|
+
* fail, clients should use an exponential backoff scheme to gradually increase
|
|
79
|
+
* the delay between retries based on `retry_delay`, until either a maximum
|
|
80
|
+
* number of retries have been reached or a maximum retry delay cap has been
|
|
81
|
+
* reached.
|
|
82
|
+
*/
|
|
83
|
+
export interface RetryInfo {
|
|
84
|
+
/** Clients should wait at least this long between retrying the same request. */
|
|
85
|
+
retryDelay?: Duration | undefined;
|
|
86
|
+
}
|
|
87
|
+
/** Describes additional debugging info. */
|
|
88
|
+
export interface DebugInfo {
|
|
89
|
+
/** The stack trace entries indicating where the error occurred. */
|
|
90
|
+
stackEntries: string[];
|
|
91
|
+
/** Additional debugging information provided by the server. */
|
|
92
|
+
detail: string;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Describes how a quota check failed.
|
|
96
|
+
*
|
|
97
|
+
* For example if a daily limit was exceeded for the calling project,
|
|
98
|
+
* a service could respond with a QuotaFailure detail containing the project
|
|
99
|
+
* id and the description of the quota limit that was exceeded. If the
|
|
100
|
+
* calling project hasn't enabled the service in the developer console, then
|
|
101
|
+
* a service could respond with the project id and set `service_disabled`
|
|
102
|
+
* to true.
|
|
103
|
+
*
|
|
104
|
+
* Also see RetryInfo and Help types for other details about handling a
|
|
105
|
+
* quota failure.
|
|
106
|
+
*/
|
|
107
|
+
export interface QuotaFailure {
|
|
108
|
+
/** Describes all quota violations. */
|
|
109
|
+
violations: QuotaFailure_Violation[];
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* A message type used to describe a single quota violation. For example, a
|
|
113
|
+
* daily quota or a custom quota that was exceeded.
|
|
114
|
+
*/
|
|
115
|
+
export interface QuotaFailure_Violation {
|
|
116
|
+
/**
|
|
117
|
+
* The subject on which the quota check failed.
|
|
118
|
+
* For example, "clientip:<ip address of client>" or "project:<Google
|
|
119
|
+
* developer project id>".
|
|
120
|
+
*/
|
|
121
|
+
subject: string;
|
|
122
|
+
/**
|
|
123
|
+
* A description of how the quota check failed. Clients can use this
|
|
124
|
+
* description to find more about the quota configuration in the service's
|
|
125
|
+
* public documentation, or find the relevant quota limit to adjust through
|
|
126
|
+
* developer console.
|
|
127
|
+
*
|
|
128
|
+
* For example: "Service disabled" or "Daily Limit for read operations
|
|
129
|
+
* exceeded".
|
|
130
|
+
*/
|
|
131
|
+
description: string;
|
|
132
|
+
/**
|
|
133
|
+
* The API Service from which the `QuotaFailure.Violation` orginates. In
|
|
134
|
+
* some cases, Quota issues originate from an API Service other than the one
|
|
135
|
+
* that was called. In other words, a dependency of the called API Service
|
|
136
|
+
* could be the cause of the `QuotaFailure`, and this field would have the
|
|
137
|
+
* dependency API service name.
|
|
138
|
+
*
|
|
139
|
+
* For example, if the called API is Kubernetes Engine API
|
|
140
|
+
* (container.googleapis.com), and a quota violation occurs in the
|
|
141
|
+
* Kubernetes Engine API itself, this field would be
|
|
142
|
+
* "container.googleapis.com". On the other hand, if the quota violation
|
|
143
|
+
* occurs when the Kubernetes Engine API creates VMs in the Compute Engine
|
|
144
|
+
* API (compute.googleapis.com), this field would be
|
|
145
|
+
* "compute.googleapis.com".
|
|
146
|
+
*/
|
|
147
|
+
apiService: string;
|
|
148
|
+
/**
|
|
149
|
+
* The metric of the violated quota. A quota metric is a named counter to
|
|
150
|
+
* measure usage, such as API requests or CPUs. When an activity occurs in a
|
|
151
|
+
* service, such as Virtual Machine allocation, one or more quota metrics
|
|
152
|
+
* may be affected.
|
|
153
|
+
*
|
|
154
|
+
* For example, "compute.googleapis.com/cpus_per_vm_family",
|
|
155
|
+
* "storage.googleapis.com/internet_egress_bandwidth".
|
|
156
|
+
*/
|
|
157
|
+
quotaMetric: string;
|
|
158
|
+
/**
|
|
159
|
+
* The id of the violated quota. Also know as "limit name", this is the
|
|
160
|
+
* unique identifier of a quota in the context of an API service.
|
|
161
|
+
*
|
|
162
|
+
* For example, "CPUS-PER-VM-FAMILY-per-project-region".
|
|
163
|
+
*/
|
|
164
|
+
quotaId: string;
|
|
165
|
+
/**
|
|
166
|
+
* The dimensions of the violated quota. Every non-global quota is enforced
|
|
167
|
+
* on a set of dimensions. While quota metric defines what to count, the
|
|
168
|
+
* dimensions specify for what aspects the counter should be increased.
|
|
169
|
+
*
|
|
170
|
+
* For example, the quota "CPUs per region per VM family" enforces a limit
|
|
171
|
+
* on the metric "compute.googleapis.com/cpus_per_vm_family" on dimensions
|
|
172
|
+
* "region" and "vm_family". And if the violation occurred in region
|
|
173
|
+
* "us-central1" and for VM family "n1", the quota_dimensions would be,
|
|
174
|
+
*
|
|
175
|
+
* {
|
|
176
|
+
* "region": "us-central1",
|
|
177
|
+
* "vm_family": "n1",
|
|
178
|
+
* }
|
|
179
|
+
*
|
|
180
|
+
* When a quota is enforced globally, the quota_dimensions would always be
|
|
181
|
+
* empty.
|
|
182
|
+
*/
|
|
183
|
+
quotaDimensions: {
|
|
184
|
+
[key: string]: string;
|
|
185
|
+
};
|
|
186
|
+
/**
|
|
187
|
+
* The enforced quota value at the time of the `QuotaFailure`.
|
|
188
|
+
*
|
|
189
|
+
* For example, if the enforced quota value at the time of the
|
|
190
|
+
* `QuotaFailure` on the number of CPUs is "10", then the value of this
|
|
191
|
+
* field would reflect this quantity.
|
|
192
|
+
*/
|
|
193
|
+
quotaValue: Long;
|
|
194
|
+
/**
|
|
195
|
+
* The new quota value being rolled out at the time of the violation. At the
|
|
196
|
+
* completion of the rollout, this value will be enforced in place of
|
|
197
|
+
* quota_value. If no rollout is in progress at the time of the violation,
|
|
198
|
+
* this field is not set.
|
|
199
|
+
*
|
|
200
|
+
* For example, if at the time of the violation a rollout is in progress
|
|
201
|
+
* changing the number of CPUs quota from 10 to 20, 20 would be the value of
|
|
202
|
+
* this field.
|
|
203
|
+
*/
|
|
204
|
+
futureQuotaValue?: Long | undefined;
|
|
205
|
+
}
|
|
206
|
+
export interface QuotaFailure_Violation_QuotaDimensionsEntry {
|
|
207
|
+
key: string;
|
|
208
|
+
value: string;
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* Describes what preconditions have failed.
|
|
212
|
+
*
|
|
213
|
+
* For example, if an RPC failed because it required the Terms of Service to be
|
|
214
|
+
* acknowledged, it could list the terms of service violation in the
|
|
215
|
+
* PreconditionFailure message.
|
|
216
|
+
*/
|
|
217
|
+
export interface PreconditionFailure {
|
|
218
|
+
/** Describes all precondition violations. */
|
|
219
|
+
violations: PreconditionFailure_Violation[];
|
|
220
|
+
}
|
|
221
|
+
/** A message type used to describe a single precondition failure. */
|
|
222
|
+
export interface PreconditionFailure_Violation {
|
|
223
|
+
/**
|
|
224
|
+
* The type of PreconditionFailure. We recommend using a service-specific
|
|
225
|
+
* enum type to define the supported precondition violation subjects. For
|
|
226
|
+
* example, "TOS" for "Terms of Service violation".
|
|
227
|
+
*/
|
|
228
|
+
type: string;
|
|
229
|
+
/**
|
|
230
|
+
* The subject, relative to the type, that failed.
|
|
231
|
+
* For example, "google.com/cloud" relative to the "TOS" type would indicate
|
|
232
|
+
* which terms of service is being referenced.
|
|
233
|
+
*/
|
|
234
|
+
subject: string;
|
|
235
|
+
/**
|
|
236
|
+
* A description of how the precondition failed. Developers can use this
|
|
237
|
+
* description to understand how to fix the failure.
|
|
238
|
+
*
|
|
239
|
+
* For example: "Terms of service not accepted".
|
|
240
|
+
*/
|
|
241
|
+
description: string;
|
|
242
|
+
}
|
|
243
|
+
/**
|
|
244
|
+
* Describes violations in a client request. This error type focuses on the
|
|
245
|
+
* syntactic aspects of the request.
|
|
246
|
+
*/
|
|
247
|
+
export interface BadRequest {
|
|
248
|
+
/** Describes all violations in a client request. */
|
|
249
|
+
fieldViolations: BadRequest_FieldViolation[];
|
|
250
|
+
}
|
|
251
|
+
/** A message type used to describe a single bad request field. */
|
|
252
|
+
export interface BadRequest_FieldViolation {
|
|
253
|
+
/**
|
|
254
|
+
* A path that leads to a field in the request body. The value will be a
|
|
255
|
+
* sequence of dot-separated identifiers that identify a protocol buffer
|
|
256
|
+
* field.
|
|
257
|
+
*
|
|
258
|
+
* Consider the following:
|
|
259
|
+
*
|
|
260
|
+
* message CreateContactRequest {
|
|
261
|
+
* message EmailAddress {
|
|
262
|
+
* enum Type {
|
|
263
|
+
* TYPE_UNSPECIFIED = 0;
|
|
264
|
+
* HOME = 1;
|
|
265
|
+
* WORK = 2;
|
|
266
|
+
* }
|
|
267
|
+
*
|
|
268
|
+
* optional string email = 1;
|
|
269
|
+
* repeated EmailType type = 2;
|
|
270
|
+
* }
|
|
271
|
+
*
|
|
272
|
+
* string full_name = 1;
|
|
273
|
+
* repeated EmailAddress email_addresses = 2;
|
|
274
|
+
* }
|
|
275
|
+
*
|
|
276
|
+
* In this example, in proto `field` could take one of the following values:
|
|
277
|
+
*
|
|
278
|
+
* * `full_name` for a violation in the `full_name` value
|
|
279
|
+
* * `email_addresses[1].email` for a violation in the `email` field of the
|
|
280
|
+
* first `email_addresses` message
|
|
281
|
+
* * `email_addresses[3].type[2]` for a violation in the second `type`
|
|
282
|
+
* value in the third `email_addresses` message.
|
|
283
|
+
*
|
|
284
|
+
* In JSON, the same values are represented as:
|
|
285
|
+
*
|
|
286
|
+
* * `fullName` for a violation in the `fullName` value
|
|
287
|
+
* * `emailAddresses[1].email` for a violation in the `email` field of the
|
|
288
|
+
* first `emailAddresses` message
|
|
289
|
+
* * `emailAddresses[3].type[2]` for a violation in the second `type`
|
|
290
|
+
* value in the third `emailAddresses` message.
|
|
291
|
+
*/
|
|
292
|
+
field: string;
|
|
293
|
+
/** A description of why the request element is bad. */
|
|
294
|
+
description: string;
|
|
295
|
+
/**
|
|
296
|
+
* The reason of the field-level error. This is a constant value that
|
|
297
|
+
* identifies the proximate cause of the field-level error. It should
|
|
298
|
+
* uniquely identify the type of the FieldViolation within the scope of the
|
|
299
|
+
* google.rpc.ErrorInfo.domain. This should be at most 63
|
|
300
|
+
* characters and match a regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`,
|
|
301
|
+
* which represents UPPER_SNAKE_CASE.
|
|
302
|
+
*/
|
|
303
|
+
reason: string;
|
|
304
|
+
/**
|
|
305
|
+
* Provides a localized error message for field-level errors that is safe to
|
|
306
|
+
* return to the API consumer.
|
|
307
|
+
*/
|
|
308
|
+
localizedMessage?: LocalizedMessage | undefined;
|
|
309
|
+
}
|
|
310
|
+
/**
|
|
311
|
+
* Contains metadata about the request that clients can attach when filing a bug
|
|
312
|
+
* or providing other forms of feedback.
|
|
313
|
+
*/
|
|
314
|
+
export interface RequestInfo {
|
|
315
|
+
/**
|
|
316
|
+
* An opaque string that should only be interpreted by the service generating
|
|
317
|
+
* it. For example, it can be used to identify requests in the service's logs.
|
|
318
|
+
*/
|
|
319
|
+
requestId: string;
|
|
320
|
+
/**
|
|
321
|
+
* Any data that was used to serve this request. For example, an encrypted
|
|
322
|
+
* stack trace that can be sent back to the service provider for debugging.
|
|
323
|
+
*/
|
|
324
|
+
servingData: string;
|
|
325
|
+
}
|
|
326
|
+
/** Describes the resource that is being accessed. */
|
|
327
|
+
export interface ResourceInfo {
|
|
328
|
+
/**
|
|
329
|
+
* A name for the type of resource being accessed, e.g. "sql table",
|
|
330
|
+
* "cloud storage bucket", "file", "Google calendar"; or the type URL
|
|
331
|
+
* of the resource: e.g. "type.googleapis.com/google.pubsub.v1.Topic".
|
|
332
|
+
*/
|
|
333
|
+
resourceType: string;
|
|
334
|
+
/**
|
|
335
|
+
* The name of the resource being accessed. For example, a shared calendar
|
|
336
|
+
* name: "example.com_4fghdhgsrgh@group.calendar.google.com", if the current
|
|
337
|
+
* error is
|
|
338
|
+
* [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED].
|
|
339
|
+
*/
|
|
340
|
+
resourceName: string;
|
|
341
|
+
/**
|
|
342
|
+
* The owner of the resource (optional).
|
|
343
|
+
* For example, "user:<owner email>" or "project:<Google developer project
|
|
344
|
+
* id>".
|
|
345
|
+
*/
|
|
346
|
+
owner: string;
|
|
347
|
+
/**
|
|
348
|
+
* Describes what error is encountered when accessing this resource.
|
|
349
|
+
* For example, updating a cloud project may require the `writer` permission
|
|
350
|
+
* on the developer console project.
|
|
351
|
+
*/
|
|
352
|
+
description: string;
|
|
353
|
+
}
|
|
354
|
+
/**
|
|
355
|
+
* Provides links to documentation or for performing an out of band action.
|
|
356
|
+
*
|
|
357
|
+
* For example, if a quota check failed with an error indicating the calling
|
|
358
|
+
* project hasn't enabled the accessed service, this can contain a URL pointing
|
|
359
|
+
* directly to the right place in the developer console to flip the bit.
|
|
360
|
+
*/
|
|
361
|
+
export interface Help {
|
|
362
|
+
/** URL(s) pointing to additional information on handling the current error. */
|
|
363
|
+
links: Help_Link[];
|
|
364
|
+
}
|
|
365
|
+
/** Describes a URL link. */
|
|
366
|
+
export interface Help_Link {
|
|
367
|
+
/** Describes what the link offers. */
|
|
368
|
+
description: string;
|
|
369
|
+
/** The URL of the link. */
|
|
370
|
+
url: string;
|
|
371
|
+
}
|
|
372
|
+
/**
|
|
373
|
+
* Provides a localized error message that is safe to return to the user
|
|
374
|
+
* which can be attached to an RPC error.
|
|
375
|
+
*/
|
|
376
|
+
export interface LocalizedMessage {
|
|
377
|
+
/**
|
|
378
|
+
* The locale used following the specification defined at
|
|
379
|
+
* https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
|
|
380
|
+
* Examples are: "en-US", "fr-CH", "es-MX"
|
|
381
|
+
*/
|
|
382
|
+
locale: string;
|
|
383
|
+
/** The localized error message in the above locale. */
|
|
384
|
+
message: string;
|
|
385
|
+
}
|
|
386
|
+
export declare const ErrorInfo: MessageFns<ErrorInfo>;
|
|
387
|
+
export declare const ErrorInfo_MetadataEntry: MessageFns<ErrorInfo_MetadataEntry>;
|
|
388
|
+
export declare const RetryInfo: MessageFns<RetryInfo>;
|
|
389
|
+
export declare const DebugInfo: MessageFns<DebugInfo>;
|
|
390
|
+
export declare const QuotaFailure: MessageFns<QuotaFailure>;
|
|
391
|
+
export declare const QuotaFailure_Violation: MessageFns<QuotaFailure_Violation>;
|
|
392
|
+
export declare const QuotaFailure_Violation_QuotaDimensionsEntry: MessageFns<QuotaFailure_Violation_QuotaDimensionsEntry>;
|
|
393
|
+
export declare const PreconditionFailure: MessageFns<PreconditionFailure>;
|
|
394
|
+
export declare const PreconditionFailure_Violation: MessageFns<PreconditionFailure_Violation>;
|
|
395
|
+
export declare const BadRequest: MessageFns<BadRequest>;
|
|
396
|
+
export declare const BadRequest_FieldViolation: MessageFns<BadRequest_FieldViolation>;
|
|
397
|
+
export declare const RequestInfo: MessageFns<RequestInfo>;
|
|
398
|
+
export declare const ResourceInfo: MessageFns<ResourceInfo>;
|
|
399
|
+
export declare const Help: MessageFns<Help>;
|
|
400
|
+
export declare const Help_Link: MessageFns<Help_Link>;
|
|
401
|
+
export declare const LocalizedMessage: MessageFns<LocalizedMessage>;
|
|
402
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
403
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
404
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
405
|
+
} : Partial<T>;
|
|
406
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
407
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
408
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
409
|
+
} & {
|
|
410
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
411
|
+
};
|
|
412
|
+
export interface MessageFns<T> {
|
|
413
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
414
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
415
|
+
fromJSON(object: any): T;
|
|
416
|
+
toJSON(message: T): unknown;
|
|
417
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
418
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
419
|
+
}
|
|
420
|
+
export {};
|
|
421
|
+
//# sourceMappingURL=error_details.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error_details.d.ts","sourceRoot":"","sources":["../../../src/fatehan/google/error_details.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAE/C,eAAO,MAAM,eAAe,eAAe,CAAC;AAE5C;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAM,WAAW,SAAS;IACxB;;;;;;OAMG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;;;;OAOG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;;;;;;;OAUG;IACH,QAAQ,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAA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