@whop/sdk 0.0.4 → 0.0.5

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 (100) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/client.d.mts +7 -4
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +7 -4
  5. package/client.d.ts.map +1 -1
  6. package/client.js +3 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +3 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/access-tokens.d.mts +58 -0
  12. package/resources/access-tokens.d.mts.map +1 -0
  13. package/resources/access-tokens.d.ts +58 -0
  14. package/resources/access-tokens.d.ts.map +1 -0
  15. package/resources/access-tokens.js +25 -0
  16. package/resources/access-tokens.js.map +1 -0
  17. package/resources/access-tokens.mjs +21 -0
  18. package/resources/access-tokens.mjs.map +1 -0
  19. package/resources/checkout-configurations.d.mts +2 -2
  20. package/resources/checkout-configurations.d.ts +2 -2
  21. package/resources/course-lessons.d.mts +121 -1
  22. package/resources/course-lessons.d.mts.map +1 -1
  23. package/resources/course-lessons.d.ts +121 -1
  24. package/resources/course-lessons.d.ts.map +1 -1
  25. package/resources/courses.d.mts +45 -1
  26. package/resources/courses.d.mts.map +1 -1
  27. package/resources/courses.d.ts +45 -1
  28. package/resources/courses.d.ts.map +1 -1
  29. package/resources/entries.d.mts +2 -2
  30. package/resources/entries.d.ts +2 -2
  31. package/resources/forum-posts.d.mts +1 -1
  32. package/resources/forum-posts.d.ts +1 -1
  33. package/resources/index.d.mts +3 -2
  34. package/resources/index.d.mts.map +1 -1
  35. package/resources/index.d.ts +3 -2
  36. package/resources/index.d.ts.map +1 -1
  37. package/resources/index.js +3 -1
  38. package/resources/index.js.map +1 -1
  39. package/resources/index.mjs +1 -0
  40. package/resources/index.mjs.map +1 -1
  41. package/resources/invoices.d.mts +14 -25
  42. package/resources/invoices.d.mts.map +1 -1
  43. package/resources/invoices.d.ts +14 -25
  44. package/resources/invoices.d.ts.map +1 -1
  45. package/resources/ledger-accounts.d.mts +1 -1
  46. package/resources/ledger-accounts.d.ts +1 -1
  47. package/resources/ledger-accounts.js +1 -1
  48. package/resources/ledger-accounts.mjs +1 -1
  49. package/resources/members.d.mts +11 -11
  50. package/resources/members.d.mts.map +1 -1
  51. package/resources/members.d.ts +11 -11
  52. package/resources/members.d.ts.map +1 -1
  53. package/resources/memberships.d.mts +4 -4
  54. package/resources/memberships.d.mts.map +1 -1
  55. package/resources/memberships.d.ts +4 -4
  56. package/resources/memberships.d.ts.map +1 -1
  57. package/resources/messages.d.mts +1 -1
  58. package/resources/messages.d.ts +1 -1
  59. package/resources/payments.d.mts +2 -2
  60. package/resources/payments.d.ts +2 -2
  61. package/resources/plans.d.mts +6 -4
  62. package/resources/plans.d.mts.map +1 -1
  63. package/resources/plans.d.ts +6 -4
  64. package/resources/plans.d.ts.map +1 -1
  65. package/resources/products.d.mts +5 -5
  66. package/resources/products.d.ts +5 -5
  67. package/resources/promo-codes.d.mts +4 -4
  68. package/resources/promo-codes.d.ts +4 -4
  69. package/resources/shared.d.mts +22 -20
  70. package/resources/shared.d.mts.map +1 -1
  71. package/resources/shared.d.ts +22 -20
  72. package/resources/shared.d.ts.map +1 -1
  73. package/resources/users.d.mts +3 -0
  74. package/resources/users.d.mts.map +1 -1
  75. package/resources/users.d.ts +3 -0
  76. package/resources/users.d.ts.map +1 -1
  77. package/src/client.ts +13 -0
  78. package/src/resources/access-tokens.ts +72 -0
  79. package/src/resources/checkout-configurations.ts +2 -2
  80. package/src/resources/course-lessons.ts +146 -0
  81. package/src/resources/courses.ts +54 -0
  82. package/src/resources/entries.ts +2 -2
  83. package/src/resources/forum-posts.ts +1 -1
  84. package/src/resources/index.ts +3 -0
  85. package/src/resources/invoices.ts +14 -26
  86. package/src/resources/ledger-accounts.ts +1 -1
  87. package/src/resources/members.ts +12 -12
  88. package/src/resources/memberships.ts +5 -5
  89. package/src/resources/messages.ts +1 -1
  90. package/src/resources/payments.ts +2 -2
  91. package/src/resources/plans.ts +6 -4
  92. package/src/resources/products.ts +5 -5
  93. package/src/resources/promo-codes.ts +4 -4
  94. package/src/resources/shared.ts +22 -20
  95. package/src/resources/users.ts +3 -0
  96. package/src/version.ts +1 -1
  97. package/version.d.mts +1 -1
  98. package/version.d.ts +1 -1
  99. package/version.js +1 -1
  100. package/version.mjs +1 -1
@@ -0,0 +1,58 @@
1
+ import { APIResource } from "../core/resource.mjs";
2
+ import { APIPromise } from "../core/api-promise.mjs";
3
+ import { RequestOptions } from "../internal/request-options.mjs";
4
+ export declare class AccessTokens extends APIResource {
5
+ /**
6
+ * Creates an access token for a user to access a specific resource. These access
7
+ * tokens are designed to be used with Whop's embedded components.
8
+ *
9
+ * @example
10
+ * ```ts
11
+ * const accessToken = await client.accessTokens.create({
12
+ * scoped_actions: ['string'],
13
+ * target_resource_id: 'target_resource_id',
14
+ * target_resource_type: 'company',
15
+ * });
16
+ * ```
17
+ */
18
+ create(body: AccessTokenCreateParams, options?: RequestOptions): APIPromise<AccessTokenCreateResponse>;
19
+ }
20
+ /**
21
+ * An object representing an access token used for authenticating API requests.
22
+ */
23
+ export interface AccessTokenCreateResponse {
24
+ /**
25
+ * The JWT access token string.
26
+ */
27
+ token: string;
28
+ /**
29
+ * The expiration timestamp of the access token.
30
+ */
31
+ expires_at: string;
32
+ }
33
+ export interface AccessTokenCreateParams {
34
+ /**
35
+ * Array of desired scoped actions for the access token. This list must be a subset
36
+ * of the API keys's existing permissions. Otherwise, an error will be raised.
37
+ */
38
+ scoped_actions: Array<string>;
39
+ /**
40
+ * The ID of the target resource (Company, User, etc.) for which the access token
41
+ * is being created.
42
+ */
43
+ target_resource_id: string;
44
+ /**
45
+ * The type of the target resource (company, user, product, experience, etc.).
46
+ */
47
+ target_resource_type: 'company' | 'product' | 'experience' | 'app' | 'user';
48
+ /**
49
+ * The expiration timestamp for the access token. If not provided, a default
50
+ * expiration time of 1 hour will be used. The expiration can be set to a maximum
51
+ * of 3 hours from the current time.
52
+ */
53
+ expires_at?: string | null;
54
+ }
55
+ export declare namespace AccessTokens {
56
+ export { type AccessTokenCreateResponse as AccessTokenCreateResponse, type AccessTokenCreateParams as AccessTokenCreateParams, };
57
+ }
58
+ //# sourceMappingURL=access-tokens.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"access-tokens.d.mts","sourceRoot":"","sources":["../src/resources/access-tokens.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,IAAI,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,yBAAyB,CAAC;CAGvG;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,uBAAuB;IACtC;;;OAGG;IACH,cAAc,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE9B;;;OAGG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,oBAAoB,EAAE,SAAS,GAAG,SAAS,GAAG,YAAY,GAAG,KAAK,GAAG,MAAM,CAAC;IAE5E;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
@@ -0,0 +1,58 @@
1
+ import { APIResource } from "../core/resource.js";
2
+ import { APIPromise } from "../core/api-promise.js";
3
+ import { RequestOptions } from "../internal/request-options.js";
4
+ export declare class AccessTokens extends APIResource {
5
+ /**
6
+ * Creates an access token for a user to access a specific resource. These access
7
+ * tokens are designed to be used with Whop's embedded components.
8
+ *
9
+ * @example
10
+ * ```ts
11
+ * const accessToken = await client.accessTokens.create({
12
+ * scoped_actions: ['string'],
13
+ * target_resource_id: 'target_resource_id',
14
+ * target_resource_type: 'company',
15
+ * });
16
+ * ```
17
+ */
18
+ create(body: AccessTokenCreateParams, options?: RequestOptions): APIPromise<AccessTokenCreateResponse>;
19
+ }
20
+ /**
21
+ * An object representing an access token used for authenticating API requests.
22
+ */
23
+ export interface AccessTokenCreateResponse {
24
+ /**
25
+ * The JWT access token string.
26
+ */
27
+ token: string;
28
+ /**
29
+ * The expiration timestamp of the access token.
30
+ */
31
+ expires_at: string;
32
+ }
33
+ export interface AccessTokenCreateParams {
34
+ /**
35
+ * Array of desired scoped actions for the access token. This list must be a subset
36
+ * of the API keys's existing permissions. Otherwise, an error will be raised.
37
+ */
38
+ scoped_actions: Array<string>;
39
+ /**
40
+ * The ID of the target resource (Company, User, etc.) for which the access token
41
+ * is being created.
42
+ */
43
+ target_resource_id: string;
44
+ /**
45
+ * The type of the target resource (company, user, product, experience, etc.).
46
+ */
47
+ target_resource_type: 'company' | 'product' | 'experience' | 'app' | 'user';
48
+ /**
49
+ * The expiration timestamp for the access token. If not provided, a default
50
+ * expiration time of 1 hour will be used. The expiration can be set to a maximum
51
+ * of 3 hours from the current time.
52
+ */
53
+ expires_at?: string | null;
54
+ }
55
+ export declare namespace AccessTokens {
56
+ export { type AccessTokenCreateResponse as AccessTokenCreateResponse, type AccessTokenCreateParams as AccessTokenCreateParams, };
57
+ }
58
+ //# sourceMappingURL=access-tokens.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"access-tokens.d.ts","sourceRoot":"","sources":["../src/resources/access-tokens.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,IAAI,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,yBAAyB,CAAC;CAGvG;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,uBAAuB;IACtC;;;OAGG;IACH,cAAc,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE9B;;;OAGG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,oBAAoB,EAAE,SAAS,GAAG,SAAS,GAAG,YAAY,GAAG,KAAK,GAAG,MAAM,CAAC;IAE5E;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.AccessTokens = void 0;
5
+ const resource_1 = require("../core/resource.js");
6
+ class AccessTokens extends resource_1.APIResource {
7
+ /**
8
+ * Creates an access token for a user to access a specific resource. These access
9
+ * tokens are designed to be used with Whop's embedded components.
10
+ *
11
+ * @example
12
+ * ```ts
13
+ * const accessToken = await client.accessTokens.create({
14
+ * scoped_actions: ['string'],
15
+ * target_resource_id: 'target_resource_id',
16
+ * target_resource_type: 'company',
17
+ * });
18
+ * ```
19
+ */
20
+ create(body, options) {
21
+ return this._client.post('/access_tokens', { body, ...options });
22
+ }
23
+ }
24
+ exports.AccessTokens = AccessTokens;
25
+ //# sourceMappingURL=access-tokens.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"access-tokens.js","sourceRoot":"","sources":["../src/resources/access-tokens.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,IAA6B,EAAE,OAAwB;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,gBAAgB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnE,CAAC;CACF;AAjBD,oCAiBC"}
@@ -0,0 +1,21 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../core/resource.mjs";
3
+ export class AccessTokens extends APIResource {
4
+ /**
5
+ * Creates an access token for a user to access a specific resource. These access
6
+ * tokens are designed to be used with Whop's embedded components.
7
+ *
8
+ * @example
9
+ * ```ts
10
+ * const accessToken = await client.accessTokens.create({
11
+ * scoped_actions: ['string'],
12
+ * target_resource_id: 'target_resource_id',
13
+ * target_resource_type: 'company',
14
+ * });
15
+ * ```
16
+ */
17
+ create(body, options) {
18
+ return this._client.post('/access_tokens', { body, ...options });
19
+ }
20
+ }
21
+ //# sourceMappingURL=access-tokens.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"access-tokens.mjs","sourceRoot":"","sources":["../src/resources/access-tokens.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,IAA6B,EAAE,OAAwB;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,gBAAgB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnE,CAAC;CACF"}
@@ -207,7 +207,7 @@ export declare namespace CheckoutConfigurationCreateParams {
207
207
  */
208
208
  payment_method_configuration?: Plan.PaymentMethodConfiguration | null;
209
209
  /**
210
- * The type of plan that can be attached to an access pass
210
+ * The type of plan that can be attached to a product
211
211
  */
212
212
  plan_type?: Shared.PlanType | null;
213
213
  /**
@@ -351,7 +351,7 @@ export declare namespace CheckoutConfigurationCreateParams {
351
351
  */
352
352
  global_affiliate_percentage?: number | null;
353
353
  /**
354
- * The different statuses of the global affiliate program for an access pass.
354
+ * The different statuses of the global affiliate program for a product.
355
355
  */
356
356
  global_affiliate_status?: Shared.GlobalAffiliateStatus | null;
357
357
  /**
@@ -207,7 +207,7 @@ export declare namespace CheckoutConfigurationCreateParams {
207
207
  */
208
208
  payment_method_configuration?: Plan.PaymentMethodConfiguration | null;
209
209
  /**
210
- * The type of plan that can be attached to an access pass
210
+ * The type of plan that can be attached to a product
211
211
  */
212
212
  plan_type?: Shared.PlanType | null;
213
213
  /**
@@ -351,7 +351,7 @@ export declare namespace CheckoutConfigurationCreateParams {
351
351
  */
352
352
  global_affiliate_percentage?: number | null;
353
353
  /**
354
- * The different statuses of the global affiliate program for an access pass.
354
+ * The different statuses of the global affiliate program for a product.
355
355
  */
356
356
  global_affiliate_status?: Shared.GlobalAffiliateStatus | null;
357
357
  /**
@@ -87,6 +87,10 @@ export type CourseLessonListResponsesCursorPage = CursorPage<CourseLessonListRes
87
87
  * The available types for an assessment question
88
88
  */
89
89
  export type AssessmentQuestionTypes = 'short_answer' | 'true_false' | 'multiple_choice' | 'multiple_select';
90
+ /**
91
+ * The type of embed for a lesson
92
+ */
93
+ export type EmbedType = 'youtube' | 'loom';
90
94
  /**
91
95
  * A lesson from the courses app
92
96
  */
@@ -111,6 +115,14 @@ export interface Lesson {
111
115
  * Number of days from course start until the lesson is unlocked
112
116
  */
113
117
  days_from_course_start_until_unlock: number | null;
118
+ /**
119
+ * ID for the embed (YouTube video ID or Loom share ID)
120
+ */
121
+ embed_id: string | null;
122
+ /**
123
+ * The type of embed for a lesson
124
+ */
125
+ embed_type: EmbedType | null;
114
126
  /**
115
127
  * The type of the lesson (text, video, pdf, multi, quiz, knowledge_check)
116
128
  */
@@ -123,6 +135,10 @@ export interface Lesson {
123
135
  * The order of the lesson within its chapter
124
136
  */
125
137
  order: number;
138
+ /**
139
+ * The thumbnail for the lesson
140
+ */
141
+ thumbnail: Lesson.Thumbnail | null;
126
142
  /**
127
143
  * The title of the lesson
128
144
  */
@@ -266,6 +282,16 @@ export declare namespace Lesson {
266
282
  */
267
283
  url: string | null;
268
284
  }
285
+ /**
286
+ * The thumbnail for the lesson
287
+ */
288
+ interface Thumbnail {
289
+ /**
290
+ * This is the URL you use to render optimized attachments on the client. This
291
+ * should be used for apps.
292
+ */
293
+ url: string | null;
294
+ }
269
295
  /**
270
296
  * The associated Mux asset for video lessons
271
297
  */
@@ -309,6 +335,14 @@ export interface CourseLessonListResponse {
309
335
  * Number of days from course start until the lesson is unlocked
310
336
  */
311
337
  days_from_course_start_until_unlock: number | null;
338
+ /**
339
+ * ID for the embed (YouTube video ID or Loom share ID)
340
+ */
341
+ embed_id: string | null;
342
+ /**
343
+ * The type of embed for a lesson
344
+ */
345
+ embed_type: EmbedType | null;
312
346
  /**
313
347
  * The type of the lesson (text, video, pdf, multi, quiz, knowledge_check)
314
348
  */
@@ -317,6 +351,10 @@ export interface CourseLessonListResponse {
317
351
  * The order of the lesson within its chapter
318
352
  */
319
353
  order: number;
354
+ /**
355
+ * The thumbnail for the lesson
356
+ */
357
+ thumbnail: CourseLessonListResponse.Thumbnail | null;
320
358
  /**
321
359
  * The title of the lesson
322
360
  */
@@ -327,6 +365,18 @@ export interface CourseLessonListResponse {
327
365
  */
328
366
  visibility: LessonVisibilities;
329
367
  }
368
+ export declare namespace CourseLessonListResponse {
369
+ /**
370
+ * The thumbnail for the lesson
371
+ */
372
+ interface Thumbnail {
373
+ /**
374
+ * This is the URL you use to render optimized attachments on the client. This
375
+ * should be used for apps.
376
+ */
377
+ url: string | null;
378
+ }
379
+ }
330
380
  /**
331
381
  * Represents `true` or `false` values.
332
382
  */
@@ -348,11 +398,47 @@ export interface CourseLessonCreateParams {
348
398
  * Days from course start until unlock
349
399
  */
350
400
  days_from_course_start_until_unlock?: number | null;
401
+ /**
402
+ * ID for the embed (YouTube video ID or Loom share ID)
403
+ */
404
+ embed_id?: string | null;
405
+ /**
406
+ * The type of embed for a lesson
407
+ */
408
+ embed_type?: EmbedType | null;
409
+ /**
410
+ * The thumbnail for the lesson in png, jpeg, or gif format
411
+ */
412
+ thumbnail?: CourseLessonCreateParams.AttachmentInputWithDirectUploadID | CourseLessonCreateParams.AttachmentInputWithID | null;
351
413
  /**
352
414
  * The title of the lesson
353
415
  */
354
416
  title?: string | null;
355
417
  }
418
+ export declare namespace CourseLessonCreateParams {
419
+ /**
420
+ * Input for an attachment
421
+ */
422
+ interface AttachmentInputWithDirectUploadID {
423
+ /**
424
+ * This ID should be used the first time you upload an attachment. It is the ID of
425
+ * the direct upload that was created when uploading the file to S3 via the
426
+ * mediaDirectUpload mutation.
427
+ */
428
+ direct_upload_id: string;
429
+ }
430
+ /**
431
+ * Input for an attachment
432
+ */
433
+ interface AttachmentInputWithID {
434
+ /**
435
+ * The ID of an existing attachment object. Use this when updating a resource and
436
+ * keeping a subset of the attachments. Don't use this unless you know what you're
437
+ * doing.
438
+ */
439
+ id: string;
440
+ }
441
+ }
356
442
  export interface CourseLessonUpdateParams {
357
443
  /**
358
444
  * Completion requirements for quiz/knowledge check lessons
@@ -376,6 +462,14 @@ export interface CourseLessonUpdateParams {
376
462
  * Days from course start until unlock
377
463
  */
378
464
  days_from_course_start_until_unlock?: number | null;
465
+ /**
466
+ * ID for the embed (YouTube video ID or Loom share ID)
467
+ */
468
+ embed_id?: string | null;
469
+ /**
470
+ * The type of embed for a lesson
471
+ */
472
+ embed_type?: EmbedType | null;
379
473
  /**
380
474
  * The available types for a lesson
381
475
  */
@@ -392,6 +486,10 @@ export interface CourseLessonUpdateParams {
392
486
  * The ID of the Mux asset to attach to this lesson for video lessons
393
487
  */
394
488
  mux_asset_id?: string | null;
489
+ /**
490
+ * The thumbnail for the lesson in png, jpeg, or gif format
491
+ */
492
+ thumbnail?: CourseLessonUpdateParams.AttachmentInputWithDirectUploadID | CourseLessonUpdateParams.AttachmentInputWithID | null;
395
493
  /**
396
494
  * The title of the lesson
397
495
  */
@@ -534,6 +632,28 @@ export declare namespace CourseLessonUpdateParams {
534
632
  */
535
633
  id: string;
536
634
  }
635
+ /**
636
+ * Input for an attachment
637
+ */
638
+ interface AttachmentInputWithDirectUploadID {
639
+ /**
640
+ * This ID should be used the first time you upload an attachment. It is the ID of
641
+ * the direct upload that was created when uploading the file to S3 via the
642
+ * mediaDirectUpload mutation.
643
+ */
644
+ direct_upload_id: string;
645
+ }
646
+ /**
647
+ * Input for an attachment
648
+ */
649
+ interface AttachmentInputWithID {
650
+ /**
651
+ * The ID of an existing attachment object. Use this when updating a resource and
652
+ * keeping a subset of the attachments. Don't use this unless you know what you're
653
+ * doing.
654
+ */
655
+ id: string;
656
+ }
537
657
  }
538
658
  export interface CourseLessonListParams extends CursorPageParams {
539
659
  /**
@@ -558,6 +678,6 @@ export interface CourseLessonListParams extends CursorPageParams {
558
678
  last?: number | null;
559
679
  }
560
680
  export declare namespace CourseLessons {
561
- export { type AssessmentQuestionTypes as AssessmentQuestionTypes, type Lesson as Lesson, type LessonTypes as LessonTypes, type LessonVisibilities as LessonVisibilities, type CourseLessonListResponse as CourseLessonListResponse, type CourseLessonDeleteResponse as CourseLessonDeleteResponse, type CourseLessonListResponsesCursorPage as CourseLessonListResponsesCursorPage, type CourseLessonCreateParams as CourseLessonCreateParams, type CourseLessonUpdateParams as CourseLessonUpdateParams, type CourseLessonListParams as CourseLessonListParams, };
681
+ export { type AssessmentQuestionTypes as AssessmentQuestionTypes, type EmbedType as EmbedType, type Lesson as Lesson, type LessonTypes as LessonTypes, type LessonVisibilities as LessonVisibilities, type CourseLessonListResponse as CourseLessonListResponse, type CourseLessonDeleteResponse as CourseLessonDeleteResponse, type CourseLessonListResponsesCursorPage as CourseLessonListResponsesCursorPage, type CourseLessonCreateParams as CourseLessonCreateParams, type CourseLessonUpdateParams as CourseLessonUpdateParams, type CourseLessonListParams as CourseLessonListParams, };
562
682
  }
563
683
  //# sourceMappingURL=course-lessons.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"course-lessons.d.mts","sourceRoot":"","sources":["../src/resources/course-lessons.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,gBAAgB;OACrB,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,cAAc,EAAE;AAGzB,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,IAAI,EAAE,wBAAwB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC;IAIpF;;;;;;;;;;;;;OAaG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC;IAIlE;;;;;;;;;;;;;OAaG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,IAAI,GAAE,wBAAwB,GAAG,IAAI,GAAG,SAAc,EACtD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,MAAM,CAAC;IAIrB;;;;;;;;;;;;;;OAcG;IACH,IAAI,CACF,KAAK,GAAE,sBAAsB,GAAG,IAAI,GAAG,SAAc,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,mCAAmC,EAAE,wBAAwB,CAAC;IAO7E;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,0BAA0B,CAAC;CAGrF;AAED,MAAM,MAAM,mCAAmC,GAAG,UAAU,CAAC,wBAAwB,CAAC,CAAC;AAEvF;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG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I,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,MAAM,IAAI,MAAM,EACrB,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,mCAAmC,IAAI,mCAAmC,EAC/E,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
@@ -87,6 +87,10 @@ export type CourseLessonListResponsesCursorPage = CursorPage<CourseLessonListRes
87
87
  * The available types for an assessment question
88
88
  */
89
89
  export type AssessmentQuestionTypes = 'short_answer' | 'true_false' | 'multiple_choice' | 'multiple_select';
90
+ /**
91
+ * The type of embed for a lesson
92
+ */
93
+ export type EmbedType = 'youtube' | 'loom';
90
94
  /**
91
95
  * A lesson from the courses app
92
96
  */
@@ -111,6 +115,14 @@ export interface Lesson {
111
115
  * Number of days from course start until the lesson is unlocked
112
116
  */
113
117
  days_from_course_start_until_unlock: number | null;
118
+ /**
119
+ * ID for the embed (YouTube video ID or Loom share ID)
120
+ */
121
+ embed_id: string | null;
122
+ /**
123
+ * The type of embed for a lesson
124
+ */
125
+ embed_type: EmbedType | null;
114
126
  /**
115
127
  * The type of the lesson (text, video, pdf, multi, quiz, knowledge_check)
116
128
  */
@@ -123,6 +135,10 @@ export interface Lesson {
123
135
  * The order of the lesson within its chapter
124
136
  */
125
137
  order: number;
138
+ /**
139
+ * The thumbnail for the lesson
140
+ */
141
+ thumbnail: Lesson.Thumbnail | null;
126
142
  /**
127
143
  * The title of the lesson
128
144
  */
@@ -266,6 +282,16 @@ export declare namespace Lesson {
266
282
  */
267
283
  url: string | null;
268
284
  }
285
+ /**
286
+ * The thumbnail for the lesson
287
+ */
288
+ interface Thumbnail {
289
+ /**
290
+ * This is the URL you use to render optimized attachments on the client. This
291
+ * should be used for apps.
292
+ */
293
+ url: string | null;
294
+ }
269
295
  /**
270
296
  * The associated Mux asset for video lessons
271
297
  */
@@ -309,6 +335,14 @@ export interface CourseLessonListResponse {
309
335
  * Number of days from course start until the lesson is unlocked
310
336
  */
311
337
  days_from_course_start_until_unlock: number | null;
338
+ /**
339
+ * ID for the embed (YouTube video ID or Loom share ID)
340
+ */
341
+ embed_id: string | null;
342
+ /**
343
+ * The type of embed for a lesson
344
+ */
345
+ embed_type: EmbedType | null;
312
346
  /**
313
347
  * The type of the lesson (text, video, pdf, multi, quiz, knowledge_check)
314
348
  */
@@ -317,6 +351,10 @@ export interface CourseLessonListResponse {
317
351
  * The order of the lesson within its chapter
318
352
  */
319
353
  order: number;
354
+ /**
355
+ * The thumbnail for the lesson
356
+ */
357
+ thumbnail: CourseLessonListResponse.Thumbnail | null;
320
358
  /**
321
359
  * The title of the lesson
322
360
  */
@@ -327,6 +365,18 @@ export interface CourseLessonListResponse {
327
365
  */
328
366
  visibility: LessonVisibilities;
329
367
  }
368
+ export declare namespace CourseLessonListResponse {
369
+ /**
370
+ * The thumbnail for the lesson
371
+ */
372
+ interface Thumbnail {
373
+ /**
374
+ * This is the URL you use to render optimized attachments on the client. This
375
+ * should be used for apps.
376
+ */
377
+ url: string | null;
378
+ }
379
+ }
330
380
  /**
331
381
  * Represents `true` or `false` values.
332
382
  */
@@ -348,11 +398,47 @@ export interface CourseLessonCreateParams {
348
398
  * Days from course start until unlock
349
399
  */
350
400
  days_from_course_start_until_unlock?: number | null;
401
+ /**
402
+ * ID for the embed (YouTube video ID or Loom share ID)
403
+ */
404
+ embed_id?: string | null;
405
+ /**
406
+ * The type of embed for a lesson
407
+ */
408
+ embed_type?: EmbedType | null;
409
+ /**
410
+ * The thumbnail for the lesson in png, jpeg, or gif format
411
+ */
412
+ thumbnail?: CourseLessonCreateParams.AttachmentInputWithDirectUploadID | CourseLessonCreateParams.AttachmentInputWithID | null;
351
413
  /**
352
414
  * The title of the lesson
353
415
  */
354
416
  title?: string | null;
355
417
  }
418
+ export declare namespace CourseLessonCreateParams {
419
+ /**
420
+ * Input for an attachment
421
+ */
422
+ interface AttachmentInputWithDirectUploadID {
423
+ /**
424
+ * This ID should be used the first time you upload an attachment. It is the ID of
425
+ * the direct upload that was created when uploading the file to S3 via the
426
+ * mediaDirectUpload mutation.
427
+ */
428
+ direct_upload_id: string;
429
+ }
430
+ /**
431
+ * Input for an attachment
432
+ */
433
+ interface AttachmentInputWithID {
434
+ /**
435
+ * The ID of an existing attachment object. Use this when updating a resource and
436
+ * keeping a subset of the attachments. Don't use this unless you know what you're
437
+ * doing.
438
+ */
439
+ id: string;
440
+ }
441
+ }
356
442
  export interface CourseLessonUpdateParams {
357
443
  /**
358
444
  * Completion requirements for quiz/knowledge check lessons
@@ -376,6 +462,14 @@ export interface CourseLessonUpdateParams {
376
462
  * Days from course start until unlock
377
463
  */
378
464
  days_from_course_start_until_unlock?: number | null;
465
+ /**
466
+ * ID for the embed (YouTube video ID or Loom share ID)
467
+ */
468
+ embed_id?: string | null;
469
+ /**
470
+ * The type of embed for a lesson
471
+ */
472
+ embed_type?: EmbedType | null;
379
473
  /**
380
474
  * The available types for a lesson
381
475
  */
@@ -392,6 +486,10 @@ export interface CourseLessonUpdateParams {
392
486
  * The ID of the Mux asset to attach to this lesson for video lessons
393
487
  */
394
488
  mux_asset_id?: string | null;
489
+ /**
490
+ * The thumbnail for the lesson in png, jpeg, or gif format
491
+ */
492
+ thumbnail?: CourseLessonUpdateParams.AttachmentInputWithDirectUploadID | CourseLessonUpdateParams.AttachmentInputWithID | null;
395
493
  /**
396
494
  * The title of the lesson
397
495
  */
@@ -534,6 +632,28 @@ export declare namespace CourseLessonUpdateParams {
534
632
  */
535
633
  id: string;
536
634
  }
635
+ /**
636
+ * Input for an attachment
637
+ */
638
+ interface AttachmentInputWithDirectUploadID {
639
+ /**
640
+ * This ID should be used the first time you upload an attachment. It is the ID of
641
+ * the direct upload that was created when uploading the file to S3 via the
642
+ * mediaDirectUpload mutation.
643
+ */
644
+ direct_upload_id: string;
645
+ }
646
+ /**
647
+ * Input for an attachment
648
+ */
649
+ interface AttachmentInputWithID {
650
+ /**
651
+ * The ID of an existing attachment object. Use this when updating a resource and
652
+ * keeping a subset of the attachments. Don't use this unless you know what you're
653
+ * doing.
654
+ */
655
+ id: string;
656
+ }
537
657
  }
538
658
  export interface CourseLessonListParams extends CursorPageParams {
539
659
  /**
@@ -558,6 +678,6 @@ export interface CourseLessonListParams extends CursorPageParams {
558
678
  last?: number | null;
559
679
  }
560
680
  export declare namespace CourseLessons {
561
- export { type AssessmentQuestionTypes as AssessmentQuestionTypes, type Lesson as Lesson, type LessonTypes as LessonTypes, type LessonVisibilities as LessonVisibilities, type CourseLessonListResponse as CourseLessonListResponse, type CourseLessonDeleteResponse as CourseLessonDeleteResponse, type CourseLessonListResponsesCursorPage as CourseLessonListResponsesCursorPage, type CourseLessonCreateParams as CourseLessonCreateParams, type CourseLessonUpdateParams as CourseLessonUpdateParams, type CourseLessonListParams as CourseLessonListParams, };
681
+ export { type AssessmentQuestionTypes as AssessmentQuestionTypes, type EmbedType as EmbedType, type Lesson as Lesson, type LessonTypes as LessonTypes, type LessonVisibilities as LessonVisibilities, type CourseLessonListResponse as CourseLessonListResponse, type CourseLessonDeleteResponse as CourseLessonDeleteResponse, type CourseLessonListResponsesCursorPage as CourseLessonListResponsesCursorPage, type CourseLessonCreateParams as CourseLessonCreateParams, type CourseLessonUpdateParams as CourseLessonUpdateParams, type CourseLessonListParams as CourseLessonListParams, };
562
682
  }
563
683
  //# sourceMappingURL=course-lessons.d.ts.map