@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/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 Error {
536
- constructor(message) {
537
- super(message);
538
- this.name = "CredentialError";
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(),