@byok-sdk/keys 0.3.9 → 0.4.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/errors.d.ts CHANGED
@@ -27,8 +27,9 @@ export declare class ByokKeysError extends Error {
27
27
  * stored value as-is), `SECRET_ENVELOPE_INVALID` (it reported a malformed
28
28
  * envelope as an absent secret), and `SECRET_NAME_INVALID` /
29
29
  * `SECRET_VALUE_INVALID` (the runtime replacements for the closed
30
- * `KeychainSecretName` union). Everything else matches the source string for
31
- * string.
30
+ * `KeychainSecretName` union). `PROVIDER_STORE_SCHEMA_STALE` joins them: it
31
+ * guards a persisted `provider_profile` DDL that differs from the one this
32
+ * package generates. Everything else matches the source string for string.
32
33
  *
33
34
  * `SECRET_NAMESPACE_INVALID` is a separate case. The source does record it:
34
35
  * `normalizeSecretNamespace` (`index.ts:748-757`) throws the verbatim string
@@ -70,6 +71,7 @@ export declare const BYOK_KEYS_ERROR_CODES: {
70
71
  readonly PROVIDER_SECRET_MISSING: 'PROVIDER_SECRET_MISSING';
71
72
  readonly PROVIDER_SECRET_NOT_ALLOWED: 'PROVIDER_SECRET_NOT_ALLOWED';
72
73
  readonly PROVIDER_SECRET_ROLLBACK_FAILED: 'PROVIDER_SECRET_ROLLBACK_FAILED';
74
+ readonly PROVIDER_STORE_SCHEMA_STALE: 'PROVIDER_STORE_SCHEMA_STALE';
73
75
  readonly PROVIDER_STORE_UNAVAILABLE: 'PROVIDER_STORE_UNAVAILABLE';
74
76
  readonly PROVIDER_TRUTH_INVALID: 'PROVIDER_TRUTH_INVALID';
75
77
  readonly PROVIDER_URL_INVALID: 'PROVIDER_URL_INVALID';
package/dist/index.d.ts CHANGED
@@ -1,7 +1,9 @@
1
1
  export { ByokKeysError, BYOK_KEYS_ERROR_CODES } from './errors';
2
2
  export type { ByokKeysErrorCode } from './errors';
3
- export { MODEL_PROVIDER_IDS, MODEL_PROVIDER_ADAPTERS, PROVIDER_AUTH_MODES, ModelProviderProfileSchema, parseModelProviderProfile, } from './provider-profile';
4
- export type { ModelProviderAdapter, ModelProviderId, ModelProviderProfile, ModelProviderProfileInput, ProviderAuthMode, } from './provider-profile';
3
+ export { MODEL_PROVIDER_ADAPTERS, MODEL_PROVIDER_KINDS, PROVIDER_AUTH_MODES, PROVIDER_MODEL_CAPABILITIES, ModelProviderProfileSchema, ProviderModelCapabilitySchema, ProviderProfileRefSchema, parseModelProviderProfile, exactProviderProfileBinding, assertExactProviderProfileBinding, } from './provider-profile';
4
+ export type { ModelProviderAdapter, ModelProviderKind, ModelProviderProfile, ModelProviderProfileInput, ExactProviderProfileBinding, ProviderAuthMode, ProviderModelCapability, ProviderProfileRef, } from './provider-profile';
5
+ export { MODEL_PROVIDER_VENDORS, MODEL_PROVIDER_VENDOR_IDS, modelProviderVendor, } from './provider-catalog';
6
+ export type { ModelProviderVendor, ModelProviderVendorId, } from './provider-catalog';
5
7
  export { providerHeaders, requiredProviderSecret } from './headers';
6
8
  export type { ProviderAuthProfile } from './headers';
7
9
  export { normalizeProviderUrl, isLoopbackHost, isLoopbackProviderUrl, isPrivateNetworkLiteral, } from './url';
@@ -14,7 +16,7 @@ export type { AnthropicMessage, AnthropicMessageRequest, } from './anthropic-cli
14
16
  export { runCommand } from './command-runner';
15
17
  export type { CommandResult, CommandRunner } from './command-runner';
16
18
  export { SECRET_NAME_PATTERN, SECRET_NAMESPACE_PATTERN, assertSecretName, assertSecretNamespace, } from './secret-name';
17
- export { DEFAULT_SECRET_SERVICE_PREFIX, InMemorySecretStore, MODEL_PROVIDER_SECRET_NAMES, assertSharedSecretValue, decodeStrictBase64Utf8, modelProviderSecretName, } from './secret-store';
19
+ export { DEFAULT_SECRET_SERVICE_PREFIX, InMemorySecretStore, assertSharedSecretValue, decodeStrictBase64Utf8, modelProviderSecretName, } from './secret-store';
18
20
  export type { ModelProviderSecretName, SecretStore } from './secret-store';
19
21
  export { DEFAULT_KEYCHAIN_SECRET_STORAGE_PREFIX, MacOsKeychainSecretStore, } from './macos-keychain';
20
22
  export type { MacOsKeychainSecretStoreOptions } from './macos-keychain';