@iblai/iblai-api 4.288.1-core → 4.289.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 (43) hide show
  1. package/dist/index.cjs.js +10618 -12607
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.esm.js +10619 -12593
  4. package/dist/index.esm.js.map +1 -1
  5. package/dist/index.umd.js +10618 -12607
  6. package/dist/index.umd.js.map +1 -1
  7. package/dist/types/index.d.ts +0 -15
  8. package/dist/types/services/BillingService.d.ts +215 -4
  9. package/package.json +1 -1
  10. package/sdk_schema.yml +10797 -14096
  11. package/src/core/OpenAPI.ts +1 -1
  12. package/src/index.ts +0 -15
  13. package/src/services/BillingService.ts +468 -6
  14. package/dist/types/services/AccessCheckService.d.ts +0 -17
  15. package/dist/types/services/AccountService.d.ts +0 -36
  16. package/dist/types/services/ActivitiesService.d.ts +0 -126
  17. package/dist/types/services/AutoRechargeService.d.ts +0 -14
  18. package/dist/types/services/CreditsService.d.ts +0 -12
  19. package/dist/types/services/DealsService.d.ts +0 -192
  20. package/dist/types/services/ItemsService.d.ts +0 -13
  21. package/dist/types/services/LeadSourcesService.d.ts +0 -95
  22. package/dist/types/services/OrganizationsService.d.ts +0 -109
  23. package/dist/types/services/PersonsService.d.ts +0 -168
  24. package/dist/types/services/PipelinesService.d.ts +0 -183
  25. package/dist/types/services/PlatformsService.d.ts +0 -332
  26. package/dist/types/services/PricesService.d.ts +0 -15
  27. package/dist/types/services/TagsService.d.ts +0 -96
  28. package/dist/types/services/TransactionsService.d.ts +0 -35
  29. package/src/services/AccessCheckService.ts +0 -39
  30. package/src/services/AccountService.ts +0 -70
  31. package/src/services/ActivitiesService.ts +0 -255
  32. package/src/services/AutoRechargeService.ts +0 -29
  33. package/src/services/CreditsService.ts +0 -23
  34. package/src/services/DealsService.ts +0 -406
  35. package/src/services/ItemsService.ts +0 -29
  36. package/src/services/LeadSourcesService.ts +0 -198
  37. package/src/services/OrganizationsService.ts +0 -249
  38. package/src/services/PersonsService.ts +0 -367
  39. package/src/services/PipelinesService.ts +0 -406
  40. package/src/services/PlatformsService.ts +0 -716
  41. package/src/services/PricesService.ts +0 -34
  42. package/src/services/TagsService.ts +0 -201
  43. package/src/services/TransactionsService.ts +0 -57
@@ -1,716 +0,0 @@
1
- /* generated using openapi-typescript-codegen -- do not edit */
2
- /* istanbul ignore file */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- import type { CheckoutSessionCreate } from '../models/CheckoutSessionCreate';
6
- import type { CheckoutSessionResponse } from '../models/CheckoutSessionResponse';
7
- import type { ItemAccessCheckResponse } from '../models/ItemAccessCheckResponse';
8
- import type { ItemPaywallConfig } from '../models/ItemPaywallConfig';
9
- import type { ItemPaywallConfigCreate } from '../models/ItemPaywallConfigCreate';
10
- import type { ItemPrice } from '../models/ItemPrice';
11
- import type { ItemPriceCreate } from '../models/ItemPriceCreate';
12
- import type { ItemSubscription } from '../models/ItemSubscription';
13
- import type { PaginatedItemPaywallConfigList } from '../models/PaginatedItemPaywallConfigList';
14
- import type { PaginatedItemSubscriptionList } from '../models/PaginatedItemSubscriptionList';
15
- import type { PaginatedItemSubscriptionListList } from '../models/PaginatedItemSubscriptionListList';
16
- import type { PlatformRevenueSummary } from '../models/PlatformRevenueSummary';
17
- import type { PortalUrlResponse } from '../models/PortalUrlResponse';
18
- import type { PublicItemPricing } from '../models/PublicItemPricing';
19
- import type { CancelablePromise } from '../core/CancelablePromise';
20
- import { OpenAPI } from '../core/OpenAPI';
21
- import { request as __request } from '../core/request';
22
- export class PlatformsService {
23
- /**
24
- * Check whether the authenticated user has payment access to an item on a scoped platform.
25
- * @returns ItemAccessCheckResponse
26
- * @throws ApiError
27
- */
28
- public static platformsItemsAccessCheckRetrieve({
29
- itemId,
30
- itemType,
31
- platformKey,
32
- }: {
33
- itemId: string,
34
- itemType: string,
35
- platformKey: string,
36
- }): CancelablePromise<ItemAccessCheckResponse> {
37
- return __request(OpenAPI, {
38
- method: 'GET',
39
- url: '/platforms/{platform_key}/items/{item_type}/{item_id}/access-check/',
40
- path: {
41
- 'item_id': itemId,
42
- 'item_type': itemType,
43
- 'platform_key': platformKey,
44
- },
45
- });
46
- }
47
- /**
48
- * Create checkout session
49
- * Create a Stripe checkout session for an authenticated user to purchase or subscribe to an item.
50
- * @returns CheckoutSessionResponse
51
- * @throws ApiError
52
- */
53
- public static platformsItemsCheckoutCreate({
54
- itemId,
55
- itemType,
56
- platformKey,
57
- requestBody,
58
- }: {
59
- itemId: string,
60
- itemType: string,
61
- platformKey: string,
62
- requestBody?: CheckoutSessionCreate,
63
- }): CancelablePromise<CheckoutSessionResponse> {
64
- return __request(OpenAPI, {
65
- method: 'POST',
66
- url: '/platforms/{platform_key}/items/{item_type}/{item_id}/checkout/',
67
- path: {
68
- 'item_id': itemId,
69
- 'item_type': itemType,
70
- 'platform_key': platformKey,
71
- },
72
- body: requestBody,
73
- mediaType: 'application/json',
74
- });
75
- }
76
- /**
77
- * Handle checkout callback
78
- * Stripe redirects here after checkout. Processes the completed session and redirects to the return URL.
79
- * @returns void
80
- * @throws ApiError
81
- */
82
- public static platformsItemsCheckoutCallbackRetrieve({
83
- itemId,
84
- itemType,
85
- platformKey,
86
- returnUrl,
87
- }: {
88
- itemId: string,
89
- itemType: string,
90
- platformKey: string,
91
- returnUrl?: string | null,
92
- }): CancelablePromise<void> {
93
- return __request(OpenAPI, {
94
- method: 'GET',
95
- url: '/platforms/{platform_key}/items/{item_type}/{item_id}/checkout-callback/',
96
- path: {
97
- 'item_id': itemId,
98
- 'item_type': itemType,
99
- 'platform_key': platformKey,
100
- },
101
- query: {
102
- 'return_url': returnUrl,
103
- },
104
- errors: {
105
- 302: `No response body`,
106
- },
107
- });
108
- }
109
- /**
110
- * Handle checkout callback
111
- * Stripe redirects here after checkout. Processes the completed session and redirects to the return URL.
112
- * @returns void
113
- * @throws ApiError
114
- */
115
- public static platformsItemsCheckoutCallbackRetrieve2({
116
- checkoutSessionId,
117
- itemId,
118
- itemType,
119
- platformKey,
120
- returnUrl,
121
- }: {
122
- checkoutSessionId: string,
123
- itemId: string,
124
- itemType: string,
125
- platformKey: string,
126
- returnUrl?: string | null,
127
- }): CancelablePromise<void> {
128
- return __request(OpenAPI, {
129
- method: 'GET',
130
- url: '/platforms/{platform_key}/items/{item_type}/{item_id}/checkout-callback/{checkout_session_id}/',
131
- path: {
132
- 'checkout_session_id': checkoutSessionId,
133
- 'item_id': itemId,
134
- 'item_type': itemType,
135
- 'platform_key': platformKey,
136
- },
137
- query: {
138
- 'return_url': returnUrl,
139
- },
140
- errors: {
141
- 302: `No response body`,
142
- },
143
- });
144
- }
145
- /**
146
- * Create guest checkout session
147
- * Create a Stripe checkout session for a guest user (email required).
148
- * @returns CheckoutSessionResponse
149
- * @throws ApiError
150
- */
151
- public static platformsItemsCheckoutGuestCreate({
152
- itemId,
153
- itemType,
154
- platformKey,
155
- requestBody,
156
- }: {
157
- itemId: string,
158
- itemType: string,
159
- platformKey: string,
160
- requestBody?: CheckoutSessionCreate,
161
- }): CancelablePromise<CheckoutSessionResponse> {
162
- return __request(OpenAPI, {
163
- method: 'POST',
164
- url: '/platforms/{platform_key}/items/{item_type}/{item_id}/checkout-guest/',
165
- path: {
166
- 'item_id': itemId,
167
- 'item_type': itemType,
168
- 'platform_key': platformKey,
169
- },
170
- body: requestBody,
171
- mediaType: 'application/json',
172
- });
173
- }
174
- /**
175
- * Get paywall configuration
176
- * Retrieve the paywall configuration for an item. Returns default (disabled) config if none exists.
177
- * @returns ItemPaywallConfig
178
- * @throws ApiError
179
- */
180
- public static platformsItemsPaywallRetrieve({
181
- itemId,
182
- itemType,
183
- platformKey,
184
- }: {
185
- itemId: string,
186
- itemType: string,
187
- platformKey: string,
188
- }): CancelablePromise<ItemPaywallConfig> {
189
- return __request(OpenAPI, {
190
- method: 'GET',
191
- url: '/platforms/{platform_key}/items/{item_type}/{item_id}/paywall/',
192
- path: {
193
- 'item_id': itemId,
194
- 'item_type': itemType,
195
- 'platform_key': platformKey,
196
- },
197
- });
198
- }
199
- /**
200
- * Create or update paywall configuration
201
- * Enable or configure the paywall for an item. Creates a Stripe product on first enable.
202
- * @returns ItemPaywallConfig
203
- * @throws ApiError
204
- */
205
- public static platformsItemsPaywallCreate({
206
- itemId,
207
- itemType,
208
- platformKey,
209
- requestBody,
210
- }: {
211
- itemId: string,
212
- itemType: string,
213
- platformKey: string,
214
- requestBody?: ItemPaywallConfigCreate,
215
- }): CancelablePromise<ItemPaywallConfig> {
216
- return __request(OpenAPI, {
217
- method: 'POST',
218
- url: '/platforms/{platform_key}/items/{item_type}/{item_id}/paywall/',
219
- path: {
220
- 'item_id': itemId,
221
- 'item_type': itemType,
222
- 'platform_key': platformKey,
223
- },
224
- body: requestBody,
225
- mediaType: 'application/json',
226
- });
227
- }
228
- /**
229
- * Update paywall configuration
230
- * Same as POST. Update the paywall configuration for an item.
231
- * @returns ItemPaywallConfig
232
- * @throws ApiError
233
- */
234
- public static platformsItemsPaywallUpdate({
235
- itemId,
236
- itemType,
237
- platformKey,
238
- requestBody,
239
- }: {
240
- itemId: string,
241
- itemType: string,
242
- platformKey: string,
243
- requestBody?: ItemPaywallConfigCreate,
244
- }): CancelablePromise<ItemPaywallConfig> {
245
- return __request(OpenAPI, {
246
- method: 'PUT',
247
- url: '/platforms/{platform_key}/items/{item_type}/{item_id}/paywall/',
248
- path: {
249
- 'item_id': itemId,
250
- 'item_type': itemType,
251
- 'platform_key': platformKey,
252
- },
253
- body: requestBody,
254
- mediaType: 'application/json',
255
- });
256
- }
257
- /**
258
- * Disable paywall configuration
259
- * Disable the paywall for an item. Does not delete the configuration.
260
- * @returns void
261
- * @throws ApiError
262
- */
263
- public static platformsItemsPaywallDestroy({
264
- itemId,
265
- itemType,
266
- platformKey,
267
- }: {
268
- itemId: string,
269
- itemType: string,
270
- platformKey: string,
271
- }): CancelablePromise<void> {
272
- return __request(OpenAPI, {
273
- method: 'DELETE',
274
- url: '/platforms/{platform_key}/items/{item_type}/{item_id}/paywall/',
275
- path: {
276
- 'item_id': itemId,
277
- 'item_type': itemType,
278
- 'platform_key': platformKey,
279
- },
280
- });
281
- }
282
- /**
283
- * List prices
284
- * List active prices for an item's paywall configuration.
285
- * @returns ItemPrice
286
- * @throws ApiError
287
- */
288
- public static platformsItemsPaywallPricesList({
289
- itemId,
290
- itemType,
291
- platformKey,
292
- }: {
293
- itemId: string,
294
- itemType: string,
295
- platformKey: string,
296
- }): CancelablePromise<Array<ItemPrice>> {
297
- return __request(OpenAPI, {
298
- method: 'GET',
299
- url: '/platforms/{platform_key}/items/{item_type}/{item_id}/paywall/prices/',
300
- path: {
301
- 'item_id': itemId,
302
- 'item_type': itemType,
303
- 'platform_key': platformKey,
304
- },
305
- });
306
- }
307
- /**
308
- * Create a price
309
- * Create a new price tier for an item. Requires paywall to be enabled and Stripe Connect account ready.
310
- * @returns ItemPrice
311
- * @throws ApiError
312
- */
313
- public static platformsItemsPaywallPricesCreate({
314
- itemId,
315
- itemType,
316
- platformKey,
317
- requestBody,
318
- }: {
319
- itemId: string,
320
- itemType: string,
321
- platformKey: string,
322
- requestBody: ItemPriceCreate,
323
- }): CancelablePromise<ItemPrice> {
324
- return __request(OpenAPI, {
325
- method: 'POST',
326
- url: '/platforms/{platform_key}/items/{item_type}/{item_id}/paywall/prices/',
327
- path: {
328
- 'item_id': itemId,
329
- 'item_type': itemType,
330
- 'platform_key': platformKey,
331
- },
332
- body: requestBody,
333
- mediaType: 'application/json',
334
- });
335
- }
336
- /**
337
- * Get price details
338
- * Retrieve a specific price by ID.
339
- * @returns ItemPrice
340
- * @throws ApiError
341
- */
342
- public static platformsItemsPaywallPricesRetrieve({
343
- itemId,
344
- itemType,
345
- platformKey,
346
- priceId,
347
- }: {
348
- itemId: string,
349
- itemType: string,
350
- platformKey: string,
351
- priceId: string,
352
- }): CancelablePromise<ItemPrice> {
353
- return __request(OpenAPI, {
354
- method: 'GET',
355
- url: '/platforms/{platform_key}/items/{item_type}/{item_id}/paywall/prices/{price_id}/',
356
- path: {
357
- 'item_id': itemId,
358
- 'item_type': itemType,
359
- 'platform_key': platformKey,
360
- 'price_id': priceId,
361
- },
362
- });
363
- }
364
- /**
365
- * Update a price
366
- * Update a price tier. If pricing fields change and a Stripe price exists, a new Stripe price is created and the old one deactivated.
367
- * @returns ItemPrice
368
- * @throws ApiError
369
- */
370
- public static platformsItemsPaywallPricesUpdate({
371
- itemId,
372
- itemType,
373
- platformKey,
374
- priceId,
375
- requestBody,
376
- }: {
377
- itemId: string,
378
- itemType: string,
379
- platformKey: string,
380
- priceId: string,
381
- requestBody: ItemPriceCreate,
382
- }): CancelablePromise<ItemPrice> {
383
- return __request(OpenAPI, {
384
- method: 'PUT',
385
- url: '/platforms/{platform_key}/items/{item_type}/{item_id}/paywall/prices/{price_id}/',
386
- path: {
387
- 'item_id': itemId,
388
- 'item_type': itemType,
389
- 'platform_key': platformKey,
390
- 'price_id': priceId,
391
- },
392
- body: requestBody,
393
- mediaType: 'application/json',
394
- });
395
- }
396
- /**
397
- * Delete a price
398
- * Soft-delete a price tier and deactivate the corresponding Stripe price.
399
- * @returns void
400
- * @throws ApiError
401
- */
402
- public static platformsItemsPaywallPricesDestroy({
403
- itemId,
404
- itemType,
405
- platformKey,
406
- priceId,
407
- }: {
408
- itemId: string,
409
- itemType: string,
410
- platformKey: string,
411
- priceId: string,
412
- }): CancelablePromise<void> {
413
- return __request(OpenAPI, {
414
- method: 'DELETE',
415
- url: '/platforms/{platform_key}/items/{item_type}/{item_id}/paywall/prices/{price_id}/',
416
- path: {
417
- 'item_id': itemId,
418
- 'item_type': itemType,
419
- 'platform_key': platformKey,
420
- 'price_id': priceId,
421
- },
422
- });
423
- }
424
- /**
425
- * Get public pricing
426
- * Retrieve public pricing information for an item. No authentication required.
427
- * @returns PublicItemPricing
428
- * @throws ApiError
429
- */
430
- public static platformsItemsPricingRetrieve({
431
- itemId,
432
- itemType,
433
- platformKey,
434
- }: {
435
- itemId: string,
436
- itemType: string,
437
- platformKey: string,
438
- }): CancelablePromise<PublicItemPricing> {
439
- return __request(OpenAPI, {
440
- method: 'GET',
441
- url: '/platforms/{platform_key}/items/{item_type}/{item_id}/pricing/',
442
- path: {
443
- 'item_id': itemId,
444
- 'item_type': itemType,
445
- 'platform_key': platformKey,
446
- },
447
- });
448
- }
449
- /**
450
- * List item subscribers
451
- * List all subscribers for an item. Optionally filter by subscription status.
452
- * @returns PaginatedItemSubscriptionList
453
- * @throws ApiError
454
- */
455
- public static platformsItemsSubscribersList({
456
- itemId,
457
- itemType,
458
- platformKey,
459
- page,
460
- pageSize,
461
- search,
462
- status,
463
- }: {
464
- itemId: string,
465
- itemType: string,
466
- platformKey: string,
467
- /**
468
- * A page number within the paginated result set.
469
- */
470
- page?: number,
471
- /**
472
- * Number of results to return per page.
473
- */
474
- pageSize?: number,
475
- search?: string,
476
- /**
477
- * * `active` - Active
478
- * * `free` - Free Tier
479
- * * `grandfathered` - Grandfathered
480
- * * `trialing` - Trialing
481
- * * `past_due` - Past Due
482
- * * `canceled` - Canceled
483
- * * `incomplete` - Incomplete
484
- */
485
- status?: 'active' | 'free' | 'grandfathered' | 'trialing' | 'past_due' | 'canceled' | 'incomplete',
486
- }): CancelablePromise<PaginatedItemSubscriptionList> {
487
- return __request(OpenAPI, {
488
- method: 'GET',
489
- url: '/platforms/{platform_key}/items/{item_type}/{item_id}/subscribers/',
490
- path: {
491
- 'item_id': itemId,
492
- 'item_type': itemType,
493
- 'platform_key': platformKey,
494
- },
495
- query: {
496
- 'page': page,
497
- 'page_size': pageSize,
498
- 'search': search,
499
- 'status': status,
500
- },
501
- });
502
- }
503
- /**
504
- * Get user subscription
505
- * Retrieve the current user's subscription to an item.
506
- * @returns ItemSubscription
507
- * @throws ApiError
508
- */
509
- public static platformsItemsSubscriptionRetrieve({
510
- itemId,
511
- itemType,
512
- platformKey,
513
- }: {
514
- itemId: string,
515
- itemType: string,
516
- platformKey: string,
517
- }): CancelablePromise<ItemSubscription> {
518
- return __request(OpenAPI, {
519
- method: 'GET',
520
- url: '/platforms/{platform_key}/items/{item_type}/{item_id}/subscription/',
521
- path: {
522
- 'item_id': itemId,
523
- 'item_type': itemType,
524
- 'platform_key': platformKey,
525
- },
526
- });
527
- }
528
- /**
529
- * Cancel subscription
530
- * Cancel the current user's subscription. Returns a Stripe customer portal URL for recurring subscriptions, or cancels directly for one-time purchases.
531
- * @returns PortalUrlResponse
532
- * @throws ApiError
533
- */
534
- public static platformsItemsSubscriptionCancelCreate({
535
- itemId,
536
- itemType,
537
- platformKey,
538
- }: {
539
- itemId: string,
540
- itemType: string,
541
- platformKey: string,
542
- }): CancelablePromise<PortalUrlResponse> {
543
- return __request(OpenAPI, {
544
- method: 'POST',
545
- url: '/platforms/{platform_key}/items/{item_type}/{item_id}/subscription/cancel/',
546
- path: {
547
- 'item_id': itemId,
548
- 'item_type': itemType,
549
- 'platform_key': platformKey,
550
- },
551
- });
552
- }
553
- /**
554
- * List user subscriptions
555
- * Paginated list of the current user's subscriptions on a platform. Optionally filter by status or item_type.
556
- * @returns PaginatedItemSubscriptionListList
557
- * @throws ApiError
558
- */
559
- public static platformsMySubscriptionsList({
560
- platformKey,
561
- itemType,
562
- page,
563
- pageSize,
564
- search,
565
- status,
566
- }: {
567
- platformKey: string,
568
- itemType?: string,
569
- /**
570
- * A page number within the paginated result set.
571
- */
572
- page?: number,
573
- /**
574
- * Number of results to return per page.
575
- */
576
- pageSize?: number,
577
- search?: string,
578
- /**
579
- * * `active` - Active
580
- * * `free` - Free Tier
581
- * * `grandfathered` - Grandfathered
582
- * * `trialing` - Trialing
583
- * * `past_due` - Past Due
584
- * * `canceled` - Canceled
585
- * * `incomplete` - Incomplete
586
- */
587
- status?: 'active' | 'free' | 'grandfathered' | 'trialing' | 'past_due' | 'canceled' | 'incomplete',
588
- }): CancelablePromise<PaginatedItemSubscriptionListList> {
589
- return __request(OpenAPI, {
590
- method: 'GET',
591
- url: '/platforms/{platform_key}/my-subscriptions/',
592
- path: {
593
- 'platform_key': platformKey,
594
- },
595
- query: {
596
- 'item_type': itemType,
597
- 'page': page,
598
- 'page_size': pageSize,
599
- 'search': search,
600
- 'status': status,
601
- },
602
- });
603
- }
604
- /**
605
- * List all platform paywall configurations
606
- * Paginated list of all item paywall configurations on a platform. Filterable by item_type and is_enabled.
607
- * @returns PaginatedItemPaywallConfigList
608
- * @throws ApiError
609
- */
610
- public static platformsPaywallsList({
611
- platformKey,
612
- isEnabled,
613
- itemType,
614
- page,
615
- pageSize,
616
- search,
617
- }: {
618
- platformKey: string,
619
- isEnabled?: boolean | null,
620
- itemType?: string,
621
- /**
622
- * A page number within the paginated result set.
623
- */
624
- page?: number,
625
- /**
626
- * Number of results to return per page.
627
- */
628
- pageSize?: number,
629
- search?: string,
630
- }): CancelablePromise<PaginatedItemPaywallConfigList> {
631
- return __request(OpenAPI, {
632
- method: 'GET',
633
- url: '/platforms/{platform_key}/paywalls/',
634
- path: {
635
- 'platform_key': platformKey,
636
- },
637
- query: {
638
- 'is_enabled': isEnabled,
639
- 'item_type': itemType,
640
- 'page': page,
641
- 'page_size': pageSize,
642
- 'search': search,
643
- },
644
- });
645
- }
646
- /**
647
- * Platform sales summary
648
- * Aggregate sales volume and count for a platform across all item types.
649
- * @returns PlatformRevenueSummary
650
- * @throws ApiError
651
- */
652
- public static platformsRevenueRetrieve({
653
- platformKey,
654
- }: {
655
- platformKey: string,
656
- }): CancelablePromise<PlatformRevenueSummary> {
657
- return __request(OpenAPI, {
658
- method: 'GET',
659
- url: '/platforms/{platform_key}/revenue/',
660
- path: {
661
- 'platform_key': platformKey,
662
- },
663
- });
664
- }
665
- /**
666
- * List all platform subscribers
667
- * Paginated list of all subscribers across all items on a platform. Filterable by status and item_type.
668
- * @returns PaginatedItemSubscriptionListList
669
- * @throws ApiError
670
- */
671
- public static platformsSubscribersList({
672
- platformKey,
673
- itemType,
674
- page,
675
- pageSize,
676
- search,
677
- status,
678
- }: {
679
- platformKey: string,
680
- itemType?: string,
681
- /**
682
- * A page number within the paginated result set.
683
- */
684
- page?: number,
685
- /**
686
- * Number of results to return per page.
687
- */
688
- pageSize?: number,
689
- search?: string,
690
- /**
691
- * * `active` - Active
692
- * * `free` - Free Tier
693
- * * `grandfathered` - Grandfathered
694
- * * `trialing` - Trialing
695
- * * `past_due` - Past Due
696
- * * `canceled` - Canceled
697
- * * `incomplete` - Incomplete
698
- */
699
- status?: 'active' | 'free' | 'grandfathered' | 'trialing' | 'past_due' | 'canceled' | 'incomplete',
700
- }): CancelablePromise<PaginatedItemSubscriptionListList> {
701
- return __request(OpenAPI, {
702
- method: 'GET',
703
- url: '/platforms/{platform_key}/subscribers/',
704
- path: {
705
- 'platform_key': platformKey,
706
- },
707
- query: {
708
- 'item_type': itemType,
709
- 'page': page,
710
- 'page_size': pageSize,
711
- 'search': search,
712
- 'status': status,
713
- },
714
- });
715
- }
716
- }