@capgo/cli 8.28.1 → 8.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +37 -4
- package/dist/index.js +701 -690
- package/dist/package.json +7 -3
- package/dist/src/ai/prompt.d.ts +1 -1
- package/dist/src/api/app.d.ts +1 -2
- package/dist/src/api/channels.d.ts +1 -5764
- package/dist/src/api/versions.d.ts +2 -0
- package/dist/src/bundle/list.d.ts +1 -0
- package/dist/src/capacitor-cli.d.ts +1 -0
- package/dist/src/config/index.d.ts +18 -0
- package/dist/src/init/command.d.ts +11 -0
- package/dist/src/init/mcp/engine.d.ts +1 -0
- package/dist/src/init/mcp/live-update-tools.d.ts +8 -1
- package/dist/src/key.d.ts +3 -1
- package/dist/src/mcp/server.d.ts +1 -1
- package/dist/src/organization/add.d.ts +0 -1
- package/dist/src/organization/list.d.ts +1 -1
- package/dist/src/organization/set.d.ts +8 -0
- package/dist/src/schemas/live-update-onboarding.d.ts +9 -0
- package/dist/src/schemas/sdk.d.ts +7 -0
- package/dist/src/sdk.d.ts +2 -0
- package/dist/src/sdk.js +352 -341
- package/dist/src/types/supabase.types.d.ts +45 -322
- package/dist/src/utils.d.ts +57 -336
- package/package.json +7 -3
- package/skills/release-management/SKILL.md +1 -0
- package/skills/usage/SKILL.md +2 -1
package/dist/src/utils.d.ts
CHANGED
|
@@ -130,6 +130,18 @@ export declare function getConfig(silent?: boolean): Promise<{
|
|
|
130
130
|
};
|
|
131
131
|
path: string;
|
|
132
132
|
}>;
|
|
133
|
+
/** Loads the source config that a subsequent mutation will write. */
|
|
134
|
+
export declare function getConfigForWrite(silent?: boolean): Promise<{
|
|
135
|
+
config: {
|
|
136
|
+
[x: string]: unknown;
|
|
137
|
+
appId: string;
|
|
138
|
+
appName: string;
|
|
139
|
+
webDir: string;
|
|
140
|
+
plugins?: Record<string, any> | undefined;
|
|
141
|
+
android?: Record<string, any> | undefined;
|
|
142
|
+
};
|
|
143
|
+
path: string;
|
|
144
|
+
}>;
|
|
133
145
|
export declare function updateConfigbyKey(key: string, newConfig: any): Promise<ExtConfigPairs>;
|
|
134
146
|
export declare function updateConfigUpdater(newConfig: any): Promise<ExtConfigPairs>;
|
|
135
147
|
export declare function getLocalConfig(silent?: boolean): Promise<CapgoConfig>;
|
|
@@ -152,6 +164,7 @@ interface CapgoFilesConfig {
|
|
|
152
164
|
alertUploadSize: number;
|
|
153
165
|
}
|
|
154
166
|
export declare function getRemoteFileConfig(): Promise<CapgoFilesConfig>;
|
|
167
|
+
export declare function normalizeSupabaseHost(host: string): string;
|
|
155
168
|
export declare function createSupabaseClient(apikey: string, supaHost?: string, supaKey?: string, silent?: boolean, instrument?: boolean, signal?: AbortSignal): Promise<SupabaseClient<Database, "public", "public", {
|
|
156
169
|
Tables: {
|
|
157
170
|
apikey_global_permissions: {
|
|
@@ -275,6 +288,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
275
288
|
cli_version: string | null;
|
|
276
289
|
comment: string | null;
|
|
277
290
|
created_at: string | null;
|
|
291
|
+
created_by_apikey_rbac_id: string | null;
|
|
278
292
|
deleted: boolean;
|
|
279
293
|
deleted_at: string | null;
|
|
280
294
|
external_url: string | null;
|
|
@@ -299,6 +313,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
299
313
|
cli_version?: string | null;
|
|
300
314
|
comment?: string | null;
|
|
301
315
|
created_at?: string | null;
|
|
316
|
+
created_by_apikey_rbac_id?: string | null;
|
|
302
317
|
deleted?: boolean;
|
|
303
318
|
deleted_at?: string | null;
|
|
304
319
|
external_url?: string | null;
|
|
@@ -323,6 +338,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
323
338
|
cli_version?: string | null;
|
|
324
339
|
comment?: string | null;
|
|
325
340
|
created_at?: string | null;
|
|
341
|
+
created_by_apikey_rbac_id?: string | null;
|
|
326
342
|
deleted?: boolean;
|
|
327
343
|
deleted_at?: string | null;
|
|
328
344
|
external_url?: string | null;
|
|
@@ -1662,6 +1678,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1662
1678
|
updates: number;
|
|
1663
1679
|
updates_external: number | null;
|
|
1664
1680
|
updates_last_month: number | null;
|
|
1681
|
+
upgrade_rate_12m: number;
|
|
1665
1682
|
upgraded_orgs: number;
|
|
1666
1683
|
trial_extended_orgs: number;
|
|
1667
1684
|
trial_extended_subscribed_orgs: number;
|
|
@@ -1753,6 +1770,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1753
1770
|
updates: number;
|
|
1754
1771
|
updates_external?: number | null;
|
|
1755
1772
|
updates_last_month?: number | null;
|
|
1773
|
+
upgrade_rate_12m?: number;
|
|
1756
1774
|
upgraded_orgs?: number;
|
|
1757
1775
|
trial_extended_orgs?: number;
|
|
1758
1776
|
trial_extended_subscribed_orgs?: number;
|
|
@@ -1844,6 +1862,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1844
1862
|
updates?: number;
|
|
1845
1863
|
updates_external?: number | null;
|
|
1846
1864
|
updates_last_month?: number | null;
|
|
1865
|
+
upgrade_rate_12m?: number;
|
|
1847
1866
|
upgraded_orgs?: number;
|
|
1848
1867
|
trial_extended_orgs?: number;
|
|
1849
1868
|
trial_extended_subscribed_orgs?: number;
|
|
@@ -2089,33 +2108,33 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2089
2108
|
channel_id: number | null;
|
|
2090
2109
|
created_at: string | null;
|
|
2091
2110
|
id: number;
|
|
2111
|
+
is_invite: boolean;
|
|
2092
2112
|
org_id: string;
|
|
2093
2113
|
rbac_role_name: string | null;
|
|
2094
2114
|
updated_at: string | null;
|
|
2095
2115
|
user_id: string;
|
|
2096
|
-
user_right: Database["public"]["Enums"]["user_min_right"] | null;
|
|
2097
2116
|
};
|
|
2098
2117
|
Insert: {
|
|
2099
2118
|
app_id?: string | null;
|
|
2100
2119
|
channel_id?: number | null;
|
|
2101
2120
|
created_at?: string | null;
|
|
2102
2121
|
id?: number;
|
|
2122
|
+
is_invite?: boolean;
|
|
2103
2123
|
org_id: string;
|
|
2104
2124
|
rbac_role_name?: string | null;
|
|
2105
2125
|
updated_at?: string | null;
|
|
2106
2126
|
user_id: string;
|
|
2107
|
-
user_right?: Database["public"]["Enums"]["user_min_right"] | null;
|
|
2108
2127
|
};
|
|
2109
2128
|
Update: {
|
|
2110
2129
|
app_id?: string | null;
|
|
2111
2130
|
channel_id?: number | null;
|
|
2112
2131
|
created_at?: string | null;
|
|
2113
2132
|
id?: number;
|
|
2133
|
+
is_invite?: boolean;
|
|
2114
2134
|
org_id?: string;
|
|
2115
2135
|
rbac_role_name?: string | null;
|
|
2116
2136
|
updated_at?: string | null;
|
|
2117
2137
|
user_id?: string;
|
|
2118
|
-
user_right?: Database["public"]["Enums"]["user_min_right"] | null;
|
|
2119
2138
|
};
|
|
2120
2139
|
Relationships: [{
|
|
2121
2140
|
foreignKeyName: "org_users_app_id_fkey";
|
|
@@ -2166,7 +2185,6 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2166
2185
|
stats_refresh_requested_at: string | null;
|
|
2167
2186
|
stats_updated_at: string | null;
|
|
2168
2187
|
updated_at: string | null;
|
|
2169
|
-
use_new_rbac: boolean;
|
|
2170
2188
|
website: string | null;
|
|
2171
2189
|
};
|
|
2172
2190
|
Insert: {
|
|
@@ -2191,7 +2209,6 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2191
2209
|
stats_refresh_requested_at?: string | null;
|
|
2192
2210
|
stats_updated_at?: string | null;
|
|
2193
2211
|
updated_at?: string | null;
|
|
2194
|
-
use_new_rbac?: boolean;
|
|
2195
2212
|
website?: string | null;
|
|
2196
2213
|
};
|
|
2197
2214
|
Update: {
|
|
@@ -2216,7 +2233,6 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2216
2233
|
stats_refresh_requested_at?: string | null;
|
|
2217
2234
|
stats_updated_at?: string | null;
|
|
2218
2235
|
updated_at?: string | null;
|
|
2219
|
-
use_new_rbac?: boolean;
|
|
2220
2236
|
website?: string | null;
|
|
2221
2237
|
};
|
|
2222
2238
|
Relationships: [{
|
|
@@ -2358,6 +2374,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2358
2374
|
id: string;
|
|
2359
2375
|
is_direct: boolean;
|
|
2360
2376
|
org_id: string | null;
|
|
2377
|
+
parent_binding_id: string | null;
|
|
2361
2378
|
principal_id: string;
|
|
2362
2379
|
principal_type: string;
|
|
2363
2380
|
reason: string | null;
|
|
@@ -2374,6 +2391,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2374
2391
|
id?: string;
|
|
2375
2392
|
is_direct?: boolean;
|
|
2376
2393
|
org_id?: string | null;
|
|
2394
|
+
parent_binding_id?: string | null;
|
|
2377
2395
|
principal_id: string;
|
|
2378
2396
|
principal_type: string;
|
|
2379
2397
|
reason?: string | null;
|
|
@@ -2390,6 +2408,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2390
2408
|
id?: string;
|
|
2391
2409
|
is_direct?: boolean;
|
|
2392
2410
|
org_id?: string | null;
|
|
2411
|
+
parent_binding_id?: string | null;
|
|
2393
2412
|
principal_id?: string;
|
|
2394
2413
|
principal_type?: string;
|
|
2395
2414
|
reason?: string | null;
|
|
@@ -2420,6 +2439,12 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2420
2439
|
isOneToOne: false;
|
|
2421
2440
|
referencedRelation: "orgs";
|
|
2422
2441
|
referencedColumns: ["id"];
|
|
2442
|
+
}, {
|
|
2443
|
+
foreignKeyName: "role_bindings_parent_binding_id_fkey";
|
|
2444
|
+
columns: ["parent_binding_id"];
|
|
2445
|
+
isOneToOne: false;
|
|
2446
|
+
referencedRelation: "role_bindings";
|
|
2447
|
+
referencedColumns: ["id"];
|
|
2423
2448
|
}, {
|
|
2424
2449
|
foreignKeyName: "role_bindings_role_id_fkey";
|
|
2425
2450
|
columns: ["role_id"];
|
|
@@ -2763,8 +2788,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2763
2788
|
invite_magic_string: string;
|
|
2764
2789
|
last_name: string;
|
|
2765
2790
|
org_id: string;
|
|
2766
|
-
rbac_role_name: string
|
|
2767
|
-
role: Database["public"]["Enums"]["user_min_right"];
|
|
2791
|
+
rbac_role_name: string;
|
|
2768
2792
|
updated_at: string;
|
|
2769
2793
|
};
|
|
2770
2794
|
Insert: {
|
|
@@ -2777,8 +2801,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2777
2801
|
invite_magic_string?: string;
|
|
2778
2802
|
last_name: string;
|
|
2779
2803
|
org_id: string;
|
|
2780
|
-
rbac_role_name?: string
|
|
2781
|
-
role: Database["public"]["Enums"]["user_min_right"];
|
|
2804
|
+
rbac_role_name?: string;
|
|
2782
2805
|
updated_at?: string;
|
|
2783
2806
|
};
|
|
2784
2807
|
Update: {
|
|
@@ -2791,8 +2814,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2791
2814
|
invite_magic_string?: string;
|
|
2792
2815
|
last_name?: string;
|
|
2793
2816
|
org_id?: string;
|
|
2794
|
-
rbac_role_name?: string
|
|
2795
|
-
role?: Database["public"]["Enums"]["user_min_right"];
|
|
2817
|
+
rbac_role_name?: string;
|
|
2796
2818
|
updated_at?: string;
|
|
2797
2819
|
};
|
|
2798
2820
|
Relationships: [{
|
|
@@ -3088,10 +3110,12 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
3088
3110
|
country: string | null;
|
|
3089
3111
|
created_at: string | null;
|
|
3090
3112
|
created_via_invite: boolean;
|
|
3113
|
+
discord_username: string | null;
|
|
3091
3114
|
email: string;
|
|
3092
3115
|
email_preferences: import("./types/supabase.types").Json;
|
|
3093
3116
|
enable_notifications: boolean;
|
|
3094
3117
|
first_name: string | null;
|
|
3118
|
+
github_username: string | null;
|
|
3095
3119
|
id: string;
|
|
3096
3120
|
image_url: string | null;
|
|
3097
3121
|
last_name: string | null;
|
|
@@ -3103,10 +3127,12 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
3103
3127
|
country?: string | null;
|
|
3104
3128
|
created_at?: string | null;
|
|
3105
3129
|
created_via_invite?: boolean;
|
|
3130
|
+
discord_username?: string | null;
|
|
3106
3131
|
email: string;
|
|
3107
3132
|
email_preferences?: import("./types/supabase.types").Json;
|
|
3108
3133
|
enable_notifications?: boolean;
|
|
3109
3134
|
first_name?: string | null;
|
|
3135
|
+
github_username?: string | null;
|
|
3110
3136
|
id: string;
|
|
3111
3137
|
image_url?: string | null;
|
|
3112
3138
|
last_name?: string | null;
|
|
@@ -3118,10 +3144,12 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
3118
3144
|
country?: string | null;
|
|
3119
3145
|
created_at?: string | null;
|
|
3120
3146
|
created_via_invite?: boolean;
|
|
3147
|
+
discord_username?: string | null;
|
|
3121
3148
|
email?: string;
|
|
3122
3149
|
email_preferences?: import("./types/supabase.types").Json;
|
|
3123
3150
|
enable_notifications?: boolean;
|
|
3124
3151
|
first_name?: string | null;
|
|
3152
|
+
github_username?: string | null;
|
|
3125
3153
|
id?: string;
|
|
3126
3154
|
image_url?: string | null;
|
|
3127
3155
|
last_name?: string | null;
|
|
@@ -3369,23 +3397,6 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
3369
3397
|
};
|
|
3370
3398
|
Returns: boolean;
|
|
3371
3399
|
};
|
|
3372
|
-
apikey_permission_for_keymode: {
|
|
3373
|
-
Args: {
|
|
3374
|
-
keymode: Database["public"]["Enums"]["key_mode"][];
|
|
3375
|
-
scope_type: string;
|
|
3376
|
-
};
|
|
3377
|
-
Returns: string;
|
|
3378
|
-
};
|
|
3379
|
-
app_versions_has_app_permission: {
|
|
3380
|
-
Args: {
|
|
3381
|
-
p_apikey: string;
|
|
3382
|
-
p_app_id: string;
|
|
3383
|
-
p_min_right: Database["public"]["Enums"]["user_min_right"];
|
|
3384
|
-
p_owner_org: string;
|
|
3385
|
-
p_user_id: string;
|
|
3386
|
-
};
|
|
3387
|
-
Returns: boolean;
|
|
3388
|
-
};
|
|
3389
3400
|
app_versions_readable_app_ids: {
|
|
3390
3401
|
Args: never;
|
|
3391
3402
|
Returns: string[];
|
|
@@ -3468,44 +3479,6 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
3468
3479
|
provider_id: string;
|
|
3469
3480
|
}[];
|
|
3470
3481
|
};
|
|
3471
|
-
check_min_rights: {
|
|
3472
|
-
Args: {
|
|
3473
|
-
app_id: string;
|
|
3474
|
-
channel_id: number;
|
|
3475
|
-
min_right: Database["public"]["Enums"]["user_min_right"];
|
|
3476
|
-
org_id: string;
|
|
3477
|
-
};
|
|
3478
|
-
Returns: boolean;
|
|
3479
|
-
} | {
|
|
3480
|
-
Args: {
|
|
3481
|
-
app_id: string;
|
|
3482
|
-
channel_id: number;
|
|
3483
|
-
min_right: Database["public"]["Enums"]["user_min_right"];
|
|
3484
|
-
org_id: string;
|
|
3485
|
-
user_id: string;
|
|
3486
|
-
};
|
|
3487
|
-
Returns: boolean;
|
|
3488
|
-
};
|
|
3489
|
-
check_min_rights_legacy: {
|
|
3490
|
-
Args: {
|
|
3491
|
-
app_id: string;
|
|
3492
|
-
channel_id: number;
|
|
3493
|
-
min_right: Database["public"]["Enums"]["user_min_right"];
|
|
3494
|
-
org_id: string;
|
|
3495
|
-
user_id: string;
|
|
3496
|
-
};
|
|
3497
|
-
Returns: boolean;
|
|
3498
|
-
};
|
|
3499
|
-
check_min_rights_legacy_no_password_policy: {
|
|
3500
|
-
Args: {
|
|
3501
|
-
app_id: string;
|
|
3502
|
-
channel_id: number;
|
|
3503
|
-
min_right: Database["public"]["Enums"]["user_min_right"];
|
|
3504
|
-
org_id: string;
|
|
3505
|
-
user_id: string;
|
|
3506
|
-
};
|
|
3507
|
-
Returns: boolean;
|
|
3508
|
-
};
|
|
3509
3482
|
check_org_encrypted_bundle_enforcement: {
|
|
3510
3483
|
Args: {
|
|
3511
3484
|
org_id: string;
|
|
@@ -3723,6 +3696,12 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
3723
3696
|
Args: never;
|
|
3724
3697
|
Returns: undefined;
|
|
3725
3698
|
};
|
|
3699
|
+
exist_app: {
|
|
3700
|
+
Args: {
|
|
3701
|
+
appid: string;
|
|
3702
|
+
};
|
|
3703
|
+
Returns: boolean;
|
|
3704
|
+
};
|
|
3726
3705
|
exist_app_v2: {
|
|
3727
3706
|
Args: {
|
|
3728
3707
|
appid: string;
|
|
@@ -3992,47 +3971,6 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
3992
3971
|
uninstall: number;
|
|
3993
3972
|
}[];
|
|
3994
3973
|
};
|
|
3995
|
-
get_identity: {
|
|
3996
|
-
Args: never;
|
|
3997
|
-
Returns: string;
|
|
3998
|
-
} | {
|
|
3999
|
-
Args: {
|
|
4000
|
-
keymode: Database["public"]["Enums"]["key_mode"][];
|
|
4001
|
-
};
|
|
4002
|
-
Returns: string;
|
|
4003
|
-
};
|
|
4004
|
-
get_identity_apikey_only: {
|
|
4005
|
-
Args: {
|
|
4006
|
-
keymode: Database["public"]["Enums"]["key_mode"][];
|
|
4007
|
-
};
|
|
4008
|
-
Returns: string;
|
|
4009
|
-
};
|
|
4010
|
-
get_identity_for_apikey_creation: {
|
|
4011
|
-
Args: never;
|
|
4012
|
-
Returns: string;
|
|
4013
|
-
};
|
|
4014
|
-
get_identity_org_allowed: {
|
|
4015
|
-
Args: {
|
|
4016
|
-
keymode: Database["public"]["Enums"]["key_mode"][];
|
|
4017
|
-
org_id: string;
|
|
4018
|
-
};
|
|
4019
|
-
Returns: string;
|
|
4020
|
-
};
|
|
4021
|
-
get_identity_org_allowed_apikey_only: {
|
|
4022
|
-
Args: {
|
|
4023
|
-
keymode: Database["public"]["Enums"]["key_mode"][];
|
|
4024
|
-
org_id: string;
|
|
4025
|
-
};
|
|
4026
|
-
Returns: string;
|
|
4027
|
-
};
|
|
4028
|
-
get_identity_org_appid: {
|
|
4029
|
-
Args: {
|
|
4030
|
-
app_id: string;
|
|
4031
|
-
keymode: Database["public"]["Enums"]["key_mode"][];
|
|
4032
|
-
org_id: string;
|
|
4033
|
-
};
|
|
4034
|
-
Returns: string;
|
|
4035
|
-
};
|
|
4036
3974
|
get_invite_by_magic_lookup: {
|
|
4037
3975
|
Args: {
|
|
4038
3976
|
lookup: string;
|
|
@@ -4142,7 +4080,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
4142
4080
|
email: string;
|
|
4143
4081
|
image_url: string;
|
|
4144
4082
|
is_tmp: boolean;
|
|
4145
|
-
role:
|
|
4083
|
+
role: string;
|
|
4146
4084
|
uid: string;
|
|
4147
4085
|
}[];
|
|
4148
4086
|
} | {
|
|
@@ -4155,7 +4093,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
4155
4093
|
email: string;
|
|
4156
4094
|
image_url: string;
|
|
4157
4095
|
is_tmp: boolean;
|
|
4158
|
-
role:
|
|
4096
|
+
role: string;
|
|
4159
4097
|
uid: string;
|
|
4160
4098
|
}[];
|
|
4161
4099
|
};
|
|
@@ -4176,13 +4114,6 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
4176
4114
|
user_id: string;
|
|
4177
4115
|
}[];
|
|
4178
4116
|
};
|
|
4179
|
-
get_org_owner_id: {
|
|
4180
|
-
Args: {
|
|
4181
|
-
apikey: string;
|
|
4182
|
-
app_id: string;
|
|
4183
|
-
};
|
|
4184
|
-
Returns: string;
|
|
4185
|
-
};
|
|
4186
4117
|
get_org_perm_for_apikey: {
|
|
4187
4118
|
Args: {
|
|
4188
4119
|
apikey: string;
|
|
@@ -4247,28 +4178,6 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
4247
4178
|
subscription_end: string;
|
|
4248
4179
|
subscription_start: string;
|
|
4249
4180
|
trial_left: number;
|
|
4250
|
-
use_new_rbac: boolean;
|
|
4251
|
-
}[];
|
|
4252
|
-
} | {
|
|
4253
|
-
Args: {
|
|
4254
|
-
userid: string;
|
|
4255
|
-
};
|
|
4256
|
-
Returns: {
|
|
4257
|
-
app_count: number;
|
|
4258
|
-
can_use_more: boolean;
|
|
4259
|
-
created_by: string;
|
|
4260
|
-
gid: string;
|
|
4261
|
-
is_canceled: boolean;
|
|
4262
|
-
is_yearly: boolean;
|
|
4263
|
-
logo: string;
|
|
4264
|
-
management_email: string;
|
|
4265
|
-
name: string;
|
|
4266
|
-
paying: boolean;
|
|
4267
|
-
role: string;
|
|
4268
|
-
subscription_end: string;
|
|
4269
|
-
subscription_start: string;
|
|
4270
|
-
trial_left: number;
|
|
4271
|
-
use_new_rbac: boolean;
|
|
4272
4181
|
}[];
|
|
4273
4182
|
};
|
|
4274
4183
|
get_orgs_v7: {
|
|
@@ -4287,6 +4196,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
4287
4196
|
enforcing_2fa: boolean;
|
|
4288
4197
|
gid: string;
|
|
4289
4198
|
is_canceled: boolean;
|
|
4199
|
+
is_invite: boolean;
|
|
4290
4200
|
is_yearly: boolean;
|
|
4291
4201
|
logo: string;
|
|
4292
4202
|
management_email: string;
|
|
@@ -4304,7 +4214,6 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
4304
4214
|
subscription_end: string;
|
|
4305
4215
|
subscription_start: string;
|
|
4306
4216
|
trial_left: number;
|
|
4307
|
-
use_new_rbac: boolean;
|
|
4308
4217
|
website: string;
|
|
4309
4218
|
}[];
|
|
4310
4219
|
} | {
|
|
@@ -4325,6 +4234,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
4325
4234
|
enforcing_2fa: boolean;
|
|
4326
4235
|
gid: string;
|
|
4327
4236
|
is_canceled: boolean;
|
|
4237
|
+
is_invite: boolean;
|
|
4328
4238
|
is_yearly: boolean;
|
|
4329
4239
|
logo: string;
|
|
4330
4240
|
management_email: string;
|
|
@@ -4342,7 +4252,6 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
4342
4252
|
subscription_end: string;
|
|
4343
4253
|
subscription_start: string;
|
|
4344
4254
|
trial_left: number;
|
|
4345
|
-
use_new_rbac: boolean;
|
|
4346
4255
|
website: string;
|
|
4347
4256
|
}[];
|
|
4348
4257
|
};
|
|
@@ -4567,30 +4476,6 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
4567
4476
|
};
|
|
4568
4477
|
Returns: boolean;
|
|
4569
4478
|
};
|
|
4570
|
-
has_app_right: {
|
|
4571
|
-
Args: {
|
|
4572
|
-
appid: string;
|
|
4573
|
-
right: Database["public"]["Enums"]["user_min_right"];
|
|
4574
|
-
};
|
|
4575
|
-
Returns: boolean;
|
|
4576
|
-
};
|
|
4577
|
-
has_app_right_apikey: {
|
|
4578
|
-
Args: {
|
|
4579
|
-
apikey: string;
|
|
4580
|
-
appid: string;
|
|
4581
|
-
right: Database["public"]["Enums"]["user_min_right"];
|
|
4582
|
-
userid: string;
|
|
4583
|
-
};
|
|
4584
|
-
Returns: boolean;
|
|
4585
|
-
};
|
|
4586
|
-
has_app_right_userid: {
|
|
4587
|
-
Args: {
|
|
4588
|
-
appid: string;
|
|
4589
|
-
right: Database["public"]["Enums"]["user_min_right"];
|
|
4590
|
-
userid: string;
|
|
4591
|
-
};
|
|
4592
|
-
Returns: boolean;
|
|
4593
|
-
};
|
|
4594
4479
|
has_seeded_demo_data: {
|
|
4595
4480
|
Args: {
|
|
4596
4481
|
p_app_id: string;
|
|
@@ -4605,14 +4490,6 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
4605
4490
|
Args: never;
|
|
4606
4491
|
Returns: string[];
|
|
4607
4492
|
};
|
|
4608
|
-
invite_user_to_org: {
|
|
4609
|
-
Args: {
|
|
4610
|
-
email: string;
|
|
4611
|
-
invite_type: Database["public"]["Enums"]["user_min_right"];
|
|
4612
|
-
org_id: string;
|
|
4613
|
-
};
|
|
4614
|
-
Returns: string;
|
|
4615
|
-
};
|
|
4616
4493
|
invite_user_to_org_rbac: {
|
|
4617
4494
|
Args: {
|
|
4618
4495
|
email: string;
|
|
@@ -4657,14 +4534,14 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
4657
4534
|
is_allowed_capgkey: {
|
|
4658
4535
|
Args: {
|
|
4659
4536
|
apikey: string;
|
|
4660
|
-
keymode:
|
|
4537
|
+
keymode: string[];
|
|
4661
4538
|
};
|
|
4662
4539
|
Returns: boolean;
|
|
4663
4540
|
} | {
|
|
4664
4541
|
Args: {
|
|
4665
4542
|
apikey: string;
|
|
4666
|
-
|
|
4667
|
-
keymode:
|
|
4543
|
+
appid: string;
|
|
4544
|
+
keymode: string[];
|
|
4668
4545
|
};
|
|
4669
4546
|
Returns: boolean;
|
|
4670
4547
|
};
|
|
@@ -4854,14 +4731,6 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
4854
4731
|
};
|
|
4855
4732
|
Returns: undefined;
|
|
4856
4733
|
};
|
|
4857
|
-
modify_permissions_tmp: {
|
|
4858
|
-
Args: {
|
|
4859
|
-
email: string;
|
|
4860
|
-
new_role: Database["public"]["Enums"]["user_min_right"];
|
|
4861
|
-
org_id: string;
|
|
4862
|
-
};
|
|
4863
|
-
Returns: string;
|
|
4864
|
-
};
|
|
4865
4734
|
one_month_ahead: {
|
|
4866
4735
|
Args: never;
|
|
4867
4736
|
Returns: string;
|
|
@@ -5025,13 +4894,6 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
5025
4894
|
};
|
|
5026
4895
|
Returns: boolean;
|
|
5027
4896
|
};
|
|
5028
|
-
rbac_enable_for_org: {
|
|
5029
|
-
Args: {
|
|
5030
|
-
p_granted_by?: string;
|
|
5031
|
-
p_org_id: string;
|
|
5032
|
-
};
|
|
5033
|
-
Returns: import("./types/supabase.types").Json;
|
|
5034
|
-
};
|
|
5035
4897
|
rbac_has_permission: {
|
|
5036
4898
|
Args: {
|
|
5037
4899
|
p_app_id: string;
|
|
@@ -5043,45 +4905,6 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
5043
4905
|
};
|
|
5044
4906
|
Returns: boolean;
|
|
5045
4907
|
};
|
|
5046
|
-
rbac_is_enabled_for_org: {
|
|
5047
|
-
Args: {
|
|
5048
|
-
p_org_id: string;
|
|
5049
|
-
};
|
|
5050
|
-
Returns: boolean;
|
|
5051
|
-
};
|
|
5052
|
-
rbac_legacy_right_for_org_role: {
|
|
5053
|
-
Args: {
|
|
5054
|
-
p_role_name: string;
|
|
5055
|
-
};
|
|
5056
|
-
Returns: Database["public"]["Enums"]["user_min_right"];
|
|
5057
|
-
};
|
|
5058
|
-
rbac_legacy_right_for_permission: {
|
|
5059
|
-
Args: {
|
|
5060
|
-
p_permission_key: string;
|
|
5061
|
-
};
|
|
5062
|
-
Returns: Database["public"]["Enums"]["user_min_right"];
|
|
5063
|
-
};
|
|
5064
|
-
rbac_legacy_role_hint: {
|
|
5065
|
-
Args: {
|
|
5066
|
-
p_app_id: string;
|
|
5067
|
-
p_channel_id: number;
|
|
5068
|
-
p_user_right: Database["public"]["Enums"]["user_min_right"];
|
|
5069
|
-
};
|
|
5070
|
-
Returns: string;
|
|
5071
|
-
};
|
|
5072
|
-
rbac_migrate_org_users_to_bindings: {
|
|
5073
|
-
Args: {
|
|
5074
|
-
p_granted_by?: string;
|
|
5075
|
-
p_org_id: string;
|
|
5076
|
-
};
|
|
5077
|
-
Returns: import("./types/supabase.types").Json;
|
|
5078
|
-
};
|
|
5079
|
-
rbac_org_role_for_legacy_right: {
|
|
5080
|
-
Args: {
|
|
5081
|
-
legacy_right: Database["public"]["Enums"]["user_min_right"];
|
|
5082
|
-
};
|
|
5083
|
-
Returns: string;
|
|
5084
|
-
};
|
|
5085
4908
|
rbac_perm_app_build_native: {
|
|
5086
4909
|
Args: never;
|
|
5087
4910
|
Returns: string;
|
|
@@ -5270,29 +5093,6 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
5270
5093
|
Args: never;
|
|
5271
5094
|
Returns: string;
|
|
5272
5095
|
};
|
|
5273
|
-
rbac_permission_for_legacy: {
|
|
5274
|
-
Args: {
|
|
5275
|
-
p_min_right: Database["public"]["Enums"]["user_min_right"];
|
|
5276
|
-
p_scope: string;
|
|
5277
|
-
};
|
|
5278
|
-
Returns: string;
|
|
5279
|
-
};
|
|
5280
|
-
rbac_preview_migration: {
|
|
5281
|
-
Args: {
|
|
5282
|
-
p_org_id: string;
|
|
5283
|
-
};
|
|
5284
|
-
Returns: {
|
|
5285
|
-
app_id: string;
|
|
5286
|
-
channel_id: number;
|
|
5287
|
-
org_user_id: number;
|
|
5288
|
-
scope_type: string;
|
|
5289
|
-
skip_reason: string;
|
|
5290
|
-
suggested_role: string;
|
|
5291
|
-
user_id: string;
|
|
5292
|
-
user_right: string;
|
|
5293
|
-
will_migrate: boolean;
|
|
5294
|
-
}[];
|
|
5295
|
-
};
|
|
5296
5096
|
rbac_principal_apikey: {
|
|
5297
5097
|
Args: never;
|
|
5298
5098
|
Returns: string;
|
|
@@ -5305,42 +5105,6 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
5305
5105
|
Args: never;
|
|
5306
5106
|
Returns: string;
|
|
5307
5107
|
};
|
|
5308
|
-
rbac_right_admin: {
|
|
5309
|
-
Args: never;
|
|
5310
|
-
Returns: Database["public"]["Enums"]["user_min_right"];
|
|
5311
|
-
};
|
|
5312
|
-
rbac_right_invite_admin: {
|
|
5313
|
-
Args: never;
|
|
5314
|
-
Returns: Database["public"]["Enums"]["user_min_right"];
|
|
5315
|
-
};
|
|
5316
|
-
rbac_right_invite_super_admin: {
|
|
5317
|
-
Args: never;
|
|
5318
|
-
Returns: Database["public"]["Enums"]["user_min_right"];
|
|
5319
|
-
};
|
|
5320
|
-
rbac_right_invite_upload: {
|
|
5321
|
-
Args: never;
|
|
5322
|
-
Returns: Database["public"]["Enums"]["user_min_right"];
|
|
5323
|
-
};
|
|
5324
|
-
rbac_right_invite_write: {
|
|
5325
|
-
Args: never;
|
|
5326
|
-
Returns: Database["public"]["Enums"]["user_min_right"];
|
|
5327
|
-
};
|
|
5328
|
-
rbac_right_read: {
|
|
5329
|
-
Args: never;
|
|
5330
|
-
Returns: Database["public"]["Enums"]["user_min_right"];
|
|
5331
|
-
};
|
|
5332
|
-
rbac_right_super_admin: {
|
|
5333
|
-
Args: never;
|
|
5334
|
-
Returns: Database["public"]["Enums"]["user_min_right"];
|
|
5335
|
-
};
|
|
5336
|
-
rbac_right_upload: {
|
|
5337
|
-
Args: never;
|
|
5338
|
-
Returns: Database["public"]["Enums"]["user_min_right"];
|
|
5339
|
-
};
|
|
5340
|
-
rbac_right_write: {
|
|
5341
|
-
Args: never;
|
|
5342
|
-
Returns: Database["public"]["Enums"]["user_min_right"];
|
|
5343
|
-
};
|
|
5344
5108
|
rbac_role_apikey_org_reader: {
|
|
5345
5109
|
Args: never;
|
|
5346
5110
|
Returns: string;
|
|
@@ -5397,12 +5161,6 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
5397
5161
|
Args: never;
|
|
5398
5162
|
Returns: string;
|
|
5399
5163
|
};
|
|
5400
|
-
rbac_rollback_org: {
|
|
5401
|
-
Args: {
|
|
5402
|
-
p_org_id: string;
|
|
5403
|
-
};
|
|
5404
|
-
Returns: import("./types/supabase.types").Json;
|
|
5405
|
-
};
|
|
5406
5164
|
rbac_scope_app: {
|
|
5407
5165
|
Args: never;
|
|
5408
5166
|
Returns: string;
|
|
@@ -5593,6 +5351,10 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
5593
5351
|
Args: never;
|
|
5594
5352
|
Returns: undefined;
|
|
5595
5353
|
};
|
|
5354
|
+
request_actor_user_id: {
|
|
5355
|
+
Args: never;
|
|
5356
|
+
Returns: string;
|
|
5357
|
+
};
|
|
5596
5358
|
request_app_chart_refresh: {
|
|
5597
5359
|
Args: {
|
|
5598
5360
|
app_id: string;
|
|
@@ -5628,10 +5390,6 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
5628
5390
|
skipped_count: number;
|
|
5629
5391
|
}[];
|
|
5630
5392
|
};
|
|
5631
|
-
request_read_key_modes: {
|
|
5632
|
-
Args: never;
|
|
5633
|
-
Returns: Database["public"]["Enums"]["key_mode"][];
|
|
5634
|
-
};
|
|
5635
5393
|
rescind_invitation: {
|
|
5636
5394
|
Args: {
|
|
5637
5395
|
email: string;
|
|
@@ -5649,13 +5407,6 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
5649
5407
|
Args: never;
|
|
5650
5408
|
Returns: undefined;
|
|
5651
5409
|
};
|
|
5652
|
-
resync_org_user_role_bindings: {
|
|
5653
|
-
Args: {
|
|
5654
|
-
p_org_id: string;
|
|
5655
|
-
p_user_id: string;
|
|
5656
|
-
};
|
|
5657
|
-
Returns: undefined;
|
|
5658
|
-
};
|
|
5659
5410
|
seed_get_app_metrics_caches: {
|
|
5660
5411
|
Args: {
|
|
5661
5412
|
p_end_date: string;
|
|
@@ -5755,18 +5506,6 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
5755
5506
|
};
|
|
5756
5507
|
Returns: undefined;
|
|
5757
5508
|
};
|
|
5758
|
-
transform_role_to_invite: {
|
|
5759
|
-
Args: {
|
|
5760
|
-
role_input: Database["public"]["Enums"]["user_min_right"];
|
|
5761
|
-
};
|
|
5762
|
-
Returns: Database["public"]["Enums"]["user_min_right"];
|
|
5763
|
-
};
|
|
5764
|
-
transform_role_to_non_invite: {
|
|
5765
|
-
Args: {
|
|
5766
|
-
role_input: Database["public"]["Enums"]["user_min_right"];
|
|
5767
|
-
};
|
|
5768
|
-
Returns: Database["public"]["Enums"]["user_min_right"];
|
|
5769
|
-
};
|
|
5770
5509
|
update_app_versions_retention: {
|
|
5771
5510
|
Args: never;
|
|
5772
5511
|
Returns: undefined;
|
|
@@ -5846,11 +5585,9 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
5846
5585
|
credit_transaction_type: "grant" | "purchase" | "manual_grant" | "deduction" | "expiry" | "refund";
|
|
5847
5586
|
cron_task_type: "function" | "queue" | "function_queue";
|
|
5848
5587
|
disable_update: "major" | "minor" | "patch" | "version_number" | "none";
|
|
5849
|
-
key_mode: "read" | "write" | "all" | "upload";
|
|
5850
5588
|
platform_os: "ios" | "android" | "electron";
|
|
5851
5589
|
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" | "keyMismatch" | "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" | "download_0" | "disableProdBuild" | "disableDevice" | "disablePlatformElectron" | "customIdBlocked" | "app_crash" | "app_crash_native" | "app_anr" | "app_killed_low_memory" | "app_killed_excessive_resource_usage" | "app_initialization_failure" | "app_memory_warning" | "webview_javascript_error" | "webview_unhandled_rejection" | "webview_resource_error" | "webview_security_policy_violation" | "webview_unclean_restart" | "webview_render_process_gone" | "webview_content_process_terminated" | "os_version_changed" | "native_app_version_changed";
|
|
5852
5590
|
stripe_status: "created" | "succeeded" | "updated" | "failed" | "deleted" | "canceled";
|
|
5853
|
-
user_min_right: "invite_read" | "invite_upload" | "invite_write" | "invite_admin" | "invite_super_admin" | "read" | "upload" | "write" | "admin" | "super_admin";
|
|
5854
5591
|
user_role: "read" | "upload" | "write" | "admin";
|
|
5855
5592
|
version_action: "get" | "fail" | "install" | "uninstall";
|
|
5856
5593
|
};
|
|
@@ -5893,22 +5630,6 @@ export declare function isPayingOrg(supabase: SupabaseClient<Database>, orgId: s
|
|
|
5893
5630
|
export declare function isTrialOrg(supabase: SupabaseClient<Database>, orgId: string): Promise<number>;
|
|
5894
5631
|
export declare function isAllowedActionOrg(supabase: SupabaseClient<Database>, orgId: string): Promise<boolean>;
|
|
5895
5632
|
export declare function isAllowedActionAppIdApiKey(supabase: SupabaseClient<Database>, appId: string, apikey: string): Promise<boolean>;
|
|
5896
|
-
export declare enum OrganizationPerm {
|
|
5897
|
-
none = 0,
|
|
5898
|
-
read = 1,
|
|
5899
|
-
upload = 2,
|
|
5900
|
-
write = 3,
|
|
5901
|
-
admin = 4,
|
|
5902
|
-
super_admin = 5
|
|
5903
|
-
}
|
|
5904
|
-
export declare const hasOrganizationPerm: (perm: OrganizationPerm, required: OrganizationPerm) => boolean;
|
|
5905
|
-
export declare function isAllowedAppOrg(supabase: SupabaseClient<Database>, apikey: string, appId: string): Promise<{
|
|
5906
|
-
okay: true;
|
|
5907
|
-
data: OrganizationPerm;
|
|
5908
|
-
} | {
|
|
5909
|
-
okay: false;
|
|
5910
|
-
error: 'INVALID_APIKEY' | 'NO_APP' | 'NO_ORG';
|
|
5911
|
-
}>;
|
|
5912
5633
|
export declare function checkRemoteCliMessages(supabase: SupabaseClient<Database>, orgId: string, cliVersion: string): Promise<void>;
|
|
5913
5634
|
export declare function checkPlanValid(supabase: SupabaseClient<Database>, orgId: string, apikey: string, appId?: string, warning?: boolean): Promise<void>;
|
|
5914
5635
|
export declare function checkPlanValidUpload(supabase: SupabaseClient<Database>, orgId: string, apikey: string, appId?: string, warning?: boolean): Promise<void>;
|