@periskope/types 0.6.267 → 0.6.269
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/dist/supabase.types.d.ts +153 -67
- package/dist/supabase.types.d.ts.map +1 -1
- package/dist/supabase.types.js +1 -0
- package/dist/types.d.ts +3 -3
- package/dist/types.d.ts.map +1 -1
- package/mod_json_type.ps1 +108 -108
- package/mod_json_type.sh +22 -22
- package/package.json +19 -19
- package/src/index.ts +4 -4
- package/src/object.types.ts +100 -100
- package/src/rules.types.ts +2109 -2109
- package/src/supabase.types.ts +194 -158
- package/src/types.ts +1240 -1238
- package/tsconfig.json +18 -18
- package/update_package.ps1 +21 -21
- package/dist/workflows.types.d.ts +0 -307
- package/dist/workflows.types.d.ts.map +0 -1
- package/dist/workflows.types.js +0 -256
- package/tsconfig.tsbuildinfo +0 -1
package/dist/supabase.types.d.ts
CHANGED
|
@@ -2,31 +2,6 @@ export type Json = {
|
|
|
2
2
|
[key: string]: any;
|
|
3
3
|
} | any;
|
|
4
4
|
export type Database = {
|
|
5
|
-
graphql_public: {
|
|
6
|
-
Tables: {
|
|
7
|
-
[_ in never]: never;
|
|
8
|
-
};
|
|
9
|
-
Views: {
|
|
10
|
-
[_ in never]: never;
|
|
11
|
-
};
|
|
12
|
-
Functions: {
|
|
13
|
-
graphql: {
|
|
14
|
-
Args: {
|
|
15
|
-
operationName?: string;
|
|
16
|
-
query?: string;
|
|
17
|
-
variables?: Json;
|
|
18
|
-
extensions?: Json;
|
|
19
|
-
};
|
|
20
|
-
Returns: Json;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
Enums: {
|
|
24
|
-
[_ in never]: never;
|
|
25
|
-
};
|
|
26
|
-
CompositeTypes: {
|
|
27
|
-
[_ in never]: never;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
5
|
internal: {
|
|
31
6
|
Tables: {
|
|
32
7
|
config: {
|
|
@@ -1714,13 +1689,6 @@ export type Database = {
|
|
|
1714
1689
|
user_id?: string | null;
|
|
1715
1690
|
};
|
|
1716
1691
|
Relationships: [
|
|
1717
|
-
{
|
|
1718
|
-
foreignKeyName: "tbl_org_members_fkey_auth_users";
|
|
1719
|
-
columns: ["user_id"];
|
|
1720
|
-
isOneToOne: false;
|
|
1721
|
-
referencedRelation: "users";
|
|
1722
|
-
referencedColumns: ["id"];
|
|
1723
|
-
},
|
|
1724
1692
|
{
|
|
1725
1693
|
foreignKeyName: "tbl_org_members_fkey_tbl_org";
|
|
1726
1694
|
columns: ["org_id"];
|
|
@@ -2266,6 +2234,7 @@ export type Database = {
|
|
|
2266
2234
|
label_ids: Json | null;
|
|
2267
2235
|
latest_message: Json | null;
|
|
2268
2236
|
member_count: number | null;
|
|
2237
|
+
member_unread_count: Json | null;
|
|
2269
2238
|
message_unread_count: number | null;
|
|
2270
2239
|
messages_admins_only: boolean | null;
|
|
2271
2240
|
org_id: string | null;
|
|
@@ -2406,21 +2375,6 @@ export type Database = {
|
|
|
2406
2375
|
};
|
|
2407
2376
|
Returns: Json;
|
|
2408
2377
|
};
|
|
2409
|
-
drop_partition: {
|
|
2410
|
-
Args: {
|
|
2411
|
-
org_id_input: string;
|
|
2412
|
-
};
|
|
2413
|
-
Returns: boolean;
|
|
2414
|
-
};
|
|
2415
|
-
find_discrepancies: {
|
|
2416
|
-
Args: {
|
|
2417
|
-
p_org_id: string;
|
|
2418
|
-
};
|
|
2419
|
-
Returns: {
|
|
2420
|
-
a_chat_id: string;
|
|
2421
|
-
discrepancy_count: number;
|
|
2422
|
-
}[];
|
|
2423
|
-
};
|
|
2424
2378
|
gen_id: {
|
|
2425
2379
|
Args: {
|
|
2426
2380
|
prefix: string;
|
|
@@ -2911,6 +2865,7 @@ export type Database = {
|
|
|
2911
2865
|
created_at: string | null;
|
|
2912
2866
|
id: string;
|
|
2913
2867
|
last_accessed_at: string | null;
|
|
2868
|
+
level: number | null;
|
|
2914
2869
|
metadata: Json | null;
|
|
2915
2870
|
name: string | null;
|
|
2916
2871
|
owner: string | null;
|
|
@@ -2925,6 +2880,7 @@ export type Database = {
|
|
|
2925
2880
|
created_at?: string | null;
|
|
2926
2881
|
id?: string;
|
|
2927
2882
|
last_accessed_at?: string | null;
|
|
2883
|
+
level?: number | null;
|
|
2928
2884
|
metadata?: Json | null;
|
|
2929
2885
|
name?: string | null;
|
|
2930
2886
|
owner?: string | null;
|
|
@@ -2939,6 +2895,7 @@ export type Database = {
|
|
|
2939
2895
|
created_at?: string | null;
|
|
2940
2896
|
id?: string;
|
|
2941
2897
|
last_accessed_at?: string | null;
|
|
2898
|
+
level?: number | null;
|
|
2942
2899
|
metadata?: Json | null;
|
|
2943
2900
|
name?: string | null;
|
|
2944
2901
|
owner?: string | null;
|
|
@@ -2958,6 +2915,38 @@ export type Database = {
|
|
|
2958
2915
|
}
|
|
2959
2916
|
];
|
|
2960
2917
|
};
|
|
2918
|
+
prefixes: {
|
|
2919
|
+
Row: {
|
|
2920
|
+
bucket_id: string;
|
|
2921
|
+
created_at: string | null;
|
|
2922
|
+
level: number;
|
|
2923
|
+
name: string;
|
|
2924
|
+
updated_at: string | null;
|
|
2925
|
+
};
|
|
2926
|
+
Insert: {
|
|
2927
|
+
bucket_id: string;
|
|
2928
|
+
created_at?: string | null;
|
|
2929
|
+
level?: number;
|
|
2930
|
+
name: string;
|
|
2931
|
+
updated_at?: string | null;
|
|
2932
|
+
};
|
|
2933
|
+
Update: {
|
|
2934
|
+
bucket_id?: string;
|
|
2935
|
+
created_at?: string | null;
|
|
2936
|
+
level?: number;
|
|
2937
|
+
name?: string;
|
|
2938
|
+
updated_at?: string | null;
|
|
2939
|
+
};
|
|
2940
|
+
Relationships: [
|
|
2941
|
+
{
|
|
2942
|
+
foreignKeyName: "prefixes_bucketId_fkey";
|
|
2943
|
+
columns: ["bucket_id"];
|
|
2944
|
+
isOneToOne: false;
|
|
2945
|
+
referencedRelation: "buckets";
|
|
2946
|
+
referencedColumns: ["id"];
|
|
2947
|
+
}
|
|
2948
|
+
];
|
|
2949
|
+
};
|
|
2961
2950
|
s3_multipart_uploads: {
|
|
2962
2951
|
Row: {
|
|
2963
2952
|
bucket_id: string;
|
|
@@ -3061,6 +3050,13 @@ export type Database = {
|
|
|
3061
3050
|
[_ in never]: never;
|
|
3062
3051
|
};
|
|
3063
3052
|
Functions: {
|
|
3053
|
+
add_prefixes: {
|
|
3054
|
+
Args: {
|
|
3055
|
+
_bucket_id: string;
|
|
3056
|
+
_name: string;
|
|
3057
|
+
};
|
|
3058
|
+
Returns: undefined;
|
|
3059
|
+
};
|
|
3064
3060
|
can_insert_object: {
|
|
3065
3061
|
Args: {
|
|
3066
3062
|
bucketid: string;
|
|
@@ -3070,6 +3066,13 @@ export type Database = {
|
|
|
3070
3066
|
};
|
|
3071
3067
|
Returns: undefined;
|
|
3072
3068
|
};
|
|
3069
|
+
delete_prefix: {
|
|
3070
|
+
Args: {
|
|
3071
|
+
_bucket_id: string;
|
|
3072
|
+
_name: string;
|
|
3073
|
+
};
|
|
3074
|
+
Returns: boolean;
|
|
3075
|
+
};
|
|
3073
3076
|
extension: {
|
|
3074
3077
|
Args: {
|
|
3075
3078
|
name: string;
|
|
@@ -3088,6 +3091,24 @@ export type Database = {
|
|
|
3088
3091
|
};
|
|
3089
3092
|
Returns: string[];
|
|
3090
3093
|
};
|
|
3094
|
+
get_level: {
|
|
3095
|
+
Args: {
|
|
3096
|
+
name: string;
|
|
3097
|
+
};
|
|
3098
|
+
Returns: number;
|
|
3099
|
+
};
|
|
3100
|
+
get_prefix: {
|
|
3101
|
+
Args: {
|
|
3102
|
+
name: string;
|
|
3103
|
+
};
|
|
3104
|
+
Returns: string;
|
|
3105
|
+
};
|
|
3106
|
+
get_prefixes: {
|
|
3107
|
+
Args: {
|
|
3108
|
+
name: string;
|
|
3109
|
+
};
|
|
3110
|
+
Returns: string[];
|
|
3111
|
+
};
|
|
3091
3112
|
get_size_by_bucket: {
|
|
3092
3113
|
Args: Record<PropertyKey, never>;
|
|
3093
3114
|
Returns: {
|
|
@@ -3150,6 +3171,63 @@ export type Database = {
|
|
|
3150
3171
|
metadata: Json;
|
|
3151
3172
|
}[];
|
|
3152
3173
|
};
|
|
3174
|
+
search_legacy_v1: {
|
|
3175
|
+
Args: {
|
|
3176
|
+
prefix: string;
|
|
3177
|
+
bucketname: string;
|
|
3178
|
+
limits?: number;
|
|
3179
|
+
levels?: number;
|
|
3180
|
+
offsets?: number;
|
|
3181
|
+
search?: string;
|
|
3182
|
+
sortcolumn?: string;
|
|
3183
|
+
sortorder?: string;
|
|
3184
|
+
};
|
|
3185
|
+
Returns: {
|
|
3186
|
+
name: string;
|
|
3187
|
+
id: string;
|
|
3188
|
+
updated_at: string;
|
|
3189
|
+
created_at: string;
|
|
3190
|
+
last_accessed_at: string;
|
|
3191
|
+
metadata: Json;
|
|
3192
|
+
}[];
|
|
3193
|
+
};
|
|
3194
|
+
search_v1_optimised: {
|
|
3195
|
+
Args: {
|
|
3196
|
+
prefix: string;
|
|
3197
|
+
bucketname: string;
|
|
3198
|
+
limits?: number;
|
|
3199
|
+
levels?: number;
|
|
3200
|
+
offsets?: number;
|
|
3201
|
+
search?: string;
|
|
3202
|
+
sortcolumn?: string;
|
|
3203
|
+
sortorder?: string;
|
|
3204
|
+
};
|
|
3205
|
+
Returns: {
|
|
3206
|
+
name: string;
|
|
3207
|
+
id: string;
|
|
3208
|
+
updated_at: string;
|
|
3209
|
+
created_at: string;
|
|
3210
|
+
last_accessed_at: string;
|
|
3211
|
+
metadata: Json;
|
|
3212
|
+
}[];
|
|
3213
|
+
};
|
|
3214
|
+
search_v2: {
|
|
3215
|
+
Args: {
|
|
3216
|
+
prefix: string;
|
|
3217
|
+
bucket_name: string;
|
|
3218
|
+
limits?: number;
|
|
3219
|
+
levels?: number;
|
|
3220
|
+
start_after?: string;
|
|
3221
|
+
};
|
|
3222
|
+
Returns: {
|
|
3223
|
+
key: string;
|
|
3224
|
+
name: string;
|
|
3225
|
+
id: string;
|
|
3226
|
+
updated_at: string;
|
|
3227
|
+
created_at: string;
|
|
3228
|
+
metadata: Json;
|
|
3229
|
+
}[];
|
|
3230
|
+
};
|
|
3153
3231
|
};
|
|
3154
3232
|
Enums: {
|
|
3155
3233
|
[_ in never]: never;
|
|
@@ -3159,53 +3237,61 @@ export type Database = {
|
|
|
3159
3237
|
};
|
|
3160
3238
|
};
|
|
3161
3239
|
};
|
|
3162
|
-
type
|
|
3163
|
-
export type Tables<
|
|
3240
|
+
type DefaultSchema = Database[Extract<keyof Database, "public">];
|
|
3241
|
+
export type Tables<DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] & DefaultSchema["Views"]) | {
|
|
3164
3242
|
schema: keyof Database;
|
|
3165
|
-
}, TableName extends
|
|
3243
|
+
}, TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
3166
3244
|
schema: keyof Database;
|
|
3167
|
-
} ? keyof (Database[
|
|
3245
|
+
} ? keyof (Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & Database[DefaultSchemaTableNameOrOptions["schema"]]["Views"]) : never = never> = DefaultSchemaTableNameOrOptions extends {
|
|
3168
3246
|
schema: keyof Database;
|
|
3169
|
-
} ? (Database[
|
|
3247
|
+
} ? (Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & Database[DefaultSchemaTableNameOrOptions["schema"]]["Views"])[TableName] extends {
|
|
3170
3248
|
Row: infer R;
|
|
3171
|
-
} ? R : never :
|
|
3249
|
+
} ? R : never : DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] & DefaultSchema["Views"]) ? (DefaultSchema["Tables"] & DefaultSchema["Views"])[DefaultSchemaTableNameOrOptions] extends {
|
|
3172
3250
|
Row: infer R;
|
|
3173
3251
|
} ? R : never : never;
|
|
3174
|
-
export type TablesInsert<
|
|
3252
|
+
export type TablesInsert<DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] | {
|
|
3175
3253
|
schema: keyof Database;
|
|
3176
|
-
}, TableName extends
|
|
3254
|
+
}, TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
3177
3255
|
schema: keyof Database;
|
|
3178
|
-
} ? keyof Database[
|
|
3256
|
+
} ? keyof Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] : never = never> = DefaultSchemaTableNameOrOptions extends {
|
|
3179
3257
|
schema: keyof Database;
|
|
3180
|
-
} ? Database[
|
|
3258
|
+
} ? Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
3181
3259
|
Insert: infer I;
|
|
3182
|
-
} ? I : never :
|
|
3260
|
+
} ? I : never : DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] ? DefaultSchema["Tables"][DefaultSchemaTableNameOrOptions] extends {
|
|
3183
3261
|
Insert: infer I;
|
|
3184
3262
|
} ? I : never : never;
|
|
3185
|
-
export type TablesUpdate<
|
|
3263
|
+
export type TablesUpdate<DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] | {
|
|
3186
3264
|
schema: keyof Database;
|
|
3187
|
-
}, TableName extends
|
|
3265
|
+
}, TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
3188
3266
|
schema: keyof Database;
|
|
3189
|
-
} ? keyof Database[
|
|
3267
|
+
} ? keyof Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] : never = never> = DefaultSchemaTableNameOrOptions extends {
|
|
3190
3268
|
schema: keyof Database;
|
|
3191
|
-
} ? Database[
|
|
3269
|
+
} ? Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
3192
3270
|
Update: infer U;
|
|
3193
|
-
} ? U : never :
|
|
3271
|
+
} ? U : never : DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] ? DefaultSchema["Tables"][DefaultSchemaTableNameOrOptions] extends {
|
|
3194
3272
|
Update: infer U;
|
|
3195
3273
|
} ? U : never : never;
|
|
3196
|
-
export type Enums<
|
|
3274
|
+
export type Enums<DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema["Enums"] | {
|
|
3275
|
+
schema: keyof Database;
|
|
3276
|
+
}, EnumName extends DefaultSchemaEnumNameOrOptions extends {
|
|
3277
|
+
schema: keyof Database;
|
|
3278
|
+
} ? keyof Database[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"] : never = never> = DefaultSchemaEnumNameOrOptions extends {
|
|
3279
|
+
schema: keyof Database;
|
|
3280
|
+
} ? Database[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"][EnumName] : DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema["Enums"] ? DefaultSchema["Enums"][DefaultSchemaEnumNameOrOptions] : never;
|
|
3281
|
+
export type CompositeTypes<PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"] | {
|
|
3197
3282
|
schema: keyof Database;
|
|
3198
|
-
},
|
|
3283
|
+
}, CompositeTypeName extends PublicCompositeTypeNameOrOptions extends {
|
|
3199
3284
|
schema: keyof Database;
|
|
3200
|
-
} ? keyof Database[
|
|
3285
|
+
} ? keyof Database[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"] : never = never> = PublicCompositeTypeNameOrOptions extends {
|
|
3201
3286
|
schema: keyof Database;
|
|
3202
|
-
} ? Database[
|
|
3287
|
+
} ? Database[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"][CompositeTypeName] : PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"] ? DefaultSchema["CompositeTypes"][PublicCompositeTypeNameOrOptions] : never;
|
|
3203
3288
|
export declare const Constants: {
|
|
3204
3289
|
readonly internal: {
|
|
3205
3290
|
readonly Enums: {};
|
|
3206
3291
|
};
|
|
3207
3292
|
readonly public: {
|
|
3208
3293
|
readonly Enums: {
|
|
3294
|
+
readonly enum_ai_context_type: readonly ["faq", "document"];
|
|
3209
3295
|
readonly enum_broadcast_status: readonly ["inprogress", "completed", "stopped", "expired"];
|
|
3210
3296
|
readonly enum_chat_colors: readonly ["#B4876E", "#A5B337", "#06CF9C", "#25D366", "#02A698", "#7D9EF1", "#007BFC", "#5E47DE", "#7F66FF", "#9333EA", "#FA6533", "#C4532D", "#DC2626", "#FF2E74", "#DB2777"];
|
|
3211
3297
|
readonly enum_chat_tickets_status: readonly ["open", "inprogress", "closed", "archived"];
|