@iblai/iblai-api 4.229.2-ai → 4.230.0-ai
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.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/types/models/CheckoutSessionResponse.d.ts +4 -0
- package/dist/types/models/ItemPaywallConfig.d.ts +5 -0
- package/dist/types/models/ItemPaywallConfigCreate.d.ts +1 -0
- package/package.json +1 -1
- package/sdk_schema.yml +21 -1
- package/src/core/OpenAPI.ts +1 -1
- package/src/models/CheckoutSessionResponse.ts +4 -0
- package/src/models/ItemPaywallConfig.ts +5 -0
- package/src/models/ItemPaywallConfigCreate.ts +1 -0
package/dist/index.cjs.js
CHANGED
package/dist/index.esm.js
CHANGED
package/dist/index.umd.js
CHANGED
|
@@ -15,6 +15,7 @@ export type ItemPaywallConfig = {
|
|
|
15
15
|
* Arbitrary metadata for the item (custom types only).
|
|
16
16
|
*/
|
|
17
17
|
item_metadata?: any;
|
|
18
|
+
readonly platform: Record<string, any>;
|
|
18
19
|
/**
|
|
19
20
|
* Whether the paywall is enabled for this item
|
|
20
21
|
*/
|
|
@@ -42,6 +43,10 @@ export type ItemPaywallConfig = {
|
|
|
42
43
|
* * `require_subscription` - Require Subscription - All users must subscribe (no grandfathering)
|
|
43
44
|
*/
|
|
44
45
|
grandfathering_strategy?: GrandfatheringStrategyEnum;
|
|
46
|
+
/**
|
|
47
|
+
* URL to redirect users to after successful payment. If blank, default confirmation page(or mentor/product url) or the caller-supplied URL is used.
|
|
48
|
+
*/
|
|
49
|
+
on_successful_payment?: string;
|
|
45
50
|
/**
|
|
46
51
|
* When the paywall was first enabled (for grandfathering cutoff)
|
|
47
52
|
*/
|
package/package.json
CHANGED
package/sdk_schema.yml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
openapi: 3.0.3
|
|
2
2
|
info:
|
|
3
3
|
title: ibl-data-manager
|
|
4
|
-
version: 4.
|
|
4
|
+
version: 4.230.0-ai-plus
|
|
5
5
|
description: API for iblai
|
|
6
6
|
paths:
|
|
7
7
|
/access-check/{item_type}/{item_id}/:
|
|
@@ -79101,8 +79101,12 @@ components:
|
|
|
79101
79101
|
session_id:
|
|
79102
79102
|
type: string
|
|
79103
79103
|
description: Stripe checkout session ID.
|
|
79104
|
+
platform_key:
|
|
79105
|
+
type: string
|
|
79106
|
+
description: Platform key for this checkout.
|
|
79104
79107
|
required:
|
|
79105
79108
|
- checkout_url
|
|
79109
|
+
- platform_key
|
|
79106
79110
|
- session_id
|
|
79107
79111
|
ClawInstance:
|
|
79108
79112
|
type: object
|
|
@@ -84391,6 +84395,10 @@ components:
|
|
|
84391
84395
|
item_metadata:
|
|
84392
84396
|
nullable: true
|
|
84393
84397
|
description: Arbitrary metadata for the item (custom types only).
|
|
84398
|
+
platform:
|
|
84399
|
+
type: object
|
|
84400
|
+
additionalProperties: {}
|
|
84401
|
+
readOnly: true
|
|
84394
84402
|
is_enabled:
|
|
84395
84403
|
type: boolean
|
|
84396
84404
|
description: Whether the paywall is enabled for this item
|
|
@@ -84417,6 +84425,13 @@ components:
|
|
|
84417
84425
|
|
|
84418
84426
|
* `free_forever` - Free Forever - Existing users get unlimited free access
|
|
84419
84427
|
* `require_subscription` - Require Subscription - All users must subscribe (no grandfathering)
|
|
84428
|
+
on_successful_payment:
|
|
84429
|
+
type: string
|
|
84430
|
+
format: uri
|
|
84431
|
+
description: URL to redirect users to after successful payment. If blank,
|
|
84432
|
+
default confirmation page(or mentor/product url) or the caller-supplied
|
|
84433
|
+
URL is used.
|
|
84434
|
+
maxLength: 500
|
|
84420
84435
|
paywall_enabled_at:
|
|
84421
84436
|
type: string
|
|
84422
84437
|
format: date-time
|
|
@@ -84442,6 +84457,7 @@ components:
|
|
|
84442
84457
|
- item_name
|
|
84443
84458
|
- item_type
|
|
84444
84459
|
- paywall_enabled_at
|
|
84460
|
+
- platform
|
|
84445
84461
|
- prices
|
|
84446
84462
|
- stripe_product_id
|
|
84447
84463
|
- unique_id
|
|
@@ -84462,6 +84478,10 @@ components:
|
|
|
84462
84478
|
trial_period_days:
|
|
84463
84479
|
type: integer
|
|
84464
84480
|
minimum: 0
|
|
84481
|
+
on_successful_payment:
|
|
84482
|
+
type: string
|
|
84483
|
+
format: uri
|
|
84484
|
+
maxLength: 500
|
|
84465
84485
|
grandfathering_strategy:
|
|
84466
84486
|
allOf:
|
|
84467
84487
|
- $ref: '#/components/schemas/GrandfatheringStrategyEnum'
|
package/src/core/OpenAPI.ts
CHANGED
|
@@ -19,6 +19,7 @@ export type ItemPaywallConfig = {
|
|
|
19
19
|
* Arbitrary metadata for the item (custom types only).
|
|
20
20
|
*/
|
|
21
21
|
item_metadata?: any;
|
|
22
|
+
readonly platform: Record<string, any>;
|
|
22
23
|
/**
|
|
23
24
|
* Whether the paywall is enabled for this item
|
|
24
25
|
*/
|
|
@@ -46,6 +47,10 @@ export type ItemPaywallConfig = {
|
|
|
46
47
|
* * `require_subscription` - Require Subscription - All users must subscribe (no grandfathering)
|
|
47
48
|
*/
|
|
48
49
|
grandfathering_strategy?: GrandfatheringStrategyEnum;
|
|
50
|
+
/**
|
|
51
|
+
* URL to redirect users to after successful payment. If blank, default confirmation page(or mentor/product url) or the caller-supplied URL is used.
|
|
52
|
+
*/
|
|
53
|
+
on_successful_payment?: string;
|
|
49
54
|
/**
|
|
50
55
|
* When the paywall was first enabled (for grandfathering cutoff)
|
|
51
56
|
*/
|