@shipstatic/types 2.17.0-beta.3 → 2.17.0-beta.5

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
@@ -1223,8 +1223,10 @@ export declare const SIGN_IN_RETURN_PARAM = "signing-in";
1223
1223
  * Client populations: `SESSION` (first-party cookie), `API_KEY` (`ship-`
1224
1224
  * key), `TOKEN` (`deploy-` deploy token), `AGENT` (anonymous public deploy —
1225
1225
  * no credential; the platform grants the public-account identity per
1226
- * request), `OAUTH` (delegated access token). Server populations: `WEBHOOK`
1227
- * (signed webhook processing), `SYSTEM` (scheduled/background jobs).
1226
+ * request), `OAUTH` (delegated access token). The one server population:
1227
+ * `SYSTEM` (scheduled/background jobs). Webhook receipt is deliberately not
1228
+ * a population: a signed delivery is verified, never authorized — it acts
1229
+ * as no one and audits as no one.
1228
1230
  */
1229
1231
  export declare const AuthMethod: {
1230
1232
  readonly SESSION: "session";
@@ -1232,7 +1234,6 @@ export declare const AuthMethod: {
1232
1234
  readonly TOKEN: "token";
1233
1235
  readonly AGENT: "agent";
1234
1236
  readonly OAUTH: "oauth";
1235
- readonly WEBHOOK: "webhook";
1236
1237
  readonly SYSTEM: "system";
1237
1238
  };
1238
1239
  export type AuthMethodType = (typeof AuthMethod)[keyof typeof AuthMethod];
@@ -1938,8 +1939,14 @@ export interface BillingSyncResponse {
1938
1939
  /**
1939
1940
  * All activity event types logged in the system.
1940
1941
  * Uses dot notation consistently: {resource}.{action}
1942
+ *
1943
+ * Retention: events are swept 90 days after creation unless they record
1944
+ * money, platform enforcement/access, or ownership transfer — those three
1945
+ * ledgers are permanent (and shed their IP at the same 90-day line).
1946
+ * Permanence is granted only in the retention sweep's own list, so a new
1947
+ * event added here is swept until granted there.
1941
1948
  */
1942
- export type ActivityEvent = 'account.create' | 'account.update' | 'account.delete' | 'account.key.generate' | 'account.plan.paid' | 'account.plan.transition' | 'deployment.create' | 'deployment.update' | 'deployment.delete' | 'deployment.claim' | 'deployment.flagged' | 'deployment.open' | 'domain.create' | 'domain.update' | 'domain.delete' | 'domain.verify' | 'token.create' | 'token.consume' | 'token.delete' | 'admin.account.plan.update' | 'admin.account.suspended.update' | 'admin.account.ref.update' | 'admin.account.labels.update' | 'admin.deployment.delete' | 'admin.domain.delete' | 'admin.impersonate';
1949
+ export type ActivityEvent = 'account.create' | 'account.update' | 'account.delete' | 'account.key.generate' | 'account.plan.transition' | 'deployment.create' | 'deployment.update' | 'deployment.delete' | 'deployment.claim' | 'deployment.flagged' | 'deployment.open' | 'domain.create' | 'domain.update' | 'domain.delete' | 'domain.verify' | 'token.create' | 'token.consume' | 'token.delete' | 'admin.account.plan.update' | 'admin.account.suspended.update' | 'admin.account.ref.update' | 'admin.account.labels.update' | 'admin.deployment.delete' | 'admin.domain.delete' | 'admin.impersonate';
1943
1950
  /**
1944
1951
  * Activity events visible to users in the dashboard
1945
1952
  */
package/dist/index.js CHANGED
@@ -1150,8 +1150,10 @@ export const SIGN_IN_RETURN_PARAM = 'signing-in';
1150
1150
  * Client populations: `SESSION` (first-party cookie), `API_KEY` (`ship-`
1151
1151
  * key), `TOKEN` (`deploy-` deploy token), `AGENT` (anonymous public deploy —
1152
1152
  * no credential; the platform grants the public-account identity per
1153
- * request), `OAUTH` (delegated access token). Server populations: `WEBHOOK`
1154
- * (signed webhook processing), `SYSTEM` (scheduled/background jobs).
1153
+ * request), `OAUTH` (delegated access token). The one server population:
1154
+ * `SYSTEM` (scheduled/background jobs). Webhook receipt is deliberately not
1155
+ * a population: a signed delivery is verified, never authorized — it acts
1156
+ * as no one and audits as no one.
1155
1157
  */
1156
1158
  export const AuthMethod = {
1157
1159
  SESSION: 'session',
@@ -1159,7 +1161,6 @@ export const AuthMethod = {
1159
1161
  TOKEN: 'token',
1160
1162
  AGENT: 'agent',
1161
1163
  OAUTH: 'oauth',
1162
- WEBHOOK: 'webhook',
1163
1164
  SYSTEM: 'system',
1164
1165
  };
1165
1166
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipstatic/types",
3
- "version": "2.17.0-beta.3",
3
+ "version": "2.17.0-beta.5",
4
4
  "description": "Shared types for ShipStatic platform",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
package/src/index.ts CHANGED
@@ -1898,8 +1898,10 @@ export const SIGN_IN_RETURN_PARAM = 'signing-in';
1898
1898
  * Client populations: `SESSION` (first-party cookie), `API_KEY` (`ship-`
1899
1899
  * key), `TOKEN` (`deploy-` deploy token), `AGENT` (anonymous public deploy —
1900
1900
  * no credential; the platform grants the public-account identity per
1901
- * request), `OAUTH` (delegated access token). Server populations: `WEBHOOK`
1902
- * (signed webhook processing), `SYSTEM` (scheduled/background jobs).
1901
+ * request), `OAUTH` (delegated access token). The one server population:
1902
+ * `SYSTEM` (scheduled/background jobs). Webhook receipt is deliberately not
1903
+ * a population: a signed delivery is verified, never authorized — it acts
1904
+ * as no one and audits as no one.
1903
1905
  */
1904
1906
  export const AuthMethod = {
1905
1907
  SESSION: 'session',
@@ -1907,7 +1909,6 @@ export const AuthMethod = {
1907
1909
  TOKEN: 'token',
1908
1910
  AGENT: 'agent',
1909
1911
  OAUTH: 'oauth',
1910
- WEBHOOK: 'webhook',
1911
1912
  SYSTEM: 'system',
1912
1913
  } as const;
1913
1914
 
@@ -2804,6 +2805,12 @@ export interface BillingSyncResponse {
2804
2805
  /**
2805
2806
  * All activity event types logged in the system.
2806
2807
  * Uses dot notation consistently: {resource}.{action}
2808
+ *
2809
+ * Retention: events are swept 90 days after creation unless they record
2810
+ * money, platform enforcement/access, or ownership transfer — those three
2811
+ * ledgers are permanent (and shed their IP at the same 90-day line).
2812
+ * Permanence is granted only in the retention sweep's own list, so a new
2813
+ * event added here is swept until granted there.
2807
2814
  */
2808
2815
  export type ActivityEvent =
2809
2816
  // Account events
@@ -2811,7 +2818,6 @@ export type ActivityEvent =
2811
2818
  | 'account.update'
2812
2819
  | 'account.delete'
2813
2820
  | 'account.key.generate'
2814
- | 'account.plan.paid'
2815
2821
  | 'account.plan.transition'
2816
2822
  // Deployment events
2817
2823
  | 'deployment.create'