@vertracloud/api-types 0.0.39 → 0.0.40

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vertracloud/api-types",
3
- "version": "0.0.39",
3
+ "version": "0.0.40",
4
4
  "private": false,
5
5
  "description": "Typings for Vertra Cloud API",
6
6
  "homepage": "https://github.com/vertracloud/api-types#readme",
@@ -4,7 +4,7 @@ import { ISODateString } from '../../common/v1.js';
4
4
  interface APICreditCompute {
5
5
  free: number;
6
6
  paid: number;
7
- free_per_month: number;
7
+ free_per_week: number;
8
8
  free_reset_at: ISODateString;
9
9
  paid_expires_at: ISODateString | null;
10
10
  }
@@ -12,7 +12,7 @@ interface APICreditCompute {
12
12
  interface APICreditAI {
13
13
  free: number;
14
14
  paid: number;
15
- free_per_month: number;
15
+ free_per_week: number;
16
16
  free_reset_at: ISODateString;
17
17
  paid_expires_at: ISODateString | null;
18
18
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["credits.ts"],"sourcesContent":["import type { ISODateString } from \"../../v1\";\n\n/** Compute credit balance (for running apps/databases) */\nexport interface APICreditCompute {\n\tfree: number;\n\tpaid: number;\n\tfree_per_month: number;\n\tfree_reset_at: ISODateString;\n\tpaid_expires_at: ISODateString | null;\n}\n\n/** AI credit balance (for AI features) */\nexport interface APICreditAI {\n\tfree: number;\n\tpaid: number;\n\tfree_per_month: number;\n\tfree_reset_at: ISODateString;\n\tpaid_expires_at: ISODateString | null;\n}\n\n/**\n * User credits summary returned in GET /v1/users/@me\n */\nexport interface APIUserCredits {\n\tcompute: APICreditCompute;\n\tai: APICreditAI;\n}\n\n/**\n * Full credit balance returned by GET /v1/credits/balance\n */\nexport interface APICreditBalance {\n\tcompute: APICreditCompute;\n\tai: APICreditAI;\n}\n\n/**\n * Single credit usage entry returned by GET /v1/credits/usage\n */\nexport interface APICreditUsage {\n\tid: string;\n\tresource_id: string;\n\tresource_type: \"app\" | \"database\" | \"ai\";\n\tresource_name: string | null;\n\tcredit_type: \"free\" | \"paid\" | \"ai_free\" | \"ai_paid\";\n\tamount: number;\n\tdescription: string | null;\n\tcreated_at: ISODateString;\n}\n\n/**\n * Cost estimation returned by GET /v1/credits/cost?ram={mb}\n */\nexport interface APICreditCostEstimate {\n\tram_mb: number;\n\tcost_per_day: number;\n\tcost_per_week: number;\n\tcost_per_month: number;\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
1
+ {"version":3,"sources":["credits.ts"],"sourcesContent":["import type { ISODateString } from \"../../v1\";\n\n/** Compute credit balance (for running apps/databases) */\nexport interface APICreditCompute {\n\tfree: number;\n\tpaid: number;\n\tfree_per_week: number;\n\tfree_reset_at: ISODateString;\n\tpaid_expires_at: ISODateString | null;\n}\n\n/** AI credit balance (for AI features) */\nexport interface APICreditAI {\n\tfree: number;\n\tpaid: number;\n\tfree_per_week: number;\n\tfree_reset_at: ISODateString;\n\tpaid_expires_at: ISODateString | null;\n}\n\n/**\n * User credits summary returned in GET /v1/users/@me\n */\nexport interface APIUserCredits {\n\tcompute: APICreditCompute;\n\tai: APICreditAI;\n}\n\n/**\n * Full credit balance returned by GET /v1/credits/balance\n */\nexport interface APICreditBalance {\n\tcompute: APICreditCompute;\n\tai: APICreditAI;\n}\n\n/**\n * Single credit usage entry returned by GET /v1/credits/usage\n */\nexport interface APICreditUsage {\n\tid: string;\n\tresource_id: string;\n\tresource_type: \"app\" | \"database\" | \"ai\";\n\tresource_name: string | null;\n\tcredit_type: \"free\" | \"paid\" | \"ai_free\" | \"ai_paid\";\n\tamount: number;\n\tdescription: string | null;\n\tcreated_at: ISODateString;\n}\n\n/**\n * Cost estimation returned by GET /v1/credits/cost?ram={mb}\n */\nexport interface APICreditCostEstimate {\n\tram_mb: number;\n\tcost_per_day: number;\n\tcost_per_week: number;\n\tcost_per_month: number;\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}