@shipstatic/types 0.3.18 → 0.3.20

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.ts CHANGED
@@ -28,14 +28,16 @@ export interface Deployment {
28
28
  readonly config?: boolean;
29
29
  /** Optional array of tags for categorization and filtering (lowercase, alphanumeric with separators) */
30
30
  tags?: string[];
31
+ /** The client/tool used to create this deployment (e.g., 'web', 'sdk', 'cli') */
32
+ readonly via?: string;
31
33
  /** The deployment URL */
32
34
  readonly url: string;
33
35
  /** Unix timestamp (seconds) when deployment was created */
34
36
  readonly created: number;
35
37
  /** Unix timestamp (seconds) when deployment expires */
36
38
  expires?: number;
37
- /** Unix timestamp (seconds) when deployment was verified and ready */
38
- verified?: number;
39
+ /** Unix timestamp (seconds) when deployment was reviewed (content moderation) */
40
+ reviewed?: number;
39
41
  /** Short-lived JWT token for claiming this deployment (only present for public deployments) */
40
42
  claimToken?: string;
41
43
  }
@@ -77,8 +79,10 @@ export interface Domain {
77
79
  readonly created: number;
78
80
  /** Whether this was a create (201) or update (200) operation */
79
81
  readonly isCreate?: boolean;
80
- /** Unix timestamp (seconds) when domain was confirmed */
81
- confirmed?: number;
82
+ /** Unix timestamp (seconds) when domain was verified */
83
+ verified?: number;
84
+ /** Unix timestamp (seconds) when deployment binding last changed */
85
+ bound?: number;
82
86
  }
83
87
  /**
84
88
  * Response for listing domains
@@ -477,7 +481,7 @@ export interface DomainResource {
477
481
  get: (domainName: string) => Promise<Domain>;
478
482
  list: () => Promise<DomainListResponse>;
479
483
  remove: (domainName: string) => Promise<void>;
480
- confirm: (domainName: string) => Promise<{
484
+ verify: (domainName: string) => Promise<{
481
485
  message: string;
482
486
  }>;
483
487
  dns: (domainName: string) => Promise<DomainDnsResponse>;
@@ -557,11 +561,11 @@ export interface KeysResource {
557
561
  /**
558
562
  * All activity event types logged in the system
559
563
  */
560
- export type ActivityEvent = 'account_create' | 'account_update' | 'account_delete' | 'account_key_generate' | 'account_plan_paid' | 'account_plan_transition' | 'account_suspended' | 'deployment_create' | 'deployment_delete' | 'deployment_claim' | 'domain_create' | 'domain_update' | 'domain_delete' | 'domain_set' | 'domain_confirm' | 'token_create' | 'token_consume' | 'admin_account_plan_update' | 'admin_account_ref_update' | 'admin_account_billing_update' | 'admin_account_tags_update' | 'admin_deployment_delete' | 'admin_domain_delete' | 'billing_suspended' | 'billing_active' | 'billing_canceled' | 'billing_paused' | 'billing_expired' | 'billing_paid' | 'billing_trialing' | 'billing_scheduled_cancel' | 'billing_unpaid' | 'billing_update' | 'billing_past_due' | 'billing_terminated' | 'billing_manual_sync' | 'refund_created' | 'dispute_created';
564
+ export type ActivityEvent = 'account_create' | 'account_update' | 'account_delete' | 'account_key_generate' | 'account_plan_paid' | 'account_plan_transition' | 'account_suspended' | 'deployment_create' | 'deployment_delete' | 'deployment_claim' | 'domain_create' | 'domain_update' | 'domain_delete' | 'domain_set' | 'domain_verify' | 'token_create' | 'token_consume' | 'admin_account_plan_update' | 'admin_account_ref_update' | 'admin_account_billing_update' | 'admin_account_tags_update' | 'admin_deployment_delete' | 'admin_domain_delete' | 'billing_suspended' | 'billing_active' | 'billing_canceled' | 'billing_paused' | 'billing_expired' | 'billing_paid' | 'billing_trialing' | 'billing_scheduled_cancel' | 'billing_unpaid' | 'billing_update' | 'billing_past_due' | 'billing_terminated' | 'billing_manual_sync' | 'refund_created' | 'dispute_created';
561
565
  /**
562
566
  * Activity events visible to users in the dashboard
563
567
  */
564
- export type UserVisibleActivityEvent = 'account_create' | 'account_update' | 'account_delete' | 'account_key_generate' | 'account_plan_transition' | 'deployment_create' | 'deployment_delete' | 'deployment_claim' | 'domain_create' | 'domain_update' | 'domain_delete' | 'domain_set' | 'domain_confirm' | 'token_create' | 'token_consume';
568
+ export type UserVisibleActivityEvent = 'account_create' | 'account_update' | 'account_delete' | 'account_key_generate' | 'account_plan_transition' | 'deployment_create' | 'deployment_delete' | 'deployment_claim' | 'domain_create' | 'domain_update' | 'domain_delete' | 'domain_set' | 'domain_verify' | 'token_create' | 'token_consume';
565
569
  /**
566
570
  * Activity record returned from the API
567
571
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipstatic/types",
3
- "version": "0.3.18",
3
+ "version": "0.3.20",
4
4
  "description": "Shared types for Shipstatic platform",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
package/src/index.ts CHANGED
@@ -35,14 +35,16 @@ export interface Deployment {
35
35
  readonly config?: boolean;
36
36
  /** Optional array of tags for categorization and filtering (lowercase, alphanumeric with separators) */
37
37
  tags?: string[];
38
+ /** The client/tool used to create this deployment (e.g., 'web', 'sdk', 'cli') */
39
+ readonly via?: string;
38
40
  /** The deployment URL */
39
41
  readonly url: string;
40
42
  /** Unix timestamp (seconds) when deployment was created */
41
43
  readonly created: number;
42
44
  /** Unix timestamp (seconds) when deployment expires */
43
45
  expires?: number; // Mutable - can be updated
44
- /** Unix timestamp (seconds) when deployment was verified and ready */
45
- verified?: number; // Mutable - can be updated
46
+ /** Unix timestamp (seconds) when deployment was reviewed (content moderation) */
47
+ reviewed?: number; // Mutable - can be updated
46
48
  /** Short-lived JWT token for claiming this deployment (only present for public deployments) */
47
49
  claimToken?: string; // Mutable - can be updated
48
50
  }
@@ -93,8 +95,10 @@ export interface Domain {
93
95
  readonly created: number;
94
96
  /** Whether this was a create (201) or update (200) operation */
95
97
  readonly isCreate?: boolean;
96
- /** Unix timestamp (seconds) when domain was confirmed */
97
- confirmed?: number; // Mutable - can be updated
98
+ /** Unix timestamp (seconds) when domain was verified */
99
+ verified?: number; // Mutable - can be updated
100
+ /** Unix timestamp (seconds) when deployment binding last changed */
101
+ bound?: number;
98
102
  }
99
103
 
100
104
  /**
@@ -730,7 +734,7 @@ export interface DomainResource {
730
734
  get: (domainName: string) => Promise<Domain>;
731
735
  list: () => Promise<DomainListResponse>;
732
736
  remove: (domainName: string) => Promise<void>;
733
- confirm: (domainName: string) => Promise<{ message: string }>;
737
+ verify: (domainName: string) => Promise<{ message: string }>;
734
738
  dns: (domainName: string) => Promise<DomainDnsResponse>;
735
739
  records: (domainName: string) => Promise<DomainRecordsResponse>;
736
740
  share: (domainName: string) => Promise<{ domain: string; hash: string }>;
@@ -839,7 +843,7 @@ export type ActivityEvent =
839
843
  | 'domain_update'
840
844
  | 'domain_delete'
841
845
  | 'domain_set'
842
- | 'domain_confirm'
846
+ | 'domain_verify'
843
847
  // Token events
844
848
  | 'token_create'
845
849
  | 'token_consume'
@@ -883,7 +887,7 @@ export type UserVisibleActivityEvent =
883
887
  | 'domain_update'
884
888
  | 'domain_delete'
885
889
  | 'domain_set'
886
- | 'domain_confirm'
890
+ | 'domain_verify'
887
891
  | 'token_create'
888
892
  | 'token_consume';
889
893