@shipstatic/types 0.3.7 → 0.3.9

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/README.md CHANGED
@@ -48,7 +48,7 @@ interface Account {
48
48
  email: string; // User email address
49
49
  name: string; // User display name
50
50
  picture?: string; // Profile picture URL
51
- plan: 'free' | 'active' | 'suspended'; // Account plan status
51
+ plan: 'free' | 'standard' | 'sponsored' | 'enterprise' | 'suspended' | 'terminating' | 'terminated'; // Account plan status
52
52
  created: number; // Unix timestamp (seconds)
53
53
  }
54
54
  ```
package/dist/index.d.ts CHANGED
@@ -147,7 +147,7 @@ export interface TokenCreateResponse {
147
147
  */
148
148
  export declare const AccountPlan: {
149
149
  readonly FREE: "free";
150
- readonly PAID: "paid";
150
+ readonly STANDARD: "standard";
151
151
  readonly SPONSORED: "sponsored";
152
152
  readonly ENTERPRISE: "enterprise";
153
153
  readonly SUSPENDED: "suspended";
@@ -303,6 +303,7 @@ export declare const AuthMethod: {
303
303
  readonly API_KEY: "apiKey";
304
304
  readonly TOKEN: "token";
305
305
  readonly WEBHOOK: "webhook";
306
+ readonly SYSTEM: "system";
306
307
  };
307
308
  export type AuthMethodType = typeof AuthMethod[keyof typeof AuthMethod];
308
309
  export declare const DEPLOYMENT_CONFIG_FILENAME = "ship.json";
@@ -466,13 +467,6 @@ export interface CheckoutSession {
466
467
  /** Creem checkout session ID */
467
468
  checkoutId: string;
468
469
  }
469
- /**
470
- * Subscription sync request body for POST /subscriptions/sync
471
- */
472
- export interface SubscriptionSyncRequest {
473
- /** Creem subscription ID received after checkout */
474
- subscriptionId: string;
475
- }
476
470
  /**
477
471
  * Subscription resource interface - the contract all implementations must follow
478
472
  *
package/dist/index.js CHANGED
@@ -34,7 +34,7 @@ export const DomainStatus = {
34
34
  */
35
35
  export const AccountPlan = {
36
36
  FREE: 'free',
37
- PAID: 'paid',
37
+ STANDARD: 'standard',
38
38
  SPONSORED: 'sponsored',
39
39
  ENTERPRISE: 'enterprise',
40
40
  SUSPENDED: 'suspended',
@@ -194,7 +194,8 @@ export const AuthMethod = {
194
194
  JWT: 'jwt',
195
195
  API_KEY: 'apiKey',
196
196
  TOKEN: 'token',
197
- WEBHOOK: 'webhook'
197
+ WEBHOOK: 'webhook',
198
+ SYSTEM: 'system'
198
199
  };
199
200
  // Deployment Configuration
200
201
  export const DEPLOYMENT_CONFIG_FILENAME = 'ship.json';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipstatic/types",
3
- "version": "0.3.7",
3
+ "version": "0.3.9",
4
4
  "description": "Shared types for Shipstatic platform",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
package/src/index.ts CHANGED
@@ -177,7 +177,7 @@ export interface TokenCreateResponse {
177
177
  */
178
178
  export const AccountPlan = {
179
179
  FREE: 'free',
180
- PAID: 'paid',
180
+ STANDARD: 'standard',
181
181
  SPONSORED: 'sponsored',
182
182
  ENTERPRISE: 'enterprise',
183
183
  SUSPENDED: 'suspended',
@@ -467,7 +467,8 @@ export const AuthMethod = {
467
467
  JWT: 'jwt',
468
468
  API_KEY: 'apiKey',
469
469
  TOKEN: 'token',
470
- WEBHOOK: 'webhook'
470
+ WEBHOOK: 'webhook',
471
+ SYSTEM: 'system'
471
472
  } as const;
472
473
 
473
474
  export type AuthMethodType = typeof AuthMethod[keyof typeof AuthMethod];
@@ -718,14 +719,6 @@ export interface CheckoutSession {
718
719
  checkoutId: string;
719
720
  }
720
721
 
721
- /**
722
- * Subscription sync request body for POST /subscriptions/sync
723
- */
724
- export interface SubscriptionSyncRequest {
725
- /** Creem subscription ID received after checkout */
726
- subscriptionId: string;
727
- }
728
-
729
722
  /**
730
723
  * Subscription resource interface - the contract all implementations must follow
731
724
  *