@noresponse/node 2.0.11 → 2.0.13
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 +22 -0
- package/README.md +26 -0
- package/dist/commonjs/client.d.ts +27 -0
- package/dist/commonjs/client.d.ts.map +1 -1
- package/dist/commonjs/client.js +39 -1
- package/dist/commonjs/client.js.map +1 -1
- package/dist/commonjs/funcs/assessments-create.d.ts +1 -1
- package/dist/commonjs/funcs/assessments-create.js +1 -1
- package/dist/commonjs/funcs/integrations-create.d.ts +19 -0
- package/dist/commonjs/funcs/integrations-create.d.ts.map +1 -0
- package/dist/commonjs/funcs/integrations-create.js +137 -0
- package/dist/commonjs/funcs/integrations-create.js.map +1 -0
- package/dist/commonjs/funcs/integrations-delete.d.ts +18 -0
- package/dist/commonjs/funcs/integrations-delete.d.ts.map +1 -0
- package/dist/commonjs/funcs/integrations-delete.js +151 -0
- package/dist/commonjs/funcs/integrations-delete.js.map +1 -0
- package/dist/commonjs/funcs/integrations-list.d.ts +18 -0
- package/dist/commonjs/funcs/integrations-list.d.ts.map +1 -0
- package/dist/commonjs/funcs/integrations-list.js +137 -0
- package/dist/commonjs/funcs/integrations-list.js.map +1 -0
- package/dist/commonjs/funcs/integrations-rotate.d.ts +18 -0
- package/dist/commonjs/funcs/integrations-rotate.d.ts.map +1 -0
- package/dist/commonjs/funcs/integrations-rotate.js +142 -0
- package/dist/commonjs/funcs/integrations-rotate.js.map +1 -0
- package/dist/commonjs/index.d.ts +2 -1
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/index.js +4 -1
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/issued-credential.d.ts +9 -0
- package/dist/commonjs/issued-credential.d.ts.map +1 -0
- package/dist/commonjs/issued-credential.js +18 -0
- package/dist/commonjs/issued-credential.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/models/assessment-request-issued-credential.d.ts +18 -0
- package/dist/commonjs/models/assessment-request-issued-credential.d.ts.map +1 -0
- package/dist/commonjs/models/assessment-request-issued-credential.js +46 -0
- package/dist/commonjs/models/assessment-request-issued-credential.js.map +1 -0
- package/dist/commonjs/models/assessment-request.d.ts +6 -0
- package/dist/commonjs/models/assessment-request.d.ts.map +1 -1
- package/dist/commonjs/models/assessment-request.js +3 -0
- package/dist/commonjs/models/assessment-request.js.map +1 -1
- package/dist/commonjs/models/conflict-error-code.d.ts +1 -0
- package/dist/commonjs/models/conflict-error-code.d.ts.map +1 -1
- package/dist/commonjs/models/conflict-error-code.js +1 -0
- package/dist/commonjs/models/conflict-error-code.js.map +1 -1
- package/dist/commonjs/models/index.d.ts +7 -0
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +7 -0
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/integration-hook-point.d.ts +18 -0
- package/dist/commonjs/models/integration-hook-point.d.ts.map +1 -0
- package/dist/commonjs/models/integration-hook-point.js +49 -0
- package/dist/commonjs/models/integration-hook-point.js.map +1 -0
- package/dist/commonjs/models/integration-list.d.ts +14 -0
- package/dist/commonjs/models/integration-list.d.ts.map +1 -0
- package/dist/commonjs/models/integration-list.js +48 -0
- package/dist/commonjs/models/integration-list.js.map +1 -0
- package/dist/commonjs/models/integration-platform.d.ts +18 -0
- package/dist/commonjs/models/integration-platform.d.ts.map +1 -0
- package/dist/commonjs/models/integration-platform.js +49 -0
- package/dist/commonjs/models/integration-platform.js.map +1 -0
- package/dist/commonjs/models/integration-request.d.ts +30 -0
- package/dist/commonjs/models/integration-request.d.ts.map +1 -0
- package/dist/commonjs/models/integration-request.js +56 -0
- package/dist/commonjs/models/integration-request.js.map +1 -0
- package/dist/commonjs/models/integration-rotation-request.d.ts +18 -0
- package/dist/commonjs/models/integration-rotation-request.d.ts.map +1 -0
- package/dist/commonjs/models/integration-rotation-request.js +51 -0
- package/dist/commonjs/models/integration-rotation-request.js.map +1 -0
- package/dist/commonjs/models/integration.d.ts +43 -0
- package/dist/commonjs/models/integration.d.ts.map +1 -0
- package/dist/commonjs/models/integration.js +67 -0
- package/dist/commonjs/models/integration.js.map +1 -0
- package/dist/commonjs/models/key-rotation.d.ts +1 -0
- package/dist/commonjs/models/key-rotation.d.ts.map +1 -1
- package/dist/commonjs/models/key-rotation.js +1 -0
- package/dist/commonjs/models/key-rotation.js.map +1 -1
- package/dist/commonjs/models/operations/create-integration.d.ts +14 -0
- package/dist/commonjs/models/operations/create-integration.d.ts.map +1 -0
- package/dist/commonjs/models/operations/create-integration.js +55 -0
- package/dist/commonjs/models/operations/create-integration.js.map +1 -0
- package/dist/commonjs/models/operations/delete-integration.d.ts +25 -0
- package/dist/commonjs/models/operations/delete-integration.d.ts.map +1 -0
- package/dist/commonjs/models/operations/delete-integration.js +64 -0
- package/dist/commonjs/models/operations/delete-integration.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +4 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +4 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/list-integrations.d.ts +14 -0
- package/dist/commonjs/models/operations/list-integrations.d.ts.map +1 -0
- package/dist/commonjs/models/operations/list-integrations.js +55 -0
- package/dist/commonjs/models/operations/list-integrations.js.map +1 -0
- package/dist/commonjs/models/operations/rotate-integration-secret.d.ts +29 -0
- package/dist/commonjs/models/operations/rotate-integration-secret.d.ts.map +1 -0
- package/dist/commonjs/models/operations/rotate-integration-secret.js +68 -0
- package/dist/commonjs/models/operations/rotate-integration-secret.js.map +1 -0
- package/dist/commonjs/models/risk.d.ts +8 -0
- package/dist/commonjs/models/risk.d.ts.map +1 -1
- package/dist/commonjs/models/risk.js +3 -0
- package/dist/commonjs/models/risk.js.map +1 -1
- package/dist/commonjs/sdk/assessments.d.ts +1 -1
- package/dist/commonjs/sdk/assessments.js +1 -1
- package/dist/commonjs/sdk/integrations.d.ts +34 -0
- package/dist/commonjs/sdk/integrations.d.ts.map +1 -0
- package/dist/commonjs/sdk/integrations.js +49 -0
- package/dist/commonjs/sdk/integrations.js.map +1 -0
- package/dist/commonjs/sdk/sdk.d.ts +3 -0
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +5 -0
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/esm/client.d.ts +27 -0
- package/dist/esm/client.d.ts.map +1 -1
- package/dist/esm/client.js +37 -0
- package/dist/esm/client.js.map +1 -1
- package/dist/esm/funcs/assessments-create.d.ts +1 -1
- package/dist/esm/funcs/assessments-create.js +1 -1
- package/dist/esm/funcs/integrations-create.d.ts +19 -0
- package/dist/esm/funcs/integrations-create.d.ts.map +1 -0
- package/dist/esm/funcs/integrations-create.js +101 -0
- package/dist/esm/funcs/integrations-create.js.map +1 -0
- package/dist/esm/funcs/integrations-delete.d.ts +18 -0
- package/dist/esm/funcs/integrations-delete.d.ts.map +1 -0
- package/dist/esm/funcs/integrations-delete.js +115 -0
- package/dist/esm/funcs/integrations-delete.js.map +1 -0
- package/dist/esm/funcs/integrations-list.d.ts +18 -0
- package/dist/esm/funcs/integrations-list.d.ts.map +1 -0
- package/dist/esm/funcs/integrations-list.js +101 -0
- package/dist/esm/funcs/integrations-list.js.map +1 -0
- package/dist/esm/funcs/integrations-rotate.d.ts +18 -0
- package/dist/esm/funcs/integrations-rotate.d.ts.map +1 -0
- package/dist/esm/funcs/integrations-rotate.js +106 -0
- package/dist/esm/funcs/integrations-rotate.js.map +1 -0
- package/dist/esm/index.d.ts +2 -1
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +2 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/issued-credential.d.ts +9 -0
- package/dist/esm/issued-credential.d.ts.map +1 -0
- package/dist/esm/issued-credential.js +15 -0
- package/dist/esm/issued-credential.js.map +1 -0
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/models/assessment-request-issued-credential.d.ts +18 -0
- package/dist/esm/models/assessment-request-issued-credential.d.ts.map +1 -0
- package/dist/esm/models/assessment-request-issued-credential.js +9 -0
- package/dist/esm/models/assessment-request-issued-credential.js.map +1 -0
- package/dist/esm/models/assessment-request.d.ts +6 -0
- package/dist/esm/models/assessment-request.d.ts.map +1 -1
- package/dist/esm/models/assessment-request.js +3 -0
- package/dist/esm/models/assessment-request.js.map +1 -1
- package/dist/esm/models/conflict-error-code.d.ts +1 -0
- package/dist/esm/models/conflict-error-code.d.ts.map +1 -1
- package/dist/esm/models/conflict-error-code.js +1 -0
- package/dist/esm/models/conflict-error-code.js.map +1 -1
- package/dist/esm/models/index.d.ts +7 -0
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +7 -0
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/integration-hook-point.d.ts +18 -0
- package/dist/esm/models/integration-hook-point.d.ts.map +1 -0
- package/dist/esm/models/integration-hook-point.js +13 -0
- package/dist/esm/models/integration-hook-point.js.map +1 -0
- package/dist/esm/models/integration-list.d.ts +14 -0
- package/dist/esm/models/integration-list.d.ts.map +1 -0
- package/dist/esm/models/integration-list.js +11 -0
- package/dist/esm/models/integration-list.js.map +1 -0
- package/dist/esm/models/integration-platform.d.ts +18 -0
- package/dist/esm/models/integration-platform.d.ts.map +1 -0
- package/dist/esm/models/integration-platform.js +13 -0
- package/dist/esm/models/integration-platform.js.map +1 -0
- package/dist/esm/models/integration-request.d.ts +30 -0
- package/dist/esm/models/integration-request.d.ts.map +1 -0
- package/dist/esm/models/integration-request.js +19 -0
- package/dist/esm/models/integration-request.js.map +1 -0
- package/dist/esm/models/integration-rotation-request.d.ts +18 -0
- package/dist/esm/models/integration-rotation-request.d.ts.map +1 -0
- package/dist/esm/models/integration-rotation-request.js +14 -0
- package/dist/esm/models/integration-rotation-request.js.map +1 -0
- package/dist/esm/models/integration.d.ts +43 -0
- package/dist/esm/models/integration.d.ts.map +1 -0
- package/dist/esm/models/integration.js +30 -0
- package/dist/esm/models/integration.js.map +1 -0
- package/dist/esm/models/key-rotation.d.ts +1 -0
- package/dist/esm/models/key-rotation.d.ts.map +1 -1
- package/dist/esm/models/key-rotation.js +1 -0
- package/dist/esm/models/key-rotation.js.map +1 -1
- package/dist/esm/models/operations/create-integration.d.ts +14 -0
- package/dist/esm/models/operations/create-integration.d.ts.map +1 -0
- package/dist/esm/models/operations/create-integration.js +18 -0
- package/dist/esm/models/operations/create-integration.js.map +1 -0
- package/dist/esm/models/operations/delete-integration.d.ts +25 -0
- package/dist/esm/models/operations/delete-integration.d.ts.map +1 -0
- package/dist/esm/models/operations/delete-integration.js +26 -0
- package/dist/esm/models/operations/delete-integration.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +4 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +4 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/list-integrations.d.ts +14 -0
- package/dist/esm/models/operations/list-integrations.d.ts.map +1 -0
- package/dist/esm/models/operations/list-integrations.js +18 -0
- package/dist/esm/models/operations/list-integrations.js.map +1 -0
- package/dist/esm/models/operations/rotate-integration-secret.d.ts +29 -0
- package/dist/esm/models/operations/rotate-integration-secret.d.ts.map +1 -0
- package/dist/esm/models/operations/rotate-integration-secret.js +30 -0
- package/dist/esm/models/operations/rotate-integration-secret.js.map +1 -0
- package/dist/esm/models/risk.d.ts +8 -0
- package/dist/esm/models/risk.d.ts.map +1 -1
- package/dist/esm/models/risk.js +3 -0
- package/dist/esm/models/risk.js.map +1 -1
- package/dist/esm/sdk/assessments.d.ts +1 -1
- package/dist/esm/sdk/assessments.js +1 -1
- package/dist/esm/sdk/integrations.d.ts +34 -0
- package/dist/esm/sdk/integrations.d.ts.map +1 -0
- package/dist/esm/sdk/integrations.js +45 -0
- package/dist/esm/sdk/integrations.js.map +1 -0
- package/dist/esm/sdk/sdk.d.ts +3 -0
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +5 -0
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"risk.js","sourceRoot":"","sources":["../../../src/models/risk.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,KAAK,KAAK,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAQ,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAErD,OAAO,EAEL,4BAA4B,GAC7B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,4BAA4B,GAC7B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAgB,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAC9E,OAAO,EAAe,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAC3E,OAAO,EAAc,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AACxE,OAAO,EAAe,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"risk.js","sourceRoot":"","sources":["../../../src/models/risk.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,KAAK,KAAK,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAQ,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAErD,OAAO,EAEL,4BAA4B,GAC7B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,4BAA4B,GAC7B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAgB,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAC9E,OAAO,EAAe,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAC3E,OAAO,EAAc,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AACxE,OAAO,EAAe,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAqD3E,gBAAgB;AAChB,MAAM,CAAC,MAAM,kBAAkB,GAAiC,CAAC,CAAC,IAAI,CACpE,CAAC,CAAC,MAAM,CAAC;IACP,KAAK,EAAE,KAAK,CAAC,MAAM,EAAE;IACrB,IAAI,EAAE,kBAAkB;IACxB,cAAc,EAAE,4BAA4B;IAC5C,KAAK,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;IACtC,eAAe,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;IAC/C,UAAU,EAAE,4BAA4B;IACxC,cAAc,EAAE,KAAK,CAAC,MAAM,EAAE;IAC9B,YAAY,EAAE,KAAK,CAAC,OAAO,CAAC,uBAAuB,CAAC;IACpD,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,wBAAwB,CAAC;IAC1C,OAAO,EAAE,KAAK,CAAC,QAAQ,CAAC,yBAAyB,CAAC;IAClD,QAAQ,EAAE,0BAA0B;IACpC,OAAO,EAAE,KAAK,CAAC,QAAQ,CAAC,yBAAyB,CAAC;CACnD,CAAC,EACF,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,iBAAiB,EAAE,gBAAgB;QACnC,gBAAgB,EAAE,eAAe;QACjC,cAAc,EAAE,aAAa;KAC9B,CAAC,CAAC;AAAA,CACJ,CAAC,CACH,CAAC;AAEF,MAAM,UAAU,YAAY,CAC1B,UAAkB,EACyB;IAC3C,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,kBAAkB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC9C,kCAAkC,CACnC,CAAC;AAAA,CACH"}
|
|
@@ -7,7 +7,7 @@ export declare class Assessments extends ClientSDK {
|
|
|
7
7
|
* Assess identifiers for a signup or gateway decision.
|
|
8
8
|
*
|
|
9
9
|
* @remarks
|
|
10
|
-
* Returns within the deadline (500 ms at most) with a complete, partial or pending assessment: 200 carries complete or partial, 202 carries pending with Location and Retry-After. A pending answer has no recommendation; apply your own fallback for pending, 429, 503 or a timeout. Requires the assess scope. Idempotency-Key is required and is bound to the body for 24 hours: the same key with the same body replays the latest assessment with Idempotent-Replayed: true and starts no new work; the same key with a different body answers 409 idempotency_key_reused. response_mode defaults to standard; detailed needs the detailed scope.
|
|
10
|
+
* Returns within the deadline (500 ms at most) with a complete, partial or pending assessment: 200 carries complete or partial, 202 carries pending with Location and Retry-After. A pending answer has no recommendation; apply your own fallback for pending, 429, 503 or a timeout. risk.block says when your block threshold was reached. Requires the assess scope. Idempotency-Key is required and is bound to the body for 24 hours: the same key with the same body replays the latest assessment with Idempotent-Replayed: true and starts no new work; the same key with a different body answers 409 idempotency_key_reused. response_mode defaults to standard; detailed needs the detailed scope.
|
|
11
11
|
*/
|
|
12
12
|
create(request: operations.CreateAssessmentRequest, options?: RequestOptions): Promise<operations.CreateAssessmentResponse>;
|
|
13
13
|
/**
|
|
@@ -10,7 +10,7 @@ export class Assessments extends ClientSDK {
|
|
|
10
10
|
* Assess identifiers for a signup or gateway decision.
|
|
11
11
|
*
|
|
12
12
|
* @remarks
|
|
13
|
-
* Returns within the deadline (500 ms at most) with a complete, partial or pending assessment: 200 carries complete or partial, 202 carries pending with Location and Retry-After. A pending answer has no recommendation; apply your own fallback for pending, 429, 503 or a timeout. Requires the assess scope. Idempotency-Key is required and is bound to the body for 24 hours: the same key with the same body replays the latest assessment with Idempotent-Replayed: true and starts no new work; the same key with a different body answers 409 idempotency_key_reused. response_mode defaults to standard; detailed needs the detailed scope.
|
|
13
|
+
* Returns within the deadline (500 ms at most) with a complete, partial or pending assessment: 200 carries complete or partial, 202 carries pending with Location and Retry-After. A pending answer has no recommendation; apply your own fallback for pending, 429, 503 or a timeout. risk.block says when your block threshold was reached. Requires the assess scope. Idempotency-Key is required and is bound to the body for 24 hours: the same key with the same body replays the latest assessment with Idempotent-Replayed: true and starts no new work; the same key with a different body answers 409 idempotency_key_reused. response_mode defaults to standard; detailed needs the detailed scope.
|
|
14
14
|
*/
|
|
15
15
|
async create(request, options) {
|
|
16
16
|
return unwrapAsync(assessmentsCreate(this, request, options));
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
2
|
+
import * as models from "../models/index.js";
|
|
3
|
+
import * as operations from "../models/operations/index.js";
|
|
4
|
+
export declare class Integrations extends ClientSDK {
|
|
5
|
+
/**
|
|
6
|
+
* Register a hosted provider integration.
|
|
7
|
+
*
|
|
8
|
+
* @remarks
|
|
9
|
+
* Registers a WorkOS or Auth0 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 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 both pre_registration and post_login; 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) 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
|
+
*/
|
|
11
|
+
create(request: models.IntegrationRequest, options?: RequestOptions): Promise<operations.CreateIntegrationResponse>;
|
|
12
|
+
/**
|
|
13
|
+
* List the tenant's integrations.
|
|
14
|
+
*
|
|
15
|
+
* @remarks
|
|
16
|
+
* Every integration, oldest first. Listings carry no secrets. Requires the integrations scope.
|
|
17
|
+
*/
|
|
18
|
+
list(options?: RequestOptions): Promise<operations.ListIntegrationsResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Delete an integration.
|
|
21
|
+
*
|
|
22
|
+
* @remarks
|
|
23
|
+
* Removes the integration and its secrets; its endpoint answers 404 from then on, so remove the Action from the provider first. Requires the integrations scope. An unknown or already deleted integration answers 404.
|
|
24
|
+
*/
|
|
25
|
+
delete(request: operations.DeleteIntegrationRequest, options?: RequestOptions): Promise<operations.DeleteIntegrationResponse | undefined>;
|
|
26
|
+
/**
|
|
27
|
+
* Replace an integration's secret.
|
|
28
|
+
*
|
|
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.
|
|
31
|
+
*/
|
|
32
|
+
rotate(request: operations.RotateIntegrationSecretRequest, options?: RequestOptions): Promise<operations.RotateIntegrationSecretResponse>;
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=integrations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"integrations.d.ts","sourceRoot":"","sources":["../../../src/sdk/integrations.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,YAAa,SAAQ,SAAS;IACzC;;;;;OAKG;IACG,MAAM,CACV,OAAO,EAAE,MAAM,CAAC,kBAAkB,EAClC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,yBAAyB,CAAC,CAM/C;IAED;;;;;OAKG;IACG,IAAI,CACR,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,wBAAwB,CAAC,CAK9C;IAED;;;;;OAKG;IACG,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,wBAAwB,EAC5C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,yBAAyB,GAAG,SAAS,CAAC,CAM3D;IAED;;;;;OAKG;IACG,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,8BAA8B,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,+BAA+B,CAAC,CAMrD;CACF"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { integrationsCreate } from "../funcs/integrations-create.js";
|
|
2
|
+
import { integrationsDelete } from "../funcs/integrations-delete.js";
|
|
3
|
+
import { integrationsList } from "../funcs/integrations-list.js";
|
|
4
|
+
import { integrationsRotate } from "../funcs/integrations-rotate.js";
|
|
5
|
+
import { ClientSDK } from "../lib/sdks.js";
|
|
6
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
7
|
+
export class Integrations extends ClientSDK {
|
|
8
|
+
/**
|
|
9
|
+
* Register a hosted provider integration.
|
|
10
|
+
*
|
|
11
|
+
* @remarks
|
|
12
|
+
* Registers a WorkOS or Auth0 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 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 both pre_registration and post_login; 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) 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
|
+
*/
|
|
14
|
+
async create(request, options) {
|
|
15
|
+
return unwrapAsync(integrationsCreate(this, request, options));
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* List the tenant's integrations.
|
|
19
|
+
*
|
|
20
|
+
* @remarks
|
|
21
|
+
* Every integration, oldest first. Listings carry no secrets. Requires the integrations scope.
|
|
22
|
+
*/
|
|
23
|
+
async list(options) {
|
|
24
|
+
return unwrapAsync(integrationsList(this, options));
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Delete an integration.
|
|
28
|
+
*
|
|
29
|
+
* @remarks
|
|
30
|
+
* Removes the integration and its secrets; its endpoint answers 404 from then on, so remove the Action from the provider first. Requires the integrations scope. An unknown or already deleted integration answers 404.
|
|
31
|
+
*/
|
|
32
|
+
async delete(request, options) {
|
|
33
|
+
return unwrapAsync(integrationsDelete(this, request, options));
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Replace an integration's secret.
|
|
37
|
+
*
|
|
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.
|
|
40
|
+
*/
|
|
41
|
+
async rotate(request, options) {
|
|
42
|
+
return unwrapAsync(integrationsRotate(this, request, options));
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=integrations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"integrations.js","sourceRoot":"","sources":["../../../src/sdk/integrations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAG3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,YAAa,SAAQ,SAAS;IACzC;;;;;OAKG;IACH,KAAK,CAAC,MAAM,CACV,OAAkC,EAClC,OAAwB,EACuB;QAC/C,OAAO,WAAW,CAAC,kBAAkB,CACnC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;IAED;;;;;OAKG;IACH,KAAK,CAAC,IAAI,CACR,OAAwB,EACsB;QAC9C,OAAO,WAAW,CAAC,gBAAgB,CACjC,IAAI,EACJ,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;IAED;;;;;OAKG;IACH,KAAK,CAAC,MAAM,CACV,OAA4C,EAC5C,OAAwB,EACmC;QAC3D,OAAO,WAAW,CAAC,kBAAkB,CACnC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;IAED;;;;;OAKG;IACH,KAAK,CAAC,MAAM,CACV,OAAkD,EAClD,OAAwB,EAC6B;QACrD,OAAO,WAAW,CAAC,kBAAkB,CACnC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;CACF"}
|
package/dist/esm/sdk/sdk.d.ts
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { ClientSDK } from "../lib/sdks.js";
|
|
2
2
|
import { Assessments } from "./assessments.js";
|
|
3
|
+
import { Integrations } from "./integrations.js";
|
|
3
4
|
import { Keys } from "./keys.js";
|
|
4
5
|
export declare class NoResponse extends ClientSDK {
|
|
5
6
|
private _assessments?;
|
|
6
7
|
get assessments(): Assessments;
|
|
7
8
|
private _keys?;
|
|
8
9
|
get keys(): Keys;
|
|
10
|
+
private _integrations?;
|
|
11
|
+
get integrations(): Integrations;
|
|
9
12
|
}
|
|
10
13
|
//# sourceMappingURL=sdk.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sdk.d.ts","sourceRoot":"","sources":["../../../src/sdk/sdk.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,qBAAa,UAAW,SAAQ,SAAS;IACvC,OAAO,CAAC,YAAY,CAAC,CAAc;IACnC,IAAI,WAAW,IAAI,WAAW,CAE7B;IAED,OAAO,CAAC,KAAK,CAAC,CAAO;IACrB,IAAI,IAAI,IAAI,IAAI,CAEf;CACF"}
|
|
1
|
+
{"version":3,"file":"sdk.d.ts","sourceRoot":"","sources":["../../../src/sdk/sdk.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,qBAAa,UAAW,SAAQ,SAAS;IACvC,OAAO,CAAC,YAAY,CAAC,CAAc;IACnC,IAAI,WAAW,IAAI,WAAW,CAE7B;IAED,OAAO,CAAC,KAAK,CAAC,CAAO;IACrB,IAAI,IAAI,IAAI,IAAI,CAEf;IAED,OAAO,CAAC,aAAa,CAAC,CAAe;IACrC,IAAI,YAAY,IAAI,YAAY,CAE/B;CACF"}
|
package/dist/esm/sdk/sdk.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ClientSDK } from "../lib/sdks.js";
|
|
2
2
|
import { Assessments } from "./assessments.js";
|
|
3
|
+
import { Integrations } from "./integrations.js";
|
|
3
4
|
import { Keys } from "./keys.js";
|
|
4
5
|
export class NoResponse extends ClientSDK {
|
|
5
6
|
_assessments;
|
|
@@ -10,5 +11,9 @@ export class NoResponse extends ClientSDK {
|
|
|
10
11
|
get keys() {
|
|
11
12
|
return (this._keys ?? (this._keys = new Keys(this._options)));
|
|
12
13
|
}
|
|
14
|
+
_integrations;
|
|
15
|
+
get integrations() {
|
|
16
|
+
return (this._integrations ?? (this._integrations = new Integrations(this._options)));
|
|
17
|
+
}
|
|
13
18
|
}
|
|
14
19
|
//# sourceMappingURL=sdk.js.map
|
package/dist/esm/sdk/sdk.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sdk.js","sourceRoot":"","sources":["../../../src/sdk/sdk.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,MAAM,OAAO,UAAW,SAAQ,SAAS;IAC/B,YAAY,CAAe;IACnC,IAAI,WAAW,GAAgB;QAC7B,OAAO,CAAC,IAAI,CAAC,YAAY,KAAjB,IAAI,CAAC,YAAY,GAAK,IAAI,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAAA,CAC/D;IAEO,KAAK,CAAQ;IACrB,IAAI,IAAI,GAAS;QACf,OAAO,CAAC,IAAI,CAAC,KAAK,KAAV,IAAI,CAAC,KAAK,GAAK,IAAI,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAAA,CACjD;CACF"}
|
|
1
|
+
{"version":3,"file":"sdk.js","sourceRoot":"","sources":["../../../src/sdk/sdk.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,MAAM,OAAO,UAAW,SAAQ,SAAS;IAC/B,YAAY,CAAe;IACnC,IAAI,WAAW,GAAgB;QAC7B,OAAO,CAAC,IAAI,CAAC,YAAY,KAAjB,IAAI,CAAC,YAAY,GAAK,IAAI,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAAA,CAC/D;IAEO,KAAK,CAAQ;IACrB,IAAI,IAAI,GAAS;QACf,OAAO,CAAC,IAAI,CAAC,KAAK,KAAV,IAAI,CAAC,KAAK,GAAK,IAAI,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAAA,CACjD;IAEO,aAAa,CAAgB;IACrC,IAAI,YAAY,GAAiB;QAC/B,OAAO,CAAC,IAAI,CAAC,aAAa,KAAlB,IAAI,CAAC,aAAa,GAAK,IAAI,YAAY,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAAA,CACjE;CACF"}
|