@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 CHANGED
@@ -110,7 +110,7 @@ class CancelablePromise {
110
110
 
111
111
  const OpenAPI = {
112
112
  BASE: 'https://base.manager.iblai.app',
113
- VERSION: '4.229.2-ai-plus',
113
+ VERSION: '4.230.0-ai-plus',
114
114
  WITH_CREDENTIALS: false,
115
115
  CREDENTIALS: 'include',
116
116
  TOKEN: undefined,
package/dist/index.esm.js CHANGED
@@ -108,7 +108,7 @@ class CancelablePromise {
108
108
 
109
109
  const OpenAPI = {
110
110
  BASE: 'https://base.manager.iblai.app',
111
- VERSION: '4.229.2-ai-plus',
111
+ VERSION: '4.230.0-ai-plus',
112
112
  WITH_CREDENTIALS: false,
113
113
  CREDENTIALS: 'include',
114
114
  TOKEN: undefined,
package/dist/index.umd.js CHANGED
@@ -114,7 +114,7 @@
114
114
 
115
115
  const OpenAPI = {
116
116
  BASE: 'https://base.manager.iblai.app',
117
- VERSION: '4.229.2-ai-plus',
117
+ VERSION: '4.230.0-ai-plus',
118
118
  WITH_CREDENTIALS: false,
119
119
  CREDENTIALS: 'include',
120
120
  TOKEN: undefined,
@@ -10,4 +10,8 @@ export type CheckoutSessionResponse = {
10
10
  * Stripe checkout session ID.
11
11
  */
12
12
  session_id: string;
13
+ /**
14
+ * Platform key for this checkout.
15
+ */
16
+ platform_key: string;
13
17
  };
@@ -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
  */
@@ -6,5 +6,6 @@ export type ItemPaywallConfigCreate = {
6
6
  description?: string;
7
7
  allow_free_tier?: boolean;
8
8
  trial_period_days?: number;
9
+ on_successful_payment?: string;
9
10
  grandfathering_strategy?: GrandfatheringStrategyEnum;
10
11
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iblai/iblai-api",
3
- "version": "4.229.2-ai",
3
+ "version": "4.230.0-ai",
4
4
  "main": "dist/index.cjs.js",
5
5
  "module": "dist/index.esm.js",
6
6
  "type": "module",
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.229.2-ai-plus
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'
@@ -21,7 +21,7 @@ export type OpenAPIConfig = {
21
21
 
22
22
  export const OpenAPI: OpenAPIConfig = {
23
23
  BASE: 'https://base.manager.iblai.app',
24
- VERSION: '4.229.2-ai-plus',
24
+ VERSION: '4.230.0-ai-plus',
25
25
  WITH_CREDENTIALS: false,
26
26
  CREDENTIALS: 'include',
27
27
  TOKEN: undefined,
@@ -14,5 +14,9 @@ export type CheckoutSessionResponse = {
14
14
  * Stripe checkout session ID.
15
15
  */
16
16
  session_id: string;
17
+ /**
18
+ * Platform key for this checkout.
19
+ */
20
+ platform_key: string;
17
21
  };
18
22
 
@@ -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
  */
@@ -10,6 +10,7 @@ export type ItemPaywallConfigCreate = {
10
10
  description?: string;
11
11
  allow_free_tier?: boolean;
12
12
  trial_period_days?: number;
13
+ on_successful_payment?: string;
13
14
  grandfathering_strategy?: GrandfatheringStrategyEnum;
14
15
  };
15
16