@wave-av/sdk 2.0.3 → 2.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 (127) hide show
  1. package/CHANGELOG.md +9 -50
  2. package/dist/audience.d.ts +105 -0
  3. package/dist/audience.d.ts.map +1 -0
  4. package/dist/billing-types.d.ts +39 -0
  5. package/dist/billing-types.d.ts.map +1 -0
  6. package/dist/billing-types.js +18 -0
  7. package/dist/billing-types.mjs +0 -0
  8. package/dist/billing.d.ts +69 -0
  9. package/dist/billing.d.ts.map +1 -0
  10. package/dist/billing.js +139 -0
  11. package/dist/billing.mjs +9 -0
  12. package/dist/camera-control.d.ts +55 -0
  13. package/dist/camera-control.d.ts.map +1 -0
  14. package/dist/captions-types.d.ts +119 -0
  15. package/dist/captions-types.d.ts.map +1 -0
  16. package/dist/captions.d.ts +218 -0
  17. package/dist/captions.d.ts.map +1 -0
  18. package/dist/chapters-types.d.ts +87 -0
  19. package/dist/chapters-types.d.ts.map +1 -0
  20. package/dist/chapters.d.ts +207 -0
  21. package/dist/chapters.d.ts.map +1 -0
  22. package/dist/chunk-I3V47I4W.mjs +114 -0
  23. package/dist/client-types.d.ts +59 -0
  24. package/dist/client-types.d.ts.map +1 -0
  25. package/dist/client.d.ts +119 -0
  26. package/dist/client.d.ts.map +1 -0
  27. package/dist/clips-types.d.ts +31 -0
  28. package/dist/clips-types.d.ts.map +1 -0
  29. package/dist/clips.d.ts +230 -0
  30. package/dist/clips.d.ts.map +1 -0
  31. package/dist/cloud-switcher.d.ts +66 -0
  32. package/dist/cloud-switcher.d.ts.map +1 -0
  33. package/dist/collab-types.d.ts +205 -0
  34. package/dist/collab-types.d.ts.map +1 -0
  35. package/dist/collab.d.ts +227 -0
  36. package/dist/collab.d.ts.map +1 -0
  37. package/dist/connect.d.ts +89 -0
  38. package/dist/connect.d.ts.map +1 -0
  39. package/dist/creator.d.ts +110 -0
  40. package/dist/creator.d.ts.map +1 -0
  41. package/dist/desktop.d.ts +96 -0
  42. package/dist/desktop.d.ts.map +1 -0
  43. package/dist/distribution.d.ts +93 -0
  44. package/dist/distribution.d.ts.map +1 -0
  45. package/dist/drm.d.ts +88 -0
  46. package/dist/drm.d.ts.map +1 -0
  47. package/dist/edge.d.ts +113 -0
  48. package/dist/edge.d.ts.map +1 -0
  49. package/dist/editor-types.d.ts +237 -0
  50. package/dist/editor-types.d.ts.map +1 -0
  51. package/dist/editor.d.ts +207 -0
  52. package/dist/editor.d.ts.map +1 -0
  53. package/dist/fleet.d.ts +208 -0
  54. package/dist/fleet.d.ts.map +1 -0
  55. package/dist/ghost.d.ts +214 -0
  56. package/dist/ghost.d.ts.map +1 -0
  57. package/dist/index.d.ts +131 -0
  58. package/dist/index.d.ts.map +1 -0
  59. package/dist/index.js +114 -0
  60. package/dist/index.mjs +49 -43
  61. package/dist/marketplace.d.ts +91 -0
  62. package/dist/marketplace.d.ts.map +1 -0
  63. package/dist/mesh.d.ts +238 -0
  64. package/dist/mesh.d.ts.map +1 -0
  65. package/dist/notifications.d.ts +83 -0
  66. package/dist/notifications.d.ts.map +1 -0
  67. package/dist/phone-types.d.ts +111 -0
  68. package/dist/phone-types.d.ts.map +1 -0
  69. package/dist/phone.d.ts +235 -0
  70. package/dist/phone.d.ts.map +1 -0
  71. package/dist/pipeline-types.d.ts +188 -0
  72. package/dist/pipeline-types.d.ts.map +1 -0
  73. package/dist/pipeline.d.ts +224 -0
  74. package/dist/pipeline.d.ts.map +1 -0
  75. package/dist/podcast.d.ts +114 -0
  76. package/dist/podcast.d.ts.map +1 -0
  77. package/dist/prism.d.ts +133 -0
  78. package/dist/prism.d.ts.map +1 -0
  79. package/dist/prompter.d.ts +185 -0
  80. package/dist/prompter.d.ts.map +1 -0
  81. package/dist/pulse.d.ts +157 -0
  82. package/dist/pulse.d.ts.map +1 -0
  83. package/dist/qr.d.ts +83 -0
  84. package/dist/qr.d.ts.map +1 -0
  85. package/dist/replay.d.ts +53 -0
  86. package/dist/replay.d.ts.map +1 -0
  87. package/dist/scene-types.d.ts +191 -0
  88. package/dist/scene-types.d.ts.map +1 -0
  89. package/dist/scene.d.ts +214 -0
  90. package/dist/scene.d.ts.map +1 -0
  91. package/dist/search-types.d.ts +211 -0
  92. package/dist/search-types.d.ts.map +1 -0
  93. package/dist/search.d.ts +251 -0
  94. package/dist/search.d.ts.map +1 -0
  95. package/dist/sentiment-types.d.ts +108 -0
  96. package/dist/sentiment-types.d.ts.map +1 -0
  97. package/dist/sentiment.d.ts +247 -0
  98. package/dist/sentiment.d.ts.map +1 -0
  99. package/dist/signage.d.ts +102 -0
  100. package/dist/signage.d.ts.map +1 -0
  101. package/dist/slides.d.ts +69 -0
  102. package/dist/slides.d.ts.map +1 -0
  103. package/dist/studio-ai-types.d.ts +199 -0
  104. package/dist/studio-ai-types.d.ts.map +1 -0
  105. package/dist/studio-ai.d.ts +219 -0
  106. package/dist/studio-ai.d.ts.map +1 -0
  107. package/dist/studio-types.d.ts +268 -0
  108. package/dist/studio-types.d.ts.map +1 -0
  109. package/dist/studio.d.ts +235 -0
  110. package/dist/studio.d.ts.map +1 -0
  111. package/dist/telemetry.d.ts +77 -0
  112. package/dist/telemetry.d.ts.map +1 -0
  113. package/dist/transcribe-types.d.ts +154 -0
  114. package/dist/transcribe-types.d.ts.map +1 -0
  115. package/dist/transcribe.d.ts +219 -0
  116. package/dist/transcribe.d.ts.map +1 -0
  117. package/dist/usb.d.ts +65 -0
  118. package/dist/usb.d.ts.map +1 -0
  119. package/dist/vault.d.ts +122 -0
  120. package/dist/vault.d.ts.map +1 -0
  121. package/dist/voice-types.d.ts +107 -0
  122. package/dist/voice-types.d.ts.map +1 -0
  123. package/dist/voice.d.ts +178 -0
  124. package/dist/voice.d.ts.map +1 -0
  125. package/dist/zoom.d.ts +92 -0
  126. package/dist/zoom.d.ts.map +1 -0
  127. package/package.json +86 -86
@@ -0,0 +1,131 @@
1
+ /**
2
+ * WAVE SDK - Official TypeScript SDK
3
+ *
4
+ * A comprehensive SDK for interacting with all WAVE API products across
5
+ * streaming, production, device management, analytics, content, and more.
6
+ *
7
+ * @packageDocumentation
8
+ */
9
+ export { WaveClient, createClient, WaveError, RateLimitError, type WaveClientConfig, type RequestOptions, type WaveAPIErrorResponse, type WaveClientEvents, type PaginationParams, type PaginatedResponse, type MediaType, type Timestamps, type Metadata, } from "./client";
10
+ export { BillingAPI, createBillingAPI, type MeterType, type UsageEvent, type UsageSummary, type SubscriptionStatus, type UsageThresholdCallback, type BillingAPIConfig, } from "./billing";
11
+ export { ClipsAPI, createClipsAPI, type Clip, type ClipStatus, type ClipExportFormat, type ClipQualityPreset, type ClipSource, type CreateClipRequest, type UpdateClipRequest, type ListClipsParams, type ExportClipRequest, type ClipExport, type ClipHighlight, } from "./clips";
12
+ export { EditorAPI, createEditorAPI, type EditorProject, type ProjectStatus, type Track, type TrackType, type TimelineElement, type Transition, type TransitionType, type Effect, type EffectType, type Keyframe, type TextOverlay, type TextAnimation, type CreateProjectRequest, type UpdateProjectRequest, type AddElementRequest, type RenderOptions, type RenderJob, type ListProjectsParams, } from "./editor";
13
+ export { VoiceAPI, createVoiceAPI, type Voice, type VoiceModelType, type VoiceGender, type AudioFormat, type SynthesizeRequest, type SynthesisResult, type CloneVoiceRequest, type VoiceCloneJob, type ListVoicesParams, type VoiceSettings, } from "./voice";
14
+ export { PhoneAPI, createPhoneAPI, type PhoneNumber, type PhoneNumberType, type PhoneNumberCapabilities, type Call, type CallStatus, type CallDirection, type MakeCallRequest, type UpdateCallRequest, type Conference, type ConferenceParticipant, type SearchNumbersRequest, type AvailablePhoneNumber, type ListCallsParams, } from "./phone";
15
+ export { CollabAPI, createCollabAPI, type CollabRoom, type RoomStatus, type RoomSettings, type Participant, type ParticipantRole, type ParticipantPermissions, type PresenceStatus, type CursorPosition, type Selection, type Comment, type Reaction, type Annotation, type CreateRoomRequest, type UpdateRoomRequest, type InviteRequest, type ListRoomsParams, } from "./collab";
16
+ export { CaptionsAPI, createCaptionsAPI, type CaptionTrack, type CaptionStatus, type CaptionFormat, type CaptionCue, type CaptionWord, type CaptionStyle, type GenerateCaptionsRequest, type UploadCaptionsRequest, type UpdateCaptionsRequest, type TranslateCaptionsRequest, type BurnInCaptionsRequest, type BurnInJob, type ListCaptionsParams, } from "./captions";
17
+ export { ChaptersAPI, createChaptersAPI, type Chapter, type ChapterSet, type ChapterStatus, type GenerateChaptersRequest, type CreateChapterSetRequest, type CreateChapterRequest, type UpdateChapterRequest, type UpdateChapterSetRequest, type ListChapterSetsParams, } from "./chapters";
18
+ export { StudioAIAPI, createStudioAIAPI, type AIAssistant, type AssistantMode, type AssistantConfig, type AssistantStats, type AISuggestion, type SuggestionPriority, type SuggestionStatus, type SuggestionAction, type SceneRecommendation, type GraphicsSuggestion, type AudioMixSuggestion, type ModerationAlert, type EngagementInsight, type StartAssistantRequest, type UpdateAssistantRequest, type ListSuggestionsParams, } from "./studio-ai";
19
+ export { TranscribeAPI, createTranscribeAPI, type Transcription, type TranscriptionStatus, type TranscriptionModel, type TranscriptionSegment, type TranscriptionWord, type Speaker, type CreateTranscriptionRequest, type UpdateTranscriptionRequest, type ListTranscriptionsParams, type TranscriptExportFormat, } from "./transcribe";
20
+ export { SentimentAPI, createSentimentAPI, type SentimentAnalysis, type AnalysisStatus, type SentimentLabel, type EmotionType, type SourceType, type SentimentSegment, type EmotionScore, type SentimentTrend, type SentimentSummary, type KeyMoment, type TopicSentiment, type CreateAnalysisRequest, type BatchAnalysisRequest, type ListAnalysesParams, } from "./sentiment";
21
+ export { SearchAPI, createSearchAPI, type SearchResult, type SearchResultType, type SearchMode, type SearchSortOrder, type SearchHighlight, type SearchFacet, type SearchSuggestion, type SearchRequest, type SearchFilters, type SearchResponse, type VisualSearchRequest, type AudioSearchRequest, type IndexStatus, } from "./search";
22
+ export { SceneAPI, createSceneAPI, type SceneDetection, type SceneDetectionStatus, type Scene, type SceneType, type Shot, type ShotType, type SceneLabel, type VisualFeatures, type AudioFeatures, type SceneBoundary, type CreateSceneDetectionRequest, type ListSceneDetectionsParams, type SceneComparison, } from "./scene";
23
+ export { PipelineAPI, createPipelineAPI } from "./pipeline";
24
+ export { StudioAPI, createStudioAPI } from "./studio";
25
+ export { FleetAPI, createFleetAPI } from "./fleet";
26
+ export { GhostAPI, createGhostAPI } from "./ghost";
27
+ export { MeshAPI, createMeshAPI } from "./mesh";
28
+ export { EdgeAPI, createEdgeAPI } from "./edge";
29
+ export { PulseAPI, createPulseAPI } from "./pulse";
30
+ export { PrismAPI, createPrismAPI } from "./prism";
31
+ export { ZoomAPI, createZoomAPI } from "./zoom";
32
+ export { VaultAPI, createVaultAPI } from "./vault";
33
+ export { MarketplaceAPI, createMarketplaceAPI } from "./marketplace";
34
+ export { ConnectAPI, createConnectAPI } from "./connect";
35
+ export { DistributionAPI, createDistributionAPI } from "./distribution";
36
+ export { DesktopAPI, createDesktopAPI } from "./desktop";
37
+ export { SignageAPI, createSignageAPI } from "./signage";
38
+ export { QrAPI, createQrAPI } from "./qr";
39
+ export { AudienceAPI, createAudienceAPI } from "./audience";
40
+ export { CreatorAPI, createCreatorAPI } from "./creator";
41
+ export { PodcastAPI, createPodcastAPI } from "./podcast";
42
+ export { SlidesAPI, createSlidesAPI } from "./slides";
43
+ export { UsbAPI, createUsbAPI } from "./usb";
44
+ export { NotificationsAPI, createNotificationsAPI } from "./notifications";
45
+ export { DrmAPI, createDrmAPI } from "./drm";
46
+ export { withTelemetry, withTelemetrySync, initTelemetry, resetTelemetry, isTelemetryEnabled, type TelemetryConfig, type TelemetrySpanAttributes, } from "./telemetry";
47
+ import type { WaveClientConfig } from "./client";
48
+ import { WaveClient } from "./client";
49
+ import { ClipsAPI } from "./clips";
50
+ import { EditorAPI } from "./editor";
51
+ import { VoiceAPI } from "./voice";
52
+ import { PhoneAPI } from "./phone";
53
+ import { CollabAPI } from "./collab";
54
+ import { CaptionsAPI } from "./captions";
55
+ import { ChaptersAPI } from "./chapters";
56
+ import { StudioAIAPI } from "./studio-ai";
57
+ import { TranscribeAPI } from "./transcribe";
58
+ import { SentimentAPI } from "./sentiment";
59
+ import { SearchAPI } from "./search";
60
+ import { SceneAPI } from "./scene";
61
+ import { PipelineAPI } from "./pipeline";
62
+ import { StudioAPI } from "./studio";
63
+ import { FleetAPI } from "./fleet";
64
+ import { GhostAPI } from "./ghost";
65
+ import { MeshAPI } from "./mesh";
66
+ import { EdgeAPI } from "./edge";
67
+ import { PulseAPI } from "./pulse";
68
+ import { PrismAPI } from "./prism";
69
+ import { ZoomAPI } from "./zoom";
70
+ import { VaultAPI } from "./vault";
71
+ import { MarketplaceAPI } from "./marketplace";
72
+ import { ConnectAPI } from "./connect";
73
+ import { DistributionAPI } from "./distribution";
74
+ import { DesktopAPI } from "./desktop";
75
+ import { SignageAPI } from "./signage";
76
+ import { QrAPI } from "./qr";
77
+ import { AudienceAPI } from "./audience";
78
+ import { CreatorAPI } from "./creator";
79
+ import { PodcastAPI } from "./podcast";
80
+ import { SlidesAPI } from "./slides";
81
+ import { UsbAPI } from "./usb";
82
+ import { NotificationsAPI } from "./notifications";
83
+ import { DrmAPI } from "./drm";
84
+ /**
85
+ * Full WAVE SDK client with all APIs attached
86
+ */
87
+ export declare class Wave {
88
+ readonly client: WaveClient;
89
+ readonly clips: ClipsAPI;
90
+ readonly editor: EditorAPI;
91
+ readonly voice: VoiceAPI;
92
+ readonly phone: PhoneAPI;
93
+ readonly collab: CollabAPI;
94
+ readonly captions: CaptionsAPI;
95
+ readonly chapters: ChaptersAPI;
96
+ readonly studioAI: StudioAIAPI;
97
+ readonly transcribe: TranscribeAPI;
98
+ readonly sentiment: SentimentAPI;
99
+ readonly search: SearchAPI;
100
+ readonly scene: SceneAPI;
101
+ readonly pipeline: PipelineAPI;
102
+ readonly studio: StudioAPI;
103
+ readonly fleet: FleetAPI;
104
+ readonly ghost: GhostAPI;
105
+ readonly mesh: MeshAPI;
106
+ readonly edge: EdgeAPI;
107
+ readonly pulse: PulseAPI;
108
+ readonly prism: PrismAPI;
109
+ readonly zoom: ZoomAPI;
110
+ readonly vault: VaultAPI;
111
+ readonly marketplace: MarketplaceAPI;
112
+ readonly connect: ConnectAPI;
113
+ readonly distribution: DistributionAPI;
114
+ readonly desktop: DesktopAPI;
115
+ readonly signage: SignageAPI;
116
+ readonly qr: QrAPI;
117
+ readonly audience: AudienceAPI;
118
+ readonly creator: CreatorAPI;
119
+ readonly podcast: PodcastAPI;
120
+ readonly slides: SlidesAPI;
121
+ readonly usb: UsbAPI;
122
+ readonly notifications: NotificationsAPI;
123
+ readonly drm: DrmAPI;
124
+ constructor(config: WaveClientConfig);
125
+ }
126
+ /**
127
+ * Create a full Wave SDK instance
128
+ */
129
+ export declare function createWave(config: WaveClientConfig): Wave;
130
+ export default Wave;
131
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,EACL,UAAU,EACV,YAAY,EACZ,SAAS,EACT,cAAc,EACd,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,SAAS,EACd,KAAK,UAAU,EACf,KAAK,QAAQ,GACd,MAAM,UAAU,CAAC;AAGlB,OAAO,EACL,UAAU,EACV,gBAAgB,EAChB,KAAK,SAAS,EACd,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC3B,KAAK,gBAAgB,GACtB,MAAM,WAAW,CAAC;AAGnB,OAAO,EACL,QAAQ,EACR,cAAc,EACd,KAAK,IAAI,EACT,KAAK,UAAU,EACf,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,UAAU,EACf,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK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C;IAGhC,SAAgB,QAAQ,EAAE,WAAW,CAAC;IACtC,SAAgB,MAAM,EAAE,SAAS,CAAC;IAGlC,SAAgB,KAAK,EAAE,QAAQ,CAAC;IAChC,SAAgB,KAAK,EAAE,QAAQ,CAAC;IAChC,SAAgB,IAAI,EAAE,OAAO,CAAC;IAC9B,SAAgB,IAAI,EAAE,OAAO,CAAC;IAC9B,SAAgB,KAAK,EAAE,QAAQ,CAAC;IAChC,SAAgB,KAAK,EAAE,QAAQ,CAAC;IAChC,SAAgB,IAAI,EAAE,OAAO,CAAC;IAG9B,SAAgB,KAAK,EAAE,QAAQ,CAAC;IAChC,SAAgB,WAAW,EAAE,cAAc,CAAC;IAC5C,SAAgB,OAAO,EAAE,UAAU,CAAC;IACpC,SAAgB,YAAY,EAAE,eAAe,CAAC;IAC9C,SAAgB,OAAO,EAAE,UAAU,CAAC;IACpC,SAAgB,OAAO,EAAE,UAAU,CAAC;IACpC,SAAgB,EAAE,EAAE,KAAK,CAAC;IAC1B,SAAgB,QAAQ,EAAE,WAAW,CAAC;IACtC,SAAgB,OAAO,EAAE,UAAU,CAAC;IAGpC,SAAgB,OAAO,EAAE,UAAU,CAAC;IACpC,SAAgB,MAAM,EAAE,SAAS,CAAC;IAClC,SAAgB,GAAG,EAAE,MAAM,CAAC;IAG5B,SAAgB,aAAa,EAAE,gBAAgB,CAAC;IAChD,SAAgB,GAAG,EAAE,MAAM,CAAC;gBAEhB,MAAM,EAAE,gBAAgB;CAkDrC;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,gBAAgB,GAAG,IAAI,CAEzD;AAGD,eAAe,IAAI,CAAC"}
package/dist/index.js CHANGED
@@ -21,6 +21,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
21
21
  var index_exports = {};
22
22
  __export(index_exports, {
23
23
  AudienceAPI: () => AudienceAPI,
24
+ BillingAPI: () => BillingAPI,
24
25
  CaptionsAPI: () => CaptionsAPI,
25
26
  ChaptersAPI: () => ChaptersAPI,
26
27
  ClipsAPI: () => ClipsAPI,
@@ -60,6 +61,7 @@ __export(index_exports, {
60
61
  WaveError: () => WaveError,
61
62
  ZoomAPI: () => ZoomAPI,
62
63
  createAudienceAPI: () => createAudienceAPI,
64
+ createBillingAPI: () => createBillingAPI,
63
65
  createCaptionsAPI: () => createCaptionsAPI,
64
66
  createChaptersAPI: () => createChaptersAPI,
65
67
  createClient: () => createClient,
@@ -452,6 +454,116 @@ function createClient(config) {
452
454
  return new WaveClient(config);
453
455
  }
454
456
 
457
+ // src/billing.ts
458
+ var BillingAPI = class {
459
+ client;
460
+ thresholds = [];
461
+ pollInterval = null;
462
+ config;
463
+ constructor(client, config) {
464
+ this.client = client;
465
+ this.config = {
466
+ pollIntervalMs: config?.pollIntervalMs ?? 6e4
467
+ };
468
+ }
469
+ /**
470
+ * Report a usage event to a billing meter.
471
+ * Events are aggregated by Stripe Billing Meters.
472
+ */
473
+ async reportUsage(event) {
474
+ await this.client.request("POST", "/billing/usage/track", {
475
+ meter_type: event.meterType,
476
+ value: event.value,
477
+ idempotency_key: event.idempotencyKey,
478
+ timestamp: event.timestamp?.toISOString(),
479
+ dimensions: event.dimensions
480
+ });
481
+ }
482
+ /**
483
+ * Report multiple usage events in a single request.
484
+ */
485
+ async reportUsageBatch(events) {
486
+ await this.client.request("POST", "/billing/usage/track/batch", {
487
+ events: events.map((e) => ({
488
+ meter_type: e.meterType,
489
+ value: e.value,
490
+ idempotency_key: e.idempotencyKey,
491
+ timestamp: e.timestamp?.toISOString(),
492
+ dimensions: e.dimensions
493
+ }))
494
+ });
495
+ }
496
+ /**
497
+ * Get current usage summary for a meter in the current billing period.
498
+ */
499
+ async getUsageSummary(meterType) {
500
+ return this.client.request("GET", `/billing/usage/meters?meter=${meterType}`);
501
+ }
502
+ /**
503
+ * Get usage summaries for all 6 billing meters.
504
+ */
505
+ async getAllUsageSummaries() {
506
+ return this.client.request("GET", "/billing/usage/meters");
507
+ }
508
+ /**
509
+ * Get current subscription status.
510
+ */
511
+ async getSubscriptionStatus() {
512
+ return this.client.request("GET", "/billing/status");
513
+ }
514
+ /**
515
+ * Register a callback when usage crosses a threshold percentage.
516
+ * Starts polling usage data if not already polling.
517
+ */
518
+ onUsageThreshold(meterType, thresholdPercent, callback) {
519
+ const entry = {
520
+ meterType,
521
+ threshold: thresholdPercent,
522
+ callback
523
+ };
524
+ this.thresholds.push(entry);
525
+ if (!this.pollInterval) {
526
+ this.startPolling();
527
+ }
528
+ return () => {
529
+ const idx = this.thresholds.indexOf(entry);
530
+ if (idx >= 0) this.thresholds.splice(idx, 1);
531
+ if (this.thresholds.length === 0) this.stopPolling();
532
+ };
533
+ }
534
+ /**
535
+ * Stop all polling and clean up.
536
+ */
537
+ destroy() {
538
+ this.stopPolling();
539
+ this.thresholds = [];
540
+ }
541
+ startPolling() {
542
+ this.pollInterval = setInterval(async () => {
543
+ try {
544
+ const summaries = await this.getAllUsageSummaries();
545
+ for (const summary of summaries) {
546
+ for (const threshold of this.thresholds) {
547
+ if (threshold.meterType === summary.meterType && summary.percentUsed >= threshold.threshold) {
548
+ threshold.callback(summary);
549
+ }
550
+ }
551
+ }
552
+ } catch {
553
+ }
554
+ }, this.config.pollIntervalMs);
555
+ }
556
+ stopPolling() {
557
+ if (this.pollInterval) {
558
+ clearInterval(this.pollInterval);
559
+ this.pollInterval = null;
560
+ }
561
+ }
562
+ };
563
+ function createBillingAPI(client, config) {
564
+ return new BillingAPI(client, config);
565
+ }
566
+
455
567
  // src/clips.ts
456
568
  var ClipsAPI = class {
457
569
  client;
@@ -5384,6 +5496,7 @@ var index_default = Wave;
5384
5496
  // Annotate the CommonJS export names for ESM import in node:
5385
5497
  0 && (module.exports = {
5386
5498
  AudienceAPI,
5499
+ BillingAPI,
5387
5500
  CaptionsAPI,
5388
5501
  ChaptersAPI,
5389
5502
  ClipsAPI,
@@ -5423,6 +5536,7 @@ var index_default = Wave;
5423
5536
  WaveError,
5424
5537
  ZoomAPI,
5425
5538
  createAudienceAPI,
5539
+ createBillingAPI,
5426
5540
  createCaptionsAPI,
5427
5541
  createChaptersAPI,
5428
5542
  createClient,
package/dist/index.mjs CHANGED
@@ -1,11 +1,20 @@
1
+ import {
2
+ VoiceAPI,
3
+ createVoiceAPI
4
+ } from "./chunk-M4Z33V3N.mjs";
1
5
  import {
2
6
  ZoomAPI,
3
7
  createZoomAPI
4
8
  } from "./chunk-MRFDPPFK.mjs";
9
+ import {
10
+ StudioAIAPI,
11
+ createStudioAIAPI
12
+ } from "./chunk-KCEPNS2U.mjs";
5
13
  import {
6
14
  StudioAPI,
7
15
  createStudioAPI
8
16
  } from "./chunk-XWABBOSX.mjs";
17
+ import "./chunk-XMM5J57W.mjs";
9
18
  import {
10
19
  TranscribeAPI,
11
20
  createTranscribeAPI
@@ -20,13 +29,14 @@ import {
20
29
  createVaultAPI
21
30
  } from "./chunk-FLEFYLDM.mjs";
22
31
  import {
23
- VoiceAPI,
24
- createVoiceAPI
25
- } from "./chunk-M4Z33V3N.mjs";
32
+ SceneAPI,
33
+ createSceneAPI
34
+ } from "./chunk-IGDBED5P.mjs";
26
35
  import {
27
36
  SearchAPI,
28
37
  createSearchAPI
29
38
  } from "./chunk-A344OOT7.mjs";
39
+ import "./chunk-ZJO7AP4Q.mjs";
30
40
  import {
31
41
  SentimentAPI,
32
42
  createSentimentAPI
@@ -39,12 +49,15 @@ import {
39
49
  SlidesAPI,
40
50
  createSlidesAPI
41
51
  } from "./chunk-VPKZUXZW.mjs";
42
- import {
43
- StudioAIAPI,
44
- createStudioAIAPI
45
- } from "./chunk-KCEPNS2U.mjs";
46
52
  import "./chunk-4KD5F6E3.mjs";
47
- import "./chunk-XMM5J57W.mjs";
53
+ import {
54
+ PipelineAPI,
55
+ createPipelineAPI
56
+ } from "./chunk-O6DOGYP5.mjs";
57
+ import {
58
+ PodcastAPI,
59
+ createPodcastAPI
60
+ } from "./chunk-3ZLK4J3V.mjs";
48
61
  import {
49
62
  PrismAPI,
50
63
  createPrismAPI
@@ -57,12 +70,11 @@ import {
57
70
  QrAPI,
58
71
  createQrAPI
59
72
  } from "./chunk-362MRITF.mjs";
60
- import {
61
- SceneAPI,
62
- createSceneAPI
63
- } from "./chunk-IGDBED5P.mjs";
64
73
  import "./chunk-IL2SGWBC.mjs";
65
- import "./chunk-ZJO7AP4Q.mjs";
74
+ import {
75
+ GhostAPI,
76
+ createGhostAPI
77
+ } from "./chunk-JC32PG3T.mjs";
66
78
  import {
67
79
  MarketplaceAPI,
68
80
  createMarketplaceAPI
@@ -80,13 +92,13 @@ import {
80
92
  createPhoneAPI
81
93
  } from "./chunk-M744Z327.mjs";
82
94
  import {
83
- PipelineAPI,
84
- createPipelineAPI
85
- } from "./chunk-O6DOGYP5.mjs";
95
+ CreatorAPI,
96
+ createCreatorAPI
97
+ } from "./chunk-LVOVF6XC.mjs";
86
98
  import {
87
- PodcastAPI,
88
- createPodcastAPI
89
- } from "./chunk-3ZLK4J3V.mjs";
99
+ DesktopAPI,
100
+ createDesktopAPI
101
+ } from "./chunk-4DG4OBRD.mjs";
90
102
  import {
91
103
  DistributionAPI,
92
104
  createDistributionAPI
@@ -109,9 +121,18 @@ import {
109
121
  createFleetAPI
110
122
  } from "./chunk-S25NY5GE.mjs";
111
123
  import {
112
- GhostAPI,
113
- createGhostAPI
114
- } from "./chunk-JC32PG3T.mjs";
124
+ RateLimitError,
125
+ WaveClient,
126
+ WaveError,
127
+ createClient
128
+ } from "./chunk-H2YYTNUH.mjs";
129
+ import {
130
+ initTelemetry,
131
+ isTelemetryEnabled,
132
+ resetTelemetry,
133
+ withTelemetry,
134
+ withTelemetrySync
135
+ } from "./chunk-YEK26SSO.mjs";
115
136
  import {
116
137
  ClipsAPI,
117
138
  createClipsAPI
@@ -125,18 +146,14 @@ import {
125
146
  ConnectAPI,
126
147
  createConnectAPI
127
148
  } from "./chunk-NCVUZ746.mjs";
128
- import {
129
- CreatorAPI,
130
- createCreatorAPI
131
- } from "./chunk-LVOVF6XC.mjs";
132
- import {
133
- DesktopAPI,
134
- createDesktopAPI
135
- } from "./chunk-4DG4OBRD.mjs";
136
149
  import {
137
150
  AudienceAPI,
138
151
  createAudienceAPI
139
152
  } from "./chunk-4G7FMCMJ.mjs";
153
+ import {
154
+ BillingAPI,
155
+ createBillingAPI
156
+ } from "./chunk-I3V47I4W.mjs";
140
157
  import {
141
158
  CaptionsAPI,
142
159
  createCaptionsAPI
@@ -145,19 +162,6 @@ import {
145
162
  ChaptersAPI,
146
163
  createChaptersAPI
147
164
  } from "./chunk-CO2VB72Z.mjs";
148
- import {
149
- RateLimitError,
150
- WaveClient,
151
- WaveError,
152
- createClient
153
- } from "./chunk-H2YYTNUH.mjs";
154
- import {
155
- initTelemetry,
156
- isTelemetryEnabled,
157
- resetTelemetry,
158
- withTelemetry,
159
- withTelemetrySync
160
- } from "./chunk-YEK26SSO.mjs";
161
165
  import "./chunk-Y6FXYEAI.mjs";
162
166
 
163
167
  // src/index.ts
@@ -249,6 +253,7 @@ function createWave(config) {
249
253
  var index_default = Wave;
250
254
  export {
251
255
  AudienceAPI,
256
+ BillingAPI,
252
257
  CaptionsAPI,
253
258
  ChaptersAPI,
254
259
  ClipsAPI,
@@ -288,6 +293,7 @@ export {
288
293
  WaveError,
289
294
  ZoomAPI,
290
295
  createAudienceAPI,
296
+ createBillingAPI,
291
297
  createCaptionsAPI,
292
298
  createChaptersAPI,
293
299
  createClient,
@@ -0,0 +1,91 @@
1
+ /**
2
+ * WAVE SDK - Marketplace API
3
+ *
4
+ * Template, plugin, and asset marketplace.
5
+ */
6
+ import type { WaveClient, PaginationParams, PaginatedResponse, Timestamps } from "./client";
7
+ export type ItemType = "template" | "plugin" | "graphic" | "transition" | "audio_effect" | "theme";
8
+ export type ItemStatus = "draft" | "review" | "published" | "rejected" | "deprecated";
9
+ export interface MarketplaceItem extends Timestamps {
10
+ id: string;
11
+ name: string;
12
+ description: string;
13
+ type: ItemType;
14
+ status: ItemStatus;
15
+ author_id: string;
16
+ author_name: string;
17
+ version: string;
18
+ price_cents: number;
19
+ downloads: number;
20
+ rating: number;
21
+ rating_count: number;
22
+ preview_url?: string;
23
+ thumbnail_url?: string;
24
+ tags?: string[];
25
+ category: string;
26
+ }
27
+ export interface InstalledItem {
28
+ id: string;
29
+ item_id: string;
30
+ organization_id: string;
31
+ version: string;
32
+ installed_at: string;
33
+ auto_update: boolean;
34
+ }
35
+ export interface Review extends Timestamps {
36
+ id: string;
37
+ item_id: string;
38
+ user_id: string;
39
+ rating: number;
40
+ comment: string;
41
+ }
42
+ export interface ListItemsParams extends PaginationParams {
43
+ type?: ItemType;
44
+ category?: string;
45
+ min_rating?: number;
46
+ max_price?: number;
47
+ search?: string;
48
+ order_by?: string;
49
+ order?: "asc" | "desc";
50
+ }
51
+ export interface PublishRequest {
52
+ name: string;
53
+ description: string;
54
+ type: ItemType;
55
+ price_cents?: number;
56
+ tags?: string[];
57
+ category: string;
58
+ file_url: string;
59
+ preview_url?: string;
60
+ thumbnail_url?: string;
61
+ }
62
+ /**
63
+ * Template, plugin, and asset marketplace for browsing, installing, and publishing.
64
+ *
65
+ * @example
66
+ * ```typescript
67
+ * const items = await wave.marketplace.list({ type: "template", category: "overlays" });
68
+ * await wave.marketplace.install(items.data[0].id);
69
+ * ```
70
+ */
71
+ export declare class MarketplaceAPI {
72
+ private readonly client;
73
+ private readonly basePath;
74
+ constructor(client: WaveClient);
75
+ list(params?: ListItemsParams): Promise<PaginatedResponse<MarketplaceItem>>;
76
+ get(itemId: string): Promise<MarketplaceItem>;
77
+ install(itemId: string): Promise<InstalledItem>;
78
+ uninstall(itemId: string): Promise<void>;
79
+ listInstalled(params?: PaginationParams): Promise<PaginatedResponse<InstalledItem>>;
80
+ publish(request: PublishRequest): Promise<MarketplaceItem>;
81
+ update(itemId: string, updates: Partial<PublishRequest>): Promise<MarketplaceItem>;
82
+ deprecate(itemId: string): Promise<void>;
83
+ getReviews(itemId: string, params?: PaginationParams): Promise<PaginatedResponse<Review>>;
84
+ addReview(itemId: string, review: {
85
+ rating: number;
86
+ comment: string;
87
+ }): Promise<Review>;
88
+ search(query: string, params?: ListItemsParams): Promise<PaginatedResponse<MarketplaceItem>>;
89
+ }
90
+ export declare function createMarketplaceAPI(client: WaveClient): MarketplaceAPI;
91
+ //# sourceMappingURL=marketplace.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"marketplace.d.ts","sourceRoot":"","sources":["../src/marketplace.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAE5F,MAAM,MAAM,QAAQ,GAAG,UAAU,GAAG,QAAQ,GAAG,SAAS,GAAG,YAAY,GAAG,cAAc,GAAG,OAAO,CAAC;AACnG,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,QAAQ,GAAG,WAAW,GAAG,UAAU,GAAG,YAAY,CAAC;AAEtF,MAAM,WAAW,eAAgB,SAAQ,UAAU;IACjD,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,QAAQ,CAAC;IACf,MAAM,EAAE,UAAU,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,e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