@supabase/functions-js 2.81.1 → 2.81.2-canary.1
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/main/FunctionsClient.d.ts +26 -0
- package/dist/main/FunctionsClient.d.ts.map +1 -1
- package/dist/main/FunctionsClient.js +26 -0
- package/dist/main/FunctionsClient.js.map +1 -1
- package/dist/main/types.d.ts +42 -0
- package/dist/main/types.d.ts.map +1 -1
- package/dist/main/types.js +42 -0
- package/dist/main/types.js.map +1 -1
- package/dist/main/version.d.ts +1 -1
- package/dist/main/version.d.ts.map +1 -1
- package/dist/main/version.js +1 -1
- package/dist/main/version.js.map +1 -1
- package/dist/module/FunctionsClient.d.ts +26 -0
- package/dist/module/FunctionsClient.d.ts.map +1 -1
- package/dist/module/FunctionsClient.js +26 -0
- package/dist/module/FunctionsClient.js.map +1 -1
- package/dist/module/types.d.ts +42 -0
- package/dist/module/types.d.ts.map +1 -1
- package/dist/module/types.js +42 -0
- package/dist/module/types.js.map +1 -1
- package/dist/module/version.d.ts +1 -1
- package/dist/module/version.d.ts.map +1 -1
- package/dist/module/version.js +1 -1
- package/dist/module/version.js.map +1 -1
- package/dist/tsconfig.module.tsbuildinfo +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/FunctionsClient.ts +26 -0
- package/src/types.ts +42 -0
- package/src/version.ts +1 -1
|
@@ -1,9 +1,25 @@
|
|
|
1
1
|
import { Fetch, FunctionInvokeOptions, FunctionRegion, FunctionsResponse } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Client for invoking Supabase Edge Functions.
|
|
4
|
+
*/
|
|
2
5
|
export declare class FunctionsClient {
|
|
3
6
|
protected url: string;
|
|
4
7
|
protected headers: Record<string, string>;
|
|
5
8
|
protected region: FunctionRegion;
|
|
6
9
|
protected fetch: Fetch;
|
|
10
|
+
/**
|
|
11
|
+
* Creates a new Functions client bound to an Edge Functions URL.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* import { FunctionsClient, FunctionRegion } from '@supabase/functions-js'
|
|
16
|
+
*
|
|
17
|
+
* const functions = new FunctionsClient('https://xyzcompany.supabase.co/functions/v1', {
|
|
18
|
+
* headers: { apikey: 'public-anon-key' },
|
|
19
|
+
* region: FunctionRegion.UsEast1,
|
|
20
|
+
* })
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
7
23
|
constructor(url: string, { headers, customFetch, region, }?: {
|
|
8
24
|
headers?: Record<string, string>;
|
|
9
25
|
customFetch?: Fetch;
|
|
@@ -12,12 +28,22 @@ export declare class FunctionsClient {
|
|
|
12
28
|
/**
|
|
13
29
|
* Updates the authorization header
|
|
14
30
|
* @param token - the new jwt token sent in the authorisation header
|
|
31
|
+
* @example
|
|
32
|
+
* ```ts
|
|
33
|
+
* functions.setAuth(session.access_token)
|
|
34
|
+
* ```
|
|
15
35
|
*/
|
|
16
36
|
setAuth(token: string): void;
|
|
17
37
|
/**
|
|
18
38
|
* Invokes a function
|
|
19
39
|
* @param functionName - The name of the Function to invoke.
|
|
20
40
|
* @param options - Options for invoking the Function.
|
|
41
|
+
* @example
|
|
42
|
+
* ```ts
|
|
43
|
+
* const { data, error } = await functions.invoke('hello-world', {
|
|
44
|
+
* body: { name: 'Ada' },
|
|
45
|
+
* })
|
|
46
|
+
* ```
|
|
21
47
|
*/
|
|
22
48
|
invoke<T = any>(functionName: string, options?: FunctionInvokeOptions): Promise<FunctionsResponse<T>>;
|
|
23
49
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FunctionsClient.d.ts","sourceRoot":"","sources":["../../src/FunctionsClient.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,EACL,qBAAqB,EACrB,cAAc,EAId,iBAAiB,EAClB,MAAM,SAAS,CAAA;AAEhB,qBAAa,eAAe;IAC1B,SAAS,CAAC,GAAG,EAAE,MAAM,CAAA;IACrB,SAAS,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACzC,SAAS,CAAC,MAAM,EAAE,cAAc,CAAA;IAChC,SAAS,CAAC,KAAK,EAAE,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"FunctionsClient.d.ts","sourceRoot":"","sources":["../../src/FunctionsClient.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,EACL,qBAAqB,EACrB,cAAc,EAId,iBAAiB,EAClB,MAAM,SAAS,CAAA;AAEhB;;GAEG;AACH,qBAAa,eAAe;IAC1B,SAAS,CAAC,GAAG,EAAE,MAAM,CAAA;IACrB,SAAS,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACzC,SAAS,CAAC,MAAM,EAAE,cAAc,CAAA;IAChC,SAAS,CAAC,KAAK,EAAE,KAAK,CAAA;IAEtB;;;;;;;;;;;;OAYG;gBAED,GAAG,EAAE,MAAM,EACX,EACE,OAAY,EACZ,WAAW,EACX,MAA2B,GAC5B,GAAE;QACD,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;QAChC,WAAW,CAAC,EAAE,KAAK,CAAA;QACnB,MAAM,CAAC,EAAE,cAAc,CAAA;KACnB;IAQR;;;;;;;OAOG;IACH,OAAO,CAAC,KAAK,EAAE,MAAM;IAIrB;;;;;;;;;;OAUG;IACG,MAAM,CAAC,CAAC,GAAG,GAAG,EAClB,YAAY,EAAE,MAAM,EACpB,OAAO,GAAE,qBAA0B,GAClC,OAAO,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC;CAyHjC"}
|
|
@@ -4,7 +4,23 @@ exports.FunctionsClient = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const helper_1 = require("./helper");
|
|
6
6
|
const types_1 = require("./types");
|
|
7
|
+
/**
|
|
8
|
+
* Client for invoking Supabase Edge Functions.
|
|
9
|
+
*/
|
|
7
10
|
class FunctionsClient {
|
|
11
|
+
/**
|
|
12
|
+
* Creates a new Functions client bound to an Edge Functions URL.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* import { FunctionsClient, FunctionRegion } from '@supabase/functions-js'
|
|
17
|
+
*
|
|
18
|
+
* const functions = new FunctionsClient('https://xyzcompany.supabase.co/functions/v1', {
|
|
19
|
+
* headers: { apikey: 'public-anon-key' },
|
|
20
|
+
* region: FunctionRegion.UsEast1,
|
|
21
|
+
* })
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
8
24
|
constructor(url, { headers = {}, customFetch, region = types_1.FunctionRegion.Any, } = {}) {
|
|
9
25
|
this.url = url;
|
|
10
26
|
this.headers = headers;
|
|
@@ -14,6 +30,10 @@ class FunctionsClient {
|
|
|
14
30
|
/**
|
|
15
31
|
* Updates the authorization header
|
|
16
32
|
* @param token - the new jwt token sent in the authorisation header
|
|
33
|
+
* @example
|
|
34
|
+
* ```ts
|
|
35
|
+
* functions.setAuth(session.access_token)
|
|
36
|
+
* ```
|
|
17
37
|
*/
|
|
18
38
|
setAuth(token) {
|
|
19
39
|
this.headers.Authorization = `Bearer ${token}`;
|
|
@@ -22,6 +42,12 @@ class FunctionsClient {
|
|
|
22
42
|
* Invokes a function
|
|
23
43
|
* @param functionName - The name of the Function to invoke.
|
|
24
44
|
* @param options - Options for invoking the Function.
|
|
45
|
+
* @example
|
|
46
|
+
* ```ts
|
|
47
|
+
* const { data, error } = await functions.invoke('hello-world', {
|
|
48
|
+
* body: { name: 'Ada' },
|
|
49
|
+
* })
|
|
50
|
+
* ```
|
|
25
51
|
*/
|
|
26
52
|
invoke(functionName_1) {
|
|
27
53
|
return tslib_1.__awaiter(this, arguments, void 0, function* (functionName, options = {}) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FunctionsClient.js","sourceRoot":"","sources":["../../src/FunctionsClient.ts"],"names":[],"mappings":";;;;AAAA,qCAAuC;AACvC,mCAQ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,IAAI,KAAK,YAAY,2BAAmB;wBACzE,CAAC,CAAC,KAAK,CAAC,OAAO;wBACf,CAAC,CAAC,SAAS;iBAChB,CAAA;YACH,CAAC;oBAAS,CAAC;gBACT,kCAAkC;gBAClC,IAAI,SAAS,EAAE,CAAC;oBACd,YAAY,CAAC,SAAS,CAAC,CAAA;gBACzB,CAAC;YACH,CAAC;QACH,CAAC;KAAA;CACF;AAxLD,0CAwLC"}
|
package/dist/main/types.d.ts
CHANGED
|
@@ -13,16 +13,58 @@ export interface FunctionsResponseFailure {
|
|
|
13
13
|
response?: Response;
|
|
14
14
|
}
|
|
15
15
|
export type FunctionsResponse<T> = FunctionsResponseSuccess<T> | FunctionsResponseFailure;
|
|
16
|
+
/**
|
|
17
|
+
* Base error for Supabase Edge Function invocations.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```ts
|
|
21
|
+
* import { FunctionsError } from '@supabase/functions-js'
|
|
22
|
+
*
|
|
23
|
+
* throw new FunctionsError('Unexpected error invoking function', 'FunctionsError', {
|
|
24
|
+
* requestId: 'abc123',
|
|
25
|
+
* })
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
16
28
|
export declare class FunctionsError extends Error {
|
|
17
29
|
context: any;
|
|
18
30
|
constructor(message: string, name?: string, context?: any);
|
|
19
31
|
}
|
|
32
|
+
/**
|
|
33
|
+
* Error thrown when the network request to an Edge Function fails.
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```ts
|
|
37
|
+
* import { FunctionsFetchError } from '@supabase/functions-js'
|
|
38
|
+
*
|
|
39
|
+
* throw new FunctionsFetchError({ requestId: 'abc123' })
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
20
42
|
export declare class FunctionsFetchError extends FunctionsError {
|
|
21
43
|
constructor(context: any);
|
|
22
44
|
}
|
|
45
|
+
/**
|
|
46
|
+
* Error thrown when the Supabase relay cannot reach the Edge Function.
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* ```ts
|
|
50
|
+
* import { FunctionsRelayError } from '@supabase/functions-js'
|
|
51
|
+
*
|
|
52
|
+
* throw new FunctionsRelayError({ region: 'us-east-1' })
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
23
55
|
export declare class FunctionsRelayError extends FunctionsError {
|
|
24
56
|
constructor(context: any);
|
|
25
57
|
}
|
|
58
|
+
/**
|
|
59
|
+
* Error thrown when the Edge Function returns a non-2xx status code.
|
|
60
|
+
*
|
|
61
|
+
* @example
|
|
62
|
+
* ```ts
|
|
63
|
+
* import { FunctionsHttpError } from '@supabase/functions-js'
|
|
64
|
+
*
|
|
65
|
+
* throw new FunctionsHttpError({ status: 500 })
|
|
66
|
+
* ```
|
|
67
|
+
*/
|
|
26
68
|
export declare class FunctionsHttpError extends FunctionsError {
|
|
27
69
|
constructor(context: any);
|
|
28
70
|
}
|
package/dist/main/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,KAAK,GAAG,OAAO,KAAK,CAAA;AAEhC;;GAEG;AACH,MAAM,WAAW,wBAAwB,CAAC,CAAC;IACzC,IAAI,EAAE,CAAC,CAAA;IACP,KAAK,EAAE,IAAI,CAAA;IACX,QAAQ,CAAC,EAAE,QAAQ,CAAA;CACpB;AACD,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,IAAI,CAAA;IACV,KAAK,EAAE,GAAG,CAAA;IACV,QAAQ,CAAC,EAAE,QAAQ,CAAA;CACpB;AACD,MAAM,MAAM,iBAAiB,CAAC,CAAC,IAAI,wBAAwB,CAAC,CAAC,CAAC,GAAG,wBAAwB,CAAA;AAEzF,qBAAa,cAAe,SAAQ,KAAK;IACvC,OAAO,EAAE,GAAG,CAAA;gBACA,OAAO,EAAE,MAAM,EAAE,IAAI,SAAmB,EAAE,OAAO,CAAC,EAAE,GAAG;CAKpE;AAED,q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,GAAG,KAAK,GAAG,KAAK,GAAG,OAAO,GAAG,QAAQ,CAAA;IACpD;;OAEG;IACH,MAAM,CAAC,EAAE,cAAc,CAAA;IACvB;;OAEG;IACH,IAAI,CAAC,EACD,IAAI,GACJ,IAAI,GACJ,WAAW,GACX,QAAQ,GACR,cAAc,CAAC,UAAU,CAAC,GAC1B,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GACnB,MAAM,CAAA;IACV;;SAEK;IACL,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB;;;SAGK;IACL,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,CAAA"}
|
package/dist/main/types.js
CHANGED
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.FunctionRegion = exports.FunctionsHttpError = exports.FunctionsRelayError = exports.FunctionsFetchError = exports.FunctionsError = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Base error for Supabase Edge Function invocations.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```ts
|
|
9
|
+
* import { FunctionsError } from '@supabase/functions-js'
|
|
10
|
+
*
|
|
11
|
+
* throw new FunctionsError('Unexpected error invoking function', 'FunctionsError', {
|
|
12
|
+
* requestId: 'abc123',
|
|
13
|
+
* })
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
4
16
|
class FunctionsError extends Error {
|
|
5
17
|
constructor(message, name = 'FunctionsError', context) {
|
|
6
18
|
super(message);
|
|
@@ -9,18 +21,48 @@ class FunctionsError extends Error {
|
|
|
9
21
|
}
|
|
10
22
|
}
|
|
11
23
|
exports.FunctionsError = FunctionsError;
|
|
24
|
+
/**
|
|
25
|
+
* Error thrown when the network request to an Edge Function fails.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```ts
|
|
29
|
+
* import { FunctionsFetchError } from '@supabase/functions-js'
|
|
30
|
+
*
|
|
31
|
+
* throw new FunctionsFetchError({ requestId: 'abc123' })
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
12
34
|
class FunctionsFetchError extends FunctionsError {
|
|
13
35
|
constructor(context) {
|
|
14
36
|
super('Failed to send a request to the Edge Function', 'FunctionsFetchError', context);
|
|
15
37
|
}
|
|
16
38
|
}
|
|
17
39
|
exports.FunctionsFetchError = FunctionsFetchError;
|
|
40
|
+
/**
|
|
41
|
+
* Error thrown when the Supabase relay cannot reach the Edge Function.
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* ```ts
|
|
45
|
+
* import { FunctionsRelayError } from '@supabase/functions-js'
|
|
46
|
+
*
|
|
47
|
+
* throw new FunctionsRelayError({ region: 'us-east-1' })
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
18
50
|
class FunctionsRelayError extends FunctionsError {
|
|
19
51
|
constructor(context) {
|
|
20
52
|
super('Relay Error invoking the Edge Function', 'FunctionsRelayError', context);
|
|
21
53
|
}
|
|
22
54
|
}
|
|
23
55
|
exports.FunctionsRelayError = FunctionsRelayError;
|
|
56
|
+
/**
|
|
57
|
+
* Error thrown when the Edge Function returns a non-2xx status code.
|
|
58
|
+
*
|
|
59
|
+
* @example
|
|
60
|
+
* ```ts
|
|
61
|
+
* import { FunctionsHttpError } from '@supabase/functions-js'
|
|
62
|
+
*
|
|
63
|
+
* throw new FunctionsHttpError({ status: 500 })
|
|
64
|
+
* ```
|
|
65
|
+
*/
|
|
24
66
|
class FunctionsHttpError extends FunctionsError {
|
|
25
67
|
constructor(context) {
|
|
26
68
|
super('Edge Function returned a non-2xx status code', 'FunctionsHttpError', context);
|
package/dist/main/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":";;;AAiBA,MAAa,cAAe,SAAQ,KAAK;IAEvC,YAAY,OAAe,EAAE,IAAI,GAAG,gBAAgB,EAAE,OAAa;QACjE,KAAK,CAAC,OAA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I,CAAA;QAChB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;IACxB,CAAC;CACF;AAPD,wCAOC;AAED;;;;;;;;;GASG;AACH,MAAa,mBAAoB,SAAQ,cAAc;IACrD,YAAY,OAAY;QACtB,KAAK,CAAC,+CAA+C,EAAE,qBAAqB,EAAE,OAAO,CAAC,CAAA;IACxF,CAAC;CACF;AAJD,kDAIC;AAED;;;;;;;;;GASG;AACH,MAAa,mBAAoB,SAAQ,cAAc;IACrD,YAAY,OAAY;QACtB,KAAK,CAAC,wCAAwC,EAAE,qBAAqB,EAAE,OAAO,CAAC,CAAA;IACjF,CAAC;CACF;AAJD,kDAIC;AAED;;;;;;;;;GASG;AACH,MAAa,kBAAmB,SAAQ,cAAc;IACpD,YAAY,OAAY;QACtB,KAAK,CAAC,8CAA8C,EAAE,oBAAoB,EAAE,OAAO,CAAC,CAAA;IACtF,CAAC;CACF;AAJD,gDAIC;AACD,4CAA4C;AAC5C,IAAY,cAgBX;AAhBD,WAAY,cAAc;IACxB,6BAAW,CAAA;IACX,iDAA+B,CAAA;IAC/B,iDAA+B,CAAA;IAC/B,yCAAuB,CAAA;IACvB,iDAA+B,CAAA;IAC/B,iDAA+B,CAAA;IAC/B,6CAA2B,CAAA;IAC3B,6CAA2B,CAAA;IAC3B,uCAAqB,CAAA;IACrB,uCAAqB,CAAA;IACrB,uCAAqB,CAAA;IACrB,uCAAqB,CAAA;IACrB,uCAAqB,CAAA;IACrB,uCAAqB,CAAA;IACrB,uCAAqB,CAAA;AACvB,CAAC,EAhBW,cAAc,8BAAd,cAAc,QAgBzB"}
|
package/dist/main/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "2.81.1";
|
|
1
|
+
export declare const version = "2.81.2-canary.1";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,OAAO,oBAAoB,CAAA"}
|
package/dist/main/version.js
CHANGED
|
@@ -7,5 +7,5 @@ exports.version = void 0;
|
|
|
7
7
|
// - Debugging and support (identifying which version is running)
|
|
8
8
|
// - Telemetry and logging (version reporting in errors/analytics)
|
|
9
9
|
// - Ensuring build artifacts match the published package version
|
|
10
|
-
exports.version = '2.81.1';
|
|
10
|
+
exports.version = '2.81.2-canary.1';
|
|
11
11
|
//# sourceMappingURL=version.js.map
|
package/dist/main/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":";;;AAAA,6EAA6E;AAC7E,gEAAgE;AAChE,uEAAuE;AACvE,iEAAiE;AACjE,kEAAkE;AAClE,iEAAiE;AACpD,QAAA,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":";;;AAAA,6EAA6E;AAC7E,gEAAgE;AAChE,uEAAuE;AACvE,iEAAiE;AACjE,kEAAkE;AAClE,iEAAiE;AACpD,QAAA,OAAO,GAAG,iBAAiB,CAAA"}
|
|
@@ -1,9 +1,25 @@
|
|
|
1
1
|
import { Fetch, FunctionInvokeOptions, FunctionRegion, FunctionsResponse } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Client for invoking Supabase Edge Functions.
|
|
4
|
+
*/
|
|
2
5
|
export declare class FunctionsClient {
|
|
3
6
|
protected url: string;
|
|
4
7
|
protected headers: Record<string, string>;
|
|
5
8
|
protected region: FunctionRegion;
|
|
6
9
|
protected fetch: Fetch;
|
|
10
|
+
/**
|
|
11
|
+
* Creates a new Functions client bound to an Edge Functions URL.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* import { FunctionsClient, FunctionRegion } from '@supabase/functions-js'
|
|
16
|
+
*
|
|
17
|
+
* const functions = new FunctionsClient('https://xyzcompany.supabase.co/functions/v1', {
|
|
18
|
+
* headers: { apikey: 'public-anon-key' },
|
|
19
|
+
* region: FunctionRegion.UsEast1,
|
|
20
|
+
* })
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
7
23
|
constructor(url: string, { headers, customFetch, region, }?: {
|
|
8
24
|
headers?: Record<string, string>;
|
|
9
25
|
customFetch?: Fetch;
|
|
@@ -12,12 +28,22 @@ export declare class FunctionsClient {
|
|
|
12
28
|
/**
|
|
13
29
|
* Updates the authorization header
|
|
14
30
|
* @param token - the new jwt token sent in the authorisation header
|
|
31
|
+
* @example
|
|
32
|
+
* ```ts
|
|
33
|
+
* functions.setAuth(session.access_token)
|
|
34
|
+
* ```
|
|
15
35
|
*/
|
|
16
36
|
setAuth(token: string): void;
|
|
17
37
|
/**
|
|
18
38
|
* Invokes a function
|
|
19
39
|
* @param functionName - The name of the Function to invoke.
|
|
20
40
|
* @param options - Options for invoking the Function.
|
|
41
|
+
* @example
|
|
42
|
+
* ```ts
|
|
43
|
+
* const { data, error } = await functions.invoke('hello-world', {
|
|
44
|
+
* body: { name: 'Ada' },
|
|
45
|
+
* })
|
|
46
|
+
* ```
|
|
21
47
|
*/
|
|
22
48
|
invoke<T = any>(functionName: string, options?: FunctionInvokeOptions): Promise<FunctionsResponse<T>>;
|
|
23
49
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FunctionsClient.d.ts","sourceRoot":"","sources":["../../src/FunctionsClient.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,EACL,qBAAqB,EACrB,cAAc,EAId,iBAAiB,EAClB,MAAM,SAAS,CAAA;AAEhB,qBAAa,eAAe;IAC1B,SAAS,CAAC,GAAG,EAAE,MAAM,CAAA;IACrB,SAAS,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACzC,SAAS,CAAC,MAAM,EAAE,cAAc,CAAA;IAChC,SAAS,CAAC,KAAK,EAAE,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"FunctionsClient.d.ts","sourceRoot":"","sources":["../../src/FunctionsClient.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,EACL,qBAAqB,EACrB,cAAc,EAId,iBAAiB,EAClB,MAAM,SAAS,CAAA;AAEhB;;GAEG;AACH,qBAAa,eAAe;IAC1B,SAAS,CAAC,GAAG,EAAE,MAAM,CAAA;IACrB,SAAS,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACzC,SAAS,CAAC,MAAM,EAAE,cAAc,CAAA;IAChC,SAAS,CAAC,KAAK,EAAE,KAAK,CAAA;IAEtB;;;;;;;;;;;;OAYG;gBAED,GAAG,EAAE,MAAM,EACX,EACE,OAAY,EACZ,WAAW,EACX,MAA2B,GAC5B,GAAE;QACD,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;QAChC,WAAW,CAAC,EAAE,KAAK,CAAA;QACnB,MAAM,CAAC,EAAE,cAAc,CAAA;KACnB;IAQR;;;;;;;OAOG;IACH,OAAO,CAAC,KAAK,EAAE,MAAM;IAIrB;;;;;;;;;;OAUG;IACG,MAAM,CAAC,CAAC,GAAG,GAAG,EAClB,YAAY,EAAE,MAAM,EACpB,OAAO,GAAE,qBAA0B,GAClC,OAAO,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC;CAyHjC"}
|
|
@@ -1,7 +1,23 @@
|
|
|
1
1
|
import { __awaiter } from "tslib";
|
|
2
2
|
import { resolveFetch } from './helper';
|
|
3
3
|
import { FunctionRegion, FunctionsFetchError, FunctionsHttpError, FunctionsRelayError, } from './types';
|
|
4
|
+
/**
|
|
5
|
+
* Client for invoking Supabase Edge Functions.
|
|
6
|
+
*/
|
|
4
7
|
export class FunctionsClient {
|
|
8
|
+
/**
|
|
9
|
+
* Creates a new Functions client bound to an Edge Functions URL.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* import { FunctionsClient, FunctionRegion } from '@supabase/functions-js'
|
|
14
|
+
*
|
|
15
|
+
* const functions = new FunctionsClient('https://xyzcompany.supabase.co/functions/v1', {
|
|
16
|
+
* headers: { apikey: 'public-anon-key' },
|
|
17
|
+
* region: FunctionRegion.UsEast1,
|
|
18
|
+
* })
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
5
21
|
constructor(url, { headers = {}, customFetch, region = FunctionRegion.Any, } = {}) {
|
|
6
22
|
this.url = url;
|
|
7
23
|
this.headers = headers;
|
|
@@ -11,6 +27,10 @@ export class FunctionsClient {
|
|
|
11
27
|
/**
|
|
12
28
|
* Updates the authorization header
|
|
13
29
|
* @param token - the new jwt token sent in the authorisation header
|
|
30
|
+
* @example
|
|
31
|
+
* ```ts
|
|
32
|
+
* functions.setAuth(session.access_token)
|
|
33
|
+
* ```
|
|
14
34
|
*/
|
|
15
35
|
setAuth(token) {
|
|
16
36
|
this.headers.Authorization = `Bearer ${token}`;
|
|
@@ -19,6 +39,12 @@ export class FunctionsClient {
|
|
|
19
39
|
* Invokes a function
|
|
20
40
|
* @param functionName - The name of the Function to invoke.
|
|
21
41
|
* @param options - Options for invoking the Function.
|
|
42
|
+
* @example
|
|
43
|
+
* ```ts
|
|
44
|
+
* const { data, error } = await functions.invoke('hello-world', {
|
|
45
|
+
* body: { name: 'Ada' },
|
|
46
|
+
* })
|
|
47
|
+
* ```
|
|
22
48
|
*/
|
|
23
49
|
invoke(functionName_1) {
|
|
24
50
|
return __awaiter(this, arguments, void 0, function* (functionName, options = {}) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FunctionsClient.js","sourceRoot":"","sources":["../../src/FunctionsClient.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AACvC,OAA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AI,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAA;YACxC,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,OAAO;oBACL,IAAI,EAAE,IAAI;oBACV,KAAK;oBACL,QAAQ,EACN,KAAK,YAAY,kBAAkB,IAAI,KAAK,YAAY,mBAAmB;wBACzE,CAAC,CAAC,KAAK,CAAC,OAAO;wBACf,CAAC,CAAC,SAAS;iBAChB,CAAA;YACH,CAAC;oBAAS,CAAC;gBACT,kCAAkC;gBAClC,IAAI,SAAS,EAAE,CAAC;oBACd,YAAY,CAAC,SAAS,CAAC,CAAA;gBACzB,CAAC;YACH,CAAC;QACH,CAAC;KAAA;CACF"}
|
package/dist/module/types.d.ts
CHANGED
|
@@ -13,16 +13,58 @@ export interface FunctionsResponseFailure {
|
|
|
13
13
|
response?: Response;
|
|
14
14
|
}
|
|
15
15
|
export type FunctionsResponse<T> = FunctionsResponseSuccess<T> | FunctionsResponseFailure;
|
|
16
|
+
/**
|
|
17
|
+
* Base error for Supabase Edge Function invocations.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```ts
|
|
21
|
+
* import { FunctionsError } from '@supabase/functions-js'
|
|
22
|
+
*
|
|
23
|
+
* throw new FunctionsError('Unexpected error invoking function', 'FunctionsError', {
|
|
24
|
+
* requestId: 'abc123',
|
|
25
|
+
* })
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
16
28
|
export declare class FunctionsError extends Error {
|
|
17
29
|
context: any;
|
|
18
30
|
constructor(message: string, name?: string, context?: any);
|
|
19
31
|
}
|
|
32
|
+
/**
|
|
33
|
+
* Error thrown when the network request to an Edge Function fails.
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```ts
|
|
37
|
+
* import { FunctionsFetchError } from '@supabase/functions-js'
|
|
38
|
+
*
|
|
39
|
+
* throw new FunctionsFetchError({ requestId: 'abc123' })
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
20
42
|
export declare class FunctionsFetchError extends FunctionsError {
|
|
21
43
|
constructor(context: any);
|
|
22
44
|
}
|
|
45
|
+
/**
|
|
46
|
+
* Error thrown when the Supabase relay cannot reach the Edge Function.
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* ```ts
|
|
50
|
+
* import { FunctionsRelayError } from '@supabase/functions-js'
|
|
51
|
+
*
|
|
52
|
+
* throw new FunctionsRelayError({ region: 'us-east-1' })
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
23
55
|
export declare class FunctionsRelayError extends FunctionsError {
|
|
24
56
|
constructor(context: any);
|
|
25
57
|
}
|
|
58
|
+
/**
|
|
59
|
+
* Error thrown when the Edge Function returns a non-2xx status code.
|
|
60
|
+
*
|
|
61
|
+
* @example
|
|
62
|
+
* ```ts
|
|
63
|
+
* import { FunctionsHttpError } from '@supabase/functions-js'
|
|
64
|
+
*
|
|
65
|
+
* throw new FunctionsHttpError({ status: 500 })
|
|
66
|
+
* ```
|
|
67
|
+
*/
|
|
26
68
|
export declare class FunctionsHttpError extends FunctionsError {
|
|
27
69
|
constructor(context: any);
|
|
28
70
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,KAAK,GAAG,OAAO,KAAK,CAAA;AAEhC;;GAEG;AACH,MAAM,WAAW,wBAAwB,CAAC,CAAC;IACzC,IAAI,EAAE,CAAC,CAAA;IACP,KAAK,EAAE,IAAI,CAAA;IACX,QAAQ,CAAC,EAAE,QAAQ,CAAA;CACpB;AACD,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,IAAI,CAAA;IACV,KAAK,EAAE,GAAG,CAAA;IACV,QAAQ,CAAC,EAAE,QAAQ,CAAA;CACpB;AACD,MAAM,MAAM,iBAAiB,CAAC,CAAC,IAAI,wBAAwB,CAAC,CAAC,CAAC,GAAG,wBAAwB,CAAA;AAEzF,qBAA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;IAClC;;OAEG;IACH,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAA;IACnC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,KAAK,GAAG,OAAO,GAAG,QAAQ,CAAA;IACpD;;OAEG;IACH,MAAM,CAAC,EAAE,cAAc,CAAA;IACvB;;OAEG;IACH,IAAI,CAAC,EACD,IAAI,GACJ,IAAI,GACJ,WAAW,GACX,QAAQ,GACR,cAAc,CAAC,UAAU,CAAC,GAC1B,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GACnB,MAAM,CAAA;IACV;;SAEK;IACL,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB;;;SAGK;IACL,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,CAAA"}
|
package/dist/module/types.js
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Base error for Supabase Edge Function invocations.
|
|
3
|
+
*
|
|
4
|
+
* @example
|
|
5
|
+
* ```ts
|
|
6
|
+
* import { FunctionsError } from '@supabase/functions-js'
|
|
7
|
+
*
|
|
8
|
+
* throw new FunctionsError('Unexpected error invoking function', 'FunctionsError', {
|
|
9
|
+
* requestId: 'abc123',
|
|
10
|
+
* })
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
1
13
|
export class FunctionsError extends Error {
|
|
2
14
|
constructor(message, name = 'FunctionsError', context) {
|
|
3
15
|
super(message);
|
|
@@ -5,16 +17,46 @@ export class FunctionsError extends Error {
|
|
|
5
17
|
this.context = context;
|
|
6
18
|
}
|
|
7
19
|
}
|
|
20
|
+
/**
|
|
21
|
+
* Error thrown when the network request to an Edge Function fails.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```ts
|
|
25
|
+
* import { FunctionsFetchError } from '@supabase/functions-js'
|
|
26
|
+
*
|
|
27
|
+
* throw new FunctionsFetchError({ requestId: 'abc123' })
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
8
30
|
export class FunctionsFetchError extends FunctionsError {
|
|
9
31
|
constructor(context) {
|
|
10
32
|
super('Failed to send a request to the Edge Function', 'FunctionsFetchError', context);
|
|
11
33
|
}
|
|
12
34
|
}
|
|
35
|
+
/**
|
|
36
|
+
* Error thrown when the Supabase relay cannot reach the Edge Function.
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```ts
|
|
40
|
+
* import { FunctionsRelayError } from '@supabase/functions-js'
|
|
41
|
+
*
|
|
42
|
+
* throw new FunctionsRelayError({ region: 'us-east-1' })
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
13
45
|
export class FunctionsRelayError extends FunctionsError {
|
|
14
46
|
constructor(context) {
|
|
15
47
|
super('Relay Error invoking the Edge Function', 'FunctionsRelayError', context);
|
|
16
48
|
}
|
|
17
49
|
}
|
|
50
|
+
/**
|
|
51
|
+
* Error thrown when the Edge Function returns a non-2xx status code.
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* ```ts
|
|
55
|
+
* import { FunctionsHttpError } from '@supabase/functions-js'
|
|
56
|
+
*
|
|
57
|
+
* throw new FunctionsHttpError({ status: 500 })
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
18
60
|
export class FunctionsHttpError extends FunctionsError {
|
|
19
61
|
constructor(context) {
|
|
20
62
|
super('Edge Function returned a non-2xx status code', 'FunctionsHttpError', context);
|
package/dist/module/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAiBA,MAAM,OAAO,cAAe,SAAQ,KAAK;IAEvC,YAAY,OAAe,EAAE,IAAI,GAAG,gBAAgB,EAAE,OAAa;QACjE,KAAK,CAAC,OAAO,CAAC,CAAA;QACd,IAAI,CAAC,IAAI,GAAG,IAAI,CAAA;QAChB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;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,cAAc;IACrD,YAAY,OAAY;QACtB,KAAK,CAAC,+CAA+C,EAAE,qBAAqB,EAAE,OAAO,CAAC,CAAA;IACxF,CAAC;CACF;AAED;;;;;;;;;GASG;AACH,MAAM,OAAO,mBAAoB,SAAQ,cAAc;IACrD,YAAY,OAAY;QACtB,KAAK,CAAC,wCAAwC,EAAE,qBAAqB,EAAE,OAAO,CAAC,CAAA;IACjF,CAAC;CACF;AAED;;;;;;;;;GASG;AACH,MAAM,OAAO,kBAAmB,SAAQ,cAAc;IACpD,YAAY,OAAY;QACtB,KAAK,CAAC,8CAA8C,EAAE,oBAAoB,EAAE,OAAO,CAAC,CAAA;IACtF,CAAC;CACF;AACD,4CAA4C;AAC5C,MAAM,CAAN,IAAY,cAgBX;AAhBD,WAAY,cAAc;IACxB,6BAAW,CAAA;IACX,iDAA+B,CAAA;IAC/B,iDAA+B,CAAA;IAC/B,yCAAuB,CAAA;IACvB,iDAA+B,CAAA;IAC/B,iDAA+B,CAAA;IAC/B,6CAA2B,CAAA;IAC3B,6CAA2B,CAAA;IAC3B,uCAAqB,CAAA;IACrB,uCAAqB,CAAA;IACrB,uCAAqB,CAAA;IACrB,uCAAqB,CAAA;IACrB,uCAAqB,CAAA;IACrB,uCAAqB,CAAA;IACrB,uCAAqB,CAAA;AACvB,CAAC,EAhBW,cAAc,KAAd,cAAc,QAgBzB"}
|
package/dist/module/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "2.81.1";
|
|
1
|
+
export declare const version = "2.81.2-canary.1";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,OAAO,oBAAoB,CAAA"}
|
package/dist/module/version.js
CHANGED
|
@@ -4,5 +4,5 @@
|
|
|
4
4
|
// - Debugging and support (identifying which version is running)
|
|
5
5
|
// - Telemetry and logging (version reporting in errors/analytics)
|
|
6
6
|
// - Ensuring build artifacts match the published package version
|
|
7
|
-
export const version = '2.81.1';
|
|
7
|
+
export const version = '2.81.2-canary.1';
|
|
8
8
|
//# sourceMappingURL=version.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,gEAAgE;AAChE,uEAAuE;AACvE,iEAAiE;AACjE,kEAAkE;AAClE,iEAAiE;AACjE,MAAM,CAAC,MAAM,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,gEAAgE;AAChE,uEAAuE;AACvE,iEAAiE;AACjE,kEAAkE;AAClE,iEAAiE;AACjE,MAAM,CAAC,MAAM,OAAO,GAAG,iBAAiB,CAAA"}
|