@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.
package/dist/types.d.ts CHANGED
@@ -1,6 +1,408 @@
1
- export interface ApiConfig {
1
+ /**
2
+ * Configuration for Vybit Developer API client
3
+ */
4
+ export interface VybitAPIConfig {
5
+ /** Developer API key from Vybit developer portal. If not provided, falls back to VYBIT_API_KEY environment variable */
6
+ apiKey?: string;
7
+ /** Base URL for API calls (defaults to production) */
8
+ baseUrl?: string;
2
9
  }
3
- export interface PlaceholderResponse {
4
- message: string;
10
+ /**
11
+ * Pagination parameters for collection endpoints
12
+ */
13
+ export interface PaginationParams {
14
+ /** Number of records to skip */
15
+ offset?: number;
16
+ /** Maximum number of records to return (max: 100) */
17
+ limit?: number;
18
+ }
19
+ /**
20
+ * Search parameters for collection endpoints
21
+ */
22
+ export interface SearchParams extends PaginationParams {
23
+ /** Text search query */
24
+ search?: string;
25
+ }
26
+ /**
27
+ * API health status response
28
+ */
29
+ export interface StatusResponse {
30
+ /** API operational status */
31
+ status: 'up' | 'down';
32
+ }
33
+ /**
34
+ * User profile information
35
+ */
36
+ export interface Profile {
37
+ /** Unique user identifier */
38
+ key: string;
39
+ /** User's display name */
40
+ name: string;
41
+ /** User's email address */
42
+ email: string;
43
+ /** Subscription tier ID (0=Free, 1=Bronze, 2=Silver, 3=Gold) */
44
+ tier_id: number;
45
+ }
46
+ /**
47
+ * Usage metrics and tier limits
48
+ */
49
+ export interface Meter {
50
+ /** Current subscription tier ID */
51
+ tier_id: number;
52
+ /** Maximum vybits allowed */
53
+ cap_vybits: number;
54
+ /** Maximum daily notifications */
55
+ cap_daily: number;
56
+ /** Maximum monthly notifications */
57
+ cap_monthly: number;
58
+ /** Current number of vybits created */
59
+ number_vybits: number;
60
+ /** Notifications triggered today */
61
+ count_daily: number;
62
+ /** Notifications triggered this month */
63
+ count_monthly: number;
64
+ /** When the monthly count will reset */
65
+ monthly_reset_dts: string;
66
+ }
67
+ /**
68
+ * Vybit notification configuration
69
+ */
70
+ export interface Vybit {
71
+ /** Unique vybit identifier */
72
+ key: string;
73
+ /** Vybit display name */
74
+ name: string;
75
+ /** Detailed vybit description */
76
+ description?: string;
77
+ /** Key of the sound to play */
78
+ soundKey: string;
79
+ /** Vybit status */
80
+ status?: 'on' | 'off';
81
+ /** Vybit type (legacy field) */
82
+ type?: string;
83
+ /** Unique key for triggering this vybit via webhook */
84
+ triggerKey?: string;
85
+ /** Unique key for subscribing to this vybit */
86
+ subscriptionKey?: string;
87
+ /** How this vybit is triggered */
88
+ triggerType: 'webhook' | 'schedule' | 'geofence' | 'integration';
89
+ /** Configuration specific to the trigger type */
90
+ triggerSettings?: any;
91
+ /** Vybit visibility and access control */
92
+ access?: 'public' | 'private' | 'unlisted';
93
+ /** Default message displayed with notifications */
94
+ message?: string;
95
+ /** Default image URL for notifications */
96
+ imageUrl?: string;
97
+ /** Default URL to open when notification is tapped */
98
+ linkUrl?: string;
99
+ /** Geofence configuration (for geofence trigger type) */
100
+ geofence?: any;
101
+ /** Count of users subscribed to this vybit */
102
+ numberFollowers?: number;
103
+ /** Who can trigger this vybit */
104
+ sendPermissions?: 'owner_subs' | 'subs_owner' | 'subs_group';
105
+ /** Key of the user who owns this vybit */
106
+ personKey?: string;
107
+ /** When the vybit was created */
108
+ createdAt?: string;
109
+ /** When the vybit was last updated */
110
+ updatedAt?: string;
111
+ }
112
+ /**
113
+ * Parameters for creating a new vybit
114
+ */
115
+ export interface VybitCreateParams {
116
+ /** Vybit display name */
117
+ name: string;
118
+ /** Detailed vybit description */
119
+ description?: string;
120
+ /** Key of the sound to play (defaults to a system sound if not provided) */
121
+ soundKey?: string;
122
+ /** Vybit status (on = active, off = disabled, defaults to "on") */
123
+ status?: 'on' | 'off';
124
+ /** How this vybit is triggered (defaults to "webhook") */
125
+ triggerType?: 'webhook' | 'schedule' | 'geofence' | 'integration';
126
+ /** Configuration specific to the trigger type */
127
+ triggerSettings?: any;
128
+ /** Vybit visibility and access control (defaults to "private") */
129
+ access?: 'public' | 'private' | 'unlisted';
130
+ /** Default message displayed with notifications */
131
+ message?: string;
132
+ /** Default image URL for notifications */
133
+ imageUrl?: string;
134
+ /** Default URL to open when notification is tapped */
135
+ linkUrl?: string;
136
+ /** Geofence configuration (for geofence trigger type) */
137
+ geofence?: any;
138
+ /** Who can trigger this vybit (defaults to "owner_subs") */
139
+ sendPermissions?: 'owner_subs' | 'subs_owner' | 'subs_group';
140
+ }
141
+ /**
142
+ * Parameters for updating a vybit
143
+ */
144
+ export interface VybitUpdateParams {
145
+ /** Vybit display name */
146
+ name?: string;
147
+ /** Detailed vybit description */
148
+ description?: string;
149
+ /** Key of the sound to play */
150
+ soundKey?: string;
151
+ /** Vybit status (on = active, off = disabled) */
152
+ status?: 'on' | 'off';
153
+ /** How this vybit is triggered */
154
+ triggerType?: 'webhook' | 'schedule' | 'geofence' | 'integration';
155
+ /** Configuration specific to the trigger type */
156
+ triggerSettings?: any;
157
+ /** Vybit visibility and access control */
158
+ access?: 'public' | 'private' | 'unlisted';
159
+ /** Default message displayed with notifications */
160
+ message?: string;
161
+ /** Default image URL for notifications */
162
+ imageUrl?: string;
163
+ /** Default URL to open when notification is tapped */
164
+ linkUrl?: string;
165
+ /** Geofence configuration (for geofence trigger type) */
166
+ geofence?: any;
167
+ /** Who can trigger this vybit */
168
+ sendPermissions?: 'owner_subs' | 'subs_owner' | 'subs_group';
169
+ }
170
+ /**
171
+ * Vybit subscription (follow) information
172
+ */
173
+ export interface VybitFollow {
174
+ /** Unique vybit follow identifier */
175
+ followingKey: string;
176
+ /** Name of the vybit being followed */
177
+ vybName: string;
178
+ /** Description of the vybit */
179
+ description?: string;
180
+ /** Sound key for this vybit */
181
+ soundKey?: string;
182
+ /** Type of sound file */
183
+ soundType?: string;
184
+ /** Name of the vybit owner */
185
+ ownerName?: string;
186
+ /** Follow status */
187
+ status?: string;
188
+ /** Access status for this subscription */
189
+ accessStatus?: string;
190
+ /** Subscription key used to create this follow */
191
+ subscriptionKey?: string;
192
+ /** Access level of the vybit */
193
+ access?: 'public' | 'private' | 'unlisted';
194
+ /** Default message for this vybit */
195
+ message?: string;
196
+ /** Default image URL */
197
+ imageUrl?: string;
198
+ /** Default link URL */
199
+ linkUrl?: string;
200
+ /** Send permissions for this vybit */
201
+ sendPermissions?: 'owner_subs' | 'subs_owner' | 'subs_group';
202
+ /** When the subscription was created */
203
+ createdAt?: string;
204
+ /** When the subscription was last updated */
205
+ updatedAt?: string;
206
+ }
207
+ /**
208
+ * Parameters for creating a vybit follow
209
+ */
210
+ export interface VybitFollowCreateParams {
211
+ /** The subscription key of the vybit to follow */
212
+ subscriptionKey: string;
213
+ }
214
+ /**
215
+ * Parameters for updating a vybit follow
216
+ */
217
+ export interface VybitFollowUpdateParams {
218
+ /** Subscription status */
219
+ status?: 'on' | 'off';
220
+ /** Access status (only applicable when current status is 'invited') */
221
+ accessStatus?: 'granted' | 'declined';
222
+ /** Custom notification message (only if subscribers can send notifications) */
223
+ message?: string;
224
+ /** Custom image URL (only if subscribers can send notifications) */
225
+ imageUrl?: string;
226
+ /** Custom link URL (only if subscribers can send notifications) */
227
+ linkUrl?: string;
228
+ }
229
+ /**
230
+ * Public vybit information for discovery
231
+ */
232
+ export interface PublicVybit {
233
+ /** Unique subscription key for this public vybit */
234
+ key: string;
235
+ /** Vybit display name */
236
+ name: string;
237
+ /** Detailed vybit description */
238
+ description?: string;
239
+ /** Key of the sound to play */
240
+ soundKey: string;
241
+ /** Type of sound file */
242
+ soundType?: string;
243
+ /** Default image URL for notifications */
244
+ imageUrl?: string | null;
245
+ /** Default URL to open when notification is tapped */
246
+ linkUrl?: string | null;
247
+ /** Name of the vybit owner */
248
+ ownerName: string;
249
+ /** Whether the authenticated user is currently following this vybit */
250
+ following: boolean;
251
+ /** When the vybit was created */
252
+ createdAt?: string;
253
+ /** When the vybit was last updated */
254
+ updatedAt?: string;
255
+ }
256
+ /**
257
+ * Sound information
258
+ */
259
+ export interface Sound {
260
+ /** Unique sound identifier */
261
+ key: string;
262
+ /** Sound name */
263
+ name: string;
264
+ /** Sound description */
265
+ description?: string;
266
+ /** Audio file type */
267
+ type: string;
268
+ /** Sound status */
269
+ status: string;
270
+ /** URL to play/download the sound via Vybit proxy */
271
+ url: string;
272
+ /** Key of first vybit using this sound (null if unused) */
273
+ vybitKey?: string | null;
274
+ /** Additional metadata about the sound */
275
+ meta?: any;
276
+ /** When the sound was created */
277
+ createdAt?: string;
278
+ /** When the sound was last updated */
279
+ updatedAt?: string;
280
+ }
281
+ /**
282
+ * Notification log entry
283
+ */
284
+ export interface Log {
285
+ /** Unique log entry identifier */
286
+ key: string;
287
+ /** Key of the vybit that was triggered */
288
+ vybKey: string;
289
+ /** Name of the vybit */
290
+ vybName: string;
291
+ /** Description of the vybit */
292
+ vybDescription?: string;
293
+ /** Name of the user who owns/received the notification */
294
+ ownerName: string;
295
+ /** Name of the user who sent/triggered the notification */
296
+ senderName: string;
297
+ /** Notification message */
298
+ notification?: string;
299
+ /** Custom image URL */
300
+ imageUrl?: string | null;
301
+ /** Custom link URL */
302
+ linkUrl?: string | null;
303
+ /** Sound key used */
304
+ soundKey?: string | null;
305
+ /** Vybit follow key (null if owner-triggered) */
306
+ vybfollowKey?: string | null;
307
+ /** Custom log message */
308
+ log?: string | null;
309
+ /** When the log entry was created */
310
+ createdAt?: string;
311
+ }
312
+ /**
313
+ * Peep (subscriber) information
314
+ */
315
+ export interface Peep {
316
+ /** Unique peep identifier */
317
+ key: string;
318
+ /** Key of the vybit being shared */
319
+ vybKey: string;
320
+ /** Peep name */
321
+ name?: string;
322
+ /** Subscription notification status */
323
+ status?: 'on' | 'off';
324
+ /** Custom sound key override */
325
+ soundKey?: string | null;
326
+ /** Access status */
327
+ accessStatus?: 'denied' | 'public' | 'invited' | 'granted';
328
+ /** Custom notification message */
329
+ message?: string | null;
330
+ /** Custom image URL */
331
+ imageUrl?: string | null;
332
+ /** Custom link URL */
333
+ linkUrl?: string | null;
334
+ /** When the peep was created */
335
+ createdAt?: string;
336
+ /** When the peep was last updated */
337
+ updatedAt?: string;
338
+ }
339
+ /**
340
+ * Parameters for creating a peep invitation
341
+ */
342
+ export interface PeepCreateParams {
343
+ /** Email address of the user to invite */
344
+ email: string;
345
+ }
346
+ /**
347
+ * Parameters for triggering a vybit notification
348
+ */
349
+ export interface VybitTriggerParams {
350
+ /** Custom notification message */
351
+ message?: string;
352
+ /** Custom image URL */
353
+ imageUrl?: string;
354
+ /** Custom link URL */
355
+ linkUrl?: string;
356
+ }
357
+ /**
358
+ * Response from triggering a vybit
359
+ */
360
+ export interface VybitTriggerResponse {
361
+ /** Result code (1 = success) */
362
+ result: number;
363
+ /** Primary log key for the triggered notification */
364
+ plk?: string;
365
+ /** Warning message if vybit is off */
366
+ warn?: string;
367
+ }
368
+ /**
369
+ * Parameters for subscriber send notifications
370
+ */
371
+ export interface SubscriberSendParams {
372
+ /** Notification message to send */
373
+ message?: string;
374
+ /** Custom image URL */
375
+ imageUrl?: string;
376
+ /** Custom link URL */
377
+ linkUrl?: string;
378
+ }
379
+ /**
380
+ * Response from subscriber send operations
381
+ */
382
+ export interface SubscriberSendResponse {
383
+ /** Result code (1 = success) */
384
+ result: number;
385
+ /** Primary log key for the triggered notification */
386
+ plk?: string;
387
+ }
388
+ /**
389
+ * Standard error response
390
+ */
391
+ export interface ErrorResponse {
392
+ /** Error code or type */
393
+ error: string;
394
+ /** Human-readable error description */
395
+ message?: string;
396
+ /** Result code (0 = error) */
397
+ result?: number;
398
+ }
399
+ /**
400
+ * Delete operation response
401
+ */
402
+ export interface DeleteResponse {
403
+ /** Result code (1 = success) */
404
+ result: number;
405
+ /** Success message */
406
+ message?: string;
5
407
  }
6
408
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,SAAS;CAEzB;AAED,MAAM,WA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uC;IACvC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,8BAA8B;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,gCAAgC;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,sBAAsB;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB"}
package/package.json CHANGED
@@ -1,20 +1,23 @@
1
1
  {
2
2
  "name": "@vybit/api-sdk",
3
- "version": "1.0.1",
4
- "description": "[PLACEHOLDER] API SDK for Vybit - Full implementation coming in future release",
3
+ "version": "1.1.1",
4
+ "description": "Developer API SDK for Vybit notification platform",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "scripts": {
8
- "build": "tsc",
9
- "clean": "rm -rf dist",
8
+ "build": "tsc -b",
9
+ "clean": "rm -rf dist *.tsbuildinfo",
10
10
  "dev": "tsc --watch",
11
- "test": "jest --config ../../jest.config.js --rootDir ../.."
11
+ "test": "jest --config ../../jest.config.js --rootDir ../..",
12
+ "lint": "echo 'Run lint from root: npm run lint'"
12
13
  },
13
14
  "keywords": [
14
15
  "vybit",
15
16
  "api",
16
17
  "rest",
17
- "sdk"
18
+ "sdk",
19
+ "notifications",
20
+ "developer-api"
18
21
  ],
19
22
  "author": "Vybit Team",
20
23
  "license": "MIT",
@@ -38,6 +41,14 @@
38
41
  "node": ">=16.0.0"
39
42
  },
40
43
  "dependencies": {
41
- "@vybit/core": "^1.0.1"
44
+ "@vybit/core": "^1.1.0"
45
+ },
46
+ "peerDependencies": {
47
+ "node-fetch": "^3.0.0"
48
+ },
49
+ "peerDependenciesMeta": {
50
+ "node-fetch": {
51
+ "optional": true
52
+ }
42
53
  }
43
54
  }