@vxil/sdk 0.31.0 → 0.32.0
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 +12 -7
- package/dist/index.js +3 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1213,7 +1213,7 @@ export interface PublishedFile {
|
|
|
1213
1213
|
* `oauth_provider_unreachable` (502). */
|
|
1214
1214
|
export type OAuthSignInErrorCode = 'oauth_token_invalid' | 'oidc_domain_not_allowed' | 'oidc_link_only' | 'signup_not_allowed' | 'auth_method_disabled' | 'oauth_email_conflict' | 'oauth_provider_unconfigured' | 'oauth_provider_unreachable';
|
|
1215
1215
|
/** Why one id of a bulk publish was not published. */
|
|
1216
|
-
export type PublishErrorCode = 'not_found' | 'upload_incomplete' | 'content_type_not_publishable' | 'object_too_large' | 'quota_exceeded' | 'batch_budget_exceeded' | 'asset_taken_down' | 'publish_failed';
|
|
1216
|
+
export type PublishErrorCode = 'not_found' | 'upload_incomplete' | 'content_type_not_publishable' | 'object_too_large' | 'quota_exceeded' | 'batch_budget_exceeded' | 'asset_taken_down' | 'publish_failed' | 'object_rewritten';
|
|
1217
1217
|
/** A live shared link as listed by GET /v1/files/{id}/shared-links (guide ch. 6,
|
|
1218
1218
|
* files). `downloads` is the burn-on-read counter; `max_downloads` null =
|
|
1219
1219
|
* unlimited (1 = a one-time link). A link that hit its cap, expired, or was
|
|
@@ -2991,9 +2991,10 @@ export type EnabledVxil<S extends VxilSchemaShape> = Omit<Vxil<S>, DisabledFeatu
|
|
|
2991
2991
|
};
|
|
2992
2992
|
/** A cms collection's END-USER ACCESS mode (guide ch. 9): what a verified end
|
|
2993
2993
|
* user (thin-client key + session) may do on it — `'readwrite'` (default),
|
|
2994
|
-
* `'read'` (writes are `403 server_only`)
|
|
2995
|
-
* `403 server_only`)
|
|
2996
|
-
|
|
2994
|
+
* `'read'` (writes are `403 server_only`), `'none'` (reads and writes are
|
|
2995
|
+
* `403 server_only`) or `'read_all'` (every row is readable past the owner
|
|
2996
|
+
* field; writes stay owner-scoped). Server keys are never affected. */
|
|
2997
|
+
export type CmsEndUserAccess = 'readwrite' | 'read' | 'none' | 'read_all';
|
|
2997
2998
|
/** One config-declared per-record ACTION (guide ch. 4): a button on a record row
|
|
2998
2999
|
* that invokes the deployed tenant function `fn` ONCE with `{ collection,
|
|
2999
3000
|
* item_id, action, actor, item }`. Exactly one human-initiated step — no
|
|
@@ -7622,7 +7623,9 @@ export declare class Vxil<S extends VxilSchemaShape = VxilSchemaShape> {
|
|
|
7622
7623
|
* 404 charge_not_found; 422 charge_user_mismatch (another user's charge) /
|
|
7623
7624
|
* charge_refunded (the refund beat the grant — nothing to grant against).
|
|
7624
7625
|
* 422 reserved_idempotency_key when `idempotency_key` starts with
|
|
7625
|
-
* `purchase:` (the namespace of purchase passes).
|
|
7626
|
+
* `purchase:` (the namespace of purchase passes). Stacking: a grant whose
|
|
7627
|
+
* `until` reaches past a live same-tier manual row (a grant or a pass with
|
|
7628
|
+
* an end) starts where that row ends — `since` names that start. */
|
|
7626
7629
|
grantSubscription: (input: PaymentsSubjectBody & {
|
|
7627
7630
|
tier: string;
|
|
7628
7631
|
until?: string | null;
|
|
@@ -7634,8 +7637,10 @@ export declare class Vxil<S extends VxilSchemaShape = VxilSchemaShape> {
|
|
|
7634
7637
|
user_id: string;
|
|
7635
7638
|
tier: string;
|
|
7636
7639
|
status: string;
|
|
7637
|
-
/**
|
|
7638
|
-
*
|
|
7640
|
+
/** the grant row's start: the time it was written — or, when `until`
|
|
7641
|
+
* reaches past a live same-tier manual grant or pass, the end of that
|
|
7642
|
+
* window (the grant queues behind it like a purchase; `until` is yours,
|
|
7643
|
+
* never moved). A replay answers the first grant's. */
|
|
7639
7644
|
since?: string | null;
|
|
7640
7645
|
until: string | null;
|
|
7641
7646
|
charge_id: string | null;
|
package/dist/index.js
CHANGED
|
@@ -2976,7 +2976,9 @@ export class Vxil {
|
|
|
2976
2976
|
* 404 charge_not_found; 422 charge_user_mismatch (another user's charge) /
|
|
2977
2977
|
* charge_refunded (the refund beat the grant — nothing to grant against).
|
|
2978
2978
|
* 422 reserved_idempotency_key when `idempotency_key` starts with
|
|
2979
|
-
* `purchase:` (the namespace of purchase passes).
|
|
2979
|
+
* `purchase:` (the namespace of purchase passes). Stacking: a grant whose
|
|
2980
|
+
* `until` reaches past a live same-tier manual row (a grant or a pass with
|
|
2981
|
+
* an end) starts where that row ends — `since` names that start. */
|
|
2980
2982
|
grantSubscription: async (input) => (await this.call('POST', '/v1/payments/subscriptions/grant', input)).data,
|
|
2981
2983
|
/** SERVER-ONLY. Revoke a MANUAL grant now (409 not_manual for a provider
|
|
2982
2984
|
* subscription — use `cancel`). Never touches a provider. */
|
package/package.json
CHANGED