@appwrite.io/console 1.5.0 → 1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/cjs/sdk.js +419 -48
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +419 -48
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +419 -48
- package/package.json +1 -1
- package/src/client.ts +5 -3
- package/src/models.ts +48 -0
- package/src/services/account.ts +122 -0
- package/src/services/assistant.ts +2 -0
- package/src/services/avatars.ts +7 -42
- package/src/services/backups.ts +24 -0
- package/src/services/console.ts +14 -0
- package/src/services/databases.ts +96 -0
- package/src/services/functions.ts +55 -6
- package/src/services/graphql.ts +4 -0
- package/src/services/health.ts +52 -0
- package/src/services/locale.ts +16 -0
- package/src/services/messaging.ts +95 -3
- package/src/services/migrations.ts +24 -0
- package/src/services/organizations.ts +56 -0
- package/src/services/project.ts +12 -0
- package/src/services/projects.ts +92 -0
- package/src/services/proxy.ts +10 -0
- package/src/services/storage.ts +27 -18
- package/src/services/teams.ts +28 -0
- package/src/services/users.ts +86 -0
- package/src/services/vcs.ts +20 -0
- package/types/models.d.ts +48 -0
- package/types/services/messaging.d.ts +3 -3
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@appwrite.io/console",
|
|
3
3
|
"homepage": "https://appwrite.io/support",
|
|
4
4
|
"description": "Appwrite is an open-source self-hosted backend server that abstract and simplify complex and repetitive development tasks behind a very simple REST API",
|
|
5
|
-
"version": "1.5.
|
|
5
|
+
"version": "1.5.1",
|
|
6
6
|
"license": "BSD-3-Clause",
|
|
7
7
|
"main": "dist/cjs/sdk.js",
|
|
8
8
|
"exports": {
|
package/src/client.ts
CHANGED
|
@@ -19,14 +19,14 @@ type Headers = {
|
|
|
19
19
|
*/
|
|
20
20
|
type RealtimeResponse = {
|
|
21
21
|
/**
|
|
22
|
-
* Type of the response: 'error', 'event', 'connected', '
|
|
22
|
+
* Type of the response: 'error', 'event', 'connected', 'response' or 'pong'.
|
|
23
23
|
*/
|
|
24
24
|
type: 'error' | 'event' | 'connected' | 'response' | 'pong';
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
27
|
* Data associated with the response based on the response type.
|
|
28
28
|
*/
|
|
29
|
-
data: RealtimeResponseAuthenticated | RealtimeResponseConnected | RealtimeResponseError | RealtimeResponseEvent<unknown
|
|
29
|
+
data: RealtimeResponseAuthenticated | RealtimeResponseConnected | RealtimeResponseError | RealtimeResponseEvent<unknown> | undefined;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
/**
|
|
@@ -316,7 +316,7 @@ class Client {
|
|
|
316
316
|
'x-sdk-name': 'Console',
|
|
317
317
|
'x-sdk-platform': 'console',
|
|
318
318
|
'x-sdk-language': 'web',
|
|
319
|
-
'x-sdk-version': '1.5.
|
|
319
|
+
'x-sdk-version': '1.5.1',
|
|
320
320
|
'X-Appwrite-Response-Format': '1.6.0',
|
|
321
321
|
};
|
|
322
322
|
|
|
@@ -544,6 +544,8 @@ class Client {
|
|
|
544
544
|
})
|
|
545
545
|
}
|
|
546
546
|
break;
|
|
547
|
+
case 'pong':
|
|
548
|
+
break; // Handle pong response if needed
|
|
547
549
|
case 'error':
|
|
548
550
|
throw message.data;
|
|
549
551
|
default:
|
package/src/models.ts
CHANGED
|
@@ -3135,6 +3135,14 @@ export namespace Models {
|
|
|
3135
3135
|
* Total aggregated number of total databases storage in bytes.
|
|
3136
3136
|
*/
|
|
3137
3137
|
storageTotal: number;
|
|
3138
|
+
/**
|
|
3139
|
+
* Total number of databases reads.
|
|
3140
|
+
*/
|
|
3141
|
+
databasesReadsTotal: number;
|
|
3142
|
+
/**
|
|
3143
|
+
* Total number of databases writes.
|
|
3144
|
+
*/
|
|
3145
|
+
databasesWritesTotal: number;
|
|
3138
3146
|
/**
|
|
3139
3147
|
* Aggregated number of databases per period.
|
|
3140
3148
|
*/
|
|
@@ -3151,6 +3159,14 @@ export namespace Models {
|
|
|
3151
3159
|
* An array of the aggregated number of databases storage in bytes per period.
|
|
3152
3160
|
*/
|
|
3153
3161
|
storage: Metric[];
|
|
3162
|
+
/**
|
|
3163
|
+
* An array of aggregated number of database reads.
|
|
3164
|
+
*/
|
|
3165
|
+
databasesReads: Metric[];
|
|
3166
|
+
/**
|
|
3167
|
+
* An array of aggregated number of database writes.
|
|
3168
|
+
*/
|
|
3169
|
+
databasesWrites: Metric[];
|
|
3154
3170
|
}
|
|
3155
3171
|
/**
|
|
3156
3172
|
* UsageDatabase
|
|
@@ -3172,6 +3188,14 @@ export namespace Models {
|
|
|
3172
3188
|
* Total aggregated number of total storage used in bytes.
|
|
3173
3189
|
*/
|
|
3174
3190
|
storageTotal: number;
|
|
3191
|
+
/**
|
|
3192
|
+
* Total number of databases reads.
|
|
3193
|
+
*/
|
|
3194
|
+
databaseReadsTotal: number;
|
|
3195
|
+
/**
|
|
3196
|
+
* Total number of databases writes.
|
|
3197
|
+
*/
|
|
3198
|
+
databaseWritesTotal: number;
|
|
3175
3199
|
/**
|
|
3176
3200
|
* Aggregated number of collections per period.
|
|
3177
3201
|
*/
|
|
@@ -3184,6 +3208,14 @@ export namespace Models {
|
|
|
3184
3208
|
* Aggregated storage used in bytes per period.
|
|
3185
3209
|
*/
|
|
3186
3210
|
storage: Metric[];
|
|
3211
|
+
/**
|
|
3212
|
+
* An array of aggregated number of database reads.
|
|
3213
|
+
*/
|
|
3214
|
+
databaseReads: Metric[];
|
|
3215
|
+
/**
|
|
3216
|
+
* An array of aggregated number of database writes.
|
|
3217
|
+
*/
|
|
3218
|
+
databaseWrites: Metric[];
|
|
3187
3219
|
}
|
|
3188
3220
|
/**
|
|
3189
3221
|
* UsageCollection
|
|
@@ -3507,6 +3539,14 @@ export namespace Models {
|
|
|
3507
3539
|
* Total aggregated number of function builds mbSeconds.
|
|
3508
3540
|
*/
|
|
3509
3541
|
buildsMbSecondsTotal: number;
|
|
3542
|
+
/**
|
|
3543
|
+
* Total number of databases reads.
|
|
3544
|
+
*/
|
|
3545
|
+
databasesReadsTotal: number;
|
|
3546
|
+
/**
|
|
3547
|
+
* Total number of databases writes.
|
|
3548
|
+
*/
|
|
3549
|
+
databasesWritesTotal: number;
|
|
3510
3550
|
/**
|
|
3511
3551
|
* Aggregated number of requests per period.
|
|
3512
3552
|
*/
|
|
@@ -3559,6 +3599,14 @@ export namespace Models {
|
|
|
3559
3599
|
* Aggregated breakdown in totals of phone auth by country.
|
|
3560
3600
|
*/
|
|
3561
3601
|
authPhoneCountryBreakdown: MetricBreakdown[];
|
|
3602
|
+
/**
|
|
3603
|
+
* An array of aggregated number of database reads.
|
|
3604
|
+
*/
|
|
3605
|
+
databasesReads: Metric[];
|
|
3606
|
+
/**
|
|
3607
|
+
* An array of aggregated number of database writes.
|
|
3608
|
+
*/
|
|
3609
|
+
databasesWrites: Metric[];
|
|
3562
3610
|
}
|
|
3563
3611
|
/**
|
|
3564
3612
|
* Headers
|
package/src/services/account.ts
CHANGED
|
@@ -29,6 +29,8 @@ export class Account {
|
|
|
29
29
|
'content-type': 'application/json',
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
+
payload['project'] = this.client.config.project;
|
|
33
|
+
|
|
32
34
|
|
|
33
35
|
return await this.client.call(
|
|
34
36
|
'get',
|
|
@@ -79,6 +81,8 @@ export class Account {
|
|
|
79
81
|
'content-type': 'application/json',
|
|
80
82
|
}
|
|
81
83
|
|
|
84
|
+
payload['project'] = this.client.config.project;
|
|
85
|
+
|
|
82
86
|
|
|
83
87
|
return await this.client.call(
|
|
84
88
|
'post',
|
|
@@ -104,6 +108,8 @@ export class Account {
|
|
|
104
108
|
'content-type': 'application/json',
|
|
105
109
|
}
|
|
106
110
|
|
|
111
|
+
payload['project'] = this.client.config.project;
|
|
112
|
+
|
|
107
113
|
|
|
108
114
|
return await this.client.call(
|
|
109
115
|
'delete',
|
|
@@ -133,6 +139,8 @@ export class Account {
|
|
|
133
139
|
'content-type': 'application/json',
|
|
134
140
|
}
|
|
135
141
|
|
|
142
|
+
payload['project'] = this.client.config.project;
|
|
143
|
+
|
|
136
144
|
|
|
137
145
|
return await this.client.call(
|
|
138
146
|
'get',
|
|
@@ -194,6 +202,8 @@ export class Account {
|
|
|
194
202
|
'content-type': 'application/json',
|
|
195
203
|
}
|
|
196
204
|
|
|
205
|
+
payload['project'] = this.client.config.project;
|
|
206
|
+
|
|
197
207
|
|
|
198
208
|
return await this.client.call(
|
|
199
209
|
'post',
|
|
@@ -223,6 +233,8 @@ export class Account {
|
|
|
223
233
|
'content-type': 'application/json',
|
|
224
234
|
}
|
|
225
235
|
|
|
236
|
+
payload['project'] = this.client.config.project;
|
|
237
|
+
|
|
226
238
|
|
|
227
239
|
return await this.client.call(
|
|
228
240
|
'get',
|
|
@@ -288,6 +300,8 @@ export class Account {
|
|
|
288
300
|
'content-type': 'application/json',
|
|
289
301
|
}
|
|
290
302
|
|
|
303
|
+
payload['project'] = this.client.config.project;
|
|
304
|
+
|
|
291
305
|
|
|
292
306
|
return await this.client.call(
|
|
293
307
|
'put',
|
|
@@ -317,6 +331,8 @@ export class Account {
|
|
|
317
331
|
'content-type': 'application/json',
|
|
318
332
|
}
|
|
319
333
|
|
|
334
|
+
payload['project'] = this.client.config.project;
|
|
335
|
+
|
|
320
336
|
|
|
321
337
|
return await this.client.call(
|
|
322
338
|
'delete',
|
|
@@ -346,6 +362,8 @@ export class Account {
|
|
|
346
362
|
'content-type': 'application/json',
|
|
347
363
|
}
|
|
348
364
|
|
|
365
|
+
payload['project'] = this.client.config.project;
|
|
366
|
+
|
|
349
367
|
|
|
350
368
|
return await this.client.call(
|
|
351
369
|
'get',
|
|
@@ -387,6 +405,8 @@ This endpoint can also be used to convert an anonymous account to a normal one,
|
|
|
387
405
|
'content-type': 'application/json',
|
|
388
406
|
}
|
|
389
407
|
|
|
408
|
+
payload['project'] = this.client.config.project;
|
|
409
|
+
|
|
390
410
|
|
|
391
411
|
return await this.client.call(
|
|
392
412
|
'patch',
|
|
@@ -416,6 +436,8 @@ This endpoint can also be used to convert an anonymous account to a normal one,
|
|
|
416
436
|
'content-type': 'application/json',
|
|
417
437
|
}
|
|
418
438
|
|
|
439
|
+
payload['project'] = this.client.config.project;
|
|
440
|
+
|
|
419
441
|
|
|
420
442
|
return await this.client.call(
|
|
421
443
|
'get',
|
|
@@ -445,6 +467,8 @@ This endpoint can also be used to convert an anonymous account to a normal one,
|
|
|
445
467
|
'content-type': 'application/json',
|
|
446
468
|
}
|
|
447
469
|
|
|
470
|
+
payload['project'] = this.client.config.project;
|
|
471
|
+
|
|
448
472
|
|
|
449
473
|
return await this.client.call(
|
|
450
474
|
'delete',
|
|
@@ -474,6 +498,8 @@ This endpoint can also be used to convert an anonymous account to a normal one,
|
|
|
474
498
|
'content-type': 'application/json',
|
|
475
499
|
}
|
|
476
500
|
|
|
501
|
+
payload['project'] = this.client.config.project;
|
|
502
|
+
|
|
477
503
|
|
|
478
504
|
return await this.client.call(
|
|
479
505
|
'get',
|
|
@@ -499,6 +525,8 @@ This endpoint can also be used to convert an anonymous account to a normal one,
|
|
|
499
525
|
'content-type': 'application/json',
|
|
500
526
|
}
|
|
501
527
|
|
|
528
|
+
payload['project'] = this.client.config.project;
|
|
529
|
+
|
|
502
530
|
|
|
503
531
|
return await this.client.call(
|
|
504
532
|
'post',
|
|
@@ -528,6 +556,8 @@ This endpoint can also be used to convert an anonymous account to a normal one,
|
|
|
528
556
|
'content-type': 'application/json',
|
|
529
557
|
}
|
|
530
558
|
|
|
559
|
+
payload['project'] = this.client.config.project;
|
|
560
|
+
|
|
531
561
|
|
|
532
562
|
return await this.client.call(
|
|
533
563
|
'get',
|
|
@@ -560,6 +590,8 @@ This endpoint can also be used to convert an anonymous account to a normal one,
|
|
|
560
590
|
'content-type': 'application/json',
|
|
561
591
|
}
|
|
562
592
|
|
|
593
|
+
payload['project'] = this.client.config.project;
|
|
594
|
+
|
|
563
595
|
|
|
564
596
|
return await this.client.call(
|
|
565
597
|
'patch',
|
|
@@ -589,6 +621,8 @@ This endpoint can also be used to convert an anonymous account to a normal one,
|
|
|
589
621
|
'content-type': 'application/json',
|
|
590
622
|
}
|
|
591
623
|
|
|
624
|
+
payload['project'] = this.client.config.project;
|
|
625
|
+
|
|
592
626
|
|
|
593
627
|
return await this.client.call(
|
|
594
628
|
'post',
|
|
@@ -625,6 +659,8 @@ This endpoint can also be used to convert an anonymous account to a normal one,
|
|
|
625
659
|
'content-type': 'application/json',
|
|
626
660
|
}
|
|
627
661
|
|
|
662
|
+
payload['project'] = this.client.config.project;
|
|
663
|
+
|
|
628
664
|
|
|
629
665
|
return await this.client.call(
|
|
630
666
|
'put',
|
|
@@ -654,6 +690,8 @@ This endpoint can also be used to convert an anonymous account to a normal one,
|
|
|
654
690
|
'content-type': 'application/json',
|
|
655
691
|
}
|
|
656
692
|
|
|
693
|
+
payload['project'] = this.client.config.project;
|
|
694
|
+
|
|
657
695
|
|
|
658
696
|
return await this.client.call(
|
|
659
697
|
'delete',
|
|
@@ -686,6 +724,8 @@ This endpoint can also be used to convert an anonymous account to a normal one,
|
|
|
686
724
|
'content-type': 'application/json',
|
|
687
725
|
}
|
|
688
726
|
|
|
727
|
+
payload['project'] = this.client.config.project;
|
|
728
|
+
|
|
689
729
|
|
|
690
730
|
return await this.client.call(
|
|
691
731
|
'post',
|
|
@@ -725,6 +765,8 @@ This endpoint can also be used to convert an anonymous account to a normal one,
|
|
|
725
765
|
'content-type': 'application/json',
|
|
726
766
|
}
|
|
727
767
|
|
|
768
|
+
payload['project'] = this.client.config.project;
|
|
769
|
+
|
|
728
770
|
|
|
729
771
|
return await this.client.call(
|
|
730
772
|
'put',
|
|
@@ -750,6 +792,8 @@ This endpoint can also be used to convert an anonymous account to a normal one,
|
|
|
750
792
|
'content-type': 'application/json',
|
|
751
793
|
}
|
|
752
794
|
|
|
795
|
+
payload['project'] = this.client.config.project;
|
|
796
|
+
|
|
753
797
|
|
|
754
798
|
return await this.client.call(
|
|
755
799
|
'get',
|
|
@@ -775,6 +819,8 @@ This endpoint can also be used to convert an anonymous account to a normal one,
|
|
|
775
819
|
'content-type': 'application/json',
|
|
776
820
|
}
|
|
777
821
|
|
|
822
|
+
payload['project'] = this.client.config.project;
|
|
823
|
+
|
|
778
824
|
|
|
779
825
|
return await this.client.call(
|
|
780
826
|
'get',
|
|
@@ -800,6 +846,8 @@ This endpoint can also be used to convert an anonymous account to a normal one,
|
|
|
800
846
|
'content-type': 'application/json',
|
|
801
847
|
}
|
|
802
848
|
|
|
849
|
+
payload['project'] = this.client.config.project;
|
|
850
|
+
|
|
803
851
|
|
|
804
852
|
return await this.client.call(
|
|
805
853
|
'post',
|
|
@@ -825,6 +873,8 @@ This endpoint can also be used to convert an anonymous account to a normal one,
|
|
|
825
873
|
'content-type': 'application/json',
|
|
826
874
|
}
|
|
827
875
|
|
|
876
|
+
payload['project'] = this.client.config.project;
|
|
877
|
+
|
|
828
878
|
|
|
829
879
|
return await this.client.call(
|
|
830
880
|
'patch',
|
|
@@ -857,6 +907,8 @@ This endpoint can also be used to convert an anonymous account to a normal one,
|
|
|
857
907
|
'content-type': 'application/json',
|
|
858
908
|
}
|
|
859
909
|
|
|
910
|
+
payload['project'] = this.client.config.project;
|
|
911
|
+
|
|
860
912
|
|
|
861
913
|
return await this.client.call(
|
|
862
914
|
'patch',
|
|
@@ -893,6 +945,8 @@ This endpoint can also be used to convert an anonymous account to a normal one,
|
|
|
893
945
|
'content-type': 'application/json',
|
|
894
946
|
}
|
|
895
947
|
|
|
948
|
+
payload['project'] = this.client.config.project;
|
|
949
|
+
|
|
896
950
|
|
|
897
951
|
return await this.client.call(
|
|
898
952
|
'patch',
|
|
@@ -922,6 +976,8 @@ This endpoint can also be used to convert an anonymous account to a normal one,
|
|
|
922
976
|
'content-type': 'application/json',
|
|
923
977
|
}
|
|
924
978
|
|
|
979
|
+
payload['project'] = this.client.config.project;
|
|
980
|
+
|
|
925
981
|
|
|
926
982
|
return await this.client.call(
|
|
927
983
|
'get',
|
|
@@ -947,6 +1003,8 @@ This endpoint can also be used to convert an anonymous account to a normal one,
|
|
|
947
1003
|
'content-type': 'application/json',
|
|
948
1004
|
}
|
|
949
1005
|
|
|
1006
|
+
payload['project'] = this.client.config.project;
|
|
1007
|
+
|
|
950
1008
|
|
|
951
1009
|
return await this.client.call(
|
|
952
1010
|
'post',
|
|
@@ -976,6 +1034,8 @@ This endpoint can also be used to convert an anonymous account to a normal one,
|
|
|
976
1034
|
'content-type': 'application/json',
|
|
977
1035
|
}
|
|
978
1036
|
|
|
1037
|
+
payload['project'] = this.client.config.project;
|
|
1038
|
+
|
|
979
1039
|
|
|
980
1040
|
return await this.client.call(
|
|
981
1041
|
'get',
|
|
@@ -1019,6 +1079,8 @@ This endpoint can also be used to convert an anonymous account to a normal one,
|
|
|
1019
1079
|
'content-type': 'application/json',
|
|
1020
1080
|
}
|
|
1021
1081
|
|
|
1082
|
+
payload['project'] = this.client.config.project;
|
|
1083
|
+
|
|
1022
1084
|
|
|
1023
1085
|
return await this.client.call(
|
|
1024
1086
|
'patch',
|
|
@@ -1048,6 +1110,8 @@ This endpoint can also be used to convert an anonymous account to a normal one,
|
|
|
1048
1110
|
'content-type': 'application/json',
|
|
1049
1111
|
}
|
|
1050
1112
|
|
|
1113
|
+
payload['project'] = this.client.config.project;
|
|
1114
|
+
|
|
1051
1115
|
|
|
1052
1116
|
return await this.client.call(
|
|
1053
1117
|
'delete',
|
|
@@ -1091,6 +1155,8 @@ This endpoint can also be used to convert an anonymous account to a normal one,
|
|
|
1091
1155
|
'content-type': 'application/json',
|
|
1092
1156
|
}
|
|
1093
1157
|
|
|
1158
|
+
payload['project'] = this.client.config.project;
|
|
1159
|
+
|
|
1094
1160
|
|
|
1095
1161
|
return await this.client.call(
|
|
1096
1162
|
'patch',
|
|
@@ -1120,6 +1186,8 @@ This endpoint can also be used to convert an anonymous account to a normal one,
|
|
|
1120
1186
|
'content-type': 'application/json',
|
|
1121
1187
|
}
|
|
1122
1188
|
|
|
1189
|
+
payload['project'] = this.client.config.project;
|
|
1190
|
+
|
|
1123
1191
|
|
|
1124
1192
|
return await this.client.call(
|
|
1125
1193
|
'patch',
|
|
@@ -1159,6 +1227,8 @@ This endpoint can also be used to convert an anonymous account to a normal one,
|
|
|
1159
1227
|
'content-type': 'application/json',
|
|
1160
1228
|
}
|
|
1161
1229
|
|
|
1230
|
+
payload['project'] = this.client.config.project;
|
|
1231
|
+
|
|
1162
1232
|
|
|
1163
1233
|
return await this.client.call(
|
|
1164
1234
|
'patch',
|
|
@@ -1184,6 +1254,8 @@ This endpoint can also be used to convert an anonymous account to a normal one,
|
|
|
1184
1254
|
'content-type': 'application/json',
|
|
1185
1255
|
}
|
|
1186
1256
|
|
|
1257
|
+
payload['project'] = this.client.config.project;
|
|
1258
|
+
|
|
1187
1259
|
|
|
1188
1260
|
return await this.client.call(
|
|
1189
1261
|
'get',
|
|
@@ -1216,6 +1288,8 @@ This endpoint can also be used to convert an anonymous account to a normal one,
|
|
|
1216
1288
|
'content-type': 'application/json',
|
|
1217
1289
|
}
|
|
1218
1290
|
|
|
1291
|
+
payload['project'] = this.client.config.project;
|
|
1292
|
+
|
|
1219
1293
|
|
|
1220
1294
|
return await this.client.call(
|
|
1221
1295
|
'patch',
|
|
@@ -1255,6 +1329,8 @@ This endpoint can also be used to convert an anonymous account to a normal one,
|
|
|
1255
1329
|
'content-type': 'application/json',
|
|
1256
1330
|
}
|
|
1257
1331
|
|
|
1332
|
+
payload['project'] = this.client.config.project;
|
|
1333
|
+
|
|
1258
1334
|
|
|
1259
1335
|
return await this.client.call(
|
|
1260
1336
|
'post',
|
|
@@ -1303,6 +1379,8 @@ Please note that in order to avoid a [Redirect Attack](https://github.com/OWASP/
|
|
|
1303
1379
|
'content-type': 'application/json',
|
|
1304
1380
|
}
|
|
1305
1381
|
|
|
1382
|
+
payload['project'] = this.client.config.project;
|
|
1383
|
+
|
|
1306
1384
|
|
|
1307
1385
|
return await this.client.call(
|
|
1308
1386
|
'put',
|
|
@@ -1328,6 +1406,8 @@ Please note that in order to avoid a [Redirect Attack](https://github.com/OWASP/
|
|
|
1328
1406
|
'content-type': 'application/json',
|
|
1329
1407
|
}
|
|
1330
1408
|
|
|
1409
|
+
payload['project'] = this.client.config.project;
|
|
1410
|
+
|
|
1331
1411
|
|
|
1332
1412
|
return await this.client.call(
|
|
1333
1413
|
'get',
|
|
@@ -1353,6 +1433,8 @@ Please note that in order to avoid a [Redirect Attack](https://github.com/OWASP/
|
|
|
1353
1433
|
'content-type': 'application/json',
|
|
1354
1434
|
}
|
|
1355
1435
|
|
|
1436
|
+
payload['project'] = this.client.config.project;
|
|
1437
|
+
|
|
1356
1438
|
|
|
1357
1439
|
return await this.client.call(
|
|
1358
1440
|
'delete',
|
|
@@ -1378,6 +1460,8 @@ Please note that in order to avoid a [Redirect Attack](https://github.com/OWASP/
|
|
|
1378
1460
|
'content-type': 'application/json',
|
|
1379
1461
|
}
|
|
1380
1462
|
|
|
1463
|
+
payload['project'] = this.client.config.project;
|
|
1464
|
+
|
|
1381
1465
|
|
|
1382
1466
|
return await this.client.call(
|
|
1383
1467
|
'post',
|
|
@@ -1419,6 +1503,8 @@ A user is limited to 10 active sessions at a time by default. [Learn more about
|
|
|
1419
1503
|
'content-type': 'application/json',
|
|
1420
1504
|
}
|
|
1421
1505
|
|
|
1506
|
+
payload['project'] = this.client.config.project;
|
|
1507
|
+
|
|
1422
1508
|
|
|
1423
1509
|
return await this.client.call(
|
|
1424
1510
|
'post',
|
|
@@ -1458,6 +1544,8 @@ A user is limited to 10 active sessions at a time by default. [Learn more about
|
|
|
1458
1544
|
'content-type': 'application/json',
|
|
1459
1545
|
}
|
|
1460
1546
|
|
|
1547
|
+
payload['project'] = this.client.config.project;
|
|
1548
|
+
|
|
1461
1549
|
|
|
1462
1550
|
return await this.client.call(
|
|
1463
1551
|
'put',
|
|
@@ -1505,6 +1593,7 @@ A user is limited to 10 active sessions at a time by default. [Learn more about
|
|
|
1505
1593
|
}
|
|
1506
1594
|
|
|
1507
1595
|
payload['project'] = this.client.config.project;
|
|
1596
|
+
|
|
1508
1597
|
for (const [key, value] of Object.entries(Service.flatten(payload))) {
|
|
1509
1598
|
uri.searchParams.append(key, value);
|
|
1510
1599
|
}
|
|
@@ -1547,6 +1636,8 @@ A user is limited to 10 active sessions at a time by default. [Learn more about
|
|
|
1547
1636
|
'content-type': 'application/json',
|
|
1548
1637
|
}
|
|
1549
1638
|
|
|
1639
|
+
payload['project'] = this.client.config.project;
|
|
1640
|
+
|
|
1550
1641
|
|
|
1551
1642
|
return await this.client.call(
|
|
1552
1643
|
'put',
|
|
@@ -1586,6 +1677,8 @@ A user is limited to 10 active sessions at a time by default. [Learn more about
|
|
|
1586
1677
|
'content-type': 'application/json',
|
|
1587
1678
|
}
|
|
1588
1679
|
|
|
1680
|
+
payload['project'] = this.client.config.project;
|
|
1681
|
+
|
|
1589
1682
|
|
|
1590
1683
|
return await this.client.call(
|
|
1591
1684
|
'post',
|
|
@@ -1615,6 +1708,8 @@ A user is limited to 10 active sessions at a time by default. [Learn more about
|
|
|
1615
1708
|
'content-type': 'application/json',
|
|
1616
1709
|
}
|
|
1617
1710
|
|
|
1711
|
+
payload['project'] = this.client.config.project;
|
|
1712
|
+
|
|
1618
1713
|
|
|
1619
1714
|
return await this.client.call(
|
|
1620
1715
|
'get',
|
|
@@ -1644,6 +1739,8 @@ A user is limited to 10 active sessions at a time by default. [Learn more about
|
|
|
1644
1739
|
'content-type': 'application/json',
|
|
1645
1740
|
}
|
|
1646
1741
|
|
|
1742
|
+
payload['project'] = this.client.config.project;
|
|
1743
|
+
|
|
1647
1744
|
|
|
1648
1745
|
return await this.client.call(
|
|
1649
1746
|
'patch',
|
|
@@ -1673,6 +1770,8 @@ A user is limited to 10 active sessions at a time by default. [Learn more about
|
|
|
1673
1770
|
'content-type': 'application/json',
|
|
1674
1771
|
}
|
|
1675
1772
|
|
|
1773
|
+
payload['project'] = this.client.config.project;
|
|
1774
|
+
|
|
1676
1775
|
|
|
1677
1776
|
return await this.client.call(
|
|
1678
1777
|
'delete',
|
|
@@ -1698,6 +1797,8 @@ A user is limited to 10 active sessions at a time by default. [Learn more about
|
|
|
1698
1797
|
'content-type': 'application/json',
|
|
1699
1798
|
}
|
|
1700
1799
|
|
|
1800
|
+
payload['project'] = this.client.config.project;
|
|
1801
|
+
|
|
1701
1802
|
|
|
1702
1803
|
return await this.client.call(
|
|
1703
1804
|
'patch',
|
|
@@ -1741,6 +1842,8 @@ A user is limited to 10 active sessions at a time by default. [Learn more about
|
|
|
1741
1842
|
'content-type': 'application/json',
|
|
1742
1843
|
}
|
|
1743
1844
|
|
|
1845
|
+
payload['project'] = this.client.config.project;
|
|
1846
|
+
|
|
1744
1847
|
|
|
1745
1848
|
return await this.client.call(
|
|
1746
1849
|
'post',
|
|
@@ -1777,6 +1880,8 @@ A user is limited to 10 active sessions at a time by default. [Learn more about
|
|
|
1777
1880
|
'content-type': 'application/json',
|
|
1778
1881
|
}
|
|
1779
1882
|
|
|
1883
|
+
payload['project'] = this.client.config.project;
|
|
1884
|
+
|
|
1780
1885
|
|
|
1781
1886
|
return await this.client.call(
|
|
1782
1887
|
'put',
|
|
@@ -1806,6 +1911,8 @@ A user is limited to 10 active sessions at a time by default. [Learn more about
|
|
|
1806
1911
|
'content-type': 'application/json',
|
|
1807
1912
|
}
|
|
1808
1913
|
|
|
1914
|
+
payload['project'] = this.client.config.project;
|
|
1915
|
+
|
|
1809
1916
|
|
|
1810
1917
|
return await this.client.call(
|
|
1811
1918
|
'delete',
|
|
@@ -1851,6 +1958,8 @@ A user is limited to 10 active sessions at a time by default. [Learn more about
|
|
|
1851
1958
|
'content-type': 'application/json',
|
|
1852
1959
|
}
|
|
1853
1960
|
|
|
1961
|
+
payload['project'] = this.client.config.project;
|
|
1962
|
+
|
|
1854
1963
|
|
|
1855
1964
|
return await this.client.call(
|
|
1856
1965
|
'post',
|
|
@@ -1901,6 +2010,8 @@ A user is limited to 10 active sessions at a time by default. [Learn more about
|
|
|
1901
2010
|
'content-type': 'application/json',
|
|
1902
2011
|
}
|
|
1903
2012
|
|
|
2013
|
+
payload['project'] = this.client.config.project;
|
|
2014
|
+
|
|
1904
2015
|
|
|
1905
2016
|
return await this.client.call(
|
|
1906
2017
|
'post',
|
|
@@ -1947,6 +2058,7 @@ A user is limited to 10 active sessions at a time by default. [Learn more about
|
|
|
1947
2058
|
}
|
|
1948
2059
|
|
|
1949
2060
|
payload['project'] = this.client.config.project;
|
|
2061
|
+
|
|
1950
2062
|
for (const [key, value] of Object.entries(Service.flatten(payload))) {
|
|
1951
2063
|
uri.searchParams.append(key, value);
|
|
1952
2064
|
}
|
|
@@ -1991,6 +2103,8 @@ A user is limited to 10 active sessions at a time by default. [Learn more about
|
|
|
1991
2103
|
'content-type': 'application/json',
|
|
1992
2104
|
}
|
|
1993
2105
|
|
|
2106
|
+
payload['project'] = this.client.config.project;
|
|
2107
|
+
|
|
1994
2108
|
|
|
1995
2109
|
return await this.client.call(
|
|
1996
2110
|
'post',
|
|
@@ -2026,6 +2140,8 @@ Please note that in order to avoid a [Redirect Attack](https://github.com/OWASP/
|
|
|
2026
2140
|
'content-type': 'application/json',
|
|
2027
2141
|
}
|
|
2028
2142
|
|
|
2143
|
+
payload['project'] = this.client.config.project;
|
|
2144
|
+
|
|
2029
2145
|
|
|
2030
2146
|
return await this.client.call(
|
|
2031
2147
|
'post',
|
|
@@ -2065,6 +2181,8 @@ Please note that in order to avoid a [Redirect Attack](https://github.com/OWASP/
|
|
|
2065
2181
|
'content-type': 'application/json',
|
|
2066
2182
|
}
|
|
2067
2183
|
|
|
2184
|
+
payload['project'] = this.client.config.project;
|
|
2185
|
+
|
|
2068
2186
|
|
|
2069
2187
|
return await this.client.call(
|
|
2070
2188
|
'put',
|
|
@@ -2090,6 +2208,8 @@ Please note that in order to avoid a [Redirect Attack](https://github.com/OWASP/
|
|
|
2090
2208
|
'content-type': 'application/json',
|
|
2091
2209
|
}
|
|
2092
2210
|
|
|
2211
|
+
payload['project'] = this.client.config.project;
|
|
2212
|
+
|
|
2093
2213
|
|
|
2094
2214
|
return await this.client.call(
|
|
2095
2215
|
'post',
|
|
@@ -2129,6 +2249,8 @@ Please note that in order to avoid a [Redirect Attack](https://github.com/OWASP/
|
|
|
2129
2249
|
'content-type': 'application/json',
|
|
2130
2250
|
}
|
|
2131
2251
|
|
|
2252
|
+
payload['project'] = this.client.config.project;
|
|
2253
|
+
|
|
2132
2254
|
|
|
2133
2255
|
return await this.client.call(
|
|
2134
2256
|
'put',
|