@databricks/sdk-core 0.34.0 → 0.36.0
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/apierror/apierror.d.ts +52 -49
- package/dist/apierror/apierror.d.ts.map +1 -1
- package/dist/apierror/apierror.js +124 -172
- package/dist/apierror/apierror.js.map +1 -1
- package/dist/apierror/codes/codes.d.ts +113 -113
- package/dist/apierror/codes/codes.d.ts.map +1 -1
- package/dist/apierror/codes/codes.js +24 -115
- package/dist/apierror/codes/codes.js.map +1 -1
- package/dist/apierror/codes/index.d.ts +2 -7
- package/dist/apierror/codes/index.js +3 -7
- package/dist/apierror/details.d.ts +104 -101
- package/dist/apierror/details.d.ts.map +1 -1
- package/dist/apierror/details.js +151 -226
- package/dist/apierror/details.js.map +1 -1
- package/dist/apierror/index.d.ts +3 -8
- package/dist/apierror/index.js +3 -7
- package/dist/clientinfo/agent.d.ts +6 -3
- package/dist/clientinfo/agent.d.ts.map +1 -1
- package/dist/clientinfo/agent.js +134 -112
- package/dist/clientinfo/agent.js.map +1 -1
- package/dist/clientinfo/base.d.ts +13 -15
- package/dist/clientinfo/base.d.ts.map +1 -1
- package/dist/clientinfo/base.js +50 -50
- package/dist/clientinfo/base.js.map +1 -1
- package/dist/clientinfo/clientinfo.d.ts +40 -38
- package/dist/clientinfo/clientinfo.d.ts.map +1 -1
- package/dist/clientinfo/clientinfo.js +78 -88
- package/dist/clientinfo/clientinfo.js.map +1 -1
- package/dist/clientinfo/default.browser.d.ts +6 -10
- package/dist/clientinfo/default.browser.d.ts.map +1 -1
- package/dist/clientinfo/default.browser.js +24 -16
- package/dist/clientinfo/default.browser.js.map +1 -1
- package/dist/clientinfo/default.d.ts +8 -4
- package/dist/clientinfo/default.d.ts.map +1 -1
- package/dist/clientinfo/default.js +157 -102
- package/dist/clientinfo/default.js.map +1 -1
- package/dist/clientinfo/index.browser.d.ts +4 -5
- package/dist/clientinfo/index.browser.js +5 -4
- package/dist/clientinfo/index.d.ts +4 -5
- package/dist/clientinfo/index.js +5 -4
- package/dist/clientinfo/meta-harness.d.ts +6 -3
- package/dist/clientinfo/meta-harness.d.ts.map +1 -1
- package/dist/clientinfo/meta-harness.js +30 -46
- package/dist/clientinfo/meta-harness.js.map +1 -1
- package/dist/http/http.d.ts +25 -22
- package/dist/http/http.d.ts.map +1 -1
- package/dist/http/http.js +24 -34
- package/dist/http/http.js.map +1 -1
- package/dist/http/index.d.ts +2 -8
- package/dist/http/index.js +3 -7
- package/dist/index.d.ts +1 -6
- package/dist/index.js +7 -5
- package/dist/index.js.map +1 -1
- package/dist/logger/index.d.ts +2 -8
- package/dist/logger/index.js +3 -7
- package/dist/logger/logger.d.ts +26 -23
- package/dist/logger/logger.d.ts.map +1 -1
- package/dist/logger/logger.js +46 -60
- package/dist/logger/logger.js.map +1 -1
- package/dist/ops/execute.d.ts +7 -3
- package/dist/ops/execute.d.ts.map +1 -1
- package/dist/ops/execute.js +55 -67
- package/dist/ops/execute.js.map +1 -1
- package/dist/ops/index.d.ts +5 -12
- package/dist/ops/index.js +4 -9
- package/dist/ops/limiter.d.ts +5 -2
- package/dist/ops/limiter.d.ts.map +1 -1
- package/dist/ops/limiter.js +0 -2
- package/dist/ops/options.d.ts +23 -19
- package/dist/ops/options.d.ts.map +1 -1
- package/dist/ops/options.js +0 -2
- package/dist/ops/retrier.d.ts +34 -31
- package/dist/ops/retrier.d.ts.map +1 -1
- package/dist/ops/retrier.js +55 -66
- package/dist/ops/retrier.js.map +1 -1
- package/dist/package.js +6 -0
- package/dist/package.js.map +1 -0
- package/dist/profiles/errors.d.ts +7 -4
- package/dist/profiles/errors.d.ts.map +1 -1
- package/dist/profiles/errors.js +16 -17
- package/dist/profiles/errors.js.map +1 -1
- package/dist/profiles/index.browser.d.ts +4 -10
- package/dist/profiles/index.browser.js +4 -8
- package/dist/profiles/index.d.ts +5 -15
- package/dist/profiles/index.js +5 -13
- package/dist/profiles/ini.d.ts +6 -3
- package/dist/profiles/ini.d.ts.map +1 -1
- package/dist/profiles/ini.js +60 -108
- package/dist/profiles/ini.js.map +1 -1
- package/dist/profiles/profile.d.ts +66 -67
- package/dist/profiles/profile.d.ts.map +1 -1
- package/dist/profiles/profile.js +89 -84
- package/dist/profiles/profile.js.map +1 -1
- package/dist/profiles/resolve.d.ts +8 -9
- package/dist/profiles/resolve.d.ts.map +1 -1
- package/dist/profiles/resolve.js +140 -185
- package/dist/profiles/resolve.js.map +1 -1
- package/dist/profiles/secret.d.ts +15 -12
- package/dist/profiles/secret.d.ts.map +1 -1
- package/dist/profiles/secret.js +38 -35
- package/dist/profiles/secret.js.map +1 -1
- package/dist/wkt/fieldmask.d.ts +23 -20
- package/dist/wkt/fieldmask.d.ts.map +1 -1
- package/dist/wkt/fieldmask.js +53 -62
- package/dist/wkt/fieldmask.js.map +1 -1
- package/dist/wkt/index.d.ts +3 -4
- package/dist/wkt/index.js +3 -2
- package/dist/wkt/value.d.ts +6 -3
- package/dist/wkt/value.d.ts.map +1 -1
- package/dist/wkt/value.js +0 -2
- package/package.json +2 -2
- package/dist/apierror/codes/index.d.ts.map +0 -1
- package/dist/apierror/codes/index.js.map +0 -1
- package/dist/apierror/index.d.ts.map +0 -1
- package/dist/apierror/index.js.map +0 -1
- package/dist/clientinfo/index.browser.d.ts.map +0 -1
- package/dist/clientinfo/index.browser.js.map +0 -1
- package/dist/clientinfo/index.d.ts.map +0 -1
- package/dist/clientinfo/index.js.map +0 -1
- package/dist/http/index.d.ts.map +0 -1
- package/dist/http/index.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/logger/index.d.ts.map +0 -1
- package/dist/logger/index.js.map +0 -1
- package/dist/ops/index.d.ts.map +0 -1
- package/dist/ops/index.js.map +0 -1
- package/dist/ops/limiter.js.map +0 -1
- package/dist/ops/options.js.map +0 -1
- package/dist/profiles/index.browser.d.ts.map +0 -1
- package/dist/profiles/index.browser.js.map +0 -1
- package/dist/profiles/index.d.ts.map +0 -1
- package/dist/profiles/index.js.map +0 -1
- package/dist/wkt/index.d.ts.map +0 -1
- package/dist/wkt/index.js.map +0 -1
- package/dist/wkt/value.js.map +0 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
//#region src/apierror/details.d.ts
|
|
1
2
|
/**
|
|
2
3
|
* Defines structured error detail types for API errors.
|
|
3
4
|
*
|
|
@@ -7,50 +8,50 @@
|
|
|
7
8
|
* ErrorDetails contains the error details of an API error. It is the union of
|
|
8
9
|
* known error details types and unknown details.
|
|
9
10
|
*/
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
11
|
+
interface ErrorDetails {
|
|
12
|
+
errorInfo?: ErrorInfo;
|
|
13
|
+
requestInfo?: RequestInfo;
|
|
14
|
+
retryInfo?: RetryInfo;
|
|
15
|
+
debugInfo?: DebugInfo;
|
|
16
|
+
quotaFailure?: QuotaFailure;
|
|
17
|
+
preconditionFailure?: PreconditionFailure;
|
|
18
|
+
badRequest?: BadRequest;
|
|
19
|
+
resourceInfo?: ResourceInfo;
|
|
20
|
+
help?: Help;
|
|
21
|
+
/**
|
|
22
|
+
* UnknownDetails contains error details that cannot be parsed into one of
|
|
23
|
+
* the known types above.
|
|
24
|
+
*/
|
|
25
|
+
unknownDetails: unknown[];
|
|
25
26
|
}
|
|
26
27
|
/** ErrorInfo describes the cause of the error with structured details. */
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
28
|
+
interface ErrorInfo {
|
|
29
|
+
/**
|
|
30
|
+
* The reason of the error. This is a constant value that identifies the
|
|
31
|
+
* proximate cause of the error.
|
|
32
|
+
*/
|
|
33
|
+
reason: string;
|
|
34
|
+
/** The logical grouping to which the "reason" belongs. */
|
|
35
|
+
domain: string;
|
|
36
|
+
/** Additional structured details about this error. */
|
|
37
|
+
metadata: Record<string, string>;
|
|
37
38
|
}
|
|
38
39
|
/**
|
|
39
40
|
* RequestInfo contains metadata about the request that clients can attach when
|
|
40
41
|
* filing a bug or providing other forms of feedback.
|
|
41
42
|
*/
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
43
|
+
interface RequestInfo {
|
|
44
|
+
/**
|
|
45
|
+
* An opaque string that should only be interpreted by the service that
|
|
46
|
+
* generated it. For example, it can be used to identify requests in the
|
|
47
|
+
* service's logs.
|
|
48
|
+
*/
|
|
49
|
+
requestId: string;
|
|
50
|
+
/**
|
|
51
|
+
* Any data that was used to serve this request. For example, an encrypted
|
|
52
|
+
* stack trace that can be sent back to the service provider for debugging.
|
|
53
|
+
*/
|
|
54
|
+
servingData: string;
|
|
54
55
|
}
|
|
55
56
|
/**
|
|
56
57
|
* RetryInfo describes when the clients can retry a failed request. Clients
|
|
@@ -67,16 +68,16 @@ export interface RequestInfo {
|
|
|
67
68
|
* number of retries have been reached or a maximum retry delay cap has been
|
|
68
69
|
* reached.
|
|
69
70
|
*/
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
71
|
+
interface RetryInfo {
|
|
72
|
+
/** Clients should wait at least this long between retrying the same request, in milliseconds. */
|
|
73
|
+
retryDelayMs: number;
|
|
73
74
|
}
|
|
74
75
|
/** Describes additional debugging info. */
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
76
|
+
interface DebugInfo {
|
|
77
|
+
/** The stack trace entries indicating where the error occurred. */
|
|
78
|
+
stackEntries: string[];
|
|
79
|
+
/** Additional debugging information provided by the server. */
|
|
80
|
+
detail: string;
|
|
80
81
|
}
|
|
81
82
|
/**
|
|
82
83
|
* Describes how a quota check failed.
|
|
@@ -91,65 +92,65 @@ export interface DebugInfo {
|
|
|
91
92
|
* Also see RetryInfo and Help types for other details about handling a
|
|
92
93
|
* quota failure.
|
|
93
94
|
*/
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
95
|
+
interface QuotaFailure {
|
|
96
|
+
/** Describes all quota violations. */
|
|
97
|
+
violations: QuotaFailureViolation[];
|
|
97
98
|
}
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
99
|
+
interface QuotaFailureViolation {
|
|
100
|
+
/** The subject on which the quota check failed. */
|
|
101
|
+
subject: string;
|
|
102
|
+
/**
|
|
103
|
+
* A description of how the quota check failed. Clients can use this
|
|
104
|
+
* description to find more about the quota configuration in the service's
|
|
105
|
+
* public documentation, or find the relevant quota limit to adjust through
|
|
106
|
+
* developer console.
|
|
107
|
+
*
|
|
108
|
+
* For example: "Service disabled" or "Daily Limit for read operations
|
|
109
|
+
* exceeded".
|
|
110
|
+
*/
|
|
111
|
+
description: string;
|
|
111
112
|
}
|
|
112
113
|
/** Describes what preconditions have failed. */
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
114
|
+
interface PreconditionFailure {
|
|
115
|
+
/** Describes all precondition violations. */
|
|
116
|
+
violations: PreconditionFailureViolation[];
|
|
116
117
|
}
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
118
|
+
interface PreconditionFailureViolation {
|
|
119
|
+
/** The type of PreconditionFailure. */
|
|
120
|
+
type: string;
|
|
121
|
+
/** The subject, relative to the type, that failed. */
|
|
122
|
+
subject: string;
|
|
123
|
+
/**
|
|
124
|
+
* A description of how the precondition failed. Developers can use this
|
|
125
|
+
* description to understand how to fix the failure.
|
|
126
|
+
*
|
|
127
|
+
* For example: "Terms of service not accepted".
|
|
128
|
+
*/
|
|
129
|
+
description: string;
|
|
129
130
|
}
|
|
130
131
|
/**
|
|
131
132
|
* Describes violations in a client request. This error type focuses on the
|
|
132
133
|
* syntactic aspects of the request.
|
|
133
134
|
*/
|
|
134
|
-
|
|
135
|
-
|
|
135
|
+
interface BadRequest {
|
|
136
|
+
fieldViolations: BadRequestFieldViolation[];
|
|
136
137
|
}
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
138
|
+
interface BadRequestFieldViolation {
|
|
139
|
+
/** A path leading to a field in the request body. */
|
|
140
|
+
field: string;
|
|
141
|
+
/** A description of why the request element is bad. */
|
|
142
|
+
description: string;
|
|
142
143
|
}
|
|
143
144
|
/** Describes the resource that is being accessed. */
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
145
|
+
interface ResourceInfo {
|
|
146
|
+
/** A name for the type of resource being accessed. */
|
|
147
|
+
resourceType: string;
|
|
148
|
+
/** The name of the resource being accessed. */
|
|
149
|
+
resourceName: string;
|
|
150
|
+
/** The owner of the resource (optional). */
|
|
151
|
+
owner: string;
|
|
152
|
+
/** Describes what error is encountered when accessing this resource. */
|
|
153
|
+
description: string;
|
|
153
154
|
}
|
|
154
155
|
/**
|
|
155
156
|
* Provides links to documentation or for performing an out of band action.
|
|
@@ -158,20 +159,22 @@ export interface ResourceInfo {
|
|
|
158
159
|
* project hasn't enabled the accessed service, this can contain a URL pointing
|
|
159
160
|
* directly to the right place in the developer console to flip the bit.
|
|
160
161
|
*/
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
162
|
+
interface Help {
|
|
163
|
+
/** URL(s) pointing to additional information on handling the current error. */
|
|
164
|
+
links: HelpLink[];
|
|
164
165
|
}
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
166
|
+
interface HelpLink {
|
|
167
|
+
/** Describes what the link offers. */
|
|
168
|
+
description: string;
|
|
169
|
+
/** The URL of the link. */
|
|
170
|
+
url: string;
|
|
170
171
|
}
|
|
171
172
|
/**
|
|
172
173
|
* Parses an array of raw error detail values into a structured ErrorDetails
|
|
173
174
|
* object. If multiple details of the same known type are present, the last
|
|
174
175
|
* one wins.
|
|
175
176
|
*/
|
|
176
|
-
|
|
177
|
+
declare function parseErrorDetails(rawDetails: unknown[]): ErrorDetails;
|
|
178
|
+
//#endregion
|
|
179
|
+
export { BadRequest, BadRequestFieldViolation, DebugInfo, ErrorDetails, ErrorInfo, Help, HelpLink, PreconditionFailure, PreconditionFailureViolation, QuotaFailure, QuotaFailureViolation, RequestInfo, ResourceInfo, RetryInfo, parseErrorDetails };
|
|
177
180
|
//# sourceMappingURL=details.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"details.d.ts","
|
|
1
|
+
{"version":3,"file":"details.d.ts","names":[],"sources":["../../src/apierror/details.ts"],"mappings":";;AAYA;;;;;;;;UAAiB,YAAA;EACf,SAAA,GAAY,SAAA;EACZ,WAAA,GAAc,WAAA;EACd,SAAA,GAAY,SAAA;EACZ,SAAA,GAAY,SAAA;EACZ,YAAA,GAAe,YAAA;EACf,mBAAA,GAAsB,mBAAA;EACtB,UAAA,GAAa,UAAA;EACb,YAAA,GAAe,YAAA;EACf,IAAA,GAAO,IAAA;EANP;;;;EAYA,cAAA;AAAA;;UAIe,SAAA;EAZf;;;;EAiBA,MAAA;EAfO;EAkBP,MAAA;EAZc;EAed,QAAA,EAAU,MAAA;AAAA;;;;;UAOK,WAAA;EAPf;;;;AAOF;EAME,SAAA;;;;AAwBF;EAlBE,WAAA;AAAA;;;AAwBF;;;;;AAqBA;;;;;AAKA;;;UAhCiB,SAAA;EA6CJ;EA3CX,YAAA;AAAA;;UAIe,SAAA;EA6CyB;EA3CxC,YAAA;EA8C2C;EA3C3C,MAAA;AAAA;;;;;;AA+DF;;;;;AAIA;;;UAnDiB,YAAA;EAwDJ;EAtDX,UAAA,EAAY,qBAAA;AAAA;AAAA,UAGG,qBAAA;EAuDY;EArD3B,OAAA;EA0DA;;;;;AAgBF;;;;EA/DE,WAAA;AAAA;;UAIe,mBAAA;EAkEf;EAhEA,UAAA,EAAY,4BAAA;AAAA;AAAA,UAGG,4BAAA;;EAEf,IAAA;EAkToE;EA/SpE,OAAA;;;;;;;EAQA,WAAA;AAAA;;;;;UAOe,UAAA;EACf,eAAA,EAAiB,wBAAA;AAAA;AAAA,UAGF,wBAAA;;EAEf,KAAA;;EAGA,WAAA;AAAA;;UAIe,YAAA;;EAEf,YAAA;;EAGA,YAAA;;EAGA,KAAA;;EAGA,WAAA;AAAA;;;;;;;;UAUe,IAAA;;EAEf,KAAA,EAAO,QAAA;AAAA;AAAA,UAGQ,QAAA;;EAEf,WAAA;;EAGA,GAAA;AAAA;;;;;;iBAoPc,iBAAA,CAAkB,UAAA,cAAwB,YAAA"}
|