@noresponse/node 7.1.5 → 7.1.6
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/CHANGELOG.md +8 -0
- package/dist/commonjs/funcs/integrations-create.d.ts +1 -1
- package/dist/commonjs/funcs/integrations-create.js +1 -1
- package/dist/commonjs/funcs/integrations-rotate.d.ts +1 -1
- package/dist/commonjs/funcs/integrations-rotate.js +1 -1
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/models/integration-platform.d.ts +1 -0
- package/dist/commonjs/models/integration-platform.d.ts.map +1 -1
- package/dist/commonjs/models/integration-platform.js +1 -0
- package/dist/commonjs/models/integration-platform.js.map +1 -1
- package/dist/commonjs/models/integration-request.d.ts +3 -3
- package/dist/commonjs/models/integration-rotation-request.d.ts +2 -2
- package/dist/commonjs/sdk/integrations.d.ts +2 -2
- package/dist/commonjs/sdk/integrations.js +2 -2
- package/dist/esm/funcs/integrations-create.d.ts +1 -1
- package/dist/esm/funcs/integrations-create.js +1 -1
- package/dist/esm/funcs/integrations-rotate.d.ts +1 -1
- package/dist/esm/funcs/integrations-rotate.js +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/models/integration-platform.d.ts +1 -0
- package/dist/esm/models/integration-platform.d.ts.map +1 -1
- package/dist/esm/models/integration-platform.js +1 -0
- package/dist/esm/models/integration-platform.js.map +1 -1
- package/dist/esm/models/integration-request.d.ts +3 -3
- package/dist/esm/models/integration-rotation-request.d.ts +2 -2
- package/dist/esm/sdk/integrations.d.ts +2 -2
- package/dist/esm/sdk/integrations.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 7.1.6
|
|
4
|
+
|
|
5
|
+
* `sdk.integrations.create()`:
|
|
6
|
+
* `request.platform.enum(supabase)` **Added**
|
|
7
|
+
* `response.platform.enum(supabase)` **Added**
|
|
8
|
+
* `sdk.integrations.list()`: `response.items[].platform.enum(supabase)` **Added**
|
|
9
|
+
* `sdk.integrations.rotate()`: `response.platform.enum(supabase)` **Added**
|
|
10
|
+
|
|
3
11
|
## 7.1.5
|
|
4
12
|
|
|
5
13
|
* `sdk.assessments.create()`: `response.account.risk.reasons[].code` **Changed**
|
|
@@ -13,7 +13,7 @@ import { Result } from "../types/fp.js";
|
|
|
13
13
|
* Register a hosted provider integration.
|
|
14
14
|
*
|
|
15
15
|
* @remarks
|
|
16
|
-
* Registers a WorkOS or
|
|
16
|
+
* Registers a WorkOS, Auth0 or Supabase integration and returns its hosted endpoint, url, so a sign-up or sign-in is scored with no server of your own. For WorkOS, send the Actions signing secret from the WorkOS dashboard and point the user registration and authentication Actions at url. For Supabase, send the hook secret Supabase generates (v1,whsec_...) and set url as the Before User Created hook's HTTPS endpoint. For Auth0, the answer's secret is the shared secret of the NoResponse Auth0 Action, shown once: store it as an Action secret. hook_points defaults to every hook point the platform has (Supabase has only pre_registration); an event that is not listed is allowed without an assessment. The endpoint waits for the full assessment for at most 2.5 seconds (WorkOS, Supabase) or 4.5 seconds (Auth0), denies only when risk.block is true and allows on any failure. Requires the integrations scope; at most 10 per account. Not idempotent: a retry after a lost answer registers another integration.
|
|
17
17
|
*/
|
|
18
18
|
export declare function integrationsCreate(client: NoResponseCore, request: models.IntegrationRequest, options?: RequestOptions): APIPromise<Result<operations.CreateIntegrationResponse, errors.BadRequestError | errors.AuthenticationError | errors.PermissionDeniedError | errors.NotFoundError | errors.ConflictError | errors.RateLimitError | NoResponseError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
19
19
|
//# sourceMappingURL=integrations-create.d.ts.map
|
|
@@ -50,7 +50,7 @@ const async_js_1 = require("../types/async.js");
|
|
|
50
50
|
* Register a hosted provider integration.
|
|
51
51
|
*
|
|
52
52
|
* @remarks
|
|
53
|
-
* Registers a WorkOS or
|
|
53
|
+
* Registers a WorkOS, Auth0 or Supabase integration and returns its hosted endpoint, url, so a sign-up or sign-in is scored with no server of your own. For WorkOS, send the Actions signing secret from the WorkOS dashboard and point the user registration and authentication Actions at url. For Supabase, send the hook secret Supabase generates (v1,whsec_...) and set url as the Before User Created hook's HTTPS endpoint. For Auth0, the answer's secret is the shared secret of the NoResponse Auth0 Action, shown once: store it as an Action secret. hook_points defaults to every hook point the platform has (Supabase has only pre_registration); an event that is not listed is allowed without an assessment. The endpoint waits for the full assessment for at most 2.5 seconds (WorkOS, Supabase) or 4.5 seconds (Auth0), denies only when risk.block is true and allows on any failure. Requires the integrations scope; at most 10 per account. Not idempotent: a retry after a lost answer registers another integration.
|
|
54
54
|
*/
|
|
55
55
|
function integrationsCreate(client, request, options) {
|
|
56
56
|
return new async_js_1.APIPromise($do(client, request, options));
|
|
@@ -12,7 +12,7 @@ import { Result } from "../types/fp.js";
|
|
|
12
12
|
* Replace an integration's secret.
|
|
13
13
|
*
|
|
14
14
|
* @remarks
|
|
15
|
-
* For Auth0, send {} and the answer's secret is the new shared secret, shown once. For WorkOS, regenerate the Actions secret in the WorkOS dashboard and send it as signing_secret. The replaced secret is still accepted for 24 hours (previous_secret_expires_at). Requires the integrations scope. Not idempotent: a retry after a lost answer rotates again.
|
|
15
|
+
* For Auth0, send {} and the answer's secret is the new shared secret, shown once. For WorkOS, regenerate the Actions secret in the WorkOS dashboard and send it as signing_secret; for Supabase, generate a new hook secret in the Supabase dashboard and send it as signing_secret. The replaced secret is still accepted for 24 hours (previous_secret_expires_at). Requires the integrations scope. Not idempotent: a retry after a lost answer rotates again.
|
|
16
16
|
*/
|
|
17
17
|
export declare function integrationsRotate(client: NoResponseCore, request: operations.RotateIntegrationSecretRequest, options?: RequestOptions): APIPromise<Result<operations.RotateIntegrationSecretResponse, errors.BadRequestError | errors.AuthenticationError | errors.PermissionDeniedError | errors.NotFoundError | errors.ConflictError | errors.RateLimitError | NoResponseError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
18
18
|
//# sourceMappingURL=integrations-rotate.d.ts.map
|
|
@@ -49,7 +49,7 @@ const async_js_1 = require("../types/async.js");
|
|
|
49
49
|
* Replace an integration's secret.
|
|
50
50
|
*
|
|
51
51
|
* @remarks
|
|
52
|
-
* For Auth0, send {} and the answer's secret is the new shared secret, shown once. For WorkOS, regenerate the Actions secret in the WorkOS dashboard and send it as signing_secret. The replaced secret is still accepted for 24 hours (previous_secret_expires_at). Requires the integrations scope. Not idempotent: a retry after a lost answer rotates again.
|
|
52
|
+
* For Auth0, send {} and the answer's secret is the new shared secret, shown once. For WorkOS, regenerate the Actions secret in the WorkOS dashboard and send it as signing_secret; for Supabase, generate a new hook secret in the Supabase dashboard and send it as signing_secret. The replaced secret is still accepted for 24 hours (previous_secret_expires_at). Requires the integrations scope. Not idempotent: a retry after a lost answer rotates again.
|
|
53
53
|
*/
|
|
54
54
|
function integrationsRotate(client, request, options) {
|
|
55
55
|
return new async_js_1.APIPromise($do(client, request, options));
|
|
@@ -31,8 +31,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
31
31
|
export declare const SDK_METADATA: {
|
|
32
32
|
readonly language: "typescript";
|
|
33
33
|
readonly openapiDocVersion: "1";
|
|
34
|
-
readonly sdkVersion: "7.1.
|
|
34
|
+
readonly sdkVersion: "7.1.6";
|
|
35
35
|
readonly genVersion: "internal";
|
|
36
|
-
readonly userAgent: "noresponse-sdk/typescript 7.1.
|
|
36
|
+
readonly userAgent: "noresponse-sdk/typescript 7.1.6 internal 1 @noresponse/node";
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=config.d.ts.map
|
|
@@ -28,8 +28,8 @@ function serverURLFromOptions(options) {
|
|
|
28
28
|
exports.SDK_METADATA = {
|
|
29
29
|
language: "typescript",
|
|
30
30
|
openapiDocVersion: "1",
|
|
31
|
-
sdkVersion: "7.1.
|
|
31
|
+
sdkVersion: "7.1.6",
|
|
32
32
|
genVersion: "internal",
|
|
33
|
-
userAgent: "noresponse-sdk/typescript 7.1.
|
|
33
|
+
userAgent: "noresponse-sdk/typescript 7.1.6 internal 1 @noresponse/node",
|
|
34
34
|
};
|
|
35
35
|
//# sourceMappingURL=config.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integration-platform.d.ts","sourceRoot":"","sources":["../../../src/models/integration-platform.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C;;GAEG;AACH,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"integration-platform.d.ts","sourceRoot":"","sources":["../../../src/models/integration-platform.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;CAItB,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,QAAQ,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEvE,gBAAgB;AAChB,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,WAAW,CAC3D,mBAAmB,EACnB,OAAO,CACuC,CAAC;AACjD,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,WAAW,CAC5D,MAAM,EACN,mBAAmB,CAC4B,CAAC"}
|
|
@@ -41,6 +41,7 @@ const openEnums = __importStar(require("../types/enums.js"));
|
|
|
41
41
|
exports.IntegrationPlatform = {
|
|
42
42
|
Workos: "workos",
|
|
43
43
|
Auth0: "auth0",
|
|
44
|
+
Supabase: "supabase",
|
|
44
45
|
};
|
|
45
46
|
/** @internal */
|
|
46
47
|
exports.IntegrationPlatform$inboundSchema = openEnums.inboundSchema(exports.IntegrationPlatform);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integration-platform.js","sourceRoot":"","sources":["../../../src/models/integration-platform.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,MAAY,SAAS,8CAA0B;AAG/C;;GAEG;AACU,QAAA,mBAAmB,GAAG;IACjC,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,OAAO;
|
|
1
|
+
{"version":3,"file":"integration-platform.js","sourceRoot":"","sources":["../../../src/models/integration-platform.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,MAAY,SAAS,8CAA0B;AAG/C;;GAEG;AACU,QAAA,mBAAmB,GAAG;IACjC,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,OAAO;IACd,QAAQ,EAAE,UAAU;CACZ,CAAC;AAMX,gBAAgB;AACH,QAAA,iCAAiC,GAG1C,SAAS,CAAC,aAAa,CAAC,QAAA,mBAAmB,CAAC,CAAC;AACjD,gBAAgB;AACH,QAAA,kCAAkC,GAG3C,SAAS,CAAC,cAAc,CAAC,QAAA,mBAAmB,CAAC,CAAC"}
|
|
@@ -2,7 +2,7 @@ import * as z from "zod/v4-mini";
|
|
|
2
2
|
import { IntegrationHookPoint } from "./integration-hook-point.js";
|
|
3
3
|
import { IntegrationPlatform } from "./integration-platform.js";
|
|
4
4
|
/**
|
|
5
|
-
* POST /v1/integrations body. Registers a hosted endpoint for one authentication provider. The workspace is the API key that signs the request, so the body has no workspace field and refuses one like any other unknown member. A WorkOS integration needs signing_secret, the Actions secret shown in the WorkOS dashboard, which NoResponse uses to verify each Action request and to sign its answer. An Auth0 integration sends no signing_secret: NoResponse generates the shared secret and returns it once.
|
|
5
|
+
* POST /v1/integrations body. Registers a hosted endpoint for one authentication provider. The workspace is the API key that signs the request, so the body has no workspace field and refuses one like any other unknown member. A WorkOS integration needs signing_secret, the Actions secret shown in the WorkOS dashboard, which NoResponse uses to verify each Action request and to sign its answer. A Supabase integration needs signing_secret, the hook secret Supabase generates for a Before User Created HTTPS hook (v1,whsec_ and base64), which NoResponse uses to verify each call. An Auth0 integration sends no signing_secret: NoResponse generates the shared secret and returns it once.
|
|
6
6
|
*/
|
|
7
7
|
export type IntegrationRequest = {
|
|
8
8
|
/**
|
|
@@ -10,11 +10,11 @@ export type IntegrationRequest = {
|
|
|
10
10
|
*/
|
|
11
11
|
platform: IntegrationPlatform;
|
|
12
12
|
/**
|
|
13
|
-
* The provider events the endpoint scores. Default
|
|
13
|
+
* The provider events the endpoint scores. Default every hook point the platform has: pre_registration (WorkOS user registration Action, Auth0 pre-user-registration trigger, Supabase Before User Created hook) and post_login (WorkOS authentication Action, Auth0 post-login trigger). Supabase has only pre_registration, so a Supabase integration that lists post_login is refused. An event that is not listed is answered allow without an assessment.
|
|
14
14
|
*/
|
|
15
15
|
hookPoints?: Array<IntegrationHookPoint> | undefined;
|
|
16
16
|
/**
|
|
17
|
-
* The WorkOS Actions signing secret, as the
|
|
17
|
+
* The WorkOS Actions signing secret or the Supabase hook secret, as the provider's dashboard shows it: 16 to 256 printable ASCII characters with no spaces. It is stored sealed and is not returned.
|
|
18
18
|
*/
|
|
19
19
|
signingSecret?: string | undefined;
|
|
20
20
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as z from "zod/v4-mini";
|
|
2
2
|
/**
|
|
3
|
-
* POST /v1/integrations/{integration_id}/rotate body. For an Auth0 integration send {}: NoResponse generates a new shared secret and returns it once. For a WorkOS integration send the new signing_secret after regenerating it in the
|
|
3
|
+
* POST /v1/integrations/{integration_id}/rotate body. For an Auth0 integration send {}: NoResponse generates a new shared secret and returns it once. For a WorkOS or Supabase integration send the new signing_secret after regenerating it in the provider's dashboard. Either way the previous secret is still accepted for 24 hours, so the provider can be switched over without a refused call.
|
|
4
4
|
*/
|
|
5
5
|
export type IntegrationRotationRequest = {
|
|
6
6
|
/**
|
|
7
|
-
* The WorkOS Actions signing secret, as the
|
|
7
|
+
* The WorkOS Actions signing secret or the Supabase hook secret, as the provider's dashboard shows it: 16 to 256 printable ASCII characters with no spaces. It is stored sealed and is not returned.
|
|
8
8
|
*/
|
|
9
9
|
signingSecret?: string | undefined;
|
|
10
10
|
};
|
|
@@ -6,7 +6,7 @@ export declare class Integrations extends ClientSDK {
|
|
|
6
6
|
* Register a hosted provider integration.
|
|
7
7
|
*
|
|
8
8
|
* @remarks
|
|
9
|
-
* Registers a WorkOS or
|
|
9
|
+
* Registers a WorkOS, Auth0 or Supabase integration and returns its hosted endpoint, url, so a sign-up or sign-in is scored with no server of your own. For WorkOS, send the Actions signing secret from the WorkOS dashboard and point the user registration and authentication Actions at url. For Supabase, send the hook secret Supabase generates (v1,whsec_...) and set url as the Before User Created hook's HTTPS endpoint. For Auth0, the answer's secret is the shared secret of the NoResponse Auth0 Action, shown once: store it as an Action secret. hook_points defaults to every hook point the platform has (Supabase has only pre_registration); an event that is not listed is allowed without an assessment. The endpoint waits for the full assessment for at most 2.5 seconds (WorkOS, Supabase) or 4.5 seconds (Auth0), denies only when risk.block is true and allows on any failure. Requires the integrations scope; at most 10 per account. Not idempotent: a retry after a lost answer registers another integration.
|
|
10
10
|
*/
|
|
11
11
|
create(request: models.IntegrationRequest, options?: RequestOptions): Promise<operations.CreateIntegrationResponse>;
|
|
12
12
|
/**
|
|
@@ -27,7 +27,7 @@ export declare class Integrations extends ClientSDK {
|
|
|
27
27
|
* Replace an integration's secret.
|
|
28
28
|
*
|
|
29
29
|
* @remarks
|
|
30
|
-
* For Auth0, send {} and the answer's secret is the new shared secret, shown once. For WorkOS, regenerate the Actions secret in the WorkOS dashboard and send it as signing_secret. The replaced secret is still accepted for 24 hours (previous_secret_expires_at). Requires the integrations scope. Not idempotent: a retry after a lost answer rotates again.
|
|
30
|
+
* For Auth0, send {} and the answer's secret is the new shared secret, shown once. For WorkOS, regenerate the Actions secret in the WorkOS dashboard and send it as signing_secret; for Supabase, generate a new hook secret in the Supabase dashboard and send it as signing_secret. The replaced secret is still accepted for 24 hours (previous_secret_expires_at). Requires the integrations scope. Not idempotent: a retry after a lost answer rotates again.
|
|
31
31
|
*/
|
|
32
32
|
rotate(request: operations.RotateIntegrationSecretRequest, options?: RequestOptions): Promise<operations.RotateIntegrationSecretResponse>;
|
|
33
33
|
}
|
|
@@ -12,7 +12,7 @@ class Integrations extends sdks_js_1.ClientSDK {
|
|
|
12
12
|
* Register a hosted provider integration.
|
|
13
13
|
*
|
|
14
14
|
* @remarks
|
|
15
|
-
* Registers a WorkOS or
|
|
15
|
+
* Registers a WorkOS, Auth0 or Supabase integration and returns its hosted endpoint, url, so a sign-up or sign-in is scored with no server of your own. For WorkOS, send the Actions signing secret from the WorkOS dashboard and point the user registration and authentication Actions at url. For Supabase, send the hook secret Supabase generates (v1,whsec_...) and set url as the Before User Created hook's HTTPS endpoint. For Auth0, the answer's secret is the shared secret of the NoResponse Auth0 Action, shown once: store it as an Action secret. hook_points defaults to every hook point the platform has (Supabase has only pre_registration); an event that is not listed is allowed without an assessment. The endpoint waits for the full assessment for at most 2.5 seconds (WorkOS, Supabase) or 4.5 seconds (Auth0), denies only when risk.block is true and allows on any failure. Requires the integrations scope; at most 10 per account. Not idempotent: a retry after a lost answer registers another integration.
|
|
16
16
|
*/
|
|
17
17
|
async create(request, options) {
|
|
18
18
|
return (0, fp_js_1.unwrapAsync)((0, integrations_create_js_1.integrationsCreate)(this, request, options));
|
|
@@ -39,7 +39,7 @@ class Integrations extends sdks_js_1.ClientSDK {
|
|
|
39
39
|
* Replace an integration's secret.
|
|
40
40
|
*
|
|
41
41
|
* @remarks
|
|
42
|
-
* For Auth0, send {} and the answer's secret is the new shared secret, shown once. For WorkOS, regenerate the Actions secret in the WorkOS dashboard and send it as signing_secret. The replaced secret is still accepted for 24 hours (previous_secret_expires_at). Requires the integrations scope. Not idempotent: a retry after a lost answer rotates again.
|
|
42
|
+
* For Auth0, send {} and the answer's secret is the new shared secret, shown once. For WorkOS, regenerate the Actions secret in the WorkOS dashboard and send it as signing_secret; for Supabase, generate a new hook secret in the Supabase dashboard and send it as signing_secret. The replaced secret is still accepted for 24 hours (previous_secret_expires_at). Requires the integrations scope. Not idempotent: a retry after a lost answer rotates again.
|
|
43
43
|
*/
|
|
44
44
|
async rotate(request, options) {
|
|
45
45
|
return (0, fp_js_1.unwrapAsync)((0, integrations_rotate_js_1.integrationsRotate)(this, request, options));
|
|
@@ -13,7 +13,7 @@ import { Result } from "../types/fp.js";
|
|
|
13
13
|
* Register a hosted provider integration.
|
|
14
14
|
*
|
|
15
15
|
* @remarks
|
|
16
|
-
* Registers a WorkOS or
|
|
16
|
+
* Registers a WorkOS, Auth0 or Supabase integration and returns its hosted endpoint, url, so a sign-up or sign-in is scored with no server of your own. For WorkOS, send the Actions signing secret from the WorkOS dashboard and point the user registration and authentication Actions at url. For Supabase, send the hook secret Supabase generates (v1,whsec_...) and set url as the Before User Created hook's HTTPS endpoint. For Auth0, the answer's secret is the shared secret of the NoResponse Auth0 Action, shown once: store it as an Action secret. hook_points defaults to every hook point the platform has (Supabase has only pre_registration); an event that is not listed is allowed without an assessment. The endpoint waits for the full assessment for at most 2.5 seconds (WorkOS, Supabase) or 4.5 seconds (Auth0), denies only when risk.block is true and allows on any failure. Requires the integrations scope; at most 10 per account. Not idempotent: a retry after a lost answer registers another integration.
|
|
17
17
|
*/
|
|
18
18
|
export declare function integrationsCreate(client: NoResponseCore, request: models.IntegrationRequest, options?: RequestOptions): APIPromise<Result<operations.CreateIntegrationResponse, errors.BadRequestError | errors.AuthenticationError | errors.PermissionDeniedError | errors.NotFoundError | errors.ConflictError | errors.RateLimitError | NoResponseError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
19
19
|
//# sourceMappingURL=integrations-create.d.ts.map
|
|
@@ -14,7 +14,7 @@ import { APIPromise } from "../types/async.js";
|
|
|
14
14
|
* Register a hosted provider integration.
|
|
15
15
|
*
|
|
16
16
|
* @remarks
|
|
17
|
-
* Registers a WorkOS or
|
|
17
|
+
* Registers a WorkOS, Auth0 or Supabase integration and returns its hosted endpoint, url, so a sign-up or sign-in is scored with no server of your own. For WorkOS, send the Actions signing secret from the WorkOS dashboard and point the user registration and authentication Actions at url. For Supabase, send the hook secret Supabase generates (v1,whsec_...) and set url as the Before User Created hook's HTTPS endpoint. For Auth0, the answer's secret is the shared secret of the NoResponse Auth0 Action, shown once: store it as an Action secret. hook_points defaults to every hook point the platform has (Supabase has only pre_registration); an event that is not listed is allowed without an assessment. The endpoint waits for the full assessment for at most 2.5 seconds (WorkOS, Supabase) or 4.5 seconds (Auth0), denies only when risk.block is true and allows on any failure. Requires the integrations scope; at most 10 per account. Not idempotent: a retry after a lost answer registers another integration.
|
|
18
18
|
*/
|
|
19
19
|
export function integrationsCreate(client, request, options) {
|
|
20
20
|
return new APIPromise($do(client, request, options));
|
|
@@ -12,7 +12,7 @@ import { Result } from "../types/fp.js";
|
|
|
12
12
|
* Replace an integration's secret.
|
|
13
13
|
*
|
|
14
14
|
* @remarks
|
|
15
|
-
* For Auth0, send {} and the answer's secret is the new shared secret, shown once. For WorkOS, regenerate the Actions secret in the WorkOS dashboard and send it as signing_secret. The replaced secret is still accepted for 24 hours (previous_secret_expires_at). Requires the integrations scope. Not idempotent: a retry after a lost answer rotates again.
|
|
15
|
+
* For Auth0, send {} and the answer's secret is the new shared secret, shown once. For WorkOS, regenerate the Actions secret in the WorkOS dashboard and send it as signing_secret; for Supabase, generate a new hook secret in the Supabase dashboard and send it as signing_secret. The replaced secret is still accepted for 24 hours (previous_secret_expires_at). Requires the integrations scope. Not idempotent: a retry after a lost answer rotates again.
|
|
16
16
|
*/
|
|
17
17
|
export declare function integrationsRotate(client: NoResponseCore, request: operations.RotateIntegrationSecretRequest, options?: RequestOptions): APIPromise<Result<operations.RotateIntegrationSecretResponse, errors.BadRequestError | errors.AuthenticationError | errors.PermissionDeniedError | errors.NotFoundError | errors.ConflictError | errors.RateLimitError | NoResponseError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
18
18
|
//# sourceMappingURL=integrations-rotate.d.ts.map
|
|
@@ -13,7 +13,7 @@ import { APIPromise } from "../types/async.js";
|
|
|
13
13
|
* Replace an integration's secret.
|
|
14
14
|
*
|
|
15
15
|
* @remarks
|
|
16
|
-
* For Auth0, send {} and the answer's secret is the new shared secret, shown once. For WorkOS, regenerate the Actions secret in the WorkOS dashboard and send it as signing_secret. The replaced secret is still accepted for 24 hours (previous_secret_expires_at). Requires the integrations scope. Not idempotent: a retry after a lost answer rotates again.
|
|
16
|
+
* For Auth0, send {} and the answer's secret is the new shared secret, shown once. For WorkOS, regenerate the Actions secret in the WorkOS dashboard and send it as signing_secret; for Supabase, generate a new hook secret in the Supabase dashboard and send it as signing_secret. The replaced secret is still accepted for 24 hours (previous_secret_expires_at). Requires the integrations scope. Not idempotent: a retry after a lost answer rotates again.
|
|
17
17
|
*/
|
|
18
18
|
export function integrationsRotate(client, request, options) {
|
|
19
19
|
return new APIPromise($do(client, request, options));
|
package/dist/esm/lib/config.d.ts
CHANGED
|
@@ -31,8 +31,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
31
31
|
export declare const SDK_METADATA: {
|
|
32
32
|
readonly language: "typescript";
|
|
33
33
|
readonly openapiDocVersion: "1";
|
|
34
|
-
readonly sdkVersion: "7.1.
|
|
34
|
+
readonly sdkVersion: "7.1.6";
|
|
35
35
|
readonly genVersion: "internal";
|
|
36
|
-
readonly userAgent: "noresponse-sdk/typescript 7.1.
|
|
36
|
+
readonly userAgent: "noresponse-sdk/typescript 7.1.6 internal 1 @noresponse/node";
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=config.d.ts.map
|
package/dist/esm/lib/config.js
CHANGED
|
@@ -24,8 +24,8 @@ export function serverURLFromOptions(options) {
|
|
|
24
24
|
export const SDK_METADATA = {
|
|
25
25
|
language: "typescript",
|
|
26
26
|
openapiDocVersion: "1",
|
|
27
|
-
sdkVersion: "7.1.
|
|
27
|
+
sdkVersion: "7.1.6",
|
|
28
28
|
genVersion: "internal",
|
|
29
|
-
userAgent: "noresponse-sdk/typescript 7.1.
|
|
29
|
+
userAgent: "noresponse-sdk/typescript 7.1.6 internal 1 @noresponse/node",
|
|
30
30
|
};
|
|
31
31
|
//# sourceMappingURL=config.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integration-platform.d.ts","sourceRoot":"","sources":["../../../src/models/integration-platform.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C;;GAEG;AACH,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"integration-platform.d.ts","sourceRoot":"","sources":["../../../src/models/integration-platform.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;CAItB,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,QAAQ,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEvE,gBAAgB;AAChB,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,WAAW,CAC3D,mBAAmB,EACnB,OAAO,CACuC,CAAC;AACjD,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,WAAW,CAC5D,MAAM,EACN,mBAAmB,CAC4B,CAAC"}
|
|
@@ -5,6 +5,7 @@ import * as openEnums from "../types/enums.js";
|
|
|
5
5
|
export const IntegrationPlatform = {
|
|
6
6
|
Workos: "workos",
|
|
7
7
|
Auth0: "auth0",
|
|
8
|
+
Supabase: "supabase",
|
|
8
9
|
};
|
|
9
10
|
/** @internal */
|
|
10
11
|
export const IntegrationPlatform$inboundSchema = openEnums.inboundSchema(IntegrationPlatform);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integration-platform.js","sourceRoot":"","sources":["../../../src/models/integration-platform.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,SAAS,MAAM,mBAAmB,CAAC;AAG/C;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,OAAO;
|
|
1
|
+
{"version":3,"file":"integration-platform.js","sourceRoot":"","sources":["../../../src/models/integration-platform.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,SAAS,MAAM,mBAAmB,CAAC;AAG/C;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,OAAO;IACd,QAAQ,EAAE,UAAU;CACZ,CAAC;AAMX,gBAAgB;AAChB,MAAM,CAAC,MAAM,iCAAiC,GAG1C,SAAS,CAAC,aAAa,CAAC,mBAAmB,CAAC,CAAC;AACjD,gBAAgB;AAChB,MAAM,CAAC,MAAM,kCAAkC,GAG3C,SAAS,CAAC,cAAc,CAAC,mBAAmB,CAAC,CAAC"}
|
|
@@ -2,7 +2,7 @@ import * as z from "zod/v4-mini";
|
|
|
2
2
|
import { IntegrationHookPoint } from "./integration-hook-point.js";
|
|
3
3
|
import { IntegrationPlatform } from "./integration-platform.js";
|
|
4
4
|
/**
|
|
5
|
-
* POST /v1/integrations body. Registers a hosted endpoint for one authentication provider. The workspace is the API key that signs the request, so the body has no workspace field and refuses one like any other unknown member. A WorkOS integration needs signing_secret, the Actions secret shown in the WorkOS dashboard, which NoResponse uses to verify each Action request and to sign its answer. An Auth0 integration sends no signing_secret: NoResponse generates the shared secret and returns it once.
|
|
5
|
+
* POST /v1/integrations body. Registers a hosted endpoint for one authentication provider. The workspace is the API key that signs the request, so the body has no workspace field and refuses one like any other unknown member. A WorkOS integration needs signing_secret, the Actions secret shown in the WorkOS dashboard, which NoResponse uses to verify each Action request and to sign its answer. A Supabase integration needs signing_secret, the hook secret Supabase generates for a Before User Created HTTPS hook (v1,whsec_ and base64), which NoResponse uses to verify each call. An Auth0 integration sends no signing_secret: NoResponse generates the shared secret and returns it once.
|
|
6
6
|
*/
|
|
7
7
|
export type IntegrationRequest = {
|
|
8
8
|
/**
|
|
@@ -10,11 +10,11 @@ export type IntegrationRequest = {
|
|
|
10
10
|
*/
|
|
11
11
|
platform: IntegrationPlatform;
|
|
12
12
|
/**
|
|
13
|
-
* The provider events the endpoint scores. Default
|
|
13
|
+
* The provider events the endpoint scores. Default every hook point the platform has: pre_registration (WorkOS user registration Action, Auth0 pre-user-registration trigger, Supabase Before User Created hook) and post_login (WorkOS authentication Action, Auth0 post-login trigger). Supabase has only pre_registration, so a Supabase integration that lists post_login is refused. An event that is not listed is answered allow without an assessment.
|
|
14
14
|
*/
|
|
15
15
|
hookPoints?: Array<IntegrationHookPoint> | undefined;
|
|
16
16
|
/**
|
|
17
|
-
* The WorkOS Actions signing secret, as the
|
|
17
|
+
* The WorkOS Actions signing secret or the Supabase hook secret, as the provider's dashboard shows it: 16 to 256 printable ASCII characters with no spaces. It is stored sealed and is not returned.
|
|
18
18
|
*/
|
|
19
19
|
signingSecret?: string | undefined;
|
|
20
20
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as z from "zod/v4-mini";
|
|
2
2
|
/**
|
|
3
|
-
* POST /v1/integrations/{integration_id}/rotate body. For an Auth0 integration send {}: NoResponse generates a new shared secret and returns it once. For a WorkOS integration send the new signing_secret after regenerating it in the
|
|
3
|
+
* POST /v1/integrations/{integration_id}/rotate body. For an Auth0 integration send {}: NoResponse generates a new shared secret and returns it once. For a WorkOS or Supabase integration send the new signing_secret after regenerating it in the provider's dashboard. Either way the previous secret is still accepted for 24 hours, so the provider can be switched over without a refused call.
|
|
4
4
|
*/
|
|
5
5
|
export type IntegrationRotationRequest = {
|
|
6
6
|
/**
|
|
7
|
-
* The WorkOS Actions signing secret, as the
|
|
7
|
+
* The WorkOS Actions signing secret or the Supabase hook secret, as the provider's dashboard shows it: 16 to 256 printable ASCII characters with no spaces. It is stored sealed and is not returned.
|
|
8
8
|
*/
|
|
9
9
|
signingSecret?: string | undefined;
|
|
10
10
|
};
|
|
@@ -6,7 +6,7 @@ export declare class Integrations extends ClientSDK {
|
|
|
6
6
|
* Register a hosted provider integration.
|
|
7
7
|
*
|
|
8
8
|
* @remarks
|
|
9
|
-
* Registers a WorkOS or
|
|
9
|
+
* Registers a WorkOS, Auth0 or Supabase integration and returns its hosted endpoint, url, so a sign-up or sign-in is scored with no server of your own. For WorkOS, send the Actions signing secret from the WorkOS dashboard and point the user registration and authentication Actions at url. For Supabase, send the hook secret Supabase generates (v1,whsec_...) and set url as the Before User Created hook's HTTPS endpoint. For Auth0, the answer's secret is the shared secret of the NoResponse Auth0 Action, shown once: store it as an Action secret. hook_points defaults to every hook point the platform has (Supabase has only pre_registration); an event that is not listed is allowed without an assessment. The endpoint waits for the full assessment for at most 2.5 seconds (WorkOS, Supabase) or 4.5 seconds (Auth0), denies only when risk.block is true and allows on any failure. Requires the integrations scope; at most 10 per account. Not idempotent: a retry after a lost answer registers another integration.
|
|
10
10
|
*/
|
|
11
11
|
create(request: models.IntegrationRequest, options?: RequestOptions): Promise<operations.CreateIntegrationResponse>;
|
|
12
12
|
/**
|
|
@@ -27,7 +27,7 @@ export declare class Integrations extends ClientSDK {
|
|
|
27
27
|
* Replace an integration's secret.
|
|
28
28
|
*
|
|
29
29
|
* @remarks
|
|
30
|
-
* For Auth0, send {} and the answer's secret is the new shared secret, shown once. For WorkOS, regenerate the Actions secret in the WorkOS dashboard and send it as signing_secret. The replaced secret is still accepted for 24 hours (previous_secret_expires_at). Requires the integrations scope. Not idempotent: a retry after a lost answer rotates again.
|
|
30
|
+
* For Auth0, send {} and the answer's secret is the new shared secret, shown once. For WorkOS, regenerate the Actions secret in the WorkOS dashboard and send it as signing_secret; for Supabase, generate a new hook secret in the Supabase dashboard and send it as signing_secret. The replaced secret is still accepted for 24 hours (previous_secret_expires_at). Requires the integrations scope. Not idempotent: a retry after a lost answer rotates again.
|
|
31
31
|
*/
|
|
32
32
|
rotate(request: operations.RotateIntegrationSecretRequest, options?: RequestOptions): Promise<operations.RotateIntegrationSecretResponse>;
|
|
33
33
|
}
|
|
@@ -9,7 +9,7 @@ export class Integrations extends ClientSDK {
|
|
|
9
9
|
* Register a hosted provider integration.
|
|
10
10
|
*
|
|
11
11
|
* @remarks
|
|
12
|
-
* Registers a WorkOS or
|
|
12
|
+
* Registers a WorkOS, Auth0 or Supabase integration and returns its hosted endpoint, url, so a sign-up or sign-in is scored with no server of your own. For WorkOS, send the Actions signing secret from the WorkOS dashboard and point the user registration and authentication Actions at url. For Supabase, send the hook secret Supabase generates (v1,whsec_...) and set url as the Before User Created hook's HTTPS endpoint. For Auth0, the answer's secret is the shared secret of the NoResponse Auth0 Action, shown once: store it as an Action secret. hook_points defaults to every hook point the platform has (Supabase has only pre_registration); an event that is not listed is allowed without an assessment. The endpoint waits for the full assessment for at most 2.5 seconds (WorkOS, Supabase) or 4.5 seconds (Auth0), denies only when risk.block is true and allows on any failure. Requires the integrations scope; at most 10 per account. Not idempotent: a retry after a lost answer registers another integration.
|
|
13
13
|
*/
|
|
14
14
|
async create(request, options) {
|
|
15
15
|
return unwrapAsync(integrationsCreate(this, request, options));
|
|
@@ -36,7 +36,7 @@ export class Integrations extends ClientSDK {
|
|
|
36
36
|
* Replace an integration's secret.
|
|
37
37
|
*
|
|
38
38
|
* @remarks
|
|
39
|
-
* For Auth0, send {} and the answer's secret is the new shared secret, shown once. For WorkOS, regenerate the Actions secret in the WorkOS dashboard and send it as signing_secret. The replaced secret is still accepted for 24 hours (previous_secret_expires_at). Requires the integrations scope. Not idempotent: a retry after a lost answer rotates again.
|
|
39
|
+
* For Auth0, send {} and the answer's secret is the new shared secret, shown once. For WorkOS, regenerate the Actions secret in the WorkOS dashboard and send it as signing_secret; for Supabase, generate a new hook secret in the Supabase dashboard and send it as signing_secret. The replaced secret is still accepted for 24 hours (previous_secret_expires_at). Requires the integrations scope. Not idempotent: a retry after a lost answer rotates again.
|
|
40
40
|
*/
|
|
41
41
|
async rotate(request, options) {
|
|
42
42
|
return unwrapAsync(integrationsRotate(this, request, options));
|