@proxima-nexus/openapi 1.0.0 → 2.0.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/CHANGELOG.md +66 -0
- package/openapi.json +726 -142
- package/openapi.yaml +564 -125
- package/package.json +3 -1
package/openapi.json
CHANGED
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
"get": {
|
|
41
41
|
"operationId": "UserController_search",
|
|
42
42
|
"summary": "Search users",
|
|
43
|
+
"description": "Search for users. When requesterUserId is provided, HIDDEN users are filtered out unless the requester is connected to them, and users who have blocked the requester are also filtered out. When requesterUserId is not provided, all users are returned without visibility filtering.",
|
|
43
44
|
"parameters": [
|
|
44
45
|
{
|
|
45
46
|
"name": "displayName",
|
|
@@ -130,6 +131,15 @@
|
|
|
130
131
|
"example": 100,
|
|
131
132
|
"type": "number"
|
|
132
133
|
}
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"name": "X-Proxima-Nexus-Requester-User-Id",
|
|
137
|
+
"in": "header",
|
|
138
|
+
"description": "ID of the user searching for users. If set, users will be filtered to only include users that the user can see, and requesterConnection will be set on the results.",
|
|
139
|
+
"required": false,
|
|
140
|
+
"schema": {
|
|
141
|
+
"type": "string"
|
|
142
|
+
}
|
|
133
143
|
}
|
|
134
144
|
],
|
|
135
145
|
"responses": {
|
|
@@ -159,7 +169,7 @@
|
|
|
159
169
|
},
|
|
160
170
|
"/user/{userId}": {
|
|
161
171
|
"get": {
|
|
162
|
-
"operationId": "
|
|
172
|
+
"operationId": "UserController_get",
|
|
163
173
|
"summary": "Get a user by ID",
|
|
164
174
|
"parameters": [
|
|
165
175
|
{
|
|
@@ -169,6 +179,15 @@
|
|
|
169
179
|
"schema": {
|
|
170
180
|
"type": "string"
|
|
171
181
|
}
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"name": "X-Proxima-Nexus-Requester-User-Id",
|
|
185
|
+
"in": "header",
|
|
186
|
+
"description": "ID of the user getting a user by ID. If set, 401 may be returned if the user cannot view the user, otherwise requesterConnection will be set on the result.",
|
|
187
|
+
"required": false,
|
|
188
|
+
"schema": {
|
|
189
|
+
"type": "string"
|
|
190
|
+
}
|
|
172
191
|
}
|
|
173
192
|
],
|
|
174
193
|
"responses": {
|
|
@@ -203,6 +222,15 @@
|
|
|
203
222
|
"schema": {
|
|
204
223
|
"type": "string"
|
|
205
224
|
}
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"name": "X-Proxima-Nexus-Requester-User-Id",
|
|
228
|
+
"in": "header",
|
|
229
|
+
"description": "ID of the user updating the user",
|
|
230
|
+
"required": true,
|
|
231
|
+
"schema": {
|
|
232
|
+
"type": "string"
|
|
233
|
+
}
|
|
206
234
|
}
|
|
207
235
|
],
|
|
208
236
|
"requestBody": {
|
|
@@ -247,6 +275,15 @@
|
|
|
247
275
|
"schema": {
|
|
248
276
|
"type": "string"
|
|
249
277
|
}
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
"name": "X-Proxima-Nexus-Requester-User-Id",
|
|
281
|
+
"in": "header",
|
|
282
|
+
"description": "ID of the user deleting the user",
|
|
283
|
+
"required": true,
|
|
284
|
+
"schema": {
|
|
285
|
+
"type": "string"
|
|
286
|
+
}
|
|
250
287
|
}
|
|
251
288
|
],
|
|
252
289
|
"responses": {
|
|
@@ -264,10 +301,11 @@
|
|
|
264
301
|
]
|
|
265
302
|
}
|
|
266
303
|
},
|
|
267
|
-
"/user/{userId}/
|
|
304
|
+
"/user/{userId}/connections/{targetUserId}": {
|
|
268
305
|
"put": {
|
|
269
|
-
"operationId": "
|
|
270
|
-
"summary": "
|
|
306
|
+
"operationId": "UserController_putConnection",
|
|
307
|
+
"summary": "Create or update a connection with another user",
|
|
308
|
+
"description": "Create a friend request, accept a pending request, or block a user. For FRIEND type: creates REQUESTED state if no connection exists; target user can accept by setting state to ACTIVE. For BLOCKED type: creates a mutual block.",
|
|
271
309
|
"parameters": [
|
|
272
310
|
{
|
|
273
311
|
"name": "userId",
|
|
@@ -278,17 +316,36 @@
|
|
|
278
316
|
}
|
|
279
317
|
},
|
|
280
318
|
{
|
|
281
|
-
"name": "
|
|
319
|
+
"name": "targetUserId",
|
|
282
320
|
"required": true,
|
|
283
321
|
"in": "path",
|
|
284
322
|
"schema": {
|
|
285
323
|
"type": "string"
|
|
286
324
|
}
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
"name": "X-Proxima-Nexus-Requester-User-Id",
|
|
328
|
+
"in": "header",
|
|
329
|
+
"description": "ID of the user creating/modifying the connection (must match userId)",
|
|
330
|
+
"required": true,
|
|
331
|
+
"schema": {
|
|
332
|
+
"type": "string"
|
|
333
|
+
}
|
|
287
334
|
}
|
|
288
335
|
],
|
|
336
|
+
"requestBody": {
|
|
337
|
+
"required": true,
|
|
338
|
+
"content": {
|
|
339
|
+
"application/json": {
|
|
340
|
+
"schema": {
|
|
341
|
+
"$ref": "#/components/schemas/MutateUserConnectionDto"
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
},
|
|
289
346
|
"responses": {
|
|
290
347
|
"200": {
|
|
291
|
-
"description": "
|
|
348
|
+
"description": "Connection created or updated",
|
|
292
349
|
"content": {
|
|
293
350
|
"application/json": {
|
|
294
351
|
"schema": {
|
|
@@ -308,8 +365,9 @@
|
|
|
308
365
|
]
|
|
309
366
|
},
|
|
310
367
|
"delete": {
|
|
311
|
-
"operationId": "
|
|
312
|
-
"summary": "
|
|
368
|
+
"operationId": "UserController_deleteConnection",
|
|
369
|
+
"summary": "Delete a connection with another user",
|
|
370
|
+
"description": "Remove a friend connection or unblock a user. For BLOCKED connections, only the user who initiated the block can unblock.",
|
|
313
371
|
"parameters": [
|
|
314
372
|
{
|
|
315
373
|
"name": "userId",
|
|
@@ -320,17 +378,39 @@
|
|
|
320
378
|
}
|
|
321
379
|
},
|
|
322
380
|
{
|
|
323
|
-
"name": "
|
|
381
|
+
"name": "targetUserId",
|
|
324
382
|
"required": true,
|
|
325
383
|
"in": "path",
|
|
326
384
|
"schema": {
|
|
327
385
|
"type": "string"
|
|
328
386
|
}
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
"name": "type",
|
|
390
|
+
"required": true,
|
|
391
|
+
"in": "query",
|
|
392
|
+
"description": "Type of connection to delete",
|
|
393
|
+
"schema": {
|
|
394
|
+
"enum": [
|
|
395
|
+
"friend",
|
|
396
|
+
"blocked"
|
|
397
|
+
],
|
|
398
|
+
"type": "string"
|
|
399
|
+
}
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
"name": "X-Proxima-Nexus-Requester-User-Id",
|
|
403
|
+
"in": "header",
|
|
404
|
+
"description": "ID of the user deleting the connection",
|
|
405
|
+
"required": true,
|
|
406
|
+
"schema": {
|
|
407
|
+
"type": "string"
|
|
408
|
+
}
|
|
329
409
|
}
|
|
330
410
|
],
|
|
331
411
|
"responses": {
|
|
332
|
-
"
|
|
333
|
-
"description": "
|
|
412
|
+
"204": {
|
|
413
|
+
"description": "Connection deleted"
|
|
334
414
|
}
|
|
335
415
|
},
|
|
336
416
|
"tags": [
|
|
@@ -343,10 +423,11 @@
|
|
|
343
423
|
]
|
|
344
424
|
}
|
|
345
425
|
},
|
|
346
|
-
"/user/{userId}/
|
|
426
|
+
"/user/{userId}/connections": {
|
|
347
427
|
"get": {
|
|
348
|
-
"operationId": "
|
|
349
|
-
"summary": "Get
|
|
428
|
+
"operationId": "UserController_getConnections",
|
|
429
|
+
"summary": "Get connections of a user",
|
|
430
|
+
"description": "Get user connections with optional type and state filters. Visibility rules apply: HIDDEN/CONNECTIONS users only show connections to self or connected users. Only the user themselves can see BLOCKED connections or non-ACTIVE states.",
|
|
350
431
|
"parameters": [
|
|
351
432
|
{
|
|
352
433
|
"name": "userId",
|
|
@@ -355,11 +436,56 @@
|
|
|
355
436
|
"schema": {
|
|
356
437
|
"type": "string"
|
|
357
438
|
}
|
|
439
|
+
},
|
|
440
|
+
{
|
|
441
|
+
"name": "state",
|
|
442
|
+
"required": false,
|
|
443
|
+
"in": "query",
|
|
444
|
+
"description": "Filter connections by state. Can be multiple values. Non-self requesters can only see ACTIVE connections.",
|
|
445
|
+
"explode": true,
|
|
446
|
+
"schema": {
|
|
447
|
+
"type": "array",
|
|
448
|
+
"items": {
|
|
449
|
+
"type": "string",
|
|
450
|
+
"enum": [
|
|
451
|
+
"requested",
|
|
452
|
+
"active",
|
|
453
|
+
"rejected",
|
|
454
|
+
"blocked"
|
|
455
|
+
]
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
},
|
|
459
|
+
{
|
|
460
|
+
"name": "type",
|
|
461
|
+
"required": false,
|
|
462
|
+
"in": "query",
|
|
463
|
+
"description": "Filter connections by type. Can be multiple values.",
|
|
464
|
+
"explode": true,
|
|
465
|
+
"schema": {
|
|
466
|
+
"type": "array",
|
|
467
|
+
"items": {
|
|
468
|
+
"type": "string",
|
|
469
|
+
"enum": [
|
|
470
|
+
"friend",
|
|
471
|
+
"blocked"
|
|
472
|
+
]
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
},
|
|
476
|
+
{
|
|
477
|
+
"name": "X-Proxima-Nexus-Requester-User-Id",
|
|
478
|
+
"in": "header",
|
|
479
|
+
"description": "ID of the user viewing connections. Required for non-PUBLIC users. Only the user themselves can view BLOCKED or non-ACTIVE connections.",
|
|
480
|
+
"required": false,
|
|
481
|
+
"schema": {
|
|
482
|
+
"type": "string"
|
|
483
|
+
}
|
|
358
484
|
}
|
|
359
485
|
],
|
|
360
486
|
"responses": {
|
|
361
487
|
"200": {
|
|
362
|
-
"description": "
|
|
488
|
+
"description": "Connections returned",
|
|
363
489
|
"content": {
|
|
364
490
|
"application/json": {
|
|
365
491
|
"schema": {
|
|
@@ -386,7 +512,17 @@
|
|
|
386
512
|
"post": {
|
|
387
513
|
"operationId": "UserController_getBatch",
|
|
388
514
|
"summary": "Get a batch of users by IDs",
|
|
389
|
-
"parameters": [
|
|
515
|
+
"parameters": [
|
|
516
|
+
{
|
|
517
|
+
"name": "X-Proxima-Nexus-Requester-User-Id",
|
|
518
|
+
"in": "header",
|
|
519
|
+
"description": "ID of the user getting a batch of users. If set, users will be filtered to only include users that the user can see, and requesterConnection will be set on the results.",
|
|
520
|
+
"required": false,
|
|
521
|
+
"schema": {
|
|
522
|
+
"type": "string"
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
],
|
|
390
526
|
"requestBody": {
|
|
391
527
|
"required": true,
|
|
392
528
|
"content": {
|
|
@@ -434,6 +570,15 @@
|
|
|
434
570
|
"schema": {
|
|
435
571
|
"type": "string"
|
|
436
572
|
}
|
|
573
|
+
},
|
|
574
|
+
{
|
|
575
|
+
"name": "X-Proxima-Nexus-Requester-User-Id",
|
|
576
|
+
"in": "header",
|
|
577
|
+
"description": "ID of the user getting groups of a user. If set, groups will be filtered to only include groups that the user can see, and requesterConnection will be set on the results.",
|
|
578
|
+
"required": false,
|
|
579
|
+
"schema": {
|
|
580
|
+
"type": "string"
|
|
581
|
+
}
|
|
437
582
|
}
|
|
438
583
|
],
|
|
439
584
|
"responses": {
|
|
@@ -473,6 +618,15 @@
|
|
|
473
618
|
"schema": {
|
|
474
619
|
"type": "string"
|
|
475
620
|
}
|
|
621
|
+
},
|
|
622
|
+
{
|
|
623
|
+
"name": "X-Proxima-Nexus-Requester-User-Id",
|
|
624
|
+
"in": "header",
|
|
625
|
+
"description": "ID of the user getting events of a user. If set, events will be filtered to only include events that the user can see, and requesterConnection will be set on the results.",
|
|
626
|
+
"required": false,
|
|
627
|
+
"schema": {
|
|
628
|
+
"type": "string"
|
|
629
|
+
}
|
|
476
630
|
}
|
|
477
631
|
],
|
|
478
632
|
"responses": {
|
|
@@ -503,8 +657,18 @@
|
|
|
503
657
|
"/event": {
|
|
504
658
|
"post": {
|
|
505
659
|
"operationId": "EventController_create",
|
|
506
|
-
"summary": "Create an event",
|
|
507
|
-
"parameters": [
|
|
660
|
+
"summary": "Create an event. Owner will be the user creating the event or the group associated with the event (if set)",
|
|
661
|
+
"parameters": [
|
|
662
|
+
{
|
|
663
|
+
"name": "X-Proxima-Nexus-Requester-User-Id",
|
|
664
|
+
"in": "header",
|
|
665
|
+
"description": "ID of the user creating the event",
|
|
666
|
+
"required": true,
|
|
667
|
+
"schema": {
|
|
668
|
+
"type": "string"
|
|
669
|
+
}
|
|
670
|
+
}
|
|
671
|
+
],
|
|
508
672
|
"requestBody": {
|
|
509
673
|
"required": true,
|
|
510
674
|
"content": {
|
|
@@ -525,6 +689,12 @@
|
|
|
525
689
|
}
|
|
526
690
|
}
|
|
527
691
|
}
|
|
692
|
+
},
|
|
693
|
+
"400": {
|
|
694
|
+
"description": "Requester user not found, or associated group not found"
|
|
695
|
+
},
|
|
696
|
+
"401": {
|
|
697
|
+
"description": "User cannot create events for the associated group"
|
|
528
698
|
}
|
|
529
699
|
},
|
|
530
700
|
"tags": [
|
|
@@ -532,7 +702,7 @@
|
|
|
532
702
|
],
|
|
533
703
|
"security": [
|
|
534
704
|
{
|
|
535
|
-
"
|
|
705
|
+
"api_key": []
|
|
536
706
|
}
|
|
537
707
|
]
|
|
538
708
|
},
|
|
@@ -629,6 +799,15 @@
|
|
|
629
799
|
"example": 100,
|
|
630
800
|
"type": "number"
|
|
631
801
|
}
|
|
802
|
+
},
|
|
803
|
+
{
|
|
804
|
+
"name": "X-Proxima-Nexus-Requester-User-Id",
|
|
805
|
+
"in": "header",
|
|
806
|
+
"description": "ID of the user searching for events. If set, events will be filtered to only include events that the user can see, and requesterConnection will be set on the results.",
|
|
807
|
+
"required": false,
|
|
808
|
+
"schema": {
|
|
809
|
+
"type": "string"
|
|
810
|
+
}
|
|
632
811
|
}
|
|
633
812
|
],
|
|
634
813
|
"responses": {
|
|
@@ -651,14 +830,14 @@
|
|
|
651
830
|
],
|
|
652
831
|
"security": [
|
|
653
832
|
{
|
|
654
|
-
"
|
|
833
|
+
"api_key": []
|
|
655
834
|
}
|
|
656
835
|
]
|
|
657
836
|
}
|
|
658
837
|
},
|
|
659
838
|
"/event/{eventId}": {
|
|
660
839
|
"get": {
|
|
661
|
-
"operationId": "
|
|
840
|
+
"operationId": "EventController_get",
|
|
662
841
|
"summary": "Get an event by ID",
|
|
663
842
|
"parameters": [
|
|
664
843
|
{
|
|
@@ -668,6 +847,15 @@
|
|
|
668
847
|
"schema": {
|
|
669
848
|
"type": "string"
|
|
670
849
|
}
|
|
850
|
+
},
|
|
851
|
+
{
|
|
852
|
+
"name": "X-Proxima-Nexus-Requester-User-Id",
|
|
853
|
+
"in": "header",
|
|
854
|
+
"description": "ID of the user searching for events. If set, 401 may be returned if the user cannot view the event, otherwise requesterConnection will be set on the result.",
|
|
855
|
+
"required": false,
|
|
856
|
+
"schema": {
|
|
857
|
+
"type": "string"
|
|
858
|
+
}
|
|
671
859
|
}
|
|
672
860
|
],
|
|
673
861
|
"responses": {
|
|
@@ -687,7 +875,7 @@
|
|
|
687
875
|
],
|
|
688
876
|
"security": [
|
|
689
877
|
{
|
|
690
|
-
"
|
|
878
|
+
"api_key": []
|
|
691
879
|
}
|
|
692
880
|
]
|
|
693
881
|
},
|
|
@@ -702,6 +890,15 @@
|
|
|
702
890
|
"schema": {
|
|
703
891
|
"type": "string"
|
|
704
892
|
}
|
|
893
|
+
},
|
|
894
|
+
{
|
|
895
|
+
"name": "X-Proxima-Nexus-Requester-User-Id",
|
|
896
|
+
"in": "header",
|
|
897
|
+
"description": "ID of the user updating the event",
|
|
898
|
+
"required": true,
|
|
899
|
+
"schema": {
|
|
900
|
+
"type": "string"
|
|
901
|
+
}
|
|
705
902
|
}
|
|
706
903
|
],
|
|
707
904
|
"requestBody": {
|
|
@@ -731,7 +928,7 @@
|
|
|
731
928
|
],
|
|
732
929
|
"security": [
|
|
733
930
|
{
|
|
734
|
-
"
|
|
931
|
+
"api_key": []
|
|
735
932
|
}
|
|
736
933
|
]
|
|
737
934
|
},
|
|
@@ -750,7 +947,7 @@
|
|
|
750
947
|
{
|
|
751
948
|
"name": "X-Proxima-Nexus-Requester-User-Id",
|
|
752
949
|
"in": "header",
|
|
753
|
-
"description": "
|
|
950
|
+
"description": "ID of the user deleting the event",
|
|
754
951
|
"required": true,
|
|
755
952
|
"schema": {
|
|
756
953
|
"type": "string"
|
|
@@ -767,14 +964,14 @@
|
|
|
767
964
|
],
|
|
768
965
|
"security": [
|
|
769
966
|
{
|
|
770
|
-
"
|
|
967
|
+
"api_key": []
|
|
771
968
|
}
|
|
772
969
|
]
|
|
773
970
|
}
|
|
774
971
|
},
|
|
775
|
-
"/event/{eventId}/
|
|
972
|
+
"/event/{eventId}/connection/{userId}": {
|
|
776
973
|
"put": {
|
|
777
|
-
"operationId": "
|
|
974
|
+
"operationId": "EventController_addConnection",
|
|
778
975
|
"summary": "Add an attendee to an event",
|
|
779
976
|
"parameters": [
|
|
780
977
|
{
|
|
@@ -792,8 +989,27 @@
|
|
|
792
989
|
"schema": {
|
|
793
990
|
"type": "string"
|
|
794
991
|
}
|
|
992
|
+
},
|
|
993
|
+
{
|
|
994
|
+
"name": "X-Proxima-Nexus-Requester-User-Id",
|
|
995
|
+
"in": "header",
|
|
996
|
+
"description": "ID of the user removing an attendee from the event",
|
|
997
|
+
"required": true,
|
|
998
|
+
"schema": {
|
|
999
|
+
"type": "string"
|
|
1000
|
+
}
|
|
795
1001
|
}
|
|
796
1002
|
],
|
|
1003
|
+
"requestBody": {
|
|
1004
|
+
"required": true,
|
|
1005
|
+
"content": {
|
|
1006
|
+
"application/json": {
|
|
1007
|
+
"schema": {
|
|
1008
|
+
"$ref": "#/components/schemas/MutateEventEntityConnectionDto"
|
|
1009
|
+
}
|
|
1010
|
+
}
|
|
1011
|
+
}
|
|
1012
|
+
},
|
|
797
1013
|
"responses": {
|
|
798
1014
|
"200": {
|
|
799
1015
|
"description": "Attendee added",
|
|
@@ -811,15 +1027,69 @@
|
|
|
811
1027
|
],
|
|
812
1028
|
"security": [
|
|
813
1029
|
{
|
|
814
|
-
"
|
|
1030
|
+
"api_key": []
|
|
1031
|
+
}
|
|
1032
|
+
]
|
|
1033
|
+
},
|
|
1034
|
+
"delete": {
|
|
1035
|
+
"operationId": "EventController_removeConnection",
|
|
1036
|
+
"summary": "Remove an attendee from an event",
|
|
1037
|
+
"parameters": [
|
|
1038
|
+
{
|
|
1039
|
+
"name": "eventId",
|
|
1040
|
+
"required": true,
|
|
1041
|
+
"in": "path",
|
|
1042
|
+
"schema": {
|
|
1043
|
+
"type": "string"
|
|
1044
|
+
}
|
|
1045
|
+
},
|
|
1046
|
+
{
|
|
1047
|
+
"name": "userId",
|
|
1048
|
+
"required": true,
|
|
1049
|
+
"in": "path",
|
|
1050
|
+
"schema": {
|
|
1051
|
+
"type": "string"
|
|
1052
|
+
}
|
|
1053
|
+
},
|
|
1054
|
+
{
|
|
1055
|
+
"name": "X-Proxima-Nexus-Requester-User-Id",
|
|
1056
|
+
"in": "header",
|
|
1057
|
+
"description": "ID of the user removing an attendee from the event",
|
|
1058
|
+
"required": true,
|
|
1059
|
+
"schema": {
|
|
1060
|
+
"type": "string"
|
|
1061
|
+
}
|
|
1062
|
+
}
|
|
1063
|
+
],
|
|
1064
|
+
"requestBody": {
|
|
1065
|
+
"required": true,
|
|
1066
|
+
"content": {
|
|
1067
|
+
"application/json": {
|
|
1068
|
+
"schema": {
|
|
1069
|
+
"$ref": "#/components/schemas/MutateEventEntityConnectionDto"
|
|
1070
|
+
}
|
|
1071
|
+
}
|
|
1072
|
+
}
|
|
1073
|
+
},
|
|
1074
|
+
"responses": {
|
|
1075
|
+
"204": {
|
|
1076
|
+
"description": "Attendee removed"
|
|
1077
|
+
}
|
|
1078
|
+
},
|
|
1079
|
+
"tags": [
|
|
1080
|
+
"event"
|
|
1081
|
+
],
|
|
1082
|
+
"security": [
|
|
1083
|
+
{
|
|
1084
|
+
"api_key": []
|
|
815
1085
|
}
|
|
816
1086
|
]
|
|
817
1087
|
}
|
|
818
1088
|
},
|
|
819
|
-
"/event/{eventId}/
|
|
1089
|
+
"/event/{eventId}/connections": {
|
|
820
1090
|
"get": {
|
|
821
|
-
"operationId": "
|
|
822
|
-
"summary": "Get
|
|
1091
|
+
"operationId": "EventController_getConnections",
|
|
1092
|
+
"summary": "Get connections of an event",
|
|
823
1093
|
"parameters": [
|
|
824
1094
|
{
|
|
825
1095
|
"name": "eventId",
|
|
@@ -828,11 +1098,38 @@
|
|
|
828
1098
|
"schema": {
|
|
829
1099
|
"type": "string"
|
|
830
1100
|
}
|
|
1101
|
+
},
|
|
1102
|
+
{
|
|
1103
|
+
"name": "type",
|
|
1104
|
+
"required": false,
|
|
1105
|
+
"in": "query",
|
|
1106
|
+
"description": "Filter connections by type. Can be a single type or multiple types (comma-separated or array)",
|
|
1107
|
+
"explode": true,
|
|
1108
|
+
"schema": {
|
|
1109
|
+
"type": "array",
|
|
1110
|
+
"items": {
|
|
1111
|
+
"type": "string",
|
|
1112
|
+
"enum": [
|
|
1113
|
+
"attendee",
|
|
1114
|
+
"admin",
|
|
1115
|
+
"owner"
|
|
1116
|
+
]
|
|
1117
|
+
}
|
|
1118
|
+
}
|
|
1119
|
+
},
|
|
1120
|
+
{
|
|
1121
|
+
"name": "X-Proxima-Nexus-Requester-User-Id",
|
|
1122
|
+
"in": "header",
|
|
1123
|
+
"description": "ID of the user getting connections of the event. If set, 401 may be returned if the user cannot view the event connections.",
|
|
1124
|
+
"required": false,
|
|
1125
|
+
"schema": {
|
|
1126
|
+
"type": "string"
|
|
1127
|
+
}
|
|
831
1128
|
}
|
|
832
1129
|
],
|
|
833
1130
|
"responses": {
|
|
834
1131
|
"200": {
|
|
835
|
-
"description": "
|
|
1132
|
+
"description": "Connections returned",
|
|
836
1133
|
"content": {
|
|
837
1134
|
"application/json": {
|
|
838
1135
|
"schema": {
|
|
@@ -850,7 +1147,7 @@
|
|
|
850
1147
|
],
|
|
851
1148
|
"security": [
|
|
852
1149
|
{
|
|
853
|
-
"
|
|
1150
|
+
"api_key": []
|
|
854
1151
|
}
|
|
855
1152
|
]
|
|
856
1153
|
}
|
|
@@ -859,7 +1156,17 @@
|
|
|
859
1156
|
"post": {
|
|
860
1157
|
"operationId": "EventController_getBatch",
|
|
861
1158
|
"summary": "Get a batch of events by IDs",
|
|
862
|
-
"parameters": [
|
|
1159
|
+
"parameters": [
|
|
1160
|
+
{
|
|
1161
|
+
"name": "X-Proxima-Nexus-Requester-User-Id",
|
|
1162
|
+
"in": "header",
|
|
1163
|
+
"description": "ID of the user getting a batch of events. If set, events will be filtered to only include events that the user can see, and requesterConnection will be set on the results.",
|
|
1164
|
+
"required": false,
|
|
1165
|
+
"schema": {
|
|
1166
|
+
"type": "string"
|
|
1167
|
+
}
|
|
1168
|
+
}
|
|
1169
|
+
],
|
|
863
1170
|
"requestBody": {
|
|
864
1171
|
"required": true,
|
|
865
1172
|
"content": {
|
|
@@ -890,7 +1197,7 @@
|
|
|
890
1197
|
],
|
|
891
1198
|
"security": [
|
|
892
1199
|
{
|
|
893
|
-
"
|
|
1200
|
+
"api_key": []
|
|
894
1201
|
}
|
|
895
1202
|
]
|
|
896
1203
|
}
|
|
@@ -899,7 +1206,17 @@
|
|
|
899
1206
|
"post": {
|
|
900
1207
|
"operationId": "GroupController_create",
|
|
901
1208
|
"summary": "Create a group",
|
|
902
|
-
"parameters": [
|
|
1209
|
+
"parameters": [
|
|
1210
|
+
{
|
|
1211
|
+
"name": "X-Proxima-Nexus-Requester-User-Id",
|
|
1212
|
+
"in": "header",
|
|
1213
|
+
"description": "ID of the user creating the group",
|
|
1214
|
+
"required": true,
|
|
1215
|
+
"schema": {
|
|
1216
|
+
"type": "string"
|
|
1217
|
+
}
|
|
1218
|
+
}
|
|
1219
|
+
],
|
|
903
1220
|
"requestBody": {
|
|
904
1221
|
"required": true,
|
|
905
1222
|
"content": {
|
|
@@ -927,7 +1244,7 @@
|
|
|
927
1244
|
],
|
|
928
1245
|
"security": [
|
|
929
1246
|
{
|
|
930
|
-
"
|
|
1247
|
+
"api_key": []
|
|
931
1248
|
}
|
|
932
1249
|
]
|
|
933
1250
|
},
|
|
@@ -1024,6 +1341,15 @@
|
|
|
1024
1341
|
"example": 100,
|
|
1025
1342
|
"type": "number"
|
|
1026
1343
|
}
|
|
1344
|
+
},
|
|
1345
|
+
{
|
|
1346
|
+
"name": "X-Proxima-Nexus-Requester-User-Id",
|
|
1347
|
+
"in": "header",
|
|
1348
|
+
"description": "ID of the user searching for groups. If set, groups will be filtered to only include groups that the user can see, and requesterConnection will be set on the results.",
|
|
1349
|
+
"required": false,
|
|
1350
|
+
"schema": {
|
|
1351
|
+
"type": "string"
|
|
1352
|
+
}
|
|
1027
1353
|
}
|
|
1028
1354
|
],
|
|
1029
1355
|
"responses": {
|
|
@@ -1046,14 +1372,14 @@
|
|
|
1046
1372
|
],
|
|
1047
1373
|
"security": [
|
|
1048
1374
|
{
|
|
1049
|
-
"
|
|
1375
|
+
"api_key": []
|
|
1050
1376
|
}
|
|
1051
1377
|
]
|
|
1052
1378
|
}
|
|
1053
1379
|
},
|
|
1054
1380
|
"/group/{groupId}": {
|
|
1055
1381
|
"get": {
|
|
1056
|
-
"operationId": "
|
|
1382
|
+
"operationId": "GroupController_get",
|
|
1057
1383
|
"summary": "Get a group by ID",
|
|
1058
1384
|
"parameters": [
|
|
1059
1385
|
{
|
|
@@ -1063,6 +1389,15 @@
|
|
|
1063
1389
|
"schema": {
|
|
1064
1390
|
"type": "string"
|
|
1065
1391
|
}
|
|
1392
|
+
},
|
|
1393
|
+
{
|
|
1394
|
+
"name": "X-Proxima-Nexus-Requester-User-Id",
|
|
1395
|
+
"in": "header",
|
|
1396
|
+
"description": "ID of the user getting a group by ID. If set, 401 may be returned if the user cannot view the group, otherwise requesterConnection will be set on the result.",
|
|
1397
|
+
"required": false,
|
|
1398
|
+
"schema": {
|
|
1399
|
+
"type": "string"
|
|
1400
|
+
}
|
|
1066
1401
|
}
|
|
1067
1402
|
],
|
|
1068
1403
|
"responses": {
|
|
@@ -1075,6 +1410,9 @@
|
|
|
1075
1410
|
}
|
|
1076
1411
|
}
|
|
1077
1412
|
}
|
|
1413
|
+
},
|
|
1414
|
+
"401": {
|
|
1415
|
+
"description": "User cannot view this group"
|
|
1078
1416
|
}
|
|
1079
1417
|
},
|
|
1080
1418
|
"tags": [
|
|
@@ -1082,7 +1420,7 @@
|
|
|
1082
1420
|
],
|
|
1083
1421
|
"security": [
|
|
1084
1422
|
{
|
|
1085
|
-
"
|
|
1423
|
+
"api_key": []
|
|
1086
1424
|
}
|
|
1087
1425
|
]
|
|
1088
1426
|
},
|
|
@@ -1097,6 +1435,15 @@
|
|
|
1097
1435
|
"schema": {
|
|
1098
1436
|
"type": "string"
|
|
1099
1437
|
}
|
|
1438
|
+
},
|
|
1439
|
+
{
|
|
1440
|
+
"name": "X-Proxima-Nexus-Requester-User-Id",
|
|
1441
|
+
"in": "header",
|
|
1442
|
+
"description": "ID of the user updating the group",
|
|
1443
|
+
"required": true,
|
|
1444
|
+
"schema": {
|
|
1445
|
+
"type": "string"
|
|
1446
|
+
}
|
|
1100
1447
|
}
|
|
1101
1448
|
],
|
|
1102
1449
|
"requestBody": {
|
|
@@ -1126,7 +1473,7 @@
|
|
|
1126
1473
|
],
|
|
1127
1474
|
"security": [
|
|
1128
1475
|
{
|
|
1129
|
-
"
|
|
1476
|
+
"api_key": []
|
|
1130
1477
|
}
|
|
1131
1478
|
]
|
|
1132
1479
|
},
|
|
@@ -1145,7 +1492,7 @@
|
|
|
1145
1492
|
{
|
|
1146
1493
|
"name": "X-Proxima-Nexus-Requester-User-Id",
|
|
1147
1494
|
"in": "header",
|
|
1148
|
-
"description": "
|
|
1495
|
+
"description": "ID of the user deleting the group",
|
|
1149
1496
|
"required": true,
|
|
1150
1497
|
"schema": {
|
|
1151
1498
|
"type": "string"
|
|
@@ -1162,15 +1509,15 @@
|
|
|
1162
1509
|
],
|
|
1163
1510
|
"security": [
|
|
1164
1511
|
{
|
|
1165
|
-
"
|
|
1512
|
+
"api_key": []
|
|
1166
1513
|
}
|
|
1167
1514
|
]
|
|
1168
1515
|
}
|
|
1169
1516
|
},
|
|
1170
|
-
"/group/{groupId}/
|
|
1517
|
+
"/group/{groupId}/connection/{userId}": {
|
|
1171
1518
|
"put": {
|
|
1172
|
-
"operationId": "
|
|
1173
|
-
"summary": "Add a
|
|
1519
|
+
"operationId": "GroupController_addConnection",
|
|
1520
|
+
"summary": "Add or update a connection to a group (member, admin, or owner)",
|
|
1174
1521
|
"parameters": [
|
|
1175
1522
|
{
|
|
1176
1523
|
"name": "groupId",
|
|
@@ -1187,11 +1534,30 @@
|
|
|
1187
1534
|
"schema": {
|
|
1188
1535
|
"type": "string"
|
|
1189
1536
|
}
|
|
1537
|
+
},
|
|
1538
|
+
{
|
|
1539
|
+
"name": "X-Proxima-Nexus-Requester-User-Id",
|
|
1540
|
+
"in": "header",
|
|
1541
|
+
"description": "ID of the user adding a connection to the group",
|
|
1542
|
+
"required": true,
|
|
1543
|
+
"schema": {
|
|
1544
|
+
"type": "string"
|
|
1545
|
+
}
|
|
1190
1546
|
}
|
|
1191
1547
|
],
|
|
1548
|
+
"requestBody": {
|
|
1549
|
+
"required": true,
|
|
1550
|
+
"content": {
|
|
1551
|
+
"application/json": {
|
|
1552
|
+
"schema": {
|
|
1553
|
+
"$ref": "#/components/schemas/MutateGroupEntityConnectionDto"
|
|
1554
|
+
}
|
|
1555
|
+
}
|
|
1556
|
+
}
|
|
1557
|
+
},
|
|
1192
1558
|
"responses": {
|
|
1193
1559
|
"200": {
|
|
1194
|
-
"description": "
|
|
1560
|
+
"description": "Connection added/updated",
|
|
1195
1561
|
"content": {
|
|
1196
1562
|
"application/json": {
|
|
1197
1563
|
"schema": {
|
|
@@ -1199,6 +1565,9 @@
|
|
|
1199
1565
|
}
|
|
1200
1566
|
}
|
|
1201
1567
|
}
|
|
1568
|
+
},
|
|
1569
|
+
"401": {
|
|
1570
|
+
"description": "User cannot add this connection"
|
|
1202
1571
|
}
|
|
1203
1572
|
},
|
|
1204
1573
|
"tags": [
|
|
@@ -1206,13 +1575,13 @@
|
|
|
1206
1575
|
],
|
|
1207
1576
|
"security": [
|
|
1208
1577
|
{
|
|
1209
|
-
"
|
|
1578
|
+
"api_key": []
|
|
1210
1579
|
}
|
|
1211
1580
|
]
|
|
1212
1581
|
},
|
|
1213
1582
|
"delete": {
|
|
1214
|
-
"operationId": "
|
|
1215
|
-
"summary": "Remove a
|
|
1583
|
+
"operationId": "GroupController_removeConnection",
|
|
1584
|
+
"summary": "Remove a connection from a group",
|
|
1216
1585
|
"parameters": [
|
|
1217
1586
|
{
|
|
1218
1587
|
"name": "groupId",
|
|
@@ -1229,34 +1598,49 @@
|
|
|
1229
1598
|
"schema": {
|
|
1230
1599
|
"type": "string"
|
|
1231
1600
|
}
|
|
1601
|
+
},
|
|
1602
|
+
{
|
|
1603
|
+
"name": "X-Proxima-Nexus-Requester-User-Id",
|
|
1604
|
+
"in": "header",
|
|
1605
|
+
"description": "ID of the user removing a connection from the group",
|
|
1606
|
+
"required": true,
|
|
1607
|
+
"schema": {
|
|
1608
|
+
"type": "string"
|
|
1609
|
+
}
|
|
1232
1610
|
}
|
|
1233
1611
|
],
|
|
1234
|
-
"
|
|
1235
|
-
"
|
|
1236
|
-
|
|
1237
|
-
"
|
|
1238
|
-
"
|
|
1239
|
-
"
|
|
1240
|
-
"type": "string"
|
|
1241
|
-
}
|
|
1612
|
+
"requestBody": {
|
|
1613
|
+
"required": true,
|
|
1614
|
+
"content": {
|
|
1615
|
+
"application/json": {
|
|
1616
|
+
"schema": {
|
|
1617
|
+
"$ref": "#/components/schemas/MutateGroupEntityConnectionDto"
|
|
1242
1618
|
}
|
|
1243
1619
|
}
|
|
1244
1620
|
}
|
|
1245
1621
|
},
|
|
1622
|
+
"responses": {
|
|
1623
|
+
"204": {
|
|
1624
|
+
"description": "Connection removed"
|
|
1625
|
+
},
|
|
1626
|
+
"401": {
|
|
1627
|
+
"description": "User cannot remove this connection"
|
|
1628
|
+
}
|
|
1629
|
+
},
|
|
1246
1630
|
"tags": [
|
|
1247
1631
|
"group"
|
|
1248
1632
|
],
|
|
1249
1633
|
"security": [
|
|
1250
1634
|
{
|
|
1251
|
-
"
|
|
1635
|
+
"api_key": []
|
|
1252
1636
|
}
|
|
1253
1637
|
]
|
|
1254
1638
|
}
|
|
1255
1639
|
},
|
|
1256
|
-
"/group/{groupId}/
|
|
1640
|
+
"/group/{groupId}/connections": {
|
|
1257
1641
|
"get": {
|
|
1258
|
-
"operationId": "
|
|
1259
|
-
"summary": "Get
|
|
1642
|
+
"operationId": "GroupController_getConnections",
|
|
1643
|
+
"summary": "Get connections of a group",
|
|
1260
1644
|
"parameters": [
|
|
1261
1645
|
{
|
|
1262
1646
|
"name": "groupId",
|
|
@@ -1265,11 +1649,57 @@
|
|
|
1265
1649
|
"schema": {
|
|
1266
1650
|
"type": "string"
|
|
1267
1651
|
}
|
|
1652
|
+
},
|
|
1653
|
+
{
|
|
1654
|
+
"name": "state",
|
|
1655
|
+
"required": false,
|
|
1656
|
+
"in": "query",
|
|
1657
|
+
"description": "Filter connections by state (e.g., requested for pending approvals)",
|
|
1658
|
+
"explode": true,
|
|
1659
|
+
"schema": {
|
|
1660
|
+
"type": "array",
|
|
1661
|
+
"items": {
|
|
1662
|
+
"type": "string",
|
|
1663
|
+
"enum": [
|
|
1664
|
+
"requested",
|
|
1665
|
+
"active",
|
|
1666
|
+
"rejected",
|
|
1667
|
+
"blocked"
|
|
1668
|
+
]
|
|
1669
|
+
}
|
|
1670
|
+
}
|
|
1671
|
+
},
|
|
1672
|
+
{
|
|
1673
|
+
"name": "type",
|
|
1674
|
+
"required": false,
|
|
1675
|
+
"in": "query",
|
|
1676
|
+
"description": "Filter connections by type. Can be a single type or multiple types (comma-separated or array)",
|
|
1677
|
+
"explode": true,
|
|
1678
|
+
"schema": {
|
|
1679
|
+
"type": "array",
|
|
1680
|
+
"items": {
|
|
1681
|
+
"type": "string",
|
|
1682
|
+
"enum": [
|
|
1683
|
+
"member",
|
|
1684
|
+
"admin",
|
|
1685
|
+
"owner"
|
|
1686
|
+
]
|
|
1687
|
+
}
|
|
1688
|
+
}
|
|
1689
|
+
},
|
|
1690
|
+
{
|
|
1691
|
+
"name": "X-Proxima-Nexus-Requester-User-Id",
|
|
1692
|
+
"in": "header",
|
|
1693
|
+
"description": "ID of the user getting connections of the group. If set, 401 may be returned if the user cannot view the group connections.",
|
|
1694
|
+
"required": false,
|
|
1695
|
+
"schema": {
|
|
1696
|
+
"type": "string"
|
|
1697
|
+
}
|
|
1268
1698
|
}
|
|
1269
1699
|
],
|
|
1270
1700
|
"responses": {
|
|
1271
1701
|
"200": {
|
|
1272
|
-
"description": "
|
|
1702
|
+
"description": "Connections returned",
|
|
1273
1703
|
"content": {
|
|
1274
1704
|
"application/json": {
|
|
1275
1705
|
"schema": {
|
|
@@ -1280,6 +1710,9 @@
|
|
|
1280
1710
|
}
|
|
1281
1711
|
}
|
|
1282
1712
|
}
|
|
1713
|
+
},
|
|
1714
|
+
"401": {
|
|
1715
|
+
"description": "User cannot view connections of this group"
|
|
1283
1716
|
}
|
|
1284
1717
|
},
|
|
1285
1718
|
"tags": [
|
|
@@ -1287,7 +1720,7 @@
|
|
|
1287
1720
|
],
|
|
1288
1721
|
"security": [
|
|
1289
1722
|
{
|
|
1290
|
-
"
|
|
1723
|
+
"api_key": []
|
|
1291
1724
|
}
|
|
1292
1725
|
]
|
|
1293
1726
|
}
|
|
@@ -1304,6 +1737,15 @@
|
|
|
1304
1737
|
"schema": {
|
|
1305
1738
|
"type": "string"
|
|
1306
1739
|
}
|
|
1740
|
+
},
|
|
1741
|
+
{
|
|
1742
|
+
"name": "X-Proxima-Nexus-Requester-User-Id",
|
|
1743
|
+
"in": "header",
|
|
1744
|
+
"description": "ID of the user getting events of the group. If set, events will be filtered to only include events that the user can see, and requesterConnection will be set on the results.",
|
|
1745
|
+
"required": false,
|
|
1746
|
+
"schema": {
|
|
1747
|
+
"type": "string"
|
|
1748
|
+
}
|
|
1307
1749
|
}
|
|
1308
1750
|
],
|
|
1309
1751
|
"responses": {
|
|
@@ -1326,7 +1768,7 @@
|
|
|
1326
1768
|
],
|
|
1327
1769
|
"security": [
|
|
1328
1770
|
{
|
|
1329
|
-
"
|
|
1771
|
+
"api_key": []
|
|
1330
1772
|
}
|
|
1331
1773
|
]
|
|
1332
1774
|
}
|
|
@@ -1335,7 +1777,17 @@
|
|
|
1335
1777
|
"post": {
|
|
1336
1778
|
"operationId": "GroupController_getBatch",
|
|
1337
1779
|
"summary": "Get a batch of groups by IDs",
|
|
1338
|
-
"parameters": [
|
|
1780
|
+
"parameters": [
|
|
1781
|
+
{
|
|
1782
|
+
"name": "X-Proxima-Nexus-Requester-User-Id",
|
|
1783
|
+
"in": "header",
|
|
1784
|
+
"description": "ID of the user getting a batch of groups. If set, groups will be filtered to only include groups that the user can see, and requesterConnection will be set on the results.",
|
|
1785
|
+
"required": false,
|
|
1786
|
+
"schema": {
|
|
1787
|
+
"type": "string"
|
|
1788
|
+
}
|
|
1789
|
+
}
|
|
1790
|
+
],
|
|
1339
1791
|
"requestBody": {
|
|
1340
1792
|
"required": true,
|
|
1341
1793
|
"content": {
|
|
@@ -1366,7 +1818,7 @@
|
|
|
1366
1818
|
],
|
|
1367
1819
|
"security": [
|
|
1368
1820
|
{
|
|
1369
|
-
"
|
|
1821
|
+
"api_key": []
|
|
1370
1822
|
}
|
|
1371
1823
|
]
|
|
1372
1824
|
}
|
|
@@ -1417,11 +1869,6 @@
|
|
|
1417
1869
|
"description": "Display name",
|
|
1418
1870
|
"example": "Display Name"
|
|
1419
1871
|
},
|
|
1420
|
-
"requesterUserId": {
|
|
1421
|
-
"type": "string",
|
|
1422
|
-
"description": "User ID of the requester",
|
|
1423
|
-
"example": "user-123"
|
|
1424
|
-
},
|
|
1425
1872
|
"visibility": {
|
|
1426
1873
|
"type": "string",
|
|
1427
1874
|
"description": "Visibility of the entity",
|
|
@@ -1474,7 +1921,6 @@
|
|
|
1474
1921
|
},
|
|
1475
1922
|
"required": [
|
|
1476
1923
|
"displayName",
|
|
1477
|
-
"requesterUserId",
|
|
1478
1924
|
"visibility",
|
|
1479
1925
|
"userId",
|
|
1480
1926
|
"gender",
|
|
@@ -1494,6 +1940,50 @@
|
|
|
1494
1940
|
"userId"
|
|
1495
1941
|
]
|
|
1496
1942
|
},
|
|
1943
|
+
"EntityConnectionDto": {
|
|
1944
|
+
"type": "object",
|
|
1945
|
+
"properties": {
|
|
1946
|
+
"createdAt": {
|
|
1947
|
+
"type": "string",
|
|
1948
|
+
"description": "Date/time the connection was created (ISO string)",
|
|
1949
|
+
"example": "2024-05-01T12:34:56.789Z"
|
|
1950
|
+
},
|
|
1951
|
+
"updatedAt": {
|
|
1952
|
+
"type": "string",
|
|
1953
|
+
"description": "Date/time the connection was last updated (ISO string)",
|
|
1954
|
+
"example": "2024-05-02T12:34:56.789Z"
|
|
1955
|
+
},
|
|
1956
|
+
"state": {
|
|
1957
|
+
"type": "string",
|
|
1958
|
+
"description": "Connection state",
|
|
1959
|
+
"enum": [
|
|
1960
|
+
"requested",
|
|
1961
|
+
"active",
|
|
1962
|
+
"rejected",
|
|
1963
|
+
"blocked"
|
|
1964
|
+
]
|
|
1965
|
+
},
|
|
1966
|
+
"type": {
|
|
1967
|
+
"type": "string",
|
|
1968
|
+
"description": "Connection type",
|
|
1969
|
+
"enum": [
|
|
1970
|
+
"attendee",
|
|
1971
|
+
"admin",
|
|
1972
|
+
"owner",
|
|
1973
|
+
"member",
|
|
1974
|
+
"admin",
|
|
1975
|
+
"owner",
|
|
1976
|
+
"friend",
|
|
1977
|
+
"blocked",
|
|
1978
|
+
"none"
|
|
1979
|
+
]
|
|
1980
|
+
}
|
|
1981
|
+
},
|
|
1982
|
+
"required": [
|
|
1983
|
+
"state",
|
|
1984
|
+
"type"
|
|
1985
|
+
]
|
|
1986
|
+
},
|
|
1497
1987
|
"UserDto": {
|
|
1498
1988
|
"type": "object",
|
|
1499
1989
|
"properties": {
|
|
@@ -1502,11 +1992,6 @@
|
|
|
1502
1992
|
"description": "Unique identifier for the entity",
|
|
1503
1993
|
"example": "entity-123"
|
|
1504
1994
|
},
|
|
1505
|
-
"tenantId": {
|
|
1506
|
-
"type": "string",
|
|
1507
|
-
"description": "Tenant identifier the entity belongs to",
|
|
1508
|
-
"example": "tenant-abc"
|
|
1509
|
-
},
|
|
1510
1995
|
"displayName": {
|
|
1511
1996
|
"type": "string",
|
|
1512
1997
|
"description": "Display name of the entity",
|
|
@@ -1555,6 +2040,14 @@
|
|
|
1555
2040
|
}
|
|
1556
2041
|
]
|
|
1557
2042
|
},
|
|
2043
|
+
"requesterConnection": {
|
|
2044
|
+
"description": "Connection to the requester",
|
|
2045
|
+
"allOf": [
|
|
2046
|
+
{
|
|
2047
|
+
"$ref": "#/components/schemas/EntityConnectionDto"
|
|
2048
|
+
}
|
|
2049
|
+
]
|
|
2050
|
+
},
|
|
1558
2051
|
"gender": {
|
|
1559
2052
|
"type": "string",
|
|
1560
2053
|
"description": "Gender",
|
|
@@ -1574,11 +2067,6 @@
|
|
|
1574
2067
|
"UpdateUserDto": {
|
|
1575
2068
|
"type": "object",
|
|
1576
2069
|
"properties": {
|
|
1577
|
-
"requesterUserId": {
|
|
1578
|
-
"type": "string",
|
|
1579
|
-
"description": "User ID of the requester",
|
|
1580
|
-
"example": "user-123"
|
|
1581
|
-
},
|
|
1582
2070
|
"visibility": {
|
|
1583
2071
|
"type": "string",
|
|
1584
2072
|
"description": "Visibility of the entity",
|
|
@@ -1630,37 +2118,26 @@
|
|
|
1630
2118
|
}
|
|
1631
2119
|
},
|
|
1632
2120
|
"required": [
|
|
1633
|
-
"requesterUserId",
|
|
1634
2121
|
"displayName",
|
|
1635
2122
|
"gender",
|
|
1636
2123
|
"birthDate"
|
|
1637
2124
|
]
|
|
1638
2125
|
},
|
|
1639
|
-
"
|
|
2126
|
+
"MutateUserConnectionDto": {
|
|
1640
2127
|
"type": "object",
|
|
1641
2128
|
"properties": {
|
|
1642
|
-
"
|
|
1643
|
-
"type": "string",
|
|
1644
|
-
"description": "Date/time the connection was created (ISO string)",
|
|
1645
|
-
"example": "2024-05-01T12:34:56.789Z"
|
|
1646
|
-
},
|
|
1647
|
-
"updatedAt": {
|
|
1648
|
-
"type": "string",
|
|
1649
|
-
"description": "Date/time the connection was last updated (ISO string)",
|
|
1650
|
-
"example": "2024-05-02T12:34:56.789Z"
|
|
1651
|
-
},
|
|
1652
|
-
"state": {
|
|
2129
|
+
"type": {
|
|
1653
2130
|
"type": "string",
|
|
1654
|
-
"description": "
|
|
2131
|
+
"description": "Type of connection to create or modify",
|
|
1655
2132
|
"enum": [
|
|
1656
|
-
"
|
|
1657
|
-
"
|
|
1658
|
-
|
|
1659
|
-
|
|
2133
|
+
"friend",
|
|
2134
|
+
"blocked"
|
|
2135
|
+
],
|
|
2136
|
+
"example": "friend"
|
|
1660
2137
|
}
|
|
1661
2138
|
},
|
|
1662
2139
|
"required": [
|
|
1663
|
-
"
|
|
2140
|
+
"type"
|
|
1664
2141
|
]
|
|
1665
2142
|
},
|
|
1666
2143
|
"UserEntityConnectionDto": {
|
|
@@ -1682,7 +2159,23 @@
|
|
|
1682
2159
|
"enum": [
|
|
1683
2160
|
"requested",
|
|
1684
2161
|
"active",
|
|
1685
|
-
"rejected"
|
|
2162
|
+
"rejected",
|
|
2163
|
+
"blocked"
|
|
2164
|
+
]
|
|
2165
|
+
},
|
|
2166
|
+
"type": {
|
|
2167
|
+
"type": "string",
|
|
2168
|
+
"description": "Connection type",
|
|
2169
|
+
"enum": [
|
|
2170
|
+
"attendee",
|
|
2171
|
+
"admin",
|
|
2172
|
+
"owner",
|
|
2173
|
+
"member",
|
|
2174
|
+
"admin",
|
|
2175
|
+
"owner",
|
|
2176
|
+
"friend",
|
|
2177
|
+
"blocked",
|
|
2178
|
+
"none"
|
|
1686
2179
|
]
|
|
1687
2180
|
},
|
|
1688
2181
|
"userId": {
|
|
@@ -1693,6 +2186,7 @@
|
|
|
1693
2186
|
},
|
|
1694
2187
|
"required": [
|
|
1695
2188
|
"state",
|
|
2189
|
+
"type",
|
|
1696
2190
|
"userId"
|
|
1697
2191
|
]
|
|
1698
2192
|
},
|
|
@@ -1734,7 +2228,23 @@
|
|
|
1734
2228
|
"enum": [
|
|
1735
2229
|
"requested",
|
|
1736
2230
|
"active",
|
|
1737
|
-
"rejected"
|
|
2231
|
+
"rejected",
|
|
2232
|
+
"blocked"
|
|
2233
|
+
]
|
|
2234
|
+
},
|
|
2235
|
+
"type": {
|
|
2236
|
+
"type": "string",
|
|
2237
|
+
"description": "Connection type",
|
|
2238
|
+
"enum": [
|
|
2239
|
+
"attendee",
|
|
2240
|
+
"admin",
|
|
2241
|
+
"owner",
|
|
2242
|
+
"member",
|
|
2243
|
+
"admin",
|
|
2244
|
+
"owner",
|
|
2245
|
+
"friend",
|
|
2246
|
+
"blocked",
|
|
2247
|
+
"none"
|
|
1738
2248
|
]
|
|
1739
2249
|
},
|
|
1740
2250
|
"groupId": {
|
|
@@ -1745,6 +2255,7 @@
|
|
|
1745
2255
|
},
|
|
1746
2256
|
"required": [
|
|
1747
2257
|
"state",
|
|
2258
|
+
"type",
|
|
1748
2259
|
"groupId"
|
|
1749
2260
|
]
|
|
1750
2261
|
},
|
|
@@ -1767,7 +2278,23 @@
|
|
|
1767
2278
|
"enum": [
|
|
1768
2279
|
"requested",
|
|
1769
2280
|
"active",
|
|
1770
|
-
"rejected"
|
|
2281
|
+
"rejected",
|
|
2282
|
+
"blocked"
|
|
2283
|
+
]
|
|
2284
|
+
},
|
|
2285
|
+
"type": {
|
|
2286
|
+
"type": "string",
|
|
2287
|
+
"description": "Connection type",
|
|
2288
|
+
"enum": [
|
|
2289
|
+
"attendee",
|
|
2290
|
+
"admin",
|
|
2291
|
+
"owner",
|
|
2292
|
+
"member",
|
|
2293
|
+
"admin",
|
|
2294
|
+
"owner",
|
|
2295
|
+
"friend",
|
|
2296
|
+
"blocked",
|
|
2297
|
+
"none"
|
|
1771
2298
|
]
|
|
1772
2299
|
},
|
|
1773
2300
|
"eventId": {
|
|
@@ -1778,6 +2305,7 @@
|
|
|
1778
2305
|
},
|
|
1779
2306
|
"required": [
|
|
1780
2307
|
"state",
|
|
2308
|
+
"type",
|
|
1781
2309
|
"eventId"
|
|
1782
2310
|
]
|
|
1783
2311
|
},
|
|
@@ -1789,11 +2317,6 @@
|
|
|
1789
2317
|
"description": "Display name",
|
|
1790
2318
|
"example": "Display Name"
|
|
1791
2319
|
},
|
|
1792
|
-
"requesterUserId": {
|
|
1793
|
-
"type": "string",
|
|
1794
|
-
"description": "User ID of the requester",
|
|
1795
|
-
"example": "user-123"
|
|
1796
|
-
},
|
|
1797
2320
|
"visibility": {
|
|
1798
2321
|
"type": "string",
|
|
1799
2322
|
"description": "Visibility of the entity",
|
|
@@ -1852,11 +2375,15 @@
|
|
|
1852
2375
|
"type": "string",
|
|
1853
2376
|
"description": "Identifier of associated group which owns the event. Owners/admins of the group will be admins of the event.",
|
|
1854
2377
|
"example": "group-123"
|
|
2378
|
+
},
|
|
2379
|
+
"maxNumAttendees": {
|
|
2380
|
+
"type": "number",
|
|
2381
|
+
"description": "Maximum number of attendees allowed (null = unlimited)",
|
|
2382
|
+
"example": 100
|
|
1855
2383
|
}
|
|
1856
2384
|
},
|
|
1857
2385
|
"required": [
|
|
1858
2386
|
"displayName",
|
|
1859
|
-
"requesterUserId",
|
|
1860
2387
|
"visibility",
|
|
1861
2388
|
"eventId",
|
|
1862
2389
|
"startTime",
|
|
@@ -1872,11 +2399,6 @@
|
|
|
1872
2399
|
"description": "Unique identifier for the entity",
|
|
1873
2400
|
"example": "entity-123"
|
|
1874
2401
|
},
|
|
1875
|
-
"tenantId": {
|
|
1876
|
-
"type": "string",
|
|
1877
|
-
"description": "Tenant identifier the entity belongs to",
|
|
1878
|
-
"example": "tenant-abc"
|
|
1879
|
-
},
|
|
1880
2402
|
"displayName": {
|
|
1881
2403
|
"type": "string",
|
|
1882
2404
|
"description": "Display name of the entity",
|
|
@@ -1925,6 +2447,14 @@
|
|
|
1925
2447
|
}
|
|
1926
2448
|
]
|
|
1927
2449
|
},
|
|
2450
|
+
"requesterConnection": {
|
|
2451
|
+
"description": "Connection to the requester",
|
|
2452
|
+
"allOf": [
|
|
2453
|
+
{
|
|
2454
|
+
"$ref": "#/components/schemas/EntityConnectionDto"
|
|
2455
|
+
}
|
|
2456
|
+
]
|
|
2457
|
+
},
|
|
1928
2458
|
"startTime": {
|
|
1929
2459
|
"type": "string",
|
|
1930
2460
|
"description": "Start time (ISO 8601)",
|
|
@@ -1944,6 +2474,16 @@
|
|
|
1944
2474
|
"type": "string",
|
|
1945
2475
|
"description": "Identifier of associated group which owns the event. Owners/admins of the group will be admins of the event.",
|
|
1946
2476
|
"example": "group-123"
|
|
2477
|
+
},
|
|
2478
|
+
"numAttendees": {
|
|
2479
|
+
"type": "number",
|
|
2480
|
+
"description": "Number of active attendees",
|
|
2481
|
+
"example": 42
|
|
2482
|
+
},
|
|
2483
|
+
"maxNumAttendees": {
|
|
2484
|
+
"type": "number",
|
|
2485
|
+
"description": "Maximum number of attendees allowed (null = unlimited)",
|
|
2486
|
+
"example": 100
|
|
1947
2487
|
}
|
|
1948
2488
|
},
|
|
1949
2489
|
"required": [
|
|
@@ -1955,11 +2495,6 @@
|
|
|
1955
2495
|
"UpdateEventDto": {
|
|
1956
2496
|
"type": "object",
|
|
1957
2497
|
"properties": {
|
|
1958
|
-
"requesterUserId": {
|
|
1959
|
-
"type": "string",
|
|
1960
|
-
"description": "User ID of the requester",
|
|
1961
|
-
"example": "user-123"
|
|
1962
|
-
},
|
|
1963
2498
|
"visibility": {
|
|
1964
2499
|
"type": "string",
|
|
1965
2500
|
"description": "Visibility of the entity",
|
|
@@ -2013,16 +2548,37 @@
|
|
|
2013
2548
|
"type": "string",
|
|
2014
2549
|
"description": "Event type",
|
|
2015
2550
|
"example": "concert"
|
|
2551
|
+
},
|
|
2552
|
+
"maxNumAttendees": {
|
|
2553
|
+
"type": "number",
|
|
2554
|
+
"description": "Maximum number of attendees allowed (null = unlimited)",
|
|
2555
|
+
"example": 100
|
|
2016
2556
|
}
|
|
2017
2557
|
},
|
|
2018
2558
|
"required": [
|
|
2019
|
-
"requesterUserId",
|
|
2020
2559
|
"displayName",
|
|
2021
2560
|
"startTime",
|
|
2022
2561
|
"endTime",
|
|
2023
2562
|
"type"
|
|
2024
2563
|
]
|
|
2025
2564
|
},
|
|
2565
|
+
"MutateEventEntityConnectionDto": {
|
|
2566
|
+
"type": "object",
|
|
2567
|
+
"properties": {
|
|
2568
|
+
"type": {
|
|
2569
|
+
"type": "string",
|
|
2570
|
+
"description": "Connection type",
|
|
2571
|
+
"enum": [
|
|
2572
|
+
"attendee",
|
|
2573
|
+
"admin",
|
|
2574
|
+
"owner"
|
|
2575
|
+
]
|
|
2576
|
+
}
|
|
2577
|
+
},
|
|
2578
|
+
"required": [
|
|
2579
|
+
"type"
|
|
2580
|
+
]
|
|
2581
|
+
},
|
|
2026
2582
|
"GetEventsDto": {
|
|
2027
2583
|
"type": "object",
|
|
2028
2584
|
"properties": {
|
|
@@ -2050,11 +2606,6 @@
|
|
|
2050
2606
|
"description": "Display name",
|
|
2051
2607
|
"example": "Display Name"
|
|
2052
2608
|
},
|
|
2053
|
-
"requesterUserId": {
|
|
2054
|
-
"type": "string",
|
|
2055
|
-
"description": "User ID of the requester",
|
|
2056
|
-
"example": "user-123"
|
|
2057
|
-
},
|
|
2058
2609
|
"visibility": {
|
|
2059
2610
|
"type": "string",
|
|
2060
2611
|
"description": "Visibility of the entity",
|
|
@@ -2097,12 +2648,16 @@
|
|
|
2097
2648
|
"type": {
|
|
2098
2649
|
"type": "string",
|
|
2099
2650
|
"description": "Group type",
|
|
2100
|
-
"
|
|
2651
|
+
"enum": [
|
|
2652
|
+
"open",
|
|
2653
|
+
"request",
|
|
2654
|
+
"invite"
|
|
2655
|
+
],
|
|
2656
|
+
"example": "open"
|
|
2101
2657
|
}
|
|
2102
2658
|
},
|
|
2103
2659
|
"required": [
|
|
2104
2660
|
"displayName",
|
|
2105
|
-
"requesterUserId",
|
|
2106
2661
|
"visibility",
|
|
2107
2662
|
"groupId",
|
|
2108
2663
|
"type"
|
|
@@ -2116,11 +2671,6 @@
|
|
|
2116
2671
|
"description": "Unique identifier for the entity",
|
|
2117
2672
|
"example": "entity-123"
|
|
2118
2673
|
},
|
|
2119
|
-
"tenantId": {
|
|
2120
|
-
"type": "string",
|
|
2121
|
-
"description": "Tenant identifier the entity belongs to",
|
|
2122
|
-
"example": "tenant-abc"
|
|
2123
|
-
},
|
|
2124
2674
|
"displayName": {
|
|
2125
2675
|
"type": "string",
|
|
2126
2676
|
"description": "Display name of the entity",
|
|
@@ -2169,10 +2719,28 @@
|
|
|
2169
2719
|
}
|
|
2170
2720
|
]
|
|
2171
2721
|
},
|
|
2722
|
+
"requesterConnection": {
|
|
2723
|
+
"description": "Connection to the requester",
|
|
2724
|
+
"allOf": [
|
|
2725
|
+
{
|
|
2726
|
+
"$ref": "#/components/schemas/EntityConnectionDto"
|
|
2727
|
+
}
|
|
2728
|
+
]
|
|
2729
|
+
},
|
|
2172
2730
|
"type": {
|
|
2173
2731
|
"type": "string",
|
|
2174
2732
|
"description": "Group type",
|
|
2175
|
-
"
|
|
2733
|
+
"enum": [
|
|
2734
|
+
"open",
|
|
2735
|
+
"request",
|
|
2736
|
+
"invite"
|
|
2737
|
+
],
|
|
2738
|
+
"example": "open"
|
|
2739
|
+
},
|
|
2740
|
+
"numMembers": {
|
|
2741
|
+
"type": "number",
|
|
2742
|
+
"description": "Number of active members",
|
|
2743
|
+
"example": 150
|
|
2176
2744
|
}
|
|
2177
2745
|
},
|
|
2178
2746
|
"required": [
|
|
@@ -2182,11 +2750,6 @@
|
|
|
2182
2750
|
"UpdateGroupDto": {
|
|
2183
2751
|
"type": "object",
|
|
2184
2752
|
"properties": {
|
|
2185
|
-
"requesterUserId": {
|
|
2186
|
-
"type": "string",
|
|
2187
|
-
"description": "User ID of the requester",
|
|
2188
|
-
"example": "user-123"
|
|
2189
|
-
},
|
|
2190
2753
|
"visibility": {
|
|
2191
2754
|
"type": "string",
|
|
2192
2755
|
"description": "Visibility of the entity",
|
|
@@ -2229,15 +2792,36 @@
|
|
|
2229
2792
|
"type": {
|
|
2230
2793
|
"type": "string",
|
|
2231
2794
|
"description": "Group type",
|
|
2232
|
-
"
|
|
2795
|
+
"enum": [
|
|
2796
|
+
"open",
|
|
2797
|
+
"request",
|
|
2798
|
+
"invite"
|
|
2799
|
+
],
|
|
2800
|
+
"example": "open"
|
|
2233
2801
|
}
|
|
2234
2802
|
},
|
|
2235
2803
|
"required": [
|
|
2236
|
-
"requesterUserId",
|
|
2237
2804
|
"displayName",
|
|
2238
2805
|
"type"
|
|
2239
2806
|
]
|
|
2240
2807
|
},
|
|
2808
|
+
"MutateGroupEntityConnectionDto": {
|
|
2809
|
+
"type": "object",
|
|
2810
|
+
"properties": {
|
|
2811
|
+
"type": {
|
|
2812
|
+
"type": "string",
|
|
2813
|
+
"description": "Connection type",
|
|
2814
|
+
"enum": [
|
|
2815
|
+
"member",
|
|
2816
|
+
"admin",
|
|
2817
|
+
"owner"
|
|
2818
|
+
]
|
|
2819
|
+
}
|
|
2820
|
+
},
|
|
2821
|
+
"required": [
|
|
2822
|
+
"type"
|
|
2823
|
+
]
|
|
2824
|
+
},
|
|
2241
2825
|
"GetGroupsDto": {
|
|
2242
2826
|
"type": "object",
|
|
2243
2827
|
"properties": {
|