@vybit/api-sdk 1.0.1 → 1.1.1

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.
@@ -1,27 +1,442 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VybitAPIClient = void 0;
4
+ const core_1 = require("@vybit/core");
4
5
  /**
5
- * VybitAPIClient - Placeholder Implementation
6
+ * Vybit Developer API client
6
7
  *
7
- * This is a placeholder class for the Vybit API SDK.
8
- * The full implementation will be available in a future release
9
- * once the main Vybit application API is finalized.
8
+ * Provides programmatic access to manage vybits, subscriptions, sounds,
9
+ * and notification logs using the Vybit Developer API.
10
10
  *
11
- * @deprecated This is a placeholder - do not use in production
11
+ * @example
12
+ * ```typescript
13
+ * // With explicit API key
14
+ * const client = new VybitAPIClient({
15
+ * apiKey: 'your-api-key-from-developer-portal'
16
+ * });
17
+ *
18
+ * // Using VYBIT_API_KEY environment variable
19
+ * const client = new VybitAPIClient();
20
+ *
21
+ * // Get API status
22
+ * const status = await client.getStatus();
23
+ *
24
+ * // Create a vybit
25
+ * const vybit = await client.createVybit({
26
+ * name: 'Server Alert',
27
+ * soundKey: 'sound123abc',
28
+ * triggerType: 'webhook'
29
+ * });
30
+ *
31
+ * // List vybits with pagination
32
+ * const vybits = await client.listVybits({ limit: 10, offset: 0 });
33
+ * ```
12
34
  */
13
35
  class VybitAPIClient {
14
- constructor() {
15
- console.warn('VybitAPIClient is currently a placeholder. ' +
16
- 'Full API implementation coming in future release.');
17
- }
18
36
  /**
19
- * Placeholder method - will be implemented in future release
37
+ * Creates a new Vybit Developer API client
38
+ * @param config - API configuration. If apiKey is not provided, falls back to VYBIT_API_KEY environment variable
39
+ * @throws {VybitValidationError} When API key is not provided and VYBIT_API_KEY environment variable is not set
20
40
  */
21
- async placeholder() {
22
- return {
23
- message: 'API SDK implementation coming soon'
41
+ constructor(config = {}) {
42
+ // Explicit apiKey takes precedence, then fall back to env var
43
+ const apiKey = config.apiKey || process.env.VYBIT_API_KEY;
44
+ if (!apiKey) {
45
+ throw new core_1.VybitValidationError('API key is required. Provide it in the config or set VYBIT_API_KEY environment variable');
46
+ }
47
+ this.apiKey = apiKey;
48
+ this.baseUrl = config.baseUrl || (0, core_1.getApiBaseUrl)();
49
+ }
50
+ async request(endpoint, options = {}) {
51
+ const url = `${this.baseUrl}${endpoint}`;
52
+ const headers = {
53
+ 'X-API-Key': this.apiKey,
54
+ ...options.headers,
24
55
  };
56
+ if (options.body && !headers['Content-Type']) {
57
+ headers['Content-Type'] = 'application/json';
58
+ }
59
+ try {
60
+ const response = await fetch(url, {
61
+ ...options,
62
+ headers,
63
+ });
64
+ if (!response.ok) {
65
+ if (response.status === 401) {
66
+ throw new core_1.VybitAuthError('Invalid or missing API key', response.status);
67
+ }
68
+ if (response.status === 429) {
69
+ throw new core_1.VybitAPIError('Rate limit exceeded', response.status);
70
+ }
71
+ const errorData = await response.json().catch(() => ({}));
72
+ // Handle vybit limit error specifically
73
+ if (response.status === 403 && errorData.error === 'vybit_limit_reached') {
74
+ throw new core_1.VybitAPIError('Vybit limit reached for your tier. Delete existing vybits or upgrade your account.', response.status);
75
+ }
76
+ throw new core_1.VybitAPIError(errorData.message || errorData.error || `API request failed: ${response.statusText}`, response.status);
77
+ }
78
+ return await response.json();
79
+ }
80
+ catch (error) {
81
+ if (error instanceof core_1.VybitAPIError || error instanceof core_1.VybitAuthError) {
82
+ throw error;
83
+ }
84
+ throw new core_1.VybitAPIError(`Network error: ${error}`);
85
+ }
86
+ }
87
+ buildQueryParams(params) {
88
+ if (!params)
89
+ return '';
90
+ const query = new URLSearchParams();
91
+ if (params.offset !== undefined)
92
+ query.append('offset', String(params.offset));
93
+ if (params.limit !== undefined)
94
+ query.append('limit', String(params.limit));
95
+ if ('search' in params && params.search)
96
+ query.append('search', params.search);
97
+ const queryString = query.toString();
98
+ return queryString ? `?${queryString}` : '';
99
+ }
100
+ // ==================== Status & Utility ====================
101
+ /**
102
+ * Check API health status
103
+ * @returns API status response
104
+ */
105
+ async getStatus() {
106
+ return this.request('/status');
107
+ }
108
+ /**
109
+ * Get usage metrics and tier limits
110
+ * @returns Usage statistics and capacity limits
111
+ */
112
+ async getMeter() {
113
+ return this.request('/meter');
114
+ }
115
+ // ==================== Profile ====================
116
+ /**
117
+ * Get user profile information
118
+ * @returns User profile data
119
+ */
120
+ async getProfile() {
121
+ return this.request('/profile');
122
+ }
123
+ // ==================== Vybits ====================
124
+ /**
125
+ * List vybits owned by the authenticated user
126
+ * @param params - Pagination and search parameters
127
+ * @returns Array of vybits
128
+ */
129
+ async listVybits(params) {
130
+ const query = this.buildQueryParams(params);
131
+ return this.request(`/vybits${query}`);
132
+ }
133
+ /**
134
+ * Get a specific vybit by key
135
+ * @param key - Vybit key
136
+ * @returns Vybit details
137
+ */
138
+ async getVybit(key) {
139
+ return this.request(`/vybit/${key}`);
140
+ }
141
+ /**
142
+ * Create a new vybit
143
+ * @param params - Vybit creation parameters
144
+ * @returns Created vybit
145
+ */
146
+ async createVybit(params) {
147
+ return this.request('/vybit', {
148
+ method: 'POST',
149
+ body: JSON.stringify(params),
150
+ });
151
+ }
152
+ /**
153
+ * Update a vybit (full update)
154
+ * @param key - Vybit key
155
+ * @param params - Vybit update parameters
156
+ * @returns Updated vybit
157
+ */
158
+ async updateVybit(key, params) {
159
+ return this.request(`/vybit/${key}`, {
160
+ method: 'PUT',
161
+ body: JSON.stringify(params),
162
+ });
163
+ }
164
+ /**
165
+ * Update a vybit (partial update)
166
+ * @param key - Vybit key
167
+ * @param params - Vybit update parameters
168
+ * @returns Updated vybit
169
+ */
170
+ async patchVybit(key, params) {
171
+ return this.request(`/vybit/${key}`, {
172
+ method: 'PATCH',
173
+ body: JSON.stringify(params),
174
+ });
175
+ }
176
+ /**
177
+ * Delete a vybit
178
+ * @param key - Vybit key
179
+ * @returns Delete confirmation
180
+ */
181
+ async deleteVybit(key) {
182
+ return this.request(`/vybit/${key}`, {
183
+ method: 'DELETE',
184
+ });
185
+ }
186
+ /**
187
+ * Trigger a vybit notification as the owner
188
+ * @param key - Vybit key
189
+ * @param params - Optional notification content to override defaults
190
+ * @returns Trigger response with log key
191
+ *
192
+ * @example
193
+ * ```typescript
194
+ * const result = await client.triggerVybit('vybit123abc', {
195
+ * message: 'Server maintenance complete',
196
+ * imageUrl: 'https://example.com/status-ok.jpg'
197
+ * });
198
+ * console.log('Notification triggered, log key:', result.plk);
199
+ * ```
200
+ */
201
+ async triggerVybit(key, params) {
202
+ return this.request(`/vybit/${key}/trigger`, {
203
+ method: 'POST',
204
+ body: params ? JSON.stringify(params) : undefined,
205
+ });
206
+ }
207
+ // ==================== Subscriptions ====================
208
+ /**
209
+ * List public vybits available for subscription
210
+ * @param params - Pagination and search parameters
211
+ * @returns Array of public vybits
212
+ */
213
+ async listPublicVybits(params) {
214
+ const query = this.buildQueryParams(params);
215
+ return this.request(`/subscriptions/public${query}`);
216
+ }
217
+ /**
218
+ * Get a public vybit by subscription key
219
+ * @param key - Subscription key
220
+ * @returns Public vybit details
221
+ */
222
+ async getPublicVybit(key) {
223
+ return this.request(`/subscription/${key}`);
224
+ }
225
+ // ==================== Vybit Subscriptions (Follows) ====================
226
+ /**
227
+ * List vybit subscriptions (follows)
228
+ * @param params - Pagination and search parameters
229
+ * @returns Array of vybit follows
230
+ */
231
+ async listVybitFollows(params) {
232
+ const query = this.buildQueryParams(params);
233
+ return this.request(`/subscriptions/following${query}`);
234
+ }
235
+ /**
236
+ * Get a specific vybit follow by key
237
+ * @param key - Vybit follow (following) key
238
+ * @returns Vybit follow details
239
+ */
240
+ async getVybitFollow(key) {
241
+ return this.request(`/subscription/following/${key}`);
242
+ }
243
+ /**
244
+ * Subscribe to a vybit using its subscription key
245
+ * @param subscriptionKey - The subscription key of the vybit to subscribe to
246
+ * @returns Created vybit follow
247
+ */
248
+ async createVybitFollow(subscriptionKey) {
249
+ return this.request(`/subscription/${subscriptionKey}`, {
250
+ method: 'POST',
251
+ });
252
+ }
253
+ /**
254
+ * Update a vybit subscription
255
+ * @param key - Vybit follow (following) key
256
+ * @param params - Update parameters
257
+ * @returns Updated vybit follow
258
+ */
259
+ async updateVybitFollow(key, params) {
260
+ return this.request(`/subscription/following/${key}`, {
261
+ method: 'PATCH',
262
+ body: JSON.stringify(params),
263
+ });
264
+ }
265
+ /**
266
+ * Unsubscribe from a vybit (delete follow)
267
+ * @param key - Vybit follow (following) key
268
+ * @returns Delete confirmation
269
+ */
270
+ async deleteVybitFollow(key) {
271
+ return this.request(`/subscription/following/${key}`, {
272
+ method: 'DELETE',
273
+ });
274
+ }
275
+ /**
276
+ * Send a notification to the owner of a subscribed vybit
277
+ *
278
+ * Only available when the vybit's sendPermissions is set to 'subs_owner'.
279
+ * The subscription must be active (status='on') and granted access.
280
+ *
281
+ * @param followingKey - Vybit following key
282
+ * @param params - Notification content
283
+ * @returns Send response with log key
284
+ * @throws {VybitAPIError} 403 if vybit doesn't allow subscriber-to-owner sends
285
+ *
286
+ * @example
287
+ * ```typescript
288
+ * const result = await client.sendToOwner('following123abc', {
289
+ * message: 'Server is back online',
290
+ * linkUrl: 'https://example.com/dashboard'
291
+ * });
292
+ * console.log('Notification sent, log key:', result.plk);
293
+ * ```
294
+ */
295
+ async sendToOwner(followingKey, params) {
296
+ return this.request(`/subscription/following/${followingKey}/send-to-owner`, {
297
+ method: 'POST',
298
+ body: params ? JSON.stringify(params) : undefined,
299
+ });
300
+ }
301
+ /**
302
+ * Send a notification to all subscribers of a vybit group
303
+ *
304
+ * Only available when the vybit's sendPermissions is set to 'subs_group'.
305
+ * The subscription must be active (status='on') and granted access.
306
+ *
307
+ * @param followingKey - Vybit following key
308
+ * @param params - Notification content
309
+ * @returns Send response with log key
310
+ * @throws {VybitAPIError} 403 if vybit doesn't allow subscriber-to-group sends
311
+ *
312
+ * @example
313
+ * ```typescript
314
+ * const result = await client.sendToGroup('following123abc', {
315
+ * message: 'Emergency alert: Check the group chat',
316
+ * linkUrl: 'https://example.com/chat'
317
+ * });
318
+ * console.log('Notification sent to group, log key:', result.plk);
319
+ * ```
320
+ */
321
+ async sendToGroup(followingKey, params) {
322
+ return this.request(`/subscription/following/${followingKey}/send-to-group`, {
323
+ method: 'POST',
324
+ body: params ? JSON.stringify(params) : undefined,
325
+ });
326
+ }
327
+ // ==================== Sounds ====================
328
+ /**
329
+ * Search for sounds
330
+ * @param params - Pagination and search parameters
331
+ * @returns Array of sounds
332
+ */
333
+ async searchSounds(params) {
334
+ const query = this.buildQueryParams(params);
335
+ return this.request(`/sounds${query}`);
336
+ }
337
+ /**
338
+ * Get a specific sound by key
339
+ * @param key - Sound key
340
+ * @returns Sound details
341
+ */
342
+ async getSound(key) {
343
+ return this.request(`/sound/${key}`);
344
+ }
345
+ /**
346
+ * Get the playback URL for a sound
347
+ * @param key - Sound key
348
+ * @returns Full URL to play/download the sound
349
+ */
350
+ getSoundPlayUrl(key) {
351
+ return `${this.baseUrl}/sound/${key}/play`;
352
+ }
353
+ // ==================== Logs ====================
354
+ /**
355
+ * List all notification logs for the authenticated user
356
+ * @param params - Pagination and search parameters
357
+ * @returns Array of logs
358
+ */
359
+ async listLogs(params) {
360
+ const query = this.buildQueryParams(params);
361
+ return this.request(`/logs${query}`);
362
+ }
363
+ /**
364
+ * Get a specific log entry by key
365
+ * @param logKey - Log entry key
366
+ * @returns Log entry details
367
+ */
368
+ async getLog(logKey) {
369
+ return this.request(`/log/${logKey}`);
370
+ }
371
+ /**
372
+ * List logs for a specific owned vybit
373
+ * @param vybKey - Vybit key
374
+ * @param params - Pagination and search parameters
375
+ * @returns Array of logs for the vybit
376
+ */
377
+ async listVybitLogs(vybKey, params) {
378
+ const query = this.buildQueryParams(params);
379
+ return this.request(`/logs/vybit/${vybKey}${query}`);
380
+ }
381
+ /**
382
+ * List logs for a specific vybit subscription
383
+ * @param followingKey - Vybit following key
384
+ * @param params - Pagination and search parameters
385
+ * @returns Array of logs for the subscription
386
+ */
387
+ async listVybitFollowLogs(followingKey, params) {
388
+ const query = this.buildQueryParams(params);
389
+ return this.request(`/logs/subscription/following/${followingKey}${query}`);
390
+ }
391
+ // ==================== Peeps ====================
392
+ /**
393
+ * List peeps (access invitations)
394
+ * @param params - Pagination parameters
395
+ * @returns Array of peeps
396
+ */
397
+ async listPeeps(params) {
398
+ const query = this.buildQueryParams(params);
399
+ return this.request(`/peeps${query}`);
400
+ }
401
+ /**
402
+ * Get a specific peep by key
403
+ * @param key - Peep key
404
+ * @returns Peep details
405
+ */
406
+ async getPeep(key) {
407
+ return this.request(`/peep/${key}`);
408
+ }
409
+ /**
410
+ * Create a peep invitation
411
+ * @param vybitKey - The vybit key to invite the user to
412
+ * @param email - Email address of the user to invite
413
+ * @returns Created peep response
414
+ */
415
+ async createPeep(vybitKey, email) {
416
+ return this.request(`/peep/${vybitKey}`, {
417
+ method: 'POST',
418
+ body: JSON.stringify({ email }),
419
+ });
420
+ }
421
+ /**
422
+ * Remove a peep invitation
423
+ * @param key - Peep key
424
+ * @returns Delete confirmation
425
+ */
426
+ async deletePeep(key) {
427
+ return this.request(`/peep/${key}`, {
428
+ method: 'DELETE',
429
+ });
430
+ }
431
+ /**
432
+ * List peeps for a specific vybit
433
+ * @param vybitKey - Vybit key
434
+ * @param params - Pagination parameters
435
+ * @returns Array of peeps for the vybit
436
+ */
437
+ async listVybitPeeps(vybitKey, params) {
438
+ const query = this.buildQueryParams(params);
439
+ return this.request(`/peeps/${vybitKey}${query}`);
25
440
  }
26
441
  }
27
442
  exports.VybitAPIClient = VybitAPIClient;
@@ -1 +1 @@
1
- {"version":3,"file":"api-client.js","sourceRoot":"","sources":["../src/api-client.ts"],"names":[],"mappings":";;;AAEA;;;;;;;;GAQG;AACH,MAAa,cAAc;IACzB;QACE,OAAO,CAAC,IAAI,CACV,6CAA6C;YAC7C,mDAAmD,CACpD,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,WAAW;QACf,OAAO;YACL,OAAO,EAAE,oCAAoC;SAC9C,CAAC;IACJ,C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MAAyB;QAC9D,MAAM,KAAK,GAAG,IAAI,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAC;QAC5C,OAAO,IAAI,CAAC,OAAO,CAAS,UAAU,QAAQ,GAAG,KAAK,EAAE,CAAC,CAAC;IAC5D,CAAC;CACF;AArdD,wCAqdC"}
package/dist/index.d.ts CHANGED
@@ -1,11 +1,10 @@
1
- export * from './api-client';
2
- export * from './types';
3
1
  /**
4
- * @vybit/api-sdk - Placeholder Package
2
+ * @vybit/api-sdk - Vybit Developer API SDK
5
3
  *
6
- * This package is currently a placeholder and will be fully implemented
7
- * in a future release once the main Vybit application API is finalized.
4
+ * Official TypeScript/JavaScript SDK for the Vybit Developer API.
8
5
  *
9
- * For now, please use the @vybit/oauth2-sdk package for authentication.
10
- */
6
+ * @packageDocumentation
7
+ */
8
+ export * from './api-client';
9
+ export * from './types';
11
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AAExB;;;;;;;GAOG"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC"}
package/dist/index.js CHANGED
@@ -1,4 +1,11 @@
1
1
  "use strict";
2
+ /**
3
+ * @vybit/api-sdk - Vybit Developer API SDK
4
+ *
5
+ * Official TypeScript/JavaScript SDK for the Vybit Developer API.
6
+ *
7
+ * @packageDocumentation
8
+ */
2
9
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
10
  if (k2 === undefined) k2 = k;
4
11
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -16,12 +23,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
23
  Object.defineProperty(exports, "__esModule", { value: true });
17
24
  __exportStar(require("./api-client"), exports);
18
25
  __exportStar(require("./types"), exports);
19
- /**
20
- * @vybit/api-sdk - Placeholder Package
21
- *
22
- * This package is currently a placeholder and will be fully implemented
23
- * in a future release once the main Vybit application API is finalized.
24
- *
25
- * For now, please use the @vybit/oauth2-sdk package for authentication.
26
- */
27
26
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,0CAAwB;AAExB;;;;;;;GAOG"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;;;;;;;;;;;;;AAEH,+CAA6B;AAC7B,0CAAwB"}