@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
|
@@ -160,6 +160,7 @@ export type Database = {
|
|
|
160
160
|
cli_version: string | null;
|
|
161
161
|
comment: string | null;
|
|
162
162
|
created_at: string | null;
|
|
163
|
+
created_by_apikey_rbac_id: string | null;
|
|
163
164
|
deleted: boolean;
|
|
164
165
|
deleted_at: string | null;
|
|
165
166
|
external_url: string | null;
|
|
@@ -184,6 +185,7 @@ export type Database = {
|
|
|
184
185
|
cli_version?: string | null;
|
|
185
186
|
comment?: string | null;
|
|
186
187
|
created_at?: string | null;
|
|
188
|
+
created_by_apikey_rbac_id?: string | null;
|
|
187
189
|
deleted?: boolean;
|
|
188
190
|
deleted_at?: string | null;
|
|
189
191
|
external_url?: string | null;
|
|
@@ -208,6 +210,7 @@ export type Database = {
|
|
|
208
210
|
cli_version?: string | null;
|
|
209
211
|
comment?: string | null;
|
|
210
212
|
created_at?: string | null;
|
|
213
|
+
created_by_apikey_rbac_id?: string | null;
|
|
211
214
|
deleted?: boolean;
|
|
212
215
|
deleted_at?: string | null;
|
|
213
216
|
external_url?: string | null;
|
|
@@ -2034,33 +2037,33 @@ export type Database = {
|
|
|
2034
2037
|
channel_id: number | null;
|
|
2035
2038
|
created_at: string | null;
|
|
2036
2039
|
id: number;
|
|
2040
|
+
is_invite: boolean;
|
|
2037
2041
|
org_id: string;
|
|
2038
2042
|
rbac_role_name: string | null;
|
|
2039
2043
|
updated_at: string | null;
|
|
2040
2044
|
user_id: string;
|
|
2041
|
-
user_right: Database["public"]["Enums"]["user_min_right"] | null;
|
|
2042
2045
|
};
|
|
2043
2046
|
Insert: {
|
|
2044
2047
|
app_id?: string | null;
|
|
2045
2048
|
channel_id?: number | null;
|
|
2046
2049
|
created_at?: string | null;
|
|
2047
2050
|
id?: number;
|
|
2051
|
+
is_invite?: boolean;
|
|
2048
2052
|
org_id: string;
|
|
2049
2053
|
rbac_role_name?: string | null;
|
|
2050
2054
|
updated_at?: string | null;
|
|
2051
2055
|
user_id: string;
|
|
2052
|
-
user_right?: Database["public"]["Enums"]["user_min_right"] | null;
|
|
2053
2056
|
};
|
|
2054
2057
|
Update: {
|
|
2055
2058
|
app_id?: string | null;
|
|
2056
2059
|
channel_id?: number | null;
|
|
2057
2060
|
created_at?: string | null;
|
|
2058
2061
|
id?: number;
|
|
2062
|
+
is_invite?: boolean;
|
|
2059
2063
|
org_id?: string;
|
|
2060
2064
|
rbac_role_name?: string | null;
|
|
2061
2065
|
updated_at?: string | null;
|
|
2062
2066
|
user_id?: string;
|
|
2063
|
-
user_right?: Database["public"]["Enums"]["user_min_right"] | null;
|
|
2064
2067
|
};
|
|
2065
2068
|
Relationships: [
|
|
2066
2069
|
{
|
|
@@ -2116,7 +2119,6 @@ export type Database = {
|
|
|
2116
2119
|
stats_refresh_requested_at: string | null;
|
|
2117
2120
|
stats_updated_at: string | null;
|
|
2118
2121
|
updated_at: string | null;
|
|
2119
|
-
use_new_rbac: boolean;
|
|
2120
2122
|
website: string | null;
|
|
2121
2123
|
};
|
|
2122
2124
|
Insert: {
|
|
@@ -2141,7 +2143,6 @@ export type Database = {
|
|
|
2141
2143
|
stats_refresh_requested_at?: string | null;
|
|
2142
2144
|
stats_updated_at?: string | null;
|
|
2143
2145
|
updated_at?: string | null;
|
|
2144
|
-
use_new_rbac?: boolean;
|
|
2145
2146
|
website?: string | null;
|
|
2146
2147
|
};
|
|
2147
2148
|
Update: {
|
|
@@ -2166,7 +2167,6 @@ export type Database = {
|
|
|
2166
2167
|
stats_refresh_requested_at?: string | null;
|
|
2167
2168
|
stats_updated_at?: string | null;
|
|
2168
2169
|
updated_at?: string | null;
|
|
2169
|
-
use_new_rbac?: boolean;
|
|
2170
2170
|
website?: string | null;
|
|
2171
2171
|
};
|
|
2172
2172
|
Relationships: [
|
|
@@ -2313,6 +2313,7 @@ export type Database = {
|
|
|
2313
2313
|
id: string;
|
|
2314
2314
|
is_direct: boolean;
|
|
2315
2315
|
org_id: string | null;
|
|
2316
|
+
parent_binding_id: string | null;
|
|
2316
2317
|
principal_id: string;
|
|
2317
2318
|
principal_type: string;
|
|
2318
2319
|
reason: string | null;
|
|
@@ -2329,6 +2330,7 @@ export type Database = {
|
|
|
2329
2330
|
id?: string;
|
|
2330
2331
|
is_direct?: boolean;
|
|
2331
2332
|
org_id?: string | null;
|
|
2333
|
+
parent_binding_id?: string | null;
|
|
2332
2334
|
principal_id: string;
|
|
2333
2335
|
principal_type: string;
|
|
2334
2336
|
reason?: string | null;
|
|
@@ -2345,6 +2347,7 @@ export type Database = {
|
|
|
2345
2347
|
id?: string;
|
|
2346
2348
|
is_direct?: boolean;
|
|
2347
2349
|
org_id?: string | null;
|
|
2350
|
+
parent_binding_id?: string | null;
|
|
2348
2351
|
principal_id?: string;
|
|
2349
2352
|
principal_type?: string;
|
|
2350
2353
|
reason?: string | null;
|
|
@@ -2380,6 +2383,13 @@ export type Database = {
|
|
|
2380
2383
|
referencedRelation: "orgs";
|
|
2381
2384
|
referencedColumns: ["id"];
|
|
2382
2385
|
},
|
|
2386
|
+
{
|
|
2387
|
+
foreignKeyName: "role_bindings_parent_binding_id_fkey";
|
|
2388
|
+
columns: ["parent_binding_id"];
|
|
2389
|
+
isOneToOne: false;
|
|
2390
|
+
referencedRelation: "role_bindings";
|
|
2391
|
+
referencedColumns: ["id"];
|
|
2392
|
+
},
|
|
2383
2393
|
{
|
|
2384
2394
|
foreignKeyName: "role_bindings_role_id_fkey";
|
|
2385
2395
|
columns: ["role_id"];
|
|
@@ -2737,8 +2747,7 @@ export type Database = {
|
|
|
2737
2747
|
invite_magic_string: string;
|
|
2738
2748
|
last_name: string;
|
|
2739
2749
|
org_id: string;
|
|
2740
|
-
rbac_role_name: string
|
|
2741
|
-
role: Database["public"]["Enums"]["user_min_right"];
|
|
2750
|
+
rbac_role_name: string;
|
|
2742
2751
|
updated_at: string;
|
|
2743
2752
|
};
|
|
2744
2753
|
Insert: {
|
|
@@ -2751,8 +2760,7 @@ export type Database = {
|
|
|
2751
2760
|
invite_magic_string?: string;
|
|
2752
2761
|
last_name: string;
|
|
2753
2762
|
org_id: string;
|
|
2754
|
-
rbac_role_name?: string
|
|
2755
|
-
role: Database["public"]["Enums"]["user_min_right"];
|
|
2763
|
+
rbac_role_name?: string;
|
|
2756
2764
|
updated_at?: string;
|
|
2757
2765
|
};
|
|
2758
2766
|
Update: {
|
|
@@ -2765,8 +2773,7 @@ export type Database = {
|
|
|
2765
2773
|
invite_magic_string?: string;
|
|
2766
2774
|
last_name?: string;
|
|
2767
2775
|
org_id?: string;
|
|
2768
|
-
rbac_role_name?: string
|
|
2769
|
-
role?: Database["public"]["Enums"]["user_min_right"];
|
|
2776
|
+
rbac_role_name?: string;
|
|
2770
2777
|
updated_at?: string;
|
|
2771
2778
|
};
|
|
2772
2779
|
Relationships: [
|
|
@@ -3080,10 +3087,12 @@ export type Database = {
|
|
|
3080
3087
|
country: string | null;
|
|
3081
3088
|
created_at: string | null;
|
|
3082
3089
|
created_via_invite: boolean;
|
|
3090
|
+
discord_username: string | null;
|
|
3083
3091
|
email: string;
|
|
3084
3092
|
email_preferences: Json;
|
|
3085
3093
|
enable_notifications: boolean;
|
|
3086
3094
|
first_name: string | null;
|
|
3095
|
+
github_username: string | null;
|
|
3087
3096
|
id: string;
|
|
3088
3097
|
image_url: string | null;
|
|
3089
3098
|
last_name: string | null;
|
|
@@ -3095,10 +3104,12 @@ export type Database = {
|
|
|
3095
3104
|
country?: string | null;
|
|
3096
3105
|
created_at?: string | null;
|
|
3097
3106
|
created_via_invite?: boolean;
|
|
3107
|
+
discord_username?: string | null;
|
|
3098
3108
|
email: string;
|
|
3099
3109
|
email_preferences?: Json;
|
|
3100
3110
|
enable_notifications?: boolean;
|
|
3101
3111
|
first_name?: string | null;
|
|
3112
|
+
github_username?: string | null;
|
|
3102
3113
|
id: string;
|
|
3103
3114
|
image_url?: string | null;
|
|
3104
3115
|
last_name?: string | null;
|
|
@@ -3110,10 +3121,12 @@ export type Database = {
|
|
|
3110
3121
|
country?: string | null;
|
|
3111
3122
|
created_at?: string | null;
|
|
3112
3123
|
created_via_invite?: boolean;
|
|
3124
|
+
discord_username?: string | null;
|
|
3113
3125
|
email?: string;
|
|
3114
3126
|
email_preferences?: Json;
|
|
3115
3127
|
enable_notifications?: boolean;
|
|
3116
3128
|
first_name?: string | null;
|
|
3129
|
+
github_username?: string | null;
|
|
3117
3130
|
id?: string;
|
|
3118
3131
|
image_url?: string | null;
|
|
3119
3132
|
last_name?: string | null;
|
|
@@ -3369,23 +3382,6 @@ export type Database = {
|
|
|
3369
3382
|
};
|
|
3370
3383
|
Returns: boolean;
|
|
3371
3384
|
};
|
|
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
3385
|
app_versions_readable_app_ids: {
|
|
3390
3386
|
Args: never;
|
|
3391
3387
|
Returns: string[];
|
|
@@ -3468,44 +3464,6 @@ export type Database = {
|
|
|
3468
3464
|
provider_id: string;
|
|
3469
3465
|
}[];
|
|
3470
3466
|
};
|
|
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
3467
|
check_org_encrypted_bundle_enforcement: {
|
|
3510
3468
|
Args: {
|
|
3511
3469
|
org_id: string;
|
|
@@ -3723,6 +3681,12 @@ export type Database = {
|
|
|
3723
3681
|
Args: never;
|
|
3724
3682
|
Returns: undefined;
|
|
3725
3683
|
};
|
|
3684
|
+
exist_app: {
|
|
3685
|
+
Args: {
|
|
3686
|
+
appid: string;
|
|
3687
|
+
};
|
|
3688
|
+
Returns: boolean;
|
|
3689
|
+
};
|
|
3726
3690
|
exist_app_v2: {
|
|
3727
3691
|
Args: {
|
|
3728
3692
|
appid: string;
|
|
@@ -3992,47 +3956,6 @@ export type Database = {
|
|
|
3992
3956
|
uninstall: number;
|
|
3993
3957
|
}[];
|
|
3994
3958
|
};
|
|
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
3959
|
get_invite_by_magic_lookup: {
|
|
4037
3960
|
Args: {
|
|
4038
3961
|
lookup: string;
|
|
@@ -4142,7 +4065,7 @@ export type Database = {
|
|
|
4142
4065
|
email: string;
|
|
4143
4066
|
image_url: string;
|
|
4144
4067
|
is_tmp: boolean;
|
|
4145
|
-
role:
|
|
4068
|
+
role: string;
|
|
4146
4069
|
uid: string;
|
|
4147
4070
|
}[];
|
|
4148
4071
|
} | {
|
|
@@ -4155,7 +4078,7 @@ export type Database = {
|
|
|
4155
4078
|
email: string;
|
|
4156
4079
|
image_url: string;
|
|
4157
4080
|
is_tmp: boolean;
|
|
4158
|
-
role:
|
|
4081
|
+
role: string;
|
|
4159
4082
|
uid: string;
|
|
4160
4083
|
}[];
|
|
4161
4084
|
};
|
|
@@ -4176,13 +4099,6 @@ export type Database = {
|
|
|
4176
4099
|
user_id: string;
|
|
4177
4100
|
}[];
|
|
4178
4101
|
};
|
|
4179
|
-
get_org_owner_id: {
|
|
4180
|
-
Args: {
|
|
4181
|
-
apikey: string;
|
|
4182
|
-
app_id: string;
|
|
4183
|
-
};
|
|
4184
|
-
Returns: string;
|
|
4185
|
-
};
|
|
4186
4102
|
get_org_perm_for_apikey: {
|
|
4187
4103
|
Args: {
|
|
4188
4104
|
apikey: string;
|
|
@@ -4247,28 +4163,6 @@ export type Database = {
|
|
|
4247
4163
|
subscription_end: string;
|
|
4248
4164
|
subscription_start: string;
|
|
4249
4165
|
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
4166
|
}[];
|
|
4273
4167
|
};
|
|
4274
4168
|
get_orgs_v7: {
|
|
@@ -4287,6 +4181,7 @@ export type Database = {
|
|
|
4287
4181
|
enforcing_2fa: boolean;
|
|
4288
4182
|
gid: string;
|
|
4289
4183
|
is_canceled: boolean;
|
|
4184
|
+
is_invite: boolean;
|
|
4290
4185
|
is_yearly: boolean;
|
|
4291
4186
|
logo: string;
|
|
4292
4187
|
management_email: string;
|
|
@@ -4304,7 +4199,6 @@ export type Database = {
|
|
|
4304
4199
|
subscription_end: string;
|
|
4305
4200
|
subscription_start: string;
|
|
4306
4201
|
trial_left: number;
|
|
4307
|
-
use_new_rbac: boolean;
|
|
4308
4202
|
website: string;
|
|
4309
4203
|
}[];
|
|
4310
4204
|
} | {
|
|
@@ -4325,6 +4219,7 @@ export type Database = {
|
|
|
4325
4219
|
enforcing_2fa: boolean;
|
|
4326
4220
|
gid: string;
|
|
4327
4221
|
is_canceled: boolean;
|
|
4222
|
+
is_invite: boolean;
|
|
4328
4223
|
is_yearly: boolean;
|
|
4329
4224
|
logo: string;
|
|
4330
4225
|
management_email: string;
|
|
@@ -4342,7 +4237,6 @@ export type Database = {
|
|
|
4342
4237
|
subscription_end: string;
|
|
4343
4238
|
subscription_start: string;
|
|
4344
4239
|
trial_left: number;
|
|
4345
|
-
use_new_rbac: boolean;
|
|
4346
4240
|
website: string;
|
|
4347
4241
|
}[];
|
|
4348
4242
|
};
|
|
@@ -4567,30 +4461,6 @@ export type Database = {
|
|
|
4567
4461
|
};
|
|
4568
4462
|
Returns: boolean;
|
|
4569
4463
|
};
|
|
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
4464
|
has_seeded_demo_data: {
|
|
4595
4465
|
Args: {
|
|
4596
4466
|
p_app_id: string;
|
|
@@ -4605,14 +4475,6 @@ export type Database = {
|
|
|
4605
4475
|
Args: never;
|
|
4606
4476
|
Returns: string[];
|
|
4607
4477
|
};
|
|
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
4478
|
invite_user_to_org_rbac: {
|
|
4617
4479
|
Args: {
|
|
4618
4480
|
email: string;
|
|
@@ -4657,14 +4519,14 @@ export type Database = {
|
|
|
4657
4519
|
is_allowed_capgkey: {
|
|
4658
4520
|
Args: {
|
|
4659
4521
|
apikey: string;
|
|
4660
|
-
keymode:
|
|
4522
|
+
keymode: string[];
|
|
4661
4523
|
};
|
|
4662
4524
|
Returns: boolean;
|
|
4663
4525
|
} | {
|
|
4664
4526
|
Args: {
|
|
4665
4527
|
apikey: string;
|
|
4666
|
-
|
|
4667
|
-
keymode:
|
|
4528
|
+
appid: string;
|
|
4529
|
+
keymode: string[];
|
|
4668
4530
|
};
|
|
4669
4531
|
Returns: boolean;
|
|
4670
4532
|
};
|
|
@@ -4854,14 +4716,6 @@ export type Database = {
|
|
|
4854
4716
|
};
|
|
4855
4717
|
Returns: undefined;
|
|
4856
4718
|
};
|
|
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
4719
|
one_month_ahead: {
|
|
4866
4720
|
Args: never;
|
|
4867
4721
|
Returns: string;
|
|
@@ -5025,13 +4879,6 @@ export type Database = {
|
|
|
5025
4879
|
};
|
|
5026
4880
|
Returns: boolean;
|
|
5027
4881
|
};
|
|
5028
|
-
rbac_enable_for_org: {
|
|
5029
|
-
Args: {
|
|
5030
|
-
p_granted_by?: string;
|
|
5031
|
-
p_org_id: string;
|
|
5032
|
-
};
|
|
5033
|
-
Returns: Json;
|
|
5034
|
-
};
|
|
5035
4882
|
rbac_has_permission: {
|
|
5036
4883
|
Args: {
|
|
5037
4884
|
p_app_id: string;
|
|
@@ -5043,45 +4890,6 @@ export type Database = {
|
|
|
5043
4890
|
};
|
|
5044
4891
|
Returns: boolean;
|
|
5045
4892
|
};
|
|
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: 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
4893
|
rbac_perm_app_build_native: {
|
|
5086
4894
|
Args: never;
|
|
5087
4895
|
Returns: string;
|
|
@@ -5270,29 +5078,6 @@ export type Database = {
|
|
|
5270
5078
|
Args: never;
|
|
5271
5079
|
Returns: string;
|
|
5272
5080
|
};
|
|
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
5081
|
rbac_principal_apikey: {
|
|
5297
5082
|
Args: never;
|
|
5298
5083
|
Returns: string;
|
|
@@ -5305,42 +5090,6 @@ export type Database = {
|
|
|
5305
5090
|
Args: never;
|
|
5306
5091
|
Returns: string;
|
|
5307
5092
|
};
|
|
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
5093
|
rbac_role_apikey_org_reader: {
|
|
5345
5094
|
Args: never;
|
|
5346
5095
|
Returns: string;
|
|
@@ -5397,12 +5146,6 @@ export type Database = {
|
|
|
5397
5146
|
Args: never;
|
|
5398
5147
|
Returns: string;
|
|
5399
5148
|
};
|
|
5400
|
-
rbac_rollback_org: {
|
|
5401
|
-
Args: {
|
|
5402
|
-
p_org_id: string;
|
|
5403
|
-
};
|
|
5404
|
-
Returns: Json;
|
|
5405
|
-
};
|
|
5406
5149
|
rbac_scope_app: {
|
|
5407
5150
|
Args: never;
|
|
5408
5151
|
Returns: string;
|
|
@@ -5593,6 +5336,10 @@ export type Database = {
|
|
|
5593
5336
|
Args: never;
|
|
5594
5337
|
Returns: undefined;
|
|
5595
5338
|
};
|
|
5339
|
+
request_actor_user_id: {
|
|
5340
|
+
Args: never;
|
|
5341
|
+
Returns: string;
|
|
5342
|
+
};
|
|
5596
5343
|
request_app_chart_refresh: {
|
|
5597
5344
|
Args: {
|
|
5598
5345
|
app_id: string;
|
|
@@ -5628,10 +5375,6 @@ export type Database = {
|
|
|
5628
5375
|
skipped_count: number;
|
|
5629
5376
|
}[];
|
|
5630
5377
|
};
|
|
5631
|
-
request_read_key_modes: {
|
|
5632
|
-
Args: never;
|
|
5633
|
-
Returns: Database["public"]["Enums"]["key_mode"][];
|
|
5634
|
-
};
|
|
5635
5378
|
rescind_invitation: {
|
|
5636
5379
|
Args: {
|
|
5637
5380
|
email: string;
|
|
@@ -5649,13 +5392,6 @@ export type Database = {
|
|
|
5649
5392
|
Args: never;
|
|
5650
5393
|
Returns: undefined;
|
|
5651
5394
|
};
|
|
5652
|
-
resync_org_user_role_bindings: {
|
|
5653
|
-
Args: {
|
|
5654
|
-
p_org_id: string;
|
|
5655
|
-
p_user_id: string;
|
|
5656
|
-
};
|
|
5657
|
-
Returns: undefined;
|
|
5658
|
-
};
|
|
5659
5395
|
seed_get_app_metrics_caches: {
|
|
5660
5396
|
Args: {
|
|
5661
5397
|
p_end_date: string;
|
|
@@ -5755,18 +5491,6 @@ export type Database = {
|
|
|
5755
5491
|
};
|
|
5756
5492
|
Returns: undefined;
|
|
5757
5493
|
};
|
|
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
5494
|
update_app_versions_retention: {
|
|
5771
5495
|
Args: never;
|
|
5772
5496
|
Returns: undefined;
|
|
@@ -5846,11 +5570,9 @@ export type Database = {
|
|
|
5846
5570
|
credit_transaction_type: "grant" | "purchase" | "manual_grant" | "deduction" | "expiry" | "refund";
|
|
5847
5571
|
cron_task_type: "function" | "queue" | "function_queue";
|
|
5848
5572
|
disable_update: "major" | "minor" | "patch" | "version_number" | "none";
|
|
5849
|
-
key_mode: "read" | "write" | "all" | "upload";
|
|
5850
5573
|
platform_os: "ios" | "android" | "electron";
|
|
5851
5574
|
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
5575
|
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
5576
|
user_role: "read" | "upload" | "write" | "admin";
|
|
5855
5577
|
version_action: "get" | "fail" | "install" | "uninstall";
|
|
5856
5578
|
};
|
|
@@ -5948,11 +5670,9 @@ export declare const Constants: {
|
|
|
5948
5670
|
readonly credit_transaction_type: readonly ["grant", "purchase", "manual_grant", "deduction", "expiry", "refund"];
|
|
5949
5671
|
readonly cron_task_type: readonly ["function", "queue", "function_queue"];
|
|
5950
5672
|
readonly disable_update: readonly ["major", "minor", "patch", "version_number", "none"];
|
|
5951
|
-
readonly key_mode: readonly ["read", "write", "all", "upload"];
|
|
5952
5673
|
readonly platform_os: readonly ["ios", "android", "electron"];
|
|
5953
5674
|
readonly stats_action: readonly ["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"];
|
|
5954
5675
|
readonly stripe_status: readonly ["created", "succeeded", "updated", "failed", "deleted", "canceled"];
|
|
5955
|
-
readonly user_min_right: readonly ["invite_read", "invite_upload", "invite_write", "invite_admin", "invite_super_admin", "read", "upload", "write", "admin", "super_admin"];
|
|
5956
5676
|
readonly user_role: readonly ["read", "upload", "write", "admin"];
|
|
5957
5677
|
readonly version_action: readonly ["get", "fail", "install", "uninstall"];
|
|
5958
5678
|
};
|