@iblai/iblai-api 4.195.0-core → 4.196.0-core

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.
Files changed (31) hide show
  1. package/dist/index.cjs.js +111 -19
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.esm.js +112 -20
  4. package/dist/index.esm.js.map +1 -1
  5. package/dist/index.umd.js +111 -19
  6. package/dist/index.umd.js.map +1 -1
  7. package/dist/types/index.d.ts +3 -2
  8. package/dist/types/models/ItemAccessCheckResponse.d.ts +3 -2
  9. package/dist/types/models/ItemPaywallConfig.d.ts +3 -2
  10. package/dist/types/models/ItemSubscription.d.ts +3 -2
  11. package/dist/types/models/ItemSubscriptionList.d.ts +3 -2
  12. package/dist/types/models/{ItemTypeC6bEnum.d.ts → ItemType3e2Enum.d.ts} +4 -2
  13. package/dist/types/models/{ItemType5d7Enum.d.ts → ItemType40fEnum.d.ts} +4 -2
  14. package/dist/types/models/PlatformRevenueSummary.d.ts +5 -0
  15. package/dist/types/models/PublicItemPricing.d.ts +2 -2
  16. package/dist/types/services/BillingService.d.ts +46 -1
  17. package/dist/types/services/PlatformsService.d.ts +46 -1
  18. package/package.json +1 -1
  19. package/sdk_schema.yml +229 -14
  20. package/src/core/OpenAPI.ts +1 -1
  21. package/src/index.ts +3 -2
  22. package/src/models/ItemAccessCheckResponse.ts +3 -2
  23. package/src/models/ItemPaywallConfig.ts +3 -2
  24. package/src/models/ItemSubscription.ts +3 -2
  25. package/src/models/ItemSubscriptionList.ts +3 -2
  26. package/src/models/{ItemTypeC6bEnum.ts → ItemType3e2Enum.ts} +3 -1
  27. package/src/models/{ItemType5d7Enum.ts → ItemType40fEnum.ts} +3 -1
  28. package/src/models/PlatformRevenueSummary.ts +10 -0
  29. package/src/models/PublicItemPricing.ts +2 -2
  30. package/src/services/BillingService.ts +76 -1
  31. package/src/services/PlatformsService.ts +76 -1
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.195.0-core
4
+ version: 4.196.0-core
5
5
  description: API for iblai
6
6
  paths:
7
7
  /access-check/{item_type}/{item_id}/:
@@ -2846,12 +2846,108 @@ paths:
2846
2846
  - mentor
2847
2847
  - course
2848
2848
  - program
2849
+ - pathway
2849
2850
  type: string
2850
2851
  minLength: 1
2851
2852
  description: |-
2852
2853
  * `mentor` - mentor
2853
2854
  * `course` - course
2854
2855
  * `program` - program
2856
+ * `pathway` - pathway
2857
+ - name: page
2858
+ required: false
2859
+ in: query
2860
+ description: A page number within the paginated result set.
2861
+ schema:
2862
+ type: integer
2863
+ - name: page_size
2864
+ required: false
2865
+ in: query
2866
+ description: Number of results to return per page.
2867
+ schema:
2868
+ type: integer
2869
+ - in: path
2870
+ name: platform_key
2871
+ schema:
2872
+ type: string
2873
+ required: true
2874
+ - in: query
2875
+ name: status
2876
+ schema:
2877
+ enum:
2878
+ - active
2879
+ - free
2880
+ - grandfathered
2881
+ - trialing
2882
+ - past_due
2883
+ - canceled
2884
+ - incomplete
2885
+ type: string
2886
+ minLength: 1
2887
+ description: |-
2888
+ * `active` - Active
2889
+ * `free` - Free Tier
2890
+ * `grandfathered` - Grandfathered
2891
+ * `trialing` - Trialing
2892
+ * `past_due` - Past Due
2893
+ * `canceled` - Canceled
2894
+ * `incomplete` - Incomplete
2895
+ tags:
2896
+ - billing
2897
+ security:
2898
+ - PlatformApiKeyAuthentication: []
2899
+ responses:
2900
+ '200':
2901
+ content:
2902
+ application/json:
2903
+ schema:
2904
+ $ref: '#/components/schemas/PaginatedItemSubscriptionListList'
2905
+ description: ''
2906
+ /api/billing/platforms/{platform_key}/revenue/:
2907
+ get:
2908
+ operationId: billing_platforms_revenue_retrieve
2909
+ description: Aggregate sales volume and count for a platform across all item
2910
+ types.
2911
+ summary: Platform sales summary
2912
+ parameters:
2913
+ - in: path
2914
+ name: platform_key
2915
+ schema:
2916
+ type: string
2917
+ required: true
2918
+ tags:
2919
+ - billing
2920
+ security:
2921
+ - PlatformApiKeyAuthentication: []
2922
+ responses:
2923
+ '200':
2924
+ content:
2925
+ application/json:
2926
+ schema:
2927
+ $ref: '#/components/schemas/PlatformRevenueSummary'
2928
+ description: ''
2929
+ /api/billing/platforms/{platform_key}/subscribers/:
2930
+ get:
2931
+ operationId: billing_platforms_subscribers_list
2932
+ description: Paginated list of all subscribers across all items on a platform.
2933
+ Filterable by status and item_type.
2934
+ summary: List all platform subscribers
2935
+ parameters:
2936
+ - in: query
2937
+ name: item_type
2938
+ schema:
2939
+ enum:
2940
+ - mentor
2941
+ - course
2942
+ - program
2943
+ - pathway
2944
+ type: string
2945
+ minLength: 1
2946
+ description: |-
2947
+ * `mentor` - mentor
2948
+ * `course` - course
2949
+ * `program` - program
2950
+ * `pathway` - pathway
2855
2951
  - name: page
2856
2952
  required: false
2857
2953
  in: query
@@ -35156,12 +35252,108 @@ paths:
35156
35252
  - mentor
35157
35253
  - course
35158
35254
  - program
35255
+ - pathway
35159
35256
  type: string
35160
35257
  minLength: 1
35161
35258
  description: |-
35162
35259
  * `mentor` - mentor
35163
35260
  * `course` - course
35164
35261
  * `program` - program
35262
+ * `pathway` - pathway
35263
+ - name: page
35264
+ required: false
35265
+ in: query
35266
+ description: A page number within the paginated result set.
35267
+ schema:
35268
+ type: integer
35269
+ - name: page_size
35270
+ required: false
35271
+ in: query
35272
+ description: Number of results to return per page.
35273
+ schema:
35274
+ type: integer
35275
+ - in: path
35276
+ name: platform_key
35277
+ schema:
35278
+ type: string
35279
+ required: true
35280
+ - in: query
35281
+ name: status
35282
+ schema:
35283
+ enum:
35284
+ - active
35285
+ - free
35286
+ - grandfathered
35287
+ - trialing
35288
+ - past_due
35289
+ - canceled
35290
+ - incomplete
35291
+ type: string
35292
+ minLength: 1
35293
+ description: |-
35294
+ * `active` - Active
35295
+ * `free` - Free Tier
35296
+ * `grandfathered` - Grandfathered
35297
+ * `trialing` - Trialing
35298
+ * `past_due` - Past Due
35299
+ * `canceled` - Canceled
35300
+ * `incomplete` - Incomplete
35301
+ tags:
35302
+ - platforms
35303
+ security:
35304
+ - PlatformApiKeyAuthentication: []
35305
+ responses:
35306
+ '200':
35307
+ content:
35308
+ application/json:
35309
+ schema:
35310
+ $ref: '#/components/schemas/PaginatedItemSubscriptionListList'
35311
+ description: ''
35312
+ /platforms/{platform_key}/revenue/:
35313
+ get:
35314
+ operationId: platforms_revenue_retrieve
35315
+ description: Aggregate sales volume and count for a platform across all item
35316
+ types.
35317
+ summary: Platform sales summary
35318
+ parameters:
35319
+ - in: path
35320
+ name: platform_key
35321
+ schema:
35322
+ type: string
35323
+ required: true
35324
+ tags:
35325
+ - platforms
35326
+ security:
35327
+ - PlatformApiKeyAuthentication: []
35328
+ responses:
35329
+ '200':
35330
+ content:
35331
+ application/json:
35332
+ schema:
35333
+ $ref: '#/components/schemas/PlatformRevenueSummary'
35334
+ description: ''
35335
+ /platforms/{platform_key}/subscribers/:
35336
+ get:
35337
+ operationId: platforms_subscribers_list
35338
+ description: Paginated list of all subscribers across all items on a platform.
35339
+ Filterable by status and item_type.
35340
+ summary: List all platform subscribers
35341
+ parameters:
35342
+ - in: query
35343
+ name: item_type
35344
+ schema:
35345
+ enum:
35346
+ - mentor
35347
+ - course
35348
+ - program
35349
+ - pathway
35350
+ type: string
35351
+ minLength: 1
35352
+ description: |-
35353
+ * `mentor` - mentor
35354
+ * `course` - course
35355
+ * `program` - program
35356
+ * `pathway` - pathway
35165
35357
  - name: page
35166
35358
  required: false
35167
35359
  in: query
@@ -39091,13 +39283,14 @@ components:
39091
39283
  description: True if the user can access the item.
39092
39284
  item_type:
39093
39285
  allOf:
39094
- - $ref: '#/components/schemas/ItemTypeC6bEnum'
39286
+ - $ref: '#/components/schemas/ItemType3e2Enum'
39095
39287
  description: |-
39096
39288
  Item type that was checked (e.g. 'mentor').
39097
39289
 
39098
39290
  * `mentor` - mentor
39099
39291
  * `course` - course
39100
39292
  * `program` - program
39293
+ * `pathway` - pathway
39101
39294
  item_id:
39102
39295
  type: string
39103
39296
  description: ID of the item that was checked.
@@ -39131,13 +39324,14 @@ components:
39131
39324
  properties:
39132
39325
  item_type:
39133
39326
  allOf:
39134
- - $ref: '#/components/schemas/ItemType5d7Enum'
39327
+ - $ref: '#/components/schemas/ItemType40fEnum'
39135
39328
  description: |-
39136
39329
  Type of item being paywalled (e.g. mentor, course, program)
39137
39330
 
39138
39331
  * `mentor` - Mentor
39139
39332
  * `course` - Course
39140
39333
  * `program` - Program
39334
+ * `pathway` - Pathway
39141
39335
  item_id:
39142
39336
  type: string
39143
39337
  description: Identifier for the item (UUID for mentors, slug/key for others)
@@ -39325,13 +39519,14 @@ components:
39325
39519
  readOnly: true
39326
39520
  item_type:
39327
39521
  allOf:
39328
- - $ref: '#/components/schemas/ItemType5d7Enum'
39522
+ - $ref: '#/components/schemas/ItemType40fEnum'
39329
39523
  description: |-
39330
39524
  Type of item being subscribed to
39331
39525
 
39332
39526
  * `mentor` - Mentor
39333
39527
  * `course` - Course
39334
39528
  * `program` - Program
39529
+ * `pathway` - Pathway
39335
39530
  item_id:
39336
39531
  type: string
39337
39532
  description: Identifier for the item
@@ -39420,13 +39615,14 @@ components:
39420
39615
  readOnly: true
39421
39616
  item_type:
39422
39617
  allOf:
39423
- - $ref: '#/components/schemas/ItemType5d7Enum'
39618
+ - $ref: '#/components/schemas/ItemType40fEnum'
39424
39619
  description: |-
39425
39620
  Type of item being subscribed to
39426
39621
 
39427
39622
  * `mentor` - Mentor
39428
39623
  * `course` - Course
39429
39624
  * `program` - Program
39625
+ * `pathway` - Pathway
39430
39626
  item_id:
39431
39627
  type: string
39432
39628
  description: Identifier for the item
@@ -39467,26 +39663,30 @@ components:
39467
39663
  - price
39468
39664
  - unique_id
39469
39665
  - updated_at
39470
- ItemType5d7Enum:
39666
+ ItemType3e2Enum:
39471
39667
  enum:
39472
39668
  - mentor
39473
39669
  - course
39474
39670
  - program
39671
+ - pathway
39475
39672
  type: string
39476
39673
  description: |-
39477
- * `mentor` - Mentor
39478
- * `course` - Course
39479
- * `program` - Program
39480
- ItemTypeC6bEnum:
39674
+ * `mentor` - mentor
39675
+ * `course` - course
39676
+ * `program` - program
39677
+ * `pathway` - pathway
39678
+ ItemType40fEnum:
39481
39679
  enum:
39482
39680
  - mentor
39483
39681
  - course
39484
39682
  - program
39683
+ - pathway
39485
39684
  type: string
39486
39685
  description: |-
39487
- * `mentor` - mentor
39488
- * `course` - course
39489
- * `program` - program
39686
+ * `mentor` - Mentor
39687
+ * `course` - Course
39688
+ * `program` - Program
39689
+ * `pathway` - Pathway
39490
39690
  ItemTypeCommission:
39491
39691
  type: object
39492
39692
  description: Commission percentages keyed by item type.
@@ -44128,6 +44328,21 @@ components:
44128
44328
  required:
44129
44329
  - platform_key
44130
44330
  - platform_name
44331
+ PlatformRevenueSummary:
44332
+ type: object
44333
+ properties:
44334
+ sales_volume:
44335
+ type: string
44336
+ format: decimal
44337
+ pattern: ^-?\d{0,10}(?:\.\d{0,2})?$
44338
+ sales_count:
44339
+ type: integer
44340
+ currency:
44341
+ type: string
44342
+ required:
44343
+ - currency
44344
+ - sales_count
44345
+ - sales_volume
44131
44346
  PlatformSkillPointBulkRequest:
44132
44347
  type: object
44133
44348
  description: Request serializer for PlatformSkillPointBulkManagementView POST
@@ -45831,7 +46046,7 @@ components:
45831
46046
  type: object
45832
46047
  properties:
45833
46048
  item_type:
45834
- $ref: '#/components/schemas/ItemTypeC6bEnum'
46049
+ $ref: '#/components/schemas/ItemType3e2Enum'
45835
46050
  item_id:
45836
46051
  type: string
45837
46052
  item_name:
@@ -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.195.0-core',
24
+ VERSION: '4.196.0-core',
25
25
  WITH_CREDENTIALS: false,
26
26
  CREDENTIALS: 'include',
27
27
  TOKEN: undefined,
package/src/index.ts CHANGED
@@ -174,8 +174,8 @@ export type { ItemPrice } from './models/ItemPrice';
174
174
  export type { ItemPriceCreate } from './models/ItemPriceCreate';
175
175
  export type { ItemSubscription } from './models/ItemSubscription';
176
176
  export type { ItemSubscriptionList } from './models/ItemSubscriptionList';
177
- export { ItemType5d7Enum } from './models/ItemType5d7Enum';
178
- export { ItemTypeC6bEnum } from './models/ItemTypeC6bEnum';
177
+ export { ItemType3e2Enum } from './models/ItemType3e2Enum';
178
+ export { ItemType40fEnum } from './models/ItemType40fEnum';
179
179
  export type { ItemTypeCommission } from './models/ItemTypeCommission';
180
180
  export type { LauncherViewPostRequest } from './models/LauncherViewPostRequest';
181
181
  export type { LearnerAnalyticsResponse } from './models/LearnerAnalyticsResponse';
@@ -328,6 +328,7 @@ export type { PlatformMembershipConfigPostRequest } from './models/PlatformMembe
328
328
  export type { PlatformMetrics } from './models/PlatformMetrics';
329
329
  export type { PlatformPublicImageAsset } from './models/PlatformPublicImageAsset';
330
330
  export type { PlatformPublicMetadata } from './models/PlatformPublicMetadata';
331
+ export type { PlatformRevenueSummary } from './models/PlatformRevenueSummary';
331
332
  export type { PlatformSkillPointBulkRequest } from './models/PlatformSkillPointBulkRequest';
332
333
  export type { PlatformSkillPointBulkResponse } from './models/PlatformSkillPointBulkResponse';
333
334
  export type { PlatformSkillPointGroupRequest } from './models/PlatformSkillPointGroupRequest';
@@ -3,7 +3,7 @@
3
3
  /* tslint:disable */
4
4
  /* eslint-disable */
5
5
  import type { ItemSubscription } from './ItemSubscription';
6
- import type { ItemTypeC6bEnum } from './ItemTypeC6bEnum';
6
+ import type { ItemType3e2Enum } from './ItemType3e2Enum';
7
7
  /**
8
8
  * Response for the generic item access check endpoint.
9
9
  *
@@ -21,8 +21,9 @@ export type ItemAccessCheckResponse = {
21
21
  * * `mentor` - mentor
22
22
  * * `course` - course
23
23
  * * `program` - program
24
+ * * `pathway` - pathway
24
25
  */
25
- item_type: ItemTypeC6bEnum;
26
+ item_type: ItemType3e2Enum;
26
27
  /**
27
28
  * ID of the item that was checked.
28
29
  */
@@ -4,7 +4,7 @@
4
4
  /* eslint-disable */
5
5
  import type { GrandfatheringStrategyEnum } from './GrandfatheringStrategyEnum';
6
6
  import type { ItemPrice } from './ItemPrice';
7
- import type { ItemType5d7Enum } from './ItemType5d7Enum';
7
+ import type { ItemType40fEnum } from './ItemType40fEnum';
8
8
  export type ItemPaywallConfig = {
9
9
  /**
10
10
  * Type of item being paywalled (e.g. mentor, course, program)
@@ -12,8 +12,9 @@ export type ItemPaywallConfig = {
12
12
  * * `mentor` - Mentor
13
13
  * * `course` - Course
14
14
  * * `program` - Program
15
+ * * `pathway` - Pathway
15
16
  */
16
- item_type: ItemType5d7Enum;
17
+ item_type: ItemType40fEnum;
17
18
  /**
18
19
  * Identifier for the item (UUID for mentors, slug/key for others)
19
20
  */
@@ -3,7 +3,7 @@
3
3
  /* tslint:disable */
4
4
  /* eslint-disable */
5
5
  import type { ItemPrice } from './ItemPrice';
6
- import type { ItemType5d7Enum } from './ItemType5d7Enum';
6
+ import type { ItemType40fEnum } from './ItemType40fEnum';
7
7
  import type { Status0e3Enum } from './Status0e3Enum';
8
8
  export type ItemSubscription = {
9
9
  readonly unique_id: string;
@@ -13,8 +13,9 @@ export type ItemSubscription = {
13
13
  * * `mentor` - Mentor
14
14
  * * `course` - Course
15
15
  * * `program` - Program
16
+ * * `pathway` - Pathway
16
17
  */
17
- item_type: ItemType5d7Enum;
18
+ item_type: ItemType40fEnum;
18
19
  /**
19
20
  * Identifier for the item
20
21
  */
@@ -3,7 +3,7 @@
3
3
  /* tslint:disable */
4
4
  /* eslint-disable */
5
5
  import type { ItemPrice } from './ItemPrice';
6
- import type { ItemType5d7Enum } from './ItemType5d7Enum';
6
+ import type { ItemType40fEnum } from './ItemType40fEnum';
7
7
  import type { Status0e3Enum } from './Status0e3Enum';
8
8
  export type ItemSubscriptionList = {
9
9
  readonly unique_id: string;
@@ -13,8 +13,9 @@ export type ItemSubscriptionList = {
13
13
  * * `mentor` - Mentor
14
14
  * * `course` - Course
15
15
  * * `program` - Program
16
+ * * `pathway` - Pathway
16
17
  */
17
- item_type: ItemType5d7Enum;
18
+ item_type: ItemType40fEnum;
18
19
  /**
19
20
  * Identifier for the item
20
21
  */
@@ -6,9 +6,11 @@
6
6
  * * `mentor` - mentor
7
7
  * * `course` - course
8
8
  * * `program` - program
9
+ * * `pathway` - pathway
9
10
  */
10
- export enum ItemTypeC6bEnum {
11
+ export enum ItemType3e2Enum {
11
12
  MENTOR = 'mentor',
12
13
  COURSE = 'course',
13
14
  PROGRAM = 'program',
15
+ PATHWAY = 'pathway',
14
16
  }
@@ -6,9 +6,11 @@
6
6
  * * `mentor` - Mentor
7
7
  * * `course` - Course
8
8
  * * `program` - Program
9
+ * * `pathway` - Pathway
9
10
  */
10
- export enum ItemType5d7Enum {
11
+ export enum ItemType40fEnum {
11
12
  MENTOR = 'mentor',
12
13
  COURSE = 'course',
13
14
  PROGRAM = 'program',
15
+ PATHWAY = 'pathway',
14
16
  }
@@ -0,0 +1,10 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ export type PlatformRevenueSummary = {
6
+ sales_volume: string;
7
+ sales_count: number;
8
+ currency: string;
9
+ };
10
+
@@ -3,9 +3,9 @@
3
3
  /* tslint:disable */
4
4
  /* eslint-disable */
5
5
  import type { ItemPrice } from './ItemPrice';
6
- import type { ItemTypeC6bEnum } from './ItemTypeC6bEnum';
6
+ import type { ItemType3e2Enum } from './ItemType3e2Enum';
7
7
  export type PublicItemPricing = {
8
- item_type: ItemTypeC6bEnum;
8
+ item_type: ItemType3e2Enum;
9
9
  item_id: string;
10
10
  item_name: string;
11
11
  is_paywalled: boolean;
@@ -18,6 +18,7 @@ import type { ItemSubscription } from '../models/ItemSubscription';
18
18
  import type { PaginatedItemSubscriptionList } from '../models/PaginatedItemSubscriptionList';
19
19
  import type { PaginatedItemSubscriptionListList } from '../models/PaginatedItemSubscriptionListList';
20
20
  import type { PatchedCreditAccountAutoRechargeUpdate } from '../models/PatchedCreditAccountAutoRechargeUpdate';
21
+ import type { PlatformRevenueSummary } from '../models/PlatformRevenueSummary';
21
22
  import type { PortalUrlResponse } from '../models/PortalUrlResponse';
22
23
  import type { PublicItemPricing } from '../models/PublicItemPricing';
23
24
  import type { CancelablePromise } from '../core/CancelablePromise';
@@ -674,8 +675,9 @@ export class BillingService {
674
675
  * * `mentor` - mentor
675
676
  * * `course` - course
676
677
  * * `program` - program
678
+ * * `pathway` - pathway
677
679
  */
678
- itemType?: 'mentor' | 'course' | 'program',
680
+ itemType?: 'mentor' | 'course' | 'program' | 'pathway',
679
681
  /**
680
682
  * A page number within the paginated result set.
681
683
  */
@@ -709,6 +711,79 @@ export class BillingService {
709
711
  },
710
712
  });
711
713
  }
714
+ /**
715
+ * Platform sales summary
716
+ * Aggregate sales volume and count for a platform across all item types.
717
+ * @returns PlatformRevenueSummary
718
+ * @throws ApiError
719
+ */
720
+ public static billingPlatformsRevenueRetrieve({
721
+ platformKey,
722
+ }: {
723
+ platformKey: string,
724
+ }): CancelablePromise<PlatformRevenueSummary> {
725
+ return __request(OpenAPI, {
726
+ method: 'GET',
727
+ url: '/api/billing/platforms/{platform_key}/revenue/',
728
+ path: {
729
+ 'platform_key': platformKey,
730
+ },
731
+ });
732
+ }
733
+ /**
734
+ * List all platform subscribers
735
+ * Paginated list of all subscribers across all items on a platform. Filterable by status and item_type.
736
+ * @returns PaginatedItemSubscriptionListList
737
+ * @throws ApiError
738
+ */
739
+ public static billingPlatformsSubscribersList({
740
+ platformKey,
741
+ itemType,
742
+ page,
743
+ pageSize,
744
+ status,
745
+ }: {
746
+ platformKey: string,
747
+ /**
748
+ * * `mentor` - mentor
749
+ * * `course` - course
750
+ * * `program` - program
751
+ * * `pathway` - pathway
752
+ */
753
+ itemType?: 'mentor' | 'course' | 'program' | 'pathway',
754
+ /**
755
+ * A page number within the paginated result set.
756
+ */
757
+ page?: number,
758
+ /**
759
+ * Number of results to return per page.
760
+ */
761
+ pageSize?: number,
762
+ /**
763
+ * * `active` - Active
764
+ * * `free` - Free Tier
765
+ * * `grandfathered` - Grandfathered
766
+ * * `trialing` - Trialing
767
+ * * `past_due` - Past Due
768
+ * * `canceled` - Canceled
769
+ * * `incomplete` - Incomplete
770
+ */
771
+ status?: 'active' | 'free' | 'grandfathered' | 'trialing' | 'past_due' | 'canceled' | 'incomplete',
772
+ }): CancelablePromise<PaginatedItemSubscriptionListList> {
773
+ return __request(OpenAPI, {
774
+ method: 'GET',
775
+ url: '/api/billing/platforms/{platform_key}/subscribers/',
776
+ path: {
777
+ 'platform_key': platformKey,
778
+ },
779
+ query: {
780
+ 'item_type': itemType,
781
+ 'page': page,
782
+ 'page_size': pageSize,
783
+ 'status': status,
784
+ },
785
+ });
786
+ }
712
787
  /**
713
788
  * List transaction history
714
789
  * Paginated transaction history for the credit account. Use platform_key query param to list platform account transactions (if permitted). Filter by transaction_type, from_date (YYYY-MM-DD), to_date (YYYY-MM-DD).