@shipstatic/types 2.4.0-beta.0 → 2.4.2-beta.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/index.d.ts +9 -4
- package/package.json +1 -1
- package/src/index.ts +10 -3
package/dist/index.d.ts
CHANGED
|
@@ -258,8 +258,13 @@ export interface Account {
|
|
|
258
258
|
readonly activated: number | null;
|
|
259
259
|
/** Last 4 characters of the API key for identification, null when no key generated */
|
|
260
260
|
readonly hint: string | null;
|
|
261
|
-
/**
|
|
262
|
-
|
|
261
|
+
/**
|
|
262
|
+
* Unix timestamp (seconds) of the API key's last use, null when never
|
|
263
|
+
* used or no key generated. Optional on the type by the additive-evolution
|
|
264
|
+
* law: published SDK versions may predate the field, so consumers read it
|
|
265
|
+
* when present rather than forcing a lockstep SDK release.
|
|
266
|
+
*/
|
|
267
|
+
readonly used?: number | null;
|
|
263
268
|
/** Grace period expiration (unix seconds), null if no grace period active */
|
|
264
269
|
readonly grace: number | null;
|
|
265
270
|
}
|
|
@@ -858,11 +863,11 @@ export interface CheckoutSession {
|
|
|
858
863
|
* All activity event types logged in the system.
|
|
859
864
|
* Uses dot notation consistently: {resource}.{action}
|
|
860
865
|
*/
|
|
861
|
-
export type ActivityEvent = 'account.create' | 'account.update' | 'account.delete' | 'account.key.generate' | 'account.plan.paid' | 'account.plan.transition' | 'account.suspended' | 'deployment.create' | 'deployment.update' | 'deployment.delete' | 'deployment.claim' | 'deployment.flagged' | 'domain.create' | 'domain.update' | 'domain.delete' | 'domain.verify' | 'token.create' | 'token.consume' | 'admin.account.plan.update' | 'admin.account.ref.update' | 'admin.account.billing.update' | 'admin.account.labels.update' | 'admin.deployment.delete' | 'admin.domain.delete' | 'admin.billing.sync' | 'admin.billing.terminated' | 'admin.impersonate' | 'billing.active' | 'billing.canceled' | 'billing.paused' | 'billing.expired' | 'billing.paid' | 'billing.trialing' | 'billing.scheduled_cancel' | 'billing.unpaid' | 'billing.update' | 'billing.past_due' | 'refund.created' | 'dispute.created' | 'billing.sync' | 'billing.stale' | 'billing.race';
|
|
866
|
+
export type ActivityEvent = 'account.create' | 'account.update' | 'account.delete' | 'account.key.generate' | 'account.plan.paid' | 'account.plan.transition' | 'account.suspended' | 'deployment.create' | 'deployment.update' | 'deployment.delete' | 'deployment.claim' | 'deployment.flagged' | 'domain.create' | 'domain.update' | 'domain.delete' | 'domain.verify' | 'token.create' | 'token.consume' | 'token.delete' | 'admin.account.plan.update' | 'admin.account.ref.update' | 'admin.account.billing.update' | 'admin.account.labels.update' | 'admin.deployment.delete' | 'admin.domain.delete' | 'admin.billing.sync' | 'admin.billing.terminated' | 'admin.impersonate' | 'billing.active' | 'billing.canceled' | 'billing.paused' | 'billing.expired' | 'billing.paid' | 'billing.trialing' | 'billing.scheduled_cancel' | 'billing.unpaid' | 'billing.update' | 'billing.past_due' | 'refund.created' | 'dispute.created' | 'billing.sync' | 'billing.stale' | 'billing.race';
|
|
862
867
|
/**
|
|
863
868
|
* Activity events visible to users in the dashboard
|
|
864
869
|
*/
|
|
865
|
-
export type UserVisibleActivityEvent = 'account.create' | 'account.update' | 'account.delete' | 'account.key.generate' | 'account.plan.transition' | 'deployment.create' | 'deployment.update' | 'deployment.delete' | 'deployment.claim' | 'domain.create' | 'domain.update' | 'domain.delete' | 'domain.verify' | 'token.create' | 'token.consume';
|
|
870
|
+
export type UserVisibleActivityEvent = 'account.create' | 'account.update' | 'account.delete' | 'account.key.generate' | 'account.plan.transition' | 'deployment.create' | 'deployment.update' | 'deployment.delete' | 'deployment.claim' | 'domain.create' | 'domain.update' | 'domain.delete' | 'domain.verify' | 'token.create' | 'token.consume' | 'token.delete';
|
|
866
871
|
/**
|
|
867
872
|
* Activity record returned from the API
|
|
868
873
|
*/
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -295,8 +295,13 @@ export interface Account {
|
|
|
295
295
|
readonly activated: number | null;
|
|
296
296
|
/** Last 4 characters of the API key for identification, null when no key generated */
|
|
297
297
|
readonly hint: string | null;
|
|
298
|
-
/**
|
|
299
|
-
|
|
298
|
+
/**
|
|
299
|
+
* Unix timestamp (seconds) of the API key's last use, null when never
|
|
300
|
+
* used or no key generated. Optional on the type by the additive-evolution
|
|
301
|
+
* law: published SDK versions may predate the field, so consumers read it
|
|
302
|
+
* when present rather than forcing a lockstep SDK release.
|
|
303
|
+
*/
|
|
304
|
+
readonly used?: number | null;
|
|
300
305
|
/** Grace period expiration (unix seconds), null if no grace period active */
|
|
301
306
|
readonly grace: number | null;
|
|
302
307
|
}
|
|
@@ -1337,6 +1342,7 @@ export type ActivityEvent =
|
|
|
1337
1342
|
// Token events
|
|
1338
1343
|
| 'token.create'
|
|
1339
1344
|
| 'token.consume'
|
|
1345
|
+
| 'token.delete'
|
|
1340
1346
|
// Admin events (not user-visible)
|
|
1341
1347
|
| 'admin.account.plan.update'
|
|
1342
1348
|
| 'admin.account.ref.update'
|
|
@@ -1383,7 +1389,8 @@ export type UserVisibleActivityEvent =
|
|
|
1383
1389
|
| 'domain.delete'
|
|
1384
1390
|
| 'domain.verify'
|
|
1385
1391
|
| 'token.create'
|
|
1386
|
-
| 'token.consume'
|
|
1392
|
+
| 'token.consume'
|
|
1393
|
+
| 'token.delete';
|
|
1387
1394
|
|
|
1388
1395
|
/**
|
|
1389
1396
|
* Activity record returned from the API
|