@capgo/cli 7.20.1 → 7.20.3
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/dist/index.js +8 -8
- package/dist/package.json +1 -1
- package/dist/src/api/channels.d.ts +1130 -136
- package/dist/src/api/channels.d.ts.map +1 -1
- package/dist/src/api/versions.d.ts.map +1 -1
- package/dist/src/app/debug.d.ts.map +1 -1
- package/dist/src/app/list.d.ts +2 -0
- package/dist/src/app/list.d.ts.map +1 -1
- package/dist/src/bundle/list.d.ts.map +1 -1
- package/dist/src/bundle/upload.d.ts +1 -1
- package/dist/src/bundle/upload.d.ts.map +1 -1
- package/dist/src/channel/add.d.ts.map +1 -1
- package/dist/src/organisation/add.d.ts +1 -0
- package/dist/src/organisation/add.d.ts.map +1 -1
- package/dist/src/organisation/list.d.ts +5 -0
- package/dist/src/organisation/list.d.ts.map +1 -1
- package/dist/src/sdk.js +3 -3
- package/dist/src/types/supabase.types.d.ts +584 -69
- package/dist/src/types/supabase.types.d.ts.map +1 -1
- package/dist/src/utils.d.ts +568 -79
- package/dist/src/utils.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/src/utils.d.ts
CHANGED
|
@@ -151,6 +151,39 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
151
151
|
referencedColumns: ["id"];
|
|
152
152
|
}];
|
|
153
153
|
};
|
|
154
|
+
app_metrics_cache: {
|
|
155
|
+
Row: {
|
|
156
|
+
cached_at: string;
|
|
157
|
+
end_date: string;
|
|
158
|
+
id: number;
|
|
159
|
+
org_id: string;
|
|
160
|
+
response: import("./types/supabase.types").Json;
|
|
161
|
+
start_date: string;
|
|
162
|
+
};
|
|
163
|
+
Insert: {
|
|
164
|
+
cached_at?: string;
|
|
165
|
+
end_date: string;
|
|
166
|
+
id?: number;
|
|
167
|
+
org_id: string;
|
|
168
|
+
response: import("./types/supabase.types").Json;
|
|
169
|
+
start_date: string;
|
|
170
|
+
};
|
|
171
|
+
Update: {
|
|
172
|
+
cached_at?: string;
|
|
173
|
+
end_date?: string;
|
|
174
|
+
id?: number;
|
|
175
|
+
org_id?: string;
|
|
176
|
+
response?: import("./types/supabase.types").Json;
|
|
177
|
+
start_date?: string;
|
|
178
|
+
};
|
|
179
|
+
Relationships: [{
|
|
180
|
+
foreignKeyName: "app_metrics_cache_org_id_fkey";
|
|
181
|
+
columns: ["org_id"];
|
|
182
|
+
isOneToOne: false;
|
|
183
|
+
referencedRelation: "orgs";
|
|
184
|
+
referencedColumns: ["id"];
|
|
185
|
+
}];
|
|
186
|
+
};
|
|
154
187
|
app_versions: {
|
|
155
188
|
Row: {
|
|
156
189
|
app_id: string;
|
|
@@ -184,15 +217,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
184
217
|
manifest?: Database["public"]["CompositeTypes"]["manifest_entry"][] | null;
|
|
185
218
|
min_update_version?: string | null;
|
|
186
219
|
name: string;
|
|
187
|
-
native_packages
|
|
188
|
-
/**
|
|
189
|
-
* Event name
|
|
190
|
-
* example: "User Joined"
|
|
191
|
-
*/
|
|
192
|
-
? /**
|
|
193
|
-
* Event name
|
|
194
|
-
* example: "User Joined"
|
|
195
|
-
*/: import("./types/supabase.types").Json[] | null;
|
|
220
|
+
native_packages?: import("./types/supabase.types").Json[] | null;
|
|
196
221
|
owner_org: string;
|
|
197
222
|
r2_path?: string | null;
|
|
198
223
|
session_key?: string | null;
|
|
@@ -285,11 +310,13 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
285
310
|
apps: {
|
|
286
311
|
Row: {
|
|
287
312
|
app_id: string;
|
|
313
|
+
channel_device_count: number;
|
|
288
314
|
created_at: string | null;
|
|
289
315
|
default_upload_channel: string;
|
|
290
316
|
icon_url: string;
|
|
291
317
|
id: string | null;
|
|
292
318
|
last_version: string | null;
|
|
319
|
+
manifest_bundle_count: number;
|
|
293
320
|
name: string | null;
|
|
294
321
|
owner_org: string;
|
|
295
322
|
retention: number;
|
|
@@ -299,11 +326,13 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
299
326
|
};
|
|
300
327
|
Insert: {
|
|
301
328
|
app_id: string;
|
|
329
|
+
channel_device_count?: number;
|
|
302
330
|
created_at?: string | null;
|
|
303
331
|
default_upload_channel?: string;
|
|
304
332
|
icon_url: string;
|
|
305
333
|
id?: string | null;
|
|
306
334
|
last_version?: string | null;
|
|
335
|
+
manifest_bundle_count?: number;
|
|
307
336
|
name?: string | null;
|
|
308
337
|
owner_org: string;
|
|
309
338
|
retention?: number;
|
|
@@ -313,11 +342,13 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
313
342
|
};
|
|
314
343
|
Update: {
|
|
315
344
|
app_id?: string;
|
|
345
|
+
channel_device_count?: number;
|
|
316
346
|
created_at?: string | null;
|
|
317
347
|
default_upload_channel?: string;
|
|
318
348
|
icon_url?: string;
|
|
319
349
|
id?: string | null;
|
|
320
350
|
last_version?: string | null;
|
|
351
|
+
manifest_bundle_count?: number;
|
|
321
352
|
name?: string | null;
|
|
322
353
|
owner_org?: string;
|
|
323
354
|
retention?: number;
|
|
@@ -367,10 +398,10 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
367
398
|
Row: {
|
|
368
399
|
created_at: string;
|
|
369
400
|
id: number;
|
|
401
|
+
org_id: string | null;
|
|
370
402
|
price_per_unit: number;
|
|
371
403
|
step_max: number;
|
|
372
404
|
step_min: number;
|
|
373
|
-
stripe_id: string | null;
|
|
374
405
|
type: string;
|
|
375
406
|
unit_factor: number;
|
|
376
407
|
updated_at: string;
|
|
@@ -378,10 +409,10 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
378
409
|
Insert: {
|
|
379
410
|
created_at?: string;
|
|
380
411
|
id?: number;
|
|
412
|
+
org_id?: string | null;
|
|
381
413
|
price_per_unit: number;
|
|
382
414
|
step_max: number;
|
|
383
415
|
step_min: number;
|
|
384
|
-
stripe_id?: string | null;
|
|
385
416
|
type: string;
|
|
386
417
|
unit_factor?: number;
|
|
387
418
|
updated_at?: string;
|
|
@@ -389,15 +420,21 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
389
420
|
Update: {
|
|
390
421
|
created_at?: string;
|
|
391
422
|
id?: number;
|
|
423
|
+
org_id?: string | null;
|
|
392
424
|
price_per_unit?: number;
|
|
393
425
|
step_max?: number;
|
|
394
426
|
step_min?: number;
|
|
395
|
-
stripe_id?: string | null;
|
|
396
427
|
type?: string;
|
|
397
428
|
unit_factor?: number;
|
|
398
429
|
updated_at?: string;
|
|
399
430
|
};
|
|
400
|
-
Relationships: [
|
|
431
|
+
Relationships: [{
|
|
432
|
+
foreignKeyName: "capgo_credits_steps_org_id_fkey";
|
|
433
|
+
columns: ["org_id"];
|
|
434
|
+
isOneToOne: false;
|
|
435
|
+
referencedRelation: "orgs";
|
|
436
|
+
referencedColumns: ["id"];
|
|
437
|
+
}];
|
|
401
438
|
};
|
|
402
439
|
channel_devices: {
|
|
403
440
|
Row: {
|
|
@@ -722,18 +759,21 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
722
759
|
app_id: string;
|
|
723
760
|
device_id: string;
|
|
724
761
|
id: number;
|
|
762
|
+
org_id: string;
|
|
725
763
|
timestamp: string;
|
|
726
764
|
};
|
|
727
765
|
Insert: {
|
|
728
766
|
app_id: string;
|
|
729
767
|
device_id: string;
|
|
730
768
|
id?: number;
|
|
769
|
+
org_id: string;
|
|
731
770
|
timestamp?: string;
|
|
732
771
|
};
|
|
733
772
|
Update: {
|
|
734
773
|
app_id?: string;
|
|
735
774
|
device_id?: string;
|
|
736
775
|
id?: number;
|
|
776
|
+
org_id?: string;
|
|
737
777
|
timestamp?: string;
|
|
738
778
|
};
|
|
739
779
|
Relationships: [];
|
|
@@ -742,6 +782,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
742
782
|
Row: {
|
|
743
783
|
app_id: string;
|
|
744
784
|
custom_id: string;
|
|
785
|
+
default_channel: string | null;
|
|
745
786
|
device_id: string;
|
|
746
787
|
id: number;
|
|
747
788
|
is_emulator: boolean | null;
|
|
@@ -750,12 +791,14 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
750
791
|
platform: Database["public"]["Enums"]["platform_os"];
|
|
751
792
|
plugin_version: string;
|
|
752
793
|
updated_at: string;
|
|
753
|
-
version: number;
|
|
794
|
+
version: number | null;
|
|
754
795
|
version_build: string | null;
|
|
796
|
+
version_name: string;
|
|
755
797
|
};
|
|
756
798
|
Insert: {
|
|
757
799
|
app_id: string;
|
|
758
800
|
custom_id?: string;
|
|
801
|
+
default_channel?: string | null;
|
|
759
802
|
device_id: string;
|
|
760
803
|
id?: never;
|
|
761
804
|
is_emulator?: boolean | null;
|
|
@@ -764,12 +807,14 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
764
807
|
platform: Database["public"]["Enums"]["platform_os"];
|
|
765
808
|
plugin_version?: string;
|
|
766
809
|
updated_at: string;
|
|
767
|
-
version
|
|
810
|
+
version?: number | null;
|
|
768
811
|
version_build?: string | null;
|
|
812
|
+
version_name?: string;
|
|
769
813
|
};
|
|
770
814
|
Update: {
|
|
771
815
|
app_id?: string;
|
|
772
816
|
custom_id?: string;
|
|
817
|
+
default_channel?: string | null;
|
|
773
818
|
device_id?: string;
|
|
774
819
|
id?: never;
|
|
775
820
|
is_emulator?: boolean | null;
|
|
@@ -778,8 +823,9 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
778
823
|
platform?: Database["public"]["Enums"]["platform_os"];
|
|
779
824
|
plugin_version?: string;
|
|
780
825
|
updated_at?: string;
|
|
781
|
-
version?: number;
|
|
826
|
+
version?: number | null;
|
|
782
827
|
version_build?: string | null;
|
|
828
|
+
version_name?: string;
|
|
783
829
|
};
|
|
784
830
|
Relationships: [];
|
|
785
831
|
};
|
|
@@ -787,6 +833,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
787
833
|
Row: {
|
|
788
834
|
apps: number;
|
|
789
835
|
apps_active: number | null;
|
|
836
|
+
bundle_storage_gb: number;
|
|
790
837
|
created_at: string | null;
|
|
791
838
|
date_id: string;
|
|
792
839
|
devices_last_month: number | null;
|
|
@@ -800,6 +847,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
800
847
|
plan_payg: number | null;
|
|
801
848
|
plan_solo: number | null;
|
|
802
849
|
plan_team: number | null;
|
|
850
|
+
registers_today: number;
|
|
803
851
|
stars: number;
|
|
804
852
|
success_rate: number | null;
|
|
805
853
|
trial: number | null;
|
|
@@ -812,6 +860,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
812
860
|
Insert: {
|
|
813
861
|
apps: number;
|
|
814
862
|
apps_active?: number | null;
|
|
863
|
+
bundle_storage_gb?: number;
|
|
815
864
|
created_at?: string | null;
|
|
816
865
|
date_id: string;
|
|
817
866
|
devices_last_month?: number | null;
|
|
@@ -825,6 +874,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
825
874
|
plan_payg?: number | null;
|
|
826
875
|
plan_solo?: number | null;
|
|
827
876
|
plan_team?: number | null;
|
|
877
|
+
registers_today?: number;
|
|
828
878
|
stars: number;
|
|
829
879
|
success_rate?: number | null;
|
|
830
880
|
trial?: number | null;
|
|
@@ -837,6 +887,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
837
887
|
Update: {
|
|
838
888
|
apps?: number;
|
|
839
889
|
apps_active?: number | null;
|
|
890
|
+
bundle_storage_gb?: number;
|
|
840
891
|
created_at?: string | null;
|
|
841
892
|
date_id?: string;
|
|
842
893
|
devices_last_month?: number | null;
|
|
@@ -850,6 +901,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
850
901
|
plan_payg?: number | null;
|
|
851
902
|
plan_solo?: number | null;
|
|
852
903
|
plan_team?: number | null;
|
|
904
|
+
registers_today?: number;
|
|
853
905
|
stars?: number;
|
|
854
906
|
success_rate?: number | null;
|
|
855
907
|
trial?: number | null;
|
|
@@ -996,6 +1048,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
996
1048
|
logo: string | null;
|
|
997
1049
|
management_email: string;
|
|
998
1050
|
name: string;
|
|
1051
|
+
stats_updated_at: string | null;
|
|
999
1052
|
updated_at: string | null;
|
|
1000
1053
|
};
|
|
1001
1054
|
Insert: {
|
|
@@ -1006,6 +1059,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1006
1059
|
logo?: string | null;
|
|
1007
1060
|
management_email: string;
|
|
1008
1061
|
name: string;
|
|
1062
|
+
stats_updated_at?: string | null;
|
|
1009
1063
|
updated_at?: string | null;
|
|
1010
1064
|
};
|
|
1011
1065
|
Update: {
|
|
@@ -1016,6 +1070,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1016
1070
|
logo?: string | null;
|
|
1017
1071
|
management_email?: string;
|
|
1018
1072
|
name?: string;
|
|
1073
|
+
stats_updated_at?: string | null;
|
|
1019
1074
|
updated_at?: string | null;
|
|
1020
1075
|
};
|
|
1021
1076
|
Relationships: [{
|
|
@@ -1108,7 +1163,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1108
1163
|
created_at: string;
|
|
1109
1164
|
device_id: string;
|
|
1110
1165
|
id: number;
|
|
1111
|
-
|
|
1166
|
+
version_name: string;
|
|
1112
1167
|
};
|
|
1113
1168
|
Insert: {
|
|
1114
1169
|
action: Database["public"]["Enums"]["stats_action"];
|
|
@@ -1116,7 +1171,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1116
1171
|
created_at: string;
|
|
1117
1172
|
device_id: string;
|
|
1118
1173
|
id?: never;
|
|
1119
|
-
|
|
1174
|
+
version_name?: string;
|
|
1120
1175
|
};
|
|
1121
1176
|
Update: {
|
|
1122
1177
|
action?: Database["public"]["Enums"]["stats_action"];
|
|
@@ -1124,7 +1179,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1124
1179
|
created_at?: string;
|
|
1125
1180
|
device_id?: string;
|
|
1126
1181
|
id?: never;
|
|
1127
|
-
|
|
1182
|
+
version_name?: string;
|
|
1128
1183
|
};
|
|
1129
1184
|
Relationships: [];
|
|
1130
1185
|
};
|
|
@@ -1161,6 +1216,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1161
1216
|
id: number;
|
|
1162
1217
|
is_good_plan: boolean | null;
|
|
1163
1218
|
mau_exceeded: boolean | null;
|
|
1219
|
+
plan_calculated_at: string | null;
|
|
1164
1220
|
plan_usage: number | null;
|
|
1165
1221
|
price_id: string | null;
|
|
1166
1222
|
product_id: string;
|
|
@@ -1181,6 +1237,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1181
1237
|
id?: number;
|
|
1182
1238
|
is_good_plan?: boolean | null;
|
|
1183
1239
|
mau_exceeded?: boolean | null;
|
|
1240
|
+
plan_calculated_at?: string | null;
|
|
1184
1241
|
plan_usage?: number | null;
|
|
1185
1242
|
price_id?: string | null;
|
|
1186
1243
|
product_id: string;
|
|
@@ -1201,6 +1258,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1201
1258
|
id?: number;
|
|
1202
1259
|
is_good_plan?: boolean | null;
|
|
1203
1260
|
mau_exceeded?: boolean | null;
|
|
1261
|
+
plan_calculated_at?: string | null;
|
|
1204
1262
|
plan_usage?: number | null;
|
|
1205
1263
|
price_id?: string | null;
|
|
1206
1264
|
product_id?: string;
|
|
@@ -1299,6 +1357,198 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1299
1357
|
referencedColumns: ["id"];
|
|
1300
1358
|
}];
|
|
1301
1359
|
};
|
|
1360
|
+
usage_credit_consumptions: {
|
|
1361
|
+
Row: {
|
|
1362
|
+
applied_at: string;
|
|
1363
|
+
credits_used: number;
|
|
1364
|
+
grant_id: string;
|
|
1365
|
+
id: number;
|
|
1366
|
+
metric: Database["public"]["Enums"]["credit_metric_type"];
|
|
1367
|
+
org_id: string;
|
|
1368
|
+
overage_event_id: string | null;
|
|
1369
|
+
};
|
|
1370
|
+
Insert: {
|
|
1371
|
+
applied_at?: string;
|
|
1372
|
+
credits_used: number;
|
|
1373
|
+
grant_id: string;
|
|
1374
|
+
id?: number;
|
|
1375
|
+
metric: Database["public"]["Enums"]["credit_metric_type"];
|
|
1376
|
+
org_id: string;
|
|
1377
|
+
overage_event_id?: string | null;
|
|
1378
|
+
};
|
|
1379
|
+
Update: {
|
|
1380
|
+
applied_at?: string;
|
|
1381
|
+
credits_used?: number;
|
|
1382
|
+
grant_id?: string;
|
|
1383
|
+
id?: number;
|
|
1384
|
+
metric?: Database["public"]["Enums"]["credit_metric_type"];
|
|
1385
|
+
org_id?: string;
|
|
1386
|
+
overage_event_id?: string | null;
|
|
1387
|
+
};
|
|
1388
|
+
Relationships: [{
|
|
1389
|
+
foreignKeyName: "usage_credit_consumptions_grant_id_fkey";
|
|
1390
|
+
columns: ["grant_id"];
|
|
1391
|
+
isOneToOne: false;
|
|
1392
|
+
referencedRelation: "usage_credit_grants";
|
|
1393
|
+
referencedColumns: ["id"];
|
|
1394
|
+
}, {
|
|
1395
|
+
foreignKeyName: "usage_credit_consumptions_org_id_fkey";
|
|
1396
|
+
columns: ["org_id"];
|
|
1397
|
+
isOneToOne: false;
|
|
1398
|
+
referencedRelation: "orgs";
|
|
1399
|
+
referencedColumns: ["id"];
|
|
1400
|
+
}, {
|
|
1401
|
+
foreignKeyName: "usage_credit_consumptions_overage_event_id_fkey";
|
|
1402
|
+
columns: ["overage_event_id"];
|
|
1403
|
+
isOneToOne: false;
|
|
1404
|
+
referencedRelation: "usage_overage_events";
|
|
1405
|
+
referencedColumns: ["id"];
|
|
1406
|
+
}];
|
|
1407
|
+
};
|
|
1408
|
+
usage_credit_grants: {
|
|
1409
|
+
Row: {
|
|
1410
|
+
credits_consumed: number;
|
|
1411
|
+
credits_total: number;
|
|
1412
|
+
expires_at: string;
|
|
1413
|
+
granted_at: string;
|
|
1414
|
+
id: string;
|
|
1415
|
+
notes: string | null;
|
|
1416
|
+
org_id: string;
|
|
1417
|
+
source: string;
|
|
1418
|
+
source_ref: import("./types/supabase.types").Json | null;
|
|
1419
|
+
};
|
|
1420
|
+
Insert: {
|
|
1421
|
+
credits_consumed?: number;
|
|
1422
|
+
credits_total: number;
|
|
1423
|
+
expires_at?: string;
|
|
1424
|
+
granted_at?: string;
|
|
1425
|
+
id?: string;
|
|
1426
|
+
notes?: string | null;
|
|
1427
|
+
org_id: string;
|
|
1428
|
+
source?: string;
|
|
1429
|
+
source_ref?: import("./types/supabase.types").Json | null;
|
|
1430
|
+
};
|
|
1431
|
+
Update: {
|
|
1432
|
+
credits_consumed?: number;
|
|
1433
|
+
credits_total?: number;
|
|
1434
|
+
expires_at?: string;
|
|
1435
|
+
granted_at?: string;
|
|
1436
|
+
id?: string;
|
|
1437
|
+
notes?: string | null;
|
|
1438
|
+
org_id?: string;
|
|
1439
|
+
source?: string;
|
|
1440
|
+
source_ref?: import("./types/supabase.types").Json | null;
|
|
1441
|
+
};
|
|
1442
|
+
Relationships: [{
|
|
1443
|
+
foreignKeyName: "usage_credit_grants_org_id_fkey";
|
|
1444
|
+
columns: ["org_id"];
|
|
1445
|
+
isOneToOne: false;
|
|
1446
|
+
referencedRelation: "orgs";
|
|
1447
|
+
referencedColumns: ["id"];
|
|
1448
|
+
}];
|
|
1449
|
+
};
|
|
1450
|
+
usage_credit_transactions: {
|
|
1451
|
+
Row: {
|
|
1452
|
+
amount: number;
|
|
1453
|
+
balance_after: number | null;
|
|
1454
|
+
description: string | null;
|
|
1455
|
+
grant_id: string | null;
|
|
1456
|
+
id: number;
|
|
1457
|
+
occurred_at: string;
|
|
1458
|
+
org_id: string;
|
|
1459
|
+
source_ref: import("./types/supabase.types").Json | null;
|
|
1460
|
+
transaction_type: Database["public"]["Enums"]["credit_transaction_type"];
|
|
1461
|
+
};
|
|
1462
|
+
Insert: {
|
|
1463
|
+
amount: number;
|
|
1464
|
+
balance_after?: number | null;
|
|
1465
|
+
description?: string | null;
|
|
1466
|
+
grant_id?: string | null;
|
|
1467
|
+
id?: number;
|
|
1468
|
+
occurred_at?: string;
|
|
1469
|
+
org_id: string;
|
|
1470
|
+
source_ref?: import("./types/supabase.types").Json | null;
|
|
1471
|
+
transaction_type: Database["public"]["Enums"]["credit_transaction_type"];
|
|
1472
|
+
};
|
|
1473
|
+
Update: {
|
|
1474
|
+
amount?: number;
|
|
1475
|
+
balance_after?: number | null;
|
|
1476
|
+
description?: string | null;
|
|
1477
|
+
grant_id?: string | null;
|
|
1478
|
+
id?: number;
|
|
1479
|
+
occurred_at?: string;
|
|
1480
|
+
org_id?: string;
|
|
1481
|
+
source_ref?: import("./types/supabase.types").Json | null;
|
|
1482
|
+
transaction_type?: Database["public"]["Enums"]["credit_transaction_type"];
|
|
1483
|
+
};
|
|
1484
|
+
Relationships: [{
|
|
1485
|
+
foreignKeyName: "usage_credit_transactions_grant_id_fkey";
|
|
1486
|
+
columns: ["grant_id"];
|
|
1487
|
+
isOneToOne: false;
|
|
1488
|
+
referencedRelation: "usage_credit_grants";
|
|
1489
|
+
referencedColumns: ["id"];
|
|
1490
|
+
}, {
|
|
1491
|
+
foreignKeyName: "usage_credit_transactions_org_id_fkey";
|
|
1492
|
+
columns: ["org_id"];
|
|
1493
|
+
isOneToOne: false;
|
|
1494
|
+
referencedRelation: "orgs";
|
|
1495
|
+
referencedColumns: ["id"];
|
|
1496
|
+
}];
|
|
1497
|
+
};
|
|
1498
|
+
usage_overage_events: {
|
|
1499
|
+
Row: {
|
|
1500
|
+
billing_cycle_end: string | null;
|
|
1501
|
+
billing_cycle_start: string | null;
|
|
1502
|
+
created_at: string;
|
|
1503
|
+
credit_step_id: number | null;
|
|
1504
|
+
credits_debited: number;
|
|
1505
|
+
credits_estimated: number;
|
|
1506
|
+
details: import("./types/supabase.types").Json | null;
|
|
1507
|
+
id: string;
|
|
1508
|
+
metric: Database["public"]["Enums"]["credit_metric_type"];
|
|
1509
|
+
org_id: string;
|
|
1510
|
+
overage_amount: number;
|
|
1511
|
+
};
|
|
1512
|
+
Insert: {
|
|
1513
|
+
billing_cycle_end?: string | null;
|
|
1514
|
+
billing_cycle_start?: string | null;
|
|
1515
|
+
created_at?: string;
|
|
1516
|
+
credit_step_id?: number | null;
|
|
1517
|
+
credits_debited?: number;
|
|
1518
|
+
credits_estimated: number;
|
|
1519
|
+
details?: import("./types/supabase.types").Json | null;
|
|
1520
|
+
id?: string;
|
|
1521
|
+
metric: Database["public"]["Enums"]["credit_metric_type"];
|
|
1522
|
+
org_id: string;
|
|
1523
|
+
overage_amount: number;
|
|
1524
|
+
};
|
|
1525
|
+
Update: {
|
|
1526
|
+
billing_cycle_end?: string | null;
|
|
1527
|
+
billing_cycle_start?: string | null;
|
|
1528
|
+
created_at?: string;
|
|
1529
|
+
credit_step_id?: number | null;
|
|
1530
|
+
credits_debited?: number;
|
|
1531
|
+
credits_estimated?: number;
|
|
1532
|
+
details?: import("./types/supabase.types").Json | null;
|
|
1533
|
+
id?: string;
|
|
1534
|
+
metric?: Database["public"]["Enums"]["credit_metric_type"];
|
|
1535
|
+
org_id?: string;
|
|
1536
|
+
overage_amount?: number;
|
|
1537
|
+
};
|
|
1538
|
+
Relationships: [{
|
|
1539
|
+
foreignKeyName: "usage_overage_events_credit_step_id_fkey";
|
|
1540
|
+
columns: ["credit_step_id"];
|
|
1541
|
+
isOneToOne: false;
|
|
1542
|
+
referencedRelation: "capgo_credits_steps";
|
|
1543
|
+
referencedColumns: ["id"];
|
|
1544
|
+
}, {
|
|
1545
|
+
foreignKeyName: "usage_overage_events_org_id_fkey";
|
|
1546
|
+
columns: ["org_id"];
|
|
1547
|
+
isOneToOne: false;
|
|
1548
|
+
referencedRelation: "orgs";
|
|
1549
|
+
referencedColumns: ["id"];
|
|
1550
|
+
}];
|
|
1551
|
+
};
|
|
1302
1552
|
users: {
|
|
1303
1553
|
Row: {
|
|
1304
1554
|
ban_time: string | null;
|
|
@@ -1384,7 +1634,23 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1384
1634
|
Relationships: [];
|
|
1385
1635
|
};
|
|
1386
1636
|
};
|
|
1387
|
-
Views: {
|
|
1637
|
+
Views: {
|
|
1638
|
+
usage_credit_balances: {
|
|
1639
|
+
Row: {
|
|
1640
|
+
available_credits: number | null;
|
|
1641
|
+
next_expiration: string | null;
|
|
1642
|
+
org_id: string | null;
|
|
1643
|
+
total_credits: number | null;
|
|
1644
|
+
};
|
|
1645
|
+
Relationships: [{
|
|
1646
|
+
foreignKeyName: "usage_credit_grants_org_id_fkey";
|
|
1647
|
+
columns: ["org_id"];
|
|
1648
|
+
isOneToOne: false;
|
|
1649
|
+
referencedRelation: "orgs";
|
|
1650
|
+
referencedColumns: ["id"];
|
|
1651
|
+
}];
|
|
1652
|
+
};
|
|
1653
|
+
};
|
|
1388
1654
|
Functions: {
|
|
1389
1655
|
accept_invitation_to_org: {
|
|
1390
1656
|
Args: {
|
|
@@ -1392,13 +1658,47 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1392
1658
|
};
|
|
1393
1659
|
Returns: string;
|
|
1394
1660
|
};
|
|
1661
|
+
apply_usage_overage: {
|
|
1662
|
+
Args: {
|
|
1663
|
+
p_billing_cycle_end: string;
|
|
1664
|
+
p_billing_cycle_start: string;
|
|
1665
|
+
p_details?: import("./types/supabase.types").Json;
|
|
1666
|
+
p_metric: Database["public"]["Enums"]["credit_metric_type"];
|
|
1667
|
+
p_org_id: string;
|
|
1668
|
+
p_overage_amount: number;
|
|
1669
|
+
};
|
|
1670
|
+
Returns: {
|
|
1671
|
+
credit_step_id: number;
|
|
1672
|
+
credits_applied: number;
|
|
1673
|
+
credits_remaining: number;
|
|
1674
|
+
credits_required: number;
|
|
1675
|
+
overage_amount: number;
|
|
1676
|
+
overage_covered: number;
|
|
1677
|
+
overage_event_id: string;
|
|
1678
|
+
overage_unpaid: number;
|
|
1679
|
+
}[];
|
|
1680
|
+
};
|
|
1681
|
+
calculate_credit_cost: {
|
|
1682
|
+
Args: {
|
|
1683
|
+
p_metric: Database["public"]["Enums"]["credit_metric_type"];
|
|
1684
|
+
p_overage_amount: number;
|
|
1685
|
+
};
|
|
1686
|
+
Returns: {
|
|
1687
|
+
credit_cost_per_unit: number;
|
|
1688
|
+
credit_step_id: number;
|
|
1689
|
+
credits_required: number;
|
|
1690
|
+
}[];
|
|
1691
|
+
};
|
|
1395
1692
|
check_min_rights: {
|
|
1396
1693
|
Args: {
|
|
1397
1694
|
app_id: string;
|
|
1398
1695
|
channel_id: number;
|
|
1399
1696
|
min_right: Database["public"]["Enums"]["user_min_right"];
|
|
1400
1697
|
org_id: string;
|
|
1401
|
-
}
|
|
1698
|
+
};
|
|
1699
|
+
Returns: boolean;
|
|
1700
|
+
} | {
|
|
1701
|
+
Args: {
|
|
1402
1702
|
app_id: string;
|
|
1403
1703
|
channel_id: number;
|
|
1404
1704
|
min_right: Database["public"]["Enums"]["user_min_right"];
|
|
@@ -1414,22 +1714,22 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1414
1714
|
Returns: number;
|
|
1415
1715
|
};
|
|
1416
1716
|
cleanup_frequent_job_details: {
|
|
1417
|
-
Args:
|
|
1717
|
+
Args: never;
|
|
1418
1718
|
Returns: undefined;
|
|
1419
1719
|
};
|
|
1420
1720
|
cleanup_queue_messages: {
|
|
1421
|
-
Args:
|
|
1721
|
+
Args: never;
|
|
1422
1722
|
Returns: undefined;
|
|
1423
1723
|
};
|
|
1424
1724
|
convert_bytes_to_gb: {
|
|
1425
1725
|
Args: {
|
|
1426
|
-
|
|
1726
|
+
bytes_value: number;
|
|
1427
1727
|
};
|
|
1428
1728
|
Returns: number;
|
|
1429
1729
|
};
|
|
1430
1730
|
convert_bytes_to_mb: {
|
|
1431
1731
|
Args: {
|
|
1432
|
-
|
|
1732
|
+
bytes_value: number;
|
|
1433
1733
|
};
|
|
1434
1734
|
Returns: number;
|
|
1435
1735
|
};
|
|
@@ -1459,22 +1759,22 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1459
1759
|
Returns: number;
|
|
1460
1760
|
};
|
|
1461
1761
|
count_all_need_upgrade: {
|
|
1462
|
-
Args:
|
|
1762
|
+
Args: never;
|
|
1463
1763
|
Returns: number;
|
|
1464
1764
|
};
|
|
1465
1765
|
count_all_onboarded: {
|
|
1466
|
-
Args:
|
|
1766
|
+
Args: never;
|
|
1467
1767
|
Returns: number;
|
|
1468
1768
|
};
|
|
1469
1769
|
count_all_plans_v2: {
|
|
1470
|
-
Args:
|
|
1770
|
+
Args: never;
|
|
1471
1771
|
Returns: {
|
|
1472
1772
|
count: number;
|
|
1473
1773
|
plan_name: string;
|
|
1474
1774
|
}[];
|
|
1475
1775
|
};
|
|
1476
1776
|
delete_accounts_marked_for_deletion: {
|
|
1477
|
-
Args:
|
|
1777
|
+
Args: never;
|
|
1478
1778
|
Returns: {
|
|
1479
1779
|
deleted_count: number;
|
|
1480
1780
|
deleted_user_ids: string[];
|
|
@@ -1487,11 +1787,11 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1487
1787
|
Returns: undefined;
|
|
1488
1788
|
};
|
|
1489
1789
|
delete_old_deleted_apps: {
|
|
1490
|
-
Args:
|
|
1790
|
+
Args: never;
|
|
1491
1791
|
Returns: undefined;
|
|
1492
1792
|
};
|
|
1493
1793
|
delete_user: {
|
|
1494
|
-
Args:
|
|
1794
|
+
Args: never;
|
|
1495
1795
|
Returns: undefined;
|
|
1496
1796
|
};
|
|
1497
1797
|
exist_app_v2: {
|
|
@@ -1502,15 +1802,22 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1502
1802
|
};
|
|
1503
1803
|
exist_app_versions: {
|
|
1504
1804
|
Args: {
|
|
1505
|
-
apikey: string;
|
|
1506
1805
|
appid: string;
|
|
1507
1806
|
name_version: string;
|
|
1508
|
-
}
|
|
1807
|
+
};
|
|
1808
|
+
Returns: boolean;
|
|
1809
|
+
} | {
|
|
1810
|
+
Args: {
|
|
1811
|
+
apikey: string;
|
|
1509
1812
|
appid: string;
|
|
1510
1813
|
name_version: string;
|
|
1511
1814
|
};
|
|
1512
1815
|
Returns: boolean;
|
|
1513
1816
|
};
|
|
1817
|
+
expire_usage_credits: {
|
|
1818
|
+
Args: never;
|
|
1819
|
+
Returns: number;
|
|
1820
|
+
};
|
|
1514
1821
|
find_best_plan_v3: {
|
|
1515
1822
|
Args: {
|
|
1516
1823
|
bandwidth: number;
|
|
@@ -1536,19 +1843,15 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1536
1843
|
Returns: string;
|
|
1537
1844
|
};
|
|
1538
1845
|
get_apikey: {
|
|
1539
|
-
Args:
|
|
1846
|
+
Args: never;
|
|
1540
1847
|
Returns: string;
|
|
1541
1848
|
};
|
|
1542
1849
|
get_apikey_header: {
|
|
1543
|
-
Args:
|
|
1850
|
+
Args: never;
|
|
1544
1851
|
Returns: string;
|
|
1545
1852
|
};
|
|
1546
1853
|
get_app_metrics: {
|
|
1547
1854
|
Args: {
|
|
1548
|
-
end_date: string;
|
|
1549
|
-
org_id: string;
|
|
1550
|
-
start_date: string;
|
|
1551
|
-
} | {
|
|
1552
1855
|
org_id: string;
|
|
1553
1856
|
};
|
|
1554
1857
|
Returns: {
|
|
@@ -1562,6 +1865,23 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1562
1865
|
storage: number;
|
|
1563
1866
|
uninstall: number;
|
|
1564
1867
|
}[];
|
|
1868
|
+
} | {
|
|
1869
|
+
Args: {
|
|
1870
|
+
p_end_date: string;
|
|
1871
|
+
p_org_id: string;
|
|
1872
|
+
p_start_date: string;
|
|
1873
|
+
};
|
|
1874
|
+
Returns: {
|
|
1875
|
+
app_id: string;
|
|
1876
|
+
bandwidth: number;
|
|
1877
|
+
date: string;
|
|
1878
|
+
fail: number;
|
|
1879
|
+
get: number;
|
|
1880
|
+
install: number;
|
|
1881
|
+
mau: number;
|
|
1882
|
+
storage: number;
|
|
1883
|
+
uninstall: number;
|
|
1884
|
+
}[];
|
|
1565
1885
|
};
|
|
1566
1886
|
get_app_versions: {
|
|
1567
1887
|
Args: {
|
|
@@ -1588,7 +1908,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1588
1908
|
Returns: string;
|
|
1589
1909
|
};
|
|
1590
1910
|
get_customer_counts: {
|
|
1591
|
-
Args:
|
|
1911
|
+
Args: never;
|
|
1592
1912
|
Returns: {
|
|
1593
1913
|
monthly: number;
|
|
1594
1914
|
total: number;
|
|
@@ -1604,21 +1924,37 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1604
1924
|
subscription_anchor_start: string;
|
|
1605
1925
|
}[];
|
|
1606
1926
|
};
|
|
1927
|
+
get_d1_sync_url: {
|
|
1928
|
+
Args: never;
|
|
1929
|
+
Returns: string;
|
|
1930
|
+
};
|
|
1607
1931
|
get_d1_webhook_signature: {
|
|
1608
|
-
Args:
|
|
1932
|
+
Args: never;
|
|
1609
1933
|
Returns: string;
|
|
1610
1934
|
};
|
|
1611
1935
|
get_db_url: {
|
|
1612
|
-
Args:
|
|
1936
|
+
Args: never;
|
|
1613
1937
|
Returns: string;
|
|
1614
1938
|
};
|
|
1615
1939
|
get_global_metrics: {
|
|
1940
|
+
Args: {
|
|
1941
|
+
org_id: string;
|
|
1942
|
+
};
|
|
1943
|
+
Returns: {
|
|
1944
|
+
bandwidth: number;
|
|
1945
|
+
date: string;
|
|
1946
|
+
fail: number;
|
|
1947
|
+
get: number;
|
|
1948
|
+
install: number;
|
|
1949
|
+
mau: number;
|
|
1950
|
+
storage: number;
|
|
1951
|
+
uninstall: number;
|
|
1952
|
+
}[];
|
|
1953
|
+
} | {
|
|
1616
1954
|
Args: {
|
|
1617
1955
|
end_date: string;
|
|
1618
1956
|
org_id: string;
|
|
1619
1957
|
start_date: string;
|
|
1620
|
-
} | {
|
|
1621
|
-
org_id: string;
|
|
1622
1958
|
};
|
|
1623
1959
|
Returns: {
|
|
1624
1960
|
bandwidth: number;
|
|
@@ -1632,7 +1968,10 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1632
1968
|
}[];
|
|
1633
1969
|
};
|
|
1634
1970
|
get_identity: {
|
|
1635
|
-
Args:
|
|
1971
|
+
Args: never;
|
|
1972
|
+
Returns: string;
|
|
1973
|
+
} | {
|
|
1974
|
+
Args: {
|
|
1636
1975
|
keymode: Database["public"]["Enums"]["key_mode"][];
|
|
1637
1976
|
};
|
|
1638
1977
|
Returns: string;
|
|
@@ -1669,10 +2008,25 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1669
2008
|
}[];
|
|
1670
2009
|
};
|
|
1671
2010
|
get_metered_usage: {
|
|
1672
|
-
Args:
|
|
2011
|
+
Args: {
|
|
1673
2012
|
orgid: string;
|
|
1674
2013
|
};
|
|
1675
2014
|
Returns: Database["public"]["CompositeTypes"]["stats_table"];
|
|
2015
|
+
SetofOptions: {
|
|
2016
|
+
from: "*";
|
|
2017
|
+
to: "stats_table";
|
|
2018
|
+
isOneToOne: true;
|
|
2019
|
+
isSetofReturn: false;
|
|
2020
|
+
};
|
|
2021
|
+
} | {
|
|
2022
|
+
Args: never;
|
|
2023
|
+
Returns: Database["public"]["CompositeTypes"]["stats_table"];
|
|
2024
|
+
SetofOptions: {
|
|
2025
|
+
from: "*";
|
|
2026
|
+
to: "stats_table";
|
|
2027
|
+
isOneToOne: true;
|
|
2028
|
+
isSetofReturn: false;
|
|
2029
|
+
};
|
|
1676
2030
|
};
|
|
1677
2031
|
get_next_cron_time: {
|
|
1678
2032
|
Args: {
|
|
@@ -1689,11 +2043,15 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1689
2043
|
};
|
|
1690
2044
|
Returns: number;
|
|
1691
2045
|
};
|
|
2046
|
+
get_next_stats_update_date: {
|
|
2047
|
+
Args: {
|
|
2048
|
+
org: string;
|
|
2049
|
+
};
|
|
2050
|
+
Returns: string;
|
|
2051
|
+
};
|
|
1692
2052
|
get_org_members: {
|
|
1693
2053
|
Args: {
|
|
1694
2054
|
guild_id: string;
|
|
1695
|
-
} | {
|
|
1696
|
-
guild_id: string;
|
|
1697
2055
|
user_id: string;
|
|
1698
2056
|
};
|
|
1699
2057
|
Returns: {
|
|
@@ -1704,6 +2062,18 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1704
2062
|
role: Database["public"]["Enums"]["user_min_right"];
|
|
1705
2063
|
uid: string;
|
|
1706
2064
|
}[];
|
|
2065
|
+
} | {
|
|
2066
|
+
Args: {
|
|
2067
|
+
guild_id: string;
|
|
2068
|
+
};
|
|
2069
|
+
Returns: {
|
|
2070
|
+
aid: number;
|
|
2071
|
+
email: string;
|
|
2072
|
+
image_url: string;
|
|
2073
|
+
is_tmp: boolean;
|
|
2074
|
+
role: Database["public"]["Enums"]["user_min_right"];
|
|
2075
|
+
uid: string;
|
|
2076
|
+
}[];
|
|
1707
2077
|
};
|
|
1708
2078
|
get_org_owner_id: {
|
|
1709
2079
|
Args: {
|
|
@@ -1727,33 +2097,69 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1727
2097
|
Returns: import("./types/supabase.types").Json[];
|
|
1728
2098
|
};
|
|
1729
2099
|
get_orgs_v6: {
|
|
1730
|
-
Args:
|
|
2100
|
+
Args: never;
|
|
2101
|
+
Returns: {
|
|
2102
|
+
app_count: number;
|
|
2103
|
+
can_use_more: boolean;
|
|
2104
|
+
created_by: string;
|
|
2105
|
+
credit_available: number;
|
|
2106
|
+
credit_next_expiration: string;
|
|
2107
|
+
credit_total: number;
|
|
2108
|
+
gid: string;
|
|
2109
|
+
is_canceled: boolean;
|
|
2110
|
+
is_yearly: boolean;
|
|
2111
|
+
logo: string;
|
|
2112
|
+
management_email: string;
|
|
2113
|
+
name: string;
|
|
2114
|
+
next_stats_update_at: string;
|
|
2115
|
+
paying: boolean;
|
|
2116
|
+
role: string;
|
|
2117
|
+
stats_updated_at: string;
|
|
2118
|
+
subscription_end: string;
|
|
2119
|
+
subscription_start: string;
|
|
2120
|
+
trial_left: number;
|
|
2121
|
+
}[];
|
|
2122
|
+
} | {
|
|
2123
|
+
Args: {
|
|
1731
2124
|
userid: string;
|
|
1732
2125
|
};
|
|
1733
2126
|
Returns: {
|
|
1734
2127
|
app_count: number;
|
|
1735
2128
|
can_use_more: boolean;
|
|
1736
2129
|
created_by: string;
|
|
2130
|
+
credit_available: number;
|
|
2131
|
+
credit_next_expiration: string;
|
|
2132
|
+
credit_total: number;
|
|
1737
2133
|
gid: string;
|
|
1738
2134
|
is_canceled: boolean;
|
|
1739
2135
|
is_yearly: boolean;
|
|
1740
2136
|
logo: string;
|
|
1741
2137
|
management_email: string;
|
|
1742
2138
|
name: string;
|
|
2139
|
+
next_stats_update_at: string;
|
|
1743
2140
|
paying: boolean;
|
|
1744
2141
|
role: string;
|
|
2142
|
+
stats_updated_at: string;
|
|
1745
2143
|
subscription_end: string;
|
|
1746
2144
|
subscription_start: string;
|
|
1747
2145
|
trial_left: number;
|
|
1748
2146
|
}[];
|
|
1749
2147
|
};
|
|
1750
2148
|
get_plan_usage_percent_detailed: {
|
|
2149
|
+
Args: {
|
|
2150
|
+
orgid: string;
|
|
2151
|
+
};
|
|
2152
|
+
Returns: {
|
|
2153
|
+
bandwidth_percent: number;
|
|
2154
|
+
mau_percent: number;
|
|
2155
|
+
storage_percent: number;
|
|
2156
|
+
total_percent: number;
|
|
2157
|
+
}[];
|
|
2158
|
+
} | {
|
|
1751
2159
|
Args: {
|
|
1752
2160
|
cycle_end: string;
|
|
1753
2161
|
cycle_start: string;
|
|
1754
2162
|
orgid: string;
|
|
1755
|
-
} | {
|
|
1756
|
-
orgid: string;
|
|
1757
2163
|
};
|
|
1758
2164
|
Returns: {
|
|
1759
2165
|
bandwidth_percent: number;
|
|
@@ -1763,7 +2169,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1763
2169
|
}[];
|
|
1764
2170
|
};
|
|
1765
2171
|
get_process_cron_stats_job_info: {
|
|
1766
|
-
Args:
|
|
2172
|
+
Args: never;
|
|
1767
2173
|
Returns: {
|
|
1768
2174
|
last_run: string;
|
|
1769
2175
|
next_run: string;
|
|
@@ -1777,12 +2183,23 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1777
2183
|
Returns: number;
|
|
1778
2184
|
};
|
|
1779
2185
|
get_total_metrics: {
|
|
2186
|
+
Args: {
|
|
2187
|
+
org_id: string;
|
|
2188
|
+
};
|
|
2189
|
+
Returns: {
|
|
2190
|
+
bandwidth: number;
|
|
2191
|
+
fail: number;
|
|
2192
|
+
get: number;
|
|
2193
|
+
install: number;
|
|
2194
|
+
mau: number;
|
|
2195
|
+
storage: number;
|
|
2196
|
+
uninstall: number;
|
|
2197
|
+
}[];
|
|
2198
|
+
} | {
|
|
1780
2199
|
Args: {
|
|
1781
2200
|
end_date: string;
|
|
1782
2201
|
org_id: string;
|
|
1783
2202
|
start_date: string;
|
|
1784
|
-
} | {
|
|
1785
|
-
org_id: string;
|
|
1786
2203
|
};
|
|
1787
2204
|
Returns: {
|
|
1788
2205
|
bandwidth: number;
|
|
@@ -1801,7 +2218,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1801
2218
|
Returns: number;
|
|
1802
2219
|
};
|
|
1803
2220
|
get_update_stats: {
|
|
1804
|
-
Args:
|
|
2221
|
+
Args: never;
|
|
1805
2222
|
Returns: {
|
|
1806
2223
|
app_id: string;
|
|
1807
2224
|
failed: number;
|
|
@@ -1814,11 +2231,14 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1814
2231
|
get_user_id: {
|
|
1815
2232
|
Args: {
|
|
1816
2233
|
apikey: string;
|
|
1817
|
-
} | {
|
|
1818
|
-
apikey: string;
|
|
1819
2234
|
app_id: string;
|
|
1820
2235
|
};
|
|
1821
2236
|
Returns: string;
|
|
2237
|
+
} | {
|
|
2238
|
+
Args: {
|
|
2239
|
+
apikey: string;
|
|
2240
|
+
};
|
|
2241
|
+
Returns: string;
|
|
1822
2242
|
};
|
|
1823
2243
|
get_user_main_org_id: {
|
|
1824
2244
|
Args: {
|
|
@@ -1833,7 +2253,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1833
2253
|
Returns: string;
|
|
1834
2254
|
};
|
|
1835
2255
|
get_versions_with_no_metadata: {
|
|
1836
|
-
Args:
|
|
2256
|
+
Args: never;
|
|
1837
2257
|
Returns: {
|
|
1838
2258
|
app_id: string;
|
|
1839
2259
|
checksum: string | null;
|
|
@@ -1854,6 +2274,12 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1854
2274
|
updated_at: string | null;
|
|
1855
2275
|
user_id: string | null;
|
|
1856
2276
|
}[];
|
|
2277
|
+
SetofOptions: {
|
|
2278
|
+
from: "*";
|
|
2279
|
+
to: "app_versions";
|
|
2280
|
+
isOneToOne: false;
|
|
2281
|
+
isSetofReturn: true;
|
|
2282
|
+
};
|
|
1857
2283
|
};
|
|
1858
2284
|
get_weekly_stats: {
|
|
1859
2285
|
Args: {
|
|
@@ -1904,10 +2330,13 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1904
2330
|
Returns: boolean;
|
|
1905
2331
|
};
|
|
1906
2332
|
is_admin: {
|
|
1907
|
-
Args:
|
|
2333
|
+
Args: {
|
|
1908
2334
|
userid: string;
|
|
1909
2335
|
};
|
|
1910
2336
|
Returns: boolean;
|
|
2337
|
+
} | {
|
|
2338
|
+
Args: never;
|
|
2339
|
+
Returns: boolean;
|
|
1911
2340
|
};
|
|
1912
2341
|
is_allowed_action: {
|
|
1913
2342
|
Args: {
|
|
@@ -1932,10 +2361,13 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1932
2361
|
is_allowed_capgkey: {
|
|
1933
2362
|
Args: {
|
|
1934
2363
|
apikey: string;
|
|
1935
|
-
app_id: string;
|
|
1936
2364
|
keymode: Database["public"]["Enums"]["key_mode"][];
|
|
1937
|
-
}
|
|
2365
|
+
};
|
|
2366
|
+
Returns: boolean;
|
|
2367
|
+
} | {
|
|
2368
|
+
Args: {
|
|
1938
2369
|
apikey: string;
|
|
2370
|
+
app_id: string;
|
|
1939
2371
|
keymode: Database["public"]["Enums"]["key_mode"][];
|
|
1940
2372
|
};
|
|
1941
2373
|
Returns: boolean;
|
|
@@ -1944,13 +2376,19 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1944
2376
|
Args: {
|
|
1945
2377
|
apikey: string;
|
|
1946
2378
|
appid: string;
|
|
1947
|
-
}
|
|
1948
|
-
|
|
1949
|
-
|
|
2379
|
+
};
|
|
2380
|
+
Returns: boolean;
|
|
2381
|
+
} | {
|
|
2382
|
+
Args: {
|
|
1950
2383
|
appid: string;
|
|
1951
2384
|
userid: string;
|
|
1952
2385
|
};
|
|
1953
2386
|
Returns: boolean;
|
|
2387
|
+
} | {
|
|
2388
|
+
Args: {
|
|
2389
|
+
appid: string;
|
|
2390
|
+
};
|
|
2391
|
+
Returns: boolean;
|
|
1954
2392
|
};
|
|
1955
2393
|
is_bandwidth_exceeded_by_org: {
|
|
1956
2394
|
Args: {
|
|
@@ -2066,7 +2504,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2066
2504
|
Returns: string;
|
|
2067
2505
|
};
|
|
2068
2506
|
one_month_ahead: {
|
|
2069
|
-
Args:
|
|
2507
|
+
Args: never;
|
|
2070
2508
|
Returns: string;
|
|
2071
2509
|
};
|
|
2072
2510
|
parse_cron_field: {
|
|
@@ -2091,41 +2529,65 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2091
2529
|
Returns: undefined;
|
|
2092
2530
|
};
|
|
2093
2531
|
process_admin_stats: {
|
|
2094
|
-
Args:
|
|
2532
|
+
Args: never;
|
|
2095
2533
|
Returns: undefined;
|
|
2096
2534
|
};
|
|
2535
|
+
process_channel_device_counts_queue: {
|
|
2536
|
+
Args: {
|
|
2537
|
+
batch_size?: number;
|
|
2538
|
+
};
|
|
2539
|
+
Returns: number;
|
|
2540
|
+
};
|
|
2097
2541
|
process_cron_stats_jobs: {
|
|
2098
|
-
Args:
|
|
2542
|
+
Args: never;
|
|
2543
|
+
Returns: undefined;
|
|
2544
|
+
};
|
|
2545
|
+
process_cron_sync_sub_jobs: {
|
|
2546
|
+
Args: never;
|
|
2099
2547
|
Returns: undefined;
|
|
2100
2548
|
};
|
|
2101
2549
|
process_d1_replication_batch: {
|
|
2102
|
-
Args:
|
|
2550
|
+
Args: never;
|
|
2103
2551
|
Returns: undefined;
|
|
2104
2552
|
};
|
|
2105
2553
|
process_failed_uploads: {
|
|
2106
|
-
Args:
|
|
2554
|
+
Args: never;
|
|
2107
2555
|
Returns: undefined;
|
|
2108
2556
|
};
|
|
2109
2557
|
process_free_trial_expired: {
|
|
2110
|
-
Args:
|
|
2558
|
+
Args: never;
|
|
2111
2559
|
Returns: undefined;
|
|
2112
2560
|
};
|
|
2113
2561
|
process_function_queue: {
|
|
2114
2562
|
Args: {
|
|
2563
|
+
batch_size?: number;
|
|
2115
2564
|
queue_name: string;
|
|
2116
2565
|
};
|
|
2117
2566
|
Returns: number;
|
|
2118
2567
|
};
|
|
2568
|
+
process_manifest_bundle_counts_queue: {
|
|
2569
|
+
Args: {
|
|
2570
|
+
batch_size?: number;
|
|
2571
|
+
};
|
|
2572
|
+
Returns: number;
|
|
2573
|
+
};
|
|
2119
2574
|
process_stats_email_monthly: {
|
|
2120
|
-
Args:
|
|
2575
|
+
Args: never;
|
|
2121
2576
|
Returns: undefined;
|
|
2122
2577
|
};
|
|
2123
2578
|
process_stats_email_weekly: {
|
|
2124
|
-
Args:
|
|
2579
|
+
Args: never;
|
|
2125
2580
|
Returns: undefined;
|
|
2126
2581
|
};
|
|
2127
2582
|
process_subscribed_orgs: {
|
|
2128
|
-
Args:
|
|
2583
|
+
Args: never;
|
|
2584
|
+
Returns: undefined;
|
|
2585
|
+
};
|
|
2586
|
+
queue_cron_stat_org_for_org: {
|
|
2587
|
+
Args: {
|
|
2588
|
+
customer_id: string;
|
|
2589
|
+
org_id: string;
|
|
2590
|
+
};
|
|
2129
2591
|
Returns: undefined;
|
|
2130
2592
|
};
|
|
2131
2593
|
read_bandwidth_usage: {
|
|
@@ -2181,7 +2643,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2181
2643
|
}[];
|
|
2182
2644
|
};
|
|
2183
2645
|
remove_old_jobs: {
|
|
2184
|
-
Args:
|
|
2646
|
+
Args: never;
|
|
2185
2647
|
Returns: undefined;
|
|
2186
2648
|
};
|
|
2187
2649
|
rescind_invitation: {
|
|
@@ -2191,6 +2653,27 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2191
2653
|
};
|
|
2192
2654
|
Returns: string;
|
|
2193
2655
|
};
|
|
2656
|
+
seed_get_app_metrics_caches: {
|
|
2657
|
+
Args: {
|
|
2658
|
+
p_end_date: string;
|
|
2659
|
+
p_org_id: string;
|
|
2660
|
+
p_start_date: string;
|
|
2661
|
+
};
|
|
2662
|
+
Returns: {
|
|
2663
|
+
cached_at: string;
|
|
2664
|
+
end_date: string;
|
|
2665
|
+
id: number;
|
|
2666
|
+
org_id: string;
|
|
2667
|
+
response: import("./types/supabase.types").Json;
|
|
2668
|
+
start_date: string;
|
|
2669
|
+
};
|
|
2670
|
+
SetofOptions: {
|
|
2671
|
+
from: "*";
|
|
2672
|
+
to: "app_metrics_cache";
|
|
2673
|
+
isOneToOne: true;
|
|
2674
|
+
isSetofReturn: false;
|
|
2675
|
+
};
|
|
2676
|
+
};
|
|
2194
2677
|
set_bandwidth_exceeded_by_org: {
|
|
2195
2678
|
Args: {
|
|
2196
2679
|
disabled: boolean;
|
|
@@ -2212,6 +2695,10 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2212
2695
|
};
|
|
2213
2696
|
Returns: undefined;
|
|
2214
2697
|
};
|
|
2698
|
+
total_bundle_storage_bytes: {
|
|
2699
|
+
Args: never;
|
|
2700
|
+
Returns: number;
|
|
2701
|
+
};
|
|
2215
2702
|
transfer_app: {
|
|
2216
2703
|
Args: {
|
|
2217
2704
|
p_app_id: string;
|
|
@@ -2232,7 +2719,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2232
2719
|
Returns: Database["public"]["Enums"]["user_min_right"];
|
|
2233
2720
|
};
|
|
2234
2721
|
update_app_versions_retention: {
|
|
2235
|
-
Args:
|
|
2722
|
+
Args: never;
|
|
2236
2723
|
Returns: undefined;
|
|
2237
2724
|
};
|
|
2238
2725
|
upsert_version_meta: {
|
|
@@ -2244,18 +2731,20 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2244
2731
|
Returns: boolean;
|
|
2245
2732
|
};
|
|
2246
2733
|
verify_mfa: {
|
|
2247
|
-
Args:
|
|
2734
|
+
Args: never;
|
|
2248
2735
|
Returns: boolean;
|
|
2249
2736
|
};
|
|
2250
2737
|
};
|
|
2251
2738
|
Enums: {
|
|
2252
2739
|
action_type: "mau" | "storage" | "bandwidth";
|
|
2253
2740
|
app_mode: "prod" | "dev" | "livereload";
|
|
2741
|
+
credit_metric_type: "mau" | "bandwidth" | "storage";
|
|
2742
|
+
credit_transaction_type: "grant" | "purchase" | "manual_grant" | "deduction" | "expiry" | "refund";
|
|
2254
2743
|
disable_update: "major" | "minor" | "patch" | "version_number" | "none";
|
|
2255
2744
|
key_mode: "read" | "write" | "all" | "upload";
|
|
2256
2745
|
pay_as_you_go_type: "base" | "units";
|
|
2257
2746
|
platform_os: "ios" | "android";
|
|
2258
|
-
stats_action: "delete" | "reset" | "set" | "get" | "set_fail" | "update_fail" | "download_fail" | "windows_path_fail" | "canonical_path_fail" | "directory_path_fail" | "unzip_fail" | "low_mem_fail" | "download_10" | "download_20" | "download_30" | "download_40" | "download_50" | "download_60" | "download_70" | "download_80" | "download_90" | "download_complete" | "decrypt_fail" | "app_moved_to_foreground" | "app_moved_to_background" | "uninstall" | "needPlanUpgrade" | "missingBundle" | "noNew" | "disablePlatformIos" | "disablePlatformAndroid" | "disableAutoUpdateToMajor" | "cannotUpdateViaPrivateChannel" | "disableAutoUpdateToMinor" | "disableAutoUpdateToPatch" | "channelMisconfigured" | "disableAutoUpdateMetadata" | "disableAutoUpdateUnderNative" | "disableDevBuild" | "disableEmulator" | "cannotGetBundle" | "checksum_fail" | "NoChannelOrOverride" | "setChannel" | "getChannel" | "rateLimited" | "disableAutoUpdate" | "InvalidIp";
|
|
2747
|
+
stats_action: "delete" | "reset" | "set" | "get" | "set_fail" | "update_fail" | "download_fail" | "windows_path_fail" | "canonical_path_fail" | "directory_path_fail" | "unzip_fail" | "low_mem_fail" | "download_10" | "download_20" | "download_30" | "download_40" | "download_50" | "download_60" | "download_70" | "download_80" | "download_90" | "download_complete" | "decrypt_fail" | "app_moved_to_foreground" | "app_moved_to_background" | "uninstall" | "needPlanUpgrade" | "missingBundle" | "noNew" | "disablePlatformIos" | "disablePlatformAndroid" | "disableAutoUpdateToMajor" | "cannotUpdateViaPrivateChannel" | "disableAutoUpdateToMinor" | "disableAutoUpdateToPatch" | "channelMisconfigured" | "disableAutoUpdateMetadata" | "disableAutoUpdateUnderNative" | "disableDevBuild" | "disableEmulator" | "cannotGetBundle" | "checksum_fail" | "NoChannelOrOverride" | "setChannel" | "getChannel" | "rateLimited" | "disableAutoUpdate" | "ping" | "InvalidIp" | "blocked_by_server_url" | "download_manifest_start" | "download_manifest_complete" | "download_zip_start" | "download_zip_complete" | "download_manifest_file_fail" | "download_manifest_checksum_fail" | "download_manifest_brotli_fail" | "backend_refusal";
|
|
2259
2748
|
stripe_status: "created" | "succeeded" | "updated" | "failed" | "deleted" | "canceled";
|
|
2260
2749
|
usage_mode: "5min" | "day" | "month" | "cycle" | "last_saved";
|
|
2261
2750
|
user_min_right: "invite_read" | "invite_upload" | "invite_write" | "invite_admin" | "invite_super_admin" | "read" | "upload" | "write" | "admin" | "super_admin";
|
|
@@ -2379,7 +2868,7 @@ export declare function getPMAndCommand(): {
|
|
|
2379
2868
|
installCommand: string;
|
|
2380
2869
|
runner: PackageManagerRunner;
|
|
2381
2870
|
};
|
|
2382
|
-
export declare function
|
|
2871
|
+
export declare function getLocalDependencies(packageJsonPath: string | undefined, nodeModulesString: string | undefined): Promise<{
|
|
2383
2872
|
name: string;
|
|
2384
2873
|
version: string;
|
|
2385
2874
|
native: boolean;
|
|
@@ -2392,7 +2881,7 @@ export declare function convertNativePackages(nativePackages: {
|
|
|
2392
2881
|
name: string;
|
|
2393
2882
|
version: string;
|
|
2394
2883
|
}>;
|
|
2395
|
-
export declare function
|
|
2884
|
+
export declare function getRemoteDependencies(supabase: SupabaseClient<Database>, appId: string, channel: string): Promise<Map<string, {
|
|
2396
2885
|
name: string;
|
|
2397
2886
|
version: string;
|
|
2398
2887
|
}>>;
|