@vybit/api-sdk 1.0.0 → 1.1.0

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