@whop/sdk 0.0.4 → 0.0.6

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 (117) hide show
  1. package/CHANGELOG.md +51 -0
  2. package/README.md +0 -4
  3. package/client.d.mts +14 -8
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +14 -8
  6. package/client.d.ts.map +1 -1
  7. package/client.js +8 -5
  8. package/client.js.map +1 -1
  9. package/client.mjs +8 -5
  10. package/client.mjs.map +1 -1
  11. package/lib/verify-user-token.d.mts.map +1 -1
  12. package/lib/verify-user-token.d.ts.map +1 -1
  13. package/lib/verify-user-token.js +6 -3
  14. package/lib/verify-user-token.js.map +1 -1
  15. package/lib/verify-user-token.mjs +6 -3
  16. package/lib/verify-user-token.mjs.map +1 -1
  17. package/package.json +1 -1
  18. package/resources/access-tokens.d.mts +58 -0
  19. package/resources/access-tokens.d.mts.map +1 -0
  20. package/resources/access-tokens.d.ts +58 -0
  21. package/resources/access-tokens.d.ts.map +1 -0
  22. package/resources/access-tokens.js +25 -0
  23. package/resources/access-tokens.js.map +1 -0
  24. package/resources/access-tokens.mjs +21 -0
  25. package/resources/access-tokens.mjs.map +1 -0
  26. package/resources/checkout-configurations.d.mts +2 -2
  27. package/resources/checkout-configurations.d.ts +2 -2
  28. package/resources/course-lessons.d.mts +121 -1
  29. package/resources/course-lessons.d.mts.map +1 -1
  30. package/resources/course-lessons.d.ts +121 -1
  31. package/resources/course-lessons.d.ts.map +1 -1
  32. package/resources/courses.d.mts +45 -1
  33. package/resources/courses.d.mts.map +1 -1
  34. package/resources/courses.d.ts +45 -1
  35. package/resources/courses.d.ts.map +1 -1
  36. package/resources/entries.d.mts +2 -2
  37. package/resources/entries.d.ts +2 -2
  38. package/resources/forum-posts.d.mts +1 -1
  39. package/resources/forum-posts.d.ts +1 -1
  40. package/resources/index.d.mts +4 -2
  41. package/resources/index.d.mts.map +1 -1
  42. package/resources/index.d.ts +4 -2
  43. package/resources/index.d.ts.map +1 -1
  44. package/resources/index.js +5 -1
  45. package/resources/index.js.map +1 -1
  46. package/resources/index.mjs +2 -0
  47. package/resources/index.mjs.map +1 -1
  48. package/resources/invoices.d.mts +14 -25
  49. package/resources/invoices.d.mts.map +1 -1
  50. package/resources/invoices.d.ts +14 -25
  51. package/resources/invoices.d.ts.map +1 -1
  52. package/resources/ledger-accounts.d.mts +1 -1
  53. package/resources/ledger-accounts.d.ts +1 -1
  54. package/resources/ledger-accounts.js +1 -1
  55. package/resources/ledger-accounts.mjs +1 -1
  56. package/resources/members.d.mts +11 -11
  57. package/resources/members.d.mts.map +1 -1
  58. package/resources/members.d.ts +11 -11
  59. package/resources/members.d.ts.map +1 -1
  60. package/resources/memberships.d.mts +4 -4
  61. package/resources/memberships.d.mts.map +1 -1
  62. package/resources/memberships.d.ts +4 -4
  63. package/resources/memberships.d.ts.map +1 -1
  64. package/resources/messages.d.mts +1 -1
  65. package/resources/messages.d.ts +1 -1
  66. package/resources/notifications.d.mts +105 -0
  67. package/resources/notifications.d.mts.map +1 -0
  68. package/resources/notifications.d.ts +105 -0
  69. package/resources/notifications.d.ts.map +1 -0
  70. package/resources/notifications.js +24 -0
  71. package/resources/notifications.js.map +1 -0
  72. package/resources/notifications.mjs +20 -0
  73. package/resources/notifications.mjs.map +1 -0
  74. package/resources/payments.d.mts +2 -2
  75. package/resources/payments.d.ts +2 -2
  76. package/resources/plans.d.mts +6 -4
  77. package/resources/plans.d.mts.map +1 -1
  78. package/resources/plans.d.ts +6 -4
  79. package/resources/plans.d.ts.map +1 -1
  80. package/resources/products.d.mts +5 -5
  81. package/resources/products.d.ts +5 -5
  82. package/resources/promo-codes.d.mts +4 -4
  83. package/resources/promo-codes.d.ts +4 -4
  84. package/resources/shared.d.mts +22 -20
  85. package/resources/shared.d.mts.map +1 -1
  86. package/resources/shared.d.ts +22 -20
  87. package/resources/shared.d.ts.map +1 -1
  88. package/resources/users.d.mts +3 -0
  89. package/resources/users.d.mts.map +1 -1
  90. package/resources/users.d.ts +3 -0
  91. package/resources/users.d.ts.map +1 -1
  92. package/src/client.ts +31 -10
  93. package/src/lib/verify-user-token.ts +6 -3
  94. package/src/resources/access-tokens.ts +72 -0
  95. package/src/resources/checkout-configurations.ts +2 -2
  96. package/src/resources/course-lessons.ts +146 -0
  97. package/src/resources/courses.ts +54 -0
  98. package/src/resources/entries.ts +2 -2
  99. package/src/resources/forum-posts.ts +1 -1
  100. package/src/resources/index.ts +8 -0
  101. package/src/resources/invoices.ts +14 -26
  102. package/src/resources/ledger-accounts.ts +1 -1
  103. package/src/resources/members.ts +12 -12
  104. package/src/resources/memberships.ts +5 -5
  105. package/src/resources/messages.ts +1 -1
  106. package/src/resources/notifications.ts +131 -0
  107. package/src/resources/payments.ts +2 -2
  108. package/src/resources/plans.ts +6 -4
  109. package/src/resources/products.ts +5 -5
  110. package/src/resources/promo-codes.ts +4 -4
  111. package/src/resources/shared.ts +22 -20
  112. package/src/resources/users.ts +3 -0
  113. package/src/version.ts +1 -1
  114. package/version.d.mts +1 -1
  115. package/version.d.ts +1 -1
  116. package/version.js +1 -1
  117. package/version.mjs +1 -1
@@ -118,6 +118,11 @@ export type CourseLessonListResponsesCursorPage = CursorPage<CourseLessonListRes
118
118
  */
119
119
  export type AssessmentQuestionTypes = 'short_answer' | 'true_false' | 'multiple_choice' | 'multiple_select';
120
120
 
121
+ /**
122
+ * The type of embed for a lesson
123
+ */
124
+ export type EmbedType = 'youtube' | 'loom';
125
+
121
126
  /**
122
127
  * A lesson from the courses app
123
128
  */
@@ -147,6 +152,16 @@ export interface Lesson {
147
152
  */
148
153
  days_from_course_start_until_unlock: number | null;
149
154
 
155
+ /**
156
+ * ID for the embed (YouTube video ID or Loom share ID)
157
+ */
158
+ embed_id: string | null;
159
+
160
+ /**
161
+ * The type of embed for a lesson
162
+ */
163
+ embed_type: EmbedType | null;
164
+
150
165
  /**
151
166
  * The type of the lesson (text, video, pdf, multi, quiz, knowledge_check)
152
167
  */
@@ -162,6 +177,11 @@ export interface Lesson {
162
177
  */
163
178
  order: number;
164
179
 
180
+ /**
181
+ * The thumbnail for the lesson
182
+ */
183
+ thumbnail: Lesson.Thumbnail | null;
184
+
165
185
  /**
166
186
  * The title of the lesson
167
187
  */
@@ -332,6 +352,17 @@ export namespace Lesson {
332
352
  url: string | null;
333
353
  }
334
354
 
355
+ /**
356
+ * The thumbnail for the lesson
357
+ */
358
+ export interface Thumbnail {
359
+ /**
360
+ * This is the URL you use to render optimized attachments on the client. This
361
+ * should be used for apps.
362
+ */
363
+ url: string | null;
364
+ }
365
+
335
366
  /**
336
367
  * The associated Mux asset for video lessons
337
368
  */
@@ -383,6 +414,16 @@ export interface CourseLessonListResponse {
383
414
  */
384
415
  days_from_course_start_until_unlock: number | null;
385
416
 
417
+ /**
418
+ * ID for the embed (YouTube video ID or Loom share ID)
419
+ */
420
+ embed_id: string | null;
421
+
422
+ /**
423
+ * The type of embed for a lesson
424
+ */
425
+ embed_type: EmbedType | null;
426
+
386
427
  /**
387
428
  * The type of the lesson (text, video, pdf, multi, quiz, knowledge_check)
388
429
  */
@@ -393,6 +434,11 @@ export interface CourseLessonListResponse {
393
434
  */
394
435
  order: number;
395
436
 
437
+ /**
438
+ * The thumbnail for the lesson
439
+ */
440
+ thumbnail: CourseLessonListResponse.Thumbnail | null;
441
+
396
442
  /**
397
443
  * The title of the lesson
398
444
  */
@@ -405,6 +451,19 @@ export interface CourseLessonListResponse {
405
451
  visibility: LessonVisibilities;
406
452
  }
407
453
 
454
+ export namespace CourseLessonListResponse {
455
+ /**
456
+ * The thumbnail for the lesson
457
+ */
458
+ export interface Thumbnail {
459
+ /**
460
+ * This is the URL you use to render optimized attachments on the client. This
461
+ * should be used for apps.
462
+ */
463
+ url: string | null;
464
+ }
465
+ }
466
+
408
467
  /**
409
468
  * Represents `true` or `false` values.
410
469
  */
@@ -431,12 +490,56 @@ export interface CourseLessonCreateParams {
431
490
  */
432
491
  days_from_course_start_until_unlock?: number | null;
433
492
 
493
+ /**
494
+ * ID for the embed (YouTube video ID or Loom share ID)
495
+ */
496
+ embed_id?: string | null;
497
+
498
+ /**
499
+ * The type of embed for a lesson
500
+ */
501
+ embed_type?: EmbedType | null;
502
+
503
+ /**
504
+ * The thumbnail for the lesson in png, jpeg, or gif format
505
+ */
506
+ thumbnail?:
507
+ | CourseLessonCreateParams.AttachmentInputWithDirectUploadID
508
+ | CourseLessonCreateParams.AttachmentInputWithID
509
+ | null;
510
+
434
511
  /**
435
512
  * The title of the lesson
436
513
  */
437
514
  title?: string | null;
438
515
  }
439
516
 
517
+ export namespace CourseLessonCreateParams {
518
+ /**
519
+ * Input for an attachment
520
+ */
521
+ export interface AttachmentInputWithDirectUploadID {
522
+ /**
523
+ * This ID should be used the first time you upload an attachment. It is the ID of
524
+ * the direct upload that was created when uploading the file to S3 via the
525
+ * mediaDirectUpload mutation.
526
+ */
527
+ direct_upload_id: string;
528
+ }
529
+
530
+ /**
531
+ * Input for an attachment
532
+ */
533
+ export interface AttachmentInputWithID {
534
+ /**
535
+ * The ID of an existing attachment object. Use this when updating a resource and
536
+ * keeping a subset of the attachments. Don't use this unless you know what you're
537
+ * doing.
538
+ */
539
+ id: string;
540
+ }
541
+ }
542
+
440
543
  export interface CourseLessonUpdateParams {
441
544
  /**
442
545
  * Completion requirements for quiz/knowledge check lessons
@@ -468,6 +571,16 @@ export interface CourseLessonUpdateParams {
468
571
  */
469
572
  days_from_course_start_until_unlock?: number | null;
470
573
 
574
+ /**
575
+ * ID for the embed (YouTube video ID or Loom share ID)
576
+ */
577
+ embed_id?: string | null;
578
+
579
+ /**
580
+ * The type of embed for a lesson
581
+ */
582
+ embed_type?: EmbedType | null;
583
+
471
584
  /**
472
585
  * The available types for a lesson
473
586
  */
@@ -491,6 +604,14 @@ export interface CourseLessonUpdateParams {
491
604
  */
492
605
  mux_asset_id?: string | null;
493
606
 
607
+ /**
608
+ * The thumbnail for the lesson in png, jpeg, or gif format
609
+ */
610
+ thumbnail?:
611
+ | CourseLessonUpdateParams.AttachmentInputWithDirectUploadID
612
+ | CourseLessonUpdateParams.AttachmentInputWithID
613
+ | null;
614
+
494
615
  /**
495
616
  * The title of the lesson
496
617
  */
@@ -654,6 +775,30 @@ export namespace CourseLessonUpdateParams {
654
775
  */
655
776
  id: string;
656
777
  }
778
+
779
+ /**
780
+ * Input for an attachment
781
+ */
782
+ export interface AttachmentInputWithDirectUploadID {
783
+ /**
784
+ * This ID should be used the first time you upload an attachment. It is the ID of
785
+ * the direct upload that was created when uploading the file to S3 via the
786
+ * mediaDirectUpload mutation.
787
+ */
788
+ direct_upload_id: string;
789
+ }
790
+
791
+ /**
792
+ * Input for an attachment
793
+ */
794
+ export interface AttachmentInputWithID {
795
+ /**
796
+ * The ID of an existing attachment object. Use this when updating a resource and
797
+ * keeping a subset of the attachments. Don't use this unless you know what you're
798
+ * doing.
799
+ */
800
+ id: string;
801
+ }
657
802
  }
658
803
 
659
804
  export interface CourseLessonListParams extends CursorPageParams {
@@ -686,6 +831,7 @@ export interface CourseLessonListParams extends CursorPageParams {
686
831
  export declare namespace CourseLessons {
687
832
  export {
688
833
  type AssessmentQuestionTypes as AssessmentQuestionTypes,
834
+ type EmbedType as EmbedType,
689
835
  type Lesson as Lesson,
690
836
  type LessonTypes as LessonTypes,
691
837
  type LessonVisibilities as LessonVisibilities,
@@ -146,6 +146,11 @@ export interface Course {
146
146
  */
147
147
  language: Languages;
148
148
 
149
+ /**
150
+ * The order of the course within its experience
151
+ */
152
+ order: string;
153
+
149
154
  /**
150
155
  * Whether the course requires students to complete the previous lesson before
151
156
  * moving on to the next one
@@ -171,6 +176,12 @@ export interface Course {
171
176
  * The timestamp of when the course was last updated
172
177
  */
173
178
  updated_at: string;
179
+
180
+ /**
181
+ * The visibility of the course. Determines how / whether this course is visible to
182
+ * users.
183
+ */
184
+ visibility: CourseVisibilities;
174
185
  }
175
186
 
176
187
  export namespace Course {
@@ -259,6 +270,12 @@ export namespace Course {
259
270
  }
260
271
  }
261
272
 
273
+ /**
274
+ * The available visibilities for a course. Determines how / whether a course is
275
+ * visible to users.
276
+ */
277
+ export type CourseVisibilities = 'visible' | 'hidden';
278
+
262
279
  /**
263
280
  * The available languages for a course
264
281
  */
@@ -317,6 +334,11 @@ export interface CourseListResponse {
317
334
  */
318
335
  language: Languages;
319
336
 
337
+ /**
338
+ * The order of the course within its experience
339
+ */
340
+ order: string;
341
+
320
342
  /**
321
343
  * Whether the course requires students to complete the previous lesson before
322
344
  * moving on to the next one
@@ -342,6 +364,12 @@ export interface CourseListResponse {
342
364
  * The timestamp of when the course was last updated
343
365
  */
344
366
  updated_at: string;
367
+
368
+ /**
369
+ * The visibility of the course. Determines how / whether this course is visible to
370
+ * users.
371
+ */
372
+ visibility: CourseVisibilities;
345
373
  }
346
374
 
347
375
  export namespace CourseListResponse {
@@ -405,6 +433,13 @@ export interface CourseCreateParams {
405
433
  */
406
434
  cover_image?: string | null;
407
435
 
436
+ /**
437
+ * The decimal order position of the course within its experience. If not provided,
438
+ * it will be set to the next sequential order. Use fractional values (e.g., 1.5)
439
+ * to place between existing courses.
440
+ */
441
+ order?: string | null;
442
+
408
443
  /**
409
444
  * Whether the course requires students to complete the previous lesson before
410
445
  * moving on to the next one
@@ -423,6 +458,12 @@ export interface CourseCreateParams {
423
458
  | CourseCreateParams.AttachmentInputWithDirectUploadID
424
459
  | CourseCreateParams.AttachmentInputWithID
425
460
  | null;
461
+
462
+ /**
463
+ * The available visibilities for a course. Determines how / whether a course is
464
+ * visible to users.
465
+ */
466
+ visibility?: CourseVisibilities | null;
426
467
  }
427
468
 
428
469
  export namespace CourseCreateParams {
@@ -478,6 +519,12 @@ export interface CourseUpdateParams {
478
519
  */
479
520
  language?: Languages | null;
480
521
 
522
+ /**
523
+ * The decimal order position of the course within its experience. Use fractional
524
+ * values (e.g., 1.5) to place between existing courses.
525
+ */
526
+ order?: string | null;
527
+
481
528
  /**
482
529
  * Whether the course requires students to complete the previous lesson before
483
530
  * moving on to the next one
@@ -501,6 +548,12 @@ export interface CourseUpdateParams {
501
548
  * The title of the course
502
549
  */
503
550
  title?: string | null;
551
+
552
+ /**
553
+ * The available visibilities for a course. Determines how / whether a course is
554
+ * visible to users.
555
+ */
556
+ visibility?: CourseVisibilities | null;
504
557
  }
505
558
 
506
559
  export namespace CourseUpdateParams {
@@ -611,6 +664,7 @@ export interface CourseListParams extends CursorPageParams {
611
664
  export declare namespace Courses {
612
665
  export {
613
666
  type Course as Course,
667
+ type CourseVisibilities as CourseVisibilities,
614
668
  type Languages as Languages,
615
669
  type CourseListResponse as CourseListResponse,
616
670
  type CourseDeleteResponse as CourseDeleteResponse,
@@ -82,7 +82,7 @@ export interface EntryListResponse {
82
82
  plan: EntryListResponse.Plan | null;
83
83
 
84
84
  /**
85
- * The access pass tied to this entry, if there is one.
85
+ * The product tied to this entry, if there is one.
86
86
  */
87
87
  product: EntryListResponse.Product | null;
88
88
 
@@ -109,7 +109,7 @@ export namespace EntryListResponse {
109
109
  }
110
110
 
111
111
  /**
112
- * The access pass tied to this entry, if there is one.
112
+ * The product tied to this entry, if there is one.
113
113
  */
114
114
  export interface Product {
115
115
  /**
@@ -90,7 +90,7 @@ export type ForumPostListResponsesCursorPage = CursorPage<ForumPostListResponse>
90
90
  */
91
91
  export interface ForumPostListResponse {
92
92
  /**
93
- * The unique identifier for the entity
93
+ * The unique identifier of the resource.
94
94
  */
95
95
  id: string;
96
96
 
@@ -1,6 +1,7 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  export * from './shared';
4
+ export { AccessTokens, type AccessTokenCreateResponse, type AccessTokenCreateParams } from './access-tokens';
4
5
  export {
5
6
  AppBuilds,
6
7
  type AppBuildListResponse,
@@ -61,6 +62,7 @@ export {
61
62
  export {
62
63
  CourseLessons,
63
64
  type AssessmentQuestionTypes,
65
+ type EmbedType,
64
66
  type Lesson,
65
67
  type LessonTypes,
66
68
  type LessonVisibilities,
@@ -81,6 +83,7 @@ export {
81
83
  export {
82
84
  Courses,
83
85
  type Course,
86
+ type CourseVisibilities,
84
87
  type Languages,
85
88
  type CourseListResponse,
86
89
  type CourseDeleteResponse,
@@ -154,6 +157,11 @@ export {
154
157
  type MessageListParams,
155
158
  type MessageListResponsesCursorPage,
156
159
  } from './messages';
160
+ export {
161
+ Notifications,
162
+ type NotificationCreateResponse,
163
+ type NotificationCreateParams,
164
+ } from './notifications';
157
165
  export {
158
166
  Payments,
159
167
  type BillingReasons,
@@ -176,7 +176,7 @@ export declare namespace InvoiceCreateParams {
176
176
  internal_notes?: string | null;
177
177
 
178
178
  /**
179
- * The type of plan that can be attached to an access pass
179
+ * The type of plan that can be attached to a product
180
180
  */
181
181
  plan_type?: Shared.PlanType | null;
182
182
 
@@ -354,7 +354,7 @@ export declare namespace InvoiceCreateParams {
354
354
  internal_notes?: string | null;
355
355
 
356
356
  /**
357
- * The type of plan that can be attached to an access pass
357
+ * The type of plan that can be attached to a product
358
358
  */
359
359
  plan_type?: Shared.PlanType | null;
360
360
 
@@ -533,7 +533,7 @@ export declare namespace InvoiceCreateParams {
533
533
  internal_notes?: string | null;
534
534
 
535
535
  /**
536
- * The type of plan that can be attached to an access pass
536
+ * The type of plan that can be attached to a product
537
537
  */
538
538
  plan_type?: Shared.PlanType | null;
539
539
 
@@ -695,7 +695,7 @@ export declare namespace InvoiceCreateParams {
695
695
  internal_notes?: string | null;
696
696
 
697
697
  /**
698
- * The type of plan that can be attached to an access pass
698
+ * The type of plan that can be attached to a product
699
699
  */
700
700
  plan_type?: Shared.PlanType | null;
701
701
 
@@ -779,14 +779,14 @@ export interface InvoiceListParams extends CursorPageParams {
779
779
  before?: string | null;
780
780
 
781
781
  /**
782
- * The direction of the sort.
782
+ * Filter invoices by their collection method
783
783
  */
784
- direction?: Shared.Direction | null;
784
+ collection_methods?: Array<Shared.CollectionMethod> | null;
785
785
 
786
786
  /**
787
- * The filters to apply to the invoices
787
+ * The direction of the sort.
788
788
  */
789
- filters?: InvoiceListParams.Filters | null;
789
+ direction?: Shared.Direction | null;
790
790
 
791
791
  /**
792
792
  * Returns the first _n_ elements from the list.
@@ -802,28 +802,16 @@ export interface InvoiceListParams extends CursorPageParams {
802
802
  * Which columns can be used to sort.
803
803
  */
804
804
  order?: 'id' | 'created_at' | 'due_date' | null;
805
- }
806
805
 
807
- export namespace InvoiceListParams {
808
806
  /**
809
- * The filters to apply to the invoices
807
+ * Return only invoices created for these specific product ids
810
808
  */
811
- export interface Filters {
812
- /**
813
- * The access pass IDs to filter the invoices by
814
- */
815
- access_pass_ids?: Array<string> | null;
809
+ product_ids?: Array<string> | null;
816
810
 
817
- /**
818
- * The collection methods to filter the invoices by
819
- */
820
- collection_methods?: Array<Shared.CollectionMethod> | null;
821
-
822
- /**
823
- * The statuses to filter the invoices by
824
- */
825
- statuses?: Array<Shared.InvoiceStatus> | null;
826
- }
811
+ /**
812
+ * The statuses to filter the invoices by
813
+ */
814
+ statuses?: Array<Shared.InvoiceStatus> | null;
827
815
  }
828
816
 
829
817
  export declare namespace Invoices {
@@ -8,7 +8,7 @@ import { path } from '../internal/utils/path';
8
8
 
9
9
  export class LedgerAccounts extends APIResource {
10
10
  /**
11
- * Retrieves a ledger account by ID
11
+ * Retrieves a ledger account by its ID, company ID or user ID
12
12
  *
13
13
  * Required permissions:
14
14
  *
@@ -53,9 +53,9 @@ export interface MemberRetrieveResponse {
53
53
 
54
54
  /**
55
55
  * The access level of the product member. If its admin, the member is an
56
- * authorized user of the access pass. If its customer, the member has a valid
57
- * membership to the access pass. If its no_access, the member does not have access
58
- * to the access pass.
56
+ * authorized user of the company. If its customer, the member has a valid
57
+ * membership to any product on the company. If its no_access, the member does not
58
+ * have access to the product.
59
59
  */
60
60
  access_level: Shared.AccessLevel;
61
61
 
@@ -170,9 +170,9 @@ export interface MemberListResponse {
170
170
 
171
171
  /**
172
172
  * The access level of the product member. If its admin, the member is an
173
- * authorized user of the access pass. If its customer, the member has a valid
174
- * membership to the access pass. If its no_access, the member does not have access
175
- * to the access pass.
173
+ * authorized user of the company. If its customer, the member has a valid
174
+ * membership to any product on the company. If its no_access, the member does not
175
+ * have access to the product.
176
176
  */
177
177
  access_level: Shared.AccessLevel;
178
178
 
@@ -256,15 +256,10 @@ export interface MemberListParams extends CursorPageParams {
256
256
  company_id: string;
257
257
 
258
258
  /**
259
- * The access level a given user (or company) has to an access pass or company.
259
+ * The access level a given user (or company) has to a product or company.
260
260
  */
261
261
  access_level?: Shared.AccessLevel | null;
262
262
 
263
- /**
264
- * The access pass IDs to filter the members by
265
- */
266
- access_pass_ids?: Array<string> | null;
267
-
268
263
  /**
269
264
  * Returns the elements in the list that come before the specified cursor.
270
265
  */
@@ -310,6 +305,11 @@ export interface MemberListParams extends CursorPageParams {
310
305
  */
311
306
  plan_ids?: Array<string> | null;
312
307
 
308
+ /**
309
+ * The product IDs to filter the members by
310
+ */
311
+ product_ids?: Array<string> | null;
312
+
313
313
  /**
314
314
  * The promo code IDs to filter the members by
315
315
  */
@@ -297,11 +297,6 @@ export interface MembershipUpdateParams {
297
297
  }
298
298
 
299
299
  export interface MembershipListParams extends CursorPageParams {
300
- /**
301
- * The access pass IDs to filter the memberships by
302
- */
303
- access_pass_ids?: Array<string> | null;
304
-
305
300
  /**
306
301
  * Returns the elements in the list that come before the specified cursor.
307
302
  */
@@ -360,6 +355,11 @@ export interface MembershipListParams extends CursorPageParams {
360
355
  */
361
356
  plan_ids?: Array<string> | null;
362
357
 
358
+ /**
359
+ * The product IDs to filter the memberships by
360
+ */
361
+ product_ids?: Array<string> | null;
362
+
363
363
  /**
364
364
  * The promo code IDs to filter the memberships by
365
365
  */
@@ -63,7 +63,7 @@ export type MessageListResponsesCursorPage = CursorPage<MessageListResponse>;
63
63
  */
64
64
  export interface MessageListResponse {
65
65
  /**
66
- * The unique identifier for the entity
66
+ * The unique identifier of the resource.
67
67
  */
68
68
  id: string;
69
69