@capgo/cli 8.28.1 → 8.28.2
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 +42 -322
- package/dist/src/utils.d.ts +54 -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;
|
|
@@ -2089,33 +2105,33 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2089
2105
|
channel_id: number | null;
|
|
2090
2106
|
created_at: string | null;
|
|
2091
2107
|
id: number;
|
|
2108
|
+
is_invite: boolean;
|
|
2092
2109
|
org_id: string;
|
|
2093
2110
|
rbac_role_name: string | null;
|
|
2094
2111
|
updated_at: string | null;
|
|
2095
2112
|
user_id: string;
|
|
2096
|
-
user_right: Database["public"]["Enums"]["user_min_right"] | null;
|
|
2097
2113
|
};
|
|
2098
2114
|
Insert: {
|
|
2099
2115
|
app_id?: string | null;
|
|
2100
2116
|
channel_id?: number | null;
|
|
2101
2117
|
created_at?: string | null;
|
|
2102
2118
|
id?: number;
|
|
2119
|
+
is_invite?: boolean;
|
|
2103
2120
|
org_id: string;
|
|
2104
2121
|
rbac_role_name?: string | null;
|
|
2105
2122
|
updated_at?: string | null;
|
|
2106
2123
|
user_id: string;
|
|
2107
|
-
user_right?: Database["public"]["Enums"]["user_min_right"] | null;
|
|
2108
2124
|
};
|
|
2109
2125
|
Update: {
|
|
2110
2126
|
app_id?: string | null;
|
|
2111
2127
|
channel_id?: number | null;
|
|
2112
2128
|
created_at?: string | null;
|
|
2113
2129
|
id?: number;
|
|
2130
|
+
is_invite?: boolean;
|
|
2114
2131
|
org_id?: string;
|
|
2115
2132
|
rbac_role_name?: string | null;
|
|
2116
2133
|
updated_at?: string | null;
|
|
2117
2134
|
user_id?: string;
|
|
2118
|
-
user_right?: Database["public"]["Enums"]["user_min_right"] | null;
|
|
2119
2135
|
};
|
|
2120
2136
|
Relationships: [{
|
|
2121
2137
|
foreignKeyName: "org_users_app_id_fkey";
|
|
@@ -2166,7 +2182,6 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2166
2182
|
stats_refresh_requested_at: string | null;
|
|
2167
2183
|
stats_updated_at: string | null;
|
|
2168
2184
|
updated_at: string | null;
|
|
2169
|
-
use_new_rbac: boolean;
|
|
2170
2185
|
website: string | null;
|
|
2171
2186
|
};
|
|
2172
2187
|
Insert: {
|
|
@@ -2191,7 +2206,6 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2191
2206
|
stats_refresh_requested_at?: string | null;
|
|
2192
2207
|
stats_updated_at?: string | null;
|
|
2193
2208
|
updated_at?: string | null;
|
|
2194
|
-
use_new_rbac?: boolean;
|
|
2195
2209
|
website?: string | null;
|
|
2196
2210
|
};
|
|
2197
2211
|
Update: {
|
|
@@ -2216,7 +2230,6 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2216
2230
|
stats_refresh_requested_at?: string | null;
|
|
2217
2231
|
stats_updated_at?: string | null;
|
|
2218
2232
|
updated_at?: string | null;
|
|
2219
|
-
use_new_rbac?: boolean;
|
|
2220
2233
|
website?: string | null;
|
|
2221
2234
|
};
|
|
2222
2235
|
Relationships: [{
|
|
@@ -2358,6 +2371,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2358
2371
|
id: string;
|
|
2359
2372
|
is_direct: boolean;
|
|
2360
2373
|
org_id: string | null;
|
|
2374
|
+
parent_binding_id: string | null;
|
|
2361
2375
|
principal_id: string;
|
|
2362
2376
|
principal_type: string;
|
|
2363
2377
|
reason: string | null;
|
|
@@ -2374,6 +2388,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2374
2388
|
id?: string;
|
|
2375
2389
|
is_direct?: boolean;
|
|
2376
2390
|
org_id?: string | null;
|
|
2391
|
+
parent_binding_id?: string | null;
|
|
2377
2392
|
principal_id: string;
|
|
2378
2393
|
principal_type: string;
|
|
2379
2394
|
reason?: string | null;
|
|
@@ -2390,6 +2405,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2390
2405
|
id?: string;
|
|
2391
2406
|
is_direct?: boolean;
|
|
2392
2407
|
org_id?: string | null;
|
|
2408
|
+
parent_binding_id?: string | null;
|
|
2393
2409
|
principal_id?: string;
|
|
2394
2410
|
principal_type?: string;
|
|
2395
2411
|
reason?: string | null;
|
|
@@ -2420,6 +2436,12 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2420
2436
|
isOneToOne: false;
|
|
2421
2437
|
referencedRelation: "orgs";
|
|
2422
2438
|
referencedColumns: ["id"];
|
|
2439
|
+
}, {
|
|
2440
|
+
foreignKeyName: "role_bindings_parent_binding_id_fkey";
|
|
2441
|
+
columns: ["parent_binding_id"];
|
|
2442
|
+
isOneToOne: false;
|
|
2443
|
+
referencedRelation: "role_bindings";
|
|
2444
|
+
referencedColumns: ["id"];
|
|
2423
2445
|
}, {
|
|
2424
2446
|
foreignKeyName: "role_bindings_role_id_fkey";
|
|
2425
2447
|
columns: ["role_id"];
|
|
@@ -2763,8 +2785,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2763
2785
|
invite_magic_string: string;
|
|
2764
2786
|
last_name: string;
|
|
2765
2787
|
org_id: string;
|
|
2766
|
-
rbac_role_name: string
|
|
2767
|
-
role: Database["public"]["Enums"]["user_min_right"];
|
|
2788
|
+
rbac_role_name: string;
|
|
2768
2789
|
updated_at: string;
|
|
2769
2790
|
};
|
|
2770
2791
|
Insert: {
|
|
@@ -2777,8 +2798,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2777
2798
|
invite_magic_string?: string;
|
|
2778
2799
|
last_name: string;
|
|
2779
2800
|
org_id: string;
|
|
2780
|
-
rbac_role_name?: string
|
|
2781
|
-
role: Database["public"]["Enums"]["user_min_right"];
|
|
2801
|
+
rbac_role_name?: string;
|
|
2782
2802
|
updated_at?: string;
|
|
2783
2803
|
};
|
|
2784
2804
|
Update: {
|
|
@@ -2791,8 +2811,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2791
2811
|
invite_magic_string?: string;
|
|
2792
2812
|
last_name?: string;
|
|
2793
2813
|
org_id?: string;
|
|
2794
|
-
rbac_role_name?: string
|
|
2795
|
-
role?: Database["public"]["Enums"]["user_min_right"];
|
|
2814
|
+
rbac_role_name?: string;
|
|
2796
2815
|
updated_at?: string;
|
|
2797
2816
|
};
|
|
2798
2817
|
Relationships: [{
|
|
@@ -3088,10 +3107,12 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
3088
3107
|
country: string | null;
|
|
3089
3108
|
created_at: string | null;
|
|
3090
3109
|
created_via_invite: boolean;
|
|
3110
|
+
discord_username: string | null;
|
|
3091
3111
|
email: string;
|
|
3092
3112
|
email_preferences: import("./types/supabase.types").Json;
|
|
3093
3113
|
enable_notifications: boolean;
|
|
3094
3114
|
first_name: string | null;
|
|
3115
|
+
github_username: string | null;
|
|
3095
3116
|
id: string;
|
|
3096
3117
|
image_url: string | null;
|
|
3097
3118
|
last_name: string | null;
|
|
@@ -3103,10 +3124,12 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
3103
3124
|
country?: string | null;
|
|
3104
3125
|
created_at?: string | null;
|
|
3105
3126
|
created_via_invite?: boolean;
|
|
3127
|
+
discord_username?: string | null;
|
|
3106
3128
|
email: string;
|
|
3107
3129
|
email_preferences?: import("./types/supabase.types").Json;
|
|
3108
3130
|
enable_notifications?: boolean;
|
|
3109
3131
|
first_name?: string | null;
|
|
3132
|
+
github_username?: string | null;
|
|
3110
3133
|
id: string;
|
|
3111
3134
|
image_url?: string | null;
|
|
3112
3135
|
last_name?: string | null;
|
|
@@ -3118,10 +3141,12 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
3118
3141
|
country?: string | null;
|
|
3119
3142
|
created_at?: string | null;
|
|
3120
3143
|
created_via_invite?: boolean;
|
|
3144
|
+
discord_username?: string | null;
|
|
3121
3145
|
email?: string;
|
|
3122
3146
|
email_preferences?: import("./types/supabase.types").Json;
|
|
3123
3147
|
enable_notifications?: boolean;
|
|
3124
3148
|
first_name?: string | null;
|
|
3149
|
+
github_username?: string | null;
|
|
3125
3150
|
id?: string;
|
|
3126
3151
|
image_url?: string | null;
|
|
3127
3152
|
last_name?: string | null;
|
|
@@ -3369,23 +3394,6 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
3369
3394
|
};
|
|
3370
3395
|
Returns: boolean;
|
|
3371
3396
|
};
|
|
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
3397
|
app_versions_readable_app_ids: {
|
|
3390
3398
|
Args: never;
|
|
3391
3399
|
Returns: string[];
|
|
@@ -3468,44 +3476,6 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
3468
3476
|
provider_id: string;
|
|
3469
3477
|
}[];
|
|
3470
3478
|
};
|
|
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
3479
|
check_org_encrypted_bundle_enforcement: {
|
|
3510
3480
|
Args: {
|
|
3511
3481
|
org_id: string;
|
|
@@ -3723,6 +3693,12 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
3723
3693
|
Args: never;
|
|
3724
3694
|
Returns: undefined;
|
|
3725
3695
|
};
|
|
3696
|
+
exist_app: {
|
|
3697
|
+
Args: {
|
|
3698
|
+
appid: string;
|
|
3699
|
+
};
|
|
3700
|
+
Returns: boolean;
|
|
3701
|
+
};
|
|
3726
3702
|
exist_app_v2: {
|
|
3727
3703
|
Args: {
|
|
3728
3704
|
appid: string;
|
|
@@ -3992,47 +3968,6 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
3992
3968
|
uninstall: number;
|
|
3993
3969
|
}[];
|
|
3994
3970
|
};
|
|
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
3971
|
get_invite_by_magic_lookup: {
|
|
4037
3972
|
Args: {
|
|
4038
3973
|
lookup: string;
|
|
@@ -4142,7 +4077,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
4142
4077
|
email: string;
|
|
4143
4078
|
image_url: string;
|
|
4144
4079
|
is_tmp: boolean;
|
|
4145
|
-
role:
|
|
4080
|
+
role: string;
|
|
4146
4081
|
uid: string;
|
|
4147
4082
|
}[];
|
|
4148
4083
|
} | {
|
|
@@ -4155,7 +4090,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
4155
4090
|
email: string;
|
|
4156
4091
|
image_url: string;
|
|
4157
4092
|
is_tmp: boolean;
|
|
4158
|
-
role:
|
|
4093
|
+
role: string;
|
|
4159
4094
|
uid: string;
|
|
4160
4095
|
}[];
|
|
4161
4096
|
};
|
|
@@ -4176,13 +4111,6 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
4176
4111
|
user_id: string;
|
|
4177
4112
|
}[];
|
|
4178
4113
|
};
|
|
4179
|
-
get_org_owner_id: {
|
|
4180
|
-
Args: {
|
|
4181
|
-
apikey: string;
|
|
4182
|
-
app_id: string;
|
|
4183
|
-
};
|
|
4184
|
-
Returns: string;
|
|
4185
|
-
};
|
|
4186
4114
|
get_org_perm_for_apikey: {
|
|
4187
4115
|
Args: {
|
|
4188
4116
|
apikey: string;
|
|
@@ -4247,28 +4175,6 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
4247
4175
|
subscription_end: string;
|
|
4248
4176
|
subscription_start: string;
|
|
4249
4177
|
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
4178
|
}[];
|
|
4273
4179
|
};
|
|
4274
4180
|
get_orgs_v7: {
|
|
@@ -4287,6 +4193,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
4287
4193
|
enforcing_2fa: boolean;
|
|
4288
4194
|
gid: string;
|
|
4289
4195
|
is_canceled: boolean;
|
|
4196
|
+
is_invite: boolean;
|
|
4290
4197
|
is_yearly: boolean;
|
|
4291
4198
|
logo: string;
|
|
4292
4199
|
management_email: string;
|
|
@@ -4304,7 +4211,6 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
4304
4211
|
subscription_end: string;
|
|
4305
4212
|
subscription_start: string;
|
|
4306
4213
|
trial_left: number;
|
|
4307
|
-
use_new_rbac: boolean;
|
|
4308
4214
|
website: string;
|
|
4309
4215
|
}[];
|
|
4310
4216
|
} | {
|
|
@@ -4325,6 +4231,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
4325
4231
|
enforcing_2fa: boolean;
|
|
4326
4232
|
gid: string;
|
|
4327
4233
|
is_canceled: boolean;
|
|
4234
|
+
is_invite: boolean;
|
|
4328
4235
|
is_yearly: boolean;
|
|
4329
4236
|
logo: string;
|
|
4330
4237
|
management_email: string;
|
|
@@ -4342,7 +4249,6 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
4342
4249
|
subscription_end: string;
|
|
4343
4250
|
subscription_start: string;
|
|
4344
4251
|
trial_left: number;
|
|
4345
|
-
use_new_rbac: boolean;
|
|
4346
4252
|
website: string;
|
|
4347
4253
|
}[];
|
|
4348
4254
|
};
|
|
@@ -4567,30 +4473,6 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
4567
4473
|
};
|
|
4568
4474
|
Returns: boolean;
|
|
4569
4475
|
};
|
|
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
4476
|
has_seeded_demo_data: {
|
|
4595
4477
|
Args: {
|
|
4596
4478
|
p_app_id: string;
|
|
@@ -4605,14 +4487,6 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
4605
4487
|
Args: never;
|
|
4606
4488
|
Returns: string[];
|
|
4607
4489
|
};
|
|
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
4490
|
invite_user_to_org_rbac: {
|
|
4617
4491
|
Args: {
|
|
4618
4492
|
email: string;
|
|
@@ -4657,14 +4531,14 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
4657
4531
|
is_allowed_capgkey: {
|
|
4658
4532
|
Args: {
|
|
4659
4533
|
apikey: string;
|
|
4660
|
-
keymode:
|
|
4534
|
+
keymode: string[];
|
|
4661
4535
|
};
|
|
4662
4536
|
Returns: boolean;
|
|
4663
4537
|
} | {
|
|
4664
4538
|
Args: {
|
|
4665
4539
|
apikey: string;
|
|
4666
|
-
|
|
4667
|
-
keymode:
|
|
4540
|
+
appid: string;
|
|
4541
|
+
keymode: string[];
|
|
4668
4542
|
};
|
|
4669
4543
|
Returns: boolean;
|
|
4670
4544
|
};
|
|
@@ -4854,14 +4728,6 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
4854
4728
|
};
|
|
4855
4729
|
Returns: undefined;
|
|
4856
4730
|
};
|
|
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
4731
|
one_month_ahead: {
|
|
4866
4732
|
Args: never;
|
|
4867
4733
|
Returns: string;
|
|
@@ -5025,13 +4891,6 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
5025
4891
|
};
|
|
5026
4892
|
Returns: boolean;
|
|
5027
4893
|
};
|
|
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
4894
|
rbac_has_permission: {
|
|
5036
4895
|
Args: {
|
|
5037
4896
|
p_app_id: string;
|
|
@@ -5043,45 +4902,6 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
5043
4902
|
};
|
|
5044
4903
|
Returns: boolean;
|
|
5045
4904
|
};
|
|
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
4905
|
rbac_perm_app_build_native: {
|
|
5086
4906
|
Args: never;
|
|
5087
4907
|
Returns: string;
|
|
@@ -5270,29 +5090,6 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
5270
5090
|
Args: never;
|
|
5271
5091
|
Returns: string;
|
|
5272
5092
|
};
|
|
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
5093
|
rbac_principal_apikey: {
|
|
5297
5094
|
Args: never;
|
|
5298
5095
|
Returns: string;
|
|
@@ -5305,42 +5102,6 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
5305
5102
|
Args: never;
|
|
5306
5103
|
Returns: string;
|
|
5307
5104
|
};
|
|
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
5105
|
rbac_role_apikey_org_reader: {
|
|
5345
5106
|
Args: never;
|
|
5346
5107
|
Returns: string;
|
|
@@ -5397,12 +5158,6 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
5397
5158
|
Args: never;
|
|
5398
5159
|
Returns: string;
|
|
5399
5160
|
};
|
|
5400
|
-
rbac_rollback_org: {
|
|
5401
|
-
Args: {
|
|
5402
|
-
p_org_id: string;
|
|
5403
|
-
};
|
|
5404
|
-
Returns: import("./types/supabase.types").Json;
|
|
5405
|
-
};
|
|
5406
5161
|
rbac_scope_app: {
|
|
5407
5162
|
Args: never;
|
|
5408
5163
|
Returns: string;
|
|
@@ -5593,6 +5348,10 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
5593
5348
|
Args: never;
|
|
5594
5349
|
Returns: undefined;
|
|
5595
5350
|
};
|
|
5351
|
+
request_actor_user_id: {
|
|
5352
|
+
Args: never;
|
|
5353
|
+
Returns: string;
|
|
5354
|
+
};
|
|
5596
5355
|
request_app_chart_refresh: {
|
|
5597
5356
|
Args: {
|
|
5598
5357
|
app_id: string;
|
|
@@ -5628,10 +5387,6 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
5628
5387
|
skipped_count: number;
|
|
5629
5388
|
}[];
|
|
5630
5389
|
};
|
|
5631
|
-
request_read_key_modes: {
|
|
5632
|
-
Args: never;
|
|
5633
|
-
Returns: Database["public"]["Enums"]["key_mode"][];
|
|
5634
|
-
};
|
|
5635
5390
|
rescind_invitation: {
|
|
5636
5391
|
Args: {
|
|
5637
5392
|
email: string;
|
|
@@ -5649,13 +5404,6 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
5649
5404
|
Args: never;
|
|
5650
5405
|
Returns: undefined;
|
|
5651
5406
|
};
|
|
5652
|
-
resync_org_user_role_bindings: {
|
|
5653
|
-
Args: {
|
|
5654
|
-
p_org_id: string;
|
|
5655
|
-
p_user_id: string;
|
|
5656
|
-
};
|
|
5657
|
-
Returns: undefined;
|
|
5658
|
-
};
|
|
5659
5407
|
seed_get_app_metrics_caches: {
|
|
5660
5408
|
Args: {
|
|
5661
5409
|
p_end_date: string;
|
|
@@ -5755,18 +5503,6 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
5755
5503
|
};
|
|
5756
5504
|
Returns: undefined;
|
|
5757
5505
|
};
|
|
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
5506
|
update_app_versions_retention: {
|
|
5771
5507
|
Args: never;
|
|
5772
5508
|
Returns: undefined;
|
|
@@ -5846,11 +5582,9 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
5846
5582
|
credit_transaction_type: "grant" | "purchase" | "manual_grant" | "deduction" | "expiry" | "refund";
|
|
5847
5583
|
cron_task_type: "function" | "queue" | "function_queue";
|
|
5848
5584
|
disable_update: "major" | "minor" | "patch" | "version_number" | "none";
|
|
5849
|
-
key_mode: "read" | "write" | "all" | "upload";
|
|
5850
5585
|
platform_os: "ios" | "android" | "electron";
|
|
5851
5586
|
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
5587
|
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
5588
|
user_role: "read" | "upload" | "write" | "admin";
|
|
5855
5589
|
version_action: "get" | "fail" | "install" | "uninstall";
|
|
5856
5590
|
};
|
|
@@ -5893,22 +5627,6 @@ export declare function isPayingOrg(supabase: SupabaseClient<Database>, orgId: s
|
|
|
5893
5627
|
export declare function isTrialOrg(supabase: SupabaseClient<Database>, orgId: string): Promise<number>;
|
|
5894
5628
|
export declare function isAllowedActionOrg(supabase: SupabaseClient<Database>, orgId: string): Promise<boolean>;
|
|
5895
5629
|
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
5630
|
export declare function checkRemoteCliMessages(supabase: SupabaseClient<Database>, orgId: string, cliVersion: string): Promise<void>;
|
|
5913
5631
|
export declare function checkPlanValid(supabase: SupabaseClient<Database>, orgId: string, apikey: string, appId?: string, warning?: boolean): Promise<void>;
|
|
5914
5632
|
export declare function checkPlanValidUpload(supabase: SupabaseClient<Database>, orgId: string, apikey: string, appId?: string, warning?: boolean): Promise<void>;
|