@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.
- package/README.md +298 -38
- package/dist/api-client.d.ts +262 -9
- package/dist/api-client.d.ts.map +1 -1
- package/dist/api-client.js +421 -13
- package/dist/api-client.js.map +1 -1
- package/dist/index.d.ts +6 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -8
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +368 -3
- package/dist/types.d.ts.map +1 -1
- package/package.json +19 -8
package/dist/types.d.ts
CHANGED
|
@@ -1,6 +1,371 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Configuration for Vybit Developer API client
|
|
3
|
+
*/
|
|
4
|
+
export interface VybitAPIConfig {
|
|
5
|
+
/** Developer API key from Vybit developer portal */
|
|
6
|
+
apiKey: string;
|
|
7
|
+
/** Base URL for API calls (defaults to production) */
|
|
8
|
+
baseUrl?: string;
|
|
2
9
|
}
|
|
3
|
-
|
|
4
|
-
|
|
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
|
+
/** Notifications triggered today */
|
|
59
|
+
count_daily: number;
|
|
60
|
+
/** Notifications triggered this month */
|
|
61
|
+
count_monthly: number;
|
|
62
|
+
/** Total notifications all-time */
|
|
63
|
+
count_total: number;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Vybit notification configuration
|
|
67
|
+
*/
|
|
68
|
+
export interface Vybit {
|
|
69
|
+
/** Unique vybit identifier */
|
|
70
|
+
key: string;
|
|
71
|
+
/** Vybit display name */
|
|
72
|
+
name: string;
|
|
73
|
+
/** Detailed vybit description */
|
|
74
|
+
description?: string;
|
|
75
|
+
/** Key of the sound to play */
|
|
76
|
+
soundKey: string;
|
|
77
|
+
/** Vybit status */
|
|
78
|
+
status?: 'active' | 'inactive' | 'deleted';
|
|
79
|
+
/** Vybit type (legacy field) */
|
|
80
|
+
type?: string;
|
|
81
|
+
/** Unique key for triggering this vybit via webhook */
|
|
82
|
+
triggerKey?: string;
|
|
83
|
+
/** Unique key for subscribing to this vybit */
|
|
84
|
+
subscriptionKey?: string;
|
|
85
|
+
/** How this vybit is triggered */
|
|
86
|
+
triggerType: 'webhook' | 'schedule' | 'geofence' | 'integration';
|
|
87
|
+
/** Configuration specific to the trigger type */
|
|
88
|
+
triggerSettings?: any;
|
|
89
|
+
/** Vybit visibility and access control */
|
|
90
|
+
access?: 'public' | 'private' | 'unlisted';
|
|
91
|
+
/** Default message displayed with notifications */
|
|
92
|
+
message?: string;
|
|
93
|
+
/** Default image URL for notifications */
|
|
94
|
+
imageUrl?: string;
|
|
95
|
+
/** Default URL to open when notification is tapped */
|
|
96
|
+
linkUrl?: string;
|
|
97
|
+
/** Geofence configuration (for geofence trigger type) */
|
|
98
|
+
geofence?: any;
|
|
99
|
+
/** Count of users subscribed to this vybit */
|
|
100
|
+
numberFollowers?: number;
|
|
101
|
+
/** Who can trigger this vybit */
|
|
102
|
+
sendPermissions?: 'owner_subs' | 'subs_owner' | 'subs_group';
|
|
103
|
+
/** Key of the user who owns this vybit */
|
|
104
|
+
personKey?: string;
|
|
105
|
+
/** When the vybit was created */
|
|
106
|
+
createdAt?: string;
|
|
107
|
+
/** When the vybit was last updated */
|
|
108
|
+
updatedAt?: string;
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Parameters for creating a new vybit
|
|
112
|
+
*/
|
|
113
|
+
export interface VybitCreateParams {
|
|
114
|
+
/** Vybit display name */
|
|
115
|
+
name: string;
|
|
116
|
+
/** Detailed vybit description */
|
|
117
|
+
description?: string;
|
|
118
|
+
/** Key of the sound to play */
|
|
119
|
+
soundKey: string;
|
|
120
|
+
/** How this vybit is triggered */
|
|
121
|
+
triggerType: 'webhook' | 'schedule' | 'geofence' | 'integration';
|
|
122
|
+
/** Configuration specific to the trigger type */
|
|
123
|
+
triggerSettings?: any;
|
|
124
|
+
/** Vybit visibility and access control */
|
|
125
|
+
access?: 'public' | 'private' | 'unlisted';
|
|
126
|
+
/** Default message displayed with notifications */
|
|
127
|
+
message?: string;
|
|
128
|
+
/** Default image URL for notifications */
|
|
129
|
+
imageUrl?: string;
|
|
130
|
+
/** Default URL to open when notification is tapped */
|
|
131
|
+
linkUrl?: string;
|
|
132
|
+
/** Geofence configuration (for geofence trigger type) */
|
|
133
|
+
geofence?: any;
|
|
134
|
+
/** Who can trigger this vybit */
|
|
135
|
+
sendPermissions?: 'owner_subs' | 'subs_owner' | 'subs_group';
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Parameters for updating a vybit
|
|
139
|
+
*/
|
|
140
|
+
export interface VybitUpdateParams {
|
|
141
|
+
/** Vybit display name */
|
|
142
|
+
name?: string;
|
|
143
|
+
/** Detailed vybit description */
|
|
144
|
+
description?: string;
|
|
145
|
+
/** Key of the sound to play */
|
|
146
|
+
soundKey?: string;
|
|
147
|
+
/** How this vybit is triggered */
|
|
148
|
+
triggerType?: 'webhook' | 'schedule' | 'geofence' | 'integration';
|
|
149
|
+
/** Configuration specific to the trigger type */
|
|
150
|
+
triggerSettings?: any;
|
|
151
|
+
/** Vybit visibility and access control */
|
|
152
|
+
access?: 'public' | 'private' | 'unlisted';
|
|
153
|
+
/** Default message displayed with notifications */
|
|
154
|
+
message?: string;
|
|
155
|
+
/** Default image URL for notifications */
|
|
156
|
+
imageUrl?: string;
|
|
157
|
+
/** Default URL to open when notification is tapped */
|
|
158
|
+
linkUrl?: string;
|
|
159
|
+
/** Geofence configuration (for geofence trigger type) */
|
|
160
|
+
geofence?: any;
|
|
161
|
+
/** Who can trigger this vybit */
|
|
162
|
+
sendPermissions?: 'owner_subs' | 'subs_owner' | 'subs_group';
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* Vybit subscription (follow) information
|
|
166
|
+
*/
|
|
167
|
+
export interface VybitFollow {
|
|
168
|
+
/** Unique vybit follow identifier */
|
|
169
|
+
key: string;
|
|
170
|
+
/** Key of the subscribed user */
|
|
171
|
+
personKey?: string;
|
|
172
|
+
/** Key of the vybit being followed */
|
|
173
|
+
vybKey: string;
|
|
174
|
+
/** Name of the vybit being followed */
|
|
175
|
+
vybName: string;
|
|
176
|
+
/** Description of the vybit */
|
|
177
|
+
description?: string;
|
|
178
|
+
/** Sound key for this vybit */
|
|
179
|
+
soundKey?: string;
|
|
180
|
+
/** Type of sound file */
|
|
181
|
+
soundType?: string;
|
|
182
|
+
/** Name of the vybit owner */
|
|
183
|
+
ownerName?: string;
|
|
184
|
+
/** Follow status */
|
|
185
|
+
status?: string;
|
|
186
|
+
/** Access status for this subscription */
|
|
187
|
+
accessStatus?: string;
|
|
188
|
+
/** Subscription key used to create this follow */
|
|
189
|
+
subscriptionKey?: string;
|
|
190
|
+
/** Access level of the vybit */
|
|
191
|
+
access?: 'public' | 'private' | 'unlisted';
|
|
192
|
+
/** Trigger type of the vybit */
|
|
193
|
+
triggerType?: 'webhook' | 'schedule' | 'geofence' | 'integration';
|
|
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
|
+
* Sound information
|
|
231
|
+
*/
|
|
232
|
+
export interface Sound {
|
|
233
|
+
/** Unique sound identifier */
|
|
234
|
+
key: string;
|
|
235
|
+
/** Sound name */
|
|
236
|
+
name: string;
|
|
237
|
+
/** Sound description */
|
|
238
|
+
description?: string;
|
|
239
|
+
/** Audio file type */
|
|
240
|
+
type: string;
|
|
241
|
+
/** Sound status */
|
|
242
|
+
status: string;
|
|
243
|
+
/** URL to play/download the sound */
|
|
244
|
+
url: string;
|
|
245
|
+
/** Key of first vybit using this sound (null if unused) */
|
|
246
|
+
vybitKey?: string | null;
|
|
247
|
+
/** Additional metadata about the sound */
|
|
248
|
+
meta?: any;
|
|
249
|
+
}
|
|
250
|
+
/**
|
|
251
|
+
* Notification log entry
|
|
252
|
+
*/
|
|
253
|
+
export interface Log {
|
|
254
|
+
/** Unique log entry identifier */
|
|
255
|
+
key: string;
|
|
256
|
+
/** Key of the vybit that was triggered */
|
|
257
|
+
vybKey: string;
|
|
258
|
+
/** Key of the user who received the notification */
|
|
259
|
+
personKey: string;
|
|
260
|
+
/** When notification processing started */
|
|
261
|
+
dtStart?: string;
|
|
262
|
+
/** When notification processing completed */
|
|
263
|
+
dtEnd?: string;
|
|
264
|
+
/** Input data that triggered the notification */
|
|
265
|
+
input?: any;
|
|
266
|
+
/** Output data from notification processing */
|
|
267
|
+
output?: any;
|
|
268
|
+
/** Diagnostic information about the notification delivery */
|
|
269
|
+
diagnostics?: any;
|
|
270
|
+
/** Key of parent log entry (for grouped notifications) */
|
|
271
|
+
parentLogKey?: string;
|
|
272
|
+
/** Whether the sound was played */
|
|
273
|
+
playedSound?: string;
|
|
274
|
+
}
|
|
275
|
+
/**
|
|
276
|
+
* Peep (subscriber) information
|
|
277
|
+
*/
|
|
278
|
+
export interface Peep {
|
|
279
|
+
/** Unique peep identifier */
|
|
280
|
+
key: string;
|
|
281
|
+
/** Key of the vybit being shared */
|
|
282
|
+
vybKey: string;
|
|
283
|
+
/** Peep name */
|
|
284
|
+
name?: string;
|
|
285
|
+
/** Subscription notification status */
|
|
286
|
+
status?: 'on' | 'off';
|
|
287
|
+
/** Custom sound key override */
|
|
288
|
+
soundKey?: string | null;
|
|
289
|
+
/** Access status */
|
|
290
|
+
accessStatus?: 'denied' | 'public' | 'invited' | 'granted';
|
|
291
|
+
/** Custom notification message */
|
|
292
|
+
message?: string | null;
|
|
293
|
+
/** Custom image URL */
|
|
294
|
+
imageUrl?: string | null;
|
|
295
|
+
/** Custom link URL */
|
|
296
|
+
linkUrl?: string | null;
|
|
297
|
+
/** When the peep was created */
|
|
298
|
+
createdAt?: string;
|
|
299
|
+
/** When the peep was last updated */
|
|
300
|
+
updatedAt?: string;
|
|
301
|
+
}
|
|
302
|
+
/**
|
|
303
|
+
* Parameters for creating a peep invitation
|
|
304
|
+
*/
|
|
305
|
+
export interface PeepCreateParams {
|
|
306
|
+
/** Email address of the user to invite */
|
|
307
|
+
email: string;
|
|
308
|
+
}
|
|
309
|
+
/**
|
|
310
|
+
* Parameters for triggering a vybit notification
|
|
311
|
+
*/
|
|
312
|
+
export interface VybitTriggerParams {
|
|
313
|
+
/** Custom notification message */
|
|
314
|
+
message?: string;
|
|
315
|
+
/** Custom image URL */
|
|
316
|
+
imageUrl?: string;
|
|
317
|
+
/** Custom link URL */
|
|
318
|
+
linkUrl?: string;
|
|
319
|
+
}
|
|
320
|
+
/**
|
|
321
|
+
* Response from triggering a vybit
|
|
322
|
+
*/
|
|
323
|
+
export interface VybitTriggerResponse {
|
|
324
|
+
/** Result code (1 = success) */
|
|
325
|
+
result: number;
|
|
326
|
+
/** Primary log key for the triggered notification */
|
|
327
|
+
plk?: string;
|
|
328
|
+
/** Warning message if vybit is off */
|
|
329
|
+
warn?: string;
|
|
330
|
+
}
|
|
331
|
+
/**
|
|
332
|
+
* Parameters for subscriber send notifications
|
|
333
|
+
*/
|
|
334
|
+
export interface SubscriberSendParams {
|
|
335
|
+
/** Notification message to send */
|
|
336
|
+
message?: string;
|
|
337
|
+
/** Custom image URL */
|
|
338
|
+
imageUrl?: string;
|
|
339
|
+
/** Custom link URL */
|
|
340
|
+
linkUrl?: string;
|
|
341
|
+
}
|
|
342
|
+
/**
|
|
343
|
+
* Response from subscriber send operations
|
|
344
|
+
*/
|
|
345
|
+
export interface SubscriberSendResponse {
|
|
346
|
+
/** Result code (1 = success) */
|
|
347
|
+
result: number;
|
|
348
|
+
/** Primary log key for the triggered notification */
|
|
349
|
+
plk?: string;
|
|
350
|
+
}
|
|
351
|
+
/**
|
|
352
|
+
* Standard error response
|
|
353
|
+
*/
|
|
354
|
+
export interface ErrorResponse {
|
|
355
|
+
/** Error code or type */
|
|
356
|
+
error: string;
|
|
357
|
+
/** Human-readable error description */
|
|
358
|
+
message?: string;
|
|
359
|
+
/** Result code (0 = error) */
|
|
360
|
+
result?: number;
|
|
361
|
+
}
|
|
362
|
+
/**
|
|
363
|
+
* Delete operation response
|
|
364
|
+
*/
|
|
365
|
+
export interface DeleteResponse {
|
|
366
|
+
/** Result code (1 = success) */
|
|
367
|
+
result: number;
|
|
368
|
+
/** Success message */
|
|
369
|
+
message?: string;
|
|
5
370
|
}
|
|
6
371
|
//# sourceMappingURL=types.d.ts.map
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,oDAAoD;IACpD,MAAM,EAAE,MAAM,CAAC;IACf,sDAAsD;IACtD,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,gBAAg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AyB;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,uCAAuC;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,31 +1,34 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vybit/api-sdk",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "1.1.0",
|
|
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
8
|
"build": "tsc",
|
|
9
9
|
"clean": "rm -rf dist",
|
|
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",
|
|
21
24
|
"repository": {
|
|
22
25
|
"type": "git",
|
|
23
|
-
"url": "https://
|
|
26
|
+
"url": "https://gitlab.com/flatirontek/vybit-sdk.git",
|
|
24
27
|
"directory": "packages/api"
|
|
25
28
|
},
|
|
26
|
-
"homepage": "https://
|
|
29
|
+
"homepage": "https://gitlab.com/flatirontek/vybit-sdk#readme",
|
|
27
30
|
"bugs": {
|
|
28
|
-
"url": "https://
|
|
31
|
+
"url": "https://gitlab.com/flatirontek/vybit-sdk/-/issues"
|
|
29
32
|
},
|
|
30
33
|
"publishConfig": {
|
|
31
34
|
"access": "public"
|
|
@@ -38,6 +41,14 @@
|
|
|
38
41
|
"node": ">=16.0.0"
|
|
39
42
|
},
|
|
40
43
|
"dependencies": {
|
|
41
|
-
"@vybit/core": "^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
|
}
|