@periskope/types 0.6.148 → 0.6.149

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.
@@ -2,6 +2,31 @@ 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
+ };
5
30
  internal: {
6
31
  Tables: {
7
32
  config: {
@@ -1909,6 +1934,13 @@ export type Database = {
1909
1934
  };
1910
1935
  };
1911
1936
  Functions: {
1937
+ check_feature_flag_access: {
1938
+ Args: {
1939
+ org_id_input: string;
1940
+ feature_input: string;
1941
+ };
1942
+ Returns: boolean;
1943
+ };
1912
1944
  create_partition: {
1913
1945
  Args: {
1914
1946
  org_id_input: string;
@@ -2029,17 +2061,12 @@ export type Database = {
2029
2061
  Returns: Json;
2030
2062
  };
2031
2063
  get_feature_flags: {
2032
- Args: Record<PropertyKey, never>;
2064
+ Args: {
2065
+ org_id_input: string;
2066
+ };
2033
2067
  Returns: {
2034
2068
  feature: string;
2035
2069
  enabled: boolean;
2036
- plans: string[];
2037
- excluded_orgs: string[];
2038
- exclusive_to_orgs: string[];
2039
- included_orgs: string[];
2040
- percentage: number;
2041
- start_date: string;
2042
- created_at: string;
2043
2070
  }[];
2044
2071
  };
2045
2072
  get_integration_data: {
@@ -2267,7 +2294,6 @@ export type Database = {
2267
2294
  owner_id: string | null;
2268
2295
  path_tokens: string[] | null;
2269
2296
  updated_at: string | null;
2270
- user_metadata: Json | null;
2271
2297
  version: string | null;
2272
2298
  };
2273
2299
  Insert: {
@@ -2281,7 +2307,6 @@ export type Database = {
2281
2307
  owner_id?: string | null;
2282
2308
  path_tokens?: string[] | null;
2283
2309
  updated_at?: string | null;
2284
- user_metadata?: Json | null;
2285
2310
  version?: string | null;
2286
2311
  };
2287
2312
  Update: {
@@ -2295,7 +2320,6 @@ export type Database = {
2295
2320
  owner_id?: string | null;
2296
2321
  path_tokens?: string[] | null;
2297
2322
  updated_at?: string | null;
2298
- user_metadata?: Json | null;
2299
2323
  version?: string | null;
2300
2324
  };
2301
2325
  Relationships: [
@@ -2317,7 +2341,6 @@ export type Database = {
2317
2341
  key: string;
2318
2342
  owner_id: string | null;
2319
2343
  upload_signature: string;
2320
- user_metadata: Json | null;
2321
2344
  version: string;
2322
2345
  };
2323
2346
  Insert: {
@@ -2328,7 +2351,6 @@ export type Database = {
2328
2351
  key: string;
2329
2352
  owner_id?: string | null;
2330
2353
  upload_signature: string;
2331
- user_metadata?: Json | null;
2332
2354
  version: string;
2333
2355
  };
2334
2356
  Update: {
@@ -2339,7 +2361,6 @@ export type Database = {
2339
2361
  key?: string;
2340
2362
  owner_id?: string | null;
2341
2363
  upload_signature?: string;
2342
- user_metadata?: Json | null;
2343
2364
  version?: string;
2344
2365
  };
2345
2366
  Relationships: [
@@ -2476,10 +2497,6 @@ export type Database = {
2476
2497
  updated_at: string;
2477
2498
  }[];
2478
2499
  };
2479
- operation: {
2480
- Args: Record<PropertyKey, never>;
2481
- Returns: string;
2482
- };
2483
2500
  search: {
2484
2501
  Args: {
2485
2502
  prefix: string;
package/dist/types.d.ts CHANGED
@@ -76,6 +76,7 @@ export type OrgMetadata = {
76
76
  };
77
77
  };
78
78
  type AccessScopes = {
79
+ feature_flags: Record<string, boolean>;
79
80
  integrations: boolean;
80
81
  exports: boolean;
81
82
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@periskope/types",
3
- "version": "0.6.148",
3
+ "version": "0.6.149",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",