@zorveus/sdk 0.1.8 → 0.2.1

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/index.d.mts CHANGED
@@ -1,3 +1,6 @@
1
+ import { U as UpsertProductUserParams, a as UpsertProductUserResponse, P as ProductUserResponse, G as GetProductUserByExternalIdParams, b as GetProductUserCreditSummaryByExternalIdParams, c as ProductUserCreditSummaryResponse, d as ProductUserListParams, e as ProductUserListResponse, f as GrantCreditParams, g as GrantProductUserCreditsResponse, h as GrantCreditByExternalIdParams, L as ListCreditGrantsParams, i as ProductUserCreditGrantListResponse, j as ListCreditGrantsByExternalIdParams, R as RevokeProductUserCreditGrantResponse } from './zorveus-error-DbltWNhC.mjs';
2
+ export { A as APIConnectionError, k as APIStatusError, l as AppConnectionCreditMode, m as AppConnectionNotFoundError, n as AuthenticationError, C as CapExceededError, o as CreditGrant, q as CreditGrantExpiredError, r as CreditGrantSource, s as CreditGrantStatus, t as CreditMode, I as InsufficientFundsError, u as InternalServerError, N as NotFoundError, v as PermissionDeniedError, w as ProductUser, x as ProductUserAllowanceInsufficientError, y as ProductUserAllowanceInsufficientParams, z as ProductUserCapResponse, B as ProductUserCreditGrantResponse, D as ProductUserStatus, E as ProductUserUsageMetrics, F as ProductUserUsageSummary, H as RateLimitError, J as ReservationConflictError, K as UnprocessableEntityError, Z as ZorveusBusinessError, M as ZorveusError, O as createAPIError, p as parseZorveusGatewayError } from './zorveus-error-DbltWNhC.mjs';
3
+
1
4
  interface ZorveusInferenceClientOptions {
2
5
  /**
3
6
  * API Key used for gateway inference.
@@ -98,6 +101,8 @@ interface InferenceKeyUsageResponse {
98
101
  period: "daily" | "weekly" | "monthly" | "lifetime" | string;
99
102
  spend_cap: string | null;
100
103
  spent_this_period: string;
104
+ /** Explicit reference-priced spend, when returned by newer API versions. */
105
+ virtual_spend_this_period?: string;
101
106
  remaining_balance: string | null;
102
107
  reset_at: string | null;
103
108
  }
@@ -167,6 +172,10 @@ interface ZorveusMetadata {
167
172
  * The startup's external customer ID (e.g. "usr_ext_8842").
168
173
  */
169
174
  externalUserId?: string;
175
+ /**
176
+ * Zorveus product end-user ID (e.g. "peu_...").
177
+ */
178
+ productEndUserId?: string;
170
179
  /**
171
180
  * Customer's display name.
172
181
  */
@@ -187,6 +196,7 @@ interface ZorveusGatewayProductUserMetadata {
187
196
  }
188
197
  interface ZorveusGatewayMetadata {
189
198
  external_user_id?: string;
199
+ product_end_user_id?: string;
190
200
  product_user?: ZorveusGatewayProductUserMetadata;
191
201
  }
192
202
  /**
@@ -265,6 +275,11 @@ interface ChatCompletionUsage {
265
275
  total_tokens: number;
266
276
  prompt_tokens_details?: {
267
277
  cached_tokens?: number;
278
+ cache_creation_tokens?: number;
279
+ cache_creation_token_details?: {
280
+ ephemeral_5m_input_tokens?: number;
281
+ ephemeral_1h_input_tokens?: number;
282
+ };
268
283
  };
269
284
  completion_tokens_details?: {
270
285
  reasoning_tokens?: number;
@@ -352,157 +367,6 @@ interface ModelListResponse {
352
367
  data: Model[];
353
368
  }
354
369
 
355
- type ProductUserStatus = "active" | "suspended";
356
- interface ProductUserCapResponse {
357
- source: string;
358
- cap_rule_id: string;
359
- amount: string;
360
- currency: string;
361
- period: "daily" | "weekly" | "monthly" | "lifetime" | string;
362
- spent_this_period: string;
363
- reset_at: string | null;
364
- status: string;
365
- updated_at: string;
366
- }
367
- interface ProductUserUsageMetrics {
368
- sell_cost: string;
369
- input_tokens: number;
370
- output_tokens: number;
371
- total_tokens: number;
372
- request_count: number;
373
- }
374
- interface ProductUserUsageSummary {
375
- this_month: ProductUserUsageMetrics;
376
- total: ProductUserUsageMetrics;
377
- }
378
- interface ProductUserCreditSummaryResponse {
379
- currency: string;
380
- available_credits: string;
381
- active_grant_count: number;
382
- expiring_soon_amount: string;
383
- spent_this_month: string;
384
- spent_total: string;
385
- last_grant_at?: string | null;
386
- last_used_at?: string | null;
387
- product_end_user_id?: string;
388
- total_granted?: string;
389
- total_remaining?: string;
390
- active_grants_count?: number;
391
- }
392
- interface ProductUserResponse {
393
- product_end_user_id: string;
394
- org_id: string;
395
- app_id: string;
396
- external_user_id: string;
397
- display_name: string | null;
398
- email_hash: string | null;
399
- status: ProductUserStatus;
400
- metadata: Record<string, unknown> | null;
401
- usage?: ProductUserUsageSummary | Record<string, unknown>;
402
- cap?: ProductUserCapResponse | null;
403
- credits?: ProductUserCreditSummaryResponse | null;
404
- }
405
- type ProductUser = ProductUserResponse;
406
- interface UpsertProductUserResponse {
407
- product_user: ProductUserResponse;
408
- created: boolean;
409
- }
410
- interface ProductUserListResponse {
411
- product_users: ProductUserResponse[];
412
- }
413
- interface UpsertProductUserParams {
414
- orgId?: string;
415
- appId?: string;
416
- externalUserId: string;
417
- displayName?: string | null;
418
- email?: string | null;
419
- metadata?: Record<string, unknown> | null;
420
- }
421
- interface GetProductUserByExternalIdParams {
422
- appId: string;
423
- externalUserId: string;
424
- orgId?: string;
425
- }
426
- interface GetProductUserCreditSummaryByExternalIdParams {
427
- appId: string;
428
- externalUserId: string;
429
- currency?: string;
430
- orgId?: string;
431
- }
432
- type CreditGrantStatus = "active" | "exhausted" | "expired" | "revoked";
433
- type CreditGrantSource = "admin_adjustment" | "service_key" | "purchase" | "promotion" | "monthly_allowance" | "support_credit" | "import" | (string & {});
434
- interface ProductUserCreditGrantResponse {
435
- credit_grant_id: string;
436
- org_id: string;
437
- app_id: string;
438
- product_end_user_id: string;
439
- amount: string;
440
- remaining_amount: string;
441
- currency: string;
442
- source: string;
443
- reason: string | null;
444
- status: CreditGrantStatus;
445
- expires_at: string | null;
446
- metadata: Record<string, unknown> | null;
447
- created_at: string;
448
- updated_at: string;
449
- }
450
- type CreditGrant = ProductUserCreditGrantResponse;
451
- interface GrantProductUserCreditsResponse {
452
- product_user: ProductUserResponse;
453
- credit_grant: ProductUserCreditGrantResponse;
454
- credit_summary: ProductUserCreditSummaryResponse;
455
- }
456
- interface ProductUserCreditGrantListResponse {
457
- credit_grants: ProductUserCreditGrantResponse[];
458
- }
459
- interface RevokeProductUserCreditGrantResponse {
460
- credit_grant: ProductUserCreditGrantResponse;
461
- credit_summary: ProductUserCreditSummaryResponse;
462
- revoked: boolean;
463
- }
464
- interface GrantCreditParams {
465
- orgId?: string;
466
- appId?: string;
467
- amount: string;
468
- currency?: string;
469
- reason?: string | null;
470
- expiresAt?: string | null;
471
- metadata?: Record<string, unknown> | null;
472
- }
473
- interface GrantCreditByExternalIdParams {
474
- appId: string;
475
- externalUserId: string;
476
- amount: string;
477
- displayName?: string | null;
478
- email?: string | null;
479
- currency?: string;
480
- source?: CreditGrantSource;
481
- reason?: string | null;
482
- expiresAt?: string | null;
483
- metadata?: Record<string, unknown> | null;
484
- orgId?: string;
485
- }
486
- interface ListCreditGrantsParams {
487
- appId?: string;
488
- orgId?: string;
489
- limit?: number;
490
- offset?: number;
491
- }
492
- interface ListCreditGrantsByExternalIdParams {
493
- appId: string;
494
- externalUserId: string;
495
- status?: CreditGrantStatus;
496
- source?: CreditGrantSource;
497
- limit?: number;
498
- orgId?: string;
499
- }
500
- interface ProductUserListParams {
501
- orgId?: string;
502
- limit?: number;
503
- offset?: number;
504
- }
505
-
506
370
  type ProviderCredentialStatus = "active" | "disabled" | "invalid";
507
371
  type ProviderCredentialRoutingMode = "auto_resolve" | "manual";
508
372
  type ProviderCredentialSecretKind = "api_key" | "service_account" | "oauth_token";
@@ -615,6 +479,75 @@ interface CallbackValidationResult {
615
479
  errorDescription?: string;
616
480
  }
617
481
 
482
+ /** Values are open-ended so newer API enum values do not break older clients. */
483
+ type CacheUsageBreakdownStatus = "reported" | "not_reported" | "invalid" | (string & {});
484
+ type CacheServiceTier = "standard" | "flex" | "priority" | (string & {});
485
+ type CachePricingFallbackReason = "invalid_token_breakdown" | "cache_read_price_missing" | "cache_creation_price_missing" | "cache_duration_unsupported" | "cached_audio_breakdown_unavailable" | "service_tier_unavailable" | (string & {});
486
+ type UsageBillingMode = "wallet" | "byok_external" | (string & {});
487
+ type UsageEventStatus = "succeeded" | "partially_settled" | "failed" | (string & {});
488
+ interface UsageEvent {
489
+ usage_event_id: string;
490
+ zorveus_request_id: string;
491
+ app_id: string | null;
492
+ app_connection_id: string | null;
493
+ product_end_user_id: string | null;
494
+ external_user_id: string | null;
495
+ member_user_id: string | null;
496
+ org_member_id: string | null;
497
+ org_id: string;
498
+ model: string;
499
+ provider: string | null;
500
+ provider_model: string | null;
501
+ input_tokens: number | null;
502
+ output_tokens: number | null;
503
+ cache_read_input_tokens: number;
504
+ cache_creation_input_tokens: number;
505
+ cache_creation_1h_input_tokens: number;
506
+ cache_usage_breakdown_status: CacheUsageBreakdownStatus;
507
+ pricing_service_tier: CacheServiceTier | null;
508
+ cache_pricing_fallback_reason: CachePricingFallbackReason | null;
509
+ cache_savings: string;
510
+ provider_cost: string;
511
+ sell_cost: string;
512
+ virtual_spend: string;
513
+ uncovered_virtual_spend: string;
514
+ unfunded_wallet_charge: string;
515
+ usage_cost: string;
516
+ billing_mode: UsageBillingMode;
517
+ status: UsageEventStatus;
518
+ overrun_policy?: string | null;
519
+ overrun_reason?: string | null;
520
+ requested_max_output_tokens?: number | null;
521
+ applied_max_output_tokens?: number | null;
522
+ provider_credential_id?: string | null;
523
+ provider_credential_version_id?: string | null;
524
+ reservation_id?: string | null;
525
+ latency_ms?: number | null;
526
+ created_at: string;
527
+ [key: string]: unknown;
528
+ }
529
+ interface UsageEventListParams {
530
+ orgId?: string;
531
+ appId?: string;
532
+ appConnectionId?: string;
533
+ productEndUserId?: string;
534
+ model?: string;
535
+ provider?: string;
536
+ billingMode?: UsageBillingMode;
537
+ status?: UsageEventStatus;
538
+ createdAfter?: string;
539
+ createdBefore?: string;
540
+ limit?: number;
541
+ cursor?: string;
542
+ }
543
+ interface UsageEventListResponse {
544
+ events: UsageEvent[];
545
+ next_cursor: string | null;
546
+ has_more: boolean;
547
+ limit: number;
548
+ }
549
+ declare function normalInputTokens(event: UsageEvent): number | null;
550
+
618
551
  declare class Embeddings {
619
552
  private readonly transport;
620
553
  constructor(transport: HTTPTransport);
@@ -716,13 +649,15 @@ declare class ProviderCredentials {
716
649
  private readonly transport;
717
650
  constructor(transport: HTTPTransport);
718
651
  /**
719
- * Registers an organization BYOK provider credential via Service Key (`POST /provider-credentials/org-programmatic`).
652
+ * Registers an organization BYOK provider credential via Service Key (`POST /provider-credentials`).
720
653
  */
721
654
  create(params: CreateProviderCredentialParams, options?: RequestOptions): Promise<ProviderCredentialResponse>;
722
655
  /**
723
- * Lists BYOK provider credentials for an organization (`GET /provider-credentials/org-programmatic`).
656
+ * Lists BYOK provider credentials for an organization (`GET /provider-credentials`).
724
657
  */
725
658
  list(params?: ListProviderCredentialsParams, options?: RequestOptions): Promise<ProviderCredentialListResponse>;
659
+ /** Retrieves one BYOK provider credential by ID. */
660
+ get(providerCredentialId: string, options?: RequestOptions): Promise<ProviderCredentialResponse>;
726
661
  /**
727
662
  * Rotates a provider credential secret (`POST /provider-credentials/org-programmatic/{id}/rotate`).
728
663
  */
@@ -737,6 +672,13 @@ declare class ProviderCredentials {
737
672
  listProviders(options?: RequestOptions): Promise<ProviderCredentialProviderCatalogResponse>;
738
673
  }
739
674
 
675
+ declare class UsageEvents {
676
+ private readonly transport;
677
+ constructor(transport: HTTPTransport);
678
+ /** Lists immutable usage events with cursor pagination. */
679
+ list(params?: UsageEventListParams, options?: RequestOptions): Promise<UsageEventListResponse>;
680
+ }
681
+
740
682
  /**
741
683
  * Zorveus Service Client (Server-to-Server Management Control Plane).
742
684
  * Authenticated via Organization Service Key (`zrv_service_...`).
@@ -745,6 +687,7 @@ declare class ProviderCredentials {
745
687
  declare class ZorveusServiceClient {
746
688
  readonly productUsers: ProductUsers;
747
689
  readonly providerCredentials: ProviderCredentials;
690
+ readonly usageEvents: UsageEvents;
748
691
  protected readonly transport: HTTPTransport;
749
692
  constructor(options: ZorveusServiceClientOptions);
750
693
  }
@@ -775,137 +718,6 @@ declare class ZorveusOAuth {
775
718
  static revokeToken(params: TokenRevocationParams): Promise<void>;
776
719
  }
777
720
 
778
- /**
779
- * Base class for all Zorveus SDK errors.
780
- */
781
- declare class ZorveusError extends Error {
782
- readonly status?: number;
783
- readonly code?: string;
784
- readonly param?: string;
785
- readonly type?: string;
786
- readonly headers?: Record<string, string>;
787
- readonly rawBody?: unknown;
788
- constructor(message: string, options?: {
789
- status?: number;
790
- code?: string;
791
- param?: string;
792
- type?: string;
793
- headers?: Record<string, string>;
794
- rawBody?: unknown;
795
- cause?: unknown;
796
- });
797
- }
798
- /**
799
- * Thrown when an HTTP request fails before receiving a response (network drops, DNS failures, aborts/timeouts).
800
- */
801
- declare class APIConnectionError extends ZorveusError {
802
- constructor(message?: string, options?: {
803
- cause?: unknown;
804
- });
805
- }
806
- /**
807
- * Base class for all HTTP 4xx and 5xx responses from the Zorveus API.
808
- */
809
- declare class APIStatusError extends ZorveusError {
810
- constructor(message: string, options: {
811
- status: number;
812
- code?: string;
813
- param?: string;
814
- type?: string;
815
- headers?: Record<string, string>;
816
- rawBody?: unknown;
817
- });
818
- }
819
- /**
820
- * HTTP 401: Invalid or expired API key, Service key, or OAuth access token.
821
- */
822
- declare class AuthenticationError extends APIStatusError {
823
- constructor(message?: string, options?: Omit<ConstructorParameters<typeof APIStatusError>[1], "status"> & {
824
- status?: number;
825
- });
826
- }
827
- /**
828
- * HTTP 403: Forbidden access, insufficient scope, or model not permitted.
829
- */
830
- declare class PermissionDeniedError extends APIStatusError {
831
- constructor(message?: string, options?: Omit<ConstructorParameters<typeof APIStatusError>[1], "status"> & {
832
- status?: number;
833
- });
834
- }
835
- /**
836
- * HTTP 404: Requested resource (app, user, credential, model) was not found.
837
- */
838
- declare class NotFoundError extends APIStatusError {
839
- constructor(message?: string, options?: Omit<ConstructorParameters<typeof APIStatusError>[1], "status"> & {
840
- status?: number;
841
- });
842
- }
843
- /**
844
- * HTTP 422: Request schema validation failure.
845
- */
846
- declare class UnprocessableEntityError extends APIStatusError {
847
- constructor(message?: string, options?: Omit<ConstructorParameters<typeof APIStatusError>[1], "status"> & {
848
- status?: number;
849
- });
850
- }
851
- /**
852
- * HTTP 429: Rate limit exceeded or quota exhausted.
853
- */
854
- declare class RateLimitError extends APIStatusError {
855
- constructor(message?: string, options?: Omit<ConstructorParameters<typeof APIStatusError>[1], "status"> & {
856
- status?: number;
857
- });
858
- }
859
- /**
860
- * HTTP 500, 502, 503, 504: Zorveus internal server or upstream gateway error.
861
- */
862
- declare class InternalServerError extends APIStatusError {
863
- constructor(message?: string, options?: Omit<ConstructorParameters<typeof APIStatusError>[1], "status"> & {
864
- status?: number;
865
- });
866
- }
867
- /**
868
- * Base class for Zorveus financial and business constraint errors.
869
- */
870
- declare class ZorveusBusinessError extends APIStatusError {
871
- constructor(message: string, options: {
872
- status: number;
873
- code?: string;
874
- param?: string;
875
- type?: string;
876
- headers?: Record<string, string>;
877
- rawBody?: unknown;
878
- });
879
- }
880
- /**
881
- * HTTP 402: Organization or product-user wallet balance is exhausted.
882
- */
883
- declare class InsufficientFundsError extends ZorveusBusinessError {
884
- constructor(message?: string, options?: Omit<ConstructorParameters<typeof ZorveusBusinessError>[1], "status"> & {
885
- status?: number;
886
- });
887
- }
888
- /**
889
- * HTTP 402/403: Monthly or daily spending cap reached for organization, app connection, or product user.
890
- */
891
- declare class CapExceededError extends ZorveusBusinessError {
892
- constructor(message?: string, options?: Omit<ConstructorParameters<typeof ZorveusBusinessError>[1], "status"> & {
893
- status?: number;
894
- });
895
- }
896
- /**
897
- * HTTP 403: Product user credit grant has expired.
898
- */
899
- declare class CreditGrantExpiredError extends ZorveusBusinessError {
900
- constructor(message?: string, options?: Omit<ConstructorParameters<typeof ZorveusBusinessError>[1], "status"> & {
901
- status?: number;
902
- });
903
- }
904
- /**
905
- * Factory that parses HTTP status code and response payload into the most specific ZorveusError subclass.
906
- */
907
- declare function createAPIError(status: number, body: unknown, headers?: Record<string, string>): APIStatusError;
908
-
909
721
  /**
910
722
  * Validates that a monetary value is a valid decimal string (e.g., "15.0000").
911
723
  * Financial safety rule: floating-point arithmetic is avoided for monetary amounts.
@@ -915,5 +727,9 @@ declare function isValidDecimalString(value: unknown): value is string;
915
727
  * Asserts that a given balance or monetary parameter is a valid decimal string.
916
728
  */
917
729
  declare function assertDecimalString(value: unknown, fieldName: string): string;
730
+ /** Formats a decimal string without converting the monetary value to a Number. */
731
+ declare function formatDecimalString(value: string, fractionDigits?: number): string;
732
+ /** Returns a percentage for display while keeping the decimal division in integer arithmetic. */
733
+ declare function decimalPercentage(numerator: string, denominator: string): number;
918
734
 
919
- export { APIConnectionError, APIStatusError, AuthenticationError, type AuthorizationUrlParams, type CallbackValidationOptions, type CallbackValidationResult, CapExceededError, type ChatCompletion, type ChatCompletionChoice, type ChatCompletionChunk, type ChatCompletionChunkChoice, type ChatCompletionChunkChoiceDelta, type ChatCompletionCreateParams, type ChatCompletionCreateParamsBase, type ChatCompletionCreateParamsNonStreaming, type ChatCompletionCreateParamsStreaming, type ChatCompletionRole, type ChatCompletionTool, type ChatCompletionUsage, type ChatMessage, type ChatMessageToolCall, type CreateProviderCredentialParams, type CreditGrant, CreditGrantExpiredError, type CreditGrantSource, type CreditGrantStatus, type EmbeddingCreateParams, type EmbeddingCreateResponse, type EmbeddingData, type EmbeddingUsage, type GetProductUserByExternalIdParams, type GetProductUserCreditSummaryByExternalIdParams, type GrantCreditByExternalIdParams, type GrantCreditParams, type GrantProductUserCreditsResponse, type InferenceKeyUsageResponse, InsufficientFundsError, InternalServerError, type ListCreditGrantsByExternalIdParams, type ListCreditGrantsParams, type ListProviderCredentialsParams, type Model, type ModelListParams, type ModelListResponse, NotFoundError, type OAuthTokenResponse, type PKCEData, PermissionDeniedError, type ProductUser, type ProductUserCapResponse, type ProductUserCreditGrantListResponse, type ProductUserCreditGrantResponse, type ProductUserCreditSummaryResponse, type ProductUserListParams, type ProductUserListResponse, type ProductUserResponse, type ProductUserStatus, type ProductUserUsageMetrics, type ProductUserUsageSummary, type ProviderCredential, type ProviderCredentialListResponse, type ProviderCredentialProviderCatalogResponse, type ProviderCredentialProviderInfo, type ProviderCredentialResponse, type ProviderCredentialRoutingMode, type ProviderCredentialSecretKind, type ProviderCredentialStatus, RateLimitError, type RequestOptions, type RevokeProductUserCreditGrantResponse, type RotateProviderCredentialParams, type RotateProviderCredentialResponse, type TokenExchangeParams, type TokenRevocationParams, UnprocessableEntityError, type UpsertProductUserParams, type UpsertProductUserResponse, Zorveus, ZorveusBusinessError, type ZorveusClientOptions, ZorveusError, type ZorveusGatewayMetadata, type ZorveusGatewayProductUserMetadata, ZorveusInferenceClient, type ZorveusInferenceClientOptions, type ZorveusMetadata, ZorveusOAuth, ZorveusServiceClient, type ZorveusServiceClientOptions, assertDecimalString, createAPIError, formatGatewayMetadata, isValidDecimalString };
735
+ export { type AuthorizationUrlParams, type CachePricingFallbackReason, type CacheServiceTier, type CacheUsageBreakdownStatus, type CallbackValidationOptions, type CallbackValidationResult, type ChatCompletion, type ChatCompletionChoice, type ChatCompletionChunk, type ChatCompletionChunkChoice, type ChatCompletionChunkChoiceDelta, type ChatCompletionCreateParams, type ChatCompletionCreateParamsBase, type ChatCompletionCreateParamsNonStreaming, type ChatCompletionCreateParamsStreaming, type ChatCompletionRole, type ChatCompletionTool, type ChatCompletionUsage, type ChatMessage, type ChatMessageToolCall, type CreateProviderCredentialParams, type EmbeddingCreateParams, type EmbeddingCreateResponse, type EmbeddingData, type EmbeddingUsage, GetProductUserByExternalIdParams, GetProductUserCreditSummaryByExternalIdParams, GrantCreditByExternalIdParams, GrantCreditParams, GrantProductUserCreditsResponse, type InferenceKeyUsageResponse, ListCreditGrantsByExternalIdParams, ListCreditGrantsParams, type ListProviderCredentialsParams, type Model, type ModelListParams, type ModelListResponse, type OAuthTokenResponse, type PKCEData, ProductUserCreditGrantListResponse, ProductUserCreditSummaryResponse, ProductUserListParams, ProductUserListResponse, ProductUserResponse, type ProviderCredential, type ProviderCredentialListResponse, type ProviderCredentialProviderCatalogResponse, type ProviderCredentialProviderInfo, type ProviderCredentialResponse, type ProviderCredentialRoutingMode, type ProviderCredentialSecretKind, type ProviderCredentialStatus, type RequestOptions, RevokeProductUserCreditGrantResponse, type RotateProviderCredentialParams, type RotateProviderCredentialResponse, type TokenExchangeParams, type TokenRevocationParams, UpsertProductUserParams, UpsertProductUserResponse, type UsageBillingMode, type UsageEvent, type UsageEventListParams, type UsageEventListResponse, type UsageEventStatus, Zorveus, type ZorveusClientOptions, type ZorveusGatewayMetadata, type ZorveusGatewayProductUserMetadata, ZorveusInferenceClient, type ZorveusInferenceClientOptions, type ZorveusMetadata, ZorveusOAuth, ZorveusServiceClient, type ZorveusServiceClientOptions, assertDecimalString, decimalPercentage, formatDecimalString, formatGatewayMetadata, isValidDecimalString, normalInputTokens };