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