@sogni-ai/sogni-client 5.1.0-alpha.2 → 5.1.0-alpha.3
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/CHANGELOG.md +7 -0
- package/dist/Account/subscription.types.d.ts +23 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist-esm/version.js +1 -1
- package/package.json +1 -1
- package/src/Account/subscription.types.ts +21 -2
- package/src/version.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [5.1.0-alpha.3](https://github.com/Sogni-AI/sogni-client/compare/v5.1.0-alpha.2...v5.1.0-alpha.3) (2026-06-10)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **subscription:** mirror term, google productId, and manual provider ([78b3114](https://github.com/Sogni-AI/sogni-client/commit/78b311457c71448578b8f561cc7865e7bcaf9f20))
|
|
7
|
+
|
|
1
8
|
# [5.1.0-alpha.2](https://github.com/Sogni-AI/sogni-client/compare/v5.1.0-alpha.1...v5.1.0-alpha.2) (2026-06-10)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -39,8 +39,17 @@ export interface SubscriptionEntitlementSnapshot {
|
|
|
39
39
|
status: SubscriptionStatus;
|
|
40
40
|
/** Plan/tier identifier, present when an entitlement exists. */
|
|
41
41
|
tier?: SubscriptionPlanId | string;
|
|
42
|
-
/**
|
|
43
|
-
|
|
42
|
+
/**
|
|
43
|
+
* Billing term (`'monthly'` / `'annual'`) for the effective entitlement,
|
|
44
|
+
* present when an entitlement exists. Provider-agnostic — returned for
|
|
45
|
+
* Stripe, Apple, and Google subscriptions alike.
|
|
46
|
+
*/
|
|
47
|
+
term?: SubscriptionTerm | string;
|
|
48
|
+
/**
|
|
49
|
+
* Payment provider, present when returned by the server. `'manual'` denotes
|
|
50
|
+
* an administratively granted subscription.
|
|
51
|
+
*/
|
|
52
|
+
provider?: 'stripe' | 'apple' | 'google' | 'manual' | string;
|
|
44
53
|
/** ISO timestamp for the current period start, when returned by the server. */
|
|
45
54
|
currentPeriodStart?: string;
|
|
46
55
|
/** ISO timestamp for the current or effective entitlement period end. */
|
|
@@ -118,6 +127,18 @@ export interface SubscriptionPlan {
|
|
|
118
127
|
priceUsd: number;
|
|
119
128
|
/** Human-readable label supplied by the server. */
|
|
120
129
|
displayName: string;
|
|
130
|
+
/**
|
|
131
|
+
* Google Play product configuration for this `(tier, term)`, present only
|
|
132
|
+
* when a Play subscription product is configured server-side. The
|
|
133
|
+
* `productId` is the public Play SKU a Trusted Web Activity / Android client
|
|
134
|
+
* passes to the Digital Goods API to start a Play Billing purchase. Absent
|
|
135
|
+
* for plans with no Play product (e.g. on web-only deployments). There is no
|
|
136
|
+
* Stripe/Apple analog: Stripe price ids are intentionally not exposed, and
|
|
137
|
+
* Apple SKUs are supplied by StoreKit rather than this catalog.
|
|
138
|
+
*/
|
|
139
|
+
google?: {
|
|
140
|
+
productId: string;
|
|
141
|
+
};
|
|
121
142
|
}
|
|
122
143
|
/**
|
|
123
144
|
* Options for `AccountApi.createSubscriptionCheckout`.
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const LIB_VERSION = "5.1.0-alpha.
|
|
1
|
+
export declare const LIB_VERSION = "5.1.0-alpha.3";
|
package/dist/version.js
CHANGED
|
@@ -3,5 +3,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.LIB_VERSION = void 0;
|
|
4
4
|
// AUTO-GENERATED by scripts/generate-version.mjs — do not edit.
|
|
5
5
|
// Source of truth: package.json version.
|
|
6
|
-
exports.LIB_VERSION = '5.1.0-alpha.
|
|
6
|
+
exports.LIB_VERSION = '5.1.0-alpha.3';
|
|
7
7
|
//# sourceMappingURL=version.js.map
|
package/dist-esm/version.js
CHANGED
package/package.json
CHANGED
|
@@ -55,8 +55,17 @@ export interface SubscriptionEntitlementSnapshot {
|
|
|
55
55
|
status: SubscriptionStatus;
|
|
56
56
|
/** Plan/tier identifier, present when an entitlement exists. */
|
|
57
57
|
tier?: SubscriptionPlanId | string;
|
|
58
|
-
/**
|
|
59
|
-
|
|
58
|
+
/**
|
|
59
|
+
* Billing term (`'monthly'` / `'annual'`) for the effective entitlement,
|
|
60
|
+
* present when an entitlement exists. Provider-agnostic — returned for
|
|
61
|
+
* Stripe, Apple, and Google subscriptions alike.
|
|
62
|
+
*/
|
|
63
|
+
term?: SubscriptionTerm | string;
|
|
64
|
+
/**
|
|
65
|
+
* Payment provider, present when returned by the server. `'manual'` denotes
|
|
66
|
+
* an administratively granted subscription.
|
|
67
|
+
*/
|
|
68
|
+
provider?: 'stripe' | 'apple' | 'google' | 'manual' | string;
|
|
60
69
|
/** ISO timestamp for the current period start, when returned by the server. */
|
|
61
70
|
currentPeriodStart?: string;
|
|
62
71
|
/** ISO timestamp for the current or effective entitlement period end. */
|
|
@@ -145,6 +154,16 @@ export interface SubscriptionPlan {
|
|
|
145
154
|
priceUsd: number;
|
|
146
155
|
/** Human-readable label supplied by the server. */
|
|
147
156
|
displayName: string;
|
|
157
|
+
/**
|
|
158
|
+
* Google Play product configuration for this `(tier, term)`, present only
|
|
159
|
+
* when a Play subscription product is configured server-side. The
|
|
160
|
+
* `productId` is the public Play SKU a Trusted Web Activity / Android client
|
|
161
|
+
* passes to the Digital Goods API to start a Play Billing purchase. Absent
|
|
162
|
+
* for plans with no Play product (e.g. on web-only deployments). There is no
|
|
163
|
+
* Stripe/Apple analog: Stripe price ids are intentionally not exposed, and
|
|
164
|
+
* Apple SKUs are supplied by StoreKit rather than this catalog.
|
|
165
|
+
*/
|
|
166
|
+
google?: { productId: string };
|
|
148
167
|
}
|
|
149
168
|
|
|
150
169
|
/**
|
package/src/version.ts
CHANGED