@supabase/supabase-js 2.87.4-canary.2 → 2.87.4-canary.4

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.
Files changed (93) hide show
  1. package/dist/index.cjs +452 -0
  2. package/dist/index.cjs.map +1 -0
  3. package/dist/index.d.cts +362 -0
  4. package/dist/index.d.cts.map +1 -0
  5. package/dist/index.d.mts +362 -0
  6. package/dist/index.d.mts.map +1 -0
  7. package/dist/index.mjs +405 -0
  8. package/dist/index.mjs.map +1 -0
  9. package/dist/umd/supabase.js +23 -1
  10. package/package.json +21 -22
  11. package/src/lib/types.ts +19 -1
  12. package/src/lib/version.ts +1 -1
  13. package/dist/esm/wrapper.mjs +0 -94
  14. package/dist/main/SupabaseClient.d.ts +0 -139
  15. package/dist/main/SupabaseClient.d.ts.map +0 -1
  16. package/dist/main/SupabaseClient.js +0 -235
  17. package/dist/main/SupabaseClient.js.map +0 -1
  18. package/dist/main/index.d.ts +0 -24
  19. package/dist/main/index.d.ts.map +0 -1
  20. package/dist/main/index.js +0 -76
  21. package/dist/main/index.js.map +0 -1
  22. package/dist/main/lib/SupabaseAuthClient.d.ts +0 -6
  23. package/dist/main/lib/SupabaseAuthClient.d.ts.map +0 -1
  24. package/dist/main/lib/SupabaseAuthClient.js +0 -11
  25. package/dist/main/lib/SupabaseAuthClient.js.map +0 -1
  26. package/dist/main/lib/constants.d.ts +0 -16
  27. package/dist/main/lib/constants.d.ts.map +0 -1
  28. package/dist/main/lib/constants.js +0 -33
  29. package/dist/main/lib/constants.js.map +0 -1
  30. package/dist/main/lib/fetch.d.ts +0 -9
  31. package/dist/main/lib/fetch.d.ts.map +0 -1
  32. package/dist/main/lib/fetch.js +0 -32
  33. package/dist/main/lib/fetch.js.map +0 -1
  34. package/dist/main/lib/helpers.d.ts +0 -14
  35. package/dist/main/lib/helpers.d.ts.map +0 -1
  36. package/dist/main/lib/helpers.js +0 -62
  37. package/dist/main/lib/helpers.js.map +0 -1
  38. package/dist/main/lib/rest/types/common/common.d.ts +0 -55
  39. package/dist/main/lib/rest/types/common/common.d.ts.map +0 -1
  40. package/dist/main/lib/rest/types/common/common.js +0 -12
  41. package/dist/main/lib/rest/types/common/common.js.map +0 -1
  42. package/dist/main/lib/rest/types/common/rpc.d.ts +0 -49
  43. package/dist/main/lib/rest/types/common/rpc.d.ts.map +0 -1
  44. package/dist/main/lib/rest/types/common/rpc.js +0 -12
  45. package/dist/main/lib/rest/types/common/rpc.js.map +0 -1
  46. package/dist/main/lib/types.d.ts +0 -102
  47. package/dist/main/lib/types.d.ts.map +0 -1
  48. package/dist/main/lib/types.js +0 -3
  49. package/dist/main/lib/types.js.map +0 -1
  50. package/dist/main/lib/version.d.ts +0 -2
  51. package/dist/main/lib/version.d.ts.map +0 -1
  52. package/dist/main/lib/version.js +0 -11
  53. package/dist/main/lib/version.js.map +0 -1
  54. package/dist/module/SupabaseClient.d.ts +0 -139
  55. package/dist/module/SupabaseClient.d.ts.map +0 -1
  56. package/dist/module/SupabaseClient.js +0 -232
  57. package/dist/module/SupabaseClient.js.map +0 -1
  58. package/dist/module/index.d.ts +0 -24
  59. package/dist/module/index.d.ts.map +0 -1
  60. package/dist/module/index.js +0 -48
  61. package/dist/module/index.js.map +0 -1
  62. package/dist/module/lib/SupabaseAuthClient.d.ts +0 -6
  63. package/dist/module/lib/SupabaseAuthClient.d.ts.map +0 -1
  64. package/dist/module/lib/SupabaseAuthClient.js +0 -7
  65. package/dist/module/lib/SupabaseAuthClient.js.map +0 -1
  66. package/dist/module/lib/constants.d.ts +0 -16
  67. package/dist/module/lib/constants.d.ts.map +0 -1
  68. package/dist/module/lib/constants.js +0 -30
  69. package/dist/module/lib/constants.js.map +0 -1
  70. package/dist/module/lib/fetch.d.ts +0 -9
  71. package/dist/module/lib/fetch.d.ts.map +0 -1
  72. package/dist/module/lib/fetch.js +0 -26
  73. package/dist/module/lib/fetch.js.map +0 -1
  74. package/dist/module/lib/helpers.d.ts +0 -14
  75. package/dist/module/lib/helpers.d.ts.map +0 -1
  76. package/dist/module/lib/helpers.js +0 -54
  77. package/dist/module/lib/helpers.js.map +0 -1
  78. package/dist/module/lib/rest/types/common/common.d.ts +0 -55
  79. package/dist/module/lib/rest/types/common/common.d.ts.map +0 -1
  80. package/dist/module/lib/rest/types/common/common.js +0 -11
  81. package/dist/module/lib/rest/types/common/common.js.map +0 -1
  82. package/dist/module/lib/rest/types/common/rpc.d.ts +0 -49
  83. package/dist/module/lib/rest/types/common/rpc.d.ts.map +0 -1
  84. package/dist/module/lib/rest/types/common/rpc.js +0 -11
  85. package/dist/module/lib/rest/types/common/rpc.js.map +0 -1
  86. package/dist/module/lib/types.d.ts +0 -102
  87. package/dist/module/lib/types.d.ts.map +0 -1
  88. package/dist/module/lib/types.js +0 -2
  89. package/dist/module/lib/types.js.map +0 -1
  90. package/dist/module/lib/version.d.ts +0 -2
  91. package/dist/module/lib/version.d.ts.map +0 -1
  92. package/dist/module/lib/version.js +0 -8
  93. package/dist/module/lib/version.js.map +0 -1
@@ -1,54 +0,0 @@
1
- export function uuid() {
2
- return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
3
- var r = (Math.random() * 16) | 0, v = c == 'x' ? r : (r & 0x3) | 0x8;
4
- return v.toString(16);
5
- });
6
- }
7
- export function ensureTrailingSlash(url) {
8
- return url.endsWith('/') ? url : url + '/';
9
- }
10
- export const isBrowser = () => typeof window !== 'undefined';
11
- export function applySettingDefaults(options, defaults) {
12
- var _a, _b;
13
- const { db: dbOptions, auth: authOptions, realtime: realtimeOptions, global: globalOptions, } = options;
14
- const { db: DEFAULT_DB_OPTIONS, auth: DEFAULT_AUTH_OPTIONS, realtime: DEFAULT_REALTIME_OPTIONS, global: DEFAULT_GLOBAL_OPTIONS, } = defaults;
15
- const result = {
16
- db: Object.assign(Object.assign({}, DEFAULT_DB_OPTIONS), dbOptions),
17
- auth: Object.assign(Object.assign({}, DEFAULT_AUTH_OPTIONS), authOptions),
18
- realtime: Object.assign(Object.assign({}, DEFAULT_REALTIME_OPTIONS), realtimeOptions),
19
- storage: {},
20
- global: Object.assign(Object.assign(Object.assign({}, DEFAULT_GLOBAL_OPTIONS), globalOptions), { headers: Object.assign(Object.assign({}, ((_a = DEFAULT_GLOBAL_OPTIONS === null || DEFAULT_GLOBAL_OPTIONS === void 0 ? void 0 : DEFAULT_GLOBAL_OPTIONS.headers) !== null && _a !== void 0 ? _a : {})), ((_b = globalOptions === null || globalOptions === void 0 ? void 0 : globalOptions.headers) !== null && _b !== void 0 ? _b : {})) }),
21
- accessToken: async () => '',
22
- };
23
- if (options.accessToken) {
24
- result.accessToken = options.accessToken;
25
- }
26
- else {
27
- // hack around Required<>
28
- delete result.accessToken;
29
- }
30
- return result;
31
- }
32
- /**
33
- * Validates a Supabase client URL
34
- *
35
- * @param {string} supabaseUrl - The Supabase client URL string.
36
- * @returns {URL} - The validated base URL.
37
- * @throws {Error}
38
- */
39
- export function validateSupabaseUrl(supabaseUrl) {
40
- const trimmedUrl = supabaseUrl === null || supabaseUrl === void 0 ? void 0 : supabaseUrl.trim();
41
- if (!trimmedUrl) {
42
- throw new Error('supabaseUrl is required.');
43
- }
44
- if (!trimmedUrl.match(/^https?:\/\//i)) {
45
- throw new Error('Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.');
46
- }
47
- try {
48
- return new URL(ensureTrailingSlash(trimmedUrl));
49
- }
50
- catch (_a) {
51
- throw Error('Invalid supabaseUrl: Provided URL is malformed.');
52
- }
53
- }
54
- //# sourceMappingURL=helpers.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../src/lib/helpers.ts"],"names":[],"mappings":"AAGA,MAAM,UAAU,IAAI;IAClB,OAAO,sCAAsC,CAAC,OAAO,CAAC,OAAO,EAAE,UAAU,CAAC;QACxE,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,GA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W,EAAE,KAAK,IAAI,EAAE,CAAC,EAAE;KAC5B,CAAA;IAED,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC;QACxB,MAAM,CAAC,WAAW,GAAG,OAAO,CAAC,WAAW,CAAA;IAC1C,CAAC;SAAM,CAAC;QACN,yBAAyB;QACzB,OAAQ,MAAc,CAAC,WAAW,CAAA;IACpC,CAAC;IAED,OAAO,MAAM,CAAA;AACf,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,mBAAmB,CAAC,WAAmB;IACrD,MAAM,UAAU,GAAG,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,IAAI,EAAE,CAAA;IAEtC,IAAI,CAAC,UAAU,EAAE,CAAC;QAChB,MAAM,IAAI,KAAK,CAAC,0BAA0B,CAAC,CAAA;IAC7C,CAAC;IAED,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,eAAe,CAAC,EAAE,CAAC;QACvC,MAAM,IAAI,KAAK,CAAC,yDAAyD,CAAC,CAAA;IAC5E,CAAC;IAED,IAAI,CAAC;QACH,OAAO,IAAI,GAAG,CAAC,mBAAmB,CAAC,UAAU,CAAC,CAAC,CAAA;IACjD,CAAC;IAAC,WAAM,CAAC;QACP,MAAM,KAAK,CAAC,iDAAiD,CAAC,CAAA;IAChE,CAAC;AACH,CAAC"}
@@ -1,55 +0,0 @@
1
- /**
2
- * AUTO-GENERATED FILE - DO NOT EDIT
3
- *
4
- * This file is automatically synchronized from @supabase/postgrest-js
5
- * Source: packages/core/postgrest-js/src/types/common/
6
- *
7
- * To update this file, modify the source in postgrest-js and run:
8
- * npm run codegen
9
- */
10
- export type Fetch = typeof fetch;
11
- export type GenericRelationship = {
12
- foreignKeyName: string;
13
- columns: string[];
14
- isOneToOne?: boolean;
15
- referencedRelation: string;
16
- referencedColumns: string[];
17
- };
18
- export type GenericTable = {
19
- Row: Record<string, unknown>;
20
- Insert: Record<string, unknown>;
21
- Update: Record<string, unknown>;
22
- Relationships: GenericRelationship[];
23
- };
24
- export type GenericUpdatableView = {
25
- Row: Record<string, unknown>;
26
- Insert: Record<string, unknown>;
27
- Update: Record<string, unknown>;
28
- Relationships: GenericRelationship[];
29
- };
30
- export type GenericNonUpdatableView = {
31
- Row: Record<string, unknown>;
32
- Relationships: GenericRelationship[];
33
- };
34
- export type GenericView = GenericUpdatableView | GenericNonUpdatableView;
35
- export type GenericSetofOption = {
36
- isSetofReturn?: boolean | undefined;
37
- isOneToOne?: boolean | undefined;
38
- isNotNullable?: boolean | undefined;
39
- to: string;
40
- from: string;
41
- };
42
- export type GenericFunction = {
43
- Args: Record<string, unknown> | never;
44
- Returns: unknown;
45
- SetofOptions?: GenericSetofOption;
46
- };
47
- export type GenericSchema = {
48
- Tables: Record<string, GenericTable>;
49
- Views: Record<string, GenericView>;
50
- Functions: Record<string, GenericFunction>;
51
- };
52
- export type ClientServerOptions = {
53
- PostgrestVersion?: string;
54
- };
55
- //# sourceMappingURL=common.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/rest/types/common/common.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,MAAM,MAAM,KAAK,GAAG,OAAO,KAAK,CAAA;AAEhC,MAAM,MAAM,mBAAmB,GAAG;IAChC,cAAc,EAAE,MAAM,CAAA;IACtB,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,kBAAkB,EAAE,MAAM,CAAA;IAC1B,iBAAiB,EAAE,MAAM,EAAE,CAAA;CAC5B,CAAA;AAED,MAAM,MAAM,YAAY,GAAG;IACzB,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC5B,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC/B,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC/B,aAAa,EAAE,mBAAmB,EAAE,CAAA;C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 @@
1
- /**
2
- * AUTO-GENERATED FILE - DO NOT EDIT
3
- *
4
- * This file is automatically synchronized from @supabase/postgrest-js
5
- * Source: packages/core/postgrest-js/src/types/common/
6
- *
7
- * To update this file, modify the source in postgrest-js and run:
8
- * npm run codegen
9
- */
10
- export {};
11
- //# sourceMappingURL=common.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../../../src/lib/rest/types/common/common.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG"}
@@ -1,49 +0,0 @@
1
- /**
2
- * AUTO-GENERATED FILE - DO NOT EDIT
3
- *
4
- * This file is automatically synchronized from @supabase/postgrest-js
5
- * Source: packages/core/postgrest-js/src/types/common/
6
- *
7
- * To update this file, modify the source in postgrest-js and run:
8
- * npm run codegen
9
- */
10
- import type { GenericFunction, GenericSchema, GenericSetofOption } from './common';
11
- type IsMatchingArgs<FnArgs extends GenericFunction['Args'], PassedArgs extends GenericFunction['Args']> = [FnArgs] extends [Record<PropertyKey, never>] ? PassedArgs extends Record<PropertyKey, never> ? true : false : keyof PassedArgs extends keyof FnArgs ? PassedArgs extends FnArgs ? true : false : false;
12
- type MatchingFunctionArgs<Fn extends GenericFunction, Args extends GenericFunction['Args']> = Fn extends {
13
- Args: infer A extends GenericFunction['Args'];
14
- } ? IsMatchingArgs<A, Args> extends true ? Fn : never : false;
15
- type FindMatchingFunctionByArgs<FnUnion, Args extends GenericFunction['Args']> = FnUnion extends infer Fn extends GenericFunction ? MatchingFunctionArgs<Fn, Args> : false;
16
- type TablesAndViews<Schema extends GenericSchema> = Schema['Tables'] & Exclude<Schema['Views'], ''>;
17
- type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never;
18
- type LastOf<T> = UnionToIntersection<T extends any ? () => T : never> extends () => infer R ? R : never;
19
- type IsAny<T> = 0 extends 1 & T ? true : false;
20
- type ExactMatch<T, S> = [T] extends [S] ? ([S] extends [T] ? true : false) : false;
21
- type ExtractExactFunction<Fns, Args> = Fns extends infer F ? F extends GenericFunction ? ExactMatch<F['Args'], Args> extends true ? F : never : never : never;
22
- type IsNever<T> = [T] extends [never] ? true : false;
23
- type RpcFunctionNotFound<FnName> = {
24
- Row: any;
25
- Result: {
26
- error: true;
27
- } & "Couldn't infer function definition matching provided arguments";
28
- RelationName: FnName;
29
- Relationships: null;
30
- };
31
- type CrossSchemaError<TableRef extends string> = {
32
- error: true;
33
- } & `Function returns SETOF from a different schema ('${TableRef}'). Use .overrideTypes<YourReturnType>() to specify the return type explicitly.`;
34
- export type GetRpcFunctionFilterBuilderByArgs<Schema extends GenericSchema, FnName extends string & keyof Schema['Functions'], Args> = {
35
- 0: Schema['Functions'][FnName];
36
- 1: IsAny<Schema> extends true ? any : IsNever<Args> extends true ? IsNever<ExtractExactFunction<Schema['Functions'][FnName], Args>> extends true ? LastOf<Schema['Functions'][FnName]> : ExtractExactFunction<Schema['Functions'][FnName], Args> : Args extends Record<PropertyKey, never> ? LastOf<Schema['Functions'][FnName]> : Args extends GenericFunction['Args'] ? IsNever<LastOf<FindMatchingFunctionByArgs<Schema['Functions'][FnName], Args>>> extends true ? LastOf<Schema['Functions'][FnName]> : LastOf<FindMatchingFunctionByArgs<Schema['Functions'][FnName], Args>> : ExtractExactFunction<Schema['Functions'][FnName], Args> extends GenericFunction ? ExtractExactFunction<Schema['Functions'][FnName], Args> : any;
37
- }[1] extends infer Fn ? IsAny<Fn> extends true ? {
38
- Row: any;
39
- Result: any;
40
- RelationName: FnName;
41
- Relationships: null;
42
- } : Fn extends GenericFunction ? {
43
- Row: Fn['SetofOptions'] extends GenericSetofOption ? Fn['SetofOptions']['to'] extends keyof TablesAndViews<Schema> ? TablesAndViews<Schema>[Fn['SetofOptions']['to']]['Row'] : Fn['Returns'] extends any[] ? Fn['Returns'][number] extends Record<string, unknown> ? Fn['Returns'][number] : CrossSchemaError<Fn['SetofOptions']['to'] & string> : Fn['Returns'] extends Record<string, unknown> ? Fn['Returns'] : CrossSchemaError<Fn['SetofOptions']['to'] & string> : Fn['Returns'] extends any[] ? Fn['Returns'][number] extends Record<string, unknown> ? Fn['Returns'][number] : never : Fn['Returns'] extends Record<string, unknown> ? Fn['Returns'] : never;
44
- Result: Fn['SetofOptions'] extends GenericSetofOption ? Fn['SetofOptions']['isSetofReturn'] extends true ? Fn['SetofOptions']['isOneToOne'] extends true ? Fn['Returns'][] : Fn['Returns'] : Fn['Returns'] : Fn['Returns'];
45
- RelationName: Fn['SetofOptions'] extends GenericSetofOption ? Fn['SetofOptions']['to'] : FnName;
46
- Relationships: Fn['SetofOptions'] extends GenericSetofOption ? Fn['SetofOptions']['to'] extends keyof Schema['Tables'] ? Schema['Tables'][Fn['SetofOptions']['to']]['Relationships'] : Fn['SetofOptions']['to'] extends keyof Schema['Views'] ? Schema['Views'][Fn['SetofOptions']['to']]['Relationships'] : null : null;
47
- } : Fn extends false ? RpcFunctionNotFound<FnName> : RpcFunctionNotFound<FnName> : RpcFunctionNotFound<FnName>;
48
- export {};
49
- //# sourceMappingURL=rpc.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"rpc.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/rest/types/common/rpc.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAA;AAGlF,KAAK,cAAc,CACjB,MAAM,SAAS,eAAe,CAAC,MAAM,CAAC,EACtC,UAAU,SAAS,eAAe,CAAC,MAAM,CAAC,IACxC,CAAC,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC,GAC7C,UAAU,SAAS,MAAM,CAAC,WAAW,EAAE,KAAK,CAAC,GAC3C,IAAI,GACJ,KAAK,GACP,MAAM,UAAU,SAAS,MAAM,MAAM,GACnC,UAAU,SAAS,MAAM,GACvB,IAAI,GACJ,KAAK,GACP,KAAK,CAAA;AAEX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AAM,CAAC,QAAQ,CAAC,GACrD,MAAM,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,cAAc,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,eAAe,CAAC,GAC3D,EAAE,CAAC,cAAc,CAAC,CAAC,IAAI,CAAC,SAAS,MAAM,MAAM,CAAC,OAAO,CAAC,GACpD,MAAM,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,cAAc,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,eAAe,CAAC,GAC1D,IAAI,GACR,IAAI,CAAA;CACT,GAED,EAAE,SAAS,KAAK,GACd,mBAAmB,CAAC,MAAM,CAAC,GAC3B,mBAAmB,CAAC,MAAM,CAAC,GACjC,mBAAmB,CAAC,MAAM,CAAC,CAAA"}
@@ -1,11 +0,0 @@
1
- /**
2
- * AUTO-GENERATED FILE - DO NOT EDIT
3
- *
4
- * This file is automatically synchronized from @supabase/postgrest-js
5
- * Source: packages/core/postgrest-js/src/types/common/
6
- *
7
- * To update this file, modify the source in postgrest-js and run:
8
- * npm run codegen
9
- */
10
- export {};
11
- //# sourceMappingURL=rpc.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"rpc.js","sourceRoot":"","sources":["../../../../../../src/lib/rest/types/common/rpc.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG"}
@@ -1,102 +0,0 @@
1
- import { GoTrueClientOptions } from '@supabase/auth-js';
2
- import { RealtimeClientOptions } from '@supabase/realtime-js';
3
- import { PostgrestError } from '@supabase/postgrest-js';
4
- import type { StorageClientOptions } from '@supabase/storage-js';
5
- import type { GenericSchema, GenericRelationship, GenericTable, GenericUpdatableView, GenericNonUpdatableView, GenericView, GenericFunction } from './rest/types/common/common';
6
- export type { GenericSchema, GenericRelationship, GenericTable, GenericUpdatableView, GenericNonUpdatableView, GenericView, GenericFunction, };
7
- export interface SupabaseAuthClientOptions extends GoTrueClientOptions {
8
- }
9
- export type Fetch = typeof fetch;
10
- export type SupabaseClientOptions<SchemaName> = {
11
- /**
12
- * The Postgres schema which your tables belong to. Must be on the list of exposed schemas in Supabase. Defaults to `public`.
13
- */
14
- db?: {
15
- schema?: SchemaName;
16
- };
17
- auth?: {
18
- /**
19
- * Automatically refreshes the token for logged-in users. Defaults to true.
20
- */
21
- autoRefreshToken?: boolean;
22
- /**
23
- * Optional key name used for storing tokens in local storage.
24
- */
25
- storageKey?: string;
26
- /**
27
- * Whether to persist a logged-in session to storage. Defaults to true.
28
- */
29
- persistSession?: boolean;
30
- /**
31
- * Detect a session from the URL. Used for OAuth login callbacks. Defaults to true.
32
- */
33
- detectSessionInUrl?: boolean;
34
- /**
35
- * A storage provider. Used to store the logged-in session.
36
- */
37
- storage?: SupabaseAuthClientOptions['storage'];
38
- /**
39
- * A storage provider to store the user profile separately from the session.
40
- * Useful when you need to store the session information in cookies,
41
- * without bloating the data with the redundant user object.
42
- *
43
- * @experimental
44
- */
45
- userStorage?: SupabaseAuthClientOptions['userStorage'];
46
- /**
47
- * OAuth flow to use - defaults to implicit flow. PKCE is recommended for mobile and server-side applications.
48
- */
49
- flowType?: SupabaseAuthClientOptions['flowType'];
50
- /**
51
- * If debug messages for authentication client are emitted. Can be used to inspect the behavior of the library.
52
- */
53
- debug?: SupabaseAuthClientOptions['debug'];
54
- /**
55
- * Provide your own locking mechanism based on the environment. By default no locking is done at this time.
56
- *
57
- * @experimental
58
- */
59
- lock?: SupabaseAuthClientOptions['lock'];
60
- /**
61
- * If there is an error with the query, throwOnError will reject the promise by
62
- * throwing the error instead of returning it as part of a successful response.
63
- */
64
- throwOnError?: SupabaseAuthClientOptions['throwOnError'];
65
- };
66
- /**
67
- * Options passed to the realtime-js instance
68
- */
69
- realtime?: RealtimeClientOptions;
70
- storage?: StorageClientOptions;
71
- global?: {
72
- /**
73
- * A custom `fetch` implementation.
74
- */
75
- fetch?: Fetch;
76
- /**
77
- * Optional headers for initializing the client.
78
- */
79
- headers?: Record<string, string>;
80
- };
81
- /**
82
- * Optional function for using a third-party authentication system with
83
- * Supabase. The function should return an access token or ID token (JWT) by
84
- * obtaining it from the third-party auth SDK. Note that this
85
- * function may be called concurrently and many times. Use memoization and
86
- * locking techniques if this is not supported by the SDKs.
87
- *
88
- * When set, the `auth` namespace of the Supabase client cannot be used.
89
- * Create another client if you wish to use Supabase Auth and third-party
90
- * authentications concurrently in the same application.
91
- */
92
- accessToken?: () => Promise<string | null>;
93
- };
94
- /**
95
- * Helper types for query results.
96
- */
97
- export type QueryResult<T> = T extends PromiseLike<infer U> ? U : never;
98
- export type QueryData<T> = T extends PromiseLike<{
99
- data: infer U;
100
- }> ? Exclude<U, null> : never;
101
- export type QueryError = PostgrestError;
102
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/lib/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AACvD,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAA;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AACvD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAChE,OAAO,KAAK,EACV,aAAa,EACb,mBAAmB,EACnB,YAAY,EACZ,oBAAoB,EACpB,uBAAuB,EACvB,WAAW,EACX,eAAe,EAChB,MAAM,4BAA4B,CAAA;AACnC,YAAY,EACV,aAAa,EACb,mBAAmB,EACnB,YAAY,EACZ,oBAAoB,EACpB,uBAAuB,EACvB,WAAW,EACX,eAAe,GAChB,CAAA;AAED,MAAM,WAAW,yBAA0B,SAAQ,mBAAmB;CAAG;AAEzE,MAAM,MAAM,KAAK,GAAG,OAAO,KAAK,CAAA;AAEhC,MAAM,MAAM,qBAAqB,CAAC,UAAU,IAAI;IAC9C;;OAEG;IACH,EAAE,CAAC,EAAE;QACH,MAAM,CAAC,EAAE,UAAU,CAAA;KACpB,CAAA;IAED,IAAI,CAAC,EAAE;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AG,OAAO,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,KAAK,CAAA;AAC9F,MAAM,MAAM,UAAU,GAAG,cAAc,CAAA"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/lib/types.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export declare const version = "2.87.4-canary.2";
2
- //# sourceMappingURL=version.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../../src/lib/version.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,OAAO,oBAAoB,CAAA"}
@@ -1,8 +0,0 @@
1
- // Generated automatically during releases by scripts/update-version-files.ts
2
- // This file provides runtime access to the package version for:
3
- // - HTTP request headers (e.g., X-Client-Info header for API requests)
4
- // - Debugging and support (identifying which version is running)
5
- // - Telemetry and logging (version reporting in errors/analytics)
6
- // - Ensuring build artifacts match the published package version
7
- export const version = '2.87.4-canary.2';
8
- //# sourceMappingURL=version.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"version.js","sourceRoot":"","sources":["../../../src/lib/version.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,gEAAgE;AAChE,uEAAuE;AACvE,iEAAiE;AACjE,kEAAkE;AAClE,iEAAiE;AACjE,MAAM,CAAC,MAAM,OAAO,GAAG,iBAAiB,CAAA"}