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