spaps-types 1.4.2 → 1.5.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.
@@ -0,0 +1,884 @@
1
+ export declare const SPAPS_WEBHOOK_EVENT_CATALOG: {
2
+ readonly "user.registered": {
3
+ readonly description: "User registered a new account";
4
+ readonly schemaVersion: 1;
5
+ readonly emitted: false;
6
+ readonly payloadSchema: {
7
+ readonly additionalProperties: true;
8
+ readonly description: "Payload schema for legacy event names that are not emitted today.";
9
+ readonly properties: {};
10
+ readonly title: "FlexiblePayload";
11
+ readonly type: "object";
12
+ };
13
+ };
14
+ readonly "user.login": {
15
+ readonly description: "User logged in";
16
+ readonly schemaVersion: 1;
17
+ readonly emitted: false;
18
+ readonly payloadSchema: {
19
+ readonly additionalProperties: true;
20
+ readonly description: "Payload schema for legacy event names that are not emitted today.";
21
+ readonly properties: {};
22
+ readonly title: "FlexiblePayload";
23
+ readonly type: "object";
24
+ };
25
+ };
26
+ readonly "user.logout": {
27
+ readonly description: "User logged out";
28
+ readonly schemaVersion: 1;
29
+ readonly emitted: false;
30
+ readonly payloadSchema: {
31
+ readonly additionalProperties: true;
32
+ readonly description: "Payload schema for legacy event names that are not emitted today.";
33
+ readonly properties: {};
34
+ readonly title: "FlexiblePayload";
35
+ readonly type: "object";
36
+ };
37
+ };
38
+ readonly "user.password_reset": {
39
+ readonly description: "User requested password reset";
40
+ readonly schemaVersion: 1;
41
+ readonly emitted: false;
42
+ readonly payloadSchema: {
43
+ readonly additionalProperties: true;
44
+ readonly description: "Payload schema for legacy event names that are not emitted today.";
45
+ readonly properties: {};
46
+ readonly title: "FlexiblePayload";
47
+ readonly type: "object";
48
+ };
49
+ };
50
+ readonly "user.password_changed": {
51
+ readonly description: "User changed their password";
52
+ readonly schemaVersion: 1;
53
+ readonly emitted: false;
54
+ readonly payloadSchema: {
55
+ readonly additionalProperties: true;
56
+ readonly description: "Payload schema for legacy event names that are not emitted today.";
57
+ readonly properties: {};
58
+ readonly title: "FlexiblePayload";
59
+ readonly type: "object";
60
+ };
61
+ };
62
+ readonly "user.deleted": {
63
+ readonly description: "User account was deleted and direct identity data was scrubbed";
64
+ readonly schemaVersion: 1;
65
+ readonly emitted: true;
66
+ readonly payloadSchema: {
67
+ readonly additionalProperties: false;
68
+ readonly properties: {
69
+ readonly userId: {
70
+ readonly title: "Userid";
71
+ readonly type: "string";
72
+ };
73
+ readonly applicationId: {
74
+ readonly title: "Applicationid";
75
+ readonly type: "string";
76
+ };
77
+ readonly deletedAt: {
78
+ readonly title: "Deletedat";
79
+ readonly type: "string";
80
+ };
81
+ readonly deletedBy: {
82
+ readonly title: "Deletedby";
83
+ readonly type: "string";
84
+ };
85
+ readonly actorType: {
86
+ readonly title: "Actortype";
87
+ readonly type: "string";
88
+ };
89
+ readonly adminInitiated: {
90
+ readonly title: "Admininitiated";
91
+ readonly type: "boolean";
92
+ };
93
+ readonly alreadyDeleted: {
94
+ readonly title: "Alreadydeleted";
95
+ readonly type: "boolean";
96
+ };
97
+ readonly revokedRefreshTokens: {
98
+ readonly title: "Revokedrefreshtokens";
99
+ readonly type: "integer";
100
+ };
101
+ readonly scrubbedLinkedIdentities: {
102
+ readonly title: "Scrubbedlinkedidentities";
103
+ readonly type: "integer";
104
+ };
105
+ readonly scrubbedFinancialRecords: {
106
+ readonly title: "Scrubbedfinancialrecords";
107
+ readonly type: "integer";
108
+ };
109
+ readonly removedMemberships: {
110
+ readonly title: "Removedmemberships";
111
+ readonly type: "integer";
112
+ };
113
+ };
114
+ readonly required: readonly ["userId", "applicationId", "deletedAt", "deletedBy", "actorType", "adminInitiated", "alreadyDeleted", "revokedRefreshTokens", "scrubbedLinkedIdentities", "scrubbedFinancialRecords", "removedMemberships"];
115
+ readonly title: "UserDeletedPayload";
116
+ readonly type: "object";
117
+ };
118
+ };
119
+ readonly "session.created": {
120
+ readonly description: "New session created";
121
+ readonly schemaVersion: 1;
122
+ readonly emitted: false;
123
+ readonly payloadSchema: {
124
+ readonly additionalProperties: true;
125
+ readonly description: "Payload schema for legacy event names that are not emitted today.";
126
+ readonly properties: {};
127
+ readonly title: "FlexiblePayload";
128
+ readonly type: "object";
129
+ };
130
+ };
131
+ readonly "session.refreshed": {
132
+ readonly description: "Session token refreshed";
133
+ readonly schemaVersion: 1;
134
+ readonly emitted: false;
135
+ readonly payloadSchema: {
136
+ readonly additionalProperties: true;
137
+ readonly description: "Payload schema for legacy event names that are not emitted today.";
138
+ readonly properties: {};
139
+ readonly title: "FlexiblePayload";
140
+ readonly type: "object";
141
+ };
142
+ };
143
+ readonly "session.revoked": {
144
+ readonly description: "Session revoked";
145
+ readonly schemaVersion: 1;
146
+ readonly emitted: false;
147
+ readonly payloadSchema: {
148
+ readonly additionalProperties: true;
149
+ readonly description: "Payload schema for legacy event names that are not emitted today.";
150
+ readonly properties: {};
151
+ readonly title: "FlexiblePayload";
152
+ readonly type: "object";
153
+ };
154
+ };
155
+ readonly "session.expired": {
156
+ readonly description: "Session expired";
157
+ readonly schemaVersion: 1;
158
+ readonly emitted: false;
159
+ readonly payloadSchema: {
160
+ readonly additionalProperties: true;
161
+ readonly description: "Payload schema for legacy event names that are not emitted today.";
162
+ readonly properties: {};
163
+ readonly title: "FlexiblePayload";
164
+ readonly type: "object";
165
+ };
166
+ };
167
+ readonly "wallet.connected": {
168
+ readonly description: "Wallet connected to account";
169
+ readonly schemaVersion: 1;
170
+ readonly emitted: false;
171
+ readonly payloadSchema: {
172
+ readonly additionalProperties: true;
173
+ readonly description: "Payload schema for legacy event names that are not emitted today.";
174
+ readonly properties: {};
175
+ readonly title: "FlexiblePayload";
176
+ readonly type: "object";
177
+ };
178
+ };
179
+ readonly "wallet.disconnected": {
180
+ readonly description: "Wallet disconnected from account";
181
+ readonly schemaVersion: 1;
182
+ readonly emitted: false;
183
+ readonly payloadSchema: {
184
+ readonly additionalProperties: true;
185
+ readonly description: "Payload schema for legacy event names that are not emitted today.";
186
+ readonly properties: {};
187
+ readonly title: "FlexiblePayload";
188
+ readonly type: "object";
189
+ };
190
+ };
191
+ readonly "wallet.verified": {
192
+ readonly description: "Wallet ownership verified";
193
+ readonly schemaVersion: 1;
194
+ readonly emitted: false;
195
+ readonly payloadSchema: {
196
+ readonly additionalProperties: true;
197
+ readonly description: "Payload schema for legacy event names that are not emitted today.";
198
+ readonly properties: {};
199
+ readonly title: "FlexiblePayload";
200
+ readonly type: "object";
201
+ };
202
+ };
203
+ readonly "security.suspicious_activity": {
204
+ readonly description: "Suspicious activity detected";
205
+ readonly schemaVersion: 1;
206
+ readonly emitted: false;
207
+ readonly payloadSchema: {
208
+ readonly additionalProperties: true;
209
+ readonly description: "Payload schema for legacy event names that are not emitted today.";
210
+ readonly properties: {};
211
+ readonly title: "FlexiblePayload";
212
+ readonly type: "object";
213
+ };
214
+ };
215
+ readonly "security.failed_login_attempts": {
216
+ readonly description: "Multiple failed login attempts";
217
+ readonly schemaVersion: 1;
218
+ readonly emitted: false;
219
+ readonly payloadSchema: {
220
+ readonly additionalProperties: true;
221
+ readonly description: "Payload schema for legacy event names that are not emitted today.";
222
+ readonly properties: {};
223
+ readonly title: "FlexiblePayload";
224
+ readonly type: "object";
225
+ };
226
+ };
227
+ readonly "security.token_blacklisted": {
228
+ readonly description: "Token was blacklisted";
229
+ readonly schemaVersion: 1;
230
+ readonly emitted: false;
231
+ readonly payloadSchema: {
232
+ readonly additionalProperties: true;
233
+ readonly description: "Payload schema for legacy event names that are not emitted today.";
234
+ readonly properties: {};
235
+ readonly title: "FlexiblePayload";
236
+ readonly type: "object";
237
+ };
238
+ };
239
+ readonly "entitlement.granted": {
240
+ readonly description: "Entitlement granted to user";
241
+ readonly schemaVersion: 1;
242
+ readonly emitted: false;
243
+ readonly payloadSchema: {
244
+ readonly additionalProperties: true;
245
+ readonly description: "Payload schema for legacy event names that are not emitted today.";
246
+ readonly properties: {};
247
+ readonly title: "FlexiblePayload";
248
+ readonly type: "object";
249
+ };
250
+ };
251
+ readonly "entitlement.renewed": {
252
+ readonly description: "Entitlement renewed";
253
+ readonly schemaVersion: 1;
254
+ readonly emitted: false;
255
+ readonly payloadSchema: {
256
+ readonly additionalProperties: true;
257
+ readonly description: "Payload schema for legacy event names that are not emitted today.";
258
+ readonly properties: {};
259
+ readonly title: "FlexiblePayload";
260
+ readonly type: "object";
261
+ };
262
+ };
263
+ readonly "entitlement.updated": {
264
+ readonly description: "Entitlement updated";
265
+ readonly schemaVersion: 1;
266
+ readonly emitted: false;
267
+ readonly payloadSchema: {
268
+ readonly additionalProperties: true;
269
+ readonly description: "Payload schema for legacy event names that are not emitted today.";
270
+ readonly properties: {};
271
+ readonly title: "FlexiblePayload";
272
+ readonly type: "object";
273
+ };
274
+ };
275
+ readonly "entitlement.expired": {
276
+ readonly description: "Entitlement expired";
277
+ readonly schemaVersion: 1;
278
+ readonly emitted: false;
279
+ readonly payloadSchema: {
280
+ readonly additionalProperties: true;
281
+ readonly description: "Payload schema for legacy event names that are not emitted today.";
282
+ readonly properties: {};
283
+ readonly title: "FlexiblePayload";
284
+ readonly type: "object";
285
+ };
286
+ };
287
+ readonly "entitlement.revoked": {
288
+ readonly description: "Entitlement revoked";
289
+ readonly schemaVersion: 1;
290
+ readonly emitted: true;
291
+ readonly payloadSchema: {
292
+ readonly additionalProperties: false;
293
+ readonly properties: {
294
+ readonly entitlement: {
295
+ readonly additionalProperties: true;
296
+ readonly title: "Entitlement";
297
+ readonly type: "object";
298
+ };
299
+ readonly reason: {
300
+ readonly title: "Reason";
301
+ readonly type: "string";
302
+ };
303
+ readonly stripe_charge_id: {
304
+ readonly anyOf: readonly [{
305
+ readonly type: "string";
306
+ }, {
307
+ readonly type: "null";
308
+ }];
309
+ readonly title: "Stripe Charge Id";
310
+ };
311
+ readonly stripe_refund_id: {
312
+ readonly anyOf: readonly [{
313
+ readonly type: "string";
314
+ }, {
315
+ readonly type: "null";
316
+ }];
317
+ readonly title: "Stripe Refund Id";
318
+ };
319
+ readonly refund_amount_cents: {
320
+ readonly anyOf: readonly [{
321
+ readonly type: "integer";
322
+ }, {
323
+ readonly type: "null";
324
+ }];
325
+ readonly title: "Refund Amount Cents";
326
+ };
327
+ readonly charge_amount_cents: {
328
+ readonly anyOf: readonly [{
329
+ readonly type: "integer";
330
+ }, {
331
+ readonly type: "null";
332
+ }];
333
+ readonly title: "Charge Amount Cents";
334
+ };
335
+ readonly provider_event_created_at: {
336
+ readonly title: "Provider Event Created At";
337
+ readonly type: "string";
338
+ };
339
+ };
340
+ readonly required: readonly ["entitlement", "reason", "stripe_charge_id", "stripe_refund_id", "refund_amount_cents", "charge_amount_cents", "provider_event_created_at"];
341
+ readonly title: "EntitlementRevokedPayload";
342
+ readonly type: "object";
343
+ };
344
+ };
345
+ readonly "entitlement.claimed": {
346
+ readonly description: "Entitlement claimed by user";
347
+ readonly schemaVersion: 1;
348
+ readonly emitted: false;
349
+ readonly payloadSchema: {
350
+ readonly additionalProperties: true;
351
+ readonly description: "Payload schema for legacy event names that are not emitted today.";
352
+ readonly properties: {};
353
+ readonly title: "FlexiblePayload";
354
+ readonly type: "object";
355
+ };
356
+ };
357
+ readonly "subscription.dunning_started": {
358
+ readonly description: "Subscription entered dunning/grace state";
359
+ readonly schemaVersion: 1;
360
+ readonly emitted: true;
361
+ readonly payloadSchema: {
362
+ readonly additionalProperties: false;
363
+ readonly properties: {
364
+ readonly entitlement_id: {
365
+ readonly title: "Entitlement Id";
366
+ readonly type: "string";
367
+ };
368
+ readonly entitlement_key: {
369
+ readonly title: "Entitlement Key";
370
+ readonly type: "string";
371
+ };
372
+ readonly stripe_subscription_id: {
373
+ readonly title: "Stripe Subscription Id";
374
+ readonly type: "string";
375
+ };
376
+ readonly subscription_status: {
377
+ readonly anyOf: readonly [{
378
+ readonly type: "string";
379
+ }, {
380
+ readonly type: "null";
381
+ }];
382
+ readonly title: "Subscription Status";
383
+ };
384
+ readonly terminal_policy: {
385
+ readonly title: "Terminal Policy";
386
+ readonly type: "string";
387
+ };
388
+ readonly grace_days: {
389
+ readonly anyOf: readonly [{
390
+ readonly type: "integer";
391
+ }, {
392
+ readonly type: "null";
393
+ }];
394
+ readonly title: "Grace Days";
395
+ };
396
+ readonly ends_at: {
397
+ readonly anyOf: readonly [{
398
+ readonly type: "string";
399
+ }, {
400
+ readonly type: "null";
401
+ }];
402
+ readonly title: "Ends At";
403
+ };
404
+ };
405
+ readonly required: readonly ["entitlement_id", "entitlement_key", "stripe_subscription_id", "subscription_status", "terminal_policy", "grace_days", "ends_at"];
406
+ readonly title: "SubscriptionLifecyclePayload";
407
+ readonly type: "object";
408
+ };
409
+ };
410
+ readonly "subscription.grace_expired": {
411
+ readonly description: "Subscription grace period expired or terminal payment state ended access";
412
+ readonly schemaVersion: 1;
413
+ readonly emitted: true;
414
+ readonly payloadSchema: {
415
+ readonly additionalProperties: false;
416
+ readonly properties: {
417
+ readonly entitlement_id: {
418
+ readonly title: "Entitlement Id";
419
+ readonly type: "string";
420
+ };
421
+ readonly entitlement_key: {
422
+ readonly title: "Entitlement Key";
423
+ readonly type: "string";
424
+ };
425
+ readonly stripe_subscription_id: {
426
+ readonly title: "Stripe Subscription Id";
427
+ readonly type: "string";
428
+ };
429
+ readonly subscription_status: {
430
+ readonly anyOf: readonly [{
431
+ readonly type: "string";
432
+ }, {
433
+ readonly type: "null";
434
+ }];
435
+ readonly title: "Subscription Status";
436
+ };
437
+ readonly terminal_policy: {
438
+ readonly title: "Terminal Policy";
439
+ readonly type: "string";
440
+ };
441
+ readonly grace_days: {
442
+ readonly anyOf: readonly [{
443
+ readonly type: "integer";
444
+ }, {
445
+ readonly type: "null";
446
+ }];
447
+ readonly title: "Grace Days";
448
+ };
449
+ readonly ends_at: {
450
+ readonly anyOf: readonly [{
451
+ readonly type: "string";
452
+ }, {
453
+ readonly type: "null";
454
+ }];
455
+ readonly title: "Ends At";
456
+ };
457
+ };
458
+ readonly required: readonly ["entitlement_id", "entitlement_key", "stripe_subscription_id", "subscription_status", "terminal_policy", "grace_days", "ends_at"];
459
+ readonly title: "SubscriptionLifecyclePayload";
460
+ readonly type: "object";
461
+ };
462
+ };
463
+ readonly "subscription.recovered": {
464
+ readonly description: "Subscription recovered from dunning";
465
+ readonly schemaVersion: 1;
466
+ readonly emitted: true;
467
+ readonly payloadSchema: {
468
+ readonly additionalProperties: false;
469
+ readonly properties: {
470
+ readonly entitlement_id: {
471
+ readonly title: "Entitlement Id";
472
+ readonly type: "string";
473
+ };
474
+ readonly entitlement_key: {
475
+ readonly title: "Entitlement Key";
476
+ readonly type: "string";
477
+ };
478
+ readonly stripe_subscription_id: {
479
+ readonly title: "Stripe Subscription Id";
480
+ readonly type: "string";
481
+ };
482
+ readonly subscription_status: {
483
+ readonly anyOf: readonly [{
484
+ readonly type: "string";
485
+ }, {
486
+ readonly type: "null";
487
+ }];
488
+ readonly title: "Subscription Status";
489
+ };
490
+ readonly terminal_policy: {
491
+ readonly title: "Terminal Policy";
492
+ readonly type: "string";
493
+ };
494
+ readonly grace_days: {
495
+ readonly anyOf: readonly [{
496
+ readonly type: "integer";
497
+ }, {
498
+ readonly type: "null";
499
+ }];
500
+ readonly title: "Grace Days";
501
+ };
502
+ readonly ends_at: {
503
+ readonly anyOf: readonly [{
504
+ readonly type: "string";
505
+ }, {
506
+ readonly type: "null";
507
+ }];
508
+ readonly title: "Ends At";
509
+ };
510
+ };
511
+ readonly required: readonly ["entitlement_id", "entitlement_key", "stripe_subscription_id", "subscription_status", "terminal_policy", "grace_days", "ends_at"];
512
+ readonly title: "SubscriptionLifecyclePayload";
513
+ readonly type: "object";
514
+ };
515
+ };
516
+ readonly "booking.created": {
517
+ readonly description: "Booking created (free or paid-confirmed)";
518
+ readonly schemaVersion: 1;
519
+ readonly emitted: true;
520
+ readonly payloadSchema: {
521
+ readonly additionalProperties: true;
522
+ readonly properties: {
523
+ readonly bookingId: {
524
+ readonly title: "Bookingid";
525
+ readonly type: "string";
526
+ };
527
+ readonly applicationId: {
528
+ readonly title: "Applicationid";
529
+ readonly type: "string";
530
+ };
531
+ readonly userId: {
532
+ readonly anyOf: readonly [{
533
+ readonly type: "string";
534
+ }, {
535
+ readonly type: "null";
536
+ }];
537
+ readonly title: "Userid";
538
+ };
539
+ readonly clientEmail: {
540
+ readonly title: "Clientemail";
541
+ readonly type: "string";
542
+ };
543
+ readonly clientName: {
544
+ readonly title: "Clientname";
545
+ readonly type: "string";
546
+ };
547
+ readonly date: {
548
+ readonly anyOf: readonly [{
549
+ readonly type: "string";
550
+ }, {
551
+ readonly type: "null";
552
+ }];
553
+ readonly default: null;
554
+ readonly title: "Date";
555
+ };
556
+ readonly slot: {
557
+ readonly title: "Slot";
558
+ readonly type: "string";
559
+ };
560
+ readonly status: {
561
+ readonly title: "Status";
562
+ readonly type: "string";
563
+ };
564
+ readonly isFree: {
565
+ readonly title: "Isfree";
566
+ readonly type: "boolean";
567
+ };
568
+ readonly policyKey: {
569
+ readonly anyOf: readonly [{
570
+ readonly type: "string";
571
+ }, {
572
+ readonly type: "null";
573
+ }];
574
+ readonly title: "Policykey";
575
+ };
576
+ readonly enrollmentId: {
577
+ readonly anyOf: readonly [{
578
+ readonly type: "string";
579
+ }, {
580
+ readonly type: "null";
581
+ }];
582
+ readonly title: "Enrollmentid";
583
+ };
584
+ readonly replacesBookingId: {
585
+ readonly anyOf: readonly [{
586
+ readonly type: "string";
587
+ }, {
588
+ readonly type: "null";
589
+ }];
590
+ readonly title: "Replacesbookingid";
591
+ };
592
+ };
593
+ readonly required: readonly ["bookingId", "applicationId", "userId", "clientEmail", "clientName", "slot", "status", "isFree", "policyKey", "enrollmentId", "replacesBookingId"];
594
+ readonly title: "BookingPayload";
595
+ readonly type: "object";
596
+ };
597
+ };
598
+ readonly "booking.cancelled": {
599
+ readonly description: "Booking cancelled (patient or admin)";
600
+ readonly schemaVersion: 1;
601
+ readonly emitted: true;
602
+ readonly payloadSchema: {
603
+ readonly additionalProperties: true;
604
+ readonly properties: {
605
+ readonly bookingId: {
606
+ readonly title: "Bookingid";
607
+ readonly type: "string";
608
+ };
609
+ readonly applicationId: {
610
+ readonly title: "Applicationid";
611
+ readonly type: "string";
612
+ };
613
+ readonly userId: {
614
+ readonly anyOf: readonly [{
615
+ readonly type: "string";
616
+ }, {
617
+ readonly type: "null";
618
+ }];
619
+ readonly title: "Userid";
620
+ };
621
+ readonly clientEmail: {
622
+ readonly title: "Clientemail";
623
+ readonly type: "string";
624
+ };
625
+ readonly clientName: {
626
+ readonly title: "Clientname";
627
+ readonly type: "string";
628
+ };
629
+ readonly date: {
630
+ readonly anyOf: readonly [{
631
+ readonly type: "string";
632
+ }, {
633
+ readonly type: "null";
634
+ }];
635
+ readonly default: null;
636
+ readonly title: "Date";
637
+ };
638
+ readonly slot: {
639
+ readonly title: "Slot";
640
+ readonly type: "string";
641
+ };
642
+ readonly status: {
643
+ readonly title: "Status";
644
+ readonly type: "string";
645
+ };
646
+ readonly isFree: {
647
+ readonly title: "Isfree";
648
+ readonly type: "boolean";
649
+ };
650
+ readonly policyKey: {
651
+ readonly anyOf: readonly [{
652
+ readonly type: "string";
653
+ }, {
654
+ readonly type: "null";
655
+ }];
656
+ readonly title: "Policykey";
657
+ };
658
+ readonly enrollmentId: {
659
+ readonly anyOf: readonly [{
660
+ readonly type: "string";
661
+ }, {
662
+ readonly type: "null";
663
+ }];
664
+ readonly title: "Enrollmentid";
665
+ };
666
+ readonly replacesBookingId: {
667
+ readonly anyOf: readonly [{
668
+ readonly type: "string";
669
+ }, {
670
+ readonly type: "null";
671
+ }];
672
+ readonly title: "Replacesbookingid";
673
+ };
674
+ readonly cancelledBy: {
675
+ readonly title: "Cancelledby";
676
+ readonly type: "string";
677
+ };
678
+ };
679
+ readonly required: readonly ["bookingId", "applicationId", "userId", "clientEmail", "clientName", "slot", "status", "isFree", "policyKey", "enrollmentId", "replacesBookingId", "cancelledBy"];
680
+ readonly title: "BookingCancelledPayload";
681
+ readonly type: "object";
682
+ };
683
+ };
684
+ readonly "booking.rescheduled": {
685
+ readonly description: "Booking rescheduled (old cancelled + new created)";
686
+ readonly schemaVersion: 1;
687
+ readonly emitted: true;
688
+ readonly payloadSchema: {
689
+ readonly additionalProperties: true;
690
+ readonly properties: {
691
+ readonly oldBookingId: {
692
+ readonly title: "Oldbookingid";
693
+ readonly type: "string";
694
+ };
695
+ readonly newBookingId: {
696
+ readonly title: "Newbookingid";
697
+ readonly type: "string";
698
+ };
699
+ readonly applicationId: {
700
+ readonly title: "Applicationid";
701
+ readonly type: "string";
702
+ };
703
+ readonly userId: {
704
+ readonly anyOf: readonly [{
705
+ readonly type: "string";
706
+ }, {
707
+ readonly type: "null";
708
+ }];
709
+ readonly title: "Userid";
710
+ };
711
+ readonly clientEmail: {
712
+ readonly title: "Clientemail";
713
+ readonly type: "string";
714
+ };
715
+ readonly oldDate: {
716
+ readonly anyOf: readonly [{
717
+ readonly type: "string";
718
+ }, {
719
+ readonly type: "null";
720
+ }];
721
+ readonly title: "Olddate";
722
+ };
723
+ readonly oldSlot: {
724
+ readonly title: "Oldslot";
725
+ readonly type: "string";
726
+ };
727
+ readonly newDate: {
728
+ readonly anyOf: readonly [{
729
+ readonly type: "string";
730
+ }, {
731
+ readonly type: "null";
732
+ }];
733
+ readonly title: "Newdate";
734
+ };
735
+ readonly newSlot: {
736
+ readonly title: "Newslot";
737
+ readonly type: "string";
738
+ };
739
+ readonly isFree: {
740
+ readonly title: "Isfree";
741
+ readonly type: "boolean";
742
+ };
743
+ readonly policyKey: {
744
+ readonly anyOf: readonly [{
745
+ readonly type: "string";
746
+ }, {
747
+ readonly type: "null";
748
+ }];
749
+ readonly title: "Policykey";
750
+ };
751
+ readonly enrollmentId: {
752
+ readonly anyOf: readonly [{
753
+ readonly type: "string";
754
+ }, {
755
+ readonly type: "null";
756
+ }];
757
+ readonly title: "Enrollmentid";
758
+ };
759
+ };
760
+ readonly required: readonly ["oldBookingId", "newBookingId", "applicationId", "userId", "clientEmail", "oldDate", "oldSlot", "newDate", "newSlot", "isFree", "policyKey", "enrollmentId"];
761
+ readonly title: "BookingRescheduledPayload";
762
+ readonly type: "object";
763
+ };
764
+ };
765
+ readonly AFFILIATE_COMMISSION_EARNED: {
766
+ readonly description: "Affiliate earned a commission from a referred payment";
767
+ readonly schemaVersion: 1;
768
+ readonly emitted: true;
769
+ readonly payloadSchema: {
770
+ readonly additionalProperties: false;
771
+ readonly properties: {
772
+ readonly affiliate_id: {
773
+ readonly title: "Affiliate Id";
774
+ readonly type: "string";
775
+ };
776
+ readonly affiliate_slug: {
777
+ readonly title: "Affiliate Slug";
778
+ readonly type: "string";
779
+ };
780
+ readonly commission_level: {
781
+ readonly title: "Commission Level";
782
+ readonly type: "integer";
783
+ };
784
+ readonly commission_amount_cents: {
785
+ readonly title: "Commission Amount Cents";
786
+ readonly type: "integer";
787
+ };
788
+ readonly payment_event_type: {
789
+ readonly title: "Payment Event Type";
790
+ readonly type: "string";
791
+ };
792
+ readonly new_balance_cents: {
793
+ readonly title: "New Balance Cents";
794
+ readonly type: "integer";
795
+ };
796
+ readonly application_id: {
797
+ readonly title: "Application Id";
798
+ readonly type: "string";
799
+ };
800
+ };
801
+ readonly required: readonly ["affiliate_id", "affiliate_slug", "commission_level", "commission_amount_cents", "payment_event_type", "new_balance_cents", "application_id"];
802
+ readonly title: "AffiliateCommissionEarnedPayload";
803
+ readonly type: "object";
804
+ };
805
+ };
806
+ readonly AFFILIATE_PAYOUT_COMPLETED: {
807
+ readonly description: "Affiliate payout marked as completed";
808
+ readonly schemaVersion: 1;
809
+ readonly emitted: true;
810
+ readonly payloadSchema: {
811
+ readonly additionalProperties: false;
812
+ readonly properties: {
813
+ readonly affiliate_id: {
814
+ readonly title: "Affiliate Id";
815
+ readonly type: "string";
816
+ };
817
+ readonly affiliate_slug: {
818
+ readonly title: "Affiliate Slug";
819
+ readonly type: "string";
820
+ };
821
+ readonly amount_cents: {
822
+ readonly title: "Amount Cents";
823
+ readonly type: "integer";
824
+ };
825
+ readonly tx_hash: {
826
+ readonly title: "Tx Hash";
827
+ readonly type: "string";
828
+ };
829
+ readonly chain: {
830
+ readonly title: "Chain";
831
+ readonly type: "string";
832
+ };
833
+ readonly new_balance_cents: {
834
+ readonly title: "New Balance Cents";
835
+ readonly type: "integer";
836
+ };
837
+ readonly application_id: {
838
+ readonly title: "Application Id";
839
+ readonly type: "string";
840
+ };
841
+ };
842
+ readonly required: readonly ["affiliate_id", "affiliate_slug", "amount_cents", "tx_hash", "chain", "new_balance_cents", "application_id"];
843
+ readonly title: "AffiliatePayoutCompletedPayload";
844
+ readonly type: "object";
845
+ };
846
+ };
847
+ readonly REFERRAL_ATTRIBUTED: {
848
+ readonly description: "A user or agent signup was attributed to an affiliate";
849
+ readonly schemaVersion: 1;
850
+ readonly emitted: true;
851
+ readonly payloadSchema: {
852
+ readonly additionalProperties: false;
853
+ readonly properties: {
854
+ readonly affiliate_id: {
855
+ readonly title: "Affiliate Id";
856
+ readonly type: "string";
857
+ };
858
+ readonly affiliate_slug: {
859
+ readonly title: "Affiliate Slug";
860
+ readonly type: "string";
861
+ };
862
+ readonly referred_entity_type: {
863
+ readonly title: "Referred Entity Type";
864
+ readonly type: "string";
865
+ };
866
+ readonly referred_entity_id: {
867
+ readonly title: "Referred Entity Id";
868
+ readonly type: "string";
869
+ };
870
+ readonly application_id: {
871
+ readonly title: "Application Id";
872
+ readonly type: "string";
873
+ };
874
+ };
875
+ readonly required: readonly ["affiliate_id", "affiliate_slug", "referred_entity_type", "referred_entity_id", "application_id"];
876
+ readonly title: "ReferralAttributedPayload";
877
+ readonly type: "object";
878
+ };
879
+ };
880
+ };
881
+ export declare const SPAPS_WEBHOOK_EVENT_TYPES: Array<keyof typeof SPAPS_WEBHOOK_EVENT_CATALOG>;
882
+ export type GeneratedSpapsWebhookEventCatalog = typeof SPAPS_WEBHOOK_EVENT_CATALOG;
883
+ export type GeneratedSpapsWebhookEventType = keyof GeneratedSpapsWebhookEventCatalog;
884
+ //# sourceMappingURL=webhookEventCatalog.d.ts.map