@greensecurity/javascript-sdk 0.45.0-beta.15 → 0.45.0-beta.17
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/commonjs/__tests__/vendors.test.js +1 -1
- package/dist/commonjs/__tests__/vendors.test.js.map +1 -1
- package/dist/commonjs/__tests__/webhooks.test.js +5 -6
- package/dist/commonjs/__tests__/webhooks.test.js.map +1 -1
- package/dist/commonjs/__tests__/zones.test.js +2 -27
- package/dist/commonjs/__tests__/zones.test.js.map +1 -1
- package/dist/commonjs/funcs/reportsGetFullReport.d.ts +3 -3
- package/dist/commonjs/funcs/reportsGetFullReport.js +3 -3
- package/dist/commonjs/funcs/usersPostAuthenticate.d.ts +37 -0
- package/dist/commonjs/funcs/usersPostAuthenticate.d.ts.map +1 -1
- package/dist/commonjs/funcs/usersPostAuthenticate.js +37 -0
- package/dist/commonjs/funcs/usersPostAuthenticate.js.map +1 -1
- package/dist/commonjs/funcs/validateWebhook.d.ts +1 -1
- package/dist/commonjs/funcs/validateWebhook.d.ts.map +1 -1
- package/dist/commonjs/funcs/validateWebhook.js +3 -0
- package/dist/commonjs/funcs/validateWebhook.js.map +1 -1
- package/dist/commonjs/funcs/vendorsSendDownloadCode.js +1 -1
- package/dist/commonjs/funcs/vendorsSendDownloadCode.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/models/components/authenticatesuccessresponse.d.ts +91 -0
- package/dist/commonjs/models/components/authenticatesuccessresponse.d.ts.map +1 -0
- package/dist/commonjs/models/components/authenticatesuccessresponse.js +100 -0
- package/dist/commonjs/models/components/authenticatesuccessresponse.js.map +1 -0
- package/dist/commonjs/models/components/fullreport.d.ts +107 -0
- package/dist/commonjs/models/components/fullreport.d.ts.map +1 -0
- package/dist/commonjs/models/components/fullreport.js +125 -0
- package/dist/commonjs/models/components/fullreport.js.map +1 -0
- package/dist/commonjs/models/components/index.d.ts +3 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +3 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/loginemailandpassword.d.ts +34 -0
- package/dist/commonjs/models/components/loginemailandpassword.d.ts.map +1 -1
- package/dist/commonjs/models/components/loginemailandpassword.js +2 -0
- package/dist/commonjs/models/components/loginemailandpassword.js.map +1 -1
- package/dist/commonjs/models/components/loginrequirementsfromemail.d.ts +34 -0
- package/dist/commonjs/models/components/loginrequirementsfromemail.d.ts.map +1 -1
- package/dist/commonjs/models/components/loginrequirementsfromemail.js +2 -0
- package/dist/commonjs/models/components/loginrequirementsfromemail.js.map +1 -1
- package/dist/commonjs/models/components/mfarequiredresponse.d.ts +33 -0
- package/dist/commonjs/models/components/mfarequiredresponse.d.ts.map +1 -1
- package/dist/commonjs/models/components/mfarequiredresponse.js +2 -0
- package/dist/commonjs/models/components/mfarequiredresponse.js.map +1 -1
- package/dist/commonjs/models/components/passwordnotsetresponse.d.ts +34 -1
- package/dist/commonjs/models/components/passwordnotsetresponse.d.ts.map +1 -1
- package/dist/commonjs/models/components/passwordnotsetresponse.js +2 -0
- package/dist/commonjs/models/components/passwordnotsetresponse.js.map +1 -1
- package/dist/commonjs/models/components/passwordrequiredresponse.d.ts +33 -0
- package/dist/commonjs/models/components/passwordrequiredresponse.d.ts.map +1 -1
- package/dist/commonjs/models/components/passwordrequiredresponse.js +6 -0
- package/dist/commonjs/models/components/passwordrequiredresponse.js.map +1 -1
- package/dist/commonjs/models/components/samlloginrequiredresponse.d.ts +33 -0
- package/dist/commonjs/models/components/samlloginrequiredresponse.d.ts.map +1 -1
- package/dist/commonjs/models/components/samlloginrequiredresponse.js +2 -0
- package/dist/commonjs/models/components/samlloginrequiredresponse.js.map +1 -1
- package/dist/commonjs/models/components/ssocontinuation.d.ts +44 -0
- package/dist/commonjs/models/components/ssocontinuation.d.ts.map +1 -0
- package/dist/commonjs/models/components/ssocontinuation.js +56 -0
- package/dist/commonjs/models/components/ssocontinuation.js.map +1 -0
- package/dist/commonjs/models/components/webhooksubscription.d.ts +3 -0
- package/dist/commonjs/models/components/webhooksubscription.d.ts.map +1 -1
- package/dist/commonjs/models/components/webhooksubscription.js +3 -0
- package/dist/commonjs/models/components/webhooksubscription.js.map +1 -1
- package/dist/commonjs/models/components/webhooksubscriptiondetail.d.ts +1 -0
- package/dist/commonjs/models/components/webhooksubscriptiondetail.d.ts.map +1 -1
- package/dist/commonjs/models/components/webhooksubscriptiondetail.js +1 -0
- package/dist/commonjs/models/components/webhooksubscriptiondetail.js.map +1 -1
- package/dist/commonjs/models/operations/postauthenticate.d.ts +1 -1
- package/dist/commonjs/models/operations/postauthenticate.d.ts.map +1 -1
- package/dist/commonjs/models/operations/postauthenticate.js +1 -1
- package/dist/commonjs/models/operations/postauthenticate.js.map +1 -1
- package/dist/commonjs/models/webhooks/index.d.ts +3 -0
- package/dist/commonjs/models/webhooks/index.d.ts.map +1 -1
- package/dist/commonjs/models/webhooks/index.js +3 -0
- package/dist/commonjs/models/webhooks/index.js.map +1 -1
- package/dist/commonjs/models/webhooks/sendfullreportcreated.d.ts +42 -0
- package/dist/commonjs/models/webhooks/sendfullreportcreated.d.ts.map +1 -0
- package/dist/commonjs/models/webhooks/sendfullreportcreated.js +85 -0
- package/dist/commonjs/models/webhooks/sendfullreportcreated.js.map +1 -0
- package/dist/commonjs/models/webhooks/sendfullreportdestroyed.d.ts +42 -0
- package/dist/commonjs/models/webhooks/sendfullreportdestroyed.d.ts.map +1 -0
- package/dist/commonjs/models/webhooks/sendfullreportdestroyed.js +85 -0
- package/dist/commonjs/models/webhooks/sendfullreportdestroyed.js.map +1 -0
- package/dist/commonjs/models/webhooks/sendfullreportupdated.d.ts +42 -0
- package/dist/commonjs/models/webhooks/sendfullreportupdated.d.ts.map +1 -0
- package/dist/commonjs/models/webhooks/sendfullreportupdated.js +85 -0
- package/dist/commonjs/models/webhooks/sendfullreportupdated.js.map +1 -0
- package/dist/commonjs/react-query/reportsGetFullReport.d.ts +6 -6
- package/dist/commonjs/react-query/reportsGetFullReport.js +6 -6
- package/dist/commonjs/react-query/usersPostAuthenticate.d.ts +37 -0
- package/dist/commonjs/react-query/usersPostAuthenticate.d.ts.map +1 -1
- package/dist/commonjs/react-query/usersPostAuthenticate.js +37 -0
- package/dist/commonjs/react-query/usersPostAuthenticate.js.map +1 -1
- package/dist/commonjs/sdk/reports.d.ts +3 -3
- package/dist/commonjs/sdk/reports.js +3 -3
- package/dist/commonjs/sdk/sdk.d.ts +1 -1
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/commonjs/sdk/users.d.ts +37 -0
- package/dist/commonjs/sdk/users.d.ts.map +1 -1
- package/dist/commonjs/sdk/users.js +37 -0
- package/dist/commonjs/sdk/users.js.map +1 -1
- package/dist/esm/__tests__/vendors.test.js +1 -1
- package/dist/esm/__tests__/vendors.test.js.map +1 -1
- package/dist/esm/__tests__/webhooks.test.js +5 -6
- package/dist/esm/__tests__/webhooks.test.js.map +1 -1
- package/dist/esm/__tests__/zones.test.js +2 -27
- package/dist/esm/__tests__/zones.test.js.map +1 -1
- package/dist/esm/funcs/reportsGetFullReport.d.ts +3 -3
- package/dist/esm/funcs/reportsGetFullReport.js +3 -3
- package/dist/esm/funcs/usersPostAuthenticate.d.ts +37 -0
- package/dist/esm/funcs/usersPostAuthenticate.d.ts.map +1 -1
- package/dist/esm/funcs/usersPostAuthenticate.js +37 -0
- package/dist/esm/funcs/usersPostAuthenticate.js.map +1 -1
- package/dist/esm/funcs/validateWebhook.d.ts +1 -1
- package/dist/esm/funcs/validateWebhook.d.ts.map +1 -1
- package/dist/esm/funcs/validateWebhook.js +3 -0
- package/dist/esm/funcs/validateWebhook.js.map +1 -1
- package/dist/esm/funcs/vendorsSendDownloadCode.js +1 -1
- package/dist/esm/funcs/vendorsSendDownloadCode.js.map +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/models/components/authenticatesuccessresponse.d.ts +91 -0
- package/dist/esm/models/components/authenticatesuccessresponse.d.ts.map +1 -0
- package/dist/esm/models/components/authenticatesuccessresponse.js +61 -0
- package/dist/esm/models/components/authenticatesuccessresponse.js.map +1 -0
- package/dist/esm/models/components/fullreport.d.ts +107 -0
- package/dist/esm/models/components/fullreport.d.ts.map +1 -0
- package/dist/esm/models/components/fullreport.js +87 -0
- package/dist/esm/models/components/fullreport.js.map +1 -0
- package/dist/esm/models/components/index.d.ts +3 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +3 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/loginemailandpassword.d.ts +34 -0
- package/dist/esm/models/components/loginemailandpassword.d.ts.map +1 -1
- package/dist/esm/models/components/loginemailandpassword.js +2 -0
- package/dist/esm/models/components/loginemailandpassword.js.map +1 -1
- package/dist/esm/models/components/loginrequirementsfromemail.d.ts +34 -0
- package/dist/esm/models/components/loginrequirementsfromemail.d.ts.map +1 -1
- package/dist/esm/models/components/loginrequirementsfromemail.js +2 -0
- package/dist/esm/models/components/loginrequirementsfromemail.js.map +1 -1
- package/dist/esm/models/components/mfarequiredresponse.d.ts +33 -0
- package/dist/esm/models/components/mfarequiredresponse.d.ts.map +1 -1
- package/dist/esm/models/components/mfarequiredresponse.js +2 -0
- package/dist/esm/models/components/mfarequiredresponse.js.map +1 -1
- package/dist/esm/models/components/passwordnotsetresponse.d.ts +34 -1
- package/dist/esm/models/components/passwordnotsetresponse.d.ts.map +1 -1
- package/dist/esm/models/components/passwordnotsetresponse.js +2 -0
- package/dist/esm/models/components/passwordnotsetresponse.js.map +1 -1
- package/dist/esm/models/components/passwordrequiredresponse.d.ts +33 -0
- package/dist/esm/models/components/passwordrequiredresponse.d.ts.map +1 -1
- package/dist/esm/models/components/passwordrequiredresponse.js +6 -0
- package/dist/esm/models/components/passwordrequiredresponse.js.map +1 -1
- package/dist/esm/models/components/samlloginrequiredresponse.d.ts +33 -0
- package/dist/esm/models/components/samlloginrequiredresponse.d.ts.map +1 -1
- package/dist/esm/models/components/samlloginrequiredresponse.js +2 -0
- package/dist/esm/models/components/samlloginrequiredresponse.js.map +1 -1
- package/dist/esm/models/components/ssocontinuation.d.ts +44 -0
- package/dist/esm/models/components/ssocontinuation.d.ts.map +1 -0
- package/dist/esm/models/components/ssocontinuation.js +19 -0
- package/dist/esm/models/components/ssocontinuation.js.map +1 -0
- package/dist/esm/models/components/webhooksubscription.d.ts +3 -0
- package/dist/esm/models/components/webhooksubscription.d.ts.map +1 -1
- package/dist/esm/models/components/webhooksubscription.js +3 -0
- package/dist/esm/models/components/webhooksubscription.js.map +1 -1
- package/dist/esm/models/components/webhooksubscriptiondetail.d.ts +1 -0
- package/dist/esm/models/components/webhooksubscriptiondetail.d.ts.map +1 -1
- package/dist/esm/models/components/webhooksubscriptiondetail.js +1 -0
- package/dist/esm/models/components/webhooksubscriptiondetail.js.map +1 -1
- package/dist/esm/models/operations/postauthenticate.d.ts +1 -1
- package/dist/esm/models/operations/postauthenticate.d.ts.map +1 -1
- package/dist/esm/models/operations/postauthenticate.js +1 -1
- package/dist/esm/models/operations/postauthenticate.js.map +1 -1
- package/dist/esm/models/webhooks/index.d.ts +3 -0
- package/dist/esm/models/webhooks/index.d.ts.map +1 -1
- package/dist/esm/models/webhooks/index.js +3 -0
- package/dist/esm/models/webhooks/index.js.map +1 -1
- package/dist/esm/models/webhooks/sendfullreportcreated.d.ts +42 -0
- package/dist/esm/models/webhooks/sendfullreportcreated.d.ts.map +1 -0
- package/dist/esm/models/webhooks/sendfullreportcreated.js +47 -0
- package/dist/esm/models/webhooks/sendfullreportcreated.js.map +1 -0
- package/dist/esm/models/webhooks/sendfullreportdestroyed.d.ts +42 -0
- package/dist/esm/models/webhooks/sendfullreportdestroyed.d.ts.map +1 -0
- package/dist/esm/models/webhooks/sendfullreportdestroyed.js +47 -0
- package/dist/esm/models/webhooks/sendfullreportdestroyed.js.map +1 -0
- package/dist/esm/models/webhooks/sendfullreportupdated.d.ts +42 -0
- package/dist/esm/models/webhooks/sendfullreportupdated.d.ts.map +1 -0
- package/dist/esm/models/webhooks/sendfullreportupdated.js +47 -0
- package/dist/esm/models/webhooks/sendfullreportupdated.js.map +1 -0
- package/dist/esm/react-query/reportsGetFullReport.d.ts +6 -6
- package/dist/esm/react-query/reportsGetFullReport.js +6 -6
- package/dist/esm/react-query/usersPostAuthenticate.d.ts +37 -0
- package/dist/esm/react-query/usersPostAuthenticate.d.ts.map +1 -1
- package/dist/esm/react-query/usersPostAuthenticate.js +37 -0
- package/dist/esm/react-query/usersPostAuthenticate.js.map +1 -1
- package/dist/esm/sdk/reports.d.ts +3 -3
- package/dist/esm/sdk/reports.js +3 -3
- package/dist/esm/sdk/sdk.d.ts +1 -1
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/dist/esm/sdk/users.d.ts +37 -0
- package/dist/esm/sdk/users.d.ts.map +1 -1
- package/dist/esm/sdk/users.js +37 -0
- package/dist/esm/sdk/users.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/vendors.test.ts +1 -1
- package/src/__tests__/webhooks.test.ts +5 -6
- package/src/__tests__/zones.test.ts +2 -27
- package/src/funcs/reportsGetFullReport.ts +3 -3
- package/src/funcs/usersPostAuthenticate.ts +37 -0
- package/src/funcs/validateWebhook.ts +6 -0
- package/src/funcs/vendorsSendDownloadCode.ts +1 -0
- package/src/lib/config.ts +2 -2
- package/src/models/components/authenticatesuccessresponse.ts +189 -0
- package/src/models/components/fullreport.ts +193 -0
- package/src/models/components/index.ts +3 -0
- package/src/models/components/loginemailandpassword.ts +36 -0
- package/src/models/components/loginrequirementsfromemail.ts +36 -0
- package/src/models/components/mfarequiredresponse.ts +35 -0
- package/src/models/components/passwordnotsetresponse.ts +36 -1
- package/src/models/components/passwordrequiredresponse.ts +39 -0
- package/src/models/components/samlloginrequiredresponse.ts +35 -0
- package/src/models/components/ssocontinuation.ts +71 -0
- package/src/models/components/webhooksubscription.ts +3 -0
- package/src/models/components/webhooksubscriptiondetail.ts +1 -0
- package/src/models/operations/postauthenticate.ts +2 -2
- package/src/models/webhooks/index.ts +3 -0
- package/src/models/webhooks/sendfullreportcreated.ts +104 -0
- package/src/models/webhooks/sendfullreportdestroyed.ts +104 -0
- package/src/models/webhooks/sendfullreportupdated.ts +104 -0
- package/src/react-query/reportsGetFullReport.ts +6 -6
- package/src/react-query/usersPostAuthenticate.ts +37 -0
- package/src/sdk/reports.ts +3 -3
- package/src/sdk/sdk.ts +3 -0
- package/src/sdk/users.ts +37 -0
|
@@ -7,9 +7,11 @@ import { remap as remap$ } from "../../lib/primitives.js";
|
|
|
7
7
|
export const LoginRequirementsFromEmail$outboundSchema = z.object({
|
|
8
8
|
email: z.string(),
|
|
9
9
|
returnUrl: z.string(),
|
|
10
|
+
ssoState: z.string().optional(),
|
|
10
11
|
}).transform((v) => {
|
|
11
12
|
return remap$(v, {
|
|
12
13
|
returnUrl: "return_url",
|
|
14
|
+
ssoState: "sso_state",
|
|
13
15
|
});
|
|
14
16
|
});
|
|
15
17
|
export function loginRequirementsFromEmailToJSON(loginRequirementsFromEmail) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loginrequirementsfromemail.js","sourceRoot":"","sources":["../../../../src/models/components/loginrequirementsfromemail.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"loginrequirementsfromemail.js","sourceRoot":"","sources":["../../../../src/models/components/loginrequirementsfromemail.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAwD1D,gBAAgB;AAChB,MAAM,CAAC,MAAM,yCAAyC,GAIlD,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAChC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,SAAS,EAAE,YAAY;QACvB,QAAQ,EAAE,WAAW;KACtB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,gCAAgC,CAC9C,0BAAsD;IAEtD,OAAO,IAAI,CAAC,SAAS,CACnB,yCAAyC,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAC5E,CAAC;AACJ,CAAC"}
|
|
@@ -26,6 +26,39 @@ export type MfaRequiredResponse = {
|
|
|
26
26
|
*/
|
|
27
27
|
mobilePhone?: string | undefined;
|
|
28
28
|
mfaMethod?: MfaMethod | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* Opaque, signed state that Green Security issues when a third-party service
|
|
31
|
+
*
|
|
32
|
+
* @remarks
|
|
33
|
+
* provider starts a "Login with Green Security" SAML flow at
|
|
34
|
+
* `/saml/idp/sso`. The login screen receives it as the `sso_state` query
|
|
35
|
+
* string parameter and must pass it back, byte for byte, on every call to
|
|
36
|
+
* this endpoint for the remainder of the login journey — including the
|
|
37
|
+
* second call that carries an `mfa_code`.
|
|
38
|
+
*
|
|
39
|
+
* The blob is signed, not encrypted, and it expires five minutes after the
|
|
40
|
+
* service provider's request arrives. Do not parse it, shorten it, decode
|
|
41
|
+
* it, or re-encode it.
|
|
42
|
+
*
|
|
43
|
+
* **An invalid blob does not fail the login.** This is the opposite of what
|
|
44
|
+
* most integrators assume, so it is worth stating plainly: a forged, edited
|
|
45
|
+
* or expired `sso_state` is silently discarded, and the request then
|
|
46
|
+
* proceeds as an ordinary login. Valid credentials still authenticate and
|
|
47
|
+
* still return `200` — just with no `sso` object, leaving the user signed in
|
|
48
|
+
* to Green Security with no way back to the service provider that sent them.
|
|
49
|
+
* Never treat a `200` as proof that the SSO hand-off survived; check for
|
|
50
|
+
* `sso` explicitly.
|
|
51
|
+
*
|
|
52
|
+
* Every `202` response echoes the *verified* blob back in its own
|
|
53
|
+
* `sso_state` field. Always send back the value from the response you just
|
|
54
|
+
* received rather than the one you started with, so that a blob the server
|
|
55
|
+
* has already rejected is never resent, and so a client does not have to
|
|
56
|
+
* hold state of its own across the login journey.
|
|
57
|
+
*
|
|
58
|
+
* Omit this field entirely for an ordinary login that did not originate
|
|
59
|
+
* from a service provider.
|
|
60
|
+
*/
|
|
61
|
+
ssoState?: string | undefined;
|
|
29
62
|
};
|
|
30
63
|
/** @internal */
|
|
31
64
|
export declare const MfaMethod$inboundSchema: z.ZodType<MfaMethod, z.ZodTypeDef, unknown>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mfarequiredresponse.d.ts","sourceRoot":"","sources":["../../../../src/models/components/mfarequiredresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAI5B,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,eAAO,MAAM,SAAS;;;CAGZ,CAAC;AACX,MAAM,MAAM,SAAS,GAAG,QAAQ,CAAC,OAAO,SAAS,CAAC,CAAC;AAEnD;;;;;;GAMG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,EAAE,UAAU,CAAC;IACrB,OAAO,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,SAAS,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"mfarequiredresponse.d.ts","sourceRoot":"","sources":["../../../../src/models/components/mfarequiredresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAI5B,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,eAAO,MAAM,SAAS;;;CAGZ,CAAC;AACX,MAAM,MAAM,SAAS,GAAG,QAAQ,CAAC,OAAO,SAAS,CAAC,CAAC;AAEnD;;;;;;GAMG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,EAAE,UAAU,CAAC;IACrB,OAAO,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,SAAS,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;IAClC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+BG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC/B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,uBAAuB,EAAE,CAAC,CAAC,OAAO,CAC7C,SAAS,EACT,CAAC,CAAC,UAAU,EACZ,OAAO,CAC6B,CAAC;AAEvC,gBAAgB;AAChB,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,OAAO,CACvD,mBAAmB,EACnB,CAAC,CAAC,UAAU,EACZ,OAAO,CAcP,CAAC;AAEH,wBAAgB,2BAA2B,CACzC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,mBAAmB,EAAE,kBAAkB,CAAC,CAM1D"}
|
|
@@ -19,10 +19,12 @@ export const MfaRequiredResponse$inboundSchema = z.object({
|
|
|
19
19
|
error: types.string(),
|
|
20
20
|
mobile_phone: types.optional(types.string()),
|
|
21
21
|
mfa_method: types.optional(MfaMethod$inboundSchema),
|
|
22
|
+
sso_state: types.optional(types.string()),
|
|
22
23
|
}).transform((v) => {
|
|
23
24
|
return remap$(v, {
|
|
24
25
|
"mobile_phone": "mobilePhone",
|
|
25
26
|
"mfa_method": "mfaMethod",
|
|
27
|
+
"sso_state": "ssoState",
|
|
26
28
|
});
|
|
27
29
|
});
|
|
28
30
|
export function mfaRequiredResponseFromJSON(jsonString) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mfarequiredresponse.js","sourceRoot":"","sources":["../../../../src/models/components/mfarequiredresponse.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,KAAK,SAAS,MAAM,sBAAsB,CAAC;AAGlD,OAAO,KAAK,KAAK,MAAM,2BAA2B,CAAC;AAGnD,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;CACN,CAAC;
|
|
1
|
+
{"version":3,"file":"mfarequiredresponse.js","sourceRoot":"","sources":["../../../../src/models/components/mfarequiredresponse.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,KAAK,SAAS,MAAM,sBAAsB,CAAC;AAGlD,OAAO,KAAK,KAAK,MAAM,2BAA2B,CAAC;AAGnD,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;CACN,CAAC;AAyDX,gBAAgB;AAChB,MAAM,CAAC,MAAM,uBAAuB,GAIhC,SAAS,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;AAEvC,gBAAgB;AAChB,MAAM,CAAC,MAAM,iCAAiC,GAI1C,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC;IACnC,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE;IACxB,KAAK,EAAE,KAAK,CAAC,MAAM,EAAE;IACrB,YAAY,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;IAC5C,UAAU,EAAE,KAAK,CAAC,QAAQ,CAAC,uBAAuB,CAAC;IACnD,SAAS,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;CAC1C,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,cAAc,EAAE,aAAa;QAC7B,YAAY,EAAE,WAAW;QACzB,WAAW,EAAE,UAAU;KACxB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,2BAA2B,CACzC,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,iCAAiC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC7D,iDAAiD,CAClD,CAAC;AACJ,CAAC"}
|
|
@@ -12,9 +12,42 @@ export type PasswordNotSetResponse = {
|
|
|
12
12
|
*/
|
|
13
13
|
error: string;
|
|
14
14
|
/**
|
|
15
|
-
* URL to redirect the user to set their password (forgot password flow).
|
|
15
|
+
* URL to redirect the user to set their password (forgot password flow). Carries the `return_url` and `sso_state` query params when those were provided on the request, because the browser follows this redirect and leaves the JSON body behind.
|
|
16
16
|
*/
|
|
17
17
|
redirectUrl: string;
|
|
18
|
+
/**
|
|
19
|
+
* Opaque, signed state that Green Security issues when a third-party service
|
|
20
|
+
*
|
|
21
|
+
* @remarks
|
|
22
|
+
* provider starts a "Login with Green Security" SAML flow at
|
|
23
|
+
* `/saml/idp/sso`. The login screen receives it as the `sso_state` query
|
|
24
|
+
* string parameter and must pass it back, byte for byte, on every call to
|
|
25
|
+
* this endpoint for the remainder of the login journey — including the
|
|
26
|
+
* second call that carries an `mfa_code`.
|
|
27
|
+
*
|
|
28
|
+
* The blob is signed, not encrypted, and it expires five minutes after the
|
|
29
|
+
* service provider's request arrives. Do not parse it, shorten it, decode
|
|
30
|
+
* it, or re-encode it.
|
|
31
|
+
*
|
|
32
|
+
* **An invalid blob does not fail the login.** This is the opposite of what
|
|
33
|
+
* most integrators assume, so it is worth stating plainly: a forged, edited
|
|
34
|
+
* or expired `sso_state` is silently discarded, and the request then
|
|
35
|
+
* proceeds as an ordinary login. Valid credentials still authenticate and
|
|
36
|
+
* still return `200` — just with no `sso` object, leaving the user signed in
|
|
37
|
+
* to Green Security with no way back to the service provider that sent them.
|
|
38
|
+
* Never treat a `200` as proof that the SSO hand-off survived; check for
|
|
39
|
+
* `sso` explicitly.
|
|
40
|
+
*
|
|
41
|
+
* Every `202` response echoes the *verified* blob back in its own
|
|
42
|
+
* `sso_state` field. Always send back the value from the response you just
|
|
43
|
+
* received rather than the one you started with, so that a blob the server
|
|
44
|
+
* has already rejected is never resent, and so a client does not have to
|
|
45
|
+
* hold state of its own across the login journey.
|
|
46
|
+
*
|
|
47
|
+
* Omit this field entirely for an ordinary login that did not originate
|
|
48
|
+
* from a service provider.
|
|
49
|
+
*/
|
|
50
|
+
ssoState?: string | undefined;
|
|
18
51
|
};
|
|
19
52
|
/** @internal */
|
|
20
53
|
export declare const PasswordNotSetResponse$inboundSchema: z.ZodType<PasswordNotSetResponse, z.ZodTypeDef, unknown>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"passwordnotsetresponse.d.ts","sourceRoot":"","sources":["../../../../src/models/components/passwordnotsetresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,OAAO,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"passwordnotsetresponse.d.ts","sourceRoot":"","sources":["../../../../src/models/components/passwordnotsetresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,OAAO,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+BG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC/B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,oCAAoC,EAAE,CAAC,CAAC,OAAO,CAC1D,sBAAsB,EACtB,CAAC,CAAC,UAAU,EACZ,OAAO,CAYP,CAAC;AAEH,wBAAgB,8BAA8B,CAC5C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,sBAAsB,EAAE,kBAAkB,CAAC,CAM7D"}
|
|
@@ -11,9 +11,11 @@ export const PasswordNotSetResponse$inboundSchema = z.object({
|
|
|
11
11
|
success: types.boolean(),
|
|
12
12
|
error: types.string(),
|
|
13
13
|
redirect_url: types.string(),
|
|
14
|
+
sso_state: types.optional(types.string()),
|
|
14
15
|
}).transform((v) => {
|
|
15
16
|
return remap$(v, {
|
|
16
17
|
"redirect_url": "redirectUrl",
|
|
18
|
+
"sso_state": "ssoState",
|
|
17
19
|
});
|
|
18
20
|
});
|
|
19
21
|
export function passwordNotSetResponseFromJSON(jsonString) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"passwordnotsetresponse.js","sourceRoot":"","sources":["../../../../src/models/components/passwordnotsetresponse.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEjD,OAAO,KAAK,KAAK,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"passwordnotsetresponse.js","sourceRoot":"","sources":["../../../../src/models/components/passwordnotsetresponse.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEjD,OAAO,KAAK,KAAK,MAAM,2BAA2B,CAAC;AAoDnD,gBAAgB;AAChB,MAAM,CAAC,MAAM,oCAAoC,GAI7C,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,KAAK,CAAC,OAAO,CAAC,gBAAgB,CAAC;IACzC,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE;IACxB,KAAK,EAAE,KAAK,CAAC,MAAM,EAAE;IACrB,YAAY,EAAE,KAAK,CAAC,MAAM,EAAE;IAC5B,SAAS,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;CAC1C,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,cAAc,EAAE,aAAa;QAC7B,WAAW,EAAE,UAAU;KACxB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,8BAA8B,CAC5C,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,oCAAoC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAChE,oDAAoD,CACrD,CAAC;AACJ,CAAC"}
|
|
@@ -11,6 +11,39 @@ export type PasswordRequiredResponse = {
|
|
|
11
11
|
* Error describing the exact condition of what further steps are needed to finish the login process.
|
|
12
12
|
*/
|
|
13
13
|
error: string;
|
|
14
|
+
/**
|
|
15
|
+
* Opaque, signed state that Green Security issues when a third-party service
|
|
16
|
+
*
|
|
17
|
+
* @remarks
|
|
18
|
+
* provider starts a "Login with Green Security" SAML flow at
|
|
19
|
+
* `/saml/idp/sso`. The login screen receives it as the `sso_state` query
|
|
20
|
+
* string parameter and must pass it back, byte for byte, on every call to
|
|
21
|
+
* this endpoint for the remainder of the login journey — including the
|
|
22
|
+
* second call that carries an `mfa_code`.
|
|
23
|
+
*
|
|
24
|
+
* The blob is signed, not encrypted, and it expires five minutes after the
|
|
25
|
+
* service provider's request arrives. Do not parse it, shorten it, decode
|
|
26
|
+
* it, or re-encode it.
|
|
27
|
+
*
|
|
28
|
+
* **An invalid blob does not fail the login.** This is the opposite of what
|
|
29
|
+
* most integrators assume, so it is worth stating plainly: a forged, edited
|
|
30
|
+
* or expired `sso_state` is silently discarded, and the request then
|
|
31
|
+
* proceeds as an ordinary login. Valid credentials still authenticate and
|
|
32
|
+
* still return `200` — just with no `sso` object, leaving the user signed in
|
|
33
|
+
* to Green Security with no way back to the service provider that sent them.
|
|
34
|
+
* Never treat a `200` as proof that the SSO hand-off survived; check for
|
|
35
|
+
* `sso` explicitly.
|
|
36
|
+
*
|
|
37
|
+
* Every `202` response echoes the *verified* blob back in its own
|
|
38
|
+
* `sso_state` field. Always send back the value from the response you just
|
|
39
|
+
* received rather than the one you started with, so that a blob the server
|
|
40
|
+
* has already rejected is never resent, and so a client does not have to
|
|
41
|
+
* hold state of its own across the login journey.
|
|
42
|
+
*
|
|
43
|
+
* Omit this field entirely for an ordinary login that did not originate
|
|
44
|
+
* from a service provider.
|
|
45
|
+
*/
|
|
46
|
+
ssoState?: string | undefined;
|
|
14
47
|
};
|
|
15
48
|
/** @internal */
|
|
16
49
|
export declare const PasswordRequiredResponse$inboundSchema: z.ZodType<PasswordRequiredResponse, z.ZodTypeDef, unknown>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"passwordrequiredresponse.d.ts","sourceRoot":"","sources":["../../../../src/models/components/passwordrequiredresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"passwordrequiredresponse.d.ts","sourceRoot":"","sources":["../../../../src/models/components/passwordrequiredresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC,QAAQ,EAAE,UAAU,CAAC;IACrB,OAAO,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+BG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC/B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,sCAAsC,EAAE,CAAC,CAAC,OAAO,CAC5D,wBAAwB,EACxB,CAAC,CAAC,UAAU,EACZ,OAAO,CAUP,CAAC;AAEH,wBAAgB,gCAAgC,CAC9C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,wBAAwB,EAAE,kBAAkB,CAAC,CAM/D"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
import * as z from "zod/v3";
|
|
5
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
5
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
6
7
|
import * as types from "../../types/primitives.js";
|
|
7
8
|
/** @internal */
|
|
@@ -9,6 +10,11 @@ export const PasswordRequiredResponse$inboundSchema = z.object({
|
|
|
9
10
|
requires: types.literal("password"),
|
|
10
11
|
success: types.boolean(),
|
|
11
12
|
error: types.string(),
|
|
13
|
+
sso_state: types.optional(types.string()),
|
|
14
|
+
}).transform((v) => {
|
|
15
|
+
return remap$(v, {
|
|
16
|
+
"sso_state": "ssoState",
|
|
17
|
+
});
|
|
12
18
|
});
|
|
13
19
|
export function passwordRequiredResponseFromJSON(jsonString) {
|
|
14
20
|
return safeParse(jsonString, (x) => PasswordRequiredResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PasswordRequiredResponse' from JSON`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"passwordrequiredresponse.js","sourceRoot":"","sources":["../../../../src/models/components/passwordrequiredresponse.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEjD,OAAO,KAAK,KAAK,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"passwordrequiredresponse.js","sourceRoot":"","sources":["../../../../src/models/components/passwordrequiredresponse.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEjD,OAAO,KAAK,KAAK,MAAM,2BAA2B,CAAC;AAgDnD,gBAAgB;AAChB,MAAM,CAAC,MAAM,sCAAsC,GAI/C,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC;IACnC,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE;IACxB,KAAK,EAAE,KAAK,CAAC,MAAM,EAAE;IACrB,SAAS,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;CAC1C,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,WAAW,EAAE,UAAU;KACxB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,gCAAgC,CAC9C,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,sCAAsC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAClE,sDAAsD,CACvD,CAAC;AACJ,CAAC"}
|
|
@@ -20,6 +20,39 @@ export type SamlLoginRequiredResponse = {
|
|
|
20
20
|
* This is the URL that should be opened to initiate the SAML login flow
|
|
21
21
|
*/
|
|
22
22
|
ssoUrl: string;
|
|
23
|
+
/**
|
|
24
|
+
* Opaque, signed state that Green Security issues when a third-party service
|
|
25
|
+
*
|
|
26
|
+
* @remarks
|
|
27
|
+
* provider starts a "Login with Green Security" SAML flow at
|
|
28
|
+
* `/saml/idp/sso`. The login screen receives it as the `sso_state` query
|
|
29
|
+
* string parameter and must pass it back, byte for byte, on every call to
|
|
30
|
+
* this endpoint for the remainder of the login journey — including the
|
|
31
|
+
* second call that carries an `mfa_code`.
|
|
32
|
+
*
|
|
33
|
+
* The blob is signed, not encrypted, and it expires five minutes after the
|
|
34
|
+
* service provider's request arrives. Do not parse it, shorten it, decode
|
|
35
|
+
* it, or re-encode it.
|
|
36
|
+
*
|
|
37
|
+
* **An invalid blob does not fail the login.** This is the opposite of what
|
|
38
|
+
* most integrators assume, so it is worth stating plainly: a forged, edited
|
|
39
|
+
* or expired `sso_state` is silently discarded, and the request then
|
|
40
|
+
* proceeds as an ordinary login. Valid credentials still authenticate and
|
|
41
|
+
* still return `200` — just with no `sso` object, leaving the user signed in
|
|
42
|
+
* to Green Security with no way back to the service provider that sent them.
|
|
43
|
+
* Never treat a `200` as proof that the SSO hand-off survived; check for
|
|
44
|
+
* `sso` explicitly.
|
|
45
|
+
*
|
|
46
|
+
* Every `202` response echoes the *verified* blob back in its own
|
|
47
|
+
* `sso_state` field. Always send back the value from the response you just
|
|
48
|
+
* received rather than the one you started with, so that a blob the server
|
|
49
|
+
* has already rejected is never resent, and so a client does not have to
|
|
50
|
+
* hold state of its own across the login journey.
|
|
51
|
+
*
|
|
52
|
+
* Omit this field entirely for an ordinary login that did not originate
|
|
53
|
+
* from a service provider.
|
|
54
|
+
*/
|
|
55
|
+
ssoState?: string | undefined;
|
|
23
56
|
};
|
|
24
57
|
/** @internal */
|
|
25
58
|
export declare const SamlLoginRequiredResponse$inboundSchema: z.ZodType<SamlLoginRequiredResponse, z.ZodTypeDef, unknown>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"samlloginrequiredresponse.d.ts","sourceRoot":"","sources":["../../../../src/models/components/samlloginrequiredresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;;;;;GAMG;AACH,MAAM,MAAM,yBAAyB,GAAG;IACtC,QAAQ,EAAE,YAAY,CAAC;IACvB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"samlloginrequiredresponse.d.ts","sourceRoot":"","sources":["../../../../src/models/components/samlloginrequiredresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;;;;;GAMG;AACH,MAAM,MAAM,yBAAyB,GAAG;IACtC,QAAQ,EAAE,YAAY,CAAC;IACvB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+BG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC/B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,uCAAuC,EAAE,CAAC,CAAC,OAAO,CAC7D,yBAAyB,EACzB,CAAC,CAAC,UAAU,EACZ,OAAO,CAcP,CAAC;AAEH,wBAAgB,iCAAiC,CAC/C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,yBAAyB,EAAE,kBAAkB,CAAC,CAMhE"}
|
|
@@ -12,10 +12,12 @@ export const SamlLoginRequiredResponse$inboundSchema = z.object({
|
|
|
12
12
|
error: types.string(),
|
|
13
13
|
sso_instructions: types.optional(types.string()),
|
|
14
14
|
sso_url: types.string(),
|
|
15
|
+
sso_state: types.optional(types.string()),
|
|
15
16
|
}).transform((v) => {
|
|
16
17
|
return remap$(v, {
|
|
17
18
|
"sso_instructions": "ssoInstructions",
|
|
18
19
|
"sso_url": "ssoUrl",
|
|
20
|
+
"sso_state": "ssoState",
|
|
19
21
|
});
|
|
20
22
|
});
|
|
21
23
|
export function samlLoginRequiredResponseFromJSON(jsonString) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"samlloginrequiredresponse.js","sourceRoot":"","sources":["../../../../src/models/components/samlloginrequiredresponse.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEjD,OAAO,KAAK,KAAK,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"samlloginrequiredresponse.js","sourceRoot":"","sources":["../../../../src/models/components/samlloginrequiredresponse.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEjD,OAAO,KAAK,KAAK,MAAM,2BAA2B,CAAC;AAyDnD,gBAAgB;AAChB,MAAM,CAAC,MAAM,uCAAuC,GAIhD,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,KAAK,CAAC,OAAO,CAAC,YAAY,CAAC;IACrC,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE;IACxB,KAAK,EAAE,KAAK,CAAC,MAAM,EAAE;IACrB,gBAAgB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;IAChD,OAAO,EAAE,KAAK,CAAC,MAAM,EAAE;IACvB,SAAS,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;CAC1C,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,kBAAkB,EAAE,iBAAiB;QACrC,SAAS,EAAE,QAAQ;QACnB,WAAW,EAAE,UAAU;KACxB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,iCAAiC,CAC/C,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,uCAAuC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACnE,uDAAuD,CACxD,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
/**
|
|
5
|
+
* Where to send the browser to finish a "Login with Green Security" flow.
|
|
6
|
+
*
|
|
7
|
+
* @remarks
|
|
8
|
+
*
|
|
9
|
+
* Present on a `200` from `POST /users/authenticate` only when the request
|
|
10
|
+
* carried a valid, unexpired `sso_state`. Its absence means the login
|
|
11
|
+
* succeeded but the SAML flow did not resume — treat the login as an
|
|
12
|
+
* ordinary one rather than retrying.
|
|
13
|
+
*
|
|
14
|
+
* This object is additive. The login itself is unaffected by it: the
|
|
15
|
+
* caller's own permanent token is in `user_token` exactly as it would be on
|
|
16
|
+
* any other successful authentication, and it is not the token embedded in
|
|
17
|
+
* `continue_url`.
|
|
18
|
+
*/
|
|
19
|
+
export type SsoContinuation = {
|
|
20
|
+
/**
|
|
21
|
+
* An absolute, single-use URL on Green Security's domain. Navigate the
|
|
22
|
+
*
|
|
23
|
+
* @remarks
|
|
24
|
+
* browser to it (a full page navigation, not `fetch`); it answers with a
|
|
25
|
+
* self-submitting form that POSTs the signed `SAMLResponse` and the
|
|
26
|
+
* original `RelayState` to the service provider's assertion consumer
|
|
27
|
+
* service URL.
|
|
28
|
+
*
|
|
29
|
+
* The `token` in this URL is a separate **one-time** token that is
|
|
30
|
+
* consumed the first time the URL is followed, so the URL is good for
|
|
31
|
+
* exactly one navigation. It is not the caller's permanent token, which
|
|
32
|
+
* is returned unchanged in `user_token`. Treat the URL as a secret:
|
|
33
|
+
* whoever follows it first receives that user's assertion.
|
|
34
|
+
*
|
|
35
|
+
* Never fetch this URL from your own back end: the response is meant for
|
|
36
|
+
* the user's browser, and posting the assertion from anywhere else
|
|
37
|
+
* breaks the flow.
|
|
38
|
+
*/
|
|
39
|
+
continueUrl: string;
|
|
40
|
+
};
|
|
41
|
+
/** @internal */
|
|
42
|
+
export declare const SsoContinuation$inboundSchema: z.ZodType<SsoContinuation, z.ZodTypeDef, unknown>;
|
|
43
|
+
export declare function ssoContinuationFromJSON(jsonString: string): SafeParseResult<SsoContinuation, SDKValidationError>;
|
|
44
|
+
//# sourceMappingURL=ssocontinuation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ssocontinuation.d.ts","sourceRoot":"","sources":["../../../../src/models/components/ssocontinuation.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B;;;;;;;;;;;;;;;;;;OAkBG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,6BAA6B,EAAE,CAAC,CAAC,OAAO,CACnD,eAAe,EACf,CAAC,CAAC,UAAU,EACZ,OAAO,CAOP,CAAC;AAEH,wBAAgB,uBAAuB,CACrC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,eAAe,EAAE,kBAAkB,CAAC,CAMtD"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod/v3";
|
|
5
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import * as types from "../../types/primitives.js";
|
|
8
|
+
/** @internal */
|
|
9
|
+
export const SsoContinuation$inboundSchema = z.object({
|
|
10
|
+
continue_url: types.string(),
|
|
11
|
+
}).transform((v) => {
|
|
12
|
+
return remap$(v, {
|
|
13
|
+
"continue_url": "continueUrl",
|
|
14
|
+
});
|
|
15
|
+
});
|
|
16
|
+
export function ssoContinuationFromJSON(jsonString) {
|
|
17
|
+
return safeParse(jsonString, (x) => SsoContinuation$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SsoContinuation' from JSON`);
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=ssocontinuation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ssocontinuation.js","sourceRoot":"","sources":["../../../../src/models/components/ssocontinuation.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEjD,OAAO,KAAK,KAAK,MAAM,2BAA2B,CAAC;AAyCnD,gBAAgB;AAChB,MAAM,CAAC,MAAM,6BAA6B,GAItC,CAAC,CAAC,MAAM,CAAC;IACX,YAAY,EAAE,KAAK,CAAC,MAAM,EAAE;CAC7B,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,cAAc,EAAE,aAAa;KAC9B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,uBAAuB,CACrC,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,6BAA6B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACzD,6CAA6C,CAC9C,CAAC;AACJ,CAAC"}
|
|
@@ -7,6 +7,9 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
7
7
|
* and `destroyed` lifecycle of every entity that supports webhooks.
|
|
8
8
|
*/
|
|
9
9
|
export declare const WebhookSubscription: {
|
|
10
|
+
readonly FullReportCreated: "FullReport.created";
|
|
11
|
+
readonly FullReportUpdated: "FullReport.updated";
|
|
12
|
+
readonly FullReportDestroyed: "FullReport.destroyed";
|
|
10
13
|
readonly TargetFacilityStatusChangeCreated: "TargetFacilityStatusChange.created";
|
|
11
14
|
readonly TargetFacilityStatusChangeUpdated: "TargetFacilityStatusChange.updated";
|
|
12
15
|
readonly TargetFacilityStatusChangeDestroyed: "TargetFacilityStatusChange.destroyed";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhooksubscription.d.ts","sourceRoot":"","sources":["../../../../src/models/components/webhooksubscription.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"webhooksubscription.d.ts","sourceRoot":"","sources":["../../../../src/models/components/webhooksubscription.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;CAgBtB,CAAC;AACX;;;;;GAKG;AACH,MAAM,MAAM,mBAAmB,GAAG,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEzE,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,aAAa,CAC9D,OAAO,mBAAmB,CACS,CAAC"}
|
|
@@ -9,6 +9,9 @@ import * as z from "zod/v3";
|
|
|
9
9
|
* and `destroyed` lifecycle of every entity that supports webhooks.
|
|
10
10
|
*/
|
|
11
11
|
export const WebhookSubscription = {
|
|
12
|
+
FullReportCreated: "FullReport.created",
|
|
13
|
+
FullReportUpdated: "FullReport.updated",
|
|
14
|
+
FullReportDestroyed: "FullReport.destroyed",
|
|
12
15
|
TargetFacilityStatusChangeCreated: "TargetFacilityStatusChange.created",
|
|
13
16
|
TargetFacilityStatusChangeUpdated: "TargetFacilityStatusChange.updated",
|
|
14
17
|
TargetFacilityStatusChangeDestroyed: "TargetFacilityStatusChange.destroyed",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhooksubscription.js","sourceRoot":"","sources":["../../../../src/models/components/webhooksubscription.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B;;;;;GAKG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,iCAAiC,EAAE,oCAAoC;IACvE,iCAAiC,EAAE,oCAAoC;IACvE,mCAAmC,EAAE,sCAAsC;IAC3E,aAAa,EAAE,gBAAgB;IAC/B,aAAa,EAAE,gBAAgB;IAC/B,eAAe,EAAE,kBAAkB;IACnC,iBAAiB,EAAE,oBAAoB;IACvC,iBAAiB,EAAE,oBAAoB;IACvC,mBAAmB,EAAE,sBAAsB;IAC3C,qBAAqB,EAAE,wBAAwB;IAC/C,qBAAqB,EAAE,wBAAwB;IAC/C,uBAAuB,EAAE,0BAA0B;CAC3C,CAAC;AASX,gBAAgB;AAChB,MAAM,CAAC,MAAM,kCAAkC,GAE3C,CAAC,CAAC,UAAU,CAAC,mBAAmB,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"webhooksubscription.js","sourceRoot":"","sources":["../../../../src/models/components/webhooksubscription.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B;;;;;GAKG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,iBAAiB,EAAE,oBAAoB;IACvC,iBAAiB,EAAE,oBAAoB;IACvC,mBAAmB,EAAE,sBAAsB;IAC3C,iCAAiC,EAAE,oCAAoC;IACvE,iCAAiC,EAAE,oCAAoC;IACvE,mCAAmC,EAAE,sCAAsC;IAC3E,aAAa,EAAE,gBAAgB;IAC/B,aAAa,EAAE,gBAAgB;IAC/B,eAAe,EAAE,kBAAkB;IACnC,iBAAiB,EAAE,oBAAoB;IACvC,iBAAiB,EAAE,oBAAoB;IACvC,mBAAmB,EAAE,sBAAsB;IAC3C,qBAAqB,EAAE,wBAAwB;IAC/C,qBAAqB,EAAE,wBAAwB;IAC/C,uBAAuB,EAAE,0BAA0B;CAC3C,CAAC;AASX,gBAAgB;AAChB,MAAM,CAAC,MAAM,kCAAkC,GAE3C,CAAC,CAAC,UAAU,CAAC,mBAAmB,CAAC,CAAC"}
|
|
@@ -6,6 +6,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
6
6
|
* The entity the event is about.
|
|
7
7
|
*/
|
|
8
8
|
export declare const Model: {
|
|
9
|
+
readonly FullReport: "FullReport";
|
|
9
10
|
readonly TargetFacilityStatusChange: "TargetFacilityStatusChange";
|
|
10
11
|
readonly Vendor: "Vendor";
|
|
11
12
|
readonly VendorScan: "VendorScan";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhooksubscriptiondetail.d.ts","sourceRoot":"","sources":["../../../../src/models/components/webhooksubscriptiondetail.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,eAAO,MAAM,KAAK
|
|
1
|
+
{"version":3,"file":"webhooksubscriptiondetail.d.ts","sourceRoot":"","sources":["../../../../src/models/components/webhooksubscriptiondetail.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,eAAO,MAAM,KAAK;;;;;;CAMR,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,KAAK,GAAG,QAAQ,CAAC,OAAO,KAAK,CAAC,CAAC;AAE3C;;GAEG;AACH,eAAO,MAAM,MAAM;;;;CAIT,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,MAAM,GAAG,QAAQ,CAAC,OAAO,MAAM,CAAC,CAAC;AAE7C;;;;;GAKG;AACH,MAAM,MAAM,yBAAyB,GAAG;IACtC;;OAEG;IACH,KAAK,EAAE,KAAK,CAAC;IACb;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;;;;;;;;;;;;OAeG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC9B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mBAAmB,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC,UAAU,EAAE,OAAO,CACxC,CAAC;AACjC,gBAAgB;AAChB,eAAO,MAAM,oBAAoB,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,UAAU,EAAE,KAAK,CACvC,CAAC;AAElC,gBAAgB;AAChB,eAAO,MAAM,oBAAoB,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,UAAU,EAAE,OAAO,CACzC,CAAC;AAClC,gBAAgB;AAChB,eAAO,MAAM,qBAAqB,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,UAAU,EAAE,MAAM,CACxC,CAAC;AAEnC,gBAAgB;AAChB,eAAO,MAAM,uCAAuC,EAAE,CAAC,CAAC,OAAO,CAC7D,yBAAyB,EACzB,CAAC,CAAC,UAAU,EACZ,OAAO,CAKP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,kCAAkC,GAAG;IAC/C,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC9B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,wCAAwC,EAAE,CAAC,CAAC,OAAO,CAC9D,kCAAkC,EAClC,CAAC,CAAC,UAAU,EACZ,yBAAyB,CAKzB,CAAC;AAEH,wBAAgB,+BAA+B,CAC7C,yBAAyB,EAAE,yBAAyB,GACnD,MAAM,CAIR;AACD,wBAAgB,iCAAiC,CAC/C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,yBAAyB,EAAE,kBAAkB,CAAC,CAMhE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhooksubscriptiondetail.js","sourceRoot":"","sources":["../../../../src/models/components/webhooksubscriptiondetail.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,KAAK,SAAS,MAAM,sBAAsB,CAAC;AAGlD,OAAO,KAAK,KAAK,MAAM,2BAA2B,CAAC;AAGnD;;GAEG;AACH,MAAM,CAAC,MAAM,KAAK,GAAG;IACnB,0BAA0B,EAAE,4BAA4B;IACxD,MAAM,EAAE,QAAQ;IAChB,UAAU,EAAE,YAAY;IACxB,cAAc,EAAE,gBAAgB;CACxB,CAAC;AAMX;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,SAAS,EAAE,WAAW;CACd,CAAC;AAwCX,gBAAgB;AAChB,MAAM,CAAC,MAAM,mBAAmB,GAC9B,SAAS,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;AACjC,gBAAgB;AAChB,MAAM,CAAC,MAAM,oBAAoB,GAC/B,SAAS,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;AAElC,gBAAgB;AAChB,MAAM,CAAC,MAAM,oBAAoB,GAC/B,SAAS,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;AAClC,gBAAgB;AAChB,MAAM,CAAC,MAAM,qBAAqB,GAChC,SAAS,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;AAEnC,gBAAgB;AAChB,MAAM,CAAC,MAAM,uCAAuC,GAIhD,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,mBAAmB;IAC1B,MAAM,EAAE,oBAAoB;IAC5B,OAAO,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;CACxC,CAAC,CAAC;AAQH,gBAAgB;AAChB,MAAM,CAAC,MAAM,wCAAwC,GAIjD,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,oBAAoB;IAC3B,MAAM,EAAE,qBAAqB;IAC7B,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC/B,CAAC,CAAC;AAEH,MAAM,UAAU,+BAA+B,CAC7C,yBAAoD;IAEpD,OAAO,IAAI,CAAC,SAAS,CACnB,wCAAwC,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAC1E,CAAC;AACJ,CAAC;AACD,MAAM,UAAU,iCAAiC,CAC/C,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,uCAAuC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACnE,uDAAuD,CACxD,CAAC;AACJ,CAAC"}
|
|
1
|
+
{"version":3,"file":"webhooksubscriptiondetail.js","sourceRoot":"","sources":["../../../../src/models/components/webhooksubscriptiondetail.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,KAAK,SAAS,MAAM,sBAAsB,CAAC;AAGlD,OAAO,KAAK,KAAK,MAAM,2BAA2B,CAAC;AAGnD;;GAEG;AACH,MAAM,CAAC,MAAM,KAAK,GAAG;IACnB,UAAU,EAAE,YAAY;IACxB,0BAA0B,EAAE,4BAA4B;IACxD,MAAM,EAAE,QAAQ;IAChB,UAAU,EAAE,YAAY;IACxB,cAAc,EAAE,gBAAgB;CACxB,CAAC;AAMX;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,SAAS,EAAE,WAAW;CACd,CAAC;AAwCX,gBAAgB;AAChB,MAAM,CAAC,MAAM,mBAAmB,GAC9B,SAAS,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;AACjC,gBAAgB;AAChB,MAAM,CAAC,MAAM,oBAAoB,GAC/B,SAAS,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;AAElC,gBAAgB;AAChB,MAAM,CAAC,MAAM,oBAAoB,GAC/B,SAAS,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;AAClC,gBAAgB;AAChB,MAAM,CAAC,MAAM,qBAAqB,GAChC,SAAS,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;AAEnC,gBAAgB;AAChB,MAAM,CAAC,MAAM,uCAAuC,GAIhD,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,mBAAmB;IAC1B,MAAM,EAAE,oBAAoB;IAC5B,OAAO,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;CACxC,CAAC,CAAC;AAQH,gBAAgB;AAChB,MAAM,CAAC,MAAM,wCAAwC,GAIjD,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,oBAAoB;IAC3B,MAAM,EAAE,qBAAqB;IAC7B,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC/B,CAAC,CAAC;AAEH,MAAM,UAAU,+BAA+B,CAC7C,yBAAoD;IAEpD,OAAO,IAAI,CAAC,SAAS,CACnB,wCAAwC,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAC1E,CAAC;AACJ,CAAC;AACD,MAAM,UAAU,iCAAiC,CAC/C,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,uCAAuC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACnE,uDAAuD,CACxD,CAAC;AACJ,CAAC"}
|
|
@@ -10,7 +10,7 @@ export type PostAuthenticateRequestBody = components.LoginEmailAndPassword | com
|
|
|
10
10
|
* The request has been accepted for processing, but the processing has not been completed. The request might be processed later.
|
|
11
11
|
*/
|
|
12
12
|
export type PostAuthenticateResponseBody = components.MfaRequiredResponse | components.SamlLoginRequiredResponse | components.PasswordRequiredResponse | components.PasswordNotSetResponse;
|
|
13
|
-
export type PostAuthenticateResponse = components.
|
|
13
|
+
export type PostAuthenticateResponse = components.AuthenticateSuccessResponse | components.MfaRequiredResponse | components.SamlLoginRequiredResponse | components.PasswordRequiredResponse | components.PasswordNotSetResponse;
|
|
14
14
|
/** @internal */
|
|
15
15
|
export type PostAuthenticateRequestBody$Outbound = components.LoginEmailAndPassword$Outbound | components.LoginRequirementsFromEmail$Outbound;
|
|
16
16
|
/** @internal */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postauthenticate.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/postauthenticate.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,2BAA2B,GACnC,UAAU,CAAC,qBAAqB,GAChC,UAAU,CAAC,0BAA0B,CAAC;AAE1C;;GAEG;AACH,MAAM,MAAM,4BAA4B,GACpC,UAAU,CAAC,mBAAmB,GAC9B,UAAU,CAAC,yBAAyB,GACpC,UAAU,CAAC,wBAAwB,GACnC,UAAU,CAAC,sBAAsB,CAAC;AAEtC,MAAM,MAAM,wBAAwB,GAChC,UAAU,CAAC,
|
|
1
|
+
{"version":3,"file":"postauthenticate.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/postauthenticate.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,2BAA2B,GACnC,UAAU,CAAC,qBAAqB,GAChC,UAAU,CAAC,0BAA0B,CAAC;AAE1C;;GAEG;AACH,MAAM,MAAM,4BAA4B,GACpC,UAAU,CAAC,mBAAmB,GAC9B,UAAU,CAAC,yBAAyB,GACpC,UAAU,CAAC,wBAAwB,GACnC,UAAU,CAAC,sBAAsB,CAAC;AAEtC,MAAM,MAAM,wBAAwB,GAChC,UAAU,CAAC,2BAA2B,GACtC,UAAU,CAAC,mBAAmB,GAC9B,UAAU,CAAC,yBAAyB,GACpC,UAAU,CAAC,wBAAwB,GACnC,UAAU,CAAC,sBAAsB,CAAC;AAEtC,gBAAgB;AAChB,MAAM,MAAM,oCAAoC,GAC5C,UAAU,CAAC,8BAA8B,GACzC,UAAU,CAAC,mCAAmC,CAAC;AAEnD,gBAAgB;AAChB,eAAO,MAAM,0CAA0C,EAAE,CAAC,CAAC,OAAO,CAChE,oCAAoC,EACpC,CAAC,CAAC,UAAU,EACZ,2BAA2B,CAI3B,CAAC;AAEH,wBAAgB,iCAAiC,CAC/C,2BAA2B,EAAE,2BAA2B,GACvD,MAAM,CAMR;AAED,gBAAgB;AAChB,eAAO,MAAM,0CAA0C,EAAE,CAAC,CAAC,OAAO,CAChE,4BAA4B,EAC5B,CAAC,CAAC,UAAU,EACZ,OAAO,CAMP,CAAC;AAEH,wBAAgB,oCAAoC,CAClD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,4BAA4B,EAAE,kBAAkB,CAAC,CAMnE;AAED,gBAAgB;AAChB,eAAO,MAAM,sCAAsC,EAAE,CAAC,CAAC,OAAO,CAC5D,wBAAwB,EACxB,CAAC,CAAC,UAAU,EACZ,OAAO,CASP,CAAC;AAEH,wBAAgB,gCAAgC,CAC9C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,wBAAwB,EAAE,kBAAkB,CAAC,CAM/D"}
|
|
@@ -25,7 +25,7 @@ export function postAuthenticateResponseBodyFromJSON(jsonString) {
|
|
|
25
25
|
}
|
|
26
26
|
/** @internal */
|
|
27
27
|
export const PostAuthenticateResponse$inboundSchema = smartUnion([
|
|
28
|
-
components.
|
|
28
|
+
components.AuthenticateSuccessResponse$inboundSchema,
|
|
29
29
|
z.union([
|
|
30
30
|
components.MfaRequiredResponse$inboundSchema,
|
|
31
31
|
components.SamlLoginRequiredResponse$inboundSchema,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postauthenticate.js","sourceRoot":"","sources":["../../../../src/models/operations/postauthenticate.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEjD,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AA+BrD,gBAAgB;AAChB,MAAM,CAAC,MAAM,0CAA0C,GAInD,UAAU,CAAC;IACb,UAAU,CAAC,oCAAoC;IAC/C,UAAU,CAAC,yCAAyC;CACrD,CAAC,CAAC;AAEH,MAAM,UAAU,iCAAiC,CAC/C,2BAAwD;IAExD,OAAO,IAAI,CAAC,SAAS,CACnB,0CAA0C,CAAC,KAAK,CAC9C,2BAA2B,CAC5B,CACF,CAAC;AACJ,CAAC;AAED,gBAAgB;AAChB,MAAM,CAAC,MAAM,0CAA0C,GAInD,CAAC,CAAC,KAAK,CAAC;IACV,UAAU,CAAC,iCAAiC;IAC5C,UAAU,CAAC,uCAAuC;IAClD,UAAU,CAAC,sCAAsC;IACjD,UAAU,CAAC,oCAAoC;CAChD,CAAC,CAAC;AAEH,MAAM,UAAU,oCAAoC,CAClD,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,0CAA0C,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACtE,0DAA0D,CAC3D,CAAC;AACJ,CAAC;AAED,gBAAgB;AAChB,MAAM,CAAC,MAAM,sCAAsC,GAI/C,UAAU,CAAC;IACb,UAAU,CAAC,
|
|
1
|
+
{"version":3,"file":"postauthenticate.js","sourceRoot":"","sources":["../../../../src/models/operations/postauthenticate.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEjD,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AA+BrD,gBAAgB;AAChB,MAAM,CAAC,MAAM,0CAA0C,GAInD,UAAU,CAAC;IACb,UAAU,CAAC,oCAAoC;IAC/C,UAAU,CAAC,yCAAyC;CACrD,CAAC,CAAC;AAEH,MAAM,UAAU,iCAAiC,CAC/C,2BAAwD;IAExD,OAAO,IAAI,CAAC,SAAS,CACnB,0CAA0C,CAAC,KAAK,CAC9C,2BAA2B,CAC5B,CACF,CAAC;AACJ,CAAC;AAED,gBAAgB;AAChB,MAAM,CAAC,MAAM,0CAA0C,GAInD,CAAC,CAAC,KAAK,CAAC;IACV,UAAU,CAAC,iCAAiC;IAC5C,UAAU,CAAC,uCAAuC;IAClD,UAAU,CAAC,sCAAsC;IACjD,UAAU,CAAC,oCAAoC;CAChD,CAAC,CAAC;AAEH,MAAM,UAAU,oCAAoC,CAClD,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,0CAA0C,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACtE,0DAA0D,CAC3D,CAAC;AACJ,CAAC;AAED,gBAAgB;AAChB,MAAM,CAAC,MAAM,sCAAsC,GAI/C,UAAU,CAAC;IACb,UAAU,CAAC,yCAAyC;IACpD,CAAC,CAAC,KAAK,CAAC;QACN,UAAU,CAAC,iCAAiC;QAC5C,UAAU,CAAC,uCAAuC;QAClD,UAAU,CAAC,sCAAsC;QACjD,UAAU,CAAC,oCAAoC;KAChD,CAAC;CACH,CAAC,CAAC;AAEH,MAAM,UAAU,gCAAgC,CAC9C,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,sCAAsC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAClE,sDAAsD,CACvD,CAAC;AACJ,CAAC"}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
export * from "./sendfullreportcreated.js";
|
|
2
|
+
export * from "./sendfullreportdestroyed.js";
|
|
3
|
+
export * from "./sendfullreportupdated.js";
|
|
1
4
|
export * from "./sendtargetfacilitystatuschangecreated.js";
|
|
2
5
|
export * from "./sendtargetfacilitystatuschangedestroyed.js";
|
|
3
6
|
export * from "./sendtargetfacilitystatuschangeupdated.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/models/webhooks/index.ts"],"names":[],"mappings":"AAIA,cAAc,4CAA4C,CAAC;AAC3D,cAAc,8CAA8C,CAAC;AAC7D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kCAAkC,CAAC;AACjD,cAAc,gCAAgC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/models/webhooks/index.ts"],"names":[],"mappings":"AAIA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4CAA4C,CAAC;AAC3D,cAAc,8CAA8C,CAAC;AAC7D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kCAAkC,CAAC;AACjD,cAAc,gCAAgC,CAAC"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
|
+
export * from "./sendfullreportcreated.js";
|
|
5
|
+
export * from "./sendfullreportdestroyed.js";
|
|
6
|
+
export * from "./sendfullreportupdated.js";
|
|
4
7
|
export * from "./sendtargetfacilitystatuschangecreated.js";
|
|
5
8
|
export * from "./sendtargetfacilitystatuschangedestroyed.js";
|
|
6
9
|
export * from "./sendtargetfacilitystatuschangeupdated.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/webhooks/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,4CAA4C,CAAC;AAC3D,cAAc,8CAA8C,CAAC;AAC7D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kCAAkC,CAAC;AACjD,cAAc,gCAAgC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/webhooks/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4CAA4C,CAAC;AAC3D,cAAc,8CAA8C,CAAC;AAC7D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kCAAkC,CAAC;AACjD,cAAc,gCAAgC,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import * as components from "../components/index.js";
|
|
4
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
|
+
export type SendFullReportCreatedRequest = {
|
|
6
|
+
/**
|
|
7
|
+
* `t=<unix seconds>,v1=<hex hmac>`, one `v1` per active secret. Each is
|
|
8
|
+
*
|
|
9
|
+
* @remarks
|
|
10
|
+
* `HMAC-SHA256(secret, "<t>.<raw body>")`. Compare with a constant-time function and
|
|
11
|
+
* reject a timestamp that is not recent.
|
|
12
|
+
*/
|
|
13
|
+
greenSecuritySignature: string;
|
|
14
|
+
/**
|
|
15
|
+
* The event this delivery belongs to. Route on it when one URL serves several events.
|
|
16
|
+
*/
|
|
17
|
+
greenSecurityEvent: string;
|
|
18
|
+
/**
|
|
19
|
+
* Stable per delivery, including across retries. Key your de-duplication on it.
|
|
20
|
+
*/
|
|
21
|
+
greenSecurityIdempotencyKey: string;
|
|
22
|
+
/**
|
|
23
|
+
* The entity in the body.
|
|
24
|
+
*/
|
|
25
|
+
greenWebhookId: string;
|
|
26
|
+
fullReport: components.FullReport;
|
|
27
|
+
};
|
|
28
|
+
/** @internal */
|
|
29
|
+
export declare const SendFullReportCreatedRequest$inboundSchema: z.ZodType<SendFullReportCreatedRequest, z.ZodTypeDef, unknown>;
|
|
30
|
+
/** @internal */
|
|
31
|
+
export type SendFullReportCreatedRequest$Outbound = {
|
|
32
|
+
"Green-Security-Signature": string;
|
|
33
|
+
"Green-Security-Event": string;
|
|
34
|
+
"Green-Security-Idempotency-Key": string;
|
|
35
|
+
"Green-Webhook-Id": string;
|
|
36
|
+
FullReport: components.FullReport$Outbound;
|
|
37
|
+
};
|
|
38
|
+
/** @internal */
|
|
39
|
+
export declare const SendFullReportCreatedRequest$outboundSchema: z.ZodType<SendFullReportCreatedRequest$Outbound, z.ZodTypeDef, SendFullReportCreatedRequest>;
|
|
40
|
+
export declare function sendFullReportCreatedRequestToJSON(sendFullReportCreatedRequest: SendFullReportCreatedRequest): string;
|
|
41
|
+
export declare function sendFullReportCreatedRequestFromJSON(jsonString: string): SafeParseResult<SendFullReportCreatedRequest, SDKValidationError>;
|
|
42
|
+
//# sourceMappingURL=sendfullreportcreated.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sendfullreportcreated.d.ts","sourceRoot":"","sources":["../../../../src/models/webhooks/sendfullreportcreated.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,4BAA4B,GAAG;IACzC;;;;;;OAMG;IACH,sBAAsB,EAAE,MAAM,CAAC;IAC/B;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,2BAA2B,EAAE,MAAM,CAAC;IACpC;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,UAAU,CAAC,UAAU,CAAC;CACnC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,0CAA0C,EAAE,CAAC,CAAC,OAAO,CAChE,4BAA4B,EAC5B,CAAC,CAAC,UAAU,EACZ,OAAO,CAeP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,qCAAqC,GAAG;IAClD,0BAA0B,EAAE,MAAM,CAAC;IACnC,sBAAsB,EAAE,MAAM,CAAC;IAC/B,gCAAgC,EAAE,MAAM,CAAC;IACzC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,UAAU,EAAE,UAAU,CAAC,mBAAmB,CAAC;CAC5C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,2CAA2C,EAAE,CAAC,CAAC,OAAO,CACjE,qCAAqC,EACrC,CAAC,CAAC,UAAU,EACZ,4BAA4B,CAe5B,CAAC;AAEH,wBAAgB,kCAAkC,CAChD,4BAA4B,EAAE,4BAA4B,GACzD,MAAM,CAMR;AACD,wBAAgB,oCAAoC,CAClD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,4BAA4B,EAAE,kBAAkB,CAAC,CAMnE"}
|