@shipstatic/types 0.8.8 → 0.8.9

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
@@ -586,14 +586,13 @@ export interface DeploymentUploadOptions {
586
586
  /** Client identifier (e.g., 'cli', 'sdk', 'web') */
587
587
  via?: string;
588
588
  /**
589
- * Optional password that gates public access to this deployment.
589
+ * Optional password that protects this deployment.
590
590
  *
591
591
  * Length: {@link PASSWORD_CONSTRAINTS.MIN_LENGTH} to
592
- * {@link PASSWORD_CONSTRAINTS.MAX_LENGTH} characters. Plaintext on the wire;
593
- * the API hashes it once (SHA-256) and stores the hex digest. The Router
594
- * serves a lock page to visitors who don't present the matching cookie. If
595
- * the deployment is linked to a custom domain, the same gate applies there
596
- * too. Revocation is redeployment.
592
+ * {@link PASSWORD_CONSTRAINTS.MAX_LENGTH} characters; whitespace is
593
+ * significant. Visitors are prompted to enter the password before they can
594
+ * view the deployment including on any custom domains pointing at it.
595
+ * To remove protection, redeploy without a password.
597
596
  */
598
597
  password?: string;
599
598
  /** @internal Trigger server-side build. Only available via /upload endpoint. */
@@ -924,12 +923,9 @@ export declare function serializeLabels(labels: string[] | undefined): string |
924
923
  */
925
924
  export declare function deserializeLabels(labelsJson: string | null): string[];
926
925
  /**
927
- * Deployment password validation constraints, shared across UI, SDK, and API.
928
- * Single source of truth for the length rule applied to the optional
929
- * `DeploymentUploadOptions.password` field.
930
- *
931
- * Plaintext is hashed once server-side (SHA-256) and never persisted in its
932
- * original form; see `cloudflare/shared/password.ts` for the protocol.
926
+ * Length constraints for the optional deployment password
927
+ * (`DeploymentUploadOptions.password`). Single source of truth shared across
928
+ * platform consumers.
933
929
  */
934
930
  export declare const PASSWORD_CONSTRAINTS: {
935
931
  /** Minimum password length in characters */
package/dist/index.js CHANGED
@@ -516,12 +516,9 @@ export function deserializeLabels(labelsJson) {
516
516
  // PASSWORD UTILITIES
517
517
  // =============================================================================
518
518
  /**
519
- * Deployment password validation constraints, shared across UI, SDK, and API.
520
- * Single source of truth for the length rule applied to the optional
521
- * `DeploymentUploadOptions.password` field.
522
- *
523
- * Plaintext is hashed once server-side (SHA-256) and never persisted in its
524
- * original form; see `cloudflare/shared/password.ts` for the protocol.
519
+ * Length constraints for the optional deployment password
520
+ * (`DeploymentUploadOptions.password`). Single source of truth shared across
521
+ * platform consumers.
525
522
  */
526
523
  export const PASSWORD_CONSTRAINTS = {
527
524
  /** Minimum password length in characters */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipstatic/types",
3
- "version": "0.8.8",
3
+ "version": "0.8.9",
4
4
  "description": "Shared types for ShipStatic platform",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
package/src/index.ts CHANGED
@@ -889,14 +889,13 @@ export interface DeploymentUploadOptions {
889
889
  /** Client identifier (e.g., 'cli', 'sdk', 'web') */
890
890
  via?: string;
891
891
  /**
892
- * Optional password that gates public access to this deployment.
892
+ * Optional password that protects this deployment.
893
893
  *
894
894
  * Length: {@link PASSWORD_CONSTRAINTS.MIN_LENGTH} to
895
- * {@link PASSWORD_CONSTRAINTS.MAX_LENGTH} characters. Plaintext on the wire;
896
- * the API hashes it once (SHA-256) and stores the hex digest. The Router
897
- * serves a lock page to visitors who don't present the matching cookie. If
898
- * the deployment is linked to a custom domain, the same gate applies there
899
- * too. Revocation is redeployment.
895
+ * {@link PASSWORD_CONSTRAINTS.MAX_LENGTH} characters; whitespace is
896
+ * significant. Visitors are prompted to enter the password before they can
897
+ * view the deployment including on any custom domains pointing at it.
898
+ * To remove protection, redeploy without a password.
900
899
  */
901
900
  password?: string;
902
901
  /** @internal Trigger server-side build. Only available via /upload endpoint. */
@@ -1369,12 +1368,9 @@ export function deserializeLabels(labelsJson: string | null): string[] {
1369
1368
  // =============================================================================
1370
1369
 
1371
1370
  /**
1372
- * Deployment password validation constraints, shared across UI, SDK, and API.
1373
- * Single source of truth for the length rule applied to the optional
1374
- * `DeploymentUploadOptions.password` field.
1375
- *
1376
- * Plaintext is hashed once server-side (SHA-256) and never persisted in its
1377
- * original form; see `cloudflare/shared/password.ts` for the protocol.
1371
+ * Length constraints for the optional deployment password
1372
+ * (`DeploymentUploadOptions.password`). Single source of truth shared across
1373
+ * platform consumers.
1378
1374
  */
1379
1375
  export const PASSWORD_CONSTRAINTS = {
1380
1376
  /** Minimum password length in characters */