@wave-av/sdk 2.0.1 → 2.0.3
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.
- package/CHANGELOG.md +1 -1
- package/README.md +27 -23
- package/dist/audience.js +93 -0
- package/dist/audience.mjs +9 -0
- package/dist/camera-control.js +95 -0
- package/dist/camera-control.mjs +71 -0
- package/dist/captions-types.js +18 -0
- package/dist/captions-types.mjs +0 -0
- package/dist/captions.js +266 -0
- package/dist/captions.mjs +9 -0
- package/dist/chapters-types.js +18 -0
- package/dist/chapters-types.mjs +0 -0
- package/dist/chapters.js +280 -0
- package/dist/chapters.mjs +9 -0
- package/dist/chunk-362MRITF.mjs +46 -0
- package/dist/chunk-3ZLK4J3V.mjs +69 -0
- package/dist/chunk-4DG4OBRD.mjs +52 -0
- package/dist/chunk-4G7FMCMJ.mjs +68 -0
- package/dist/chunk-4KD5F6E3.mjs +0 -0
- package/dist/chunk-7M6XVUUK.mjs +241 -0
- package/dist/chunk-A344OOT7.mjs +243 -0
- package/dist/chunk-AI64YR5W.mjs +173 -0
- package/dist/chunk-C2GQ756E.mjs +57 -0
- package/dist/chunk-CO2VB72Z.mjs +255 -0
- package/dist/chunk-DWXWAILB.mjs +44 -0
- package/dist/chunk-FLEFYLDM.mjs +71 -0
- package/dist/chunk-H2YYTNUH.mjs +266 -0
- package/dist/chunk-IGDBED5P.mjs +246 -0
- package/dist/chunk-IL2SGWBC.mjs +0 -0
- package/dist/chunk-IVFZ5X4W.mjs +68 -0
- package/dist/chunk-JC32PG3T.mjs +114 -0
- package/dist/chunk-K5X42NLD.mjs +54 -0
- package/dist/chunk-KCEPNS2U.mjs +276 -0
- package/dist/chunk-LVOVF6XC.mjs +54 -0
- package/dist/chunk-M4Z33V3N.mjs +247 -0
- package/dist/chunk-M6FKIX75.mjs +0 -0
- package/dist/chunk-M744Z327.mjs +244 -0
- package/dist/chunk-MRFDPPFK.mjs +61 -0
- package/dist/chunk-MXU3Q23F.mjs +68 -0
- package/dist/chunk-NCVUZ746.mjs +60 -0
- package/dist/chunk-NLQVD2LF.mjs +210 -0
- package/dist/chunk-O6DOGYP5.mjs +238 -0
- package/dist/chunk-S25NY5GE.mjs +124 -0
- package/dist/chunk-TFHXBICQ.mjs +305 -0
- package/dist/chunk-TXWOA2VR.mjs +57 -0
- package/dist/chunk-UCDSNV22.mjs +63 -0
- package/dist/chunk-V5DWA5P4.mjs +279 -0
- package/dist/chunk-VLQQDYGP.mjs +173 -0
- package/dist/chunk-VPKZUXZW.mjs +53 -0
- package/dist/chunk-WS3PEFYJ.mjs +60 -0
- package/dist/chunk-XGAYMWRH.mjs +74 -0
- package/dist/chunk-XMM5J57W.mjs +0 -0
- package/dist/chunk-XWABBOSX.mjs +278 -0
- package/dist/chunk-Y6FXYEAI.mjs +10 -0
- package/dist/chunk-YBLXHI3M.mjs +257 -0
- package/dist/chunk-YEK26SSO.mjs +100 -0
- package/dist/chunk-YLCQKCZL.mjs +0 -0
- package/dist/chunk-YRKO4XI7.mjs +0 -0
- package/dist/chunk-ZJO7AP4Q.mjs +0 -0
- package/dist/client-types.js +18 -0
- package/dist/client-types.mjs +0 -0
- package/dist/client.js +311 -0
- package/dist/client.mjs +14 -0
- package/dist/clips-types.js +18 -0
- package/dist/clips-types.mjs +0 -0
- package/dist/clips.js +198 -0
- package/dist/clips.mjs +9 -0
- package/dist/cloud-switcher.js +80 -0
- package/dist/cloud-switcher.mjs +56 -0
- package/dist/collab-types.js +18 -0
- package/dist/collab-types.mjs +1 -0
- package/dist/collab.js +304 -0
- package/dist/collab.mjs +10 -0
- package/dist/connect.js +85 -0
- package/dist/connect.mjs +9 -0
- package/dist/creator.js +79 -0
- package/dist/creator.mjs +9 -0
- package/dist/desktop.js +77 -0
- package/dist/desktop.mjs +9 -0
- package/dist/distribution.js +88 -0
- package/dist/distribution.mjs +9 -0
- package/dist/drm.js +85 -0
- package/dist/drm.mjs +9 -0
- package/dist/edge.js +93 -0
- package/dist/edge.mjs +9 -0
- package/dist/editor-types.js +18 -0
- package/dist/editor-types.mjs +1 -0
- package/dist/editor.js +330 -0
- package/dist/editor.mjs +10 -0
- package/dist/fleet.js +149 -0
- package/dist/fleet.mjs +9 -0
- package/dist/ghost.js +139 -0
- package/dist/ghost.mjs +9 -0
- package/dist/index.js +0 -250
- package/dist/index.mjs +161 -5445
- package/dist/marketplace.js +82 -0
- package/dist/marketplace.mjs +9 -0
- package/dist/mesh.js +198 -0
- package/dist/mesh.mjs +9 -0
- package/dist/notifications.js +79 -0
- package/dist/notifications.mjs +9 -0
- package/dist/phone-types.js +18 -0
- package/dist/phone-types.mjs +0 -0
- package/dist/phone.js +269 -0
- package/dist/phone.mjs +9 -0
- package/dist/pipeline-types.js +18 -0
- package/dist/pipeline-types.mjs +0 -0
- package/dist/pipeline.js +263 -0
- package/dist/pipeline.mjs +9 -0
- package/dist/podcast.js +94 -0
- package/dist/podcast.mjs +9 -0
- package/dist/prism.js +82 -0
- package/dist/prism.mjs +9 -0
- package/dist/prompter.js +99 -0
- package/dist/prompter.mjs +76 -0
- package/dist/pulse.js +99 -0
- package/dist/pulse.mjs +9 -0
- package/dist/qr.js +71 -0
- package/dist/qr.mjs +9 -0
- package/dist/replay.js +62 -0
- package/dist/replay.mjs +38 -0
- package/dist/scene-types.js +18 -0
- package/dist/scene-types.mjs +1 -0
- package/dist/scene.js +271 -0
- package/dist/scene.mjs +10 -0
- package/dist/search-types.js +18 -0
- package/dist/search-types.mjs +1 -0
- package/dist/search.js +268 -0
- package/dist/search.mjs +10 -0
- package/dist/sentiment-types.js +18 -0
- package/dist/sentiment-types.mjs +0 -0
- package/dist/sentiment.js +235 -0
- package/dist/sentiment.mjs +9 -0
- package/dist/signage.js +93 -0
- package/dist/signage.mjs +9 -0
- package/dist/slides.js +78 -0
- package/dist/slides.mjs +9 -0
- package/dist/studio-ai-types.js +18 -0
- package/dist/studio-ai-types.mjs +1 -0
- package/dist/studio-ai.js +301 -0
- package/dist/studio-ai.mjs +10 -0
- package/dist/studio-types.js +18 -0
- package/dist/studio-types.mjs +1 -0
- package/dist/studio.js +303 -0
- package/dist/studio.mjs +10 -0
- package/dist/telemetry.js +124 -0
- package/dist/telemetry.mjs +15 -0
- package/dist/transcribe-types.js +18 -0
- package/dist/transcribe-types.mjs +1 -0
- package/dist/transcribe.js +282 -0
- package/dist/transcribe.mjs +10 -0
- package/dist/usb.js +69 -0
- package/dist/usb.mjs +9 -0
- package/dist/vault.js +96 -0
- package/dist/vault.mjs +9 -0
- package/dist/voice-types.js +18 -0
- package/dist/voice-types.mjs +0 -0
- package/dist/voice.js +272 -0
- package/dist/voice.mjs +9 -0
- package/dist/zoom.js +86 -0
- package/dist/zoom.mjs +9 -0
- package/package.json +5 -5
- package/dist/audience.d.ts +0 -104
- package/dist/audience.d.ts.map +0 -1
- package/dist/camera-control.d.ts +0 -54
- package/dist/camera-control.d.ts.map +0 -1
- package/dist/captions.d.ts +0 -362
- package/dist/captions.d.ts.map +0 -1
- package/dist/chapters.d.ts +0 -315
- package/dist/chapters.d.ts.map +0 -1
- package/dist/client.d.ts +0 -191
- package/dist/client.d.ts.map +0 -1
- package/dist/clips.d.ts +0 -258
- package/dist/clips.d.ts.map +0 -1
- package/dist/cloud-switcher.d.ts +0 -65
- package/dist/cloud-switcher.d.ts.map +0 -1
- package/dist/collab-types.d.ts +0 -204
- package/dist/collab-types.d.ts.map +0 -1
- package/dist/collab.d.ts +0 -226
- package/dist/collab.d.ts.map +0 -1
- package/dist/connect.d.ts +0 -88
- package/dist/connect.d.ts.map +0 -1
- package/dist/creator.d.ts +0 -109
- package/dist/creator.d.ts.map +0 -1
- package/dist/desktop.d.ts +0 -95
- package/dist/desktop.d.ts.map +0 -1
- package/dist/distribution.d.ts +0 -92
- package/dist/distribution.d.ts.map +0 -1
- package/dist/drm.d.ts +0 -87
- package/dist/drm.d.ts.map +0 -1
- package/dist/edge.d.ts +0 -112
- package/dist/edge.d.ts.map +0 -1
- package/dist/editor-types.d.ts +0 -236
- package/dist/editor-types.d.ts.map +0 -1
- package/dist/editor.d.ts +0 -206
- package/dist/editor.d.ts.map +0 -1
- package/dist/fleet.d.ts +0 -207
- package/dist/fleet.d.ts.map +0 -1
- package/dist/ghost.d.ts +0 -213
- package/dist/ghost.d.ts.map +0 -1
- package/dist/index.d.ts +0 -144
- package/dist/index.d.ts.map +0 -1
- package/dist/marketplace.d.ts +0 -90
- package/dist/marketplace.d.ts.map +0 -1
- package/dist/mesh.d.ts +0 -237
- package/dist/mesh.d.ts.map +0 -1
- package/dist/notifications.d.ts +0 -82
- package/dist/notifications.d.ts.map +0 -1
- package/dist/phone.d.ts +0 -369
- package/dist/phone.d.ts.map +0 -1
- package/dist/pipeline.d.ts +0 -409
- package/dist/pipeline.d.ts.map +0 -1
- package/dist/podcast.d.ts +0 -113
- package/dist/podcast.d.ts.map +0 -1
- package/dist/prism.d.ts +0 -132
- package/dist/prism.d.ts.map +0 -1
- package/dist/prompter.d.ts +0 -184
- package/dist/prompter.d.ts.map +0 -1
- package/dist/pulse.d.ts +0 -156
- package/dist/pulse.d.ts.map +0 -1
- package/dist/qr.d.ts +0 -82
- package/dist/qr.d.ts.map +0 -1
- package/dist/replay.d.ts +0 -52
- package/dist/replay.d.ts.map +0 -1
- package/dist/scene-types.d.ts +0 -190
- package/dist/scene-types.d.ts.map +0 -1
- package/dist/scene.d.ts +0 -213
- package/dist/scene.d.ts.map +0 -1
- package/dist/search-types.d.ts +0 -210
- package/dist/search-types.d.ts.map +0 -1
- package/dist/search.d.ts +0 -250
- package/dist/search.d.ts.map +0 -1
- package/dist/sentiment.d.ts +0 -378
- package/dist/sentiment.d.ts.map +0 -1
- package/dist/signage.d.ts +0 -101
- package/dist/signage.d.ts.map +0 -1
- package/dist/slides.d.ts +0 -68
- package/dist/slides.d.ts.map +0 -1
- package/dist/studio-ai-types.d.ts +0 -198
- package/dist/studio-ai-types.d.ts.map +0 -1
- package/dist/studio-ai.d.ts +0 -218
- package/dist/studio-ai.d.ts.map +0 -1
- package/dist/studio-types.d.ts +0 -267
- package/dist/studio-types.d.ts.map +0 -1
- package/dist/studio.d.ts +0 -234
- package/dist/studio.d.ts.map +0 -1
- package/dist/telemetry.d.ts +0 -76
- package/dist/telemetry.d.ts.map +0 -1
- package/dist/transcribe-types.d.ts +0 -153
- package/dist/transcribe-types.d.ts.map +0 -1
- package/dist/transcribe.d.ts +0 -218
- package/dist/transcribe.d.ts.map +0 -1
- package/dist/usb.d.ts +0 -64
- package/dist/usb.d.ts.map +0 -1
- package/dist/vault.d.ts +0 -121
- package/dist/vault.d.ts.map +0 -1
- package/dist/voice.d.ts +0 -307
- package/dist/voice.d.ts.map +0 -1
- package/dist/zoom.d.ts +0 -91
- package/dist/zoom.d.ts.map +0 -1
package/dist/index.d.ts
DELETED
|
@@ -1,144 +0,0 @@
|
|
|
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 { 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";
|
|
11
|
-
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";
|
|
12
|
-
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";
|
|
13
|
-
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";
|
|
14
|
-
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";
|
|
15
|
-
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";
|
|
16
|
-
export { ChaptersAPI, createChaptersAPI, type Chapter, type ChapterSet, type ChapterStatus, type GenerateChaptersRequest, type CreateChapterSetRequest, type CreateChapterRequest, type UpdateChapterRequest, type UpdateChapterSetRequest, type ListChapterSetsParams, } from "./chapters";
|
|
17
|
-
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";
|
|
18
|
-
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";
|
|
19
|
-
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";
|
|
20
|
-
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";
|
|
21
|
-
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";
|
|
22
|
-
export { PipelineAPI, createPipelineAPI } from "./pipeline";
|
|
23
|
-
export { StudioAPI, createStudioAPI } from "./studio";
|
|
24
|
-
export { FleetAPI, createFleetAPI } from "./fleet";
|
|
25
|
-
export { GhostAPI, createGhostAPI } from "./ghost";
|
|
26
|
-
export { MeshAPI, createMeshAPI } from "./mesh";
|
|
27
|
-
export { EdgeAPI, createEdgeAPI } from "./edge";
|
|
28
|
-
export { PulseAPI, createPulseAPI } from "./pulse";
|
|
29
|
-
export { PrismAPI, createPrismAPI } from "./prism";
|
|
30
|
-
export { ZoomAPI, createZoomAPI } from "./zoom";
|
|
31
|
-
export { VaultAPI, createVaultAPI } from "./vault";
|
|
32
|
-
export { MarketplaceAPI, createMarketplaceAPI } from "./marketplace";
|
|
33
|
-
export { ConnectAPI, createConnectAPI } from "./connect";
|
|
34
|
-
export { DistributionAPI, createDistributionAPI } from "./distribution";
|
|
35
|
-
export { DesktopAPI, createDesktopAPI } from "./desktop";
|
|
36
|
-
export { SignageAPI, createSignageAPI } from "./signage";
|
|
37
|
-
export { QrAPI, createQrAPI } from "./qr";
|
|
38
|
-
export { AudienceAPI, createAudienceAPI } from "./audience";
|
|
39
|
-
export { CreatorAPI, createCreatorAPI } from "./creator";
|
|
40
|
-
export { PodcastAPI, createPodcastAPI } from "./podcast";
|
|
41
|
-
export { SlidesAPI, createSlidesAPI } from "./slides";
|
|
42
|
-
export { UsbAPI, createUsbAPI } from "./usb";
|
|
43
|
-
export { NotificationsAPI, createNotificationsAPI } from "./notifications";
|
|
44
|
-
export { DrmAPI, createDrmAPI } from "./drm";
|
|
45
|
-
export { withTelemetry, withTelemetrySync, initTelemetry, resetTelemetry, isTelemetryEnabled, type TelemetryConfig, type TelemetrySpanAttributes, } from "./telemetry";
|
|
46
|
-
import type { WaveClientConfig } from "./client";
|
|
47
|
-
import { WaveClient } from "./client";
|
|
48
|
-
import { ClipsAPI } from "./clips";
|
|
49
|
-
import { EditorAPI } from "./editor";
|
|
50
|
-
import { VoiceAPI } from "./voice";
|
|
51
|
-
import { PhoneAPI } from "./phone";
|
|
52
|
-
import { CollabAPI } from "./collab";
|
|
53
|
-
import { CaptionsAPI } from "./captions";
|
|
54
|
-
import { ChaptersAPI } from "./chapters";
|
|
55
|
-
import { StudioAIAPI } from "./studio-ai";
|
|
56
|
-
import { TranscribeAPI } from "./transcribe";
|
|
57
|
-
import { SentimentAPI } from "./sentiment";
|
|
58
|
-
import { SearchAPI } from "./search";
|
|
59
|
-
import { SceneAPI } from "./scene";
|
|
60
|
-
import { PipelineAPI } from "./pipeline";
|
|
61
|
-
import { StudioAPI } from "./studio";
|
|
62
|
-
import { FleetAPI } from "./fleet";
|
|
63
|
-
import { GhostAPI } from "./ghost";
|
|
64
|
-
import { MeshAPI } from "./mesh";
|
|
65
|
-
import { EdgeAPI } from "./edge";
|
|
66
|
-
import { PulseAPI } from "./pulse";
|
|
67
|
-
import { PrismAPI } from "./prism";
|
|
68
|
-
import { ZoomAPI } from "./zoom";
|
|
69
|
-
import { VaultAPI } from "./vault";
|
|
70
|
-
import { MarketplaceAPI } from "./marketplace";
|
|
71
|
-
import { ConnectAPI } from "./connect";
|
|
72
|
-
import { DistributionAPI } from "./distribution";
|
|
73
|
-
import { DesktopAPI } from "./desktop";
|
|
74
|
-
import { SignageAPI } from "./signage";
|
|
75
|
-
import { QrAPI } from "./qr";
|
|
76
|
-
import { AudienceAPI } from "./audience";
|
|
77
|
-
import { CreatorAPI } from "./creator";
|
|
78
|
-
import { PodcastAPI } from "./podcast";
|
|
79
|
-
import { SlidesAPI } from "./slides";
|
|
80
|
-
import { UsbAPI } from "./usb";
|
|
81
|
-
import { NotificationsAPI } from "./notifications";
|
|
82
|
-
import { DrmAPI } from "./drm";
|
|
83
|
-
/**
|
|
84
|
-
* Full WAVE SDK client with all APIs attached
|
|
85
|
-
*
|
|
86
|
-
* @example
|
|
87
|
-
* ```typescript
|
|
88
|
-
* import { Wave } from '@wave/sdk';
|
|
89
|
-
*
|
|
90
|
-
* const wave = new Wave({
|
|
91
|
-
* apiKey: process.env.WAVE_API_KEY!,
|
|
92
|
-
* organizationId: 'org_123',
|
|
93
|
-
* });
|
|
94
|
-
*
|
|
95
|
-
* // Use any API
|
|
96
|
-
* const streams = await wave.pipeline.list();
|
|
97
|
-
* const clips = await wave.clips.list();
|
|
98
|
-
* await wave.prism.discoverSources();
|
|
99
|
-
* ```
|
|
100
|
-
*/
|
|
101
|
-
export declare class Wave {
|
|
102
|
-
readonly client: WaveClient;
|
|
103
|
-
readonly clips: ClipsAPI;
|
|
104
|
-
readonly editor: EditorAPI;
|
|
105
|
-
readonly voice: VoiceAPI;
|
|
106
|
-
readonly phone: PhoneAPI;
|
|
107
|
-
readonly collab: CollabAPI;
|
|
108
|
-
readonly captions: CaptionsAPI;
|
|
109
|
-
readonly chapters: ChaptersAPI;
|
|
110
|
-
readonly studioAI: StudioAIAPI;
|
|
111
|
-
readonly transcribe: TranscribeAPI;
|
|
112
|
-
readonly sentiment: SentimentAPI;
|
|
113
|
-
readonly search: SearchAPI;
|
|
114
|
-
readonly scene: SceneAPI;
|
|
115
|
-
readonly pipeline: PipelineAPI;
|
|
116
|
-
readonly studio: StudioAPI;
|
|
117
|
-
readonly fleet: FleetAPI;
|
|
118
|
-
readonly ghost: GhostAPI;
|
|
119
|
-
readonly mesh: MeshAPI;
|
|
120
|
-
readonly edge: EdgeAPI;
|
|
121
|
-
readonly pulse: PulseAPI;
|
|
122
|
-
readonly prism: PrismAPI;
|
|
123
|
-
readonly zoom: ZoomAPI;
|
|
124
|
-
readonly vault: VaultAPI;
|
|
125
|
-
readonly marketplace: MarketplaceAPI;
|
|
126
|
-
readonly connect: ConnectAPI;
|
|
127
|
-
readonly distribution: DistributionAPI;
|
|
128
|
-
readonly desktop: DesktopAPI;
|
|
129
|
-
readonly signage: SignageAPI;
|
|
130
|
-
readonly qr: QrAPI;
|
|
131
|
-
readonly audience: AudienceAPI;
|
|
132
|
-
readonly creator: CreatorAPI;
|
|
133
|
-
readonly podcast: PodcastAPI;
|
|
134
|
-
readonly slides: SlidesAPI;
|
|
135
|
-
readonly usb: UsbAPI;
|
|
136
|
-
readonly notifications: NotificationsAPI;
|
|
137
|
-
readonly drm: DrmAPI;
|
|
138
|
-
constructor(config: WaveClientConfig);
|
|
139
|
-
}
|
|
140
|
-
/**
|
|
141
|
-
* Create a full Wave SDK instance
|
|
142
|
-
*/
|
|
143
|
-
export declare function createWave(config: WaveClientConfig): Wave;
|
|
144
|
-
export default Wave;
|
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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,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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/marketplace.d.ts
DELETED
|
@@ -1,90 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
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,eAAe,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB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AM,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;IAG/C,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAGxC,aAAa,CAAC,MAAM,CAAC,EAAE,gBAAgB,GAAG,OAAO,CAAC,iBAAiB,CAAC,aAAa,CAAC,CAAC;IAKnF,OAAO,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,eAAe,CAAC;IAG1D,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,cAAc,CAAC,GAAG,OAAO,CAAC,eAAe,CAAC;IAGlF,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAGxC,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,gBAAgB,GAAG,OAAO,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAKzF,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,MAAM,CAAC;IAGvF,MAAM,CACV,KAAK,EAAE,MAAM,EACb,MAAM,CAAC,EAAE,eAAe,GACvB,OAAO,CAAC,iBAAiB,CAAC,eAAe,CAAC,CAAC;CAK/C;AAED,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,UAAU,GAAG,cAAc,CAEvE"}
|
package/dist/mesh.d.ts
DELETED
|
@@ -1,237 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* WAVE SDK - Mesh API
|
|
3
|
-
*
|
|
4
|
-
* Multi-region infrastructure failover. Manage regions, peers, failover
|
|
5
|
-
* policies, and replication across your global streaming infrastructure.
|
|
6
|
-
*
|
|
7
|
-
* NOTE: This is a client SDK. All authorization checks are performed server-side.
|
|
8
|
-
* The API will return 403 Forbidden if the user lacks required permissions.
|
|
9
|
-
*/
|
|
10
|
-
import type { WaveClient, PaginationParams, PaginatedResponse, Timestamps } from "./client";
|
|
11
|
-
/**
|
|
12
|
-
* Region operational status
|
|
13
|
-
*/
|
|
14
|
-
export type RegionStatus = "active" | "standby" | "draining" | "offline";
|
|
15
|
-
/**
|
|
16
|
-
* Failover strategy
|
|
17
|
-
*/
|
|
18
|
-
export type FailoverStrategy = "automatic" | "manual" | "weighted";
|
|
19
|
-
/**
|
|
20
|
-
* Mesh region
|
|
21
|
-
*/
|
|
22
|
-
export interface MeshRegion extends Timestamps {
|
|
23
|
-
id: string;
|
|
24
|
-
name: string;
|
|
25
|
-
provider: "aws" | "gcp" | "cloudflare" | "custom";
|
|
26
|
-
location: string;
|
|
27
|
-
status: RegionStatus;
|
|
28
|
-
latency_ms: number;
|
|
29
|
-
capacity_percent: number;
|
|
30
|
-
stream_count: number;
|
|
31
|
-
viewer_count: number;
|
|
32
|
-
is_primary: boolean;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Mesh peer connection between regions
|
|
36
|
-
*/
|
|
37
|
-
export interface MeshPeer {
|
|
38
|
-
id: string;
|
|
39
|
-
region_id: string;
|
|
40
|
-
endpoint: string;
|
|
41
|
-
status: "connected" | "disconnected" | "syncing";
|
|
42
|
-
last_sync_at: string;
|
|
43
|
-
replication_lag_ms: number;
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Failover policy
|
|
47
|
-
*/
|
|
48
|
-
export interface FailoverPolicy extends Timestamps {
|
|
49
|
-
id: string;
|
|
50
|
-
organization_id: string;
|
|
51
|
-
name: string;
|
|
52
|
-
strategy: FailoverStrategy;
|
|
53
|
-
primary_region: string;
|
|
54
|
-
fallback_regions: string[];
|
|
55
|
-
health_check_interval_ms: number;
|
|
56
|
-
failover_threshold: number;
|
|
57
|
-
auto_failback: boolean;
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* Failover event record
|
|
61
|
-
*/
|
|
62
|
-
export interface FailoverEvent {
|
|
63
|
-
id: string;
|
|
64
|
-
policy_id: string;
|
|
65
|
-
type: "failover" | "failback" | "manual_switch";
|
|
66
|
-
from_region: string;
|
|
67
|
-
to_region: string;
|
|
68
|
-
reason: string;
|
|
69
|
-
duration_ms: number;
|
|
70
|
-
timestamp: string;
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* Replication status between two regions
|
|
74
|
-
*/
|
|
75
|
-
export interface ReplicationStatus {
|
|
76
|
-
source_region: string;
|
|
77
|
-
target_region: string;
|
|
78
|
-
status: "synced" | "lagging" | "stale";
|
|
79
|
-
lag_ms: number;
|
|
80
|
-
last_sync_at: string;
|
|
81
|
-
}
|
|
82
|
-
/**
|
|
83
|
-
* Full mesh topology snapshot
|
|
84
|
-
*/
|
|
85
|
-
export interface MeshTopology {
|
|
86
|
-
regions: MeshRegion[];
|
|
87
|
-
peers: MeshPeer[];
|
|
88
|
-
policies: FailoverPolicy[];
|
|
89
|
-
}
|
|
90
|
-
/**
|
|
91
|
-
* Create a failover policy
|
|
92
|
-
*/
|
|
93
|
-
export interface CreatePolicyRequest {
|
|
94
|
-
name: string;
|
|
95
|
-
strategy: FailoverStrategy;
|
|
96
|
-
primary_region: string;
|
|
97
|
-
fallback_regions: string[];
|
|
98
|
-
health_check_interval_ms?: number;
|
|
99
|
-
failover_threshold?: number;
|
|
100
|
-
auto_failback?: boolean;
|
|
101
|
-
}
|
|
102
|
-
/**
|
|
103
|
-
* List regions filters
|
|
104
|
-
*/
|
|
105
|
-
export interface ListRegionsParams extends PaginationParams {
|
|
106
|
-
status?: RegionStatus;
|
|
107
|
-
provider?: "aws" | "gcp" | "cloudflare" | "custom";
|
|
108
|
-
}
|
|
109
|
-
/**
|
|
110
|
-
* Mesh API client
|
|
111
|
-
*
|
|
112
|
-
* All operations require appropriate permissions. Authorization is enforced
|
|
113
|
-
* server-side - the API returns 403 if the authenticated user lacks access.
|
|
114
|
-
*
|
|
115
|
-
* @example
|
|
116
|
-
* ```typescript
|
|
117
|
-
* import { WaveClient } from '@wave/sdk';
|
|
118
|
-
* import { MeshAPI } from '@wave/sdk/mesh';
|
|
119
|
-
*
|
|
120
|
-
* const client = new WaveClient({ apiKey: 'your-api-key' });
|
|
121
|
-
* const mesh = new MeshAPI(client);
|
|
122
|
-
*
|
|
123
|
-
* // Get the full mesh topology
|
|
124
|
-
* const topology = await mesh.getTopology();
|
|
125
|
-
* console.log('Regions:', topology.regions.length);
|
|
126
|
-
*
|
|
127
|
-
* // Create a failover policy
|
|
128
|
-
* const policy = await mesh.createPolicy({
|
|
129
|
-
* name: 'US West Failover',
|
|
130
|
-
* strategy: 'automatic',
|
|
131
|
-
* primary_region: 'us-west-2',
|
|
132
|
-
* fallback_regions: ['us-east-1', 'eu-west-1'],
|
|
133
|
-
* failover_threshold: 3,
|
|
134
|
-
* auto_failback: true,
|
|
135
|
-
* });
|
|
136
|
-
*
|
|
137
|
-
* // Trigger manual failover
|
|
138
|
-
* await mesh.triggerFailover(policy.id, 'us-east-1');
|
|
139
|
-
* ```
|
|
140
|
-
*/
|
|
141
|
-
export declare class MeshAPI {
|
|
142
|
-
private readonly client;
|
|
143
|
-
private readonly basePath;
|
|
144
|
-
constructor(client: WaveClient);
|
|
145
|
-
/**
|
|
146
|
-
* List mesh regions with optional filters
|
|
147
|
-
*
|
|
148
|
-
* Requires: mesh:read permission
|
|
149
|
-
*/
|
|
150
|
-
listRegions(params?: ListRegionsParams): Promise<PaginatedResponse<MeshRegion>>;
|
|
151
|
-
/**
|
|
152
|
-
* Get a region by ID
|
|
153
|
-
*
|
|
154
|
-
* Requires: mesh:read permission
|
|
155
|
-
*/
|
|
156
|
-
getRegion(regionId: string): Promise<MeshRegion>;
|
|
157
|
-
/**
|
|
158
|
-
* Get health details for a region
|
|
159
|
-
*
|
|
160
|
-
* Requires: mesh:read permission
|
|
161
|
-
*/
|
|
162
|
-
getRegionHealth(regionId: string): Promise<{
|
|
163
|
-
status: RegionStatus;
|
|
164
|
-
latency_ms: number;
|
|
165
|
-
details: Record<string, unknown>;
|
|
166
|
-
}>;
|
|
167
|
-
/**
|
|
168
|
-
* List mesh peers, optionally filtered by region
|
|
169
|
-
*
|
|
170
|
-
* Requires: mesh:read permission
|
|
171
|
-
*/
|
|
172
|
-
listPeers(regionId?: string): Promise<MeshPeer[]>;
|
|
173
|
-
/**
|
|
174
|
-
* Add a peer to a region
|
|
175
|
-
*
|
|
176
|
-
* Requires: mesh:create permission
|
|
177
|
-
*/
|
|
178
|
-
addPeer(regionId: string, endpoint: string): Promise<MeshPeer>;
|
|
179
|
-
/**
|
|
180
|
-
* Remove a peer
|
|
181
|
-
*
|
|
182
|
-
* Requires: mesh:remove permission (server-side RBAC enforced)
|
|
183
|
-
*/
|
|
184
|
-
removePeer(peerId: string): Promise<void>;
|
|
185
|
-
/**
|
|
186
|
-
* Create a failover policy
|
|
187
|
-
*
|
|
188
|
-
* Requires: mesh:create permission
|
|
189
|
-
*/
|
|
190
|
-
createPolicy(request: CreatePolicyRequest): Promise<FailoverPolicy>;
|
|
191
|
-
/**
|
|
192
|
-
* Update a failover policy
|
|
193
|
-
*
|
|
194
|
-
* Requires: mesh:update permission
|
|
195
|
-
*/
|
|
196
|
-
updatePolicy(policyId: string, updates: Partial<CreatePolicyRequest>): Promise<FailoverPolicy>;
|
|
197
|
-
/**
|
|
198
|
-
* Remove a failover policy
|
|
199
|
-
*
|
|
200
|
-
* Requires: mesh:remove permission (server-side RBAC enforced)
|
|
201
|
-
*/
|
|
202
|
-
removePolicy(policyId: string): Promise<void>;
|
|
203
|
-
/**
|
|
204
|
-
* List failover policies
|
|
205
|
-
*
|
|
206
|
-
* Requires: mesh:read permission
|
|
207
|
-
*/
|
|
208
|
-
listPolicies(params?: PaginationParams): Promise<PaginatedResponse<FailoverPolicy>>;
|
|
209
|
-
/**
|
|
210
|
-
* Trigger a manual failover to a target region
|
|
211
|
-
*
|
|
212
|
-
* Requires: mesh:failover permission
|
|
213
|
-
*/
|
|
214
|
-
triggerFailover(policyId: string, targetRegion: string): Promise<FailoverEvent>;
|
|
215
|
-
/**
|
|
216
|
-
* Get failover event history for a policy
|
|
217
|
-
*
|
|
218
|
-
* Requires: mesh:read permission
|
|
219
|
-
*/
|
|
220
|
-
getFailoverHistory(policyId: string, params?: PaginationParams): Promise<PaginatedResponse<FailoverEvent>>;
|
|
221
|
-
/**
|
|
222
|
-
* Get replication status between regions
|
|
223
|
-
*
|
|
224
|
-
* Requires: mesh:read permission
|
|
225
|
-
*/
|
|
226
|
-
getReplicationStatus(sourceRegion?: string, targetRegion?: string): Promise<ReplicationStatus[]>;
|
|
227
|
-
/**
|
|
228
|
-
* Get the full mesh topology (regions, peers, and policies)
|
|
229
|
-
*
|
|
230
|
-
* Requires: mesh:read permission
|
|
231
|
-
*/
|
|
232
|
-
getTopology(): Promise<MeshTopology>;
|
|
233
|
-
}
|
|
234
|
-
/**
|
|
235
|
-
* Create a Mesh API instance
|
|
236
|
-
*/
|
|
237
|
-
export declare function createMeshAPI(client: WaveClient): MeshAPI;
|
package/dist/mesh.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mesh.d.ts","sourceRoot":"","sources":["../src/mesh.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAM5F;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG,SAAS,GAAG,UAAU,GAAG,SAAS,CAAC;AAEzE;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,WAAW,GAAG,QAAQ,GAAG,UAAU,CAAC;AAEnE;;GAEG;AACH,MAAM,WAAW,UAAW,SAAQ,UAAU;IAC5C,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,KAAK,GAAG,KAAK,GAAG,YAAY,GAAG,QAAQ,CAAC;IAClD,QAAQ,EAAE,MAAM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,OAAO,CAEzD"}
|
package/dist/notifications.d.ts
DELETED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* WAVE SDK - Notifications API
|
|
3
|
-
*
|
|
4
|
-
* User notification preferences, delivery channels, and notification management.
|
|
5
|
-
*/
|
|
6
|
-
import type { WaveClient, PaginationParams, PaginatedResponse, Timestamps } from "./client";
|
|
7
|
-
export type NotificationChannel = "in_app" | "email" | "push" | "sms" | "slack" | "webhook";
|
|
8
|
-
export type NotificationStatus = "unread" | "read" | "archived";
|
|
9
|
-
export type NotificationPriority = "low" | "normal" | "high" | "urgent";
|
|
10
|
-
export interface Notification extends Timestamps {
|
|
11
|
-
id: string;
|
|
12
|
-
user_id: string;
|
|
13
|
-
type: string;
|
|
14
|
-
title: string;
|
|
15
|
-
body: string;
|
|
16
|
-
status: NotificationStatus;
|
|
17
|
-
priority: NotificationPriority;
|
|
18
|
-
channel: NotificationChannel;
|
|
19
|
-
action_url?: string;
|
|
20
|
-
metadata?: Record<string, unknown>;
|
|
21
|
-
read_at?: string;
|
|
22
|
-
}
|
|
23
|
-
export interface NotificationPreferences {
|
|
24
|
-
user_id: string;
|
|
25
|
-
channels: Record<NotificationChannel, boolean>;
|
|
26
|
-
categories: Record<string, {
|
|
27
|
-
enabled: boolean;
|
|
28
|
-
channels: NotificationChannel[];
|
|
29
|
-
}>;
|
|
30
|
-
quiet_hours?: {
|
|
31
|
-
start: string;
|
|
32
|
-
end: string;
|
|
33
|
-
timezone: string;
|
|
34
|
-
};
|
|
35
|
-
digest_frequency?: "realtime" | "hourly" | "daily" | "weekly";
|
|
36
|
-
}
|
|
37
|
-
export interface ListNotificationsParams extends PaginationParams {
|
|
38
|
-
status?: NotificationStatus;
|
|
39
|
-
type?: string;
|
|
40
|
-
priority?: NotificationPriority;
|
|
41
|
-
channel?: NotificationChannel;
|
|
42
|
-
since?: string;
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* User notification management: preferences, channels, read state, and delivery.
|
|
46
|
-
*
|
|
47
|
-
* @example
|
|
48
|
-
* ```typescript
|
|
49
|
-
* const notifications = await wave.notifications.list({ status: 'unread' });
|
|
50
|
-
* await wave.notifications.markAsRead(notifications.data[0].id);
|
|
51
|
-
* await wave.notifications.markAllRead();
|
|
52
|
-
* const prefs = await wave.notifications.getPreferences();
|
|
53
|
-
* ```
|
|
54
|
-
*/
|
|
55
|
-
export declare class NotificationsAPI {
|
|
56
|
-
private readonly client;
|
|
57
|
-
private readonly basePath;
|
|
58
|
-
constructor(client: WaveClient);
|
|
59
|
-
/** List notifications with optional filters. */
|
|
60
|
-
list(params?: ListNotificationsParams): Promise<PaginatedResponse<Notification>>;
|
|
61
|
-
/** Get a single notification by ID. */
|
|
62
|
-
get(notificationId: string): Promise<Notification>;
|
|
63
|
-
/** Mark a notification as read. */
|
|
64
|
-
markAsRead(notificationId: string): Promise<Notification>;
|
|
65
|
-
/** Mark all notifications as read. */
|
|
66
|
-
markAllRead(): Promise<{
|
|
67
|
-
updated: number;
|
|
68
|
-
}>;
|
|
69
|
-
/** Archive a notification. */
|
|
70
|
-
archive(notificationId: string): Promise<Notification>;
|
|
71
|
-
/** Delete a notification. */
|
|
72
|
-
remove(notificationId: string): Promise<void>;
|
|
73
|
-
/** Get unread count. */
|
|
74
|
-
getUnreadCount(): Promise<{
|
|
75
|
-
count: number;
|
|
76
|
-
}>;
|
|
77
|
-
/** Get notification preferences. */
|
|
78
|
-
getPreferences(): Promise<NotificationPreferences>;
|
|
79
|
-
/** Update notification preferences. */
|
|
80
|
-
updatePreferences(preferences: Partial<NotificationPreferences>): Promise<NotificationPreferences>;
|
|
81
|
-
}
|
|
82
|
-
export declare function createNotificationsAPI(client: WaveClient): NotificationsAPI;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"notifications.d.ts","sourceRoot":"","sources":["../src/notifications.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,gBAA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