@capgo/cli 8.0.0-alpha.4 → 8.0.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 +755 -75
- package/dist/index.js +1135 -311
- package/dist/keychain-export.swift +351 -0
- package/dist/package.json +120 -29
- package/dist/src/ai/analyze.d.ts +48 -0
- package/dist/src/ai/log-capture.d.ts +14 -0
- package/dist/src/ai/prompt.d.ts +1 -0
- package/dist/src/ai/render-markdown.d.ts +12 -0
- package/dist/src/ai/sse.d.ts +5 -0
- package/dist/src/ai/stream-markdown.d.ts +22 -0
- package/dist/src/ai/telemetry.d.ts +39 -0
- package/dist/src/analytics/error-category.d.ts +11 -0
- package/dist/src/analytics/org-resolver.d.ts +11 -0
- package/dist/src/analytics/supabase-perf.d.ts +48 -0
- package/dist/src/analytics/track.d.ts +70 -0
- package/dist/src/api/app.d.ts +17 -8
- package/dist/src/api/channels.d.ts +2442 -2729
- package/dist/src/api/crypto.d.ts +26 -0
- package/dist/src/api/update.d.ts +7 -1
- package/dist/src/api/versions.d.ts +9 -2
- package/dist/src/app/add.d.ts +6 -4
- package/dist/src/app/debug.d.ts +3 -7
- package/dist/src/app/delete.d.ts +1 -2
- package/dist/src/app/info.d.ts +5 -1
- package/dist/src/app/list.d.ts +23 -2
- package/dist/src/app/set.d.ts +0 -1
- package/dist/src/app/setting.d.ts +3 -9
- package/dist/src/app/updateProbe.d.ts +43 -0
- package/dist/src/build/credentials-command.d.ts +89 -0
- package/dist/src/build/credentials-manage.d.ts +7 -0
- package/dist/src/build/credentials.d.ts +78 -0
- package/dist/src/build/env-render.d.ts +8 -0
- package/dist/src/build/last-output-command.d.ts +6 -0
- package/dist/src/build/mobileprovision-parser.d.ts +35 -0
- package/dist/src/build/needed.d.ts +28 -0
- package/dist/src/build/onboarding/ai-fit.d.ts +110 -0
- package/dist/src/build/onboarding/analytics.d.ts +23 -0
- package/dist/src/build/onboarding/android/gcp-api.d.ts +128 -0
- package/dist/src/build/onboarding/android/gradle-parser.d.ts +19 -0
- package/dist/src/build/onboarding/android/keystore.d.ts +77 -0
- package/dist/src/build/onboarding/android/oauth-config.d.ts +24 -0
- package/dist/src/build/onboarding/android/oauth-google.d.ts +134 -0
- package/dist/src/build/onboarding/android/play-api.d.ts +91 -0
- package/dist/src/build/onboarding/android/progress.d.ts +22 -0
- package/dist/src/build/onboarding/android/service-account-validation.d.ts +58 -0
- package/dist/src/build/onboarding/android/types.d.ts +72 -0
- package/dist/src/build/onboarding/android/ui/app.d.ts +17 -0
- package/dist/src/build/onboarding/app-verification.d.ts +86 -0
- package/dist/src/build/onboarding/apple-api.d.ts +234 -0
- package/dist/src/build/onboarding/build-log.d.ts +10 -0
- package/dist/src/build/onboarding/bundle-id-detector.d.ts +117 -0
- package/dist/src/build/onboarding/ci-secrets.d.ts +87 -0
- package/dist/src/build/onboarding/command.d.ts +6 -0
- package/dist/src/build/onboarding/csr.d.ts +33 -0
- package/dist/src/build/onboarding/diff-utils.d.ts +24 -0
- package/dist/src/build/onboarding/env-export.d.ts +46 -0
- package/dist/src/build/onboarding/error-categories.d.ts +13 -0
- package/dist/src/build/onboarding/file-picker.d.ts +47 -0
- package/dist/src/build/onboarding/macos-signing.d.ts +190 -0
- package/dist/src/build/onboarding/min-terminal-size.d.ts +16 -0
- package/dist/src/build/onboarding/progress.d.ts +51 -0
- package/dist/src/build/onboarding/recovery.d.ts +7 -0
- package/dist/src/build/onboarding/telemetry.d.ts +28 -0
- package/dist/src/build/onboarding/types.d.ts +140 -0
- package/dist/src/build/onboarding/ui/app.d.ts +36 -0
- package/dist/src/build/onboarding/ui/completed-steps-log.d.ts +9 -0
- package/dist/src/build/onboarding/ui/components.d.ts +178 -0
- package/dist/src/build/onboarding/ui/frame-fit.d.ts +10 -0
- package/dist/src/build/onboarding/ui/min-size-gate.d.ts +20 -0
- package/dist/src/build/onboarding/ui/platform-picker.d.ts +19 -0
- package/dist/src/build/onboarding/ui/shell.d.ts +33 -0
- package/dist/src/build/onboarding/ui/steps/android-ci.d.ts +45 -0
- package/dist/src/build/onboarding/ui/steps/android-keystore.d.ts +75 -0
- package/dist/src/build/onboarding/ui/steps/android-sa-gcp.d.ts +85 -0
- package/dist/src/build/onboarding/ui/steps/android-shared.d.ts +67 -0
- package/dist/src/build/onboarding/ui/steps/ios-ci.d.ts +44 -0
- package/dist/src/build/onboarding/ui/steps/ios-credentials.d.ts +66 -0
- package/dist/src/build/onboarding/ui/steps/ios-import.d.ts +79 -0
- package/dist/src/build/onboarding/ui/steps/ios-shared.d.ts +93 -0
- package/dist/src/build/onboarding/workflow-generator.d.ts +48 -0
- package/dist/src/build/onboarding/workflow-ui-helpers.d.ts +18 -0
- package/dist/src/build/onboarding/workflow-writer.d.ts +36 -0
- package/dist/src/build/output-record.d.ts +30 -0
- package/dist/src/build/pbxproj-parser.d.ts +48 -0
- package/dist/src/build/platform-paths.d.ts +20 -0
- package/dist/src/build/qr.d.ts +5 -0
- package/dist/src/build/request.d.ts +107 -0
- package/dist/src/build/telemetry.d.ts +17 -0
- package/dist/src/bundle/builder-cta.d.ts +67 -0
- package/dist/src/bundle/check.d.ts +0 -1
- package/dist/src/bundle/cleanup.d.ts +3 -12
- package/dist/src/bundle/compatibility.d.ts +23 -12
- package/dist/src/bundle/decrypt.d.ts +4 -0
- package/dist/src/bundle/delete.d.ts +3 -8
- package/dist/src/bundle/encrypt.d.ts +4 -0
- package/dist/src/bundle/list.d.ts +5 -2
- package/dist/src/bundle/partial.d.ts +5 -3
- package/dist/src/bundle/releaseType.d.ts +15 -0
- package/dist/src/bundle/unlink.d.ts +6 -5
- package/dist/src/bundle/upload-command.d.ts +8 -0
- package/dist/src/bundle/upload.d.ts +21 -14
- package/dist/src/bundle/upload_interface.d.ts +2 -50
- package/dist/src/bundle/zip.d.ts +4 -19
- package/dist/src/capacitor-cli.d.ts +13 -0
- package/dist/src/channel/add.d.ts +8 -10
- package/dist/src/channel/currentBundle.d.ts +3 -9
- package/dist/src/channel/delete.d.ts +3 -9
- package/dist/src/channel/list.d.ts +31 -4
- package/dist/src/channel/set.d.ts +2 -17
- package/dist/src/checksum.d.ts +1 -2
- package/dist/src/config/index.d.ts +2 -13
- package/dist/src/docs.d.ts +0 -1
- package/dist/src/github-command.d.ts +9 -0
- package/dist/src/github.d.ts +40 -0
- package/dist/src/index.d.ts +0 -1
- package/dist/src/init/app-conflict.d.ts +2 -0
- package/dist/src/init/command.d.ts +57 -0
- package/dist/src/init/index.d.ts +1 -0
- package/dist/src/init/prompts.d.ts +41 -0
- package/dist/src/init/runtime.d.ts +111 -0
- package/dist/src/init/ui/app.d.ts +9 -0
- package/dist/src/init/ui/components.d.ts +31 -0
- package/dist/src/init/ui.d.ts +12 -0
- package/dist/src/init/updater.d.ts +13 -0
- package/dist/src/key.d.ts +16 -0
- package/dist/src/login.d.ts +0 -1
- package/dist/src/mcp/server.d.ts +5 -0
- package/dist/src/onboarding-support.d.ts +18 -0
- package/dist/src/organization/add.d.ts +26 -0
- package/dist/src/organization/delete.d.ts +3 -0
- package/dist/src/{organisation → organization}/index.d.ts +1 -1
- package/dist/src/{organisation → organization}/list.d.ts +14 -2
- package/dist/src/organization/members.d.ts +12 -0
- package/dist/src/organization/set.d.ts +21 -0
- package/dist/src/posthog.d.ts +13 -0
- package/dist/src/probe.d.ts +20 -0
- package/dist/src/promptPreferences.d.ts +13 -0
- package/dist/src/replicationProgress.d.ts +8 -0
- package/dist/src/run/device.d.ts +5 -0
- package/dist/src/runner-command.d.ts +5 -0
- package/dist/src/schemas/app.d.ts +26 -0
- package/dist/src/schemas/base.d.ts +7 -0
- package/dist/src/schemas/build.d.ts +196 -0
- package/dist/src/schemas/bundle.d.ts +157 -0
- package/dist/src/schemas/channel.d.ts +62 -0
- package/dist/src/schemas/common.d.ts +46 -0
- package/dist/src/schemas/config.d.ts +20 -0
- package/dist/src/schemas/index.d.ts +19 -0
- package/dist/src/schemas/organization.d.ts +41 -0
- package/dist/src/schemas/sdk.d.ts +335 -0
- package/dist/src/schemas/validate.d.ts +12 -0
- package/dist/src/sdk.d.ts +138 -317
- package/dist/src/sdk.js +542 -299
- package/dist/src/terminal-table.d.ts +7 -0
- package/dist/src/types/supabase.types.d.ts +2770 -296
- package/dist/src/updaterConfig.d.ts +8 -0
- package/dist/src/user/account.d.ts +0 -1
- package/dist/src/utils/latest-version.d.ts +0 -1
- package/dist/src/utils/safeWrites.d.ts +21 -0
- package/dist/src/utils/security_policy_errors.d.ts +47 -0
- package/dist/src/utils.d.ts +2869 -341
- package/dist/src/versionHelpers.d.ts +19 -0
- package/package.json +120 -29
- package/skills/native-builds/SKILL.md +255 -0
- package/skills/organization-management/SKILL.md +93 -0
- package/skills/release-management/SKILL.md +225 -0
- package/skills/usage/SKILL.md +92 -0
- package/dist/src/api/app.d.ts.map +0 -1
- package/dist/src/api/channels.d.ts.map +0 -1
- package/dist/src/api/cryptoV2.d.ts +0 -16
- package/dist/src/api/cryptoV2.d.ts.map +0 -1
- package/dist/src/api/update.d.ts.map +0 -1
- package/dist/src/api/versions.d.ts.map +0 -1
- package/dist/src/app/add.d.ts.map +0 -1
- package/dist/src/app/debug.d.ts.map +0 -1
- package/dist/src/app/delete.d.ts.map +0 -1
- package/dist/src/app/info.d.ts.map +0 -1
- package/dist/src/app/list.d.ts.map +0 -1
- package/dist/src/app/set.d.ts.map +0 -1
- package/dist/src/app/setting.d.ts.map +0 -1
- package/dist/src/bundle/check.d.ts.map +0 -1
- package/dist/src/bundle/cleanup.d.ts.map +0 -1
- package/dist/src/bundle/compatibility.d.ts.map +0 -1
- package/dist/src/bundle/decryptV2.d.ts +0 -13
- package/dist/src/bundle/decryptV2.d.ts.map +0 -1
- package/dist/src/bundle/delete.d.ts.map +0 -1
- package/dist/src/bundle/encryptV2.d.ts +0 -14
- package/dist/src/bundle/encryptV2.d.ts.map +0 -1
- package/dist/src/bundle/list.d.ts.map +0 -1
- package/dist/src/bundle/partial.d.ts.map +0 -1
- package/dist/src/bundle/unlink.d.ts.map +0 -1
- package/dist/src/bundle/upload.d.ts.map +0 -1
- package/dist/src/bundle/upload_interface.d.ts.map +0 -1
- package/dist/src/bundle/zip.d.ts.map +0 -1
- package/dist/src/channel/add.d.ts.map +0 -1
- package/dist/src/channel/currentBundle.d.ts.map +0 -1
- package/dist/src/channel/delete.d.ts.map +0 -1
- package/dist/src/channel/list.d.ts.map +0 -1
- package/dist/src/channel/set.d.ts.map +0 -1
- package/dist/src/checksum.d.ts.map +0 -1
- package/dist/src/config/index.d.ts.map +0 -1
- package/dist/src/docs.d.ts.map +0 -1
- package/dist/src/index.d.ts.map +0 -1
- package/dist/src/init.d.ts +0 -7
- package/dist/src/init.d.ts.map +0 -1
- package/dist/src/keyV2.d.ts +0 -19
- package/dist/src/keyV2.d.ts.map +0 -1
- package/dist/src/login.d.ts.map +0 -1
- package/dist/src/organisation/add.d.ts +0 -19
- package/dist/src/organisation/add.d.ts.map +0 -1
- package/dist/src/organisation/delete.d.ts +0 -8
- package/dist/src/organisation/delete.d.ts.map +0 -1
- package/dist/src/organisation/index.d.ts.map +0 -1
- package/dist/src/organisation/list.d.ts.map +0 -1
- package/dist/src/organisation/set.d.ts +0 -13
- package/dist/src/organisation/set.d.ts.map +0 -1
- package/dist/src/sdk.d.ts.map +0 -1
- package/dist/src/types/supabase.types.d.ts.map +0 -1
- package/dist/src/user/account.d.ts.map +0 -1
- package/dist/src/utils/latest-version.d.ts.map +0 -1
- package/dist/src/utils.d.ts.map +0 -1
|
@@ -3,41 +3,50 @@ export type Json = string | number | boolean | null | {
|
|
|
3
3
|
} | Json[];
|
|
4
4
|
export type Database = {
|
|
5
5
|
__InternalSupabase: {
|
|
6
|
-
PostgrestVersion: "
|
|
6
|
+
PostgrestVersion: "14.1";
|
|
7
7
|
};
|
|
8
8
|
public: {
|
|
9
9
|
Tables: {
|
|
10
10
|
apikeys: {
|
|
11
11
|
Row: {
|
|
12
12
|
created_at: string | null;
|
|
13
|
+
expires_at: string | null;
|
|
13
14
|
id: number;
|
|
14
|
-
key: string;
|
|
15
|
+
key: string | null;
|
|
16
|
+
key_hash: string | null;
|
|
15
17
|
limited_to_apps: string[] | null;
|
|
16
18
|
limited_to_orgs: string[] | null;
|
|
17
19
|
mode: Database["public"]["Enums"]["key_mode"];
|
|
18
20
|
name: string;
|
|
21
|
+
rbac_id: string;
|
|
19
22
|
updated_at: string | null;
|
|
20
23
|
user_id: string;
|
|
21
24
|
};
|
|
22
25
|
Insert: {
|
|
23
26
|
created_at?: string | null;
|
|
27
|
+
expires_at?: string | null;
|
|
24
28
|
id?: number;
|
|
25
|
-
key
|
|
29
|
+
key?: string | null;
|
|
30
|
+
key_hash?: string | null;
|
|
26
31
|
limited_to_apps?: string[] | null;
|
|
27
32
|
limited_to_orgs?: string[] | null;
|
|
28
33
|
mode: Database["public"]["Enums"]["key_mode"];
|
|
29
34
|
name: string;
|
|
35
|
+
rbac_id?: string;
|
|
30
36
|
updated_at?: string | null;
|
|
31
37
|
user_id: string;
|
|
32
38
|
};
|
|
33
39
|
Update: {
|
|
34
40
|
created_at?: string | null;
|
|
41
|
+
expires_at?: string | null;
|
|
35
42
|
id?: number;
|
|
36
|
-
key?: string;
|
|
43
|
+
key?: string | null;
|
|
44
|
+
key_hash?: string | null;
|
|
37
45
|
limited_to_apps?: string[] | null;
|
|
38
46
|
limited_to_orgs?: string[] | null;
|
|
39
47
|
mode?: Database["public"]["Enums"]["key_mode"];
|
|
40
48
|
name?: string;
|
|
49
|
+
rbac_id?: string;
|
|
41
50
|
updated_at?: string | null;
|
|
42
51
|
user_id?: string;
|
|
43
52
|
};
|
|
@@ -90,13 +99,17 @@ export type Database = {
|
|
|
90
99
|
Row: {
|
|
91
100
|
app_id: string;
|
|
92
101
|
checksum: string | null;
|
|
102
|
+
cli_version: string | null;
|
|
93
103
|
comment: string | null;
|
|
94
104
|
created_at: string | null;
|
|
95
105
|
deleted: boolean;
|
|
106
|
+
deleted_at: string | null;
|
|
96
107
|
external_url: string | null;
|
|
97
108
|
id: number;
|
|
109
|
+
key_id: string | null;
|
|
98
110
|
link: string | null;
|
|
99
111
|
manifest: Database["public"]["CompositeTypes"]["manifest_entry"][] | null;
|
|
112
|
+
manifest_count: number;
|
|
100
113
|
min_update_version: string | null;
|
|
101
114
|
name: string;
|
|
102
115
|
native_packages: Json[] | null;
|
|
@@ -110,13 +123,17 @@ export type Database = {
|
|
|
110
123
|
Insert: {
|
|
111
124
|
app_id: string;
|
|
112
125
|
checksum?: string | null;
|
|
126
|
+
cli_version?: string | null;
|
|
113
127
|
comment?: string | null;
|
|
114
128
|
created_at?: string | null;
|
|
115
129
|
deleted?: boolean;
|
|
130
|
+
deleted_at?: string | null;
|
|
116
131
|
external_url?: string | null;
|
|
117
132
|
id?: number;
|
|
133
|
+
key_id?: string | null;
|
|
118
134
|
link?: string | null;
|
|
119
135
|
manifest?: Database["public"]["CompositeTypes"]["manifest_entry"][] | null;
|
|
136
|
+
manifest_count?: number;
|
|
120
137
|
min_update_version?: string | null;
|
|
121
138
|
name: string;
|
|
122
139
|
native_packages?: Json[] | null;
|
|
@@ -130,13 +147,17 @@ export type Database = {
|
|
|
130
147
|
Update: {
|
|
131
148
|
app_id?: string;
|
|
132
149
|
checksum?: string | null;
|
|
150
|
+
cli_version?: string | null;
|
|
133
151
|
comment?: string | null;
|
|
134
152
|
created_at?: string | null;
|
|
135
153
|
deleted?: boolean;
|
|
154
|
+
deleted_at?: string | null;
|
|
136
155
|
external_url?: string | null;
|
|
137
156
|
id?: number;
|
|
157
|
+
key_id?: string | null;
|
|
138
158
|
link?: string | null;
|
|
139
159
|
manifest?: Database["public"]["CompositeTypes"]["manifest_entry"][] | null;
|
|
160
|
+
manifest_count?: number;
|
|
140
161
|
min_update_version?: string | null;
|
|
141
162
|
name?: string;
|
|
142
163
|
native_packages?: Json[] | null;
|
|
@@ -218,49 +239,82 @@ export type Database = {
|
|
|
218
239
|
};
|
|
219
240
|
apps: {
|
|
220
241
|
Row: {
|
|
242
|
+
allow_device_custom_id: boolean;
|
|
243
|
+
allow_preview: boolean;
|
|
244
|
+
android_store_url: string | null;
|
|
221
245
|
app_id: string;
|
|
246
|
+
build_timeout_seconds: number;
|
|
247
|
+
build_timeout_updated_at: string;
|
|
222
248
|
channel_device_count: number;
|
|
223
249
|
created_at: string | null;
|
|
224
250
|
default_upload_channel: string;
|
|
251
|
+
existing_app: boolean;
|
|
252
|
+
expose_metadata: boolean;
|
|
225
253
|
icon_url: string;
|
|
226
254
|
id: string | null;
|
|
255
|
+
ios_store_url: string | null;
|
|
227
256
|
last_version: string | null;
|
|
228
257
|
manifest_bundle_count: number;
|
|
229
258
|
name: string | null;
|
|
259
|
+
need_onboarding: boolean;
|
|
230
260
|
owner_org: string;
|
|
231
261
|
retention: number;
|
|
262
|
+
stats_refresh_requested_at: string | null;
|
|
263
|
+
stats_updated_at: string | null;
|
|
232
264
|
transfer_history: Json[] | null;
|
|
233
265
|
updated_at: string | null;
|
|
234
266
|
user_id: string | null;
|
|
235
267
|
};
|
|
236
268
|
Insert: {
|
|
269
|
+
allow_device_custom_id?: boolean;
|
|
270
|
+
allow_preview?: boolean;
|
|
271
|
+
android_store_url?: string | null;
|
|
237
272
|
app_id: string;
|
|
273
|
+
build_timeout_seconds?: number;
|
|
274
|
+
build_timeout_updated_at?: string;
|
|
238
275
|
channel_device_count?: number;
|
|
239
276
|
created_at?: string | null;
|
|
240
277
|
default_upload_channel?: string;
|
|
278
|
+
existing_app?: boolean;
|
|
279
|
+
expose_metadata?: boolean;
|
|
241
280
|
icon_url: string;
|
|
242
281
|
id?: string | null;
|
|
282
|
+
ios_store_url?: string | null;
|
|
243
283
|
last_version?: string | null;
|
|
244
284
|
manifest_bundle_count?: number;
|
|
245
285
|
name?: string | null;
|
|
286
|
+
need_onboarding?: boolean;
|
|
246
287
|
owner_org: string;
|
|
247
288
|
retention?: number;
|
|
289
|
+
stats_refresh_requested_at?: string | null;
|
|
290
|
+
stats_updated_at?: string | null;
|
|
248
291
|
transfer_history?: Json[] | null;
|
|
249
292
|
updated_at?: string | null;
|
|
250
293
|
user_id?: string | null;
|
|
251
294
|
};
|
|
252
295
|
Update: {
|
|
296
|
+
allow_device_custom_id?: boolean;
|
|
297
|
+
allow_preview?: boolean;
|
|
298
|
+
android_store_url?: string | null;
|
|
253
299
|
app_id?: string;
|
|
300
|
+
build_timeout_seconds?: number;
|
|
301
|
+
build_timeout_updated_at?: string;
|
|
254
302
|
channel_device_count?: number;
|
|
255
303
|
created_at?: string | null;
|
|
256
304
|
default_upload_channel?: string;
|
|
305
|
+
existing_app?: boolean;
|
|
306
|
+
expose_metadata?: boolean;
|
|
257
307
|
icon_url?: string;
|
|
258
308
|
id?: string | null;
|
|
309
|
+
ios_store_url?: string | null;
|
|
259
310
|
last_version?: string | null;
|
|
260
311
|
manifest_bundle_count?: number;
|
|
261
312
|
name?: string | null;
|
|
313
|
+
need_onboarding?: boolean;
|
|
262
314
|
owner_org?: string;
|
|
263
315
|
retention?: number;
|
|
316
|
+
stats_refresh_requested_at?: string | null;
|
|
317
|
+
stats_updated_at?: string | null;
|
|
264
318
|
transfer_history?: Json[] | null;
|
|
265
319
|
updated_at?: string | null;
|
|
266
320
|
user_id?: string | null;
|
|
@@ -282,6 +336,60 @@ export type Database = {
|
|
|
282
336
|
}
|
|
283
337
|
];
|
|
284
338
|
};
|
|
339
|
+
audit_logs: {
|
|
340
|
+
Row: {
|
|
341
|
+
changed_fields: string[] | null;
|
|
342
|
+
created_at: string;
|
|
343
|
+
id: number;
|
|
344
|
+
new_record: Json | null;
|
|
345
|
+
old_record: Json | null;
|
|
346
|
+
operation: string;
|
|
347
|
+
org_id: string;
|
|
348
|
+
record_id: string;
|
|
349
|
+
table_name: string;
|
|
350
|
+
user_id: string | null;
|
|
351
|
+
};
|
|
352
|
+
Insert: {
|
|
353
|
+
changed_fields?: string[] | null;
|
|
354
|
+
created_at?: string;
|
|
355
|
+
id?: number;
|
|
356
|
+
new_record?: Json | null;
|
|
357
|
+
old_record?: Json | null;
|
|
358
|
+
operation: string;
|
|
359
|
+
org_id: string;
|
|
360
|
+
record_id: string;
|
|
361
|
+
table_name: string;
|
|
362
|
+
user_id?: string | null;
|
|
363
|
+
};
|
|
364
|
+
Update: {
|
|
365
|
+
changed_fields?: string[] | null;
|
|
366
|
+
created_at?: string;
|
|
367
|
+
id?: number;
|
|
368
|
+
new_record?: Json | null;
|
|
369
|
+
old_record?: Json | null;
|
|
370
|
+
operation?: string;
|
|
371
|
+
org_id?: string;
|
|
372
|
+
record_id?: string;
|
|
373
|
+
table_name?: string;
|
|
374
|
+
user_id?: string | null;
|
|
375
|
+
};
|
|
376
|
+
Relationships: [
|
|
377
|
+
{
|
|
378
|
+
foreignKeyName: "audit_logs_org_id_fkey";
|
|
379
|
+
columns: ["org_id"];
|
|
380
|
+
isOneToOne: false;
|
|
381
|
+
referencedRelation: "orgs";
|
|
382
|
+
referencedColumns: ["id"];
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
foreignKeyName: "audit_logs_user_id_fkey";
|
|
386
|
+
columns: ["user_id"];
|
|
387
|
+
isOneToOne: false;
|
|
388
|
+
referencedRelation: "users";
|
|
389
|
+
referencedColumns: ["id"];
|
|
390
|
+
}
|
|
391
|
+
];
|
|
392
|
+
};
|
|
285
393
|
bandwidth_usage: {
|
|
286
394
|
Row: {
|
|
287
395
|
app_id: string;
|
|
@@ -306,6 +414,132 @@ export type Database = {
|
|
|
306
414
|
};
|
|
307
415
|
Relationships: [];
|
|
308
416
|
};
|
|
417
|
+
build_logs: {
|
|
418
|
+
Row: {
|
|
419
|
+
app_id: string | null;
|
|
420
|
+
billable_seconds: number;
|
|
421
|
+
build_id: string;
|
|
422
|
+
build_time_unit: number;
|
|
423
|
+
created_at: string;
|
|
424
|
+
id: string;
|
|
425
|
+
org_id: string;
|
|
426
|
+
platform: string;
|
|
427
|
+
user_id: string | null;
|
|
428
|
+
};
|
|
429
|
+
Insert: {
|
|
430
|
+
app_id?: string | null;
|
|
431
|
+
billable_seconds: number;
|
|
432
|
+
build_id: string;
|
|
433
|
+
build_time_unit: number;
|
|
434
|
+
created_at?: string;
|
|
435
|
+
id?: string;
|
|
436
|
+
org_id: string;
|
|
437
|
+
platform: string;
|
|
438
|
+
user_id?: string | null;
|
|
439
|
+
};
|
|
440
|
+
Update: {
|
|
441
|
+
app_id?: string | null;
|
|
442
|
+
billable_seconds?: number;
|
|
443
|
+
build_id?: string;
|
|
444
|
+
build_time_unit?: number;
|
|
445
|
+
created_at?: string;
|
|
446
|
+
id?: string;
|
|
447
|
+
org_id?: string;
|
|
448
|
+
platform?: string;
|
|
449
|
+
user_id?: string | null;
|
|
450
|
+
};
|
|
451
|
+
Relationships: [
|
|
452
|
+
{
|
|
453
|
+
foreignKeyName: "build_logs_app_id_fkey";
|
|
454
|
+
columns: ["app_id"];
|
|
455
|
+
isOneToOne: false;
|
|
456
|
+
referencedRelation: "apps";
|
|
457
|
+
referencedColumns: ["app_id"];
|
|
458
|
+
},
|
|
459
|
+
{
|
|
460
|
+
foreignKeyName: "build_logs_org_id_fkey";
|
|
461
|
+
columns: ["org_id"];
|
|
462
|
+
isOneToOne: false;
|
|
463
|
+
referencedRelation: "orgs";
|
|
464
|
+
referencedColumns: ["id"];
|
|
465
|
+
}
|
|
466
|
+
];
|
|
467
|
+
};
|
|
468
|
+
build_requests: {
|
|
469
|
+
Row: {
|
|
470
|
+
app_id: string;
|
|
471
|
+
build_config: Json | null;
|
|
472
|
+
build_mode: string;
|
|
473
|
+
builder_job_id: string | null;
|
|
474
|
+
created_at: string;
|
|
475
|
+
id: string;
|
|
476
|
+
last_error: string | null;
|
|
477
|
+
owner_org: string;
|
|
478
|
+
platform: string;
|
|
479
|
+
requested_by: string;
|
|
480
|
+
runner_wait_seconds: number;
|
|
481
|
+
status: string;
|
|
482
|
+
updated_at: string;
|
|
483
|
+
upload_expires_at: string;
|
|
484
|
+
upload_path: string;
|
|
485
|
+
upload_session_key: string;
|
|
486
|
+
upload_url: string;
|
|
487
|
+
};
|
|
488
|
+
Insert: {
|
|
489
|
+
app_id: string;
|
|
490
|
+
build_config?: Json | null;
|
|
491
|
+
build_mode?: string;
|
|
492
|
+
builder_job_id?: string | null;
|
|
493
|
+
created_at?: string;
|
|
494
|
+
id?: string;
|
|
495
|
+
last_error?: string | null;
|
|
496
|
+
owner_org: string;
|
|
497
|
+
platform: string;
|
|
498
|
+
requested_by: string;
|
|
499
|
+
runner_wait_seconds?: number;
|
|
500
|
+
status?: string;
|
|
501
|
+
updated_at?: string;
|
|
502
|
+
upload_expires_at: string;
|
|
503
|
+
upload_path: string;
|
|
504
|
+
upload_session_key: string;
|
|
505
|
+
upload_url: string;
|
|
506
|
+
};
|
|
507
|
+
Update: {
|
|
508
|
+
app_id?: string;
|
|
509
|
+
build_config?: Json | null;
|
|
510
|
+
build_mode?: string;
|
|
511
|
+
builder_job_id?: string | null;
|
|
512
|
+
created_at?: string;
|
|
513
|
+
id?: string;
|
|
514
|
+
last_error?: string | null;
|
|
515
|
+
owner_org?: string;
|
|
516
|
+
platform?: string;
|
|
517
|
+
requested_by?: string;
|
|
518
|
+
runner_wait_seconds?: number;
|
|
519
|
+
status?: string;
|
|
520
|
+
updated_at?: string;
|
|
521
|
+
upload_expires_at?: string;
|
|
522
|
+
upload_path?: string;
|
|
523
|
+
upload_session_key?: string;
|
|
524
|
+
upload_url?: string;
|
|
525
|
+
};
|
|
526
|
+
Relationships: [
|
|
527
|
+
{
|
|
528
|
+
foreignKeyName: "build_requests_app_id_fkey";
|
|
529
|
+
columns: ["app_id"];
|
|
530
|
+
isOneToOne: false;
|
|
531
|
+
referencedRelation: "apps";
|
|
532
|
+
referencedColumns: ["app_id"];
|
|
533
|
+
},
|
|
534
|
+
{
|
|
535
|
+
foreignKeyName: "build_requests_owner_org_fkey";
|
|
536
|
+
columns: ["owner_org"];
|
|
537
|
+
isOneToOne: false;
|
|
538
|
+
referencedRelation: "orgs";
|
|
539
|
+
referencedColumns: ["id"];
|
|
540
|
+
}
|
|
541
|
+
];
|
|
542
|
+
};
|
|
309
543
|
capgo_credits_steps: {
|
|
310
544
|
Row: {
|
|
311
545
|
created_at: string;
|
|
@@ -402,60 +636,117 @@ export type Database = {
|
|
|
402
636
|
}
|
|
403
637
|
];
|
|
404
638
|
};
|
|
639
|
+
channel_permission_overrides: {
|
|
640
|
+
Row: {
|
|
641
|
+
channel_id: number;
|
|
642
|
+
created_at: string;
|
|
643
|
+
id: string;
|
|
644
|
+
is_allowed: boolean;
|
|
645
|
+
permission_key: string;
|
|
646
|
+
principal_id: string;
|
|
647
|
+
principal_type: string;
|
|
648
|
+
};
|
|
649
|
+
Insert: {
|
|
650
|
+
channel_id: number;
|
|
651
|
+
created_at?: string;
|
|
652
|
+
id?: string;
|
|
653
|
+
is_allowed: boolean;
|
|
654
|
+
permission_key: string;
|
|
655
|
+
principal_id: string;
|
|
656
|
+
principal_type: string;
|
|
657
|
+
};
|
|
658
|
+
Update: {
|
|
659
|
+
channel_id?: number;
|
|
660
|
+
created_at?: string;
|
|
661
|
+
id?: string;
|
|
662
|
+
is_allowed?: boolean;
|
|
663
|
+
permission_key?: string;
|
|
664
|
+
principal_id?: string;
|
|
665
|
+
principal_type?: string;
|
|
666
|
+
};
|
|
667
|
+
Relationships: [
|
|
668
|
+
{
|
|
669
|
+
foreignKeyName: "channel_permission_overrides_channel_id_fkey";
|
|
670
|
+
columns: ["channel_id"];
|
|
671
|
+
isOneToOne: false;
|
|
672
|
+
referencedRelation: "channels";
|
|
673
|
+
referencedColumns: ["id"];
|
|
674
|
+
},
|
|
675
|
+
{
|
|
676
|
+
foreignKeyName: "channel_permission_overrides_permission_key_fkey";
|
|
677
|
+
columns: ["permission_key"];
|
|
678
|
+
isOneToOne: false;
|
|
679
|
+
referencedRelation: "permissions";
|
|
680
|
+
referencedColumns: ["key"];
|
|
681
|
+
}
|
|
682
|
+
];
|
|
683
|
+
};
|
|
405
684
|
channels: {
|
|
406
685
|
Row: {
|
|
407
686
|
allow_dev: boolean;
|
|
687
|
+
allow_device: boolean;
|
|
408
688
|
allow_device_self_set: boolean;
|
|
409
689
|
allow_emulator: boolean;
|
|
690
|
+
allow_prod: boolean;
|
|
410
691
|
android: boolean;
|
|
411
692
|
app_id: string;
|
|
412
693
|
created_at: string;
|
|
413
694
|
created_by: string;
|
|
414
695
|
disable_auto_update: Database["public"]["Enums"]["disable_update"];
|
|
415
696
|
disable_auto_update_under_native: boolean;
|
|
697
|
+
electron: boolean;
|
|
416
698
|
id: number;
|
|
417
699
|
ios: boolean;
|
|
418
700
|
name: string;
|
|
419
701
|
owner_org: string;
|
|
420
702
|
public: boolean;
|
|
703
|
+
rbac_id: string;
|
|
421
704
|
updated_at: string;
|
|
422
|
-
version: number;
|
|
705
|
+
version: number | null;
|
|
423
706
|
};
|
|
424
707
|
Insert: {
|
|
425
708
|
allow_dev?: boolean;
|
|
709
|
+
allow_device?: boolean;
|
|
426
710
|
allow_device_self_set?: boolean;
|
|
427
711
|
allow_emulator?: boolean;
|
|
712
|
+
allow_prod?: boolean;
|
|
428
713
|
android?: boolean;
|
|
429
714
|
app_id: string;
|
|
430
715
|
created_at?: string;
|
|
431
716
|
created_by: string;
|
|
432
717
|
disable_auto_update?: Database["public"]["Enums"]["disable_update"];
|
|
433
718
|
disable_auto_update_under_native?: boolean;
|
|
719
|
+
electron?: boolean;
|
|
434
720
|
id?: number;
|
|
435
721
|
ios?: boolean;
|
|
436
722
|
name: string;
|
|
437
723
|
owner_org: string;
|
|
438
724
|
public?: boolean;
|
|
725
|
+
rbac_id?: string;
|
|
439
726
|
updated_at?: string;
|
|
440
|
-
version
|
|
727
|
+
version?: number | null;
|
|
441
728
|
};
|
|
442
729
|
Update: {
|
|
443
730
|
allow_dev?: boolean;
|
|
731
|
+
allow_device?: boolean;
|
|
444
732
|
allow_device_self_set?: boolean;
|
|
445
733
|
allow_emulator?: boolean;
|
|
734
|
+
allow_prod?: boolean;
|
|
446
735
|
android?: boolean;
|
|
447
736
|
app_id?: string;
|
|
448
737
|
created_at?: string;
|
|
449
738
|
created_by?: string;
|
|
450
739
|
disable_auto_update?: Database["public"]["Enums"]["disable_update"];
|
|
451
740
|
disable_auto_update_under_native?: boolean;
|
|
741
|
+
electron?: boolean;
|
|
452
742
|
id?: number;
|
|
453
743
|
ios?: boolean;
|
|
454
744
|
name?: string;
|
|
455
745
|
owner_org?: string;
|
|
456
746
|
public?: boolean;
|
|
747
|
+
rbac_id?: string;
|
|
457
748
|
updated_at?: string;
|
|
458
|
-
version?: number;
|
|
749
|
+
version?: number | null;
|
|
459
750
|
};
|
|
460
751
|
Relationships: [
|
|
461
752
|
{
|
|
@@ -481,6 +772,69 @@ export type Database = {
|
|
|
481
772
|
}
|
|
482
773
|
];
|
|
483
774
|
};
|
|
775
|
+
cron_tasks: {
|
|
776
|
+
Row: {
|
|
777
|
+
batch_size: number | null;
|
|
778
|
+
created_at: string;
|
|
779
|
+
description: string | null;
|
|
780
|
+
enabled: boolean;
|
|
781
|
+
hour_interval: number | null;
|
|
782
|
+
id: number;
|
|
783
|
+
minute_interval: number | null;
|
|
784
|
+
name: string;
|
|
785
|
+
payload: Json | null;
|
|
786
|
+
run_at_hour: number | null;
|
|
787
|
+
run_at_minute: number | null;
|
|
788
|
+
run_at_second: number | null;
|
|
789
|
+
run_on_day: number | null;
|
|
790
|
+
run_on_dow: number | null;
|
|
791
|
+
second_interval: number | null;
|
|
792
|
+
target: string;
|
|
793
|
+
task_type: Database["public"]["Enums"]["cron_task_type"];
|
|
794
|
+
updated_at: string;
|
|
795
|
+
};
|
|
796
|
+
Insert: {
|
|
797
|
+
batch_size?: number | null;
|
|
798
|
+
created_at?: string;
|
|
799
|
+
description?: string | null;
|
|
800
|
+
enabled?: boolean;
|
|
801
|
+
hour_interval?: number | null;
|
|
802
|
+
id?: number;
|
|
803
|
+
minute_interval?: number | null;
|
|
804
|
+
name: string;
|
|
805
|
+
payload?: Json | null;
|
|
806
|
+
run_at_hour?: number | null;
|
|
807
|
+
run_at_minute?: number | null;
|
|
808
|
+
run_at_second?: number | null;
|
|
809
|
+
run_on_day?: number | null;
|
|
810
|
+
run_on_dow?: number | null;
|
|
811
|
+
second_interval?: number | null;
|
|
812
|
+
target: string;
|
|
813
|
+
task_type?: Database["public"]["Enums"]["cron_task_type"];
|
|
814
|
+
updated_at?: string;
|
|
815
|
+
};
|
|
816
|
+
Update: {
|
|
817
|
+
batch_size?: number | null;
|
|
818
|
+
created_at?: string;
|
|
819
|
+
description?: string | null;
|
|
820
|
+
enabled?: boolean;
|
|
821
|
+
hour_interval?: number | null;
|
|
822
|
+
id?: number;
|
|
823
|
+
minute_interval?: number | null;
|
|
824
|
+
name?: string;
|
|
825
|
+
payload?: Json | null;
|
|
826
|
+
run_at_hour?: number | null;
|
|
827
|
+
run_at_minute?: number | null;
|
|
828
|
+
run_at_second?: number | null;
|
|
829
|
+
run_on_day?: number | null;
|
|
830
|
+
run_on_dow?: number | null;
|
|
831
|
+
second_interval?: number | null;
|
|
832
|
+
target?: string;
|
|
833
|
+
task_type?: Database["public"]["Enums"]["cron_task_type"];
|
|
834
|
+
updated_at?: string;
|
|
835
|
+
};
|
|
836
|
+
Relationships: [];
|
|
837
|
+
};
|
|
484
838
|
daily_bandwidth: {
|
|
485
839
|
Row: {
|
|
486
840
|
app_id: string;
|
|
@@ -502,6 +856,35 @@ export type Database = {
|
|
|
502
856
|
};
|
|
503
857
|
Relationships: [];
|
|
504
858
|
};
|
|
859
|
+
daily_build_time: {
|
|
860
|
+
Row: {
|
|
861
|
+
app_id: string;
|
|
862
|
+
build_count: number;
|
|
863
|
+
build_time_unit: number;
|
|
864
|
+
date: string;
|
|
865
|
+
};
|
|
866
|
+
Insert: {
|
|
867
|
+
app_id: string;
|
|
868
|
+
build_count?: number;
|
|
869
|
+
build_time_unit?: number;
|
|
870
|
+
date: string;
|
|
871
|
+
};
|
|
872
|
+
Update: {
|
|
873
|
+
app_id?: string;
|
|
874
|
+
build_count?: number;
|
|
875
|
+
build_time_unit?: number;
|
|
876
|
+
date?: string;
|
|
877
|
+
};
|
|
878
|
+
Relationships: [
|
|
879
|
+
{
|
|
880
|
+
foreignKeyName: "daily_build_time_app_id_fkey";
|
|
881
|
+
columns: ["app_id"];
|
|
882
|
+
isOneToOne: false;
|
|
883
|
+
referencedRelation: "apps";
|
|
884
|
+
referencedColumns: ["app_id"];
|
|
885
|
+
}
|
|
886
|
+
];
|
|
887
|
+
};
|
|
505
888
|
daily_mau: {
|
|
506
889
|
Row: {
|
|
507
890
|
app_id: string;
|
|
@@ -523,6 +906,42 @@ export type Database = {
|
|
|
523
906
|
};
|
|
524
907
|
Relationships: [];
|
|
525
908
|
};
|
|
909
|
+
daily_revenue_metrics: {
|
|
910
|
+
Row: {
|
|
911
|
+
churn_mrr: number;
|
|
912
|
+
contraction_mrr: number;
|
|
913
|
+
created_at: string;
|
|
914
|
+
customer_id: string;
|
|
915
|
+
date_id: string;
|
|
916
|
+
expansion_mrr: number;
|
|
917
|
+
new_business_mrr: number;
|
|
918
|
+
opening_mrr: number;
|
|
919
|
+
updated_at: string;
|
|
920
|
+
};
|
|
921
|
+
Insert: {
|
|
922
|
+
churn_mrr?: number;
|
|
923
|
+
contraction_mrr?: number;
|
|
924
|
+
created_at?: string;
|
|
925
|
+
customer_id: string;
|
|
926
|
+
date_id: string;
|
|
927
|
+
expansion_mrr?: number;
|
|
928
|
+
new_business_mrr?: number;
|
|
929
|
+
opening_mrr?: number;
|
|
930
|
+
updated_at?: string;
|
|
931
|
+
};
|
|
932
|
+
Update: {
|
|
933
|
+
churn_mrr?: number;
|
|
934
|
+
contraction_mrr?: number;
|
|
935
|
+
created_at?: string;
|
|
936
|
+
customer_id?: string;
|
|
937
|
+
date_id?: string;
|
|
938
|
+
expansion_mrr?: number;
|
|
939
|
+
new_business_mrr?: number;
|
|
940
|
+
opening_mrr?: number;
|
|
941
|
+
updated_at?: string;
|
|
942
|
+
};
|
|
943
|
+
Relationships: [];
|
|
944
|
+
};
|
|
526
945
|
daily_storage: {
|
|
527
946
|
Row: {
|
|
528
947
|
app_id: string;
|
|
@@ -552,7 +971,8 @@ export type Database = {
|
|
|
552
971
|
get: number | null;
|
|
553
972
|
install: number | null;
|
|
554
973
|
uninstall: number | null;
|
|
555
|
-
version_id: number;
|
|
974
|
+
version_id: number | null;
|
|
975
|
+
version_name: string;
|
|
556
976
|
};
|
|
557
977
|
Insert: {
|
|
558
978
|
app_id: string;
|
|
@@ -561,7 +981,8 @@ export type Database = {
|
|
|
561
981
|
get?: number | null;
|
|
562
982
|
install?: number | null;
|
|
563
983
|
uninstall?: number | null;
|
|
564
|
-
version_id
|
|
984
|
+
version_id?: number | null;
|
|
985
|
+
version_name: string;
|
|
565
986
|
};
|
|
566
987
|
Update: {
|
|
567
988
|
app_id?: string;
|
|
@@ -570,7 +991,8 @@ export type Database = {
|
|
|
570
991
|
get?: number | null;
|
|
571
992
|
install?: number | null;
|
|
572
993
|
uninstall?: number | null;
|
|
573
|
-
version_id?: number;
|
|
994
|
+
version_id?: number | null;
|
|
995
|
+
version_name?: string;
|
|
574
996
|
};
|
|
575
997
|
Relationships: [];
|
|
576
998
|
};
|
|
@@ -624,6 +1046,7 @@ export type Database = {
|
|
|
624
1046
|
created_by: string;
|
|
625
1047
|
deployed_at: string | null;
|
|
626
1048
|
id: number;
|
|
1049
|
+
install_stats_email_sent_at: string | null;
|
|
627
1050
|
owner_org: string;
|
|
628
1051
|
updated_at: string | null;
|
|
629
1052
|
version_id: number;
|
|
@@ -635,6 +1058,7 @@ export type Database = {
|
|
|
635
1058
|
created_by: string;
|
|
636
1059
|
deployed_at?: string | null;
|
|
637
1060
|
id?: number;
|
|
1061
|
+
install_stats_email_sent_at?: string | null;
|
|
638
1062
|
owner_org: string;
|
|
639
1063
|
updated_at?: string | null;
|
|
640
1064
|
version_id: number;
|
|
@@ -646,6 +1070,7 @@ export type Database = {
|
|
|
646
1070
|
created_by?: string;
|
|
647
1071
|
deployed_at?: string | null;
|
|
648
1072
|
id?: number;
|
|
1073
|
+
install_stats_email_sent_at?: string | null;
|
|
649
1074
|
owner_org?: string;
|
|
650
1075
|
updated_at?: string | null;
|
|
651
1076
|
version_id?: number;
|
|
@@ -714,6 +1139,7 @@ export type Database = {
|
|
|
714
1139
|
id: number;
|
|
715
1140
|
is_emulator: boolean | null;
|
|
716
1141
|
is_prod: boolean | null;
|
|
1142
|
+
key_id: string | null;
|
|
717
1143
|
os_version: string | null;
|
|
718
1144
|
platform: Database["public"]["Enums"]["platform_os"];
|
|
719
1145
|
plugin_version: string;
|
|
@@ -730,6 +1156,7 @@ export type Database = {
|
|
|
730
1156
|
id?: never;
|
|
731
1157
|
is_emulator?: boolean | null;
|
|
732
1158
|
is_prod?: boolean | null;
|
|
1159
|
+
key_id?: string | null;
|
|
733
1160
|
os_version?: string | null;
|
|
734
1161
|
platform: Database["public"]["Enums"]["platform_os"];
|
|
735
1162
|
plugin_version?: string;
|
|
@@ -746,6 +1173,7 @@ export type Database = {
|
|
|
746
1173
|
id?: never;
|
|
747
1174
|
is_emulator?: boolean | null;
|
|
748
1175
|
is_prod?: boolean | null;
|
|
1176
|
+
key_id?: string | null;
|
|
749
1177
|
os_version?: string | null;
|
|
750
1178
|
platform?: Database["public"]["Enums"]["platform_os"];
|
|
751
1179
|
plugin_version?: string;
|
|
@@ -760,130 +1188,330 @@ export type Database = {
|
|
|
760
1188
|
Row: {
|
|
761
1189
|
apps: number;
|
|
762
1190
|
apps_active: number | null;
|
|
1191
|
+
build_avg_seconds_day_android: number;
|
|
1192
|
+
build_avg_seconds_day_ios: number;
|
|
1193
|
+
build_count_day_android: number;
|
|
1194
|
+
build_count_day_ios: number;
|
|
1195
|
+
build_total_seconds_day_android: number;
|
|
1196
|
+
build_total_seconds_day_ios: number;
|
|
1197
|
+
builds_android: number | null;
|
|
1198
|
+
builds_ios: number | null;
|
|
1199
|
+
builds_last_month: number | null;
|
|
1200
|
+
builds_last_month_android: number | null;
|
|
1201
|
+
builds_last_month_ios: number | null;
|
|
1202
|
+
builds_success_android: number | null;
|
|
1203
|
+
builds_success_ios: number | null;
|
|
1204
|
+
builds_success_total: number | null;
|
|
1205
|
+
builds_total: number | null;
|
|
763
1206
|
bundle_storage_gb: number;
|
|
1207
|
+
canceled_orgs: number;
|
|
1208
|
+
churn_revenue: number;
|
|
764
1209
|
created_at: string | null;
|
|
1210
|
+
credits_bought: number;
|
|
1211
|
+
credits_consumed: number;
|
|
765
1212
|
date_id: string;
|
|
1213
|
+
demo_apps_created: number;
|
|
766
1214
|
devices_last_month: number | null;
|
|
1215
|
+
devices_last_month_android: number | null;
|
|
1216
|
+
devices_last_month_ios: number | null;
|
|
1217
|
+
mrr: number;
|
|
767
1218
|
need_upgrade: number | null;
|
|
1219
|
+
new_paying_orgs: number;
|
|
768
1220
|
not_paying: number | null;
|
|
1221
|
+
nrr: number;
|
|
769
1222
|
onboarded: number | null;
|
|
1223
|
+
org_conversion_rate: number;
|
|
770
1224
|
paying: number | null;
|
|
771
1225
|
paying_monthly: number | null;
|
|
772
1226
|
paying_yearly: number | null;
|
|
1227
|
+
plan_enterprise: number | null;
|
|
1228
|
+
plan_enterprise_monthly: number;
|
|
1229
|
+
plan_enterprise_yearly: number;
|
|
773
1230
|
plan_maker: number | null;
|
|
774
|
-
|
|
1231
|
+
plan_maker_monthly: number;
|
|
1232
|
+
plan_maker_yearly: number;
|
|
775
1233
|
plan_solo: number | null;
|
|
1234
|
+
plan_solo_monthly: number;
|
|
1235
|
+
plan_solo_yearly: number;
|
|
776
1236
|
plan_team: number | null;
|
|
1237
|
+
plan_team_monthly: number;
|
|
1238
|
+
plan_team_yearly: number;
|
|
1239
|
+
plugin_major_breakdown: Json;
|
|
1240
|
+
plugin_version_breakdown: Json;
|
|
777
1241
|
registers_today: number;
|
|
1242
|
+
revenue_enterprise: number;
|
|
1243
|
+
revenue_maker: number;
|
|
1244
|
+
revenue_solo: number;
|
|
1245
|
+
revenue_team: number;
|
|
778
1246
|
stars: number;
|
|
779
1247
|
success_rate: number | null;
|
|
1248
|
+
total_revenue: number;
|
|
780
1249
|
trial: number | null;
|
|
781
1250
|
updates: number;
|
|
782
1251
|
updates_external: number | null;
|
|
783
1252
|
updates_last_month: number | null;
|
|
1253
|
+
upgraded_orgs: number;
|
|
784
1254
|
users: number | null;
|
|
785
1255
|
users_active: number | null;
|
|
786
1256
|
};
|
|
787
1257
|
Insert: {
|
|
788
1258
|
apps: number;
|
|
789
1259
|
apps_active?: number | null;
|
|
1260
|
+
build_avg_seconds_day_android?: number;
|
|
1261
|
+
build_avg_seconds_day_ios?: number;
|
|
1262
|
+
build_count_day_android?: number;
|
|
1263
|
+
build_count_day_ios?: number;
|
|
1264
|
+
build_total_seconds_day_android?: number;
|
|
1265
|
+
build_total_seconds_day_ios?: number;
|
|
1266
|
+
builds_android?: number | null;
|
|
1267
|
+
builds_ios?: number | null;
|
|
1268
|
+
builds_last_month?: number | null;
|
|
1269
|
+
builds_last_month_android?: number | null;
|
|
1270
|
+
builds_last_month_ios?: number | null;
|
|
1271
|
+
builds_success_android?: number | null;
|
|
1272
|
+
builds_success_ios?: number | null;
|
|
1273
|
+
builds_success_total?: number | null;
|
|
1274
|
+
builds_total?: number | null;
|
|
790
1275
|
bundle_storage_gb?: number;
|
|
1276
|
+
canceled_orgs?: number;
|
|
1277
|
+
churn_revenue?: number;
|
|
791
1278
|
created_at?: string | null;
|
|
1279
|
+
credits_bought?: number;
|
|
1280
|
+
credits_consumed?: number;
|
|
792
1281
|
date_id: string;
|
|
1282
|
+
demo_apps_created?: number;
|
|
793
1283
|
devices_last_month?: number | null;
|
|
1284
|
+
devices_last_month_android?: number | null;
|
|
1285
|
+
devices_last_month_ios?: number | null;
|
|
1286
|
+
mrr?: number;
|
|
794
1287
|
need_upgrade?: number | null;
|
|
1288
|
+
new_paying_orgs?: number;
|
|
795
1289
|
not_paying?: number | null;
|
|
1290
|
+
nrr?: number;
|
|
796
1291
|
onboarded?: number | null;
|
|
1292
|
+
org_conversion_rate?: number;
|
|
797
1293
|
paying?: number | null;
|
|
798
1294
|
paying_monthly?: number | null;
|
|
799
1295
|
paying_yearly?: number | null;
|
|
1296
|
+
plan_enterprise?: number | null;
|
|
1297
|
+
plan_enterprise_monthly?: number;
|
|
1298
|
+
plan_enterprise_yearly?: number;
|
|
800
1299
|
plan_maker?: number | null;
|
|
801
|
-
|
|
1300
|
+
plan_maker_monthly?: number;
|
|
1301
|
+
plan_maker_yearly?: number;
|
|
802
1302
|
plan_solo?: number | null;
|
|
1303
|
+
plan_solo_monthly?: number;
|
|
1304
|
+
plan_solo_yearly?: number;
|
|
803
1305
|
plan_team?: number | null;
|
|
1306
|
+
plan_team_monthly?: number;
|
|
1307
|
+
plan_team_yearly?: number;
|
|
1308
|
+
plugin_major_breakdown?: Json;
|
|
1309
|
+
plugin_version_breakdown?: Json;
|
|
804
1310
|
registers_today?: number;
|
|
1311
|
+
revenue_enterprise?: number;
|
|
1312
|
+
revenue_maker?: number;
|
|
1313
|
+
revenue_solo?: number;
|
|
1314
|
+
revenue_team?: number;
|
|
805
1315
|
stars: number;
|
|
806
1316
|
success_rate?: number | null;
|
|
1317
|
+
total_revenue?: number;
|
|
807
1318
|
trial?: number | null;
|
|
808
1319
|
updates: number;
|
|
809
1320
|
updates_external?: number | null;
|
|
810
1321
|
updates_last_month?: number | null;
|
|
1322
|
+
upgraded_orgs?: number;
|
|
811
1323
|
users?: number | null;
|
|
812
1324
|
users_active?: number | null;
|
|
813
1325
|
};
|
|
814
1326
|
Update: {
|
|
815
1327
|
apps?: number;
|
|
816
1328
|
apps_active?: number | null;
|
|
1329
|
+
build_avg_seconds_day_android?: number;
|
|
1330
|
+
build_avg_seconds_day_ios?: number;
|
|
1331
|
+
build_count_day_android?: number;
|
|
1332
|
+
build_count_day_ios?: number;
|
|
1333
|
+
build_total_seconds_day_android?: number;
|
|
1334
|
+
build_total_seconds_day_ios?: number;
|
|
1335
|
+
builds_android?: number | null;
|
|
1336
|
+
builds_ios?: number | null;
|
|
1337
|
+
builds_last_month?: number | null;
|
|
1338
|
+
builds_last_month_android?: number | null;
|
|
1339
|
+
builds_last_month_ios?: number | null;
|
|
1340
|
+
builds_success_android?: number | null;
|
|
1341
|
+
builds_success_ios?: number | null;
|
|
1342
|
+
builds_success_total?: number | null;
|
|
1343
|
+
builds_total?: number | null;
|
|
817
1344
|
bundle_storage_gb?: number;
|
|
1345
|
+
canceled_orgs?: number;
|
|
1346
|
+
churn_revenue?: number;
|
|
818
1347
|
created_at?: string | null;
|
|
1348
|
+
credits_bought?: number;
|
|
1349
|
+
credits_consumed?: number;
|
|
819
1350
|
date_id?: string;
|
|
1351
|
+
demo_apps_created?: number;
|
|
820
1352
|
devices_last_month?: number | null;
|
|
1353
|
+
devices_last_month_android?: number | null;
|
|
1354
|
+
devices_last_month_ios?: number | null;
|
|
1355
|
+
mrr?: number;
|
|
821
1356
|
need_upgrade?: number | null;
|
|
1357
|
+
new_paying_orgs?: number;
|
|
822
1358
|
not_paying?: number | null;
|
|
1359
|
+
nrr?: number;
|
|
823
1360
|
onboarded?: number | null;
|
|
1361
|
+
org_conversion_rate?: number;
|
|
824
1362
|
paying?: number | null;
|
|
825
1363
|
paying_monthly?: number | null;
|
|
826
1364
|
paying_yearly?: number | null;
|
|
1365
|
+
plan_enterprise?: number | null;
|
|
1366
|
+
plan_enterprise_monthly?: number;
|
|
1367
|
+
plan_enterprise_yearly?: number;
|
|
827
1368
|
plan_maker?: number | null;
|
|
828
|
-
|
|
1369
|
+
plan_maker_monthly?: number;
|
|
1370
|
+
plan_maker_yearly?: number;
|
|
829
1371
|
plan_solo?: number | null;
|
|
1372
|
+
plan_solo_monthly?: number;
|
|
1373
|
+
plan_solo_yearly?: number;
|
|
830
1374
|
plan_team?: number | null;
|
|
1375
|
+
plan_team_monthly?: number;
|
|
1376
|
+
plan_team_yearly?: number;
|
|
1377
|
+
plugin_major_breakdown?: Json;
|
|
1378
|
+
plugin_version_breakdown?: Json;
|
|
831
1379
|
registers_today?: number;
|
|
1380
|
+
revenue_enterprise?: number;
|
|
1381
|
+
revenue_maker?: number;
|
|
1382
|
+
revenue_solo?: number;
|
|
1383
|
+
revenue_team?: number;
|
|
832
1384
|
stars?: number;
|
|
833
1385
|
success_rate?: number | null;
|
|
1386
|
+
total_revenue?: number;
|
|
834
1387
|
trial?: number | null;
|
|
835
1388
|
updates?: number;
|
|
836
1389
|
updates_external?: number | null;
|
|
837
1390
|
updates_last_month?: number | null;
|
|
1391
|
+
upgraded_orgs?: number;
|
|
838
1392
|
users?: number | null;
|
|
839
1393
|
users_active?: number | null;
|
|
840
1394
|
};
|
|
841
1395
|
Relationships: [];
|
|
842
1396
|
};
|
|
843
|
-
|
|
1397
|
+
group_members: {
|
|
844
1398
|
Row: {
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
id: number;
|
|
850
|
-
s3_path: string;
|
|
1399
|
+
added_at: string;
|
|
1400
|
+
added_by: string | null;
|
|
1401
|
+
group_id: string;
|
|
1402
|
+
user_id: string;
|
|
851
1403
|
};
|
|
852
1404
|
Insert: {
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
id?: number;
|
|
858
|
-
s3_path: string;
|
|
1405
|
+
added_at?: string;
|
|
1406
|
+
added_by?: string | null;
|
|
1407
|
+
group_id: string;
|
|
1408
|
+
user_id: string;
|
|
859
1409
|
};
|
|
860
1410
|
Update: {
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
id?: number;
|
|
866
|
-
s3_path?: string;
|
|
1411
|
+
added_at?: string;
|
|
1412
|
+
added_by?: string | null;
|
|
1413
|
+
group_id?: string;
|
|
1414
|
+
user_id?: string;
|
|
867
1415
|
};
|
|
868
1416
|
Relationships: [
|
|
869
1417
|
{
|
|
870
|
-
foreignKeyName: "
|
|
871
|
-
columns: ["
|
|
1418
|
+
foreignKeyName: "group_members_group_id_fkey";
|
|
1419
|
+
columns: ["group_id"];
|
|
872
1420
|
isOneToOne: false;
|
|
873
|
-
referencedRelation: "
|
|
1421
|
+
referencedRelation: "groups";
|
|
1422
|
+
referencedColumns: ["id"];
|
|
1423
|
+
},
|
|
1424
|
+
{
|
|
1425
|
+
foreignKeyName: "group_members_user_id_fkey";
|
|
1426
|
+
columns: ["user_id"];
|
|
1427
|
+
isOneToOne: false;
|
|
1428
|
+
referencedRelation: "users";
|
|
874
1429
|
referencedColumns: ["id"];
|
|
875
1430
|
}
|
|
876
1431
|
];
|
|
877
1432
|
};
|
|
878
|
-
|
|
1433
|
+
groups: {
|
|
879
1434
|
Row: {
|
|
880
|
-
created_at: string
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
1435
|
+
created_at: string;
|
|
1436
|
+
created_by: string | null;
|
|
1437
|
+
description: string | null;
|
|
1438
|
+
id: string;
|
|
1439
|
+
is_system: boolean;
|
|
1440
|
+
name: string;
|
|
1441
|
+
org_id: string;
|
|
1442
|
+
};
|
|
1443
|
+
Insert: {
|
|
1444
|
+
created_at?: string;
|
|
1445
|
+
created_by?: string | null;
|
|
1446
|
+
description?: string | null;
|
|
1447
|
+
id?: string;
|
|
1448
|
+
is_system?: boolean;
|
|
1449
|
+
name: string;
|
|
1450
|
+
org_id: string;
|
|
1451
|
+
};
|
|
1452
|
+
Update: {
|
|
1453
|
+
created_at?: string;
|
|
1454
|
+
created_by?: string | null;
|
|
1455
|
+
description?: string | null;
|
|
1456
|
+
id?: string;
|
|
1457
|
+
is_system?: boolean;
|
|
1458
|
+
name?: string;
|
|
1459
|
+
org_id?: string;
|
|
1460
|
+
};
|
|
1461
|
+
Relationships: [
|
|
1462
|
+
{
|
|
1463
|
+
foreignKeyName: "groups_org_id_fkey";
|
|
1464
|
+
columns: ["org_id"];
|
|
1465
|
+
isOneToOne: false;
|
|
1466
|
+
referencedRelation: "orgs";
|
|
1467
|
+
referencedColumns: ["id"];
|
|
1468
|
+
}
|
|
1469
|
+
];
|
|
1470
|
+
};
|
|
1471
|
+
manifest: {
|
|
1472
|
+
Row: {
|
|
1473
|
+
app_version_id: number;
|
|
1474
|
+
file_hash: string;
|
|
1475
|
+
file_name: string;
|
|
1476
|
+
file_size: number | null;
|
|
1477
|
+
id: number;
|
|
1478
|
+
s3_path: string;
|
|
1479
|
+
};
|
|
1480
|
+
Insert: {
|
|
1481
|
+
app_version_id: number;
|
|
1482
|
+
file_hash: string;
|
|
1483
|
+
file_name: string;
|
|
1484
|
+
file_size?: number | null;
|
|
1485
|
+
id?: number;
|
|
1486
|
+
s3_path: string;
|
|
1487
|
+
};
|
|
1488
|
+
Update: {
|
|
1489
|
+
app_version_id?: number;
|
|
1490
|
+
file_hash?: string;
|
|
1491
|
+
file_name?: string;
|
|
1492
|
+
file_size?: number | null;
|
|
1493
|
+
id?: number;
|
|
1494
|
+
s3_path?: string;
|
|
1495
|
+
};
|
|
1496
|
+
Relationships: [
|
|
1497
|
+
{
|
|
1498
|
+
foreignKeyName: "manifest_app_version_id_fkey";
|
|
1499
|
+
columns: ["app_version_id"];
|
|
1500
|
+
isOneToOne: false;
|
|
1501
|
+
referencedRelation: "app_versions";
|
|
1502
|
+
referencedColumns: ["id"];
|
|
1503
|
+
}
|
|
1504
|
+
];
|
|
1505
|
+
};
|
|
1506
|
+
notifications: {
|
|
1507
|
+
Row: {
|
|
1508
|
+
created_at: string | null;
|
|
1509
|
+
event: string;
|
|
1510
|
+
last_send_at: string;
|
|
1511
|
+
owner_org: string;
|
|
1512
|
+
total_send: number;
|
|
1513
|
+
uniq_id: string;
|
|
1514
|
+
updated_at: string | null;
|
|
887
1515
|
};
|
|
888
1516
|
Insert: {
|
|
889
1517
|
created_at?: string | null;
|
|
@@ -913,6 +1541,59 @@ export type Database = {
|
|
|
913
1541
|
}
|
|
914
1542
|
];
|
|
915
1543
|
};
|
|
1544
|
+
org_metrics_cache: {
|
|
1545
|
+
Row: {
|
|
1546
|
+
bandwidth: number;
|
|
1547
|
+
build_time_unit: number;
|
|
1548
|
+
cached_at: string;
|
|
1549
|
+
end_date: string;
|
|
1550
|
+
fail: number;
|
|
1551
|
+
get: number;
|
|
1552
|
+
install: number;
|
|
1553
|
+
mau: number;
|
|
1554
|
+
org_id: string;
|
|
1555
|
+
start_date: string;
|
|
1556
|
+
storage: number;
|
|
1557
|
+
uninstall: number;
|
|
1558
|
+
};
|
|
1559
|
+
Insert: {
|
|
1560
|
+
bandwidth: number;
|
|
1561
|
+
build_time_unit: number;
|
|
1562
|
+
cached_at?: string;
|
|
1563
|
+
end_date: string;
|
|
1564
|
+
fail: number;
|
|
1565
|
+
get: number;
|
|
1566
|
+
install: number;
|
|
1567
|
+
mau: number;
|
|
1568
|
+
org_id: string;
|
|
1569
|
+
start_date: string;
|
|
1570
|
+
storage: number;
|
|
1571
|
+
uninstall: number;
|
|
1572
|
+
};
|
|
1573
|
+
Update: {
|
|
1574
|
+
bandwidth?: number;
|
|
1575
|
+
build_time_unit?: number;
|
|
1576
|
+
cached_at?: string;
|
|
1577
|
+
end_date?: string;
|
|
1578
|
+
fail?: number;
|
|
1579
|
+
get?: number;
|
|
1580
|
+
install?: number;
|
|
1581
|
+
mau?: number;
|
|
1582
|
+
org_id?: string;
|
|
1583
|
+
start_date?: string;
|
|
1584
|
+
storage?: number;
|
|
1585
|
+
uninstall?: number;
|
|
1586
|
+
};
|
|
1587
|
+
Relationships: [
|
|
1588
|
+
{
|
|
1589
|
+
foreignKeyName: "org_metrics_cache_org_id_fkey";
|
|
1590
|
+
columns: ["org_id"];
|
|
1591
|
+
isOneToOne: true;
|
|
1592
|
+
referencedRelation: "orgs";
|
|
1593
|
+
referencedColumns: ["id"];
|
|
1594
|
+
}
|
|
1595
|
+
];
|
|
1596
|
+
};
|
|
916
1597
|
org_users: {
|
|
917
1598
|
Row: {
|
|
918
1599
|
app_id: string | null;
|
|
@@ -920,6 +1601,7 @@ export type Database = {
|
|
|
920
1601
|
created_at: string | null;
|
|
921
1602
|
id: number;
|
|
922
1603
|
org_id: string;
|
|
1604
|
+
rbac_role_name: string | null;
|
|
923
1605
|
updated_at: string | null;
|
|
924
1606
|
user_id: string;
|
|
925
1607
|
user_right: Database["public"]["Enums"]["user_min_right"] | null;
|
|
@@ -930,6 +1612,7 @@ export type Database = {
|
|
|
930
1612
|
created_at?: string | null;
|
|
931
1613
|
id?: number;
|
|
932
1614
|
org_id: string;
|
|
1615
|
+
rbac_role_name?: string | null;
|
|
933
1616
|
updated_at?: string | null;
|
|
934
1617
|
user_id: string;
|
|
935
1618
|
user_right?: Database["public"]["Enums"]["user_min_right"] | null;
|
|
@@ -940,6 +1623,7 @@ export type Database = {
|
|
|
940
1623
|
created_at?: string | null;
|
|
941
1624
|
id?: number;
|
|
942
1625
|
org_id?: string;
|
|
1626
|
+
rbac_role_name?: string | null;
|
|
943
1627
|
updated_at?: string | null;
|
|
944
1628
|
user_id?: string;
|
|
945
1629
|
user_right?: Database["public"]["Enums"]["user_min_right"] | null;
|
|
@@ -980,34 +1664,73 @@ export type Database = {
|
|
|
980
1664
|
created_at: string | null;
|
|
981
1665
|
created_by: string;
|
|
982
1666
|
customer_id: string | null;
|
|
1667
|
+
email_preferences: Json;
|
|
1668
|
+
enforce_encrypted_bundles: boolean;
|
|
1669
|
+
enforce_hashed_api_keys: boolean;
|
|
1670
|
+
enforcing_2fa: boolean;
|
|
1671
|
+
has_usage_credits: boolean;
|
|
983
1672
|
id: string;
|
|
1673
|
+
last_stats_updated_at: string | null;
|
|
984
1674
|
logo: string | null;
|
|
985
1675
|
management_email: string;
|
|
1676
|
+
max_apikey_expiration_days: number | null;
|
|
986
1677
|
name: string;
|
|
1678
|
+
password_policy_config: Json | null;
|
|
1679
|
+
require_apikey_expiration: boolean;
|
|
1680
|
+
required_encryption_key: string | null;
|
|
1681
|
+
stats_refresh_requested_at: string | null;
|
|
987
1682
|
stats_updated_at: string | null;
|
|
988
1683
|
updated_at: string | null;
|
|
1684
|
+
use_new_rbac: boolean;
|
|
1685
|
+
website: string | null;
|
|
989
1686
|
};
|
|
990
1687
|
Insert: {
|
|
991
1688
|
created_at?: string | null;
|
|
992
1689
|
created_by: string;
|
|
993
1690
|
customer_id?: string | null;
|
|
1691
|
+
email_preferences?: Json;
|
|
1692
|
+
enforce_encrypted_bundles?: boolean;
|
|
1693
|
+
enforce_hashed_api_keys?: boolean;
|
|
1694
|
+
enforcing_2fa?: boolean;
|
|
1695
|
+
has_usage_credits?: boolean;
|
|
994
1696
|
id?: string;
|
|
1697
|
+
last_stats_updated_at?: string | null;
|
|
995
1698
|
logo?: string | null;
|
|
996
1699
|
management_email: string;
|
|
1700
|
+
max_apikey_expiration_days?: number | null;
|
|
997
1701
|
name: string;
|
|
1702
|
+
password_policy_config?: Json | null;
|
|
1703
|
+
require_apikey_expiration?: boolean;
|
|
1704
|
+
required_encryption_key?: string | null;
|
|
1705
|
+
stats_refresh_requested_at?: string | null;
|
|
998
1706
|
stats_updated_at?: string | null;
|
|
999
1707
|
updated_at?: string | null;
|
|
1708
|
+
use_new_rbac?: boolean;
|
|
1709
|
+
website?: string | null;
|
|
1000
1710
|
};
|
|
1001
1711
|
Update: {
|
|
1002
1712
|
created_at?: string | null;
|
|
1003
1713
|
created_by?: string;
|
|
1004
1714
|
customer_id?: string | null;
|
|
1715
|
+
email_preferences?: Json;
|
|
1716
|
+
enforce_encrypted_bundles?: boolean;
|
|
1717
|
+
enforce_hashed_api_keys?: boolean;
|
|
1718
|
+
enforcing_2fa?: boolean;
|
|
1719
|
+
has_usage_credits?: boolean;
|
|
1005
1720
|
id?: string;
|
|
1721
|
+
last_stats_updated_at?: string | null;
|
|
1006
1722
|
logo?: string | null;
|
|
1007
1723
|
management_email?: string;
|
|
1724
|
+
max_apikey_expiration_days?: number | null;
|
|
1008
1725
|
name?: string;
|
|
1726
|
+
password_policy_config?: Json | null;
|
|
1727
|
+
require_apikey_expiration?: boolean;
|
|
1728
|
+
required_encryption_key?: string | null;
|
|
1729
|
+
stats_refresh_requested_at?: string | null;
|
|
1009
1730
|
stats_updated_at?: string | null;
|
|
1010
1731
|
updated_at?: string | null;
|
|
1732
|
+
use_new_rbac?: boolean;
|
|
1733
|
+
website?: string | null;
|
|
1011
1734
|
};
|
|
1012
1735
|
Relationships: [
|
|
1013
1736
|
{
|
|
@@ -1026,177 +1749,466 @@ export type Database = {
|
|
|
1026
1749
|
}
|
|
1027
1750
|
];
|
|
1028
1751
|
};
|
|
1752
|
+
permissions: {
|
|
1753
|
+
Row: {
|
|
1754
|
+
bundle_id: number | null;
|
|
1755
|
+
created_at: string;
|
|
1756
|
+
description: string | null;
|
|
1757
|
+
id: string;
|
|
1758
|
+
key: string;
|
|
1759
|
+
scope_type: string;
|
|
1760
|
+
};
|
|
1761
|
+
Insert: {
|
|
1762
|
+
bundle_id?: number | null;
|
|
1763
|
+
created_at?: string;
|
|
1764
|
+
description?: string | null;
|
|
1765
|
+
id?: string;
|
|
1766
|
+
key: string;
|
|
1767
|
+
scope_type: string;
|
|
1768
|
+
};
|
|
1769
|
+
Update: {
|
|
1770
|
+
bundle_id?: number | null;
|
|
1771
|
+
created_at?: string;
|
|
1772
|
+
description?: string | null;
|
|
1773
|
+
id?: string;
|
|
1774
|
+
key?: string;
|
|
1775
|
+
scope_type?: string;
|
|
1776
|
+
};
|
|
1777
|
+
Relationships: [
|
|
1778
|
+
{
|
|
1779
|
+
foreignKeyName: "permissions_bundle_id_fkey";
|
|
1780
|
+
columns: ["bundle_id"];
|
|
1781
|
+
isOneToOne: false;
|
|
1782
|
+
referencedRelation: "app_versions";
|
|
1783
|
+
referencedColumns: ["id"];
|
|
1784
|
+
}
|
|
1785
|
+
];
|
|
1786
|
+
};
|
|
1029
1787
|
plans: {
|
|
1030
1788
|
Row: {
|
|
1031
1789
|
bandwidth: number;
|
|
1032
|
-
|
|
1790
|
+
build_time_unit: number;
|
|
1033
1791
|
created_at: string;
|
|
1792
|
+
credit_id: string;
|
|
1034
1793
|
description: string;
|
|
1035
1794
|
id: string;
|
|
1036
1795
|
market_desc: string | null;
|
|
1037
1796
|
mau: number;
|
|
1038
|
-
mau_unit: number | null;
|
|
1039
1797
|
name: string;
|
|
1040
1798
|
price_m: number;
|
|
1041
|
-
price_m_bandwidth_id: string | null;
|
|
1042
1799
|
price_m_id: string;
|
|
1043
|
-
price_m_mau_id: string | null;
|
|
1044
|
-
price_m_storage_id: string | null;
|
|
1045
1800
|
price_y: number;
|
|
1046
1801
|
price_y_id: string;
|
|
1047
1802
|
storage: number;
|
|
1048
|
-
storage_unit: number | null;
|
|
1049
1803
|
stripe_id: string;
|
|
1050
1804
|
updated_at: string;
|
|
1051
1805
|
};
|
|
1052
1806
|
Insert: {
|
|
1053
1807
|
bandwidth: number;
|
|
1054
|
-
|
|
1808
|
+
build_time_unit?: number;
|
|
1055
1809
|
created_at?: string;
|
|
1810
|
+
credit_id: string;
|
|
1056
1811
|
description?: string;
|
|
1057
1812
|
id?: string;
|
|
1058
1813
|
market_desc?: string | null;
|
|
1059
1814
|
mau?: number;
|
|
1060
|
-
mau_unit?: number | null;
|
|
1061
1815
|
name?: string;
|
|
1062
1816
|
price_m?: number;
|
|
1063
|
-
price_m_bandwidth_id?: string | null;
|
|
1064
1817
|
price_m_id: string;
|
|
1065
|
-
price_m_mau_id?: string | null;
|
|
1066
|
-
price_m_storage_id?: string | null;
|
|
1067
1818
|
price_y?: number;
|
|
1068
1819
|
price_y_id: string;
|
|
1069
1820
|
storage: number;
|
|
1070
|
-
storage_unit?: number | null;
|
|
1071
1821
|
stripe_id?: string;
|
|
1072
1822
|
updated_at?: string;
|
|
1073
1823
|
};
|
|
1074
1824
|
Update: {
|
|
1075
1825
|
bandwidth?: number;
|
|
1076
|
-
|
|
1826
|
+
build_time_unit?: number;
|
|
1077
1827
|
created_at?: string;
|
|
1828
|
+
credit_id?: string;
|
|
1078
1829
|
description?: string;
|
|
1079
1830
|
id?: string;
|
|
1080
1831
|
market_desc?: string | null;
|
|
1081
1832
|
mau?: number;
|
|
1082
|
-
mau_unit?: number | null;
|
|
1083
1833
|
name?: string;
|
|
1084
1834
|
price_m?: number;
|
|
1085
|
-
price_m_bandwidth_id?: string | null;
|
|
1086
1835
|
price_m_id?: string;
|
|
1087
|
-
price_m_mau_id?: string | null;
|
|
1088
|
-
price_m_storage_id?: string | null;
|
|
1089
1836
|
price_y?: number;
|
|
1090
1837
|
price_y_id?: string;
|
|
1091
1838
|
storage?: number;
|
|
1092
|
-
storage_unit?: number | null;
|
|
1093
1839
|
stripe_id?: string;
|
|
1094
1840
|
updated_at?: string;
|
|
1095
1841
|
};
|
|
1096
1842
|
Relationships: [];
|
|
1097
1843
|
};
|
|
1098
|
-
|
|
1844
|
+
processed_stripe_events: {
|
|
1099
1845
|
Row: {
|
|
1100
|
-
action: Database["public"]["Enums"]["stats_action"];
|
|
1101
|
-
app_id: string;
|
|
1102
1846
|
created_at: string;
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1847
|
+
customer_id: string;
|
|
1848
|
+
date_id: string;
|
|
1849
|
+
event_id: string;
|
|
1106
1850
|
};
|
|
1107
1851
|
Insert: {
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
id?: never;
|
|
1113
|
-
version_name?: string;
|
|
1852
|
+
created_at?: string;
|
|
1853
|
+
customer_id: string;
|
|
1854
|
+
date_id: string;
|
|
1855
|
+
event_id: string;
|
|
1114
1856
|
};
|
|
1115
1857
|
Update: {
|
|
1116
|
-
action?: Database["public"]["Enums"]["stats_action"];
|
|
1117
|
-
app_id?: string;
|
|
1118
1858
|
created_at?: string;
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1859
|
+
customer_id?: string;
|
|
1860
|
+
date_id?: string;
|
|
1861
|
+
event_id?: string;
|
|
1122
1862
|
};
|
|
1123
1863
|
Relationships: [];
|
|
1124
1864
|
};
|
|
1125
|
-
|
|
1865
|
+
role_bindings: {
|
|
1126
1866
|
Row: {
|
|
1127
|
-
app_id: string;
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1867
|
+
app_id: string | null;
|
|
1868
|
+
bundle_id: number | null;
|
|
1869
|
+
channel_id: string | null;
|
|
1870
|
+
expires_at: string | null;
|
|
1871
|
+
granted_at: string;
|
|
1872
|
+
granted_by: string;
|
|
1873
|
+
id: string;
|
|
1874
|
+
is_direct: boolean;
|
|
1875
|
+
org_id: string | null;
|
|
1876
|
+
principal_id: string;
|
|
1877
|
+
principal_type: string;
|
|
1878
|
+
reason: string | null;
|
|
1879
|
+
role_id: string;
|
|
1880
|
+
scope_type: string;
|
|
1132
1881
|
};
|
|
1133
1882
|
Insert: {
|
|
1134
|
-
app_id
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1883
|
+
app_id?: string | null;
|
|
1884
|
+
bundle_id?: number | null;
|
|
1885
|
+
channel_id?: string | null;
|
|
1886
|
+
expires_at?: string | null;
|
|
1887
|
+
granted_at?: string;
|
|
1888
|
+
granted_by: string;
|
|
1889
|
+
id?: string;
|
|
1890
|
+
is_direct?: boolean;
|
|
1891
|
+
org_id?: string | null;
|
|
1892
|
+
principal_id: string;
|
|
1893
|
+
principal_type: string;
|
|
1894
|
+
reason?: string | null;
|
|
1895
|
+
role_id: string;
|
|
1896
|
+
scope_type: string;
|
|
1139
1897
|
};
|
|
1140
1898
|
Update: {
|
|
1141
|
-
app_id?: string;
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1899
|
+
app_id?: string | null;
|
|
1900
|
+
bundle_id?: number | null;
|
|
1901
|
+
channel_id?: string | null;
|
|
1902
|
+
expires_at?: string | null;
|
|
1903
|
+
granted_at?: string;
|
|
1904
|
+
granted_by?: string;
|
|
1905
|
+
id?: string;
|
|
1906
|
+
is_direct?: boolean;
|
|
1907
|
+
org_id?: string | null;
|
|
1908
|
+
principal_id?: string;
|
|
1909
|
+
principal_type?: string;
|
|
1910
|
+
reason?: string | null;
|
|
1911
|
+
role_id?: string;
|
|
1912
|
+
scope_type?: string;
|
|
1146
1913
|
};
|
|
1147
|
-
Relationships: [
|
|
1914
|
+
Relationships: [
|
|
1915
|
+
{
|
|
1916
|
+
foreignKeyName: "role_bindings_app_id_fkey";
|
|
1917
|
+
columns: ["app_id"];
|
|
1918
|
+
isOneToOne: false;
|
|
1919
|
+
referencedRelation: "apps";
|
|
1920
|
+
referencedColumns: ["id"];
|
|
1921
|
+
},
|
|
1922
|
+
{
|
|
1923
|
+
foreignKeyName: "role_bindings_bundle_id_fkey";
|
|
1924
|
+
columns: ["bundle_id"];
|
|
1925
|
+
isOneToOne: false;
|
|
1926
|
+
referencedRelation: "app_versions";
|
|
1927
|
+
referencedColumns: ["id"];
|
|
1928
|
+
},
|
|
1929
|
+
{
|
|
1930
|
+
foreignKeyName: "role_bindings_channel_id_fkey";
|
|
1931
|
+
columns: ["channel_id"];
|
|
1932
|
+
isOneToOne: false;
|
|
1933
|
+
referencedRelation: "channels";
|
|
1934
|
+
referencedColumns: ["rbac_id"];
|
|
1935
|
+
},
|
|
1936
|
+
{
|
|
1937
|
+
foreignKeyName: "role_bindings_org_id_fkey";
|
|
1938
|
+
columns: ["org_id"];
|
|
1939
|
+
isOneToOne: false;
|
|
1940
|
+
referencedRelation: "orgs";
|
|
1941
|
+
referencedColumns: ["id"];
|
|
1942
|
+
},
|
|
1943
|
+
{
|
|
1944
|
+
foreignKeyName: "role_bindings_role_id_fkey";
|
|
1945
|
+
columns: ["role_id"];
|
|
1946
|
+
isOneToOne: false;
|
|
1947
|
+
referencedRelation: "roles";
|
|
1948
|
+
referencedColumns: ["id"];
|
|
1949
|
+
}
|
|
1950
|
+
];
|
|
1148
1951
|
};
|
|
1149
|
-
|
|
1952
|
+
role_hierarchy: {
|
|
1150
1953
|
Row: {
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
created_at: string;
|
|
1154
|
-
customer_id: string;
|
|
1155
|
-
id: number;
|
|
1156
|
-
is_good_plan: boolean | null;
|
|
1157
|
-
mau_exceeded: boolean | null;
|
|
1158
|
-
plan_calculated_at: string | null;
|
|
1159
|
-
plan_usage: number | null;
|
|
1160
|
-
price_id: string | null;
|
|
1161
|
-
product_id: string;
|
|
1162
|
-
status: Database["public"]["Enums"]["stripe_status"] | null;
|
|
1163
|
-
storage_exceeded: boolean | null;
|
|
1164
|
-
subscription_anchor_end: string;
|
|
1165
|
-
subscription_anchor_start: string;
|
|
1166
|
-
subscription_id: string | null;
|
|
1167
|
-
subscription_metered: Json;
|
|
1168
|
-
trial_at: string;
|
|
1169
|
-
updated_at: string;
|
|
1954
|
+
child_role_id: string;
|
|
1955
|
+
parent_role_id: string;
|
|
1170
1956
|
};
|
|
1171
1957
|
Insert: {
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1958
|
+
child_role_id: string;
|
|
1959
|
+
parent_role_id: string;
|
|
1960
|
+
};
|
|
1961
|
+
Update: {
|
|
1962
|
+
child_role_id?: string;
|
|
1963
|
+
parent_role_id?: string;
|
|
1964
|
+
};
|
|
1965
|
+
Relationships: [
|
|
1966
|
+
{
|
|
1967
|
+
foreignKeyName: "role_hierarchy_child_role_id_fkey";
|
|
1968
|
+
columns: ["child_role_id"];
|
|
1969
|
+
isOneToOne: false;
|
|
1970
|
+
referencedRelation: "roles";
|
|
1971
|
+
referencedColumns: ["id"];
|
|
1972
|
+
},
|
|
1973
|
+
{
|
|
1974
|
+
foreignKeyName: "role_hierarchy_parent_role_id_fkey";
|
|
1975
|
+
columns: ["parent_role_id"];
|
|
1976
|
+
isOneToOne: false;
|
|
1977
|
+
referencedRelation: "roles";
|
|
1978
|
+
referencedColumns: ["id"];
|
|
1979
|
+
}
|
|
1980
|
+
];
|
|
1981
|
+
};
|
|
1982
|
+
role_permissions: {
|
|
1983
|
+
Row: {
|
|
1984
|
+
permission_id: string;
|
|
1985
|
+
role_id: string;
|
|
1986
|
+
};
|
|
1987
|
+
Insert: {
|
|
1988
|
+
permission_id: string;
|
|
1989
|
+
role_id: string;
|
|
1990
|
+
};
|
|
1991
|
+
Update: {
|
|
1992
|
+
permission_id?: string;
|
|
1993
|
+
role_id?: string;
|
|
1994
|
+
};
|
|
1995
|
+
Relationships: [
|
|
1996
|
+
{
|
|
1997
|
+
foreignKeyName: "role_permissions_permission_id_fkey";
|
|
1998
|
+
columns: ["permission_id"];
|
|
1999
|
+
isOneToOne: false;
|
|
2000
|
+
referencedRelation: "permissions";
|
|
2001
|
+
referencedColumns: ["id"];
|
|
2002
|
+
},
|
|
2003
|
+
{
|
|
2004
|
+
foreignKeyName: "role_permissions_role_id_fkey";
|
|
2005
|
+
columns: ["role_id"];
|
|
2006
|
+
isOneToOne: false;
|
|
2007
|
+
referencedRelation: "roles";
|
|
2008
|
+
referencedColumns: ["id"];
|
|
2009
|
+
}
|
|
2010
|
+
];
|
|
2011
|
+
};
|
|
2012
|
+
roles: {
|
|
2013
|
+
Row: {
|
|
2014
|
+
created_at: string;
|
|
2015
|
+
created_by: string | null;
|
|
2016
|
+
description: string | null;
|
|
2017
|
+
id: string;
|
|
2018
|
+
is_assignable: boolean;
|
|
2019
|
+
name: string;
|
|
2020
|
+
priority_rank: number;
|
|
2021
|
+
scope_type: string;
|
|
2022
|
+
};
|
|
2023
|
+
Insert: {
|
|
2024
|
+
created_at?: string;
|
|
2025
|
+
created_by?: string | null;
|
|
2026
|
+
description?: string | null;
|
|
2027
|
+
id?: string;
|
|
2028
|
+
is_assignable?: boolean;
|
|
2029
|
+
name: string;
|
|
2030
|
+
priority_rank?: number;
|
|
2031
|
+
scope_type: string;
|
|
2032
|
+
};
|
|
2033
|
+
Update: {
|
|
2034
|
+
created_at?: string;
|
|
2035
|
+
created_by?: string | null;
|
|
2036
|
+
description?: string | null;
|
|
2037
|
+
id?: string;
|
|
2038
|
+
is_assignable?: boolean;
|
|
2039
|
+
name?: string;
|
|
2040
|
+
priority_rank?: number;
|
|
2041
|
+
scope_type?: string;
|
|
2042
|
+
};
|
|
2043
|
+
Relationships: [];
|
|
2044
|
+
};
|
|
2045
|
+
sso_providers: {
|
|
2046
|
+
Row: {
|
|
2047
|
+
attribute_mapping: Json | null;
|
|
2048
|
+
created_at: string;
|
|
2049
|
+
dns_verification_token: string;
|
|
2050
|
+
dns_verified_at: string | null;
|
|
2051
|
+
domain: string;
|
|
2052
|
+
enforce_sso: boolean;
|
|
2053
|
+
id: string;
|
|
2054
|
+
metadata_url: string | null;
|
|
2055
|
+
org_id: string;
|
|
2056
|
+
provider_id: string | null;
|
|
2057
|
+
status: string;
|
|
2058
|
+
updated_at: string;
|
|
2059
|
+
};
|
|
2060
|
+
Insert: {
|
|
2061
|
+
attribute_mapping?: Json | null;
|
|
2062
|
+
created_at?: string;
|
|
2063
|
+
dns_verification_token: string;
|
|
2064
|
+
dns_verified_at?: string | null;
|
|
2065
|
+
domain: string;
|
|
2066
|
+
enforce_sso?: boolean;
|
|
2067
|
+
id?: string;
|
|
2068
|
+
metadata_url?: string | null;
|
|
2069
|
+
org_id: string;
|
|
2070
|
+
provider_id?: string | null;
|
|
2071
|
+
status?: string;
|
|
2072
|
+
updated_at?: string;
|
|
2073
|
+
};
|
|
2074
|
+
Update: {
|
|
2075
|
+
attribute_mapping?: Json | null;
|
|
2076
|
+
created_at?: string;
|
|
2077
|
+
dns_verification_token?: string;
|
|
2078
|
+
dns_verified_at?: string | null;
|
|
2079
|
+
domain?: string;
|
|
2080
|
+
enforce_sso?: boolean;
|
|
2081
|
+
id?: string;
|
|
2082
|
+
metadata_url?: string | null;
|
|
2083
|
+
org_id?: string;
|
|
2084
|
+
provider_id?: string | null;
|
|
2085
|
+
status?: string;
|
|
2086
|
+
updated_at?: string;
|
|
2087
|
+
};
|
|
2088
|
+
Relationships: [
|
|
2089
|
+
{
|
|
2090
|
+
foreignKeyName: "sso_providers_org_id_fkey";
|
|
2091
|
+
columns: ["org_id"];
|
|
2092
|
+
isOneToOne: false;
|
|
2093
|
+
referencedRelation: "orgs";
|
|
2094
|
+
referencedColumns: ["id"];
|
|
2095
|
+
}
|
|
2096
|
+
];
|
|
2097
|
+
};
|
|
2098
|
+
stats: {
|
|
2099
|
+
Row: {
|
|
2100
|
+
action: Database["public"]["Enums"]["stats_action"];
|
|
2101
|
+
app_id: string;
|
|
2102
|
+
created_at: string;
|
|
2103
|
+
device_id: string;
|
|
2104
|
+
id: number;
|
|
2105
|
+
version_name: string;
|
|
2106
|
+
};
|
|
2107
|
+
Insert: {
|
|
2108
|
+
action: Database["public"]["Enums"]["stats_action"];
|
|
2109
|
+
app_id: string;
|
|
2110
|
+
created_at: string;
|
|
2111
|
+
device_id: string;
|
|
2112
|
+
id?: never;
|
|
2113
|
+
version_name?: string;
|
|
2114
|
+
};
|
|
2115
|
+
Update: {
|
|
2116
|
+
action?: Database["public"]["Enums"]["stats_action"];
|
|
2117
|
+
app_id?: string;
|
|
2118
|
+
created_at?: string;
|
|
2119
|
+
device_id?: string;
|
|
2120
|
+
id?: never;
|
|
2121
|
+
version_name?: string;
|
|
2122
|
+
};
|
|
2123
|
+
Relationships: [];
|
|
2124
|
+
};
|
|
2125
|
+
storage_usage: {
|
|
2126
|
+
Row: {
|
|
2127
|
+
app_id: string;
|
|
2128
|
+
device_id: string;
|
|
2129
|
+
file_size: number;
|
|
2130
|
+
id: number;
|
|
2131
|
+
timestamp: string;
|
|
2132
|
+
};
|
|
2133
|
+
Insert: {
|
|
2134
|
+
app_id: string;
|
|
2135
|
+
device_id: string;
|
|
2136
|
+
file_size: number;
|
|
2137
|
+
id?: number;
|
|
2138
|
+
timestamp?: string;
|
|
2139
|
+
};
|
|
2140
|
+
Update: {
|
|
2141
|
+
app_id?: string;
|
|
2142
|
+
device_id?: string;
|
|
2143
|
+
file_size?: number;
|
|
2144
|
+
id?: number;
|
|
2145
|
+
timestamp?: string;
|
|
2146
|
+
};
|
|
2147
|
+
Relationships: [];
|
|
2148
|
+
};
|
|
2149
|
+
stripe_info: {
|
|
2150
|
+
Row: {
|
|
2151
|
+
bandwidth_exceeded: boolean | null;
|
|
2152
|
+
build_time_exceeded: boolean | null;
|
|
2153
|
+
canceled_at: string | null;
|
|
2154
|
+
created_at: string;
|
|
2155
|
+
customer_country: string | null;
|
|
2156
|
+
customer_id: string;
|
|
2157
|
+
id: number;
|
|
2158
|
+
is_good_plan: boolean | null;
|
|
2159
|
+
last_stripe_event_at: string | null;
|
|
2160
|
+
mau_exceeded: boolean | null;
|
|
2161
|
+
paid_at: string | null;
|
|
2162
|
+
plan_calculated_at: string | null;
|
|
2163
|
+
plan_usage: number | null;
|
|
2164
|
+
price_id: string | null;
|
|
2165
|
+
product_id: string;
|
|
2166
|
+
status: Database["public"]["Enums"]["stripe_status"] | null;
|
|
2167
|
+
storage_exceeded: boolean | null;
|
|
2168
|
+
subscription_anchor_end: string;
|
|
2169
|
+
subscription_anchor_start: string;
|
|
2170
|
+
subscription_id: string | null;
|
|
2171
|
+
trial_at: string;
|
|
2172
|
+
updated_at: string;
|
|
2173
|
+
upgraded_at: string | null;
|
|
2174
|
+
};
|
|
2175
|
+
Insert: {
|
|
2176
|
+
bandwidth_exceeded?: boolean | null;
|
|
2177
|
+
build_time_exceeded?: boolean | null;
|
|
2178
|
+
canceled_at?: string | null;
|
|
2179
|
+
created_at?: string;
|
|
2180
|
+
customer_country?: string | null;
|
|
2181
|
+
customer_id: string;
|
|
2182
|
+
id?: number;
|
|
2183
|
+
is_good_plan?: boolean | null;
|
|
2184
|
+
last_stripe_event_at?: string | null;
|
|
2185
|
+
mau_exceeded?: boolean | null;
|
|
2186
|
+
paid_at?: string | null;
|
|
2187
|
+
plan_calculated_at?: string | null;
|
|
2188
|
+
plan_usage?: number | null;
|
|
2189
|
+
price_id?: string | null;
|
|
2190
|
+
product_id: string;
|
|
2191
|
+
status?: Database["public"]["Enums"]["stripe_status"] | null;
|
|
2192
|
+
storage_exceeded?: boolean | null;
|
|
1185
2193
|
subscription_anchor_end?: string;
|
|
1186
2194
|
subscription_anchor_start?: string;
|
|
1187
2195
|
subscription_id?: string | null;
|
|
1188
|
-
subscription_metered?: Json;
|
|
1189
2196
|
trial_at?: string;
|
|
1190
2197
|
updated_at?: string;
|
|
2198
|
+
upgraded_at?: string | null;
|
|
1191
2199
|
};
|
|
1192
2200
|
Update: {
|
|
1193
2201
|
bandwidth_exceeded?: boolean | null;
|
|
2202
|
+
build_time_exceeded?: boolean | null;
|
|
1194
2203
|
canceled_at?: string | null;
|
|
1195
2204
|
created_at?: string;
|
|
2205
|
+
customer_country?: string | null;
|
|
1196
2206
|
customer_id?: string;
|
|
1197
2207
|
id?: number;
|
|
1198
2208
|
is_good_plan?: boolean | null;
|
|
2209
|
+
last_stripe_event_at?: string | null;
|
|
1199
2210
|
mau_exceeded?: boolean | null;
|
|
2211
|
+
paid_at?: string | null;
|
|
1200
2212
|
plan_calculated_at?: string | null;
|
|
1201
2213
|
plan_usage?: number | null;
|
|
1202
2214
|
price_id?: string | null;
|
|
@@ -1206,9 +2218,9 @@ export type Database = {
|
|
|
1206
2218
|
subscription_anchor_end?: string;
|
|
1207
2219
|
subscription_anchor_start?: string;
|
|
1208
2220
|
subscription_id?: string | null;
|
|
1209
|
-
subscription_metered?: Json;
|
|
1210
2221
|
trial_at?: string;
|
|
1211
2222
|
updated_at?: string;
|
|
2223
|
+
upgraded_at?: string | null;
|
|
1212
2224
|
};
|
|
1213
2225
|
Relationships: [
|
|
1214
2226
|
{
|
|
@@ -1231,6 +2243,7 @@ export type Database = {
|
|
|
1231
2243
|
invite_magic_string: string;
|
|
1232
2244
|
last_name: string;
|
|
1233
2245
|
org_id: string;
|
|
2246
|
+
rbac_role_name: string | null;
|
|
1234
2247
|
role: Database["public"]["Enums"]["user_min_right"];
|
|
1235
2248
|
updated_at: string;
|
|
1236
2249
|
};
|
|
@@ -1244,6 +2257,7 @@ export type Database = {
|
|
|
1244
2257
|
invite_magic_string?: string;
|
|
1245
2258
|
last_name: string;
|
|
1246
2259
|
org_id: string;
|
|
2260
|
+
rbac_role_name?: string | null;
|
|
1247
2261
|
role: Database["public"]["Enums"]["user_min_right"];
|
|
1248
2262
|
updated_at?: string;
|
|
1249
2263
|
};
|
|
@@ -1257,6 +2271,7 @@ export type Database = {
|
|
|
1257
2271
|
invite_magic_string?: string;
|
|
1258
2272
|
last_name?: string;
|
|
1259
2273
|
org_id?: string;
|
|
2274
|
+
rbac_role_name?: string | null;
|
|
1260
2275
|
role?: Database["public"]["Enums"]["user_min_right"];
|
|
1261
2276
|
updated_at?: string;
|
|
1262
2277
|
};
|
|
@@ -1506,12 +2521,73 @@ export type Database = {
|
|
|
1506
2521
|
}
|
|
1507
2522
|
];
|
|
1508
2523
|
};
|
|
2524
|
+
user_password_compliance: {
|
|
2525
|
+
Row: {
|
|
2526
|
+
created_at: string;
|
|
2527
|
+
id: number;
|
|
2528
|
+
org_id: string;
|
|
2529
|
+
policy_hash: string;
|
|
2530
|
+
updated_at: string;
|
|
2531
|
+
user_id: string;
|
|
2532
|
+
validated_at: string;
|
|
2533
|
+
};
|
|
2534
|
+
Insert: {
|
|
2535
|
+
created_at?: string;
|
|
2536
|
+
id?: number;
|
|
2537
|
+
org_id: string;
|
|
2538
|
+
policy_hash: string;
|
|
2539
|
+
updated_at?: string;
|
|
2540
|
+
user_id: string;
|
|
2541
|
+
validated_at?: string;
|
|
2542
|
+
};
|
|
2543
|
+
Update: {
|
|
2544
|
+
created_at?: string;
|
|
2545
|
+
id?: number;
|
|
2546
|
+
org_id?: string;
|
|
2547
|
+
policy_hash?: string;
|
|
2548
|
+
updated_at?: string;
|
|
2549
|
+
user_id?: string;
|
|
2550
|
+
validated_at?: string;
|
|
2551
|
+
};
|
|
2552
|
+
Relationships: [
|
|
2553
|
+
{
|
|
2554
|
+
foreignKeyName: "user_password_compliance_org_id_fkey";
|
|
2555
|
+
columns: ["org_id"];
|
|
2556
|
+
isOneToOne: false;
|
|
2557
|
+
referencedRelation: "orgs";
|
|
2558
|
+
referencedColumns: ["id"];
|
|
2559
|
+
}
|
|
2560
|
+
];
|
|
2561
|
+
};
|
|
2562
|
+
user_security: {
|
|
2563
|
+
Row: {
|
|
2564
|
+
created_at: string;
|
|
2565
|
+
email_otp_verified_at: string | null;
|
|
2566
|
+
updated_at: string;
|
|
2567
|
+
user_id: string;
|
|
2568
|
+
};
|
|
2569
|
+
Insert: {
|
|
2570
|
+
created_at?: string;
|
|
2571
|
+
email_otp_verified_at?: string | null;
|
|
2572
|
+
updated_at?: string;
|
|
2573
|
+
user_id: string;
|
|
2574
|
+
};
|
|
2575
|
+
Update: {
|
|
2576
|
+
created_at?: string;
|
|
2577
|
+
email_otp_verified_at?: string | null;
|
|
2578
|
+
updated_at?: string;
|
|
2579
|
+
user_id?: string;
|
|
2580
|
+
};
|
|
2581
|
+
Relationships: [];
|
|
2582
|
+
};
|
|
1509
2583
|
users: {
|
|
1510
2584
|
Row: {
|
|
1511
2585
|
ban_time: string | null;
|
|
1512
2586
|
country: string | null;
|
|
1513
2587
|
created_at: string | null;
|
|
2588
|
+
created_via_invite: boolean;
|
|
1514
2589
|
email: string;
|
|
2590
|
+
email_preferences: Json;
|
|
1515
2591
|
enable_notifications: boolean;
|
|
1516
2592
|
first_name: string | null;
|
|
1517
2593
|
id: string;
|
|
@@ -1524,7 +2600,9 @@ export type Database = {
|
|
|
1524
2600
|
ban_time?: string | null;
|
|
1525
2601
|
country?: string | null;
|
|
1526
2602
|
created_at?: string | null;
|
|
2603
|
+
created_via_invite?: boolean;
|
|
1527
2604
|
email: string;
|
|
2605
|
+
email_preferences?: Json;
|
|
1528
2606
|
enable_notifications?: boolean;
|
|
1529
2607
|
first_name?: string | null;
|
|
1530
2608
|
id: string;
|
|
@@ -1537,7 +2615,9 @@ export type Database = {
|
|
|
1537
2615
|
ban_time?: string | null;
|
|
1538
2616
|
country?: string | null;
|
|
1539
2617
|
created_at?: string | null;
|
|
2618
|
+
created_via_invite?: boolean;
|
|
1540
2619
|
email?: string;
|
|
2620
|
+
email_preferences?: Json;
|
|
1541
2621
|
enable_notifications?: boolean;
|
|
1542
2622
|
first_name?: string | null;
|
|
1543
2623
|
id?: string;
|
|
@@ -1574,54 +2654,203 @@ export type Database = {
|
|
|
1574
2654
|
action: Database["public"]["Enums"]["version_action"];
|
|
1575
2655
|
app_id: string;
|
|
1576
2656
|
timestamp: string;
|
|
1577
|
-
version_id: number;
|
|
2657
|
+
version_id: number | null;
|
|
2658
|
+
version_name: string | null;
|
|
1578
2659
|
};
|
|
1579
2660
|
Insert: {
|
|
1580
2661
|
action: Database["public"]["Enums"]["version_action"];
|
|
1581
2662
|
app_id: string;
|
|
1582
2663
|
timestamp?: string;
|
|
1583
|
-
version_id
|
|
2664
|
+
version_id?: number | null;
|
|
2665
|
+
version_name?: string | null;
|
|
1584
2666
|
};
|
|
1585
2667
|
Update: {
|
|
1586
2668
|
action?: Database["public"]["Enums"]["version_action"];
|
|
1587
2669
|
app_id?: string;
|
|
1588
2670
|
timestamp?: string;
|
|
1589
|
-
version_id?: number;
|
|
2671
|
+
version_id?: number | null;
|
|
2672
|
+
version_name?: string | null;
|
|
1590
2673
|
};
|
|
1591
2674
|
Relationships: [];
|
|
1592
2675
|
};
|
|
1593
|
-
|
|
1594
|
-
Views: {
|
|
1595
|
-
usage_credit_balances: {
|
|
2676
|
+
webhook_deliveries: {
|
|
1596
2677
|
Row: {
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
2678
|
+
attempt_count: number;
|
|
2679
|
+
audit_log_id: number | null;
|
|
2680
|
+
completed_at: string | null;
|
|
2681
|
+
created_at: string;
|
|
2682
|
+
duration_ms: number | null;
|
|
2683
|
+
event_type: string;
|
|
2684
|
+
id: string;
|
|
2685
|
+
max_attempts: number;
|
|
2686
|
+
next_retry_at: string | null;
|
|
2687
|
+
org_id: string;
|
|
2688
|
+
request_payload: Json;
|
|
2689
|
+
response_body: string | null;
|
|
2690
|
+
response_headers: Json | null;
|
|
2691
|
+
response_status: number | null;
|
|
2692
|
+
status: string;
|
|
2693
|
+
webhook_id: string;
|
|
2694
|
+
};
|
|
2695
|
+
Insert: {
|
|
2696
|
+
attempt_count?: number;
|
|
2697
|
+
audit_log_id?: number | null;
|
|
2698
|
+
completed_at?: string | null;
|
|
2699
|
+
created_at?: string;
|
|
2700
|
+
duration_ms?: number | null;
|
|
2701
|
+
event_type: string;
|
|
2702
|
+
id?: string;
|
|
2703
|
+
max_attempts?: number;
|
|
2704
|
+
next_retry_at?: string | null;
|
|
2705
|
+
org_id: string;
|
|
2706
|
+
request_payload: Json;
|
|
2707
|
+
response_body?: string | null;
|
|
2708
|
+
response_headers?: Json | null;
|
|
2709
|
+
response_status?: number | null;
|
|
2710
|
+
status?: string;
|
|
2711
|
+
webhook_id: string;
|
|
2712
|
+
};
|
|
2713
|
+
Update: {
|
|
2714
|
+
attempt_count?: number;
|
|
2715
|
+
audit_log_id?: number | null;
|
|
2716
|
+
completed_at?: string | null;
|
|
2717
|
+
created_at?: string;
|
|
2718
|
+
duration_ms?: number | null;
|
|
2719
|
+
event_type?: string;
|
|
2720
|
+
id?: string;
|
|
2721
|
+
max_attempts?: number;
|
|
2722
|
+
next_retry_at?: string | null;
|
|
2723
|
+
org_id?: string;
|
|
2724
|
+
request_payload?: Json;
|
|
2725
|
+
response_body?: string | null;
|
|
2726
|
+
response_headers?: Json | null;
|
|
2727
|
+
response_status?: number | null;
|
|
2728
|
+
status?: string;
|
|
2729
|
+
webhook_id?: string;
|
|
1601
2730
|
};
|
|
1602
2731
|
Relationships: [
|
|
1603
2732
|
{
|
|
1604
|
-
foreignKeyName: "
|
|
2733
|
+
foreignKeyName: "webhook_deliveries_org_id_fkey";
|
|
1605
2734
|
columns: ["org_id"];
|
|
1606
2735
|
isOneToOne: false;
|
|
1607
2736
|
referencedRelation: "orgs";
|
|
1608
2737
|
referencedColumns: ["id"];
|
|
2738
|
+
},
|
|
2739
|
+
{
|
|
2740
|
+
foreignKeyName: "webhook_deliveries_webhook_id_fkey";
|
|
2741
|
+
columns: ["webhook_id"];
|
|
2742
|
+
isOneToOne: false;
|
|
2743
|
+
referencedRelation: "webhooks";
|
|
2744
|
+
referencedColumns: ["id"];
|
|
1609
2745
|
}
|
|
1610
2746
|
];
|
|
1611
2747
|
};
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
2748
|
+
webhooks: {
|
|
2749
|
+
Row: {
|
|
2750
|
+
created_at: string;
|
|
2751
|
+
created_by: string;
|
|
2752
|
+
enabled: boolean;
|
|
2753
|
+
events: string[];
|
|
2754
|
+
id: string;
|
|
2755
|
+
name: string;
|
|
1616
2756
|
org_id: string;
|
|
2757
|
+
secret: string;
|
|
2758
|
+
updated_at: string;
|
|
2759
|
+
url: string;
|
|
1617
2760
|
};
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
2761
|
+
Insert: {
|
|
2762
|
+
created_at?: string;
|
|
2763
|
+
created_by: string;
|
|
2764
|
+
enabled?: boolean;
|
|
2765
|
+
events: string[];
|
|
2766
|
+
id?: string;
|
|
2767
|
+
name: string;
|
|
2768
|
+
org_id: string;
|
|
2769
|
+
secret?: string;
|
|
2770
|
+
updated_at?: string;
|
|
2771
|
+
url: string;
|
|
2772
|
+
};
|
|
2773
|
+
Update: {
|
|
2774
|
+
created_at?: string;
|
|
2775
|
+
created_by?: string;
|
|
2776
|
+
enabled?: boolean;
|
|
2777
|
+
events?: string[];
|
|
2778
|
+
id?: string;
|
|
2779
|
+
name?: string;
|
|
2780
|
+
org_id?: string;
|
|
2781
|
+
secret?: string;
|
|
2782
|
+
updated_at?: string;
|
|
2783
|
+
url?: string;
|
|
2784
|
+
};
|
|
2785
|
+
Relationships: [
|
|
2786
|
+
{
|
|
2787
|
+
foreignKeyName: "webhooks_created_by_fkey";
|
|
2788
|
+
columns: ["created_by"];
|
|
2789
|
+
isOneToOne: false;
|
|
2790
|
+
referencedRelation: "users";
|
|
2791
|
+
referencedColumns: ["id"];
|
|
2792
|
+
},
|
|
2793
|
+
{
|
|
2794
|
+
foreignKeyName: "webhooks_org_id_fkey";
|
|
2795
|
+
columns: ["org_id"];
|
|
2796
|
+
isOneToOne: false;
|
|
2797
|
+
referencedRelation: "orgs";
|
|
2798
|
+
referencedColumns: ["id"];
|
|
2799
|
+
}
|
|
2800
|
+
];
|
|
2801
|
+
};
|
|
2802
|
+
};
|
|
2803
|
+
Views: {
|
|
2804
|
+
usage_credit_balances: {
|
|
2805
|
+
Row: {
|
|
2806
|
+
available_credits: number | null;
|
|
2807
|
+
next_expiration: string | null;
|
|
2808
|
+
org_id: string | null;
|
|
2809
|
+
total_credits: number | null;
|
|
2810
|
+
};
|
|
2811
|
+
Relationships: [
|
|
2812
|
+
{
|
|
2813
|
+
foreignKeyName: "usage_credit_grants_org_id_fkey";
|
|
2814
|
+
columns: ["org_id"];
|
|
2815
|
+
isOneToOne: false;
|
|
2816
|
+
referencedRelation: "orgs";
|
|
2817
|
+
referencedColumns: ["id"];
|
|
2818
|
+
}
|
|
2819
|
+
];
|
|
2820
|
+
};
|
|
2821
|
+
usage_credit_ledger: {
|
|
2822
|
+
Row: {
|
|
2823
|
+
amount: number | null;
|
|
2824
|
+
balance_after: number | null;
|
|
2825
|
+
billing_cycle_end: string | null;
|
|
2826
|
+
billing_cycle_start: string | null;
|
|
2827
|
+
description: string | null;
|
|
2828
|
+
details: Json | null;
|
|
2829
|
+
grant_allocations: Json | null;
|
|
2830
|
+
id: number | null;
|
|
2831
|
+
metric: Database["public"]["Enums"]["credit_metric_type"] | null;
|
|
2832
|
+
occurred_at: string | null;
|
|
2833
|
+
org_id: string | null;
|
|
2834
|
+
overage_amount: number | null;
|
|
2835
|
+
overage_event_id: string | null;
|
|
2836
|
+
source_ref: Json | null;
|
|
2837
|
+
transaction_type: Database["public"]["Enums"]["credit_transaction_type"] | null;
|
|
2838
|
+
};
|
|
2839
|
+
Relationships: [];
|
|
2840
|
+
};
|
|
2841
|
+
};
|
|
2842
|
+
Functions: {
|
|
2843
|
+
accept_invitation_to_org: {
|
|
2844
|
+
Args: {
|
|
2845
|
+
org_id: string;
|
|
2846
|
+
};
|
|
2847
|
+
Returns: string;
|
|
2848
|
+
};
|
|
2849
|
+
apply_usage_overage: {
|
|
2850
|
+
Args: {
|
|
2851
|
+
p_billing_cycle_end: string;
|
|
2852
|
+
p_billing_cycle_start: string;
|
|
2853
|
+
p_details?: Json;
|
|
1625
2854
|
p_metric: Database["public"]["Enums"]["credit_metric_type"];
|
|
1626
2855
|
p_org_id: string;
|
|
1627
2856
|
p_overage_amount: number;
|
|
@@ -1637,6 +2866,10 @@ export type Database = {
|
|
|
1637
2866
|
overage_unpaid: number;
|
|
1638
2867
|
}[];
|
|
1639
2868
|
};
|
|
2869
|
+
audit_logs_allowed_orgs: {
|
|
2870
|
+
Args: never;
|
|
2871
|
+
Returns: string[];
|
|
2872
|
+
};
|
|
1640
2873
|
calculate_credit_cost: {
|
|
1641
2874
|
Args: {
|
|
1642
2875
|
p_metric: Database["public"]["Enums"]["credit_metric_type"];
|
|
@@ -1648,6 +2881,49 @@ export type Database = {
|
|
|
1648
2881
|
credits_required: number;
|
|
1649
2882
|
}[];
|
|
1650
2883
|
};
|
|
2884
|
+
calculate_org_metrics_cache_entry: {
|
|
2885
|
+
Args: {
|
|
2886
|
+
p_end_date: string;
|
|
2887
|
+
p_org_id: string;
|
|
2888
|
+
p_start_date: string;
|
|
2889
|
+
};
|
|
2890
|
+
Returns: {
|
|
2891
|
+
bandwidth: number;
|
|
2892
|
+
build_time_unit: number;
|
|
2893
|
+
cached_at: string;
|
|
2894
|
+
end_date: string;
|
|
2895
|
+
fail: number;
|
|
2896
|
+
get: number;
|
|
2897
|
+
install: number;
|
|
2898
|
+
mau: number;
|
|
2899
|
+
org_id: string;
|
|
2900
|
+
start_date: string;
|
|
2901
|
+
storage: number;
|
|
2902
|
+
uninstall: number;
|
|
2903
|
+
};
|
|
2904
|
+
SetofOptions: {
|
|
2905
|
+
from: "*";
|
|
2906
|
+
to: "org_metrics_cache";
|
|
2907
|
+
isOneToOne: true;
|
|
2908
|
+
isSetofReturn: false;
|
|
2909
|
+
};
|
|
2910
|
+
};
|
|
2911
|
+
check_apikey_hashed_key_enforcement: {
|
|
2912
|
+
Args: {
|
|
2913
|
+
apikey_row: Database["public"]["Tables"]["apikeys"]["Row"];
|
|
2914
|
+
};
|
|
2915
|
+
Returns: boolean;
|
|
2916
|
+
};
|
|
2917
|
+
check_domain_sso: {
|
|
2918
|
+
Args: {
|
|
2919
|
+
p_domain: string;
|
|
2920
|
+
};
|
|
2921
|
+
Returns: {
|
|
2922
|
+
has_sso: boolean;
|
|
2923
|
+
org_id: string;
|
|
2924
|
+
provider_id: string;
|
|
2925
|
+
}[];
|
|
2926
|
+
};
|
|
1651
2927
|
check_min_rights: {
|
|
1652
2928
|
Args: {
|
|
1653
2929
|
app_id: string;
|
|
@@ -1666,20 +2942,119 @@ export type Database = {
|
|
|
1666
2942
|
};
|
|
1667
2943
|
Returns: boolean;
|
|
1668
2944
|
};
|
|
2945
|
+
check_min_rights_legacy: {
|
|
2946
|
+
Args: {
|
|
2947
|
+
app_id: string;
|
|
2948
|
+
channel_id: number;
|
|
2949
|
+
min_right: Database["public"]["Enums"]["user_min_right"];
|
|
2950
|
+
org_id: string;
|
|
2951
|
+
user_id: string;
|
|
2952
|
+
};
|
|
2953
|
+
Returns: boolean;
|
|
2954
|
+
};
|
|
2955
|
+
check_min_rights_legacy_no_password_policy: {
|
|
2956
|
+
Args: {
|
|
2957
|
+
app_id: string;
|
|
2958
|
+
channel_id: number;
|
|
2959
|
+
min_right: Database["public"]["Enums"]["user_min_right"];
|
|
2960
|
+
org_id: string;
|
|
2961
|
+
user_id: string;
|
|
2962
|
+
};
|
|
2963
|
+
Returns: boolean;
|
|
2964
|
+
};
|
|
2965
|
+
check_org_encrypted_bundle_enforcement: {
|
|
2966
|
+
Args: {
|
|
2967
|
+
org_id: string;
|
|
2968
|
+
session_key: string;
|
|
2969
|
+
};
|
|
2970
|
+
Returns: boolean;
|
|
2971
|
+
};
|
|
2972
|
+
check_org_hashed_key_enforcement: {
|
|
2973
|
+
Args: {
|
|
2974
|
+
apikey_row: Database["public"]["Tables"]["apikeys"]["Row"];
|
|
2975
|
+
org_id: string;
|
|
2976
|
+
};
|
|
2977
|
+
Returns: boolean;
|
|
2978
|
+
};
|
|
2979
|
+
check_org_members_2fa_enabled: {
|
|
2980
|
+
Args: {
|
|
2981
|
+
org_id: string;
|
|
2982
|
+
};
|
|
2983
|
+
Returns: {
|
|
2984
|
+
"2fa_enabled": boolean;
|
|
2985
|
+
user_id: string;
|
|
2986
|
+
}[];
|
|
2987
|
+
};
|
|
2988
|
+
check_org_members_password_policy: {
|
|
2989
|
+
Args: {
|
|
2990
|
+
org_id: string;
|
|
2991
|
+
};
|
|
2992
|
+
Returns: {
|
|
2993
|
+
email: string;
|
|
2994
|
+
first_name: string;
|
|
2995
|
+
last_name: string;
|
|
2996
|
+
password_policy_compliant: boolean;
|
|
2997
|
+
user_id: string;
|
|
2998
|
+
}[];
|
|
2999
|
+
};
|
|
1669
3000
|
check_revert_to_builtin_version: {
|
|
1670
3001
|
Args: {
|
|
1671
3002
|
appid: string;
|
|
1672
3003
|
};
|
|
1673
|
-
Returns: number;
|
|
3004
|
+
Returns: number | null;
|
|
3005
|
+
};
|
|
3006
|
+
cleanup_expired_apikeys: {
|
|
3007
|
+
Args: never;
|
|
3008
|
+
Returns: undefined;
|
|
3009
|
+
};
|
|
3010
|
+
cleanup_expired_demo_apps: {
|
|
3011
|
+
Args: never;
|
|
3012
|
+
Returns: undefined;
|
|
1674
3013
|
};
|
|
1675
3014
|
cleanup_frequent_job_details: {
|
|
1676
3015
|
Args: never;
|
|
1677
3016
|
Returns: undefined;
|
|
1678
3017
|
};
|
|
3018
|
+
cleanup_job_run_details_7days: {
|
|
3019
|
+
Args: never;
|
|
3020
|
+
Returns: undefined;
|
|
3021
|
+
};
|
|
3022
|
+
cleanup_old_audit_logs: {
|
|
3023
|
+
Args: never;
|
|
3024
|
+
Returns: undefined;
|
|
3025
|
+
};
|
|
3026
|
+
cleanup_old_channel_devices: {
|
|
3027
|
+
Args: never;
|
|
3028
|
+
Returns: undefined;
|
|
3029
|
+
};
|
|
1679
3030
|
cleanup_queue_messages: {
|
|
1680
3031
|
Args: never;
|
|
1681
3032
|
Returns: undefined;
|
|
1682
3033
|
};
|
|
3034
|
+
cleanup_tmp_users: {
|
|
3035
|
+
Args: never;
|
|
3036
|
+
Returns: undefined;
|
|
3037
|
+
};
|
|
3038
|
+
cleanup_webhook_deliveries: {
|
|
3039
|
+
Args: never;
|
|
3040
|
+
Returns: undefined;
|
|
3041
|
+
};
|
|
3042
|
+
clear_onboarding_app_data: {
|
|
3043
|
+
Args: {
|
|
3044
|
+
p_app_uuid: string;
|
|
3045
|
+
};
|
|
3046
|
+
Returns: undefined;
|
|
3047
|
+
};
|
|
3048
|
+
cli_check_permission: {
|
|
3049
|
+
Args: {
|
|
3050
|
+
apikey: string;
|
|
3051
|
+
app_id?: string;
|
|
3052
|
+
channel_id?: number;
|
|
3053
|
+
org_id?: string;
|
|
3054
|
+
permission_key: string;
|
|
3055
|
+
};
|
|
3056
|
+
Returns: boolean;
|
|
3057
|
+
};
|
|
1683
3058
|
convert_bytes_to_gb: {
|
|
1684
3059
|
Args: {
|
|
1685
3060
|
bytes_value: number;
|
|
@@ -1732,6 +3107,80 @@ export type Database = {
|
|
|
1732
3107
|
plan_name: string;
|
|
1733
3108
|
}[];
|
|
1734
3109
|
};
|
|
3110
|
+
count_non_compliant_bundles: {
|
|
3111
|
+
Args: {
|
|
3112
|
+
org_id: string;
|
|
3113
|
+
required_key?: string;
|
|
3114
|
+
};
|
|
3115
|
+
Returns: {
|
|
3116
|
+
non_encrypted_count: number;
|
|
3117
|
+
total_non_compliant: number;
|
|
3118
|
+
wrong_key_count: number;
|
|
3119
|
+
}[];
|
|
3120
|
+
};
|
|
3121
|
+
create_hashed_apikey: {
|
|
3122
|
+
Args: {
|
|
3123
|
+
p_expires_at: string;
|
|
3124
|
+
p_limited_to_apps: string[];
|
|
3125
|
+
p_limited_to_orgs: string[];
|
|
3126
|
+
p_mode: Database["public"]["Enums"]["key_mode"];
|
|
3127
|
+
p_name: string;
|
|
3128
|
+
};
|
|
3129
|
+
Returns: {
|
|
3130
|
+
created_at: string | null;
|
|
3131
|
+
expires_at: string | null;
|
|
3132
|
+
id: number;
|
|
3133
|
+
key: string | null;
|
|
3134
|
+
key_hash: string | null;
|
|
3135
|
+
limited_to_apps: string[] | null;
|
|
3136
|
+
limited_to_orgs: string[] | null;
|
|
3137
|
+
mode: Database["public"]["Enums"]["key_mode"];
|
|
3138
|
+
name: string;
|
|
3139
|
+
rbac_id: string;
|
|
3140
|
+
updated_at: string | null;
|
|
3141
|
+
user_id: string;
|
|
3142
|
+
};
|
|
3143
|
+
SetofOptions: {
|
|
3144
|
+
from: "*";
|
|
3145
|
+
to: "apikeys";
|
|
3146
|
+
isOneToOne: true;
|
|
3147
|
+
isSetofReturn: false;
|
|
3148
|
+
};
|
|
3149
|
+
};
|
|
3150
|
+
create_hashed_apikey_for_user: {
|
|
3151
|
+
Args: {
|
|
3152
|
+
p_expires_at: string;
|
|
3153
|
+
p_limited_to_apps: string[];
|
|
3154
|
+
p_limited_to_orgs: string[];
|
|
3155
|
+
p_mode: Database["public"]["Enums"]["key_mode"];
|
|
3156
|
+
p_name: string;
|
|
3157
|
+
p_user_id: string;
|
|
3158
|
+
};
|
|
3159
|
+
Returns: {
|
|
3160
|
+
created_at: string | null;
|
|
3161
|
+
expires_at: string | null;
|
|
3162
|
+
id: number;
|
|
3163
|
+
key: string | null;
|
|
3164
|
+
key_hash: string | null;
|
|
3165
|
+
limited_to_apps: string[] | null;
|
|
3166
|
+
limited_to_orgs: string[] | null;
|
|
3167
|
+
mode: Database["public"]["Enums"]["key_mode"];
|
|
3168
|
+
name: string;
|
|
3169
|
+
rbac_id: string;
|
|
3170
|
+
updated_at: string | null;
|
|
3171
|
+
user_id: string;
|
|
3172
|
+
};
|
|
3173
|
+
SetofOptions: {
|
|
3174
|
+
from: "*";
|
|
3175
|
+
to: "apikeys";
|
|
3176
|
+
isOneToOne: true;
|
|
3177
|
+
isSetofReturn: false;
|
|
3178
|
+
};
|
|
3179
|
+
};
|
|
3180
|
+
current_request_role: {
|
|
3181
|
+
Args: never;
|
|
3182
|
+
Returns: string;
|
|
3183
|
+
};
|
|
1735
3184
|
delete_accounts_marked_for_deletion: {
|
|
1736
3185
|
Args: never;
|
|
1737
3186
|
Returns: {
|
|
@@ -1739,16 +3188,40 @@ export type Database = {
|
|
|
1739
3188
|
deleted_user_ids: string[];
|
|
1740
3189
|
}[];
|
|
1741
3190
|
};
|
|
3191
|
+
delete_group_with_bindings: {
|
|
3192
|
+
Args: {
|
|
3193
|
+
group_id: string;
|
|
3194
|
+
};
|
|
3195
|
+
Returns: undefined;
|
|
3196
|
+
};
|
|
1742
3197
|
delete_http_response: {
|
|
1743
3198
|
Args: {
|
|
1744
3199
|
request_id: number;
|
|
1745
3200
|
};
|
|
1746
3201
|
Returns: undefined;
|
|
1747
3202
|
};
|
|
3203
|
+
delete_non_compliant_bundles: {
|
|
3204
|
+
Args: {
|
|
3205
|
+
org_id: string;
|
|
3206
|
+
required_key?: string;
|
|
3207
|
+
};
|
|
3208
|
+
Returns: number;
|
|
3209
|
+
};
|
|
1748
3210
|
delete_old_deleted_apps: {
|
|
1749
3211
|
Args: never;
|
|
1750
3212
|
Returns: undefined;
|
|
1751
3213
|
};
|
|
3214
|
+
delete_old_deleted_versions: {
|
|
3215
|
+
Args: never;
|
|
3216
|
+
Returns: undefined;
|
|
3217
|
+
};
|
|
3218
|
+
delete_org_member_role: {
|
|
3219
|
+
Args: {
|
|
3220
|
+
p_org_id: string;
|
|
3221
|
+
p_user_id: string;
|
|
3222
|
+
};
|
|
3223
|
+
Returns: string;
|
|
3224
|
+
};
|
|
1752
3225
|
delete_user: {
|
|
1753
3226
|
Args: never;
|
|
1754
3227
|
Returns: undefined;
|
|
@@ -1777,17 +3250,44 @@ export type Database = {
|
|
|
1777
3250
|
Args: never;
|
|
1778
3251
|
Returns: number;
|
|
1779
3252
|
};
|
|
1780
|
-
|
|
3253
|
+
find_apikey_by_value: {
|
|
1781
3254
|
Args: {
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
3255
|
+
key_value: string;
|
|
3256
|
+
};
|
|
3257
|
+
Returns: {
|
|
3258
|
+
created_at: string | null;
|
|
3259
|
+
expires_at: string | null;
|
|
3260
|
+
id: number;
|
|
3261
|
+
key: string | null;
|
|
3262
|
+
key_hash: string | null;
|
|
3263
|
+
limited_to_apps: string[] | null;
|
|
3264
|
+
limited_to_orgs: string[] | null;
|
|
3265
|
+
mode: Database["public"]["Enums"]["key_mode"];
|
|
3266
|
+
name: string;
|
|
3267
|
+
rbac_id: string;
|
|
3268
|
+
updated_at: string | null;
|
|
3269
|
+
user_id: string;
|
|
3270
|
+
}[];
|
|
3271
|
+
SetofOptions: {
|
|
3272
|
+
from: "*";
|
|
3273
|
+
to: "apikeys";
|
|
3274
|
+
isOneToOne: false;
|
|
3275
|
+
isSetofReturn: true;
|
|
3276
|
+
};
|
|
3277
|
+
};
|
|
3278
|
+
find_best_plan_v3: {
|
|
3279
|
+
Args: {
|
|
3280
|
+
bandwidth: number;
|
|
3281
|
+
build_time_unit?: number;
|
|
3282
|
+
mau: number;
|
|
3283
|
+
storage: number;
|
|
1785
3284
|
};
|
|
1786
3285
|
Returns: string;
|
|
1787
3286
|
};
|
|
1788
3287
|
find_fit_plan_v3: {
|
|
1789
3288
|
Args: {
|
|
1790
3289
|
bandwidth: number;
|
|
3290
|
+
build_time_unit?: number;
|
|
1791
3291
|
mau: number;
|
|
1792
3292
|
storage: number;
|
|
1793
3293
|
};
|
|
@@ -1796,9 +3296,7 @@ export type Database = {
|
|
|
1796
3296
|
}[];
|
|
1797
3297
|
};
|
|
1798
3298
|
get_account_removal_date: {
|
|
1799
|
-
Args:
|
|
1800
|
-
user_id: string;
|
|
1801
|
-
};
|
|
3299
|
+
Args: never;
|
|
1802
3300
|
Returns: string;
|
|
1803
3301
|
};
|
|
1804
3302
|
get_apikey: {
|
|
@@ -1809,6 +3307,25 @@ export type Database = {
|
|
|
1809
3307
|
Args: never;
|
|
1810
3308
|
Returns: string;
|
|
1811
3309
|
};
|
|
3310
|
+
get_app_access_rbac: {
|
|
3311
|
+
Args: {
|
|
3312
|
+
p_app_id: string;
|
|
3313
|
+
};
|
|
3314
|
+
Returns: {
|
|
3315
|
+
expires_at: string;
|
|
3316
|
+
granted_at: string;
|
|
3317
|
+
granted_by: string;
|
|
3318
|
+
id: string;
|
|
3319
|
+
is_direct: boolean;
|
|
3320
|
+
principal_id: string;
|
|
3321
|
+
principal_name: string;
|
|
3322
|
+
principal_type: string;
|
|
3323
|
+
reason: string;
|
|
3324
|
+
role_description: string;
|
|
3325
|
+
role_id: string;
|
|
3326
|
+
role_name: string;
|
|
3327
|
+
}[];
|
|
3328
|
+
};
|
|
1812
3329
|
get_app_metrics: {
|
|
1813
3330
|
Args: {
|
|
1814
3331
|
org_id: string;
|
|
@@ -1816,6 +3333,25 @@ export type Database = {
|
|
|
1816
3333
|
Returns: {
|
|
1817
3334
|
app_id: string;
|
|
1818
3335
|
bandwidth: number;
|
|
3336
|
+
build_time_unit: number;
|
|
3337
|
+
date: string;
|
|
3338
|
+
fail: number;
|
|
3339
|
+
get: number;
|
|
3340
|
+
install: number;
|
|
3341
|
+
mau: number;
|
|
3342
|
+
storage: number;
|
|
3343
|
+
uninstall: number;
|
|
3344
|
+
}[];
|
|
3345
|
+
} | {
|
|
3346
|
+
Args: {
|
|
3347
|
+
end_date: string;
|
|
3348
|
+
org_id: string;
|
|
3349
|
+
start_date: string;
|
|
3350
|
+
};
|
|
3351
|
+
Returns: {
|
|
3352
|
+
app_id: string;
|
|
3353
|
+
bandwidth: number;
|
|
3354
|
+
build_time_unit: number;
|
|
1819
3355
|
date: string;
|
|
1820
3356
|
fail: number;
|
|
1821
3357
|
get: number;
|
|
@@ -1826,6 +3362,7 @@ export type Database = {
|
|
|
1826
3362
|
}[];
|
|
1827
3363
|
} | {
|
|
1828
3364
|
Args: {
|
|
3365
|
+
p_app_id: string;
|
|
1829
3366
|
p_end_date: string;
|
|
1830
3367
|
p_org_id: string;
|
|
1831
3368
|
p_start_date: string;
|
|
@@ -1833,6 +3370,7 @@ export type Database = {
|
|
|
1833
3370
|
Returns: {
|
|
1834
3371
|
app_id: string;
|
|
1835
3372
|
bandwidth: number;
|
|
3373
|
+
build_time_unit: number;
|
|
1836
3374
|
date: string;
|
|
1837
3375
|
fail: number;
|
|
1838
3376
|
get: number;
|
|
@@ -1856,6 +3394,7 @@ export type Database = {
|
|
|
1856
3394
|
};
|
|
1857
3395
|
Returns: {
|
|
1858
3396
|
bandwidth: number;
|
|
3397
|
+
build_time_unit: number;
|
|
1859
3398
|
mau: number;
|
|
1860
3399
|
storage: number;
|
|
1861
3400
|
}[];
|
|
@@ -1883,14 +3422,6 @@ export type Database = {
|
|
|
1883
3422
|
subscription_anchor_start: string;
|
|
1884
3423
|
}[];
|
|
1885
3424
|
};
|
|
1886
|
-
get_d1_sync_url: {
|
|
1887
|
-
Args: never;
|
|
1888
|
-
Returns: string;
|
|
1889
|
-
};
|
|
1890
|
-
get_d1_webhook_signature: {
|
|
1891
|
-
Args: never;
|
|
1892
|
-
Returns: string;
|
|
1893
|
-
};
|
|
1894
3425
|
get_db_url: {
|
|
1895
3426
|
Args: never;
|
|
1896
3427
|
Returns: string;
|
|
@@ -1948,6 +3479,13 @@ export type Database = {
|
|
|
1948
3479
|
};
|
|
1949
3480
|
Returns: string;
|
|
1950
3481
|
};
|
|
3482
|
+
get_identity_org_allowed_apikey_only: {
|
|
3483
|
+
Args: {
|
|
3484
|
+
keymode: Database["public"]["Enums"]["key_mode"][];
|
|
3485
|
+
org_id: string;
|
|
3486
|
+
};
|
|
3487
|
+
Returns: string;
|
|
3488
|
+
};
|
|
1951
3489
|
get_identity_org_appid: {
|
|
1952
3490
|
Args: {
|
|
1953
3491
|
app_id: string;
|
|
@@ -1963,29 +3501,12 @@ export type Database = {
|
|
|
1963
3501
|
Returns: {
|
|
1964
3502
|
org_logo: string;
|
|
1965
3503
|
org_name: string;
|
|
1966
|
-
role:
|
|
3504
|
+
role: string;
|
|
1967
3505
|
}[];
|
|
1968
3506
|
};
|
|
1969
|
-
|
|
1970
|
-
Args: {
|
|
1971
|
-
orgid: string;
|
|
1972
|
-
};
|
|
1973
|
-
Returns: Database["public"]["CompositeTypes"]["stats_table"];
|
|
1974
|
-
SetofOptions: {
|
|
1975
|
-
from: "*";
|
|
1976
|
-
to: "stats_table";
|
|
1977
|
-
isOneToOne: true;
|
|
1978
|
-
isSetofReturn: false;
|
|
1979
|
-
};
|
|
1980
|
-
} | {
|
|
3507
|
+
get_mfa_email_otp_enforced_at: {
|
|
1981
3508
|
Args: never;
|
|
1982
|
-
Returns:
|
|
1983
|
-
SetofOptions: {
|
|
1984
|
-
from: "*";
|
|
1985
|
-
to: "stats_table";
|
|
1986
|
-
isOneToOne: true;
|
|
1987
|
-
isSetofReturn: false;
|
|
1988
|
-
};
|
|
3509
|
+
Returns: string;
|
|
1989
3510
|
};
|
|
1990
3511
|
get_next_cron_time: {
|
|
1991
3512
|
Args: {
|
|
@@ -2008,10 +3529,37 @@ export type Database = {
|
|
|
2008
3529
|
};
|
|
2009
3530
|
Returns: string;
|
|
2010
3531
|
};
|
|
3532
|
+
get_org_apikeys: {
|
|
3533
|
+
Args: {
|
|
3534
|
+
p_org_id: string;
|
|
3535
|
+
};
|
|
3536
|
+
Returns: {
|
|
3537
|
+
created_at: string;
|
|
3538
|
+
expires_at: string;
|
|
3539
|
+
id: number;
|
|
3540
|
+
limited_to_apps: string[];
|
|
3541
|
+
limited_to_orgs: string[];
|
|
3542
|
+
mode: Database["public"]["Enums"]["key_mode"];
|
|
3543
|
+
name: string;
|
|
3544
|
+
owner_email: string;
|
|
3545
|
+
rbac_id: string;
|
|
3546
|
+
user_id: string;
|
|
3547
|
+
}[];
|
|
3548
|
+
};
|
|
3549
|
+
get_org_build_time_unit: {
|
|
3550
|
+
Args: {
|
|
3551
|
+
p_end_date: string;
|
|
3552
|
+
p_org_id: string;
|
|
3553
|
+
p_start_date: string;
|
|
3554
|
+
};
|
|
3555
|
+
Returns: {
|
|
3556
|
+
total_build_time_unit: number;
|
|
3557
|
+
total_builds: number;
|
|
3558
|
+
}[];
|
|
3559
|
+
};
|
|
2011
3560
|
get_org_members: {
|
|
2012
3561
|
Args: {
|
|
2013
3562
|
guild_id: string;
|
|
2014
|
-
user_id: string;
|
|
2015
3563
|
};
|
|
2016
3564
|
Returns: {
|
|
2017
3565
|
aid: number;
|
|
@@ -2024,6 +3572,7 @@ export type Database = {
|
|
|
2024
3572
|
} | {
|
|
2025
3573
|
Args: {
|
|
2026
3574
|
guild_id: string;
|
|
3575
|
+
user_id: string;
|
|
2027
3576
|
};
|
|
2028
3577
|
Returns: {
|
|
2029
3578
|
aid: number;
|
|
@@ -2034,6 +3583,23 @@ export type Database = {
|
|
|
2034
3583
|
uid: string;
|
|
2035
3584
|
}[];
|
|
2036
3585
|
};
|
|
3586
|
+
get_org_members_rbac: {
|
|
3587
|
+
Args: {
|
|
3588
|
+
p_org_id: string;
|
|
3589
|
+
};
|
|
3590
|
+
Returns: {
|
|
3591
|
+
binding_id: string;
|
|
3592
|
+
email: string;
|
|
3593
|
+
granted_at: string;
|
|
3594
|
+
image_url: string;
|
|
3595
|
+
is_invite: boolean;
|
|
3596
|
+
is_tmp: boolean;
|
|
3597
|
+
org_user_id: number;
|
|
3598
|
+
role_id: string;
|
|
3599
|
+
role_name: string;
|
|
3600
|
+
user_id: string;
|
|
3601
|
+
}[];
|
|
3602
|
+
};
|
|
2037
3603
|
get_org_owner_id: {
|
|
2038
3604
|
Args: {
|
|
2039
3605
|
apikey: string;
|
|
@@ -2048,6 +3614,39 @@ export type Database = {
|
|
|
2048
3614
|
};
|
|
2049
3615
|
Returns: string;
|
|
2050
3616
|
};
|
|
3617
|
+
get_org_perm_for_apikey_v2: {
|
|
3618
|
+
Args: {
|
|
3619
|
+
apikey: string;
|
|
3620
|
+
app_id: string;
|
|
3621
|
+
};
|
|
3622
|
+
Returns: string;
|
|
3623
|
+
};
|
|
3624
|
+
get_org_user_access_rbac: {
|
|
3625
|
+
Args: {
|
|
3626
|
+
p_org_id: string;
|
|
3627
|
+
p_user_id: string;
|
|
3628
|
+
};
|
|
3629
|
+
Returns: {
|
|
3630
|
+
app_id: string;
|
|
3631
|
+
channel_id: string;
|
|
3632
|
+
expires_at: string;
|
|
3633
|
+
granted_at: string;
|
|
3634
|
+
granted_by: string;
|
|
3635
|
+
group_name: string;
|
|
3636
|
+
id: string;
|
|
3637
|
+
is_direct: boolean;
|
|
3638
|
+
org_id: string;
|
|
3639
|
+
principal_id: string;
|
|
3640
|
+
principal_name: string;
|
|
3641
|
+
principal_type: string;
|
|
3642
|
+
reason: string;
|
|
3643
|
+
role_description: string;
|
|
3644
|
+
role_id: string;
|
|
3645
|
+
role_name: string;
|
|
3646
|
+
scope_type: string;
|
|
3647
|
+
user_email: string;
|
|
3648
|
+
}[];
|
|
3649
|
+
};
|
|
2051
3650
|
get_organization_cli_warnings: {
|
|
2052
3651
|
Args: {
|
|
2053
3652
|
cli_version: string;
|
|
@@ -2061,47 +3660,146 @@ export type Database = {
|
|
|
2061
3660
|
app_count: number;
|
|
2062
3661
|
can_use_more: boolean;
|
|
2063
3662
|
created_by: string;
|
|
3663
|
+
gid: string;
|
|
3664
|
+
is_canceled: boolean;
|
|
3665
|
+
is_yearly: boolean;
|
|
3666
|
+
logo: string;
|
|
3667
|
+
management_email: string;
|
|
3668
|
+
name: string;
|
|
3669
|
+
paying: boolean;
|
|
3670
|
+
role: string;
|
|
3671
|
+
subscription_end: string;
|
|
3672
|
+
subscription_start: string;
|
|
3673
|
+
trial_left: number;
|
|
3674
|
+
use_new_rbac: boolean;
|
|
3675
|
+
}[];
|
|
3676
|
+
} | {
|
|
3677
|
+
Args: {
|
|
3678
|
+
userid: string;
|
|
3679
|
+
};
|
|
3680
|
+
Returns: {
|
|
3681
|
+
app_count: number;
|
|
3682
|
+
can_use_more: boolean;
|
|
3683
|
+
created_by: string;
|
|
3684
|
+
gid: string;
|
|
3685
|
+
is_canceled: boolean;
|
|
3686
|
+
is_yearly: boolean;
|
|
3687
|
+
logo: string;
|
|
3688
|
+
management_email: string;
|
|
3689
|
+
name: string;
|
|
3690
|
+
paying: boolean;
|
|
3691
|
+
role: string;
|
|
3692
|
+
subscription_end: string;
|
|
3693
|
+
subscription_start: string;
|
|
3694
|
+
trial_left: number;
|
|
3695
|
+
use_new_rbac: boolean;
|
|
3696
|
+
}[];
|
|
3697
|
+
};
|
|
3698
|
+
get_orgs_v7: {
|
|
3699
|
+
Args: never;
|
|
3700
|
+
Returns: {
|
|
3701
|
+
"2fa_has_access": boolean;
|
|
3702
|
+
app_count: number;
|
|
3703
|
+
can_use_more: boolean;
|
|
3704
|
+
created_at: string;
|
|
3705
|
+
created_by: string;
|
|
2064
3706
|
credit_available: number;
|
|
2065
3707
|
credit_next_expiration: string;
|
|
2066
3708
|
credit_total: number;
|
|
3709
|
+
enforce_encrypted_bundles: boolean;
|
|
3710
|
+
enforce_hashed_api_keys: boolean;
|
|
3711
|
+
enforcing_2fa: boolean;
|
|
2067
3712
|
gid: string;
|
|
2068
3713
|
is_canceled: boolean;
|
|
2069
3714
|
is_yearly: boolean;
|
|
2070
3715
|
logo: string;
|
|
2071
3716
|
management_email: string;
|
|
3717
|
+
max_apikey_expiration_days: number;
|
|
2072
3718
|
name: string;
|
|
2073
3719
|
next_stats_update_at: string;
|
|
3720
|
+
password_has_access: boolean;
|
|
3721
|
+
password_policy_config: Json;
|
|
2074
3722
|
paying: boolean;
|
|
3723
|
+
require_apikey_expiration: boolean;
|
|
3724
|
+
required_encryption_key: string;
|
|
2075
3725
|
role: string;
|
|
3726
|
+
stats_refresh_requested_at: string;
|
|
2076
3727
|
stats_updated_at: string;
|
|
2077
3728
|
subscription_end: string;
|
|
2078
3729
|
subscription_start: string;
|
|
2079
3730
|
trial_left: number;
|
|
3731
|
+
use_new_rbac: boolean;
|
|
3732
|
+
website: string;
|
|
2080
3733
|
}[];
|
|
2081
3734
|
} | {
|
|
2082
3735
|
Args: {
|
|
2083
3736
|
userid: string;
|
|
2084
3737
|
};
|
|
2085
3738
|
Returns: {
|
|
3739
|
+
"2fa_has_access": boolean;
|
|
2086
3740
|
app_count: number;
|
|
2087
3741
|
can_use_more: boolean;
|
|
3742
|
+
created_at: string;
|
|
2088
3743
|
created_by: string;
|
|
2089
3744
|
credit_available: number;
|
|
2090
3745
|
credit_next_expiration: string;
|
|
2091
3746
|
credit_total: number;
|
|
3747
|
+
enforce_encrypted_bundles: boolean;
|
|
3748
|
+
enforce_hashed_api_keys: boolean;
|
|
3749
|
+
enforcing_2fa: boolean;
|
|
2092
3750
|
gid: string;
|
|
2093
3751
|
is_canceled: boolean;
|
|
2094
3752
|
is_yearly: boolean;
|
|
2095
3753
|
logo: string;
|
|
2096
3754
|
management_email: string;
|
|
3755
|
+
max_apikey_expiration_days: number;
|
|
2097
3756
|
name: string;
|
|
2098
3757
|
next_stats_update_at: string;
|
|
3758
|
+
password_has_access: boolean;
|
|
3759
|
+
password_policy_config: Json;
|
|
2099
3760
|
paying: boolean;
|
|
3761
|
+
require_apikey_expiration: boolean;
|
|
3762
|
+
required_encryption_key: string;
|
|
2100
3763
|
role: string;
|
|
3764
|
+
stats_refresh_requested_at: string;
|
|
2101
3765
|
stats_updated_at: string;
|
|
2102
3766
|
subscription_end: string;
|
|
2103
3767
|
subscription_start: string;
|
|
2104
3768
|
trial_left: number;
|
|
3769
|
+
use_new_rbac: boolean;
|
|
3770
|
+
website: string;
|
|
3771
|
+
}[];
|
|
3772
|
+
};
|
|
3773
|
+
get_password_policy_hash: {
|
|
3774
|
+
Args: {
|
|
3775
|
+
policy_config: Json;
|
|
3776
|
+
};
|
|
3777
|
+
Returns: string;
|
|
3778
|
+
};
|
|
3779
|
+
get_plan_usage_and_fit: {
|
|
3780
|
+
Args: {
|
|
3781
|
+
orgid: string;
|
|
3782
|
+
};
|
|
3783
|
+
Returns: {
|
|
3784
|
+
bandwidth_percent: number;
|
|
3785
|
+
build_time_percent: number;
|
|
3786
|
+
is_good_plan: boolean;
|
|
3787
|
+
mau_percent: number;
|
|
3788
|
+
storage_percent: number;
|
|
3789
|
+
total_percent: number;
|
|
3790
|
+
}[];
|
|
3791
|
+
};
|
|
3792
|
+
get_plan_usage_and_fit_uncached: {
|
|
3793
|
+
Args: {
|
|
3794
|
+
orgid: string;
|
|
3795
|
+
};
|
|
3796
|
+
Returns: {
|
|
3797
|
+
bandwidth_percent: number;
|
|
3798
|
+
build_time_percent: number;
|
|
3799
|
+
is_good_plan: boolean;
|
|
3800
|
+
mau_percent: number;
|
|
3801
|
+
storage_percent: number;
|
|
3802
|
+
total_percent: number;
|
|
2105
3803
|
}[];
|
|
2106
3804
|
};
|
|
2107
3805
|
get_plan_usage_percent_detailed: {
|
|
@@ -2110,6 +3808,7 @@ export type Database = {
|
|
|
2110
3808
|
};
|
|
2111
3809
|
Returns: {
|
|
2112
3810
|
bandwidth_percent: number;
|
|
3811
|
+
build_time_percent: number;
|
|
2113
3812
|
mau_percent: number;
|
|
2114
3813
|
storage_percent: number;
|
|
2115
3814
|
total_percent: number;
|
|
@@ -2122,16 +3821,19 @@ export type Database = {
|
|
|
2122
3821
|
};
|
|
2123
3822
|
Returns: {
|
|
2124
3823
|
bandwidth_percent: number;
|
|
3824
|
+
build_time_percent: number;
|
|
2125
3825
|
mau_percent: number;
|
|
2126
3826
|
storage_percent: number;
|
|
2127
3827
|
total_percent: number;
|
|
2128
3828
|
}[];
|
|
2129
3829
|
};
|
|
2130
|
-
|
|
2131
|
-
Args:
|
|
3830
|
+
get_sso_enforcement_by_domain: {
|
|
3831
|
+
Args: {
|
|
3832
|
+
p_domain: string;
|
|
3833
|
+
};
|
|
2132
3834
|
Returns: {
|
|
2133
|
-
|
|
2134
|
-
|
|
3835
|
+
enforce_sso: boolean;
|
|
3836
|
+
org_id: string;
|
|
2135
3837
|
}[];
|
|
2136
3838
|
};
|
|
2137
3839
|
get_total_app_storage_size_orgs: {
|
|
@@ -2142,11 +3844,24 @@ export type Database = {
|
|
|
2142
3844
|
Returns: number;
|
|
2143
3845
|
};
|
|
2144
3846
|
get_total_metrics: {
|
|
3847
|
+
Args: never;
|
|
3848
|
+
Returns: {
|
|
3849
|
+
bandwidth: number;
|
|
3850
|
+
build_time_unit: number;
|
|
3851
|
+
fail: number;
|
|
3852
|
+
get: number;
|
|
3853
|
+
install: number;
|
|
3854
|
+
mau: number;
|
|
3855
|
+
storage: number;
|
|
3856
|
+
uninstall: number;
|
|
3857
|
+
}[];
|
|
3858
|
+
} | {
|
|
2145
3859
|
Args: {
|
|
2146
3860
|
org_id: string;
|
|
2147
3861
|
};
|
|
2148
3862
|
Returns: {
|
|
2149
3863
|
bandwidth: number;
|
|
3864
|
+
build_time_unit: number;
|
|
2150
3865
|
fail: number;
|
|
2151
3866
|
get: number;
|
|
2152
3867
|
install: number;
|
|
@@ -2162,6 +3877,7 @@ export type Database = {
|
|
|
2162
3877
|
};
|
|
2163
3878
|
Returns: {
|
|
2164
3879
|
bandwidth: number;
|
|
3880
|
+
build_time_unit: number;
|
|
2165
3881
|
fail: number;
|
|
2166
3882
|
get: number;
|
|
2167
3883
|
install: number;
|
|
@@ -2190,12 +3906,12 @@ export type Database = {
|
|
|
2190
3906
|
get_user_id: {
|
|
2191
3907
|
Args: {
|
|
2192
3908
|
apikey: string;
|
|
2193
|
-
app_id: string;
|
|
2194
3909
|
};
|
|
2195
3910
|
Returns: string;
|
|
2196
3911
|
} | {
|
|
2197
3912
|
Args: {
|
|
2198
3913
|
apikey: string;
|
|
3914
|
+
app_id: string;
|
|
2199
3915
|
};
|
|
2200
3916
|
Returns: string;
|
|
2201
3917
|
};
|
|
@@ -2211,18 +3927,28 @@ export type Database = {
|
|
|
2211
3927
|
};
|
|
2212
3928
|
Returns: string;
|
|
2213
3929
|
};
|
|
3930
|
+
get_user_org_ids: {
|
|
3931
|
+
Args: never;
|
|
3932
|
+
Returns: {
|
|
3933
|
+
org_id: string;
|
|
3934
|
+
}[];
|
|
3935
|
+
};
|
|
2214
3936
|
get_versions_with_no_metadata: {
|
|
2215
3937
|
Args: never;
|
|
2216
3938
|
Returns: {
|
|
2217
3939
|
app_id: string;
|
|
2218
3940
|
checksum: string | null;
|
|
3941
|
+
cli_version: string | null;
|
|
2219
3942
|
comment: string | null;
|
|
2220
3943
|
created_at: string | null;
|
|
2221
3944
|
deleted: boolean;
|
|
3945
|
+
deleted_at: string | null;
|
|
2222
3946
|
external_url: string | null;
|
|
2223
3947
|
id: number;
|
|
3948
|
+
key_id: string | null;
|
|
2224
3949
|
link: string | null;
|
|
2225
3950
|
manifest: Database["public"]["CompositeTypes"]["manifest_entry"][] | null;
|
|
3951
|
+
manifest_count: number;
|
|
2226
3952
|
min_update_version: string | null;
|
|
2227
3953
|
name: string;
|
|
2228
3954
|
native_packages: Json[] | null;
|
|
@@ -2250,6 +3976,15 @@ export type Database = {
|
|
|
2250
3976
|
open_app: number;
|
|
2251
3977
|
}[];
|
|
2252
3978
|
};
|
|
3979
|
+
has_2fa_enabled: {
|
|
3980
|
+
Args: never;
|
|
3981
|
+
Returns: boolean;
|
|
3982
|
+
} | {
|
|
3983
|
+
Args: {
|
|
3984
|
+
user_id: string;
|
|
3985
|
+
};
|
|
3986
|
+
Returns: boolean;
|
|
3987
|
+
};
|
|
2253
3988
|
has_app_right: {
|
|
2254
3989
|
Args: {
|
|
2255
3990
|
appid: string;
|
|
@@ -2274,6 +4009,20 @@ export type Database = {
|
|
|
2274
4009
|
};
|
|
2275
4010
|
Returns: boolean;
|
|
2276
4011
|
};
|
|
4012
|
+
has_seeded_demo_data: {
|
|
4013
|
+
Args: {
|
|
4014
|
+
p_app_id: string;
|
|
4015
|
+
};
|
|
4016
|
+
Returns: boolean;
|
|
4017
|
+
};
|
|
4018
|
+
internal_request_db_user_names: {
|
|
4019
|
+
Args: never;
|
|
4020
|
+
Returns: string[];
|
|
4021
|
+
};
|
|
4022
|
+
internal_request_role_names: {
|
|
4023
|
+
Args: never;
|
|
4024
|
+
Returns: string[];
|
|
4025
|
+
};
|
|
2277
4026
|
invite_user_to_org: {
|
|
2278
4027
|
Args: {
|
|
2279
4028
|
email: string;
|
|
@@ -2282,20 +4031,19 @@ export type Database = {
|
|
|
2282
4031
|
};
|
|
2283
4032
|
Returns: string;
|
|
2284
4033
|
};
|
|
2285
|
-
|
|
4034
|
+
invite_user_to_org_rbac: {
|
|
2286
4035
|
Args: {
|
|
2287
|
-
|
|
4036
|
+
email: string;
|
|
4037
|
+
org_id: string;
|
|
4038
|
+
role_name: string;
|
|
2288
4039
|
};
|
|
2289
|
-
Returns:
|
|
4040
|
+
Returns: string;
|
|
2290
4041
|
};
|
|
2291
|
-
|
|
4042
|
+
is_account_disabled: {
|
|
2292
4043
|
Args: {
|
|
2293
|
-
|
|
4044
|
+
user_id: string;
|
|
2294
4045
|
};
|
|
2295
4046
|
Returns: boolean;
|
|
2296
|
-
} | {
|
|
2297
|
-
Args: never;
|
|
2298
|
-
Returns: boolean;
|
|
2299
4047
|
};
|
|
2300
4048
|
is_allowed_action: {
|
|
2301
4049
|
Args: {
|
|
@@ -2331,6 +4079,12 @@ export type Database = {
|
|
|
2331
4079
|
};
|
|
2332
4080
|
Returns: boolean;
|
|
2333
4081
|
};
|
|
4082
|
+
is_apikey_expired: {
|
|
4083
|
+
Args: {
|
|
4084
|
+
key_expires_at: string;
|
|
4085
|
+
};
|
|
4086
|
+
Returns: boolean;
|
|
4087
|
+
};
|
|
2334
4088
|
is_app_owner: {
|
|
2335
4089
|
Args: {
|
|
2336
4090
|
apikey: string;
|
|
@@ -2340,12 +4094,12 @@ export type Database = {
|
|
|
2340
4094
|
} | {
|
|
2341
4095
|
Args: {
|
|
2342
4096
|
appid: string;
|
|
2343
|
-
userid: string;
|
|
2344
4097
|
};
|
|
2345
4098
|
Returns: boolean;
|
|
2346
4099
|
} | {
|
|
2347
4100
|
Args: {
|
|
2348
4101
|
appid: string;
|
|
4102
|
+
userid: string;
|
|
2349
4103
|
};
|
|
2350
4104
|
Returns: boolean;
|
|
2351
4105
|
};
|
|
@@ -2355,9 +4109,21 @@ export type Database = {
|
|
|
2355
4109
|
};
|
|
2356
4110
|
Returns: boolean;
|
|
2357
4111
|
};
|
|
2358
|
-
|
|
4112
|
+
is_build_time_exceeded_by_org: {
|
|
2359
4113
|
Args: {
|
|
2360
|
-
|
|
4114
|
+
org_id: string;
|
|
4115
|
+
};
|
|
4116
|
+
Returns: boolean;
|
|
4117
|
+
};
|
|
4118
|
+
is_bundle_encrypted: {
|
|
4119
|
+
Args: {
|
|
4120
|
+
session_key: string;
|
|
4121
|
+
};
|
|
4122
|
+
Returns: boolean;
|
|
4123
|
+
};
|
|
4124
|
+
is_canceled_org: {
|
|
4125
|
+
Args: {
|
|
4126
|
+
orgid: string;
|
|
2361
4127
|
};
|
|
2362
4128
|
Returns: boolean;
|
|
2363
4129
|
};
|
|
@@ -2367,6 +4133,12 @@ export type Database = {
|
|
|
2367
4133
|
};
|
|
2368
4134
|
Returns: boolean;
|
|
2369
4135
|
};
|
|
4136
|
+
is_internal_request_role: {
|
|
4137
|
+
Args: {
|
|
4138
|
+
caller_role: string;
|
|
4139
|
+
};
|
|
4140
|
+
Returns: boolean;
|
|
4141
|
+
};
|
|
2370
4142
|
is_mau_exceeded_by_org: {
|
|
2371
4143
|
Args: {
|
|
2372
4144
|
org_id: string;
|
|
@@ -2410,13 +4182,6 @@ export type Database = {
|
|
|
2410
4182
|
};
|
|
2411
4183
|
Returns: boolean;
|
|
2412
4184
|
};
|
|
2413
|
-
is_owner_of_org: {
|
|
2414
|
-
Args: {
|
|
2415
|
-
org_id: string;
|
|
2416
|
-
user_id: string;
|
|
2417
|
-
};
|
|
2418
|
-
Returns: boolean;
|
|
2419
|
-
};
|
|
2420
4185
|
is_paying_and_good_plan_org: {
|
|
2421
4186
|
Args: {
|
|
2422
4187
|
orgid: string;
|
|
@@ -2436,6 +4201,25 @@ export type Database = {
|
|
|
2436
4201
|
};
|
|
2437
4202
|
Returns: boolean;
|
|
2438
4203
|
};
|
|
4204
|
+
is_platform_admin: {
|
|
4205
|
+
Args: never;
|
|
4206
|
+
Returns: boolean;
|
|
4207
|
+
} | {
|
|
4208
|
+
Args: {
|
|
4209
|
+
userid: string;
|
|
4210
|
+
};
|
|
4211
|
+
Returns: boolean;
|
|
4212
|
+
};
|
|
4213
|
+
is_rbac_enabled_globally: {
|
|
4214
|
+
Args: never;
|
|
4215
|
+
Returns: boolean;
|
|
4216
|
+
};
|
|
4217
|
+
is_recent_email_otp_verified: {
|
|
4218
|
+
Args: {
|
|
4219
|
+
user_id: string;
|
|
4220
|
+
};
|
|
4221
|
+
Returns: boolean;
|
|
4222
|
+
};
|
|
2439
4223
|
is_storage_exceeded_by_org: {
|
|
2440
4224
|
Args: {
|
|
2441
4225
|
org_id: string;
|
|
@@ -2448,6 +4232,26 @@ export type Database = {
|
|
|
2448
4232
|
};
|
|
2449
4233
|
Returns: number;
|
|
2450
4234
|
};
|
|
4235
|
+
is_user_app_admin: {
|
|
4236
|
+
Args: {
|
|
4237
|
+
p_app_id: string;
|
|
4238
|
+
p_user_id: string;
|
|
4239
|
+
};
|
|
4240
|
+
Returns: boolean;
|
|
4241
|
+
};
|
|
4242
|
+
is_user_org_admin: {
|
|
4243
|
+
Args: {
|
|
4244
|
+
p_org_id: string;
|
|
4245
|
+
p_user_id: string;
|
|
4246
|
+
};
|
|
4247
|
+
Returns: boolean;
|
|
4248
|
+
};
|
|
4249
|
+
mark_app_stats_refreshed: {
|
|
4250
|
+
Args: {
|
|
4251
|
+
p_app_id: string;
|
|
4252
|
+
};
|
|
4253
|
+
Returns: string;
|
|
4254
|
+
};
|
|
2451
4255
|
mass_edit_queue_messages_cf_ids: {
|
|
2452
4256
|
Args: {
|
|
2453
4257
|
updates: Database["public"]["CompositeTypes"]["message_update"][];
|
|
@@ -2474,90 +4278,532 @@ export type Database = {
|
|
|
2474
4278
|
};
|
|
2475
4279
|
Returns: number;
|
|
2476
4280
|
};
|
|
2477
|
-
parse_step_pattern: {
|
|
2478
|
-
Args: {
|
|
2479
|
-
pattern: string;
|
|
2480
|
-
};
|
|
2481
|
-
Returns: number;
|
|
4281
|
+
parse_step_pattern: {
|
|
4282
|
+
Args: {
|
|
4283
|
+
pattern: string;
|
|
4284
|
+
};
|
|
4285
|
+
Returns: number;
|
|
4286
|
+
};
|
|
4287
|
+
pg_log: {
|
|
4288
|
+
Args: {
|
|
4289
|
+
decision: string;
|
|
4290
|
+
input?: Json;
|
|
4291
|
+
};
|
|
4292
|
+
Returns: undefined;
|
|
4293
|
+
};
|
|
4294
|
+
process_admin_stats: {
|
|
4295
|
+
Args: never;
|
|
4296
|
+
Returns: undefined;
|
|
4297
|
+
};
|
|
4298
|
+
process_all_cron_tasks: {
|
|
4299
|
+
Args: never;
|
|
4300
|
+
Returns: undefined;
|
|
4301
|
+
};
|
|
4302
|
+
process_billing_period_stats_email: {
|
|
4303
|
+
Args: never;
|
|
4304
|
+
Returns: undefined;
|
|
4305
|
+
};
|
|
4306
|
+
process_channel_device_counts_queue: {
|
|
4307
|
+
Args: {
|
|
4308
|
+
batch_size?: number;
|
|
4309
|
+
};
|
|
4310
|
+
Returns: number;
|
|
4311
|
+
};
|
|
4312
|
+
process_cron_stats_jobs: {
|
|
4313
|
+
Args: never;
|
|
4314
|
+
Returns: undefined;
|
|
4315
|
+
};
|
|
4316
|
+
process_cron_sync_sub_jobs: {
|
|
4317
|
+
Args: never;
|
|
4318
|
+
Returns: undefined;
|
|
4319
|
+
};
|
|
4320
|
+
process_daily_fail_ratio_email: {
|
|
4321
|
+
Args: never;
|
|
4322
|
+
Returns: undefined;
|
|
4323
|
+
};
|
|
4324
|
+
process_deploy_install_stats_email: {
|
|
4325
|
+
Args: never;
|
|
4326
|
+
Returns: undefined;
|
|
4327
|
+
};
|
|
4328
|
+
process_failed_uploads: {
|
|
4329
|
+
Args: never;
|
|
4330
|
+
Returns: undefined;
|
|
4331
|
+
};
|
|
4332
|
+
process_free_trial_expired: {
|
|
4333
|
+
Args: never;
|
|
4334
|
+
Returns: undefined;
|
|
4335
|
+
};
|
|
4336
|
+
process_function_queue: {
|
|
4337
|
+
Args: {
|
|
4338
|
+
batch_size?: number;
|
|
4339
|
+
queue_name: string;
|
|
4340
|
+
};
|
|
4341
|
+
Returns: undefined;
|
|
4342
|
+
} | {
|
|
4343
|
+
Args: {
|
|
4344
|
+
batch_size?: number;
|
|
4345
|
+
queue_names: string[];
|
|
4346
|
+
};
|
|
4347
|
+
Returns: undefined;
|
|
4348
|
+
};
|
|
4349
|
+
process_stats_email_monthly: {
|
|
4350
|
+
Args: never;
|
|
4351
|
+
Returns: undefined;
|
|
4352
|
+
};
|
|
4353
|
+
process_stats_email_weekly: {
|
|
4354
|
+
Args: never;
|
|
4355
|
+
Returns: undefined;
|
|
4356
|
+
};
|
|
4357
|
+
process_subscribed_orgs: {
|
|
4358
|
+
Args: never;
|
|
4359
|
+
Returns: undefined;
|
|
4360
|
+
};
|
|
4361
|
+
queue_cron_stat_app_for_app: {
|
|
4362
|
+
Args: {
|
|
4363
|
+
p_app_id: string;
|
|
4364
|
+
p_org_id?: string;
|
|
4365
|
+
};
|
|
4366
|
+
Returns: undefined;
|
|
4367
|
+
};
|
|
4368
|
+
queue_cron_stat_org_for_org: {
|
|
4369
|
+
Args: {
|
|
4370
|
+
customer_id: string;
|
|
4371
|
+
org_id: string;
|
|
4372
|
+
};
|
|
4373
|
+
Returns: undefined;
|
|
4374
|
+
};
|
|
4375
|
+
rbac_check_permission: {
|
|
4376
|
+
Args: {
|
|
4377
|
+
p_app_id?: string;
|
|
4378
|
+
p_channel_id?: number;
|
|
4379
|
+
p_org_id?: string;
|
|
4380
|
+
p_permission_key: string;
|
|
4381
|
+
};
|
|
4382
|
+
Returns: boolean;
|
|
4383
|
+
};
|
|
4384
|
+
rbac_check_permission_direct: {
|
|
4385
|
+
Args: {
|
|
4386
|
+
p_apikey?: string;
|
|
4387
|
+
p_app_id: string;
|
|
4388
|
+
p_channel_id: number;
|
|
4389
|
+
p_org_id: string;
|
|
4390
|
+
p_permission_key: string;
|
|
4391
|
+
p_user_id: string;
|
|
4392
|
+
};
|
|
4393
|
+
Returns: boolean;
|
|
4394
|
+
};
|
|
4395
|
+
rbac_check_permission_direct_no_password_policy: {
|
|
4396
|
+
Args: {
|
|
4397
|
+
p_apikey?: string;
|
|
4398
|
+
p_app_id: string;
|
|
4399
|
+
p_channel_id: number;
|
|
4400
|
+
p_org_id: string;
|
|
4401
|
+
p_permission_key: string;
|
|
4402
|
+
p_user_id: string;
|
|
4403
|
+
};
|
|
4404
|
+
Returns: boolean;
|
|
4405
|
+
};
|
|
4406
|
+
rbac_check_permission_no_password_policy: {
|
|
4407
|
+
Args: {
|
|
4408
|
+
p_app_id?: string;
|
|
4409
|
+
p_channel_id?: number;
|
|
4410
|
+
p_org_id?: string;
|
|
4411
|
+
p_permission_key: string;
|
|
4412
|
+
};
|
|
4413
|
+
Returns: boolean;
|
|
4414
|
+
};
|
|
4415
|
+
rbac_check_permission_request: {
|
|
4416
|
+
Args: {
|
|
4417
|
+
p_app_id?: string;
|
|
4418
|
+
p_channel_id?: number;
|
|
4419
|
+
p_org_id?: string;
|
|
4420
|
+
p_permission_key: string;
|
|
4421
|
+
};
|
|
4422
|
+
Returns: boolean;
|
|
4423
|
+
};
|
|
4424
|
+
rbac_enable_for_org: {
|
|
4425
|
+
Args: {
|
|
4426
|
+
p_granted_by?: string;
|
|
4427
|
+
p_org_id: string;
|
|
4428
|
+
};
|
|
4429
|
+
Returns: Json;
|
|
4430
|
+
};
|
|
4431
|
+
rbac_has_permission: {
|
|
4432
|
+
Args: {
|
|
4433
|
+
p_app_id: string;
|
|
4434
|
+
p_channel_id: number;
|
|
4435
|
+
p_org_id: string;
|
|
4436
|
+
p_permission_key: string;
|
|
4437
|
+
p_principal_id: string;
|
|
4438
|
+
p_principal_type: string;
|
|
4439
|
+
};
|
|
4440
|
+
Returns: boolean;
|
|
4441
|
+
};
|
|
4442
|
+
rbac_is_enabled_for_org: {
|
|
4443
|
+
Args: {
|
|
4444
|
+
p_org_id: string;
|
|
4445
|
+
};
|
|
4446
|
+
Returns: boolean;
|
|
4447
|
+
};
|
|
4448
|
+
rbac_legacy_right_for_org_role: {
|
|
4449
|
+
Args: {
|
|
4450
|
+
p_role_name: string;
|
|
4451
|
+
};
|
|
4452
|
+
Returns: Database["public"]["Enums"]["user_min_right"];
|
|
4453
|
+
};
|
|
4454
|
+
rbac_legacy_right_for_permission: {
|
|
4455
|
+
Args: {
|
|
4456
|
+
p_permission_key: string;
|
|
4457
|
+
};
|
|
4458
|
+
Returns: Database["public"]["Enums"]["user_min_right"];
|
|
4459
|
+
};
|
|
4460
|
+
rbac_legacy_role_hint: {
|
|
4461
|
+
Args: {
|
|
4462
|
+
p_app_id: string;
|
|
4463
|
+
p_channel_id: number;
|
|
4464
|
+
p_user_right: Database["public"]["Enums"]["user_min_right"];
|
|
4465
|
+
};
|
|
4466
|
+
Returns: string;
|
|
4467
|
+
};
|
|
4468
|
+
rbac_migrate_org_users_to_bindings: {
|
|
4469
|
+
Args: {
|
|
4470
|
+
p_granted_by?: string;
|
|
4471
|
+
p_org_id: string;
|
|
4472
|
+
};
|
|
4473
|
+
Returns: Json;
|
|
4474
|
+
};
|
|
4475
|
+
rbac_perm_app_build_native: {
|
|
4476
|
+
Args: never;
|
|
4477
|
+
Returns: string;
|
|
4478
|
+
};
|
|
4479
|
+
rbac_perm_app_create_channel: {
|
|
4480
|
+
Args: never;
|
|
4481
|
+
Returns: string;
|
|
4482
|
+
};
|
|
4483
|
+
rbac_perm_app_delete: {
|
|
4484
|
+
Args: never;
|
|
4485
|
+
Returns: string;
|
|
4486
|
+
};
|
|
4487
|
+
rbac_perm_app_manage_devices: {
|
|
4488
|
+
Args: never;
|
|
4489
|
+
Returns: string;
|
|
4490
|
+
};
|
|
4491
|
+
rbac_perm_app_read: {
|
|
4492
|
+
Args: never;
|
|
4493
|
+
Returns: string;
|
|
4494
|
+
};
|
|
4495
|
+
rbac_perm_app_read_audit: {
|
|
4496
|
+
Args: never;
|
|
4497
|
+
Returns: string;
|
|
4498
|
+
};
|
|
4499
|
+
rbac_perm_app_read_bundles: {
|
|
4500
|
+
Args: never;
|
|
4501
|
+
Returns: string;
|
|
4502
|
+
};
|
|
4503
|
+
rbac_perm_app_read_channels: {
|
|
4504
|
+
Args: never;
|
|
4505
|
+
Returns: string;
|
|
4506
|
+
};
|
|
4507
|
+
rbac_perm_app_read_devices: {
|
|
4508
|
+
Args: never;
|
|
4509
|
+
Returns: string;
|
|
4510
|
+
};
|
|
4511
|
+
rbac_perm_app_read_logs: {
|
|
4512
|
+
Args: never;
|
|
4513
|
+
Returns: string;
|
|
4514
|
+
};
|
|
4515
|
+
rbac_perm_app_transfer: {
|
|
4516
|
+
Args: never;
|
|
4517
|
+
Returns: string;
|
|
4518
|
+
};
|
|
4519
|
+
rbac_perm_app_update_settings: {
|
|
4520
|
+
Args: never;
|
|
4521
|
+
Returns: string;
|
|
4522
|
+
};
|
|
4523
|
+
rbac_perm_app_update_user_roles: {
|
|
4524
|
+
Args: never;
|
|
4525
|
+
Returns: string;
|
|
4526
|
+
};
|
|
4527
|
+
rbac_perm_app_upload_bundle: {
|
|
4528
|
+
Args: never;
|
|
4529
|
+
Returns: string;
|
|
4530
|
+
};
|
|
4531
|
+
rbac_perm_bundle_delete: {
|
|
4532
|
+
Args: never;
|
|
4533
|
+
Returns: string;
|
|
4534
|
+
};
|
|
4535
|
+
rbac_perm_bundle_read: {
|
|
4536
|
+
Args: never;
|
|
4537
|
+
Returns: string;
|
|
4538
|
+
};
|
|
4539
|
+
rbac_perm_bundle_update: {
|
|
4540
|
+
Args: never;
|
|
4541
|
+
Returns: string;
|
|
4542
|
+
};
|
|
4543
|
+
rbac_perm_channel_delete: {
|
|
4544
|
+
Args: never;
|
|
4545
|
+
Returns: string;
|
|
4546
|
+
};
|
|
4547
|
+
rbac_perm_channel_manage_forced_devices: {
|
|
4548
|
+
Args: never;
|
|
4549
|
+
Returns: string;
|
|
4550
|
+
};
|
|
4551
|
+
rbac_perm_channel_promote_bundle: {
|
|
4552
|
+
Args: never;
|
|
4553
|
+
Returns: string;
|
|
4554
|
+
};
|
|
4555
|
+
rbac_perm_channel_read: {
|
|
4556
|
+
Args: never;
|
|
4557
|
+
Returns: string;
|
|
4558
|
+
};
|
|
4559
|
+
rbac_perm_channel_read_audit: {
|
|
4560
|
+
Args: never;
|
|
4561
|
+
Returns: string;
|
|
4562
|
+
};
|
|
4563
|
+
rbac_perm_channel_read_forced_devices: {
|
|
4564
|
+
Args: never;
|
|
4565
|
+
Returns: string;
|
|
4566
|
+
};
|
|
4567
|
+
rbac_perm_channel_read_history: {
|
|
4568
|
+
Args: never;
|
|
4569
|
+
Returns: string;
|
|
4570
|
+
};
|
|
4571
|
+
rbac_perm_channel_rollback_bundle: {
|
|
4572
|
+
Args: never;
|
|
4573
|
+
Returns: string;
|
|
4574
|
+
};
|
|
4575
|
+
rbac_perm_channel_update_settings: {
|
|
4576
|
+
Args: never;
|
|
4577
|
+
Returns: string;
|
|
4578
|
+
};
|
|
4579
|
+
rbac_perm_org_create_app: {
|
|
4580
|
+
Args: never;
|
|
4581
|
+
Returns: string;
|
|
4582
|
+
};
|
|
4583
|
+
rbac_perm_org_delete: {
|
|
4584
|
+
Args: never;
|
|
4585
|
+
Returns: string;
|
|
4586
|
+
};
|
|
4587
|
+
rbac_perm_org_invite_user: {
|
|
4588
|
+
Args: never;
|
|
4589
|
+
Returns: string;
|
|
4590
|
+
};
|
|
4591
|
+
rbac_perm_org_read: {
|
|
4592
|
+
Args: never;
|
|
4593
|
+
Returns: string;
|
|
4594
|
+
};
|
|
4595
|
+
rbac_perm_org_read_audit: {
|
|
4596
|
+
Args: never;
|
|
4597
|
+
Returns: string;
|
|
4598
|
+
};
|
|
4599
|
+
rbac_perm_org_read_billing: {
|
|
4600
|
+
Args: never;
|
|
4601
|
+
Returns: string;
|
|
4602
|
+
};
|
|
4603
|
+
rbac_perm_org_read_billing_audit: {
|
|
4604
|
+
Args: never;
|
|
4605
|
+
Returns: string;
|
|
4606
|
+
};
|
|
4607
|
+
rbac_perm_org_read_invoices: {
|
|
4608
|
+
Args: never;
|
|
4609
|
+
Returns: string;
|
|
4610
|
+
};
|
|
4611
|
+
rbac_perm_org_read_members: {
|
|
4612
|
+
Args: never;
|
|
4613
|
+
Returns: string;
|
|
4614
|
+
};
|
|
4615
|
+
rbac_perm_org_update_billing: {
|
|
4616
|
+
Args: never;
|
|
4617
|
+
Returns: string;
|
|
4618
|
+
};
|
|
4619
|
+
rbac_perm_org_update_settings: {
|
|
4620
|
+
Args: never;
|
|
4621
|
+
Returns: string;
|
|
4622
|
+
};
|
|
4623
|
+
rbac_perm_org_update_user_roles: {
|
|
4624
|
+
Args: never;
|
|
4625
|
+
Returns: string;
|
|
4626
|
+
};
|
|
4627
|
+
rbac_perm_platform_db_break_glass: {
|
|
4628
|
+
Args: never;
|
|
4629
|
+
Returns: string;
|
|
4630
|
+
};
|
|
4631
|
+
rbac_perm_platform_delete_orphan_users: {
|
|
4632
|
+
Args: never;
|
|
4633
|
+
Returns: string;
|
|
4634
|
+
};
|
|
4635
|
+
rbac_perm_platform_impersonate_user: {
|
|
4636
|
+
Args: never;
|
|
4637
|
+
Returns: string;
|
|
4638
|
+
};
|
|
4639
|
+
rbac_perm_platform_manage_apps_any: {
|
|
4640
|
+
Args: never;
|
|
4641
|
+
Returns: string;
|
|
4642
|
+
};
|
|
4643
|
+
rbac_perm_platform_manage_channels_any: {
|
|
4644
|
+
Args: never;
|
|
4645
|
+
Returns: string;
|
|
4646
|
+
};
|
|
4647
|
+
rbac_perm_platform_manage_orgs_any: {
|
|
4648
|
+
Args: never;
|
|
4649
|
+
Returns: string;
|
|
4650
|
+
};
|
|
4651
|
+
rbac_perm_platform_read_all_audit: {
|
|
4652
|
+
Args: never;
|
|
4653
|
+
Returns: string;
|
|
4654
|
+
};
|
|
4655
|
+
rbac_perm_platform_run_maintenance_jobs: {
|
|
4656
|
+
Args: never;
|
|
4657
|
+
Returns: string;
|
|
4658
|
+
};
|
|
4659
|
+
rbac_permission_for_legacy: {
|
|
4660
|
+
Args: {
|
|
4661
|
+
p_min_right: Database["public"]["Enums"]["user_min_right"];
|
|
4662
|
+
p_scope: string;
|
|
4663
|
+
};
|
|
4664
|
+
Returns: string;
|
|
4665
|
+
};
|
|
4666
|
+
rbac_preview_migration: {
|
|
4667
|
+
Args: {
|
|
4668
|
+
p_org_id: string;
|
|
4669
|
+
};
|
|
4670
|
+
Returns: {
|
|
4671
|
+
app_id: string;
|
|
4672
|
+
channel_id: number;
|
|
4673
|
+
org_user_id: number;
|
|
4674
|
+
scope_type: string;
|
|
4675
|
+
skip_reason: string;
|
|
4676
|
+
suggested_role: string;
|
|
4677
|
+
user_id: string;
|
|
4678
|
+
user_right: string;
|
|
4679
|
+
will_migrate: boolean;
|
|
4680
|
+
}[];
|
|
4681
|
+
};
|
|
4682
|
+
rbac_principal_apikey: {
|
|
4683
|
+
Args: never;
|
|
4684
|
+
Returns: string;
|
|
4685
|
+
};
|
|
4686
|
+
rbac_principal_group: {
|
|
4687
|
+
Args: never;
|
|
4688
|
+
Returns: string;
|
|
4689
|
+
};
|
|
4690
|
+
rbac_principal_user: {
|
|
4691
|
+
Args: never;
|
|
4692
|
+
Returns: string;
|
|
4693
|
+
};
|
|
4694
|
+
rbac_right_admin: {
|
|
4695
|
+
Args: never;
|
|
4696
|
+
Returns: Database["public"]["Enums"]["user_min_right"];
|
|
4697
|
+
};
|
|
4698
|
+
rbac_right_invite_admin: {
|
|
4699
|
+
Args: never;
|
|
4700
|
+
Returns: Database["public"]["Enums"]["user_min_right"];
|
|
4701
|
+
};
|
|
4702
|
+
rbac_right_invite_super_admin: {
|
|
4703
|
+
Args: never;
|
|
4704
|
+
Returns: Database["public"]["Enums"]["user_min_right"];
|
|
4705
|
+
};
|
|
4706
|
+
rbac_right_invite_upload: {
|
|
4707
|
+
Args: never;
|
|
4708
|
+
Returns: Database["public"]["Enums"]["user_min_right"];
|
|
4709
|
+
};
|
|
4710
|
+
rbac_right_invite_write: {
|
|
4711
|
+
Args: never;
|
|
4712
|
+
Returns: Database["public"]["Enums"]["user_min_right"];
|
|
4713
|
+
};
|
|
4714
|
+
rbac_right_read: {
|
|
4715
|
+
Args: never;
|
|
4716
|
+
Returns: Database["public"]["Enums"]["user_min_right"];
|
|
4717
|
+
};
|
|
4718
|
+
rbac_right_super_admin: {
|
|
4719
|
+
Args: never;
|
|
4720
|
+
Returns: Database["public"]["Enums"]["user_min_right"];
|
|
4721
|
+
};
|
|
4722
|
+
rbac_right_upload: {
|
|
4723
|
+
Args: never;
|
|
4724
|
+
Returns: Database["public"]["Enums"]["user_min_right"];
|
|
4725
|
+
};
|
|
4726
|
+
rbac_right_write: {
|
|
4727
|
+
Args: never;
|
|
4728
|
+
Returns: Database["public"]["Enums"]["user_min_right"];
|
|
4729
|
+
};
|
|
4730
|
+
rbac_role_app_admin: {
|
|
4731
|
+
Args: never;
|
|
4732
|
+
Returns: string;
|
|
4733
|
+
};
|
|
4734
|
+
rbac_role_app_developer: {
|
|
4735
|
+
Args: never;
|
|
4736
|
+
Returns: string;
|
|
4737
|
+
};
|
|
4738
|
+
rbac_role_app_reader: {
|
|
4739
|
+
Args: never;
|
|
4740
|
+
Returns: string;
|
|
2482
4741
|
};
|
|
2483
|
-
|
|
2484
|
-
Args:
|
|
2485
|
-
|
|
2486
|
-
input?: Json;
|
|
2487
|
-
};
|
|
2488
|
-
Returns: undefined;
|
|
4742
|
+
rbac_role_app_uploader: {
|
|
4743
|
+
Args: never;
|
|
4744
|
+
Returns: string;
|
|
2489
4745
|
};
|
|
2490
|
-
|
|
4746
|
+
rbac_role_bundle_admin: {
|
|
2491
4747
|
Args: never;
|
|
2492
|
-
Returns:
|
|
4748
|
+
Returns: string;
|
|
2493
4749
|
};
|
|
2494
|
-
|
|
4750
|
+
rbac_role_bundle_reader: {
|
|
2495
4751
|
Args: never;
|
|
2496
|
-
Returns:
|
|
4752
|
+
Returns: string;
|
|
2497
4753
|
};
|
|
2498
|
-
|
|
2499
|
-
Args:
|
|
2500
|
-
|
|
2501
|
-
};
|
|
2502
|
-
Returns: number;
|
|
4754
|
+
rbac_role_channel_admin: {
|
|
4755
|
+
Args: never;
|
|
4756
|
+
Returns: string;
|
|
2503
4757
|
};
|
|
2504
|
-
|
|
4758
|
+
rbac_role_channel_reader: {
|
|
2505
4759
|
Args: never;
|
|
2506
|
-
Returns:
|
|
4760
|
+
Returns: string;
|
|
2507
4761
|
};
|
|
2508
|
-
|
|
4762
|
+
rbac_role_org_admin: {
|
|
2509
4763
|
Args: never;
|
|
2510
|
-
Returns:
|
|
4764
|
+
Returns: string;
|
|
2511
4765
|
};
|
|
2512
|
-
|
|
4766
|
+
rbac_role_org_billing_admin: {
|
|
2513
4767
|
Args: never;
|
|
2514
|
-
Returns:
|
|
4768
|
+
Returns: string;
|
|
2515
4769
|
};
|
|
2516
|
-
|
|
4770
|
+
rbac_role_org_member: {
|
|
2517
4771
|
Args: never;
|
|
2518
|
-
Returns:
|
|
4772
|
+
Returns: string;
|
|
2519
4773
|
};
|
|
2520
|
-
|
|
4774
|
+
rbac_role_org_super_admin: {
|
|
2521
4775
|
Args: never;
|
|
2522
|
-
Returns:
|
|
4776
|
+
Returns: string;
|
|
2523
4777
|
};
|
|
2524
|
-
|
|
2525
|
-
Args:
|
|
2526
|
-
|
|
2527
|
-
queue_names: string[];
|
|
2528
|
-
};
|
|
2529
|
-
Returns: undefined;
|
|
2530
|
-
} | {
|
|
2531
|
-
Args: {
|
|
2532
|
-
batch_size?: number;
|
|
2533
|
-
queue_name: string;
|
|
2534
|
-
};
|
|
2535
|
-
Returns: undefined;
|
|
4778
|
+
rbac_role_platform_super_admin: {
|
|
4779
|
+
Args: never;
|
|
4780
|
+
Returns: string;
|
|
2536
4781
|
};
|
|
2537
|
-
|
|
4782
|
+
rbac_rollback_org: {
|
|
2538
4783
|
Args: {
|
|
2539
|
-
|
|
4784
|
+
p_org_id: string;
|
|
2540
4785
|
};
|
|
2541
|
-
Returns:
|
|
4786
|
+
Returns: Json;
|
|
2542
4787
|
};
|
|
2543
|
-
|
|
4788
|
+
rbac_scope_app: {
|
|
2544
4789
|
Args: never;
|
|
2545
|
-
Returns:
|
|
4790
|
+
Returns: string;
|
|
2546
4791
|
};
|
|
2547
|
-
|
|
4792
|
+
rbac_scope_bundle: {
|
|
2548
4793
|
Args: never;
|
|
2549
|
-
Returns:
|
|
4794
|
+
Returns: string;
|
|
2550
4795
|
};
|
|
2551
|
-
|
|
4796
|
+
rbac_scope_channel: {
|
|
2552
4797
|
Args: never;
|
|
2553
|
-
Returns:
|
|
4798
|
+
Returns: string;
|
|
2554
4799
|
};
|
|
2555
|
-
|
|
2556
|
-
Args:
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
4800
|
+
rbac_scope_org: {
|
|
4801
|
+
Args: never;
|
|
4802
|
+
Returns: string;
|
|
4803
|
+
};
|
|
4804
|
+
rbac_scope_platform: {
|
|
4805
|
+
Args: never;
|
|
4806
|
+
Returns: string;
|
|
2561
4807
|
};
|
|
2562
4808
|
read_bandwidth_usage: {
|
|
2563
4809
|
Args: {
|
|
@@ -2608,13 +4854,150 @@ export type Database = {
|
|
|
2608
4854
|
get: number;
|
|
2609
4855
|
install: number;
|
|
2610
4856
|
uninstall: number;
|
|
2611
|
-
|
|
4857
|
+
version_name: string;
|
|
2612
4858
|
}[];
|
|
2613
4859
|
};
|
|
4860
|
+
record_build_time: {
|
|
4861
|
+
Args: {
|
|
4862
|
+
p_app_id: string;
|
|
4863
|
+
p_build_id: string;
|
|
4864
|
+
p_build_time_unit: number;
|
|
4865
|
+
p_org_id: string;
|
|
4866
|
+
p_platform: string;
|
|
4867
|
+
p_user_id: string;
|
|
4868
|
+
};
|
|
4869
|
+
Returns: string;
|
|
4870
|
+
};
|
|
4871
|
+
record_email_otp_verified: {
|
|
4872
|
+
Args: {
|
|
4873
|
+
p_user_id: string;
|
|
4874
|
+
};
|
|
4875
|
+
Returns: string;
|
|
4876
|
+
};
|
|
4877
|
+
refresh_orgs_has_usage_credits: {
|
|
4878
|
+
Args: never;
|
|
4879
|
+
Returns: undefined;
|
|
4880
|
+
};
|
|
4881
|
+
regenerate_hashed_apikey: {
|
|
4882
|
+
Args: {
|
|
4883
|
+
p_apikey_id: number;
|
|
4884
|
+
};
|
|
4885
|
+
Returns: {
|
|
4886
|
+
created_at: string | null;
|
|
4887
|
+
expires_at: string | null;
|
|
4888
|
+
id: number;
|
|
4889
|
+
key: string | null;
|
|
4890
|
+
key_hash: string | null;
|
|
4891
|
+
limited_to_apps: string[] | null;
|
|
4892
|
+
limited_to_orgs: string[] | null;
|
|
4893
|
+
mode: Database["public"]["Enums"]["key_mode"];
|
|
4894
|
+
name: string;
|
|
4895
|
+
rbac_id: string;
|
|
4896
|
+
updated_at: string | null;
|
|
4897
|
+
user_id: string;
|
|
4898
|
+
};
|
|
4899
|
+
SetofOptions: {
|
|
4900
|
+
from: "*";
|
|
4901
|
+
to: "apikeys";
|
|
4902
|
+
isOneToOne: true;
|
|
4903
|
+
isSetofReturn: false;
|
|
4904
|
+
};
|
|
4905
|
+
};
|
|
4906
|
+
regenerate_hashed_apikey_for_user: {
|
|
4907
|
+
Args: {
|
|
4908
|
+
p_apikey_id: number;
|
|
4909
|
+
p_user_id: string;
|
|
4910
|
+
};
|
|
4911
|
+
Returns: {
|
|
4912
|
+
created_at: string | null;
|
|
4913
|
+
expires_at: string | null;
|
|
4914
|
+
id: number;
|
|
4915
|
+
key: string | null;
|
|
4916
|
+
key_hash: string | null;
|
|
4917
|
+
limited_to_apps: string[] | null;
|
|
4918
|
+
limited_to_orgs: string[] | null;
|
|
4919
|
+
mode: Database["public"]["Enums"]["key_mode"];
|
|
4920
|
+
name: string;
|
|
4921
|
+
rbac_id: string;
|
|
4922
|
+
updated_at: string | null;
|
|
4923
|
+
user_id: string;
|
|
4924
|
+
};
|
|
4925
|
+
SetofOptions: {
|
|
4926
|
+
from: "*";
|
|
4927
|
+
to: "apikeys";
|
|
4928
|
+
isOneToOne: true;
|
|
4929
|
+
isSetofReturn: false;
|
|
4930
|
+
};
|
|
4931
|
+
};
|
|
4932
|
+
reject_access_due_to_2fa: {
|
|
4933
|
+
Args: {
|
|
4934
|
+
org_id: string;
|
|
4935
|
+
user_id: string;
|
|
4936
|
+
};
|
|
4937
|
+
Returns: boolean;
|
|
4938
|
+
};
|
|
4939
|
+
reject_access_due_to_2fa_for_app: {
|
|
4940
|
+
Args: {
|
|
4941
|
+
app_id: string;
|
|
4942
|
+
};
|
|
4943
|
+
Returns: boolean;
|
|
4944
|
+
};
|
|
4945
|
+
reject_access_due_to_2fa_for_org: {
|
|
4946
|
+
Args: {
|
|
4947
|
+
org_id: string;
|
|
4948
|
+
};
|
|
4949
|
+
Returns: boolean;
|
|
4950
|
+
};
|
|
4951
|
+
reject_access_due_to_password_policy: {
|
|
4952
|
+
Args: {
|
|
4953
|
+
org_id: string;
|
|
4954
|
+
user_id: string;
|
|
4955
|
+
};
|
|
4956
|
+
Returns: boolean;
|
|
4957
|
+
};
|
|
2614
4958
|
remove_old_jobs: {
|
|
2615
4959
|
Args: never;
|
|
2616
4960
|
Returns: undefined;
|
|
2617
4961
|
};
|
|
4962
|
+
request_app_chart_refresh: {
|
|
4963
|
+
Args: {
|
|
4964
|
+
app_id: string;
|
|
4965
|
+
};
|
|
4966
|
+
Returns: {
|
|
4967
|
+
queued_app_ids: string[];
|
|
4968
|
+
queued_count: number;
|
|
4969
|
+
requested_at: string;
|
|
4970
|
+
skipped_count: number;
|
|
4971
|
+
}[];
|
|
4972
|
+
};
|
|
4973
|
+
request_has_app_read_access: {
|
|
4974
|
+
Args: {
|
|
4975
|
+
appid: string;
|
|
4976
|
+
orgid: string;
|
|
4977
|
+
};
|
|
4978
|
+
Returns: boolean;
|
|
4979
|
+
};
|
|
4980
|
+
request_has_org_read_access: {
|
|
4981
|
+
Args: {
|
|
4982
|
+
orgid: string;
|
|
4983
|
+
};
|
|
4984
|
+
Returns: boolean;
|
|
4985
|
+
};
|
|
4986
|
+
request_org_chart_refresh: {
|
|
4987
|
+
Args: {
|
|
4988
|
+
org_id: string;
|
|
4989
|
+
};
|
|
4990
|
+
Returns: {
|
|
4991
|
+
queued_app_ids: string[];
|
|
4992
|
+
queued_count: number;
|
|
4993
|
+
requested_at: string;
|
|
4994
|
+
skipped_count: number;
|
|
4995
|
+
}[];
|
|
4996
|
+
};
|
|
4997
|
+
request_read_key_modes: {
|
|
4998
|
+
Args: never;
|
|
4999
|
+
Returns: Database["public"]["Enums"]["key_mode"][];
|
|
5000
|
+
};
|
|
2618
5001
|
rescind_invitation: {
|
|
2619
5002
|
Args: {
|
|
2620
5003
|
email: string;
|
|
@@ -2622,6 +5005,17 @@ export type Database = {
|
|
|
2622
5005
|
};
|
|
2623
5006
|
Returns: string;
|
|
2624
5007
|
};
|
|
5008
|
+
restore_deleted_account: {
|
|
5009
|
+
Args: never;
|
|
5010
|
+
Returns: undefined;
|
|
5011
|
+
};
|
|
5012
|
+
resync_org_user_role_bindings: {
|
|
5013
|
+
Args: {
|
|
5014
|
+
p_org_id: string;
|
|
5015
|
+
p_user_id: string;
|
|
5016
|
+
};
|
|
5017
|
+
Returns: undefined;
|
|
5018
|
+
};
|
|
2625
5019
|
seed_get_app_metrics_caches: {
|
|
2626
5020
|
Args: {
|
|
2627
5021
|
p_end_date: string;
|
|
@@ -2643,26 +5037,62 @@ export type Database = {
|
|
|
2643
5037
|
isSetofReturn: false;
|
|
2644
5038
|
};
|
|
2645
5039
|
};
|
|
2646
|
-
|
|
5040
|
+
seed_org_metrics_cache: {
|
|
2647
5041
|
Args: {
|
|
2648
|
-
|
|
5042
|
+
p_end_date: string;
|
|
5043
|
+
p_org_id: string;
|
|
5044
|
+
p_start_date: string;
|
|
5045
|
+
};
|
|
5046
|
+
Returns: {
|
|
5047
|
+
bandwidth: number;
|
|
5048
|
+
build_time_unit: number;
|
|
5049
|
+
cached_at: string;
|
|
5050
|
+
end_date: string;
|
|
5051
|
+
fail: number;
|
|
5052
|
+
get: number;
|
|
5053
|
+
install: number;
|
|
5054
|
+
mau: number;
|
|
2649
5055
|
org_id: string;
|
|
5056
|
+
start_date: string;
|
|
5057
|
+
storage: number;
|
|
5058
|
+
uninstall: number;
|
|
5059
|
+
};
|
|
5060
|
+
SetofOptions: {
|
|
5061
|
+
from: "*";
|
|
5062
|
+
to: "org_metrics_cache";
|
|
5063
|
+
isOneToOne: true;
|
|
5064
|
+
isSetofReturn: false;
|
|
2650
5065
|
};
|
|
2651
|
-
Returns: undefined;
|
|
2652
5066
|
};
|
|
2653
|
-
|
|
5067
|
+
set_build_time_exceeded_by_org: {
|
|
2654
5068
|
Args: {
|
|
2655
5069
|
disabled: boolean;
|
|
2656
5070
|
org_id: string;
|
|
2657
5071
|
};
|
|
2658
5072
|
Returns: undefined;
|
|
2659
5073
|
};
|
|
2660
|
-
|
|
5074
|
+
strip_html: {
|
|
2661
5075
|
Args: {
|
|
2662
|
-
|
|
2663
|
-
org_id: string;
|
|
5076
|
+
input: string;
|
|
2664
5077
|
};
|
|
2665
|
-
Returns:
|
|
5078
|
+
Returns: string;
|
|
5079
|
+
};
|
|
5080
|
+
top_up_usage_credits: {
|
|
5081
|
+
Args: {
|
|
5082
|
+
p_amount: number;
|
|
5083
|
+
p_expires_at?: string;
|
|
5084
|
+
p_notes?: string;
|
|
5085
|
+
p_org_id: string;
|
|
5086
|
+
p_source?: string;
|
|
5087
|
+
p_source_ref?: Json;
|
|
5088
|
+
};
|
|
5089
|
+
Returns: {
|
|
5090
|
+
available_credits: number;
|
|
5091
|
+
grant_id: string;
|
|
5092
|
+
next_expiration: string;
|
|
5093
|
+
total_credits: number;
|
|
5094
|
+
transaction_id: number;
|
|
5095
|
+
}[];
|
|
2666
5096
|
};
|
|
2667
5097
|
total_bundle_storage_bytes: {
|
|
2668
5098
|
Args: never;
|
|
@@ -2691,6 +5121,30 @@ export type Database = {
|
|
|
2691
5121
|
Args: never;
|
|
2692
5122
|
Returns: undefined;
|
|
2693
5123
|
};
|
|
5124
|
+
update_org_invite_role_rbac: {
|
|
5125
|
+
Args: {
|
|
5126
|
+
p_new_role_name: string;
|
|
5127
|
+
p_org_id: string;
|
|
5128
|
+
p_user_id: string;
|
|
5129
|
+
};
|
|
5130
|
+
Returns: string;
|
|
5131
|
+
};
|
|
5132
|
+
update_org_member_role: {
|
|
5133
|
+
Args: {
|
|
5134
|
+
p_new_role_name: string;
|
|
5135
|
+
p_org_id: string;
|
|
5136
|
+
p_user_id: string;
|
|
5137
|
+
};
|
|
5138
|
+
Returns: string;
|
|
5139
|
+
};
|
|
5140
|
+
update_tmp_invite_role_rbac: {
|
|
5141
|
+
Args: {
|
|
5142
|
+
p_email: string;
|
|
5143
|
+
p_new_role_name: string;
|
|
5144
|
+
p_org_id: string;
|
|
5145
|
+
};
|
|
5146
|
+
Returns: string;
|
|
5147
|
+
};
|
|
2694
5148
|
upsert_version_meta: {
|
|
2695
5149
|
Args: {
|
|
2696
5150
|
p_app_id: string;
|
|
@@ -2699,23 +5153,49 @@ export type Database = {
|
|
|
2699
5153
|
};
|
|
2700
5154
|
Returns: boolean;
|
|
2701
5155
|
};
|
|
5156
|
+
user_has_app_update_user_roles: {
|
|
5157
|
+
Args: {
|
|
5158
|
+
p_app_id: string;
|
|
5159
|
+
p_user_id: string;
|
|
5160
|
+
};
|
|
5161
|
+
Returns: boolean;
|
|
5162
|
+
};
|
|
5163
|
+
user_has_role_in_app: {
|
|
5164
|
+
Args: {
|
|
5165
|
+
p_app_id: string;
|
|
5166
|
+
p_user_id: string;
|
|
5167
|
+
};
|
|
5168
|
+
Returns: boolean;
|
|
5169
|
+
};
|
|
5170
|
+
user_meets_password_policy: {
|
|
5171
|
+
Args: {
|
|
5172
|
+
org_id: string;
|
|
5173
|
+
user_id: string;
|
|
5174
|
+
};
|
|
5175
|
+
Returns: boolean;
|
|
5176
|
+
};
|
|
5177
|
+
verify_api_key_hash: {
|
|
5178
|
+
Args: {
|
|
5179
|
+
plain_key: string;
|
|
5180
|
+
stored_hash: string;
|
|
5181
|
+
};
|
|
5182
|
+
Returns: boolean;
|
|
5183
|
+
};
|
|
2702
5184
|
verify_mfa: {
|
|
2703
5185
|
Args: never;
|
|
2704
5186
|
Returns: boolean;
|
|
2705
5187
|
};
|
|
2706
5188
|
};
|
|
2707
5189
|
Enums: {
|
|
2708
|
-
action_type: "mau" | "storage" | "bandwidth";
|
|
2709
|
-
|
|
2710
|
-
credit_metric_type: "mau" | "bandwidth" | "storage";
|
|
5190
|
+
action_type: "mau" | "storage" | "bandwidth" | "build_time";
|
|
5191
|
+
credit_metric_type: "mau" | "bandwidth" | "storage" | "build_time";
|
|
2711
5192
|
credit_transaction_type: "grant" | "purchase" | "manual_grant" | "deduction" | "expiry" | "refund";
|
|
5193
|
+
cron_task_type: "function" | "queue" | "function_queue";
|
|
2712
5194
|
disable_update: "major" | "minor" | "patch" | "version_number" | "none";
|
|
2713
5195
|
key_mode: "read" | "write" | "all" | "upload";
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
stats_action: "delete" | "reset" | "set" | "get" | "set_fail" | "update_fail" | "download_fail" | "windows_path_fail" | "canonical_path_fail" | "directory_path_fail" | "unzip_fail" | "low_mem_fail" | "download_10" | "download_20" | "download_30" | "download_40" | "download_50" | "download_60" | "download_70" | "download_80" | "download_90" | "download_complete" | "decrypt_fail" | "app_moved_to_foreground" | "app_moved_to_background" | "uninstall" | "needPlanUpgrade" | "missingBundle" | "noNew" | "disablePlatformIos" | "disablePlatformAndroid" | "disableAutoUpdateToMajor" | "cannotUpdateViaPrivateChannel" | "disableAutoUpdateToMinor" | "disableAutoUpdateToPatch" | "channelMisconfigured" | "disableAutoUpdateMetadata" | "disableAutoUpdateUnderNative" | "disableDevBuild" | "disableEmulator" | "cannotGetBundle" | "checksum_fail" | "NoChannelOrOverride" | "setChannel" | "getChannel" | "rateLimited" | "disableAutoUpdate" | "ping" | "InvalidIp" | "blocked_by_server_url" | "download_manifest_start" | "download_manifest_complete" | "download_zip_start" | "download_zip_complete" | "download_manifest_file_fail" | "download_manifest_checksum_fail" | "download_manifest_brotli_fail" | "backend_refusal";
|
|
5196
|
+
platform_os: "ios" | "android" | "electron";
|
|
5197
|
+
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";
|
|
2717
5198
|
stripe_status: "created" | "succeeded" | "updated" | "failed" | "deleted" | "canceled";
|
|
2718
|
-
usage_mode: "5min" | "day" | "month" | "cycle" | "last_saved";
|
|
2719
5199
|
user_min_right: "invite_read" | "invite_upload" | "invite_write" | "invite_admin" | "invite_super_admin" | "read" | "upload" | "write" | "admin" | "super_admin";
|
|
2720
5200
|
user_role: "read" | "upload" | "write" | "admin";
|
|
2721
5201
|
version_action: "get" | "fail" | "install" | "uninstall";
|
|
@@ -2726,9 +5206,6 @@ export type Database = {
|
|
|
2726
5206
|
s3_path: string | null;
|
|
2727
5207
|
file_hash: string | null;
|
|
2728
5208
|
};
|
|
2729
|
-
match_plan: {
|
|
2730
|
-
name: string | null;
|
|
2731
|
-
};
|
|
2732
5209
|
message_update: {
|
|
2733
5210
|
msg_id: number | null;
|
|
2734
5211
|
cf_id: string | null;
|
|
@@ -2809,17 +5286,15 @@ export type CompositeTypes<PublicCompositeTypeNameOrOptions extends keyof Defaul
|
|
|
2809
5286
|
export declare const Constants: {
|
|
2810
5287
|
readonly public: {
|
|
2811
5288
|
readonly Enums: {
|
|
2812
|
-
readonly action_type: readonly ["mau", "storage", "bandwidth"];
|
|
2813
|
-
readonly
|
|
2814
|
-
readonly credit_metric_type: readonly ["mau", "bandwidth", "storage"];
|
|
5289
|
+
readonly action_type: readonly ["mau", "storage", "bandwidth", "build_time"];
|
|
5290
|
+
readonly credit_metric_type: readonly ["mau", "bandwidth", "storage", "build_time"];
|
|
2815
5291
|
readonly credit_transaction_type: readonly ["grant", "purchase", "manual_grant", "deduction", "expiry", "refund"];
|
|
5292
|
+
readonly cron_task_type: readonly ["function", "queue", "function_queue"];
|
|
2816
5293
|
readonly disable_update: readonly ["major", "minor", "patch", "version_number", "none"];
|
|
2817
5294
|
readonly key_mode: readonly ["read", "write", "all", "upload"];
|
|
2818
|
-
readonly
|
|
2819
|
-
readonly
|
|
2820
|
-
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", "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"];
|
|
5295
|
+
readonly platform_os: readonly ["ios", "android", "electron"];
|
|
5296
|
+
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"];
|
|
2821
5297
|
readonly stripe_status: readonly ["created", "succeeded", "updated", "failed", "deleted", "canceled"];
|
|
2822
|
-
readonly usage_mode: readonly ["5min", "day", "month", "cycle", "last_saved"];
|
|
2823
5298
|
readonly user_min_right: readonly ["invite_read", "invite_upload", "invite_write", "invite_admin", "invite_super_admin", "read", "upload", "write", "admin", "super_admin"];
|
|
2824
5299
|
readonly user_role: readonly ["read", "upload", "write", "admin"];
|
|
2825
5300
|
readonly version_action: readonly ["get", "fail", "install", "uninstall"];
|
|
@@ -2827,4 +5302,3 @@ export declare const Constants: {
|
|
|
2827
5302
|
};
|
|
2828
5303
|
};
|
|
2829
5304
|
export {};
|
|
2830
|
-
//# sourceMappingURL=supabase.types.d.ts.map
|