@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
|
@@ -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;
|
|
@@ -1593,6 +1596,7 @@ export type Database = {
|
|
|
1593
1596
|
updates: number;
|
|
1594
1597
|
updates_external: number | null;
|
|
1595
1598
|
updates_last_month: number | null;
|
|
1599
|
+
upgrade_rate_12m: number;
|
|
1596
1600
|
upgraded_orgs: number;
|
|
1597
1601
|
trial_extended_orgs: number;
|
|
1598
1602
|
trial_extended_subscribed_orgs: number;
|
|
@@ -1684,6 +1688,7 @@ export type Database = {
|
|
|
1684
1688
|
updates: number;
|
|
1685
1689
|
updates_external?: number | null;
|
|
1686
1690
|
updates_last_month?: number | null;
|
|
1691
|
+
upgrade_rate_12m?: number;
|
|
1687
1692
|
upgraded_orgs?: number;
|
|
1688
1693
|
trial_extended_orgs?: number;
|
|
1689
1694
|
trial_extended_subscribed_orgs?: number;
|
|
@@ -1775,6 +1780,7 @@ export type Database = {
|
|
|
1775
1780
|
updates?: number;
|
|
1776
1781
|
updates_external?: number | null;
|
|
1777
1782
|
updates_last_month?: number | null;
|
|
1783
|
+
upgrade_rate_12m?: number;
|
|
1778
1784
|
upgraded_orgs?: number;
|
|
1779
1785
|
trial_extended_orgs?: number;
|
|
1780
1786
|
trial_extended_subscribed_orgs?: number;
|
|
@@ -2034,33 +2040,33 @@ export type Database = {
|
|
|
2034
2040
|
channel_id: number | null;
|
|
2035
2041
|
created_at: string | null;
|
|
2036
2042
|
id: number;
|
|
2043
|
+
is_invite: boolean;
|
|
2037
2044
|
org_id: string;
|
|
2038
2045
|
rbac_role_name: string | null;
|
|
2039
2046
|
updated_at: string | null;
|
|
2040
2047
|
user_id: string;
|
|
2041
|
-
user_right: Database["public"]["Enums"]["user_min_right"] | null;
|
|
2042
2048
|
};
|
|
2043
2049
|
Insert: {
|
|
2044
2050
|
app_id?: string | null;
|
|
2045
2051
|
channel_id?: number | null;
|
|
2046
2052
|
created_at?: string | null;
|
|
2047
2053
|
id?: number;
|
|
2054
|
+
is_invite?: boolean;
|
|
2048
2055
|
org_id: string;
|
|
2049
2056
|
rbac_role_name?: string | null;
|
|
2050
2057
|
updated_at?: string | null;
|
|
2051
2058
|
user_id: string;
|
|
2052
|
-
user_right?: Database["public"]["Enums"]["user_min_right"] | null;
|
|
2053
2059
|
};
|
|
2054
2060
|
Update: {
|
|
2055
2061
|
app_id?: string | null;
|
|
2056
2062
|
channel_id?: number | null;
|
|
2057
2063
|
created_at?: string | null;
|
|
2058
2064
|
id?: number;
|
|
2065
|
+
is_invite?: boolean;
|
|
2059
2066
|
org_id?: string;
|
|
2060
2067
|
rbac_role_name?: string | null;
|
|
2061
2068
|
updated_at?: string | null;
|
|
2062
2069
|
user_id?: string;
|
|
2063
|
-
user_right?: Database["public"]["Enums"]["user_min_right"] | null;
|
|
2064
2070
|
};
|
|
2065
2071
|
Relationships: [
|
|
2066
2072
|
{
|
|
@@ -2116,7 +2122,6 @@ export type Database = {
|
|
|
2116
2122
|
stats_refresh_requested_at: string | null;
|
|
2117
2123
|
stats_updated_at: string | null;
|
|
2118
2124
|
updated_at: string | null;
|
|
2119
|
-
use_new_rbac: boolean;
|
|
2120
2125
|
website: string | null;
|
|
2121
2126
|
};
|
|
2122
2127
|
Insert: {
|
|
@@ -2141,7 +2146,6 @@ export type Database = {
|
|
|
2141
2146
|
stats_refresh_requested_at?: string | null;
|
|
2142
2147
|
stats_updated_at?: string | null;
|
|
2143
2148
|
updated_at?: string | null;
|
|
2144
|
-
use_new_rbac?: boolean;
|
|
2145
2149
|
website?: string | null;
|
|
2146
2150
|
};
|
|
2147
2151
|
Update: {
|
|
@@ -2166,7 +2170,6 @@ export type Database = {
|
|
|
2166
2170
|
stats_refresh_requested_at?: string | null;
|
|
2167
2171
|
stats_updated_at?: string | null;
|
|
2168
2172
|
updated_at?: string | null;
|
|
2169
|
-
use_new_rbac?: boolean;
|
|
2170
2173
|
website?: string | null;
|
|
2171
2174
|
};
|
|
2172
2175
|
Relationships: [
|
|
@@ -2313,6 +2316,7 @@ export type Database = {
|
|
|
2313
2316
|
id: string;
|
|
2314
2317
|
is_direct: boolean;
|
|
2315
2318
|
org_id: string | null;
|
|
2319
|
+
parent_binding_id: string | null;
|
|
2316
2320
|
principal_id: string;
|
|
2317
2321
|
principal_type: string;
|
|
2318
2322
|
reason: string | null;
|
|
@@ -2329,6 +2333,7 @@ export type Database = {
|
|
|
2329
2333
|
id?: string;
|
|
2330
2334
|
is_direct?: boolean;
|
|
2331
2335
|
org_id?: string | null;
|
|
2336
|
+
parent_binding_id?: string | null;
|
|
2332
2337
|
principal_id: string;
|
|
2333
2338
|
principal_type: string;
|
|
2334
2339
|
reason?: string | null;
|
|
@@ -2345,6 +2350,7 @@ export type Database = {
|
|
|
2345
2350
|
id?: string;
|
|
2346
2351
|
is_direct?: boolean;
|
|
2347
2352
|
org_id?: string | null;
|
|
2353
|
+
parent_binding_id?: string | null;
|
|
2348
2354
|
principal_id?: string;
|
|
2349
2355
|
principal_type?: string;
|
|
2350
2356
|
reason?: string | null;
|
|
@@ -2380,6 +2386,13 @@ export type Database = {
|
|
|
2380
2386
|
referencedRelation: "orgs";
|
|
2381
2387
|
referencedColumns: ["id"];
|
|
2382
2388
|
},
|
|
2389
|
+
{
|
|
2390
|
+
foreignKeyName: "role_bindings_parent_binding_id_fkey";
|
|
2391
|
+
columns: ["parent_binding_id"];
|
|
2392
|
+
isOneToOne: false;
|
|
2393
|
+
referencedRelation: "role_bindings";
|
|
2394
|
+
referencedColumns: ["id"];
|
|
2395
|
+
},
|
|
2383
2396
|
{
|
|
2384
2397
|
foreignKeyName: "role_bindings_role_id_fkey";
|
|
2385
2398
|
columns: ["role_id"];
|
|
@@ -2737,8 +2750,7 @@ export type Database = {
|
|
|
2737
2750
|
invite_magic_string: string;
|
|
2738
2751
|
last_name: string;
|
|
2739
2752
|
org_id: string;
|
|
2740
|
-
rbac_role_name: string
|
|
2741
|
-
role: Database["public"]["Enums"]["user_min_right"];
|
|
2753
|
+
rbac_role_name: string;
|
|
2742
2754
|
updated_at: string;
|
|
2743
2755
|
};
|
|
2744
2756
|
Insert: {
|
|
@@ -2751,8 +2763,7 @@ export type Database = {
|
|
|
2751
2763
|
invite_magic_string?: string;
|
|
2752
2764
|
last_name: string;
|
|
2753
2765
|
org_id: string;
|
|
2754
|
-
rbac_role_name?: string
|
|
2755
|
-
role: Database["public"]["Enums"]["user_min_right"];
|
|
2766
|
+
rbac_role_name?: string;
|
|
2756
2767
|
updated_at?: string;
|
|
2757
2768
|
};
|
|
2758
2769
|
Update: {
|
|
@@ -2765,8 +2776,7 @@ export type Database = {
|
|
|
2765
2776
|
invite_magic_string?: string;
|
|
2766
2777
|
last_name?: string;
|
|
2767
2778
|
org_id?: string;
|
|
2768
|
-
rbac_role_name?: string
|
|
2769
|
-
role?: Database["public"]["Enums"]["user_min_right"];
|
|
2779
|
+
rbac_role_name?: string;
|
|
2770
2780
|
updated_at?: string;
|
|
2771
2781
|
};
|
|
2772
2782
|
Relationships: [
|
|
@@ -3080,10 +3090,12 @@ export type Database = {
|
|
|
3080
3090
|
country: string | null;
|
|
3081
3091
|
created_at: string | null;
|
|
3082
3092
|
created_via_invite: boolean;
|
|
3093
|
+
discord_username: string | null;
|
|
3083
3094
|
email: string;
|
|
3084
3095
|
email_preferences: Json;
|
|
3085
3096
|
enable_notifications: boolean;
|
|
3086
3097
|
first_name: string | null;
|
|
3098
|
+
github_username: string | null;
|
|
3087
3099
|
id: string;
|
|
3088
3100
|
image_url: string | null;
|
|
3089
3101
|
last_name: string | null;
|
|
@@ -3095,10 +3107,12 @@ export type Database = {
|
|
|
3095
3107
|
country?: string | null;
|
|
3096
3108
|
created_at?: string | null;
|
|
3097
3109
|
created_via_invite?: boolean;
|
|
3110
|
+
discord_username?: string | null;
|
|
3098
3111
|
email: string;
|
|
3099
3112
|
email_preferences?: Json;
|
|
3100
3113
|
enable_notifications?: boolean;
|
|
3101
3114
|
first_name?: string | null;
|
|
3115
|
+
github_username?: string | null;
|
|
3102
3116
|
id: string;
|
|
3103
3117
|
image_url?: string | null;
|
|
3104
3118
|
last_name?: string | null;
|
|
@@ -3110,10 +3124,12 @@ export type Database = {
|
|
|
3110
3124
|
country?: string | null;
|
|
3111
3125
|
created_at?: string | null;
|
|
3112
3126
|
created_via_invite?: boolean;
|
|
3127
|
+
discord_username?: string | null;
|
|
3113
3128
|
email?: string;
|
|
3114
3129
|
email_preferences?: Json;
|
|
3115
3130
|
enable_notifications?: boolean;
|
|
3116
3131
|
first_name?: string | null;
|
|
3132
|
+
github_username?: string | null;
|
|
3117
3133
|
id?: string;
|
|
3118
3134
|
image_url?: string | null;
|
|
3119
3135
|
last_name?: string | null;
|
|
@@ -3369,23 +3385,6 @@ export type Database = {
|
|
|
3369
3385
|
};
|
|
3370
3386
|
Returns: boolean;
|
|
3371
3387
|
};
|
|
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
3388
|
app_versions_readable_app_ids: {
|
|
3390
3389
|
Args: never;
|
|
3391
3390
|
Returns: string[];
|
|
@@ -3468,44 +3467,6 @@ export type Database = {
|
|
|
3468
3467
|
provider_id: string;
|
|
3469
3468
|
}[];
|
|
3470
3469
|
};
|
|
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
3470
|
check_org_encrypted_bundle_enforcement: {
|
|
3510
3471
|
Args: {
|
|
3511
3472
|
org_id: string;
|
|
@@ -3723,6 +3684,12 @@ export type Database = {
|
|
|
3723
3684
|
Args: never;
|
|
3724
3685
|
Returns: undefined;
|
|
3725
3686
|
};
|
|
3687
|
+
exist_app: {
|
|
3688
|
+
Args: {
|
|
3689
|
+
appid: string;
|
|
3690
|
+
};
|
|
3691
|
+
Returns: boolean;
|
|
3692
|
+
};
|
|
3726
3693
|
exist_app_v2: {
|
|
3727
3694
|
Args: {
|
|
3728
3695
|
appid: string;
|
|
@@ -3992,47 +3959,6 @@ export type Database = {
|
|
|
3992
3959
|
uninstall: number;
|
|
3993
3960
|
}[];
|
|
3994
3961
|
};
|
|
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
3962
|
get_invite_by_magic_lookup: {
|
|
4037
3963
|
Args: {
|
|
4038
3964
|
lookup: string;
|
|
@@ -4142,7 +4068,7 @@ export type Database = {
|
|
|
4142
4068
|
email: string;
|
|
4143
4069
|
image_url: string;
|
|
4144
4070
|
is_tmp: boolean;
|
|
4145
|
-
role:
|
|
4071
|
+
role: string;
|
|
4146
4072
|
uid: string;
|
|
4147
4073
|
}[];
|
|
4148
4074
|
} | {
|
|
@@ -4155,7 +4081,7 @@ export type Database = {
|
|
|
4155
4081
|
email: string;
|
|
4156
4082
|
image_url: string;
|
|
4157
4083
|
is_tmp: boolean;
|
|
4158
|
-
role:
|
|
4084
|
+
role: string;
|
|
4159
4085
|
uid: string;
|
|
4160
4086
|
}[];
|
|
4161
4087
|
};
|
|
@@ -4176,13 +4102,6 @@ export type Database = {
|
|
|
4176
4102
|
user_id: string;
|
|
4177
4103
|
}[];
|
|
4178
4104
|
};
|
|
4179
|
-
get_org_owner_id: {
|
|
4180
|
-
Args: {
|
|
4181
|
-
apikey: string;
|
|
4182
|
-
app_id: string;
|
|
4183
|
-
};
|
|
4184
|
-
Returns: string;
|
|
4185
|
-
};
|
|
4186
4105
|
get_org_perm_for_apikey: {
|
|
4187
4106
|
Args: {
|
|
4188
4107
|
apikey: string;
|
|
@@ -4247,28 +4166,6 @@ export type Database = {
|
|
|
4247
4166
|
subscription_end: string;
|
|
4248
4167
|
subscription_start: string;
|
|
4249
4168
|
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
4169
|
}[];
|
|
4273
4170
|
};
|
|
4274
4171
|
get_orgs_v7: {
|
|
@@ -4287,6 +4184,7 @@ export type Database = {
|
|
|
4287
4184
|
enforcing_2fa: boolean;
|
|
4288
4185
|
gid: string;
|
|
4289
4186
|
is_canceled: boolean;
|
|
4187
|
+
is_invite: boolean;
|
|
4290
4188
|
is_yearly: boolean;
|
|
4291
4189
|
logo: string;
|
|
4292
4190
|
management_email: string;
|
|
@@ -4304,7 +4202,6 @@ export type Database = {
|
|
|
4304
4202
|
subscription_end: string;
|
|
4305
4203
|
subscription_start: string;
|
|
4306
4204
|
trial_left: number;
|
|
4307
|
-
use_new_rbac: boolean;
|
|
4308
4205
|
website: string;
|
|
4309
4206
|
}[];
|
|
4310
4207
|
} | {
|
|
@@ -4325,6 +4222,7 @@ export type Database = {
|
|
|
4325
4222
|
enforcing_2fa: boolean;
|
|
4326
4223
|
gid: string;
|
|
4327
4224
|
is_canceled: boolean;
|
|
4225
|
+
is_invite: boolean;
|
|
4328
4226
|
is_yearly: boolean;
|
|
4329
4227
|
logo: string;
|
|
4330
4228
|
management_email: string;
|
|
@@ -4342,7 +4240,6 @@ export type Database = {
|
|
|
4342
4240
|
subscription_end: string;
|
|
4343
4241
|
subscription_start: string;
|
|
4344
4242
|
trial_left: number;
|
|
4345
|
-
use_new_rbac: boolean;
|
|
4346
4243
|
website: string;
|
|
4347
4244
|
}[];
|
|
4348
4245
|
};
|
|
@@ -4567,30 +4464,6 @@ export type Database = {
|
|
|
4567
4464
|
};
|
|
4568
4465
|
Returns: boolean;
|
|
4569
4466
|
};
|
|
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
4467
|
has_seeded_demo_data: {
|
|
4595
4468
|
Args: {
|
|
4596
4469
|
p_app_id: string;
|
|
@@ -4605,14 +4478,6 @@ export type Database = {
|
|
|
4605
4478
|
Args: never;
|
|
4606
4479
|
Returns: string[];
|
|
4607
4480
|
};
|
|
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
4481
|
invite_user_to_org_rbac: {
|
|
4617
4482
|
Args: {
|
|
4618
4483
|
email: string;
|
|
@@ -4657,14 +4522,14 @@ export type Database = {
|
|
|
4657
4522
|
is_allowed_capgkey: {
|
|
4658
4523
|
Args: {
|
|
4659
4524
|
apikey: string;
|
|
4660
|
-
keymode:
|
|
4525
|
+
keymode: string[];
|
|
4661
4526
|
};
|
|
4662
4527
|
Returns: boolean;
|
|
4663
4528
|
} | {
|
|
4664
4529
|
Args: {
|
|
4665
4530
|
apikey: string;
|
|
4666
|
-
|
|
4667
|
-
keymode:
|
|
4531
|
+
appid: string;
|
|
4532
|
+
keymode: string[];
|
|
4668
4533
|
};
|
|
4669
4534
|
Returns: boolean;
|
|
4670
4535
|
};
|
|
@@ -4854,14 +4719,6 @@ export type Database = {
|
|
|
4854
4719
|
};
|
|
4855
4720
|
Returns: undefined;
|
|
4856
4721
|
};
|
|
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
4722
|
one_month_ahead: {
|
|
4866
4723
|
Args: never;
|
|
4867
4724
|
Returns: string;
|
|
@@ -5025,13 +4882,6 @@ export type Database = {
|
|
|
5025
4882
|
};
|
|
5026
4883
|
Returns: boolean;
|
|
5027
4884
|
};
|
|
5028
|
-
rbac_enable_for_org: {
|
|
5029
|
-
Args: {
|
|
5030
|
-
p_granted_by?: string;
|
|
5031
|
-
p_org_id: string;
|
|
5032
|
-
};
|
|
5033
|
-
Returns: Json;
|
|
5034
|
-
};
|
|
5035
4885
|
rbac_has_permission: {
|
|
5036
4886
|
Args: {
|
|
5037
4887
|
p_app_id: string;
|
|
@@ -5043,45 +4893,6 @@ export type Database = {
|
|
|
5043
4893
|
};
|
|
5044
4894
|
Returns: boolean;
|
|
5045
4895
|
};
|
|
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
4896
|
rbac_perm_app_build_native: {
|
|
5086
4897
|
Args: never;
|
|
5087
4898
|
Returns: string;
|
|
@@ -5270,29 +5081,6 @@ export type Database = {
|
|
|
5270
5081
|
Args: never;
|
|
5271
5082
|
Returns: string;
|
|
5272
5083
|
};
|
|
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
5084
|
rbac_principal_apikey: {
|
|
5297
5085
|
Args: never;
|
|
5298
5086
|
Returns: string;
|
|
@@ -5305,42 +5093,6 @@ export type Database = {
|
|
|
5305
5093
|
Args: never;
|
|
5306
5094
|
Returns: string;
|
|
5307
5095
|
};
|
|
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
5096
|
rbac_role_apikey_org_reader: {
|
|
5345
5097
|
Args: never;
|
|
5346
5098
|
Returns: string;
|
|
@@ -5397,12 +5149,6 @@ export type Database = {
|
|
|
5397
5149
|
Args: never;
|
|
5398
5150
|
Returns: string;
|
|
5399
5151
|
};
|
|
5400
|
-
rbac_rollback_org: {
|
|
5401
|
-
Args: {
|
|
5402
|
-
p_org_id: string;
|
|
5403
|
-
};
|
|
5404
|
-
Returns: Json;
|
|
5405
|
-
};
|
|
5406
5152
|
rbac_scope_app: {
|
|
5407
5153
|
Args: never;
|
|
5408
5154
|
Returns: string;
|
|
@@ -5593,6 +5339,10 @@ export type Database = {
|
|
|
5593
5339
|
Args: never;
|
|
5594
5340
|
Returns: undefined;
|
|
5595
5341
|
};
|
|
5342
|
+
request_actor_user_id: {
|
|
5343
|
+
Args: never;
|
|
5344
|
+
Returns: string;
|
|
5345
|
+
};
|
|
5596
5346
|
request_app_chart_refresh: {
|
|
5597
5347
|
Args: {
|
|
5598
5348
|
app_id: string;
|
|
@@ -5628,10 +5378,6 @@ export type Database = {
|
|
|
5628
5378
|
skipped_count: number;
|
|
5629
5379
|
}[];
|
|
5630
5380
|
};
|
|
5631
|
-
request_read_key_modes: {
|
|
5632
|
-
Args: never;
|
|
5633
|
-
Returns: Database["public"]["Enums"]["key_mode"][];
|
|
5634
|
-
};
|
|
5635
5381
|
rescind_invitation: {
|
|
5636
5382
|
Args: {
|
|
5637
5383
|
email: string;
|
|
@@ -5649,13 +5395,6 @@ export type Database = {
|
|
|
5649
5395
|
Args: never;
|
|
5650
5396
|
Returns: undefined;
|
|
5651
5397
|
};
|
|
5652
|
-
resync_org_user_role_bindings: {
|
|
5653
|
-
Args: {
|
|
5654
|
-
p_org_id: string;
|
|
5655
|
-
p_user_id: string;
|
|
5656
|
-
};
|
|
5657
|
-
Returns: undefined;
|
|
5658
|
-
};
|
|
5659
5398
|
seed_get_app_metrics_caches: {
|
|
5660
5399
|
Args: {
|
|
5661
5400
|
p_end_date: string;
|
|
@@ -5755,18 +5494,6 @@ export type Database = {
|
|
|
5755
5494
|
};
|
|
5756
5495
|
Returns: undefined;
|
|
5757
5496
|
};
|
|
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
5497
|
update_app_versions_retention: {
|
|
5771
5498
|
Args: never;
|
|
5772
5499
|
Returns: undefined;
|
|
@@ -5846,11 +5573,9 @@ export type Database = {
|
|
|
5846
5573
|
credit_transaction_type: "grant" | "purchase" | "manual_grant" | "deduction" | "expiry" | "refund";
|
|
5847
5574
|
cron_task_type: "function" | "queue" | "function_queue";
|
|
5848
5575
|
disable_update: "major" | "minor" | "patch" | "version_number" | "none";
|
|
5849
|
-
key_mode: "read" | "write" | "all" | "upload";
|
|
5850
5576
|
platform_os: "ios" | "android" | "electron";
|
|
5851
5577
|
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
5578
|
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
5579
|
user_role: "read" | "upload" | "write" | "admin";
|
|
5855
5580
|
version_action: "get" | "fail" | "install" | "uninstall";
|
|
5856
5581
|
};
|
|
@@ -5948,11 +5673,9 @@ export declare const Constants: {
|
|
|
5948
5673
|
readonly credit_transaction_type: readonly ["grant", "purchase", "manual_grant", "deduction", "expiry", "refund"];
|
|
5949
5674
|
readonly cron_task_type: readonly ["function", "queue", "function_queue"];
|
|
5950
5675
|
readonly disable_update: readonly ["major", "minor", "patch", "version_number", "none"];
|
|
5951
|
-
readonly key_mode: readonly ["read", "write", "all", "upload"];
|
|
5952
5676
|
readonly platform_os: readonly ["ios", "android", "electron"];
|
|
5953
5677
|
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
5678
|
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
5679
|
readonly user_role: readonly ["read", "upload", "write", "admin"];
|
|
5957
5680
|
readonly version_action: readonly ["get", "fail", "install", "uninstall"];
|
|
5958
5681
|
};
|