@norbix.ai/ts 1.0.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,1102 @@
1
+ // src/api/access_token.ts
2
+ var AccessTokenModule = class {
3
+ constructor(transport) {
4
+ this.transport = transport;
5
+ }
6
+ transport;
7
+ /**
8
+ * POST /access-token
9
+ * Request DTO: GetAccessToken
10
+ */
11
+ getAccessToken = (request = {}, options = {}) => {
12
+ return this.transport.send({
13
+ target: "api",
14
+ path: "/access-token",
15
+ method: "POST",
16
+ request,
17
+ pathParams: [],
18
+ scope: "project",
19
+ ...options
20
+ });
21
+ };
22
+ };
23
+
24
+ // src/api/apikeys.ts
25
+ var ApikeysModule = class {
26
+ constructor(transport) {
27
+ this.transport = transport;
28
+ }
29
+ transport;
30
+ /**
31
+ * POST /apikeys
32
+ * Aliases:
33
+ * - POST /apikeys/{Environment}
34
+ * Request DTO: GetApiKeys
35
+ */
36
+ getApiKeys = (request = {}, options = {}) => {
37
+ return this.transport.send({
38
+ target: "api",
39
+ path: "/apikeys",
40
+ method: "POST",
41
+ request,
42
+ pathParams: [],
43
+ scope: "project",
44
+ ...options
45
+ });
46
+ };
47
+ /**
48
+ * POST /apikeys/regenerate
49
+ * Aliases:
50
+ * - POST /apikeys/regenerate/{Environment}
51
+ * Request DTO: RegenerateApiKeys
52
+ */
53
+ regenerateApiKeys = (request = {}, options = {}) => {
54
+ return this.transport.send({
55
+ target: "api",
56
+ path: "/apikeys/regenerate",
57
+ method: "POST",
58
+ request,
59
+ pathParams: [],
60
+ scope: "project",
61
+ ...options
62
+ });
63
+ };
64
+ };
65
+
66
+ // src/api/auth.ts
67
+ var AuthModule = class {
68
+ constructor(transport) {
69
+ this.transport = transport;
70
+ }
71
+ transport;
72
+ /**
73
+ * POST /auth
74
+ * Aliases:
75
+ * - GET,POST /auth/{provider}
76
+ * - POST,GET,OPTIONS /v3/auth
77
+ * - POST,GET,OPTIONS /v3/auth/{provider}
78
+ * Request DTO: Authenticate
79
+ */
80
+ authenticate = (request = {}, options = {}) => {
81
+ return this.transport.send({
82
+ target: "api",
83
+ path: "/auth",
84
+ method: "POST",
85
+ request,
86
+ pathParams: [],
87
+ scope: "unauthenticated",
88
+ ...options
89
+ });
90
+ };
91
+ };
92
+
93
+ // src/api/chat.ts
94
+ var ChatModule = class {
95
+ constructor(transport) {
96
+ this.transport = transport;
97
+ }
98
+ transport;
99
+ /**
100
+ * POST /{version}/chat/complete
101
+ * Request DTO: AskChatRequest
102
+ */
103
+ askChat = (request = {}, options = {}) => {
104
+ return this.transport.send({
105
+ target: "api",
106
+ path: "/{version}/chat/complete",
107
+ method: "POST",
108
+ request,
109
+ pathParams: [],
110
+ scope: "project",
111
+ ...options
112
+ });
113
+ };
114
+ };
115
+
116
+ // src/api/database.ts
117
+ var DatabaseModule = class {
118
+ constructor(transport) {
119
+ this.transport = transport;
120
+ }
121
+ transport;
122
+ /**
123
+ * GET /{version}/database/taxonomies/{taxonomyName}/terms
124
+ * Request DTO: FindTermsRequest
125
+ */
126
+ findTerms = (request = {}, options = {}) => {
127
+ return this.transport.send({
128
+ target: "api",
129
+ path: "/{version}/database/taxonomies/{taxonomyName}/terms",
130
+ method: "GET",
131
+ request,
132
+ pathParams: ["taxonomyName"],
133
+ scope: "project",
134
+ ...options
135
+ });
136
+ };
137
+ /**
138
+ * GET /{version}/database/taxonomies/{taxonomyName}/terms/{parentId}/children
139
+ * Request DTO: FindTermsChildrenRequest
140
+ */
141
+ findTermsChildren = (request = {}, options = {}) => {
142
+ return this.transport.send({
143
+ target: "api",
144
+ path: "/{version}/database/taxonomies/{taxonomyName}/terms/{parentId}/children",
145
+ method: "GET",
146
+ request,
147
+ pathParams: ["taxonomyName", "parentId"],
148
+ scope: "project",
149
+ ...options
150
+ });
151
+ };
152
+ /**
153
+ * GET /{version}/database/schemas/{id}
154
+ * Request DTO: GetDatabaseSchemaRequest
155
+ */
156
+ getDatabaseSchema = (request = {}, options = {}) => {
157
+ return this.transport.send({
158
+ target: "api",
159
+ path: "/{version}/database/schemas/{id}",
160
+ method: "GET",
161
+ request,
162
+ pathParams: ["id"],
163
+ scope: "project",
164
+ ...options
165
+ });
166
+ };
167
+ /**
168
+ * GET /{version}/database/schemas
169
+ * Request DTO: GetDatabaseSchemasRequest
170
+ */
171
+ getDatabaseSchemas = (request = {}, options = {}) => {
172
+ return this.transport.send({
173
+ target: "api",
174
+ path: "/{version}/database/schemas",
175
+ method: "GET",
176
+ request,
177
+ pathParams: [],
178
+ scope: "project",
179
+ ...options
180
+ });
181
+ };
182
+ /**
183
+ * POST /{version}/database/collections/{collectionName}/aggregate
184
+ * Request DTO: AggregateRequest
185
+ */
186
+ aggregate = (request = {}, options = {}) => {
187
+ return this.transport.send({
188
+ target: "api",
189
+ path: "/{version}/database/collections/{collectionName}/aggregate",
190
+ method: "POST",
191
+ request,
192
+ pathParams: ["collectionName"],
193
+ scope: "project",
194
+ ...options
195
+ });
196
+ };
197
+ /**
198
+ * PUT /{version}/database/collections/{collectionName}/{id}/responsibility
199
+ * Request DTO: ChangeResponsibilityRequest
200
+ */
201
+ changeResponsibility = (request = {}, options = {}) => {
202
+ return this.transport.send({
203
+ target: "api",
204
+ path: "/{version}/database/collections/{collectionName}/{id}/responsibility",
205
+ method: "PUT",
206
+ request,
207
+ pathParams: ["collectionName", "id"],
208
+ scope: "project",
209
+ ...options
210
+ });
211
+ };
212
+ /**
213
+ * GET /{version}/database/collections/{collectionName}/count
214
+ * Request DTO: CountRequest
215
+ */
216
+ count = (request = {}, options = {}) => {
217
+ return this.transport.send({
218
+ target: "api",
219
+ path: "/{version}/database/collections/{collectionName}/count",
220
+ method: "GET",
221
+ request,
222
+ pathParams: ["collectionName"],
223
+ scope: "project",
224
+ ...options
225
+ });
226
+ };
227
+ /**
228
+ * DELETE /{version}/database/collections/{collectionName}/many
229
+ * Request DTO: DeleteManyRequest
230
+ */
231
+ deleteMany = (request = {}, options = {}) => {
232
+ return this.transport.send({
233
+ target: "api",
234
+ path: "/{version}/database/collections/{collectionName}/many",
235
+ method: "DELETE",
236
+ request,
237
+ pathParams: ["collectionName"],
238
+ scope: "project",
239
+ ...options
240
+ });
241
+ };
242
+ /**
243
+ * DELETE /{version}/database/collections/{collectionName}/{id}
244
+ * Request DTO: DeleteOneRequest
245
+ */
246
+ deleteOne = (request = {}, options = {}) => {
247
+ return this.transport.send({
248
+ target: "api",
249
+ path: "/{version}/database/collections/{collectionName}/{id}",
250
+ method: "DELETE",
251
+ request,
252
+ pathParams: ["collectionName", "id"],
253
+ scope: "project",
254
+ ...options
255
+ });
256
+ };
257
+ /**
258
+ * GET /{version}/database/collections/{collectionName}/distinct
259
+ * Request DTO: DistinctRequest
260
+ */
261
+ distinct = (request = {}, options = {}) => {
262
+ return this.transport.send({
263
+ target: "api",
264
+ path: "/{version}/database/collections/{collectionName}/distinct",
265
+ method: "GET",
266
+ request,
267
+ pathParams: ["collectionName"],
268
+ scope: "project",
269
+ ...options
270
+ });
271
+ };
272
+ /**
273
+ * POST /{version}/database/collections/{collectionName}/aggregates/{aggregateId}/execute
274
+ * Request DTO: ExecuteAggregateRequest
275
+ */
276
+ executeAggregate = (request = {}, options = {}) => {
277
+ return this.transport.send({
278
+ target: "api",
279
+ path: "/{version}/database/collections/{collectionName}/aggregates/{aggregateId}/execute",
280
+ method: "POST",
281
+ request,
282
+ pathParams: ["collectionName", "aggregateId"],
283
+ scope: "project",
284
+ ...options
285
+ });
286
+ };
287
+ /**
288
+ * GET /{version}/database/collections/{collectionName}
289
+ * Request DTO: FindRequest
290
+ */
291
+ find = (request = {}, options = {}) => {
292
+ return this.transport.send({
293
+ target: "api",
294
+ path: "/{version}/database/collections/{collectionName}",
295
+ method: "GET",
296
+ request,
297
+ pathParams: ["collectionName"],
298
+ scope: "project",
299
+ ...options
300
+ });
301
+ };
302
+ /**
303
+ * GET /{version}/database/collections/{collectionName}/{id}
304
+ * Request DTO: FindOneRequest
305
+ */
306
+ findOne = (request = {}, options = {}) => {
307
+ return this.transport.send({
308
+ target: "api",
309
+ path: "/{version}/database/collections/{collectionName}/{id}",
310
+ method: "GET",
311
+ request,
312
+ pathParams: ["collectionName", "id"],
313
+ scope: "project",
314
+ ...options
315
+ });
316
+ };
317
+ /**
318
+ * GET /{version}/database/collections/{collectionName}/own
319
+ * Request DTO: FindOwnRequest
320
+ */
321
+ findOwn = (request = {}, options = {}) => {
322
+ return this.transport.send({
323
+ target: "api",
324
+ path: "/{version}/database/collections/{collectionName}/own",
325
+ method: "GET",
326
+ request,
327
+ pathParams: ["collectionName"],
328
+ scope: "project",
329
+ ...options
330
+ });
331
+ };
332
+ /**
333
+ * POST /{version}/database/collections/{collectionName}/many
334
+ * Request DTO: InsertManyRequest
335
+ */
336
+ insertMany = (request = {}, options = {}) => {
337
+ return this.transport.send({
338
+ target: "api",
339
+ path: "/{version}/database/collections/{collectionName}/many",
340
+ method: "POST",
341
+ request,
342
+ pathParams: ["collectionName"],
343
+ scope: "project",
344
+ ...options
345
+ });
346
+ };
347
+ /**
348
+ * POST /{version}/database/collections/{collectionName}
349
+ * Request DTO: InsertOneRequest
350
+ */
351
+ insertOne = (request = {}, options = {}) => {
352
+ return this.transport.send({
353
+ target: "api",
354
+ path: "/{version}/database/collections/{collectionName}",
355
+ method: "POST",
356
+ request,
357
+ pathParams: ["collectionName"],
358
+ scope: "project",
359
+ ...options
360
+ });
361
+ };
362
+ /**
363
+ * PUT /{version}/database/collections/{collectionName}/{id}/replace
364
+ * Request DTO: ReplaceOneRequest
365
+ */
366
+ replaceOne = (request = {}, options = {}) => {
367
+ return this.transport.send({
368
+ target: "api",
369
+ path: "/{version}/database/collections/{collectionName}/{id}/replace",
370
+ method: "PUT",
371
+ request,
372
+ pathParams: ["collectionName", "id"],
373
+ scope: "project",
374
+ ...options
375
+ });
376
+ };
377
+ /**
378
+ * PUT /{version}/database/collections/{collectionName}/many
379
+ * Request DTO: UpdateManyRequest
380
+ */
381
+ updateMany = (request = {}, options = {}) => {
382
+ return this.transport.send({
383
+ target: "api",
384
+ path: "/{version}/database/collections/{collectionName}/many",
385
+ method: "PUT",
386
+ request,
387
+ pathParams: ["collectionName"],
388
+ scope: "project",
389
+ ...options
390
+ });
391
+ };
392
+ /**
393
+ * PUT /{version}/database/collections/{collectionName}/{id}
394
+ * Request DTO: UpdateOneRequest
395
+ */
396
+ updateOne = (request = {}, options = {}) => {
397
+ return this.transport.send({
398
+ target: "api",
399
+ path: "/{version}/database/collections/{collectionName}/{id}",
400
+ method: "PUT",
401
+ request,
402
+ pathParams: ["collectionName", "id"],
403
+ scope: "project",
404
+ ...options
405
+ });
406
+ };
407
+ };
408
+
409
+ // src/api/echo.ts
410
+ var EchoModule = class {
411
+ constructor(transport) {
412
+ this.transport = transport;
413
+ }
414
+ transport;
415
+ /**
416
+ * GET /{version}/echo
417
+ * Request DTO: Echo
418
+ */
419
+ echo = (request = {}, options = {}) => {
420
+ return this.transport.send({
421
+ target: "api",
422
+ path: "/{version}/echo",
423
+ method: "GET",
424
+ request,
425
+ pathParams: [],
426
+ scope: "project",
427
+ ...options
428
+ });
429
+ };
430
+ };
431
+
432
+ // src/api/files.ts
433
+ var FilesModule = class {
434
+ constructor(transport) {
435
+ this.transport = transport;
436
+ }
437
+ transport;
438
+ /**
439
+ * POST /{version}/files/{filesIntegrationId}/commit
440
+ * Request DTO: CommitUploadRequest
441
+ */
442
+ commitUpload = (request = {}, options = {}) => {
443
+ return this.transport.send({
444
+ target: "api",
445
+ path: "/{version}/files/{filesIntegrationId}/commit",
446
+ method: "POST",
447
+ request,
448
+ pathParams: ["filesIntegrationId"],
449
+ scope: "project",
450
+ ...options
451
+ });
452
+ };
453
+ /**
454
+ * DELETE /{version}/files/{filesIntegrationId}
455
+ * Request DTO: DeleteFileApiRequest
456
+ */
457
+ deleteFileApi = (request = {}, options = {}) => {
458
+ return this.transport.send({
459
+ target: "api",
460
+ path: "/{version}/files/{filesIntegrationId}",
461
+ method: "DELETE",
462
+ request,
463
+ pathParams: ["filesIntegrationId"],
464
+ scope: "project",
465
+ ...options
466
+ });
467
+ };
468
+ /**
469
+ * DELETE /{version}/files/{filesIntegrationId}/bulk
470
+ * Request DTO: DeleteManyFilesApiRequest
471
+ */
472
+ deleteManyFilesApi = (request = {}, options = {}) => {
473
+ return this.transport.send({
474
+ target: "api",
475
+ path: "/{version}/files/{filesIntegrationId}/bulk",
476
+ method: "DELETE",
477
+ request,
478
+ pathParams: ["filesIntegrationId"],
479
+ scope: "project",
480
+ ...options
481
+ });
482
+ };
483
+ /**
484
+ * GET /{version}/files/{filesIntegrationId}/download
485
+ * Request DTO: DownloadFileApiRequest
486
+ */
487
+ downloadFileApi = (request = {}, options = {}) => {
488
+ return this.transport.send({
489
+ target: "api",
490
+ path: "/{version}/files/{filesIntegrationId}/download",
491
+ method: "GET",
492
+ request,
493
+ pathParams: ["filesIntegrationId"],
494
+ scope: "project",
495
+ ...options
496
+ });
497
+ };
498
+ /**
499
+ * GET /{version}/files/{filesIntegrationId}/info
500
+ * Request DTO: GetFileInfoRequest
501
+ */
502
+ getFileInfo = (request = {}, options = {}) => {
503
+ return this.transport.send({
504
+ target: "api",
505
+ path: "/{version}/files/{filesIntegrationId}/info",
506
+ method: "GET",
507
+ request,
508
+ pathParams: ["filesIntegrationId"],
509
+ scope: "project",
510
+ ...options
511
+ });
512
+ };
513
+ /**
514
+ * GET /{version}/files/{filesIntegrationId}/sign
515
+ * Request DTO: GetSignedUrlRequest
516
+ */
517
+ getSignedUrl = (request = {}, options = {}) => {
518
+ return this.transport.send({
519
+ target: "api",
520
+ path: "/{version}/files/{filesIntegrationId}/sign",
521
+ method: "GET",
522
+ request,
523
+ pathParams: ["filesIntegrationId"],
524
+ scope: "project",
525
+ ...options
526
+ });
527
+ };
528
+ /**
529
+ * GET /{version}/files/{filesIntegrationId}
530
+ * Request DTO: ListFilesRequest
531
+ */
532
+ listFiles = (request = {}, options = {}) => {
533
+ return this.transport.send({
534
+ target: "api",
535
+ path: "/{version}/files/{filesIntegrationId}",
536
+ method: "GET",
537
+ request,
538
+ pathParams: ["filesIntegrationId"],
539
+ scope: "project",
540
+ ...options
541
+ });
542
+ };
543
+ /**
544
+ * POST /{version}/files/{filesIntegrationId}/upload-url
545
+ * Request DTO: RequestUploadUrlRequest
546
+ */
547
+ requestUploadUrl = (request = {}, options = {}) => {
548
+ return this.transport.send({
549
+ target: "api",
550
+ path: "/{version}/files/{filesIntegrationId}/upload-url",
551
+ method: "POST",
552
+ request,
553
+ pathParams: ["filesIntegrationId"],
554
+ scope: "project",
555
+ ...options
556
+ });
557
+ };
558
+ };
559
+
560
+ // src/api/membership.ts
561
+ var MembershipModule = class {
562
+ constructor(transport) {
563
+ this.transport = transport;
564
+ }
565
+ transport;
566
+ /**
567
+ * PATCH /{version}/membership/users/block
568
+ * Request DTO: BlockUserRequest
569
+ */
570
+ blockUser = (request = {}, options = {}) => {
571
+ return this.transport.send({
572
+ target: "api",
573
+ path: "/{version}/membership/users/block",
574
+ method: "PATCH",
575
+ request,
576
+ pathParams: [],
577
+ scope: "project",
578
+ ...options
579
+ });
580
+ };
581
+ /**
582
+ * POST /{version}/membership/users/register/service
583
+ * Request DTO: SaveSystemUserWithPermissions
584
+ */
585
+ saveSystemUserWithPermissions = (request = {}, options = {}) => {
586
+ return this.transport.send({
587
+ target: "api",
588
+ path: "/{version}/membership/users/register/service",
589
+ method: "POST",
590
+ request,
591
+ pathParams: [],
592
+ scope: "project",
593
+ ...options
594
+ });
595
+ };
596
+ /**
597
+ * POST /{version}/membership/users/register/guest
598
+ * Request DTO: SaveGuestUser
599
+ */
600
+ saveGuestUser = (request = {}, options = {}) => {
601
+ return this.transport.send({
602
+ target: "api",
603
+ path: "/{version}/membership/users/register/guest",
604
+ method: "POST",
605
+ request,
606
+ pathParams: [],
607
+ scope: "project",
608
+ ...options
609
+ });
610
+ };
611
+ /**
612
+ * POST /{version}/membership/users/register/user-name
613
+ * Request DTO: SaveUserNameUser
614
+ */
615
+ saveUserNameUser = (request = {}, options = {}) => {
616
+ return this.transport.send({
617
+ target: "api",
618
+ path: "/{version}/membership/users/register/user-name",
619
+ method: "POST",
620
+ request,
621
+ pathParams: [],
622
+ scope: "project",
623
+ ...options
624
+ });
625
+ };
626
+ /**
627
+ * POST /{version}/membership/users/register/email
628
+ * Request DTO: SaveEmailUser
629
+ */
630
+ saveEmailUser = (request = {}, options = {}) => {
631
+ return this.transport.send({
632
+ target: "api",
633
+ path: "/{version}/membership/users/register/email",
634
+ method: "POST",
635
+ request,
636
+ pathParams: [],
637
+ scope: "project",
638
+ ...options
639
+ });
640
+ };
641
+ /**
642
+ * POST /{version}/membership/users/register/phone
643
+ * Request DTO: SavePhoneUser
644
+ */
645
+ savePhoneUser = (request = {}, options = {}) => {
646
+ return this.transport.send({
647
+ target: "api",
648
+ path: "/{version}/membership/users/register/phone",
649
+ method: "POST",
650
+ request,
651
+ pathParams: [],
652
+ scope: "project",
653
+ ...options
654
+ });
655
+ };
656
+ /**
657
+ * POST /{version}/membership/users/register/phone-with-permissions
658
+ * Request DTO: SavePhoneUserNameWithPermissions
659
+ */
660
+ savePhoneUserNameWithPermissions = (request = {}, options = {}) => {
661
+ return this.transport.send({
662
+ target: "api",
663
+ path: "/{version}/membership/users/register/phone-with-permissions",
664
+ method: "POST",
665
+ request,
666
+ pathParams: [],
667
+ scope: "project",
668
+ ...options
669
+ });
670
+ };
671
+ /**
672
+ * POST /{version}/membership/users/register/email-with-permissions
673
+ * Request DTO: SaveEmailUserNameWithPermissions
674
+ */
675
+ saveEmailUserNameWithPermissions = (request = {}, options = {}) => {
676
+ return this.transport.send({
677
+ target: "api",
678
+ path: "/{version}/membership/users/register/email-with-permissions",
679
+ method: "POST",
680
+ request,
681
+ pathParams: [],
682
+ scope: "project",
683
+ ...options
684
+ });
685
+ };
686
+ /**
687
+ * POST /{version}/membership/users/register/user-name-with-permissions
688
+ * Request DTO: SaveUserNameWithPermissions
689
+ */
690
+ saveUserNameWithPermissions = (request = {}, options = {}) => {
691
+ return this.transport.send({
692
+ target: "api",
693
+ path: "/{version}/membership/users/register/user-name-with-permissions",
694
+ method: "POST",
695
+ request,
696
+ pathParams: [],
697
+ scope: "project",
698
+ ...options
699
+ });
700
+ };
701
+ /**
702
+ * DELETE /{version}/membership/users
703
+ * Request DTO: DeleteUserRequest
704
+ */
705
+ deleteUser = (request = {}, options = {}) => {
706
+ return this.transport.send({
707
+ target: "api",
708
+ path: "/{version}/membership/users",
709
+ method: "DELETE",
710
+ request,
711
+ pathParams: [],
712
+ scope: "project",
713
+ ...options
714
+ });
715
+ };
716
+ /**
717
+ * GET /{version}/membership/users/{id}
718
+ * Request DTO: GetUserRequest
719
+ */
720
+ getUser = (request = {}, options = {}) => {
721
+ return this.transport.send({
722
+ target: "api",
723
+ path: "/{version}/membership/users/{id}",
724
+ method: "GET",
725
+ request,
726
+ pathParams: ["id"],
727
+ scope: "project",
728
+ ...options
729
+ });
730
+ };
731
+ /**
732
+ * GET /{version}/membership/users
733
+ * Request DTO: GetUsersRequest
734
+ */
735
+ getUsers = (request = {}, options = {}) => {
736
+ return this.transport.send({
737
+ target: "api",
738
+ path: "/{version}/membership/users",
739
+ method: "GET",
740
+ request,
741
+ pathParams: [],
742
+ scope: "project",
743
+ ...options
744
+ });
745
+ };
746
+ /**
747
+ * GET /{version}/membership/users/{id}/preferences
748
+ * Request DTO: GetUserPreferencesRequest
749
+ */
750
+ getUserPreferences = (request = {}, options = {}) => {
751
+ return this.transport.send({
752
+ target: "api",
753
+ path: "/{version}/membership/users/{id}/preferences",
754
+ method: "GET",
755
+ request,
756
+ pathParams: ["id"],
757
+ scope: "project",
758
+ ...options
759
+ });
760
+ };
761
+ /**
762
+ * POST /{version}/membership/users/invite
763
+ * Request DTO: InviteUserRequest
764
+ */
765
+ inviteUser = (request = {}, options = {}) => {
766
+ return this.transport.send({
767
+ target: "api",
768
+ path: "/{version}/membership/users/invite",
769
+ method: "POST",
770
+ request,
771
+ pathParams: [],
772
+ scope: "project",
773
+ ...options
774
+ });
775
+ };
776
+ /**
777
+ * POST /{version}/membership/users/{userId}/link-identity
778
+ * Request DTO: LinkIdentityRequest
779
+ */
780
+ linkIdentity = (request = {}, options = {}) => {
781
+ return this.transport.send({
782
+ target: "api",
783
+ path: "/{version}/membership/users/{userId}/link-identity",
784
+ method: "POST",
785
+ request,
786
+ pathParams: ["userId"],
787
+ scope: "project",
788
+ ...options
789
+ });
790
+ };
791
+ /**
792
+ * PUT /{version}/membership/users/assign-roles
793
+ * Request DTO: AssignRolePermissionsRequest
794
+ */
795
+ assignRolePermissions = (request = {}, options = {}) => {
796
+ return this.transport.send({
797
+ target: "api",
798
+ path: "/{version}/membership/users/assign-roles",
799
+ method: "PUT",
800
+ request,
801
+ pathParams: [],
802
+ scope: "project",
803
+ ...options
804
+ });
805
+ };
806
+ /**
807
+ * PATCH /{version}/membership/users/unblock
808
+ * Request DTO: UnblockUserRequest
809
+ */
810
+ unblockUser = (request = {}, options = {}) => {
811
+ return this.transport.send({
812
+ target: "api",
813
+ path: "/{version}/membership/users/unblock",
814
+ method: "PATCH",
815
+ request,
816
+ pathParams: [],
817
+ scope: "project",
818
+ ...options
819
+ });
820
+ };
821
+ /**
822
+ * PUT /{version}/membership/users
823
+ * Request DTO: UpdateUserRequest
824
+ */
825
+ updateUser = (request = {}, options = {}) => {
826
+ return this.transport.send({
827
+ target: "api",
828
+ path: "/{version}/membership/users",
829
+ method: "PUT",
830
+ request,
831
+ pathParams: [],
832
+ scope: "project",
833
+ ...options
834
+ });
835
+ };
836
+ /**
837
+ * PUT /{version}/membership/users/{id}/preferences
838
+ * Request DTO: UpdateUserPreferencesRequest
839
+ */
840
+ updateUserPreferences = (request = {}, options = {}) => {
841
+ return this.transport.send({
842
+ target: "api",
843
+ path: "/{version}/membership/users/{id}/preferences",
844
+ method: "PUT",
845
+ request,
846
+ pathParams: ["id"],
847
+ scope: "project",
848
+ ...options
849
+ });
850
+ };
851
+ /**
852
+ * POST /{version}/membership/userauth/passkey/authentication-options
853
+ * Request DTO: PasskeyAuthenticationOptionsRequest
854
+ */
855
+ passkeyAuthenticationOptions = (request = {}, options = {}) => {
856
+ return this.transport.send({
857
+ target: "api",
858
+ path: "/{version}/membership/userauth/passkey/authentication-options",
859
+ method: "POST",
860
+ request,
861
+ pathParams: [],
862
+ scope: "project",
863
+ ...options
864
+ });
865
+ };
866
+ /**
867
+ * POST /{version}/membership/userauth/passkey/verify-authentication
868
+ * Request DTO: VerifyPasskeyAuthenticationRequest
869
+ */
870
+ verifyPasskeyAuthentication = (request = {}, options = {}) => {
871
+ return this.transport.send({
872
+ target: "api",
873
+ path: "/{version}/membership/userauth/passkey/verify-authentication",
874
+ method: "POST",
875
+ request,
876
+ pathParams: [],
877
+ scope: "project",
878
+ ...options
879
+ });
880
+ };
881
+ /**
882
+ * GET /{version}/membership/userauth/passkeys
883
+ * Request DTO: ListPasskeysRequest
884
+ */
885
+ listPasskeys = (request = {}, options = {}) => {
886
+ return this.transport.send({
887
+ target: "api",
888
+ path: "/{version}/membership/userauth/passkeys",
889
+ method: "GET",
890
+ request,
891
+ pathParams: [],
892
+ scope: "project",
893
+ ...options
894
+ });
895
+ };
896
+ /**
897
+ * POST /{version}/membership/userauth/passkeys/{CredentialId}/rename
898
+ * Request DTO: RenamePasskeyRequest
899
+ */
900
+ renamePasskey = (request = {}, options = {}) => {
901
+ return this.transport.send({
902
+ target: "api",
903
+ path: "/{version}/membership/userauth/passkeys/{CredentialId}/rename",
904
+ method: "POST",
905
+ request,
906
+ pathParams: ["CredentialId"],
907
+ scope: "project",
908
+ ...options
909
+ });
910
+ };
911
+ /**
912
+ * POST /{version}/membership/userauth/passkeys/{CredentialId}/revoke
913
+ * Request DTO: RevokePasskeyRequest
914
+ */
915
+ revokePasskey = (request = {}, options = {}) => {
916
+ return this.transport.send({
917
+ target: "api",
918
+ path: "/{version}/membership/userauth/passkeys/{CredentialId}/revoke",
919
+ method: "POST",
920
+ request,
921
+ pathParams: ["CredentialId"],
922
+ scope: "project",
923
+ ...options
924
+ });
925
+ };
926
+ /**
927
+ * POST /{version}/membership/userauth/recovery/use-code
928
+ * Request DTO: UseRecoveryCodeRequest
929
+ */
930
+ useRecoveryCode = (request = {}, options = {}) => {
931
+ return this.transport.send({
932
+ target: "api",
933
+ path: "/{version}/membership/userauth/recovery/use-code",
934
+ method: "POST",
935
+ request,
936
+ pathParams: [],
937
+ scope: "project",
938
+ ...options
939
+ });
940
+ };
941
+ /**
942
+ * POST /{version}/membership/userauth/recovery/magic-link/request
943
+ * Request DTO: RequestMagicLinkRequest
944
+ */
945
+ requestMagicLink = (request = {}, options = {}) => {
946
+ return this.transport.send({
947
+ target: "api",
948
+ path: "/{version}/membership/userauth/recovery/magic-link/request",
949
+ method: "POST",
950
+ request,
951
+ pathParams: [],
952
+ scope: "project",
953
+ ...options
954
+ });
955
+ };
956
+ /**
957
+ * POST /{version}/membership/userauth/recovery/magic-link/consume
958
+ * Request DTO: ConsumeMagicLinkRequest
959
+ */
960
+ consumeMagicLink = (request = {}, options = {}) => {
961
+ return this.transport.send({
962
+ target: "api",
963
+ path: "/{version}/membership/userauth/recovery/magic-link/consume",
964
+ method: "POST",
965
+ request,
966
+ pathParams: [],
967
+ scope: "project",
968
+ ...options
969
+ });
970
+ };
971
+ /**
972
+ * POST /{version}/membership/userauth/has-passkey
973
+ * Request DTO: HasPasskeyRequest
974
+ */
975
+ hasPasskey = (request = {}, options = {}) => {
976
+ return this.transport.send({
977
+ target: "api",
978
+ path: "/{version}/membership/userauth/has-passkey",
979
+ method: "POST",
980
+ request,
981
+ pathParams: [],
982
+ scope: "project",
983
+ ...options
984
+ });
985
+ };
986
+ /**
987
+ * POST /{version}/membership/userauth/email/start-verification
988
+ * Request DTO: StartEmailVerificationRequest
989
+ */
990
+ startEmailVerification = (request = {}, options = {}) => {
991
+ return this.transport.send({
992
+ target: "api",
993
+ path: "/{version}/membership/userauth/email/start-verification",
994
+ method: "POST",
995
+ request,
996
+ pathParams: [],
997
+ scope: "project",
998
+ ...options
999
+ });
1000
+ };
1001
+ /**
1002
+ * POST /{version}/membership/userauth/email/confirm-verification
1003
+ * Request DTO: ConfirmEmailVerificationRequest
1004
+ */
1005
+ confirmEmailVerification = (request = {}, options = {}) => {
1006
+ return this.transport.send({
1007
+ target: "api",
1008
+ path: "/{version}/membership/userauth/email/confirm-verification",
1009
+ method: "POST",
1010
+ request,
1011
+ pathParams: [],
1012
+ scope: "project",
1013
+ ...options
1014
+ });
1015
+ };
1016
+ /**
1017
+ * POST /{version}/membership/userauth/passkey/registration-options
1018
+ * Request DTO: PasskeyRegistrationOptionsRequest
1019
+ */
1020
+ passkeyRegistrationOptions = (request = {}, options = {}) => {
1021
+ return this.transport.send({
1022
+ target: "api",
1023
+ path: "/{version}/membership/userauth/passkey/registration-options",
1024
+ method: "POST",
1025
+ request,
1026
+ pathParams: [],
1027
+ scope: "project",
1028
+ ...options
1029
+ });
1030
+ };
1031
+ /**
1032
+ * POST /{version}/membership/userauth/passkey/verify-registration
1033
+ * Request DTO: VerifyPasskeyRegistrationRequest
1034
+ */
1035
+ verifyPasskeyRegistration = (request = {}, options = {}) => {
1036
+ return this.transport.send({
1037
+ target: "api",
1038
+ path: "/{version}/membership/userauth/passkey/verify-registration",
1039
+ method: "POST",
1040
+ request,
1041
+ pathParams: [],
1042
+ scope: "project",
1043
+ ...options
1044
+ });
1045
+ };
1046
+ /**
1047
+ * POST /{version}/membership/userauth/token/refresh
1048
+ * Request DTO: RefreshPasskeyTokenRequest
1049
+ */
1050
+ refreshPasskeyToken = (request = {}, options = {}) => {
1051
+ return this.transport.send({
1052
+ target: "api",
1053
+ path: "/{version}/membership/userauth/token/refresh",
1054
+ method: "POST",
1055
+ request,
1056
+ pathParams: [],
1057
+ scope: "project",
1058
+ ...options
1059
+ });
1060
+ };
1061
+ /**
1062
+ * POST /{version}/membership/userauth/logout
1063
+ * Request DTO: PasskeyLogoutRequest
1064
+ */
1065
+ passkeyLogout = (request = {}, options = {}) => {
1066
+ return this.transport.send({
1067
+ target: "api",
1068
+ path: "/{version}/membership/userauth/logout",
1069
+ method: "POST",
1070
+ request,
1071
+ pathParams: [],
1072
+ scope: "project",
1073
+ ...options
1074
+ });
1075
+ };
1076
+ };
1077
+
1078
+ // src/api/index.ts
1079
+ var ApiNamespace = class {
1080
+ accessToken;
1081
+ apikeys;
1082
+ auth;
1083
+ chat;
1084
+ database;
1085
+ echo;
1086
+ files;
1087
+ membership;
1088
+ constructor(transport) {
1089
+ this.accessToken = new AccessTokenModule(transport);
1090
+ this.apikeys = new ApikeysModule(transport);
1091
+ this.auth = new AuthModule(transport);
1092
+ this.chat = new ChatModule(transport);
1093
+ this.database = new DatabaseModule(transport);
1094
+ this.echo = new EchoModule(transport);
1095
+ this.files = new FilesModule(transport);
1096
+ this.membership = new MembershipModule(transport);
1097
+ }
1098
+ };
1099
+
1100
+ export { ApiNamespace };
1101
+ //# sourceMappingURL=index.js.map
1102
+ //# sourceMappingURL=index.js.map