@shipstatic/ship 2.4.0-beta.1 → 2.5.0-beta.1
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/THIRD-PARTY-LICENSES.md +1 -1
- package/dist/browser.d.ts +24 -12
- package/dist/browser.js.map +1 -1
- package/dist/cli.cjs.map +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +24 -12
- package/dist/index.d.ts +24 -12
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -610,15 +610,16 @@ interface Account {
|
|
|
610
610
|
*/
|
|
611
611
|
readonly used?: number | null;
|
|
612
612
|
/**
|
|
613
|
-
* True while the Stripe
|
|
613
|
+
* True while the Stripe Subscription's status is `past_due` and Stripe is
|
|
614
614
|
* still retrying the card. The plan is unchanged — the account keeps
|
|
615
615
|
* everything it has — so this is a banner, not a gate.
|
|
616
616
|
*
|
|
617
|
-
* A BOOLEAN rather than the status string: one fact for the console to
|
|
618
|
-
*
|
|
619
|
-
*
|
|
617
|
+
* A BOOLEAN rather than the status string: one fact for the console to act
|
|
618
|
+
* on. It carries STRIPE'S OWN WORD (`past_due` → `pastDue`) rather than a
|
|
619
|
+
* synonym, so no reader has to hold a translation; the full status string is
|
|
620
|
+
* mirrored on the account row for the operator surface.
|
|
620
621
|
*/
|
|
621
|
-
readonly
|
|
622
|
+
readonly pastDue: boolean;
|
|
622
623
|
}
|
|
623
624
|
/**
|
|
624
625
|
* Account as returned by `GET /account` — the entity plus how the request
|
|
@@ -1800,14 +1801,25 @@ interface PlansResponse {
|
|
|
1800
1801
|
readonly plans: readonly Plan[];
|
|
1801
1802
|
}
|
|
1802
1803
|
/**
|
|
1803
|
-
*
|
|
1804
|
-
*
|
|
1804
|
+
* The answer of `POST /billing/checkout` — Stripe's `Checkout.Session`,
|
|
1805
|
+
* projected to the one field a client needs.
|
|
1805
1806
|
*
|
|
1806
|
-
*
|
|
1807
|
-
*
|
|
1808
|
-
*
|
|
1807
|
+
* There is nothing else to return: the outcome arrives later, as a Stripe
|
|
1808
|
+
* webhook. It is its own type rather than a shape shared with
|
|
1809
|
+
* {@link BillingPortalSession} because Stripe has two distinct objects here,
|
|
1810
|
+
* and naming one of them for both would be the reader's translation to make.
|
|
1809
1811
|
*/
|
|
1810
|
-
interface
|
|
1812
|
+
interface CheckoutSession {
|
|
1813
|
+
/** Absolute URL to redirect the browser to. Single use, short-lived. */
|
|
1814
|
+
readonly url: string;
|
|
1815
|
+
}
|
|
1816
|
+
/**
|
|
1817
|
+
* The answer of `POST /billing/portal` — Stripe's `BillingPortal.Session`,
|
|
1818
|
+
* projected the same way. Identical in shape to {@link CheckoutSession} and
|
|
1819
|
+
* deliberately not merged with it: they are two Stripe objects, and either may
|
|
1820
|
+
* gain a field the other never has.
|
|
1821
|
+
*/
|
|
1822
|
+
interface BillingPortalSession {
|
|
1811
1823
|
/** Absolute URL to redirect the browser to. Single use, short-lived. */
|
|
1812
1824
|
readonly url: string;
|
|
1813
1825
|
}
|
|
@@ -3008,6 +3020,6 @@ declare class Ship extends Ship$1 {
|
|
|
3008
3020
|
}
|
|
3009
3021
|
|
|
3010
3022
|
declare namespace Ship {
|
|
3011
|
-
export { API_KEY, API_PATHS, AUTH_BASE_PATH, Account, AccountDeleteResponse, AccountGetResponse, AccountKeyResponse, AccountPlan, AccountPlanType, AccountResource, Activity, ActivityEvent, ActivityListResponse, ActivityMeta, ApiDeployOptions, ApiHttp, ApiHttpOptions, AuthMethod, AuthMethodType, BillingInterval, BillingSyncResponse, CALLER, Caps, DEFAULT_API, DEPLOYMENT_CONFIG_FILENAME, DEPLOY_FIELDS, DEPLOY_TOKEN, DeployBodyContext, DeployFile, DeployInput, DeployTransport, Deployment, DeploymentCreateResponse, DeploymentDeleteResponse, DeploymentListResponse, DeploymentOptions, DeploymentResource, DeploymentResourceContext, DeploymentSetOptions, DeploymentStatus, DeploymentStatusType, DeploymentUploadOptions, DeploymentVia, DeploymentViaType, DnsLookup, DnsProvider, DnsRecord, DnsRecordType, Domain, DomainDeleteResponse, DomainDnsResponse, DomainListResponse, DomainRecordsResponse, DomainResource, DomainSetOptions, DomainSetResult, DomainShareResponse, DomainStatus, DomainStatusType, DomainValidateResponse, DomainVerifyResponse, ErrorResponse, ErrorType, ExecutionEnvironment, FileValidationStatus as FILE_VALIDATION_STATUS, Fetch, FileValidationResult, FileValidationStatus, FileValidationStatusType, IDEMPOTENCY_KEY_CONSTRAINTS, JUNK_DIRECTORIES, LABEL_CONSTRAINTS, LABEL_PATTERN, LabelsResponse, ListOptions, ListResponse, MD5Result, MY_API_KEY_URL, OAUTH_TOKEN, OAuthScope, OAuthScopeType, PASSWORD_CONSTRAINTS, PUBLIC_DEPLOYMENT_TTL_SECONDS, PingResponse, Plan, PlansResponse, PlatformLimits, RequestResult, ResourceContext, SHIP_ENV, SIGN_IN_RETURN_PARAM, SPACheckDebug, SPACheckRequest, SPACheckResponse, SPA_CHECK_CONSTRAINTS, SPA_DEFAULT_CONFIG, SetupInstructionsResponse, ShipClientOptions, ShipError, ShipEvents, ShipRequestInit, StaticFile,
|
|
3023
|
+
export { API_KEY, API_PATHS, AUTH_BASE_PATH, Account, AccountDeleteResponse, AccountGetResponse, AccountKeyResponse, AccountPlan, AccountPlanType, AccountResource, Activity, ActivityEvent, ActivityListResponse, ActivityMeta, ApiDeployOptions, ApiHttp, ApiHttpOptions, AuthMethod, AuthMethodType, BillingInterval, BillingPortalSession, BillingSyncResponse, CALLER, Caps, CheckoutSession, DEFAULT_API, DEPLOYMENT_CONFIG_FILENAME, DEPLOY_FIELDS, DEPLOY_TOKEN, DeployBodyContext, DeployFile, DeployInput, DeployTransport, Deployment, DeploymentCreateResponse, DeploymentDeleteResponse, DeploymentListResponse, DeploymentOptions, DeploymentResource, DeploymentResourceContext, DeploymentSetOptions, DeploymentStatus, DeploymentStatusType, DeploymentUploadOptions, DeploymentVia, DeploymentViaType, DnsLookup, DnsProvider, DnsRecord, DnsRecordType, Domain, DomainDeleteResponse, DomainDnsResponse, DomainListResponse, DomainRecordsResponse, DomainResource, DomainSetOptions, DomainSetResult, DomainShareResponse, DomainStatus, DomainStatusType, DomainValidateResponse, DomainVerifyResponse, ErrorResponse, ErrorType, ExecutionEnvironment, FileValidationStatus as FILE_VALIDATION_STATUS, Fetch, FileValidationResult, FileValidationStatus, FileValidationStatusType, IDEMPOTENCY_KEY_CONSTRAINTS, JUNK_DIRECTORIES, LABEL_CONSTRAINTS, LABEL_PATTERN, LabelsResponse, ListOptions, ListResponse, MD5Result, MY_API_KEY_URL, OAUTH_TOKEN, OAuthScope, OAuthScopeType, PASSWORD_CONSTRAINTS, PUBLIC_DEPLOYMENT_TTL_SECONDS, PingResponse, Plan, PlansResponse, PlatformLimits, RequestResult, ResourceContext, SHIP_ENV, SIGN_IN_RETURN_PARAM, SPACheckDebug, SPACheckRequest, SPACheckResponse, SPA_CHECK_CONSTRAINTS, SPA_DEFAULT_CONFIG, SetupInstructionsResponse, ShipClientOptions, ShipError, ShipEvents, ShipRequestInit, StaticFile, TTL_CONSTRAINTS, Token, TokenCreateOptions, TokenCreateResponse, TokenDeleteResponse, TokenKind, TokenKindType, TokenListResponse, TokenProvider, TokenResource, Transport, UNBUILT_PROJECT_MARKERS, UNSAFE_FILENAME_CHARS, UploadedFile, UserVisibleActivityEvent, ValidatableFile, ValidationIssue, WEB_FILE_ACCEPT, __setTestEnvironment, allValidFilesReady, assertShipJsonSyntax, calculateMD5, classifyToken, createAccountResource, createDeploymentResource, createDomainResource, createTokenResource, deserializeLabels, extractSubdomain, filterJunk, formatFileSize, generateDeploymentUrl, generateDomainUrl, getENV, getValidFiles, hasUnbuiltMarker, hasUnsafeChars, isBlockedExtension, isCustomDomain, isDeployment, isPlatformDomain, isShipError, normalizeVia, optimizeDeployPaths, pluralize, processFilesForNode, readBearerValue, serializeLabels, validateApiKey, validateApiUrl, validateCaller, validateDeployFile, validateDeployPath, validateDeployToken, validateFileName, validateFiles, validateIdempotencyKey, validateOAuthToken, validatePassword, validateToken, validateTtl };
|
|
3012
3024
|
}
|
|
3013
3025
|
export = Ship;
|
package/dist/index.d.ts
CHANGED
|
@@ -610,15 +610,16 @@ interface Account {
|
|
|
610
610
|
*/
|
|
611
611
|
readonly used?: number | null;
|
|
612
612
|
/**
|
|
613
|
-
* True while the Stripe
|
|
613
|
+
* True while the Stripe Subscription's status is `past_due` and Stripe is
|
|
614
614
|
* still retrying the card. The plan is unchanged — the account keeps
|
|
615
615
|
* everything it has — so this is a banner, not a gate.
|
|
616
616
|
*
|
|
617
|
-
* A BOOLEAN rather than the status string: one fact for the console to
|
|
618
|
-
*
|
|
619
|
-
*
|
|
617
|
+
* A BOOLEAN rather than the status string: one fact for the console to act
|
|
618
|
+
* on. It carries STRIPE'S OWN WORD (`past_due` → `pastDue`) rather than a
|
|
619
|
+
* synonym, so no reader has to hold a translation; the full status string is
|
|
620
|
+
* mirrored on the account row for the operator surface.
|
|
620
621
|
*/
|
|
621
|
-
readonly
|
|
622
|
+
readonly pastDue: boolean;
|
|
622
623
|
}
|
|
623
624
|
/**
|
|
624
625
|
* Account as returned by `GET /account` — the entity plus how the request
|
|
@@ -1800,14 +1801,25 @@ interface PlansResponse {
|
|
|
1800
1801
|
readonly plans: readonly Plan[];
|
|
1801
1802
|
}
|
|
1802
1803
|
/**
|
|
1803
|
-
*
|
|
1804
|
-
*
|
|
1804
|
+
* The answer of `POST /billing/checkout` — Stripe's `Checkout.Session`,
|
|
1805
|
+
* projected to the one field a client needs.
|
|
1805
1806
|
*
|
|
1806
|
-
*
|
|
1807
|
-
*
|
|
1808
|
-
*
|
|
1807
|
+
* There is nothing else to return: the outcome arrives later, as a Stripe
|
|
1808
|
+
* webhook. It is its own type rather than a shape shared with
|
|
1809
|
+
* {@link BillingPortalSession} because Stripe has two distinct objects here,
|
|
1810
|
+
* and naming one of them for both would be the reader's translation to make.
|
|
1809
1811
|
*/
|
|
1810
|
-
interface
|
|
1812
|
+
interface CheckoutSession {
|
|
1813
|
+
/** Absolute URL to redirect the browser to. Single use, short-lived. */
|
|
1814
|
+
readonly url: string;
|
|
1815
|
+
}
|
|
1816
|
+
/**
|
|
1817
|
+
* The answer of `POST /billing/portal` — Stripe's `BillingPortal.Session`,
|
|
1818
|
+
* projected the same way. Identical in shape to {@link CheckoutSession} and
|
|
1819
|
+
* deliberately not merged with it: they are two Stripe objects, and either may
|
|
1820
|
+
* gain a field the other never has.
|
|
1821
|
+
*/
|
|
1822
|
+
interface BillingPortalSession {
|
|
1811
1823
|
/** Absolute URL to redirect the browser to. Single use, short-lived. */
|
|
1812
1824
|
readonly url: string;
|
|
1813
1825
|
}
|
|
@@ -3007,4 +3019,4 @@ declare class Ship extends Ship$1 {
|
|
|
3007
3019
|
protected processInput(input: DeployInput, options: DeploymentOptions): Promise<StaticFile[]>;
|
|
3008
3020
|
}
|
|
3009
3021
|
|
|
3010
|
-
export { API_KEY, API_PATHS, AUTH_BASE_PATH, type Account, type AccountDeleteResponse, type AccountGetResponse, type AccountKeyResponse, AccountPlan, type AccountPlanType, type AccountResource, type Activity, type ActivityEvent, type ActivityListResponse, type ActivityMeta, type ApiDeployOptions, ApiHttp, type ApiHttpOptions, AuthMethod, type AuthMethodType, type BillingInterval, type BillingSyncResponse, CALLER, type Caps, DEFAULT_API, DEPLOYMENT_CONFIG_FILENAME, DEPLOY_FIELDS, DEPLOY_TOKEN, type DeployBodyContext, type DeployFile, type DeployInput, type DeployTransport, type Deployment, type DeploymentCreateResponse, type DeploymentDeleteResponse, type DeploymentListResponse, type DeploymentOptions, type DeploymentResource, type DeploymentResourceContext, type DeploymentSetOptions, DeploymentStatus, type DeploymentStatusType, type DeploymentUploadOptions, DeploymentVia, type DeploymentViaType, type DnsLookup, type DnsProvider, type DnsRecord, type DnsRecordType, type Domain, type DomainDeleteResponse, type DomainDnsResponse, type DomainListResponse, type DomainRecordsResponse, type DomainResource, type DomainSetOptions, type DomainSetResult, type DomainShareResponse, DomainStatus, type DomainStatusType, type DomainValidateResponse, type DomainVerifyResponse, type ErrorResponse, ErrorType, type ExecutionEnvironment, FileValidationStatus as FILE_VALIDATION_STATUS, type Fetch, type FileValidationResult, FileValidationStatus, type FileValidationStatusType, IDEMPOTENCY_KEY_CONSTRAINTS, JUNK_DIRECTORIES, LABEL_CONSTRAINTS, LABEL_PATTERN, type LabelsResponse, type ListOptions, type ListResponse, type MD5Result, MY_API_KEY_URL, OAUTH_TOKEN, OAuthScope, type OAuthScopeType, PASSWORD_CONSTRAINTS, PUBLIC_DEPLOYMENT_TTL_SECONDS, type PingResponse, type Plan, type PlansResponse, type PlatformLimits, type RequestResult, type ResourceContext, SHIP_ENV, SIGN_IN_RETURN_PARAM, type SPACheckDebug, type SPACheckRequest, type SPACheckResponse, SPA_CHECK_CONSTRAINTS, SPA_DEFAULT_CONFIG, type SetupInstructionsResponse, Ship, type ShipClientOptions, ShipError, type ShipEvents, type ShipRequestInit, type StaticFile,
|
|
3022
|
+
export { API_KEY, API_PATHS, AUTH_BASE_PATH, type Account, type AccountDeleteResponse, type AccountGetResponse, type AccountKeyResponse, AccountPlan, type AccountPlanType, type AccountResource, type Activity, type ActivityEvent, type ActivityListResponse, type ActivityMeta, type ApiDeployOptions, ApiHttp, type ApiHttpOptions, AuthMethod, type AuthMethodType, type BillingInterval, type BillingPortalSession, type BillingSyncResponse, CALLER, type Caps, type CheckoutSession, DEFAULT_API, DEPLOYMENT_CONFIG_FILENAME, DEPLOY_FIELDS, DEPLOY_TOKEN, type DeployBodyContext, type DeployFile, type DeployInput, type DeployTransport, type Deployment, type DeploymentCreateResponse, type DeploymentDeleteResponse, type DeploymentListResponse, type DeploymentOptions, type DeploymentResource, type DeploymentResourceContext, type DeploymentSetOptions, DeploymentStatus, type DeploymentStatusType, type DeploymentUploadOptions, DeploymentVia, type DeploymentViaType, type DnsLookup, type DnsProvider, type DnsRecord, type DnsRecordType, type Domain, type DomainDeleteResponse, type DomainDnsResponse, type DomainListResponse, type DomainRecordsResponse, type DomainResource, type DomainSetOptions, type DomainSetResult, type DomainShareResponse, DomainStatus, type DomainStatusType, type DomainValidateResponse, type DomainVerifyResponse, type ErrorResponse, ErrorType, type ExecutionEnvironment, FileValidationStatus as FILE_VALIDATION_STATUS, type Fetch, type FileValidationResult, FileValidationStatus, type FileValidationStatusType, IDEMPOTENCY_KEY_CONSTRAINTS, JUNK_DIRECTORIES, LABEL_CONSTRAINTS, LABEL_PATTERN, type LabelsResponse, type ListOptions, type ListResponse, type MD5Result, MY_API_KEY_URL, OAUTH_TOKEN, OAuthScope, type OAuthScopeType, PASSWORD_CONSTRAINTS, PUBLIC_DEPLOYMENT_TTL_SECONDS, type PingResponse, type Plan, type PlansResponse, type PlatformLimits, type RequestResult, type ResourceContext, SHIP_ENV, SIGN_IN_RETURN_PARAM, type SPACheckDebug, type SPACheckRequest, type SPACheckResponse, SPA_CHECK_CONSTRAINTS, SPA_DEFAULT_CONFIG, type SetupInstructionsResponse, Ship, type ShipClientOptions, ShipError, type ShipEvents, type ShipRequestInit, type StaticFile, TTL_CONSTRAINTS, type Token, type TokenCreateOptions, type TokenCreateResponse, type TokenDeleteResponse, TokenKind, type TokenKindType, type TokenListResponse, type TokenProvider, type TokenResource, type Transport, UNBUILT_PROJECT_MARKERS, UNSAFE_FILENAME_CHARS, type UploadedFile, type UserVisibleActivityEvent, type ValidatableFile, type ValidationIssue, WEB_FILE_ACCEPT, __setTestEnvironment, allValidFilesReady, assertShipJsonSyntax, calculateMD5, classifyToken, createAccountResource, createDeploymentResource, createDomainResource, createTokenResource, Ship as default, deserializeLabels, extractSubdomain, filterJunk, formatFileSize, generateDeploymentUrl, generateDomainUrl, getENV, getValidFiles, hasUnbuiltMarker, hasUnsafeChars, isBlockedExtension, isCustomDomain, isDeployment, isPlatformDomain, isShipError, normalizeVia, optimizeDeployPaths, pluralize, processFilesForNode, readBearerValue, serializeLabels, validateApiKey, validateApiUrl, validateCaller, validateDeployFile, validateDeployPath, validateDeployToken, validateFileName, validateFiles, validateIdempotencyKey, validateOAuthToken, validatePassword, validateToken, validateTtl };
|