@theokit/sdk 4.23.0 → 4.24.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/auth/index.cjs +29 -5
- package/dist/auth/index.cjs.map +1 -1
- package/dist/auth/index.js +29 -5
- package/dist/auth/index.js.map +1 -1
- package/dist/cron.cjs +6 -5
- package/dist/cron.cjs.map +1 -1
- package/dist/cron.js +6 -5
- package/dist/cron.js.map +1 -1
- package/dist/eval.cjs +6 -5
- package/dist/eval.cjs.map +1 -1
- package/dist/eval.js +6 -5
- package/dist/eval.js.map +1 -1
- package/dist/index.cjs +6 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -5
- package/dist/index.js.map +1 -1
- package/dist/internal/auth/credential-store.d.ts +20 -3
- package/dist/models.cjs +11 -5
- package/dist/models.cjs.map +1 -1
- package/dist/models.js +11 -5
- package/dist/models.js.map +1 -1
- package/package.json +1 -1
package/dist/models.js
CHANGED
|
@@ -292,6 +292,12 @@ var TheokitAgentError = class extends Error {
|
|
|
292
292
|
if (options.metadata !== void 0) this.metadata = options.metadata;
|
|
293
293
|
}
|
|
294
294
|
};
|
|
295
|
+
var AuthenticationError = class extends TheokitAgentError {
|
|
296
|
+
name = "AuthenticationError";
|
|
297
|
+
constructor(message, options = {}) {
|
|
298
|
+
super(message, { ...options, isRetryable: false });
|
|
299
|
+
}
|
|
300
|
+
};
|
|
295
301
|
var ConfigurationError = class extends TheokitAgentError {
|
|
296
302
|
name = "ConfigurationError";
|
|
297
303
|
constructor(message, options = {}) {
|
|
@@ -532,11 +538,11 @@ function credentialHome(config, env = {}) {
|
|
|
532
538
|
function authFilePath(config, env = {}) {
|
|
533
539
|
return join(credentialHome(config, env), config.fileName);
|
|
534
540
|
}
|
|
535
|
-
var CredentialError = class extends
|
|
536
|
-
constructor
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
541
|
+
var CredentialError = class extends AuthenticationError {
|
|
542
|
+
// Field, not an assignment in the constructor: `AuthenticationError.name` is `override readonly`
|
|
543
|
+
// (`errors.ts:174`), so `this.name = …` does not compile. Caught by `tsc`, not by vitest — the
|
|
544
|
+
// suite was green with the broken assignment because the transpiler strips the type.
|
|
545
|
+
name = "CredentialError";
|
|
540
546
|
};
|
|
541
547
|
var apiFileSchema = z.object({
|
|
542
548
|
type: z.literal("api").optional(),
|