@shipstatic/types 2.5.0-beta.2 → 2.5.0-beta.21

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
@@ -20,14 +20,24 @@ npm install @shipstatic/types
20
20
 
21
21
  ```typescript
22
22
  import type {
23
- Deployment, DeploymentListResponse,
24
- Domain, DomainSetResult, DomainListResponse, DnsRecord, DomainDnsResponse, DomainRecordsResponse, DomainValidateResponse,
25
- Token, TokenListItem, TokenListResponse, TokenCreateResponse,
26
- Account, AccountUsage, AccountOverrides,
23
+ ListResponse, ListOptions,
24
+ Deployment, DeploymentListResponse, DeploymentDeleteResponse, DeploymentSetOptions,
25
+ Domain, DomainSetResult, DomainSetOptions, DomainListResponse, DnsRecord, DnsLookup, DomainDnsResponse, DomainRecordsResponse, DomainShareResponse, DomainValidateResponse, DomainDeleteResponse, DomainVerifyResponse,
26
+ Token, TokenListResponse, TokenCreateResponse, TokenCreateOptions, TokenDeleteResponse,
27
+ Account, AccountUsage, AccountOverrides, AccountDeleteResponse, AccountKeyResponse,
28
+ LabelsResponse, SetupInstructionsResponse,
27
29
  StaticFile
28
30
  } from '@shipstatic/types';
31
+
32
+ // Every public path, declared once — the API mounts from it, clients request against it.
33
+ import { API_PATHS } from '@shipstatic/types';
29
34
  ```
30
35
 
36
+ A mutation answers with the resource it affected — the entity when it
37
+ survives, otherwise the `*DeleteResponse` shape: the resource noun carrying
38
+ the canonical key, plus the resource's own state field where the resource is
39
+ mid-transition. No `message`, no `success`, no constant flags.
40
+
31
41
  ### Error System
32
42
 
33
43
  ```typescript
@@ -82,7 +92,7 @@ import {
82
92
  DomainStatus, // pending | partial | success | paused
83
93
  AccountPlan, // free | standard | sponsored | enterprise | suspended | terminating | terminated
84
94
  FileValidationStatus, // pending | processing_error | excluded | validation_failed | ready
85
- AuthMethod, // jwt | apiKey | token | webhook | system
95
+ AuthMethod, // session | apiKey | token | agent | oauth | webhook | system
86
96
  } from '@shipstatic/types';
87
97
  ```
88
98
 
@@ -117,6 +127,7 @@ import type {
117
127
  import {
118
128
  validateApiKey,
119
129
  validateDeployToken,
130
+ validateIdempotencyKey,
120
131
  validateApiUrl,
121
132
  isDeployment,
122
133
  isBlockedExtension,
@@ -132,7 +143,6 @@ import type {
132
143
  FileValidationResult,
133
144
  ValidationIssue,
134
145
  UploadedFile,
135
- ProgressInfo,
136
146
  } from '@shipstatic/types';
137
147
  ```
138
148