@databricks/sdk-core 0.33.0 → 0.35.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.
Files changed (135) hide show
  1. package/dist/apierror/apierror.d.ts +52 -49
  2. package/dist/apierror/apierror.d.ts.map +1 -1
  3. package/dist/apierror/apierror.js +124 -172
  4. package/dist/apierror/apierror.js.map +1 -1
  5. package/dist/apierror/codes/codes.d.ts +113 -113
  6. package/dist/apierror/codes/codes.d.ts.map +1 -1
  7. package/dist/apierror/codes/codes.js +24 -115
  8. package/dist/apierror/codes/codes.js.map +1 -1
  9. package/dist/apierror/codes/index.d.ts +2 -7
  10. package/dist/apierror/codes/index.js +3 -7
  11. package/dist/apierror/details.d.ts +104 -101
  12. package/dist/apierror/details.d.ts.map +1 -1
  13. package/dist/apierror/details.js +151 -226
  14. package/dist/apierror/details.js.map +1 -1
  15. package/dist/apierror/index.d.ts +3 -8
  16. package/dist/apierror/index.js +3 -7
  17. package/dist/clientinfo/agent.d.ts +6 -3
  18. package/dist/clientinfo/agent.d.ts.map +1 -1
  19. package/dist/clientinfo/agent.js +134 -112
  20. package/dist/clientinfo/agent.js.map +1 -1
  21. package/dist/clientinfo/base.d.ts +13 -15
  22. package/dist/clientinfo/base.d.ts.map +1 -1
  23. package/dist/clientinfo/base.js +50 -50
  24. package/dist/clientinfo/base.js.map +1 -1
  25. package/dist/clientinfo/clientinfo.d.ts +40 -38
  26. package/dist/clientinfo/clientinfo.d.ts.map +1 -1
  27. package/dist/clientinfo/clientinfo.js +78 -88
  28. package/dist/clientinfo/clientinfo.js.map +1 -1
  29. package/dist/clientinfo/default.browser.d.ts +6 -10
  30. package/dist/clientinfo/default.browser.d.ts.map +1 -1
  31. package/dist/clientinfo/default.browser.js +24 -16
  32. package/dist/clientinfo/default.browser.js.map +1 -1
  33. package/dist/clientinfo/default.d.ts +8 -4
  34. package/dist/clientinfo/default.d.ts.map +1 -1
  35. package/dist/clientinfo/default.js +157 -102
  36. package/dist/clientinfo/default.js.map +1 -1
  37. package/dist/clientinfo/index.browser.d.ts +4 -5
  38. package/dist/clientinfo/index.browser.js +5 -4
  39. package/dist/clientinfo/index.d.ts +4 -5
  40. package/dist/clientinfo/index.js +5 -4
  41. package/dist/clientinfo/meta-harness.d.ts +6 -3
  42. package/dist/clientinfo/meta-harness.d.ts.map +1 -1
  43. package/dist/clientinfo/meta-harness.js +30 -46
  44. package/dist/clientinfo/meta-harness.js.map +1 -1
  45. package/dist/http/http.d.ts +25 -22
  46. package/dist/http/http.d.ts.map +1 -1
  47. package/dist/http/http.js +24 -34
  48. package/dist/http/http.js.map +1 -1
  49. package/dist/http/index.d.ts +2 -8
  50. package/dist/http/index.js +3 -7
  51. package/dist/index.d.ts +1 -6
  52. package/dist/index.js +7 -5
  53. package/dist/index.js.map +1 -1
  54. package/dist/logger/index.d.ts +2 -8
  55. package/dist/logger/index.js +3 -7
  56. package/dist/logger/logger.d.ts +26 -23
  57. package/dist/logger/logger.d.ts.map +1 -1
  58. package/dist/logger/logger.js +46 -60
  59. package/dist/logger/logger.js.map +1 -1
  60. package/dist/ops/execute.d.ts +7 -3
  61. package/dist/ops/execute.d.ts.map +1 -1
  62. package/dist/ops/execute.js +55 -67
  63. package/dist/ops/execute.js.map +1 -1
  64. package/dist/ops/index.d.ts +5 -12
  65. package/dist/ops/index.js +4 -9
  66. package/dist/ops/limiter.d.ts +5 -2
  67. package/dist/ops/limiter.d.ts.map +1 -1
  68. package/dist/ops/limiter.js +0 -2
  69. package/dist/ops/options.d.ts +23 -19
  70. package/dist/ops/options.d.ts.map +1 -1
  71. package/dist/ops/options.js +0 -2
  72. package/dist/ops/retrier.d.ts +34 -31
  73. package/dist/ops/retrier.d.ts.map +1 -1
  74. package/dist/ops/retrier.js +55 -66
  75. package/dist/ops/retrier.js.map +1 -1
  76. package/dist/package.js +6 -0
  77. package/dist/package.js.map +1 -0
  78. package/dist/profiles/errors.d.ts +7 -4
  79. package/dist/profiles/errors.d.ts.map +1 -1
  80. package/dist/profiles/errors.js +16 -17
  81. package/dist/profiles/errors.js.map +1 -1
  82. package/dist/profiles/index.browser.d.ts +4 -10
  83. package/dist/profiles/index.browser.js +4 -8
  84. package/dist/profiles/index.d.ts +5 -15
  85. package/dist/profiles/index.js +5 -13
  86. package/dist/profiles/ini.d.ts +6 -3
  87. package/dist/profiles/ini.d.ts.map +1 -1
  88. package/dist/profiles/ini.js +60 -108
  89. package/dist/profiles/ini.js.map +1 -1
  90. package/dist/profiles/profile.d.ts +66 -67
  91. package/dist/profiles/profile.d.ts.map +1 -1
  92. package/dist/profiles/profile.js +89 -84
  93. package/dist/profiles/profile.js.map +1 -1
  94. package/dist/profiles/resolve.d.ts +8 -9
  95. package/dist/profiles/resolve.d.ts.map +1 -1
  96. package/dist/profiles/resolve.js +140 -185
  97. package/dist/profiles/resolve.js.map +1 -1
  98. package/dist/profiles/secret.d.ts +15 -12
  99. package/dist/profiles/secret.d.ts.map +1 -1
  100. package/dist/profiles/secret.js +38 -35
  101. package/dist/profiles/secret.js.map +1 -1
  102. package/dist/wkt/fieldmask.d.ts +23 -20
  103. package/dist/wkt/fieldmask.d.ts.map +1 -1
  104. package/dist/wkt/fieldmask.js +53 -62
  105. package/dist/wkt/fieldmask.js.map +1 -1
  106. package/dist/wkt/index.d.ts +3 -4
  107. package/dist/wkt/index.js +3 -2
  108. package/dist/wkt/value.d.ts +6 -3
  109. package/dist/wkt/value.d.ts.map +1 -1
  110. package/dist/wkt/value.js +0 -2
  111. package/package.json +2 -2
  112. package/dist/apierror/codes/index.d.ts.map +0 -1
  113. package/dist/apierror/codes/index.js.map +0 -1
  114. package/dist/apierror/index.d.ts.map +0 -1
  115. package/dist/apierror/index.js.map +0 -1
  116. package/dist/clientinfo/index.browser.d.ts.map +0 -1
  117. package/dist/clientinfo/index.browser.js.map +0 -1
  118. package/dist/clientinfo/index.d.ts.map +0 -1
  119. package/dist/clientinfo/index.js.map +0 -1
  120. package/dist/http/index.d.ts.map +0 -1
  121. package/dist/http/index.js.map +0 -1
  122. package/dist/index.d.ts.map +0 -1
  123. package/dist/logger/index.d.ts.map +0 -1
  124. package/dist/logger/index.js.map +0 -1
  125. package/dist/ops/index.d.ts.map +0 -1
  126. package/dist/ops/index.js.map +0 -1
  127. package/dist/ops/limiter.js.map +0 -1
  128. package/dist/ops/options.js.map +0 -1
  129. package/dist/profiles/index.browser.d.ts.map +0 -1
  130. package/dist/profiles/index.browser.js.map +0 -1
  131. package/dist/profiles/index.d.ts.map +0 -1
  132. package/dist/profiles/index.js.map +0 -1
  133. package/dist/wkt/index.d.ts.map +0 -1
  134. package/dist/wkt/index.js.map +0 -1
  135. package/dist/wkt/value.js.map +0 -1
@@ -1,118 +1,118 @@
1
+ //#region src/apierror/codes/codes.d.ts
1
2
  /**
2
3
  * Code is the error code carried by an API error.
3
4
  */
4
- export declare const Code: {
5
- /**
6
- * Unknown indicates an error that cannot be classified. It is used for
7
- * malformed error responses and for responses that carry no string error
8
- * code (missing or an integer).
9
- */
10
- readonly UNKNOWN: "UNKNOWN";
11
- /** OK indicates the operation completed successfully. */
12
- readonly OK: "OK";
13
- /** Cancelled indicates the operation was cancelled (typically by the caller). */
14
- readonly CANCELLED: "CANCELLED";
15
- /**
16
- * InvalidArgument indicates the client specified an invalid argument.
17
- *
18
- * By contrast with FailedPrecondition, InvalidArgument indicates arguments
19
- * that are problematic regardless of the state of the system. For example,
20
- * a malformed request parameter.
21
- */
22
- readonly INVALID_ARGUMENT: "INVALID_ARGUMENT";
23
- /**
24
- * DeadlineExceeded means the operation expired before completion.
25
- *
26
- * For operations that modify the state of the system, this error may be
27
- * returned even if the operation has completed successfully. For
28
- * example, a successful response from a server could have been delayed
29
- * long enough for the deadline to expire.
30
- */
31
- readonly DEADLINE_EXCEEDED: "DEADLINE_EXCEEDED";
32
- /**
33
- * NotFound means a requested entity (e.g. a resource or a file) was
34
- * not found.
35
- */
36
- readonly NOT_FOUND: "NOT_FOUND";
37
- /**
38
- * AlreadyExists means an attempt to create an entity failed because one
39
- * already exists.
40
- */
41
- readonly ALREADY_EXISTS: "ALREADY_EXISTS";
42
- /**
43
- * PermissionDenied indicates the caller does not have permission to
44
- * execute the specified operation.
45
- *
46
- * This is different from an error returned when the user has exhausted
47
- * some resource (e.g. too many requests) which is a ResourceExhausted
48
- * error.
49
- */
50
- readonly PERMISSION_DENIED: "PERMISSION_DENIED";
51
- /**
52
- * ResourceExhausted indicates some resource has been exhausted, perhaps
53
- * a per-user quota, or perhaps the entire file system is out of space.
54
- */
55
- readonly RESOURCE_EXHAUSTED: "RESOURCE_EXHAUSTED";
56
- /**
57
- * FailedPrecondition indicates the operation was rejected because the
58
- * system is not in a state required for the operation's execution.
59
- * For example, directory to be deleted may be non-empty, an rmdir
60
- * operation is applied to a non-directory, etc.
61
- */
62
- readonly FAILED_PRECONDITION: "FAILED_PRECONDITION";
63
- /**
64
- * Aborted indicates the operation was aborted, typically due to a
65
- * concurrency issue like sequencer check failures, transaction aborts,
66
- * etc.
67
- */
68
- readonly ABORTED: "ABORTED";
69
- /**
70
- * OutOfRange means the operation was attempted past the valid range.
71
- * E.g., seeking or reading past end of file.
72
- *
73
- * Unlike InvalidArgument, this error indicates a problem that may
74
- * be fixed if the system state changes. For example, a 32-bit file
75
- * system will generate InvalidArgument if asked to read at an
76
- * offset that is not in the range [0,2^32-1], but it will generate
77
- * OutOfRange if asked to read from an offset past the current
78
- * file size.
79
- *
80
- * There is a fair bit of overlap between FailedPrecondition and
81
- * OutOfRange. We recommend using OutOfRange (the more specific
82
- * error) when it applies so that callers who are iterating through
83
- * a space can easily look for an OutOfRange error to detect when
84
- * they are done.
85
- */
86
- readonly OUT_OF_RANGE: "OUT_OF_RANGE";
87
- /**
88
- * Unimplemented indicates the operation is not implemented or not
89
- * supported/enabled in this service.
90
- */
91
- readonly UNIMPLEMENTED: "UNIMPLEMENTED";
92
- /**
93
- * Internal indicates an internal error. This means some invariants
94
- * expected by the underlying system have been broken. If you see
95
- * this error, something is very broken.
96
- */
97
- readonly INTERNAL: "INTERNAL";
98
- /**
99
- * Unavailable indicates the service is currently unavailable.
100
- *
101
- * This is most likely a transient condition and may be corrected by
102
- * retrying. Though, this might not always be safe to retry if the
103
- * operation is non-idempotent.
104
- *
105
- * The Databricks SDK will generally automatically retry the request
106
- * with a backoff when encountering this error.
107
- */
108
- readonly UNAVAILABLE: "UNAVAILABLE";
109
- /** DataLoss indicates unrecoverable data loss or corruption. */
110
- readonly DATA_LOSS: "DATA_LOSS";
111
- /**
112
- * Unauthenticated indicates the request does not have valid
113
- * authentication credentials for the operation.
114
- */
115
- readonly UNAUTHENTICATED: "UNAUTHENTICATED";
5
+ declare const Code: {
6
+ /**
7
+ * Unknown indicates an error that cannot be classified. It is used for
8
+ * malformed error responses and for responses that carry no string error
9
+ * code (missing or an integer).
10
+ */
11
+ readonly UNKNOWN: "UNKNOWN"; /** OK indicates the operation completed successfully. */
12
+ readonly OK: "OK"; /** Cancelled indicates the operation was cancelled (typically by the caller). */
13
+ readonly CANCELLED: "CANCELLED";
14
+ /**
15
+ * InvalidArgument indicates the client specified an invalid argument.
16
+ *
17
+ * By contrast with FailedPrecondition, InvalidArgument indicates arguments
18
+ * that are problematic regardless of the state of the system. For example,
19
+ * a malformed request parameter.
20
+ */
21
+ readonly INVALID_ARGUMENT: "INVALID_ARGUMENT";
22
+ /**
23
+ * DeadlineExceeded means the operation expired before completion.
24
+ *
25
+ * For operations that modify the state of the system, this error may be
26
+ * returned even if the operation has completed successfully. For
27
+ * example, a successful response from a server could have been delayed
28
+ * long enough for the deadline to expire.
29
+ */
30
+ readonly DEADLINE_EXCEEDED: "DEADLINE_EXCEEDED";
31
+ /**
32
+ * NotFound means a requested entity (e.g. a resource or a file) was
33
+ * not found.
34
+ */
35
+ readonly NOT_FOUND: "NOT_FOUND";
36
+ /**
37
+ * AlreadyExists means an attempt to create an entity failed because one
38
+ * already exists.
39
+ */
40
+ readonly ALREADY_EXISTS: "ALREADY_EXISTS";
41
+ /**
42
+ * PermissionDenied indicates the caller does not have permission to
43
+ * execute the specified operation.
44
+ *
45
+ * This is different from an error returned when the user has exhausted
46
+ * some resource (e.g. too many requests) which is a ResourceExhausted
47
+ * error.
48
+ */
49
+ readonly PERMISSION_DENIED: "PERMISSION_DENIED";
50
+ /**
51
+ * ResourceExhausted indicates some resource has been exhausted, perhaps
52
+ * a per-user quota, or perhaps the entire file system is out of space.
53
+ */
54
+ readonly RESOURCE_EXHAUSTED: "RESOURCE_EXHAUSTED";
55
+ /**
56
+ * FailedPrecondition indicates the operation was rejected because the
57
+ * system is not in a state required for the operation's execution.
58
+ * For example, directory to be deleted may be non-empty, an rmdir
59
+ * operation is applied to a non-directory, etc.
60
+ */
61
+ readonly FAILED_PRECONDITION: "FAILED_PRECONDITION";
62
+ /**
63
+ * Aborted indicates the operation was aborted, typically due to a
64
+ * concurrency issue like sequencer check failures, transaction aborts,
65
+ * etc.
66
+ */
67
+ readonly ABORTED: "ABORTED";
68
+ /**
69
+ * OutOfRange means the operation was attempted past the valid range.
70
+ * E.g., seeking or reading past end of file.
71
+ *
72
+ * Unlike InvalidArgument, this error indicates a problem that may
73
+ * be fixed if the system state changes. For example, a 32-bit file
74
+ * system will generate InvalidArgument if asked to read at an
75
+ * offset that is not in the range [0,2^32-1], but it will generate
76
+ * OutOfRange if asked to read from an offset past the current
77
+ * file size.
78
+ *
79
+ * There is a fair bit of overlap between FailedPrecondition and
80
+ * OutOfRange. We recommend using OutOfRange (the more specific
81
+ * error) when it applies so that callers who are iterating through
82
+ * a space can easily look for an OutOfRange error to detect when
83
+ * they are done.
84
+ */
85
+ readonly OUT_OF_RANGE: "OUT_OF_RANGE";
86
+ /**
87
+ * Unimplemented indicates the operation is not implemented or not
88
+ * supported/enabled in this service.
89
+ */
90
+ readonly UNIMPLEMENTED: "UNIMPLEMENTED";
91
+ /**
92
+ * Internal indicates an internal error. This means some invariants
93
+ * expected by the underlying system have been broken. If you see
94
+ * this error, something is very broken.
95
+ */
96
+ readonly INTERNAL: "INTERNAL";
97
+ /**
98
+ * Unavailable indicates the service is currently unavailable.
99
+ *
100
+ * This is most likely a transient condition and may be corrected by
101
+ * retrying. Though, this might not always be safe to retry if the
102
+ * operation is non-idempotent.
103
+ *
104
+ * The Databricks SDK will generally automatically retry the request
105
+ * with a backoff when encountering this error.
106
+ */
107
+ readonly UNAVAILABLE: "UNAVAILABLE"; /** DataLoss indicates unrecoverable data loss or corruption. */
108
+ readonly DATA_LOSS: "DATA_LOSS";
109
+ /**
110
+ * Unauthenticated indicates the request does not have valid
111
+ * authentication credentials for the operation.
112
+ */
113
+ readonly UNAUTHENTICATED: "UNAUTHENTICATED";
116
114
  };
117
- export type Code = (typeof Code)[keyof typeof Code] | (string & {});
115
+ type Code = (typeof Code)[keyof typeof Code] | (string & {});
116
+ //#endregion
117
+ export { Code };
118
118
  //# sourceMappingURL=codes.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"codes.d.ts","sourceRoot":"","sources":["../../../src/apierror/codes/codes.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,eAAO,MAAM,IAAI;IACf;;;;OAIG;;IAGH,yDAAyD;;IAGzD,iFAAiF;;IAGjF;;;;;;OAMG;;IAGH;;;;;;;OAOG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;;;;;OAOG;;IAGH;;;OAGG;;IAGH;;;;;OAKG;;IAGH;;;;OAIG;;IAGH;;;;;;;;;;;;;;;;OAgBG;;IAGH;;;OAGG;;IAGH;;;;OAIG;;IAGH;;;;;;;;;OASG;;IAGH,gEAAgE;;IAGhE;;;OAGG;;CAEK,CAAC;AAEX,MAAM,MAAM,IAAI,GAAG,CAAC,OAAO,IAAI,CAAC,CAAC,MAAM,OAAO,IAAI,CAAC,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC"}
1
+ {"version":3,"file":"codes.d.ts","names":[],"sources":["../../../src/apierror/codes/codes.ts"],"mappings":";;AAIA;;cAAa,IAAA;EAgIH;;;;;EAAA;;;;;;;;;;;;;AAEV;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAAY,IAAA,WAAe,IAAA,eAAmB,IAAA"}
@@ -1,118 +1,27 @@
1
+ //#region src/apierror/codes/codes.ts
1
2
  /**
2
- * Code is the error code carried by an API error.
3
- */
4
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
5
- export const Code = {
6
- /**
7
- * Unknown indicates an error that cannot be classified. It is used for
8
- * malformed error responses and for responses that carry no string error
9
- * code (missing or an integer).
10
- */
11
- UNKNOWN: 'UNKNOWN',
12
- /** OK indicates the operation completed successfully. */
13
- OK: 'OK',
14
- /** Cancelled indicates the operation was cancelled (typically by the caller). */
15
- CANCELLED: 'CANCELLED',
16
- /**
17
- * InvalidArgument indicates the client specified an invalid argument.
18
- *
19
- * By contrast with FailedPrecondition, InvalidArgument indicates arguments
20
- * that are problematic regardless of the state of the system. For example,
21
- * a malformed request parameter.
22
- */
23
- INVALID_ARGUMENT: 'INVALID_ARGUMENT',
24
- /**
25
- * DeadlineExceeded means the operation expired before completion.
26
- *
27
- * For operations that modify the state of the system, this error may be
28
- * returned even if the operation has completed successfully. For
29
- * example, a successful response from a server could have been delayed
30
- * long enough for the deadline to expire.
31
- */
32
- DEADLINE_EXCEEDED: 'DEADLINE_EXCEEDED',
33
- /**
34
- * NotFound means a requested entity (e.g. a resource or a file) was
35
- * not found.
36
- */
37
- NOT_FOUND: 'NOT_FOUND',
38
- /**
39
- * AlreadyExists means an attempt to create an entity failed because one
40
- * already exists.
41
- */
42
- ALREADY_EXISTS: 'ALREADY_EXISTS',
43
- /**
44
- * PermissionDenied indicates the caller does not have permission to
45
- * execute the specified operation.
46
- *
47
- * This is different from an error returned when the user has exhausted
48
- * some resource (e.g. too many requests) which is a ResourceExhausted
49
- * error.
50
- */
51
- PERMISSION_DENIED: 'PERMISSION_DENIED',
52
- /**
53
- * ResourceExhausted indicates some resource has been exhausted, perhaps
54
- * a per-user quota, or perhaps the entire file system is out of space.
55
- */
56
- RESOURCE_EXHAUSTED: 'RESOURCE_EXHAUSTED',
57
- /**
58
- * FailedPrecondition indicates the operation was rejected because the
59
- * system is not in a state required for the operation's execution.
60
- * For example, directory to be deleted may be non-empty, an rmdir
61
- * operation is applied to a non-directory, etc.
62
- */
63
- FAILED_PRECONDITION: 'FAILED_PRECONDITION',
64
- /**
65
- * Aborted indicates the operation was aborted, typically due to a
66
- * concurrency issue like sequencer check failures, transaction aborts,
67
- * etc.
68
- */
69
- ABORTED: 'ABORTED',
70
- /**
71
- * OutOfRange means the operation was attempted past the valid range.
72
- * E.g., seeking or reading past end of file.
73
- *
74
- * Unlike InvalidArgument, this error indicates a problem that may
75
- * be fixed if the system state changes. For example, a 32-bit file
76
- * system will generate InvalidArgument if asked to read at an
77
- * offset that is not in the range [0,2^32-1], but it will generate
78
- * OutOfRange if asked to read from an offset past the current
79
- * file size.
80
- *
81
- * There is a fair bit of overlap between FailedPrecondition and
82
- * OutOfRange. We recommend using OutOfRange (the more specific
83
- * error) when it applies so that callers who are iterating through
84
- * a space can easily look for an OutOfRange error to detect when
85
- * they are done.
86
- */
87
- OUT_OF_RANGE: 'OUT_OF_RANGE',
88
- /**
89
- * Unimplemented indicates the operation is not implemented or not
90
- * supported/enabled in this service.
91
- */
92
- UNIMPLEMENTED: 'UNIMPLEMENTED',
93
- /**
94
- * Internal indicates an internal error. This means some invariants
95
- * expected by the underlying system have been broken. If you see
96
- * this error, something is very broken.
97
- */
98
- INTERNAL: 'INTERNAL',
99
- /**
100
- * Unavailable indicates the service is currently unavailable.
101
- *
102
- * This is most likely a transient condition and may be corrected by
103
- * retrying. Though, this might not always be safe to retry if the
104
- * operation is non-idempotent.
105
- *
106
- * The Databricks SDK will generally automatically retry the request
107
- * with a backoff when encountering this error.
108
- */
109
- UNAVAILABLE: 'UNAVAILABLE',
110
- /** DataLoss indicates unrecoverable data loss or corruption. */
111
- DATA_LOSS: 'DATA_LOSS',
112
- /**
113
- * Unauthenticated indicates the request does not have valid
114
- * authentication credentials for the operation.
115
- */
116
- UNAUTHENTICATED: 'UNAUTHENTICATED',
3
+ * Code is the error code carried by an API error.
4
+ */
5
+ const Code = {
6
+ UNKNOWN: "UNKNOWN",
7
+ OK: "OK",
8
+ CANCELLED: "CANCELLED",
9
+ INVALID_ARGUMENT: "INVALID_ARGUMENT",
10
+ DEADLINE_EXCEEDED: "DEADLINE_EXCEEDED",
11
+ NOT_FOUND: "NOT_FOUND",
12
+ ALREADY_EXISTS: "ALREADY_EXISTS",
13
+ PERMISSION_DENIED: "PERMISSION_DENIED",
14
+ RESOURCE_EXHAUSTED: "RESOURCE_EXHAUSTED",
15
+ FAILED_PRECONDITION: "FAILED_PRECONDITION",
16
+ ABORTED: "ABORTED",
17
+ OUT_OF_RANGE: "OUT_OF_RANGE",
18
+ UNIMPLEMENTED: "UNIMPLEMENTED",
19
+ INTERNAL: "INTERNAL",
20
+ UNAVAILABLE: "UNAVAILABLE",
21
+ DATA_LOSS: "DATA_LOSS",
22
+ UNAUTHENTICATED: "UNAUTHENTICATED"
117
23
  };
24
+
25
+ //#endregion
26
+ export { Code };
118
27
  //# sourceMappingURL=codes.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"codes.js","sourceRoot":"","sources":["../../../src/apierror/codes/codes.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,4FAA4F;AAC5F,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB;;;;OAIG;IACH,OAAO,EAAE,SAAS;IAElB,yDAAyD;IACzD,EAAE,EAAE,IAAI;IAER,iFAAiF;IACjF,SAAS,EAAE,WAAW;IAEtB;;;;;;OAMG;IACH,gBAAgB,EAAE,kBAAkB;IAEpC;;;;;;;OAOG;IACH,iBAAiB,EAAE,mBAAmB;IAEtC;;;OAGG;IACH,SAAS,EAAE,WAAW;IAEtB;;;OAGG;IACH,cAAc,EAAE,gBAAgB;IAEhC;;;;;;;OAOG;IACH,iBAAiB,EAAE,mBAAmB;IAEtC;;;OAGG;IACH,kBAAkB,EAAE,oBAAoB;IAExC;;;;;OAKG;IACH,mBAAmB,EAAE,qBAAqB;IAE1C;;;;OAIG;IACH,OAAO,EAAE,SAAS;IAElB;;;;;;;;;;;;;;;;OAgBG;IACH,YAAY,EAAE,cAAc;IAE5B;;;OAGG;IACH,aAAa,EAAE,eAAe;IAE9B;;;;OAIG;IACH,QAAQ,EAAE,UAAU;IAEpB;;;;;;;;;OASG;IACH,WAAW,EAAE,aAAa;IAE1B,gEAAgE;IAChE,SAAS,EAAE,WAAW;IAEtB;;;OAGG;IACH,eAAe,EAAE,iBAAiB;CAC1B,CAAC"}
1
+ {"version":3,"file":"codes.js","names":[],"sources":["../../../src/apierror/codes/codes.ts"],"sourcesContent":["/**\n * Code is the error code carried by an API error.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const Code = {\n /**\n * Unknown indicates an error that cannot be classified. It is used for\n * malformed error responses and for responses that carry no string error\n * code (missing or an integer).\n */\n UNKNOWN: 'UNKNOWN',\n\n /** OK indicates the operation completed successfully. */\n OK: 'OK',\n\n /** Cancelled indicates the operation was cancelled (typically by the caller). */\n CANCELLED: 'CANCELLED',\n\n /**\n * InvalidArgument indicates the client specified an invalid argument.\n *\n * By contrast with FailedPrecondition, InvalidArgument indicates arguments\n * that are problematic regardless of the state of the system. For example,\n * a malformed request parameter.\n */\n INVALID_ARGUMENT: 'INVALID_ARGUMENT',\n\n /**\n * DeadlineExceeded means the operation expired before completion.\n *\n * For operations that modify the state of the system, this error may be\n * returned even if the operation has completed successfully. For\n * example, a successful response from a server could have been delayed\n * long enough for the deadline to expire.\n */\n DEADLINE_EXCEEDED: 'DEADLINE_EXCEEDED',\n\n /**\n * NotFound means a requested entity (e.g. a resource or a file) was\n * not found.\n */\n NOT_FOUND: 'NOT_FOUND',\n\n /**\n * AlreadyExists means an attempt to create an entity failed because one\n * already exists.\n */\n ALREADY_EXISTS: 'ALREADY_EXISTS',\n\n /**\n * PermissionDenied indicates the caller does not have permission to\n * execute the specified operation.\n *\n * This is different from an error returned when the user has exhausted\n * some resource (e.g. too many requests) which is a ResourceExhausted\n * error.\n */\n PERMISSION_DENIED: 'PERMISSION_DENIED',\n\n /**\n * ResourceExhausted indicates some resource has been exhausted, perhaps\n * a per-user quota, or perhaps the entire file system is out of space.\n */\n RESOURCE_EXHAUSTED: 'RESOURCE_EXHAUSTED',\n\n /**\n * FailedPrecondition indicates the operation was rejected because the\n * system is not in a state required for the operation's execution.\n * For example, directory to be deleted may be non-empty, an rmdir\n * operation is applied to a non-directory, etc.\n */\n FAILED_PRECONDITION: 'FAILED_PRECONDITION',\n\n /**\n * Aborted indicates the operation was aborted, typically due to a\n * concurrency issue like sequencer check failures, transaction aborts,\n * etc.\n */\n ABORTED: 'ABORTED',\n\n /**\n * OutOfRange means the operation was attempted past the valid range.\n * E.g., seeking or reading past end of file.\n *\n * Unlike InvalidArgument, 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 InvalidArgument if asked to read at an\n * offset that is not in the range [0,2^32-1], but it will generate\n * OutOfRange if asked to read from an offset past the current\n * file size.\n *\n * There is a fair bit of overlap between FailedPrecondition and\n * OutOfRange. We recommend using OutOfRange (the more specific\n * error) when it applies so that callers who are iterating through\n * a space can easily look for an OutOfRange error to detect when\n * they are done.\n */\n OUT_OF_RANGE: 'OUT_OF_RANGE',\n\n /**\n * Unimplemented indicates the operation is not implemented or not\n * supported/enabled in this service.\n */\n UNIMPLEMENTED: 'UNIMPLEMENTED',\n\n /**\n * Internal indicates an internal error. This means some invariants\n * expected by the underlying system have been broken. If you see\n * this error, something is very broken.\n */\n INTERNAL: 'INTERNAL',\n\n /**\n * Unavailable indicates the service is currently unavailable.\n *\n * This is most likely a transient condition and may be corrected by\n * retrying. Though, this might not always be safe to retry if the\n * operation is non-idempotent.\n *\n * The Databricks SDK will generally automatically retry the request\n * with a backoff when encountering this error.\n */\n UNAVAILABLE: 'UNAVAILABLE',\n\n /** DataLoss indicates unrecoverable data loss or corruption. */\n DATA_LOSS: 'DATA_LOSS',\n\n /**\n * Unauthenticated indicates the request does not have valid\n * authentication credentials for the operation.\n */\n UNAUTHENTICATED: 'UNAUTHENTICATED',\n} as const;\n\nexport type Code = (typeof Code)[keyof typeof Code] | (string & {});\n"],"mappings":";;;;AAIA,MAAa,OAAO;CAMlB,SAAS;CAGT,IAAI;CAGJ,WAAW;CASX,kBAAkB;CAUlB,mBAAmB;CAMnB,WAAW;CAMX,gBAAgB;CAUhB,mBAAmB;CAMnB,oBAAoB;CAQpB,qBAAqB;CAOrB,SAAS;CAmBT,cAAc;CAMd,eAAe;CAOf,UAAU;CAYV,aAAa;CAGb,WAAW;CAMX,iBAAiB;CAClB"}
@@ -1,7 +1,2 @@
1
- /**
2
- * Canonical error codes for Databricks API errors.
3
- *
4
- * @packageDocumentation
5
- */
6
- export { Code } from './codes';
7
- //# sourceMappingURL=index.d.ts.map
1
+ import { Code } from "./codes.js";
2
+ export { Code };
@@ -1,7 +1,3 @@
1
- /**
2
- * Canonical error codes for Databricks API errors.
3
- *
4
- * @packageDocumentation
5
- */
6
- export { Code } from './codes';
7
- //# sourceMappingURL=index.js.map
1
+ import { Code } from "./codes.js";
2
+
3
+ export { Code };