@periskope/types 0.6.267 → 0.6.268
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 -53
- package/dist/supabase.types.d.ts.map +1 -1
- package/dist/supabase.types.js +1 -0
- package/dist/types.d.ts +3 -0
- 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 +196 -150
- package/src/types.ts +1241 -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,7 +2234,7 @@ export type Database = {
|
|
|
2266
2234
|
label_ids: Json | null;
|
|
2267
2235
|
latest_message: Json | null;
|
|
2268
2236
|
member_count: number | null;
|
|
2269
|
-
|
|
2237
|
+
member_unread_count: Json | null;
|
|
2270
2238
|
messages_admins_only: boolean | null;
|
|
2271
2239
|
org_id: string | null;
|
|
2272
2240
|
org_phone: string | null;
|
|
@@ -2911,6 +2879,7 @@ export type Database = {
|
|
|
2911
2879
|
created_at: string | null;
|
|
2912
2880
|
id: string;
|
|
2913
2881
|
last_accessed_at: string | null;
|
|
2882
|
+
level: number | null;
|
|
2914
2883
|
metadata: Json | null;
|
|
2915
2884
|
name: string | null;
|
|
2916
2885
|
owner: string | null;
|
|
@@ -2925,6 +2894,7 @@ export type Database = {
|
|
|
2925
2894
|
created_at?: string | null;
|
|
2926
2895
|
id?: string;
|
|
2927
2896
|
last_accessed_at?: string | null;
|
|
2897
|
+
level?: number | null;
|
|
2928
2898
|
metadata?: Json | null;
|
|
2929
2899
|
name?: string | null;
|
|
2930
2900
|
owner?: string | null;
|
|
@@ -2939,6 +2909,7 @@ export type Database = {
|
|
|
2939
2909
|
created_at?: string | null;
|
|
2940
2910
|
id?: string;
|
|
2941
2911
|
last_accessed_at?: string | null;
|
|
2912
|
+
level?: number | null;
|
|
2942
2913
|
metadata?: Json | null;
|
|
2943
2914
|
name?: string | null;
|
|
2944
2915
|
owner?: string | null;
|
|
@@ -2958,6 +2929,38 @@ export type Database = {
|
|
|
2958
2929
|
}
|
|
2959
2930
|
];
|
|
2960
2931
|
};
|
|
2932
|
+
prefixes: {
|
|
2933
|
+
Row: {
|
|
2934
|
+
bucket_id: string;
|
|
2935
|
+
created_at: string | null;
|
|
2936
|
+
level: number;
|
|
2937
|
+
name: string;
|
|
2938
|
+
updated_at: string | null;
|
|
2939
|
+
};
|
|
2940
|
+
Insert: {
|
|
2941
|
+
bucket_id: string;
|
|
2942
|
+
created_at?: string | null;
|
|
2943
|
+
level?: number;
|
|
2944
|
+
name: string;
|
|
2945
|
+
updated_at?: string | null;
|
|
2946
|
+
};
|
|
2947
|
+
Update: {
|
|
2948
|
+
bucket_id?: string;
|
|
2949
|
+
created_at?: string | null;
|
|
2950
|
+
level?: number;
|
|
2951
|
+
name?: string;
|
|
2952
|
+
updated_at?: string | null;
|
|
2953
|
+
};
|
|
2954
|
+
Relationships: [
|
|
2955
|
+
{
|
|
2956
|
+
foreignKeyName: "prefixes_bucketId_fkey";
|
|
2957
|
+
columns: ["bucket_id"];
|
|
2958
|
+
isOneToOne: false;
|
|
2959
|
+
referencedRelation: "buckets";
|
|
2960
|
+
referencedColumns: ["id"];
|
|
2961
|
+
}
|
|
2962
|
+
];
|
|
2963
|
+
};
|
|
2961
2964
|
s3_multipart_uploads: {
|
|
2962
2965
|
Row: {
|
|
2963
2966
|
bucket_id: string;
|
|
@@ -3061,6 +3064,13 @@ export type Database = {
|
|
|
3061
3064
|
[_ in never]: never;
|
|
3062
3065
|
};
|
|
3063
3066
|
Functions: {
|
|
3067
|
+
add_prefixes: {
|
|
3068
|
+
Args: {
|
|
3069
|
+
_bucket_id: string;
|
|
3070
|
+
_name: string;
|
|
3071
|
+
};
|
|
3072
|
+
Returns: undefined;
|
|
3073
|
+
};
|
|
3064
3074
|
can_insert_object: {
|
|
3065
3075
|
Args: {
|
|
3066
3076
|
bucketid: string;
|
|
@@ -3070,6 +3080,13 @@ export type Database = {
|
|
|
3070
3080
|
};
|
|
3071
3081
|
Returns: undefined;
|
|
3072
3082
|
};
|
|
3083
|
+
delete_prefix: {
|
|
3084
|
+
Args: {
|
|
3085
|
+
_bucket_id: string;
|
|
3086
|
+
_name: string;
|
|
3087
|
+
};
|
|
3088
|
+
Returns: boolean;
|
|
3089
|
+
};
|
|
3073
3090
|
extension: {
|
|
3074
3091
|
Args: {
|
|
3075
3092
|
name: string;
|
|
@@ -3088,6 +3105,24 @@ export type Database = {
|
|
|
3088
3105
|
};
|
|
3089
3106
|
Returns: string[];
|
|
3090
3107
|
};
|
|
3108
|
+
get_level: {
|
|
3109
|
+
Args: {
|
|
3110
|
+
name: string;
|
|
3111
|
+
};
|
|
3112
|
+
Returns: number;
|
|
3113
|
+
};
|
|
3114
|
+
get_prefix: {
|
|
3115
|
+
Args: {
|
|
3116
|
+
name: string;
|
|
3117
|
+
};
|
|
3118
|
+
Returns: string;
|
|
3119
|
+
};
|
|
3120
|
+
get_prefixes: {
|
|
3121
|
+
Args: {
|
|
3122
|
+
name: string;
|
|
3123
|
+
};
|
|
3124
|
+
Returns: string[];
|
|
3125
|
+
};
|
|
3091
3126
|
get_size_by_bucket: {
|
|
3092
3127
|
Args: Record<PropertyKey, never>;
|
|
3093
3128
|
Returns: {
|
|
@@ -3150,6 +3185,63 @@ export type Database = {
|
|
|
3150
3185
|
metadata: Json;
|
|
3151
3186
|
}[];
|
|
3152
3187
|
};
|
|
3188
|
+
search_legacy_v1: {
|
|
3189
|
+
Args: {
|
|
3190
|
+
prefix: string;
|
|
3191
|
+
bucketname: string;
|
|
3192
|
+
limits?: number;
|
|
3193
|
+
levels?: number;
|
|
3194
|
+
offsets?: number;
|
|
3195
|
+
search?: string;
|
|
3196
|
+
sortcolumn?: string;
|
|
3197
|
+
sortorder?: string;
|
|
3198
|
+
};
|
|
3199
|
+
Returns: {
|
|
3200
|
+
name: string;
|
|
3201
|
+
id: string;
|
|
3202
|
+
updated_at: string;
|
|
3203
|
+
created_at: string;
|
|
3204
|
+
last_accessed_at: string;
|
|
3205
|
+
metadata: Json;
|
|
3206
|
+
}[];
|
|
3207
|
+
};
|
|
3208
|
+
search_v1_optimised: {
|
|
3209
|
+
Args: {
|
|
3210
|
+
prefix: string;
|
|
3211
|
+
bucketname: string;
|
|
3212
|
+
limits?: number;
|
|
3213
|
+
levels?: number;
|
|
3214
|
+
offsets?: number;
|
|
3215
|
+
search?: string;
|
|
3216
|
+
sortcolumn?: string;
|
|
3217
|
+
sortorder?: string;
|
|
3218
|
+
};
|
|
3219
|
+
Returns: {
|
|
3220
|
+
name: string;
|
|
3221
|
+
id: string;
|
|
3222
|
+
updated_at: string;
|
|
3223
|
+
created_at: string;
|
|
3224
|
+
last_accessed_at: string;
|
|
3225
|
+
metadata: Json;
|
|
3226
|
+
}[];
|
|
3227
|
+
};
|
|
3228
|
+
search_v2: {
|
|
3229
|
+
Args: {
|
|
3230
|
+
prefix: string;
|
|
3231
|
+
bucket_name: string;
|
|
3232
|
+
limits?: number;
|
|
3233
|
+
levels?: number;
|
|
3234
|
+
start_after?: string;
|
|
3235
|
+
};
|
|
3236
|
+
Returns: {
|
|
3237
|
+
key: string;
|
|
3238
|
+
name: string;
|
|
3239
|
+
id: string;
|
|
3240
|
+
updated_at: string;
|
|
3241
|
+
created_at: string;
|
|
3242
|
+
metadata: Json;
|
|
3243
|
+
}[];
|
|
3244
|
+
};
|
|
3153
3245
|
};
|
|
3154
3246
|
Enums: {
|
|
3155
3247
|
[_ in never]: never;
|
|
@@ -3159,53 +3251,61 @@ export type Database = {
|
|
|
3159
3251
|
};
|
|
3160
3252
|
};
|
|
3161
3253
|
};
|
|
3162
|
-
type
|
|
3163
|
-
export type Tables<
|
|
3254
|
+
type DefaultSchema = Database[Extract<keyof Database, "public">];
|
|
3255
|
+
export type Tables<DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] & DefaultSchema["Views"]) | {
|
|
3164
3256
|
schema: keyof Database;
|
|
3165
|
-
}, TableName extends
|
|
3257
|
+
}, TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
3166
3258
|
schema: keyof Database;
|
|
3167
|
-
} ? keyof (Database[
|
|
3259
|
+
} ? keyof (Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & Database[DefaultSchemaTableNameOrOptions["schema"]]["Views"]) : never = never> = DefaultSchemaTableNameOrOptions extends {
|
|
3168
3260
|
schema: keyof Database;
|
|
3169
|
-
} ? (Database[
|
|
3261
|
+
} ? (Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & Database[DefaultSchemaTableNameOrOptions["schema"]]["Views"])[TableName] extends {
|
|
3170
3262
|
Row: infer R;
|
|
3171
|
-
} ? R : never :
|
|
3263
|
+
} ? R : never : DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] & DefaultSchema["Views"]) ? (DefaultSchema["Tables"] & DefaultSchema["Views"])[DefaultSchemaTableNameOrOptions] extends {
|
|
3172
3264
|
Row: infer R;
|
|
3173
3265
|
} ? R : never : never;
|
|
3174
|
-
export type TablesInsert<
|
|
3266
|
+
export type TablesInsert<DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] | {
|
|
3175
3267
|
schema: keyof Database;
|
|
3176
|
-
}, TableName extends
|
|
3268
|
+
}, TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
3177
3269
|
schema: keyof Database;
|
|
3178
|
-
} ? keyof Database[
|
|
3270
|
+
} ? keyof Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] : never = never> = DefaultSchemaTableNameOrOptions extends {
|
|
3179
3271
|
schema: keyof Database;
|
|
3180
|
-
} ? Database[
|
|
3272
|
+
} ? Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
3181
3273
|
Insert: infer I;
|
|
3182
|
-
} ? I : never :
|
|
3274
|
+
} ? I : never : DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] ? DefaultSchema["Tables"][DefaultSchemaTableNameOrOptions] extends {
|
|
3183
3275
|
Insert: infer I;
|
|
3184
3276
|
} ? I : never : never;
|
|
3185
|
-
export type TablesUpdate<
|
|
3277
|
+
export type TablesUpdate<DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] | {
|
|
3186
3278
|
schema: keyof Database;
|
|
3187
|
-
}, TableName extends
|
|
3279
|
+
}, TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
3188
3280
|
schema: keyof Database;
|
|
3189
|
-
} ? keyof Database[
|
|
3281
|
+
} ? keyof Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] : never = never> = DefaultSchemaTableNameOrOptions extends {
|
|
3190
3282
|
schema: keyof Database;
|
|
3191
|
-
} ? Database[
|
|
3283
|
+
} ? Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
3192
3284
|
Update: infer U;
|
|
3193
|
-
} ? U : never :
|
|
3285
|
+
} ? U : never : DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] ? DefaultSchema["Tables"][DefaultSchemaTableNameOrOptions] extends {
|
|
3194
3286
|
Update: infer U;
|
|
3195
3287
|
} ? U : never : never;
|
|
3196
|
-
export type Enums<
|
|
3288
|
+
export type Enums<DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema["Enums"] | {
|
|
3289
|
+
schema: keyof Database;
|
|
3290
|
+
}, EnumName extends DefaultSchemaEnumNameOrOptions extends {
|
|
3291
|
+
schema: keyof Database;
|
|
3292
|
+
} ? keyof Database[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"] : never = never> = DefaultSchemaEnumNameOrOptions extends {
|
|
3293
|
+
schema: keyof Database;
|
|
3294
|
+
} ? Database[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"][EnumName] : DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema["Enums"] ? DefaultSchema["Enums"][DefaultSchemaEnumNameOrOptions] : never;
|
|
3295
|
+
export type CompositeTypes<PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"] | {
|
|
3197
3296
|
schema: keyof Database;
|
|
3198
|
-
},
|
|
3297
|
+
}, CompositeTypeName extends PublicCompositeTypeNameOrOptions extends {
|
|
3199
3298
|
schema: keyof Database;
|
|
3200
|
-
} ? keyof Database[
|
|
3299
|
+
} ? keyof Database[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"] : never = never> = PublicCompositeTypeNameOrOptions extends {
|
|
3201
3300
|
schema: keyof Database;
|
|
3202
|
-
} ? Database[
|
|
3301
|
+
} ? Database[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"][CompositeTypeName] : PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"] ? DefaultSchema["CompositeTypes"][PublicCompositeTypeNameOrOptions] : never;
|
|
3203
3302
|
export declare const Constants: {
|
|
3204
3303
|
readonly internal: {
|
|
3205
3304
|
readonly Enums: {};
|
|
3206
3305
|
};
|
|
3207
3306
|
readonly public: {
|
|
3208
3307
|
readonly Enums: {
|
|
3308
|
+
readonly enum_ai_context_type: readonly ["faq", "document"];
|
|
3209
3309
|
readonly enum_broadcast_status: readonly ["inprogress", "completed", "stopped", "expired"];
|
|
3210
3310
|
readonly enum_chat_colors: readonly ["#B4876E", "#A5B337", "#06CF9C", "#25D366", "#02A698", "#7D9EF1", "#007BFC", "#5E47DE", "#7F66FF", "#9333EA", "#FA6533", "#C4532D", "#DC2626", "#FF2E74", "#DB2777"];
|
|
3211
3311
|
readonly enum_chat_tickets_status: readonly ["open", "inprogress", "closed", "archived"];
|