@shipstatic/types 0.5.3 → 0.5.4
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 +8 -4
- package/package.json +1 -1
- package/src/index.ts +8 -4
package/dist/index.d.ts
CHANGED
|
@@ -156,10 +156,12 @@ export interface DomainValidateResponse {
|
|
|
156
156
|
* Deployment token for automated deployments
|
|
157
157
|
*/
|
|
158
158
|
export interface Token {
|
|
159
|
-
/**
|
|
159
|
+
/** 7-char management identifier */
|
|
160
160
|
readonly token: string;
|
|
161
161
|
/** The account this token belongs to */
|
|
162
162
|
readonly account: string;
|
|
163
|
+
/** SHA256 hash of the raw credential (auth lookups only, never exposed to users) */
|
|
164
|
+
readonly hash: string;
|
|
163
165
|
/** IP address locking for security, null if not locked */
|
|
164
166
|
readonly ip: string | null;
|
|
165
167
|
/** Labels for categorization and filtering (lowercase, alphanumeric with separators). Always present, empty array when none. */
|
|
@@ -173,10 +175,10 @@ export interface Token {
|
|
|
173
175
|
}
|
|
174
176
|
/**
|
|
175
177
|
* Token as returned by the list endpoint.
|
|
176
|
-
*
|
|
178
|
+
* Shows 7-char management ID, omits account and hash.
|
|
177
179
|
*/
|
|
178
180
|
export interface TokenListItem {
|
|
179
|
-
/**
|
|
181
|
+
/** 7-char management identifier (e.g., "a1b2c3d") */
|
|
180
182
|
readonly token: string;
|
|
181
183
|
/** Labels for categorization and filtering. Always present, empty array when none. */
|
|
182
184
|
labels: string[];
|
|
@@ -200,8 +202,10 @@ export interface TokenListResponse {
|
|
|
200
202
|
* Response for token creation
|
|
201
203
|
*/
|
|
202
204
|
export interface TokenCreateResponse {
|
|
203
|
-
/**
|
|
205
|
+
/** 7-char management identifier */
|
|
204
206
|
token: string;
|
|
207
|
+
/** The raw credential value (shown once at creation, then never again) */
|
|
208
|
+
secret: string;
|
|
205
209
|
/** Labels for categorization and filtering. Always present, empty array when none. */
|
|
206
210
|
labels: string[];
|
|
207
211
|
/** Unix timestamp (seconds) when token expires, null for never */
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -182,10 +182,12 @@ export interface DomainValidateResponse {
|
|
|
182
182
|
* Deployment token for automated deployments
|
|
183
183
|
*/
|
|
184
184
|
export interface Token {
|
|
185
|
-
/**
|
|
185
|
+
/** 7-char management identifier */
|
|
186
186
|
readonly token: string;
|
|
187
187
|
/** The account this token belongs to */
|
|
188
188
|
readonly account: string;
|
|
189
|
+
/** SHA256 hash of the raw credential (auth lookups only, never exposed to users) */
|
|
190
|
+
readonly hash: string;
|
|
189
191
|
/** IP address locking for security, null if not locked */
|
|
190
192
|
readonly ip: string | null;
|
|
191
193
|
/** Labels for categorization and filtering (lowercase, alphanumeric with separators). Always present, empty array when none. */
|
|
@@ -200,10 +202,10 @@ export interface Token {
|
|
|
200
202
|
|
|
201
203
|
/**
|
|
202
204
|
* Token as returned by the list endpoint.
|
|
203
|
-
*
|
|
205
|
+
* Shows 7-char management ID, omits account and hash.
|
|
204
206
|
*/
|
|
205
207
|
export interface TokenListItem {
|
|
206
|
-
/**
|
|
208
|
+
/** 7-char management identifier (e.g., "a1b2c3d") */
|
|
207
209
|
readonly token: string;
|
|
208
210
|
/** Labels for categorization and filtering. Always present, empty array when none. */
|
|
209
211
|
labels: string[];
|
|
@@ -229,8 +231,10 @@ export interface TokenListResponse {
|
|
|
229
231
|
* Response for token creation
|
|
230
232
|
*/
|
|
231
233
|
export interface TokenCreateResponse {
|
|
232
|
-
/**
|
|
234
|
+
/** 7-char management identifier */
|
|
233
235
|
token: string;
|
|
236
|
+
/** The raw credential value (shown once at creation, then never again) */
|
|
237
|
+
secret: string;
|
|
234
238
|
/** Labels for categorization and filtering. Always present, empty array when none. */
|
|
235
239
|
labels: string[];
|
|
236
240
|
/** Unix timestamp (seconds) when token expires, null for never */
|