@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.
Files changed (238) hide show
  1. package/dist/commonjs/__tests__/vendors.test.js +1 -1
  2. package/dist/commonjs/__tests__/vendors.test.js.map +1 -1
  3. package/dist/commonjs/__tests__/webhooks.test.js +5 -6
  4. package/dist/commonjs/__tests__/webhooks.test.js.map +1 -1
  5. package/dist/commonjs/__tests__/zones.test.js +2 -27
  6. package/dist/commonjs/__tests__/zones.test.js.map +1 -1
  7. package/dist/commonjs/funcs/reportsGetFullReport.d.ts +3 -3
  8. package/dist/commonjs/funcs/reportsGetFullReport.js +3 -3
  9. package/dist/commonjs/funcs/usersPostAuthenticate.d.ts +37 -0
  10. package/dist/commonjs/funcs/usersPostAuthenticate.d.ts.map +1 -1
  11. package/dist/commonjs/funcs/usersPostAuthenticate.js +37 -0
  12. package/dist/commonjs/funcs/usersPostAuthenticate.js.map +1 -1
  13. package/dist/commonjs/funcs/validateWebhook.d.ts +1 -1
  14. package/dist/commonjs/funcs/validateWebhook.d.ts.map +1 -1
  15. package/dist/commonjs/funcs/validateWebhook.js +3 -0
  16. package/dist/commonjs/funcs/validateWebhook.js.map +1 -1
  17. package/dist/commonjs/funcs/vendorsSendDownloadCode.js +1 -1
  18. package/dist/commonjs/funcs/vendorsSendDownloadCode.js.map +1 -1
  19. package/dist/commonjs/lib/config.d.ts +2 -2
  20. package/dist/commonjs/lib/config.js +2 -2
  21. package/dist/commonjs/models/components/authenticatesuccessresponse.d.ts +91 -0
  22. package/dist/commonjs/models/components/authenticatesuccessresponse.d.ts.map +1 -0
  23. package/dist/commonjs/models/components/authenticatesuccessresponse.js +100 -0
  24. package/dist/commonjs/models/components/authenticatesuccessresponse.js.map +1 -0
  25. package/dist/commonjs/models/components/fullreport.d.ts +107 -0
  26. package/dist/commonjs/models/components/fullreport.d.ts.map +1 -0
  27. package/dist/commonjs/models/components/fullreport.js +125 -0
  28. package/dist/commonjs/models/components/fullreport.js.map +1 -0
  29. package/dist/commonjs/models/components/index.d.ts +3 -0
  30. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  31. package/dist/commonjs/models/components/index.js +3 -0
  32. package/dist/commonjs/models/components/index.js.map +1 -1
  33. package/dist/commonjs/models/components/loginemailandpassword.d.ts +34 -0
  34. package/dist/commonjs/models/components/loginemailandpassword.d.ts.map +1 -1
  35. package/dist/commonjs/models/components/loginemailandpassword.js +2 -0
  36. package/dist/commonjs/models/components/loginemailandpassword.js.map +1 -1
  37. package/dist/commonjs/models/components/loginrequirementsfromemail.d.ts +34 -0
  38. package/dist/commonjs/models/components/loginrequirementsfromemail.d.ts.map +1 -1
  39. package/dist/commonjs/models/components/loginrequirementsfromemail.js +2 -0
  40. package/dist/commonjs/models/components/loginrequirementsfromemail.js.map +1 -1
  41. package/dist/commonjs/models/components/mfarequiredresponse.d.ts +33 -0
  42. package/dist/commonjs/models/components/mfarequiredresponse.d.ts.map +1 -1
  43. package/dist/commonjs/models/components/mfarequiredresponse.js +2 -0
  44. package/dist/commonjs/models/components/mfarequiredresponse.js.map +1 -1
  45. package/dist/commonjs/models/components/passwordnotsetresponse.d.ts +34 -1
  46. package/dist/commonjs/models/components/passwordnotsetresponse.d.ts.map +1 -1
  47. package/dist/commonjs/models/components/passwordnotsetresponse.js +2 -0
  48. package/dist/commonjs/models/components/passwordnotsetresponse.js.map +1 -1
  49. package/dist/commonjs/models/components/passwordrequiredresponse.d.ts +33 -0
  50. package/dist/commonjs/models/components/passwordrequiredresponse.d.ts.map +1 -1
  51. package/dist/commonjs/models/components/passwordrequiredresponse.js +6 -0
  52. package/dist/commonjs/models/components/passwordrequiredresponse.js.map +1 -1
  53. package/dist/commonjs/models/components/samlloginrequiredresponse.d.ts +33 -0
  54. package/dist/commonjs/models/components/samlloginrequiredresponse.d.ts.map +1 -1
  55. package/dist/commonjs/models/components/samlloginrequiredresponse.js +2 -0
  56. package/dist/commonjs/models/components/samlloginrequiredresponse.js.map +1 -1
  57. package/dist/commonjs/models/components/ssocontinuation.d.ts +44 -0
  58. package/dist/commonjs/models/components/ssocontinuation.d.ts.map +1 -0
  59. package/dist/commonjs/models/components/ssocontinuation.js +56 -0
  60. package/dist/commonjs/models/components/ssocontinuation.js.map +1 -0
  61. package/dist/commonjs/models/components/webhooksubscription.d.ts +3 -0
  62. package/dist/commonjs/models/components/webhooksubscription.d.ts.map +1 -1
  63. package/dist/commonjs/models/components/webhooksubscription.js +3 -0
  64. package/dist/commonjs/models/components/webhooksubscription.js.map +1 -1
  65. package/dist/commonjs/models/components/webhooksubscriptiondetail.d.ts +1 -0
  66. package/dist/commonjs/models/components/webhooksubscriptiondetail.d.ts.map +1 -1
  67. package/dist/commonjs/models/components/webhooksubscriptiondetail.js +1 -0
  68. package/dist/commonjs/models/components/webhooksubscriptiondetail.js.map +1 -1
  69. package/dist/commonjs/models/operations/postauthenticate.d.ts +1 -1
  70. package/dist/commonjs/models/operations/postauthenticate.d.ts.map +1 -1
  71. package/dist/commonjs/models/operations/postauthenticate.js +1 -1
  72. package/dist/commonjs/models/operations/postauthenticate.js.map +1 -1
  73. package/dist/commonjs/models/webhooks/index.d.ts +3 -0
  74. package/dist/commonjs/models/webhooks/index.d.ts.map +1 -1
  75. package/dist/commonjs/models/webhooks/index.js +3 -0
  76. package/dist/commonjs/models/webhooks/index.js.map +1 -1
  77. package/dist/commonjs/models/webhooks/sendfullreportcreated.d.ts +42 -0
  78. package/dist/commonjs/models/webhooks/sendfullreportcreated.d.ts.map +1 -0
  79. package/dist/commonjs/models/webhooks/sendfullreportcreated.js +85 -0
  80. package/dist/commonjs/models/webhooks/sendfullreportcreated.js.map +1 -0
  81. package/dist/commonjs/models/webhooks/sendfullreportdestroyed.d.ts +42 -0
  82. package/dist/commonjs/models/webhooks/sendfullreportdestroyed.d.ts.map +1 -0
  83. package/dist/commonjs/models/webhooks/sendfullreportdestroyed.js +85 -0
  84. package/dist/commonjs/models/webhooks/sendfullreportdestroyed.js.map +1 -0
  85. package/dist/commonjs/models/webhooks/sendfullreportupdated.d.ts +42 -0
  86. package/dist/commonjs/models/webhooks/sendfullreportupdated.d.ts.map +1 -0
  87. package/dist/commonjs/models/webhooks/sendfullreportupdated.js +85 -0
  88. package/dist/commonjs/models/webhooks/sendfullreportupdated.js.map +1 -0
  89. package/dist/commonjs/react-query/reportsGetFullReport.d.ts +6 -6
  90. package/dist/commonjs/react-query/reportsGetFullReport.js +6 -6
  91. package/dist/commonjs/react-query/usersPostAuthenticate.d.ts +37 -0
  92. package/dist/commonjs/react-query/usersPostAuthenticate.d.ts.map +1 -1
  93. package/dist/commonjs/react-query/usersPostAuthenticate.js +37 -0
  94. package/dist/commonjs/react-query/usersPostAuthenticate.js.map +1 -1
  95. package/dist/commonjs/sdk/reports.d.ts +3 -3
  96. package/dist/commonjs/sdk/reports.js +3 -3
  97. package/dist/commonjs/sdk/sdk.d.ts +1 -1
  98. package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
  99. package/dist/commonjs/sdk/sdk.js.map +1 -1
  100. package/dist/commonjs/sdk/users.d.ts +37 -0
  101. package/dist/commonjs/sdk/users.d.ts.map +1 -1
  102. package/dist/commonjs/sdk/users.js +37 -0
  103. package/dist/commonjs/sdk/users.js.map +1 -1
  104. package/dist/esm/__tests__/vendors.test.js +1 -1
  105. package/dist/esm/__tests__/vendors.test.js.map +1 -1
  106. package/dist/esm/__tests__/webhooks.test.js +5 -6
  107. package/dist/esm/__tests__/webhooks.test.js.map +1 -1
  108. package/dist/esm/__tests__/zones.test.js +2 -27
  109. package/dist/esm/__tests__/zones.test.js.map +1 -1
  110. package/dist/esm/funcs/reportsGetFullReport.d.ts +3 -3
  111. package/dist/esm/funcs/reportsGetFullReport.js +3 -3
  112. package/dist/esm/funcs/usersPostAuthenticate.d.ts +37 -0
  113. package/dist/esm/funcs/usersPostAuthenticate.d.ts.map +1 -1
  114. package/dist/esm/funcs/usersPostAuthenticate.js +37 -0
  115. package/dist/esm/funcs/usersPostAuthenticate.js.map +1 -1
  116. package/dist/esm/funcs/validateWebhook.d.ts +1 -1
  117. package/dist/esm/funcs/validateWebhook.d.ts.map +1 -1
  118. package/dist/esm/funcs/validateWebhook.js +3 -0
  119. package/dist/esm/funcs/validateWebhook.js.map +1 -1
  120. package/dist/esm/funcs/vendorsSendDownloadCode.js +1 -1
  121. package/dist/esm/funcs/vendorsSendDownloadCode.js.map +1 -1
  122. package/dist/esm/lib/config.d.ts +2 -2
  123. package/dist/esm/lib/config.js +2 -2
  124. package/dist/esm/models/components/authenticatesuccessresponse.d.ts +91 -0
  125. package/dist/esm/models/components/authenticatesuccessresponse.d.ts.map +1 -0
  126. package/dist/esm/models/components/authenticatesuccessresponse.js +61 -0
  127. package/dist/esm/models/components/authenticatesuccessresponse.js.map +1 -0
  128. package/dist/esm/models/components/fullreport.d.ts +107 -0
  129. package/dist/esm/models/components/fullreport.d.ts.map +1 -0
  130. package/dist/esm/models/components/fullreport.js +87 -0
  131. package/dist/esm/models/components/fullreport.js.map +1 -0
  132. package/dist/esm/models/components/index.d.ts +3 -0
  133. package/dist/esm/models/components/index.d.ts.map +1 -1
  134. package/dist/esm/models/components/index.js +3 -0
  135. package/dist/esm/models/components/index.js.map +1 -1
  136. package/dist/esm/models/components/loginemailandpassword.d.ts +34 -0
  137. package/dist/esm/models/components/loginemailandpassword.d.ts.map +1 -1
  138. package/dist/esm/models/components/loginemailandpassword.js +2 -0
  139. package/dist/esm/models/components/loginemailandpassword.js.map +1 -1
  140. package/dist/esm/models/components/loginrequirementsfromemail.d.ts +34 -0
  141. package/dist/esm/models/components/loginrequirementsfromemail.d.ts.map +1 -1
  142. package/dist/esm/models/components/loginrequirementsfromemail.js +2 -0
  143. package/dist/esm/models/components/loginrequirementsfromemail.js.map +1 -1
  144. package/dist/esm/models/components/mfarequiredresponse.d.ts +33 -0
  145. package/dist/esm/models/components/mfarequiredresponse.d.ts.map +1 -1
  146. package/dist/esm/models/components/mfarequiredresponse.js +2 -0
  147. package/dist/esm/models/components/mfarequiredresponse.js.map +1 -1
  148. package/dist/esm/models/components/passwordnotsetresponse.d.ts +34 -1
  149. package/dist/esm/models/components/passwordnotsetresponse.d.ts.map +1 -1
  150. package/dist/esm/models/components/passwordnotsetresponse.js +2 -0
  151. package/dist/esm/models/components/passwordnotsetresponse.js.map +1 -1
  152. package/dist/esm/models/components/passwordrequiredresponse.d.ts +33 -0
  153. package/dist/esm/models/components/passwordrequiredresponse.d.ts.map +1 -1
  154. package/dist/esm/models/components/passwordrequiredresponse.js +6 -0
  155. package/dist/esm/models/components/passwordrequiredresponse.js.map +1 -1
  156. package/dist/esm/models/components/samlloginrequiredresponse.d.ts +33 -0
  157. package/dist/esm/models/components/samlloginrequiredresponse.d.ts.map +1 -1
  158. package/dist/esm/models/components/samlloginrequiredresponse.js +2 -0
  159. package/dist/esm/models/components/samlloginrequiredresponse.js.map +1 -1
  160. package/dist/esm/models/components/ssocontinuation.d.ts +44 -0
  161. package/dist/esm/models/components/ssocontinuation.d.ts.map +1 -0
  162. package/dist/esm/models/components/ssocontinuation.js +19 -0
  163. package/dist/esm/models/components/ssocontinuation.js.map +1 -0
  164. package/dist/esm/models/components/webhooksubscription.d.ts +3 -0
  165. package/dist/esm/models/components/webhooksubscription.d.ts.map +1 -1
  166. package/dist/esm/models/components/webhooksubscription.js +3 -0
  167. package/dist/esm/models/components/webhooksubscription.js.map +1 -1
  168. package/dist/esm/models/components/webhooksubscriptiondetail.d.ts +1 -0
  169. package/dist/esm/models/components/webhooksubscriptiondetail.d.ts.map +1 -1
  170. package/dist/esm/models/components/webhooksubscriptiondetail.js +1 -0
  171. package/dist/esm/models/components/webhooksubscriptiondetail.js.map +1 -1
  172. package/dist/esm/models/operations/postauthenticate.d.ts +1 -1
  173. package/dist/esm/models/operations/postauthenticate.d.ts.map +1 -1
  174. package/dist/esm/models/operations/postauthenticate.js +1 -1
  175. package/dist/esm/models/operations/postauthenticate.js.map +1 -1
  176. package/dist/esm/models/webhooks/index.d.ts +3 -0
  177. package/dist/esm/models/webhooks/index.d.ts.map +1 -1
  178. package/dist/esm/models/webhooks/index.js +3 -0
  179. package/dist/esm/models/webhooks/index.js.map +1 -1
  180. package/dist/esm/models/webhooks/sendfullreportcreated.d.ts +42 -0
  181. package/dist/esm/models/webhooks/sendfullreportcreated.d.ts.map +1 -0
  182. package/dist/esm/models/webhooks/sendfullreportcreated.js +47 -0
  183. package/dist/esm/models/webhooks/sendfullreportcreated.js.map +1 -0
  184. package/dist/esm/models/webhooks/sendfullreportdestroyed.d.ts +42 -0
  185. package/dist/esm/models/webhooks/sendfullreportdestroyed.d.ts.map +1 -0
  186. package/dist/esm/models/webhooks/sendfullreportdestroyed.js +47 -0
  187. package/dist/esm/models/webhooks/sendfullreportdestroyed.js.map +1 -0
  188. package/dist/esm/models/webhooks/sendfullreportupdated.d.ts +42 -0
  189. package/dist/esm/models/webhooks/sendfullreportupdated.d.ts.map +1 -0
  190. package/dist/esm/models/webhooks/sendfullreportupdated.js +47 -0
  191. package/dist/esm/models/webhooks/sendfullreportupdated.js.map +1 -0
  192. package/dist/esm/react-query/reportsGetFullReport.d.ts +6 -6
  193. package/dist/esm/react-query/reportsGetFullReport.js +6 -6
  194. package/dist/esm/react-query/usersPostAuthenticate.d.ts +37 -0
  195. package/dist/esm/react-query/usersPostAuthenticate.d.ts.map +1 -1
  196. package/dist/esm/react-query/usersPostAuthenticate.js +37 -0
  197. package/dist/esm/react-query/usersPostAuthenticate.js.map +1 -1
  198. package/dist/esm/sdk/reports.d.ts +3 -3
  199. package/dist/esm/sdk/reports.js +3 -3
  200. package/dist/esm/sdk/sdk.d.ts +1 -1
  201. package/dist/esm/sdk/sdk.d.ts.map +1 -1
  202. package/dist/esm/sdk/sdk.js.map +1 -1
  203. package/dist/esm/sdk/users.d.ts +37 -0
  204. package/dist/esm/sdk/users.d.ts.map +1 -1
  205. package/dist/esm/sdk/users.js +37 -0
  206. package/dist/esm/sdk/users.js.map +1 -1
  207. package/jsr.json +1 -1
  208. package/package.json +1 -1
  209. package/src/__tests__/vendors.test.ts +1 -1
  210. package/src/__tests__/webhooks.test.ts +5 -6
  211. package/src/__tests__/zones.test.ts +2 -27
  212. package/src/funcs/reportsGetFullReport.ts +3 -3
  213. package/src/funcs/usersPostAuthenticate.ts +37 -0
  214. package/src/funcs/validateWebhook.ts +6 -0
  215. package/src/funcs/vendorsSendDownloadCode.ts +1 -0
  216. package/src/lib/config.ts +2 -2
  217. package/src/models/components/authenticatesuccessresponse.ts +189 -0
  218. package/src/models/components/fullreport.ts +193 -0
  219. package/src/models/components/index.ts +3 -0
  220. package/src/models/components/loginemailandpassword.ts +36 -0
  221. package/src/models/components/loginrequirementsfromemail.ts +36 -0
  222. package/src/models/components/mfarequiredresponse.ts +35 -0
  223. package/src/models/components/passwordnotsetresponse.ts +36 -1
  224. package/src/models/components/passwordrequiredresponse.ts +39 -0
  225. package/src/models/components/samlloginrequiredresponse.ts +35 -0
  226. package/src/models/components/ssocontinuation.ts +71 -0
  227. package/src/models/components/webhooksubscription.ts +3 -0
  228. package/src/models/components/webhooksubscriptiondetail.ts +1 -0
  229. package/src/models/operations/postauthenticate.ts +2 -2
  230. package/src/models/webhooks/index.ts +3 -0
  231. package/src/models/webhooks/sendfullreportcreated.ts +104 -0
  232. package/src/models/webhooks/sendfullreportdestroyed.ts +104 -0
  233. package/src/models/webhooks/sendfullreportupdated.ts +104 -0
  234. package/src/react-query/reportsGetFullReport.ts +6 -6
  235. package/src/react-query/usersPostAuthenticate.ts +37 -0
  236. package/src/sdk/reports.ts +3 -3
  237. package/src/sdk/sdk.ts +3 -0
  238. package/src/sdk/users.ts +37 -0
@@ -0,0 +1,47 @@
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
+ import * as components from "../components/index.js";
9
+ /** @internal */
10
+ export const SendFullReportCreatedRequest$inboundSchema = z.object({
11
+ "Green-Security-Signature": types.string(),
12
+ "Green-Security-Event": types.string(),
13
+ "Green-Security-Idempotency-Key": types.string(),
14
+ "Green-Webhook-Id": types.string(),
15
+ FullReport: components.FullReport$inboundSchema,
16
+ }).transform((v) => {
17
+ return remap$(v, {
18
+ "Green-Security-Signature": "greenSecuritySignature",
19
+ "Green-Security-Event": "greenSecurityEvent",
20
+ "Green-Security-Idempotency-Key": "greenSecurityIdempotencyKey",
21
+ "Green-Webhook-Id": "greenWebhookId",
22
+ "FullReport": "fullReport",
23
+ });
24
+ });
25
+ /** @internal */
26
+ export const SendFullReportCreatedRequest$outboundSchema = z.object({
27
+ greenSecuritySignature: z.string(),
28
+ greenSecurityEvent: z.string(),
29
+ greenSecurityIdempotencyKey: z.string(),
30
+ greenWebhookId: z.string(),
31
+ fullReport: components.FullReport$outboundSchema,
32
+ }).transform((v) => {
33
+ return remap$(v, {
34
+ greenSecuritySignature: "Green-Security-Signature",
35
+ greenSecurityEvent: "Green-Security-Event",
36
+ greenSecurityIdempotencyKey: "Green-Security-Idempotency-Key",
37
+ greenWebhookId: "Green-Webhook-Id",
38
+ fullReport: "FullReport",
39
+ });
40
+ });
41
+ export function sendFullReportCreatedRequestToJSON(sendFullReportCreatedRequest) {
42
+ return JSON.stringify(SendFullReportCreatedRequest$outboundSchema.parse(sendFullReportCreatedRequest));
43
+ }
44
+ export function sendFullReportCreatedRequestFromJSON(jsonString) {
45
+ return safeParse(jsonString, (x) => SendFullReportCreatedRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SendFullReportCreatedRequest' from JSON`);
46
+ }
47
+ //# sourceMappingURL=sendfullreportcreated.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sendfullreportcreated.js","sourceRoot":"","sources":["../../../../src/models/webhooks/sendfullreportcreated.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAA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B,EAAE,sBAAsB;QAC1C,2BAA2B,EAAE,gCAAgC;QAC7D,cAAc,EAAE,kBAAkB;QAClC,UAAU,EAAE,YAAY;KACzB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,kCAAkC,CAChD,4BAA0D;IAE1D,OAAO,IAAI,CAAC,SAAS,CACnB,2CAA2C,CAAC,KAAK,CAC/C,4BAA4B,CAC7B,CACF,CAAC;AACJ,CAAC;AACD,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"}
@@ -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 SendFullReportDestroyedRequest = {
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 SendFullReportDestroyedRequest$inboundSchema: z.ZodType<SendFullReportDestroyedRequest, z.ZodTypeDef, unknown>;
30
+ /** @internal */
31
+ export type SendFullReportDestroyedRequest$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 SendFullReportDestroyedRequest$outboundSchema: z.ZodType<SendFullReportDestroyedRequest$Outbound, z.ZodTypeDef, SendFullReportDestroyedRequest>;
40
+ export declare function sendFullReportDestroyedRequestToJSON(sendFullReportDestroyedRequest: SendFullReportDestroyedRequest): string;
41
+ export declare function sendFullReportDestroyedRequestFromJSON(jsonString: string): SafeParseResult<SendFullReportDestroyedRequest, SDKValidationError>;
42
+ //# sourceMappingURL=sendfullreportdestroyed.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sendfullreportdestroyed.d.ts","sourceRoot":"","sources":["../../../../src/models/webhooks/sendfullreportdestroyed.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,8BAA8B,GAAG;IAC3C;;;;;;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,4CAA4C,EAAE,CAAC,CAAC,OAAO,CAClE,8BAA8B,EAC9B,CAAC,CAAC,UAAU,EACZ,OAAO,CAeP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,uCAAuC,GAAG;IACpD,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,6CAA6C,EAAE,CAAC,CAAC,OAAO,CACnE,uCAAuC,EACvC,CAAC,CAAC,UAAU,EACZ,8BAA8B,CAe9B,CAAC;AAEH,wBAAgB,oCAAoC,CAClD,8BAA8B,EAAE,8BAA8B,GAC7D,MAAM,CAMR;AACD,wBAAgB,sCAAsC,CACpD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,8BAA8B,EAAE,kBAAkB,CAAC,CAMrE"}
@@ -0,0 +1,47 @@
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
+ import * as components from "../components/index.js";
9
+ /** @internal */
10
+ export const SendFullReportDestroyedRequest$inboundSchema = z.object({
11
+ "Green-Security-Signature": types.string(),
12
+ "Green-Security-Event": types.string(),
13
+ "Green-Security-Idempotency-Key": types.string(),
14
+ "Green-Webhook-Id": types.string(),
15
+ FullReport: components.FullReport$inboundSchema,
16
+ }).transform((v) => {
17
+ return remap$(v, {
18
+ "Green-Security-Signature": "greenSecuritySignature",
19
+ "Green-Security-Event": "greenSecurityEvent",
20
+ "Green-Security-Idempotency-Key": "greenSecurityIdempotencyKey",
21
+ "Green-Webhook-Id": "greenWebhookId",
22
+ "FullReport": "fullReport",
23
+ });
24
+ });
25
+ /** @internal */
26
+ export const SendFullReportDestroyedRequest$outboundSchema = z.object({
27
+ greenSecuritySignature: z.string(),
28
+ greenSecurityEvent: z.string(),
29
+ greenSecurityIdempotencyKey: z.string(),
30
+ greenWebhookId: z.string(),
31
+ fullReport: components.FullReport$outboundSchema,
32
+ }).transform((v) => {
33
+ return remap$(v, {
34
+ greenSecuritySignature: "Green-Security-Signature",
35
+ greenSecurityEvent: "Green-Security-Event",
36
+ greenSecurityIdempotencyKey: "Green-Security-Idempotency-Key",
37
+ greenWebhookId: "Green-Webhook-Id",
38
+ fullReport: "FullReport",
39
+ });
40
+ });
41
+ export function sendFullReportDestroyedRequestToJSON(sendFullReportDestroyedRequest) {
42
+ return JSON.stringify(SendFullReportDestroyedRequest$outboundSchema.parse(sendFullReportDestroyedRequest));
43
+ }
44
+ export function sendFullReportDestroyedRequestFromJSON(jsonString) {
45
+ return safeParse(jsonString, (x) => SendFullReportDestroyedRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SendFullReportDestroyedRequest' from JSON`);
46
+ }
47
+ //# sourceMappingURL=sendfullreportdestroyed.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sendfullreportdestroyed.js","sourceRoot":"","sources":["../../../../src/models/webhooks/sendfullreportdestroyed.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;AACnD,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AA2BrD,gBAAgB;AAChB,MAAM,CAAC,MAAM,4CAA4C,GAIrD,CAAC,CAAC,MAAM,CAAC;IACX,0BAA0B,EAAE,KAAK,CAAC,MAAM,EAAE;IAC1C,sBAAsB,EAAE,KAAK,CAAC,MAAM,EAAE;IACtC,gCAAgC,EAAE,KAAK,CAAC,MAAM,EAAE;IAChD,kBAAkB,EAAE,KAAK,CAAC,MAAM,EAAE;IAClC,UAAU,EAAE,UAAU,CAAC,wBAAwB;CAChD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,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components from "../components/index.js";
4
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
+ export type SendFullReportUpdatedRequest = {
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 SendFullReportUpdatedRequest$inboundSchema: z.ZodType<SendFullReportUpdatedRequest, z.ZodTypeDef, unknown>;
30
+ /** @internal */
31
+ export type SendFullReportUpdatedRequest$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 SendFullReportUpdatedRequest$outboundSchema: z.ZodType<SendFullReportUpdatedRequest$Outbound, z.ZodTypeDef, SendFullReportUpdatedRequest>;
40
+ export declare function sendFullReportUpdatedRequestToJSON(sendFullReportUpdatedRequest: SendFullReportUpdatedRequest): string;
41
+ export declare function sendFullReportUpdatedRequestFromJSON(jsonString: string): SafeParseResult<SendFullReportUpdatedRequest, SDKValidationError>;
42
+ //# sourceMappingURL=sendfullreportupdated.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sendfullreportupdated.d.ts","sourceRoot":"","sources":["../../../../src/models/webhooks/sendfullreportupdated.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"}
@@ -0,0 +1,47 @@
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
+ import * as components from "../components/index.js";
9
+ /** @internal */
10
+ export const SendFullReportUpdatedRequest$inboundSchema = z.object({
11
+ "Green-Security-Signature": types.string(),
12
+ "Green-Security-Event": types.string(),
13
+ "Green-Security-Idempotency-Key": types.string(),
14
+ "Green-Webhook-Id": types.string(),
15
+ FullReport: components.FullReport$inboundSchema,
16
+ }).transform((v) => {
17
+ return remap$(v, {
18
+ "Green-Security-Signature": "greenSecuritySignature",
19
+ "Green-Security-Event": "greenSecurityEvent",
20
+ "Green-Security-Idempotency-Key": "greenSecurityIdempotencyKey",
21
+ "Green-Webhook-Id": "greenWebhookId",
22
+ "FullReport": "fullReport",
23
+ });
24
+ });
25
+ /** @internal */
26
+ export const SendFullReportUpdatedRequest$outboundSchema = z.object({
27
+ greenSecuritySignature: z.string(),
28
+ greenSecurityEvent: z.string(),
29
+ greenSecurityIdempotencyKey: z.string(),
30
+ greenWebhookId: z.string(),
31
+ fullReport: components.FullReport$outboundSchema,
32
+ }).transform((v) => {
33
+ return remap$(v, {
34
+ greenSecuritySignature: "Green-Security-Signature",
35
+ greenSecurityEvent: "Green-Security-Event",
36
+ greenSecurityIdempotencyKey: "Green-Security-Idempotency-Key",
37
+ greenWebhookId: "Green-Webhook-Id",
38
+ fullReport: "FullReport",
39
+ });
40
+ });
41
+ export function sendFullReportUpdatedRequestToJSON(sendFullReportUpdatedRequest) {
42
+ return JSON.stringify(SendFullReportUpdatedRequest$outboundSchema.parse(sendFullReportUpdatedRequest));
43
+ }
44
+ export function sendFullReportUpdatedRequestFromJSON(jsonString) {
45
+ return safeParse(jsonString, (x) => SendFullReportUpdatedRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SendFullReportUpdatedRequest' from JSON`);
46
+ }
47
+ //# sourceMappingURL=sendfullreportupdated.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sendfullreportupdated.js","sourceRoot":"","sources":["../../../../src/models/webh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AAC,CAAC,EAAE;QACf,sBAAsB,EAAE,0BAA0B;QAClD,kBAAkB,EAAE,sBAAsB;QAC1C,2BAA2B,EAAE,gCAAgC;QAC7D,cAAc,EAAE,kBAAkB;QAClC,UAAU,EAAE,YAAY;KACzB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,kCAAkC,CAChD,4BAA0D;IAE1D,OAAO,IAAI,CAAC,SAAS,CACnB,2CAA2C,CAAC,KAAK,CAC/C,4BAA4B,CAC7B,CACF,CAAC;AACJ,CAAC;AACD,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"}
@@ -28,9 +28,9 @@ export type ReportsGetFullReportQueryError = errors.ApiErrorResponse | errors.Un
28
28
  * | `404` | No such run, or it is outside your access scope. | Stop. |
29
29
  * | `403` | Your account is locked, or lacks the `scheduled_reports` view permission. | Stop. |
30
30
  *
31
- * **Bound your polling.** A `409` is not a promise that the run will finish. Report
32
- * generation has no terminal failure state today, so a run whose generation crashed part way
33
- * through stays in `processing` and keeps answering `409` indefinitely. Apply your own
31
+ * **Bound your polling.** A `409` is not a promise that the run will finish. A run that fails
32
+ * while generating is now recorded as `failed` and answers `422`, but a run whose worker died
33
+ * outright still stays in `processing` and keeps answering `409` indefinitely. Apply your own
34
34
  * timeout or maximum attempt count and treat exhaustion as a failure; do not retry forever.
35
35
  *
36
36
  * Access control: the URL's `full_report_id` must be in the caller's read scope for
@@ -58,9 +58,9 @@ export declare function useReportsGetFullReport(request: operations.GetFullRepor
58
58
  * | `404` | No such run, or it is outside your access scope. | Stop. |
59
59
  * | `403` | Your account is locked, or lacks the `scheduled_reports` view permission. | Stop. |
60
60
  *
61
- * **Bound your polling.** A `409` is not a promise that the run will finish. Report
62
- * generation has no terminal failure state today, so a run whose generation crashed part way
63
- * through stays in `processing` and keeps answering `409` indefinitely. Apply your own
61
+ * **Bound your polling.** A `409` is not a promise that the run will finish. A run that fails
62
+ * while generating is now recorded as `failed` and answers `422`, but a run whose worker died
63
+ * outright still stays in `processing` and keeps answering `409` indefinitely. Apply your own
64
64
  * timeout or maximum attempt count and treat exhaustion as a failure; do not retry forever.
65
65
  *
66
66
  * Access control: the URL's `full_report_id` must be in the caller's read scope for
@@ -24,9 +24,9 @@ export { buildReportsGetFullReportQuery, prefetchReportsGetFullReport, queryKeyR
24
24
  * | `404` | No such run, or it is outside your access scope. | Stop. |
25
25
  * | `403` | Your account is locked, or lacks the `scheduled_reports` view permission. | Stop. |
26
26
  *
27
- * **Bound your polling.** A `409` is not a promise that the run will finish. Report
28
- * generation has no terminal failure state today, so a run whose generation crashed part way
29
- * through stays in `processing` and keeps answering `409` indefinitely. Apply your own
27
+ * **Bound your polling.** A `409` is not a promise that the run will finish. A run that fails
28
+ * while generating is now recorded as `failed` and answers `422`, but a run whose worker died
29
+ * outright still stays in `processing` and keeps answering `409` indefinitely. Apply your own
30
30
  * timeout or maximum attempt count and treat exhaustion as a failure; do not retry forever.
31
31
  *
32
32
  * Access control: the URL's `full_report_id` must be in the caller's read scope for
@@ -60,9 +60,9 @@ export function useReportsGetFullReport(request, options) {
60
60
  * | `404` | No such run, or it is outside your access scope. | Stop. |
61
61
  * | `403` | Your account is locked, or lacks the `scheduled_reports` view permission. | Stop. |
62
62
  *
63
- * **Bound your polling.** A `409` is not a promise that the run will finish. Report
64
- * generation has no terminal failure state today, so a run whose generation crashed part way
65
- * through stays in `processing` and keeps answering `409` indefinitely. Apply your own
63
+ * **Bound your polling.** A `409` is not a promise that the run will finish. A run that fails
64
+ * while generating is now recorded as `failed` and answers `422`, but a run whose worker died
65
+ * outright still stays in `processing` and keeps answering `409` indefinitely. Apply your own
66
66
  * timeout or maximum attempt count and treat exhaustion as a failure; do not retry forever.
67
67
  *
68
68
  * Access control: the URL's `full_report_id` must be in the caller's read scope for
@@ -49,6 +49,43 @@ export type UsersPostAuthenticateMutationError = errors.ApiErrorResponse | Green
49
49
  * 3. Site redirects to your selected `return_url`
50
50
  * 4. The `user_token` will be appended as a query string parameter to your `return_url` - you must parse this token and store it
51
51
  * 5. Fetch the user object from `/users/me` using the token
52
+ *
53
+ * ## Finishing a "Login with Green Security" flow
54
+ *
55
+ * Green Security is also a SAML2 **identity provider**. When a third-party service provider sends a user to
56
+ * `/saml/idp/sso` to sign in with their Green Security account, the user lands on a Green Security login screen
57
+ * carrying an `sso_state` query string parameter. That parameter is a signed, five-minute record of which service
58
+ * provider is waiting, where its assertion consumer service lives, and what `RelayState` it sent.
59
+ *
60
+ * Authentication itself is unchanged - the user may still need a password, an MFA code, a magic link or a round trip
61
+ * to their own SAML IdP, and every `requires` value above applies as normal. The only difference is that you must
62
+ * echo `sso_state` back on **every** call in the sequence, unchanged, including the follow-up that carries the
63
+ * `mfa_code`.
64
+ *
65
+ * Each `202` response carries the verified blob back to you in its own top-level `sso_state` field. Send back the
66
+ * value from the response you just received rather than the one you started with. The two are normally the same
67
+ * string, but re-sending your original copy is how a blob the server has already rejected gets resent, and it forces
68
+ * you to hold login state you would otherwise not need.
69
+ *
70
+ * 1. Read `sso_state` from the query string of the login screen you were sent to
71
+ * 2. Run the login exactly as you would otherwise, adding `sso_state` to each request body and taking the value for
72
+ * the next request from the previous `202` response
73
+ * 3. On the `200` response, read `sso.continue_url`
74
+ * 4. Navigate the browser to `sso.continue_url` - a full page navigation, not a background fetch. It answers with a
75
+ * self-submitting form that delivers the signed `SAMLResponse` and the original `RelayState` to the service
76
+ * provider
77
+ * 5. The service provider validates the assertion and the user is signed in on their side
78
+ *
79
+ * On the `password_reset` leg the blob is **also** appended to `redirect_url` as a query parameter, alongside
80
+ * `return_url`. The browser follows that redirect and leaves the JSON body behind, so anything the remaining legs of
81
+ * the login still need has to ride the URL. Preserve the query string exactly as given.
82
+ *
83
+ * An invalid `sso_state` never fails a login. A forged, edited or expired blob is silently dropped and the request is
84
+ * then treated as an ordinary login, so valid credentials still return `200` - just with no `sso` object. Check for
85
+ * `sso` explicitly rather than reading `200` as proof the hand-off survived. When it is absent, do not retry with the
86
+ * same blob; the user has to start again from the service provider. See the
87
+ * [Login with Green Security](https://greensecurity.apidocumentation.com/guides/sso-login-with-green-security)
88
+ * guide for the service provider half of this flow.
52
89
  */
53
90
  export declare function useUsersPostAuthenticateMutation(options?: MutationHookOptions<UsersPostAuthenticateMutationData, UsersPostAuthenticateMutationError, UsersPostAuthenticateMutationVariables>): UseMutationResult<UsersPostAuthenticateMutationData, UsersPostAuthenticateMutationError, UsersPostAuthenticateMutationVariables>;
54
91
  export declare function mutationKeyUsersPostAuthenticate(): MutationKey;
@@ -1 +1 @@
1
- {"version":3,"file":"usersPostAuthenticate.d.ts","sourceRoot":"","sources":["../../../src/react-query/usersPostAuthenticate.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,WAAW,EAEX,iBAAiB,EAClB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAG/C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAElD,MAAM,MAAM,sCAAsC,GAAG;IACnD,OAAO,EAAE,UAAU,CAAC,2BAA2B,CAAC;IAChD,OAAO,CAAC,EAAE,cAAc,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,iCAAiC,GAC3C,UAAU,CAAC,wBAAwB,CAAC;AAEtC,MAAM,MAAM,kCAAkC,GAC1C,MAAM,CAAC,gBAAgB,GACvB,kBAAkB,GAClB,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CAAC;AAEvB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,wBAAgB,gCAAgC,CAC9C,OAAO,CAAC,EAAE,mBAAmB,CAC3B,iCAAiC,EACjC,kCAAkC,EAClC,sCAAsC,CACvC,GACA,iBAAiB,CAClB,iCAAiC,EACjC,kCAAkC,EAClC,sCAAsC,CACvC,CAMA;AAED,wBAAgB,gCAAgC,IAAI,WAAW,CAE9D;AAED,wBAAgB,kCAAkC,CAChD,OAAO,EAAE,iBAAiB,EAC1B,WAAW,CAAC,EAAE,cAAc,GAC3B;IACD,WAAW,EAAE,WAAW,CAAC;IACzB,UAAU,EAAE,CACV,SAAS,EAAE,sCAAsC,KAC9C,OAAO,CAAC,iCAAiC,CAAC,CAAC;CACjD,CA0BA"}
1
+ {"version":3,"file":"usersPostAuthenticate.d.ts","sourceRoot":"","sources":["../../../src/react-query/usersPostAuthenticate.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,WAAW,EAEX,iBAAiB,EAClB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAG/C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAElD,MAAM,MAAM,sCAAsC,GAAG;IACnD,OAAO,EAAE,UAAU,CAAC,2BAA2B,CAAC;IAChD,OAAO,CAAC,EAAE,cAAc,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,iCAAiC,GAC3C,UAAU,CAAC,wBAAwB,CAAC;AAEtC,MAAM,MAAM,kCAAkC,GAC1C,MAAM,CAAC,gBAAgB,GACvB,kBAAkB,GAClB,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CAAC;AAEvB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwEG;AACH,wBAAgB,gCAAgC,CAC9C,OAAO,CAAC,EAAE,mBAAmB,CAC3B,iCAAiC,EACjC,kCAAkC,EAClC,sCAAsC,CACvC,GACA,iBAAiB,CAClB,iCAAiC,EACjC,kCAAkC,EAClC,sCAAsC,CACvC,CAMA;AAED,wBAAgB,gCAAgC,IAAI,WAAW,CAE9D;AAED,wBAAgB,kCAAkC,CAChD,OAAO,EAAE,iBAAiB,EAC1B,WAAW,CAAC,EAAE,cAAc,GAC3B;IACD,WAAW,EAAE,WAAW,CAAC;IACzB,UAAU,EAAE,CACV,SAAS,EAAE,sCAAsC,KAC9C,OAAO,CAAC,iCAAiC,CAAC,CAAC;CACjD,CA0BA"}
@@ -41,6 +41,43 @@ import { useGreenSecurityContext } from "./_context.js";
41
41
  * 3. Site redirects to your selected `return_url`
42
42
  * 4. The `user_token` will be appended as a query string parameter to your `return_url` - you must parse this token and store it
43
43
  * 5. Fetch the user object from `/users/me` using the token
44
+ *
45
+ * ## Finishing a "Login with Green Security" flow
46
+ *
47
+ * Green Security is also a SAML2 **identity provider**. When a third-party service provider sends a user to
48
+ * `/saml/idp/sso` to sign in with their Green Security account, the user lands on a Green Security login screen
49
+ * carrying an `sso_state` query string parameter. That parameter is a signed, five-minute record of which service
50
+ * provider is waiting, where its assertion consumer service lives, and what `RelayState` it sent.
51
+ *
52
+ * Authentication itself is unchanged - the user may still need a password, an MFA code, a magic link or a round trip
53
+ * to their own SAML IdP, and every `requires` value above applies as normal. The only difference is that you must
54
+ * echo `sso_state` back on **every** call in the sequence, unchanged, including the follow-up that carries the
55
+ * `mfa_code`.
56
+ *
57
+ * Each `202` response carries the verified blob back to you in its own top-level `sso_state` field. Send back the
58
+ * value from the response you just received rather than the one you started with. The two are normally the same
59
+ * string, but re-sending your original copy is how a blob the server has already rejected gets resent, and it forces
60
+ * you to hold login state you would otherwise not need.
61
+ *
62
+ * 1. Read `sso_state` from the query string of the login screen you were sent to
63
+ * 2. Run the login exactly as you would otherwise, adding `sso_state` to each request body and taking the value for
64
+ * the next request from the previous `202` response
65
+ * 3. On the `200` response, read `sso.continue_url`
66
+ * 4. Navigate the browser to `sso.continue_url` - a full page navigation, not a background fetch. It answers with a
67
+ * self-submitting form that delivers the signed `SAMLResponse` and the original `RelayState` to the service
68
+ * provider
69
+ * 5. The service provider validates the assertion and the user is signed in on their side
70
+ *
71
+ * On the `password_reset` leg the blob is **also** appended to `redirect_url` as a query parameter, alongside
72
+ * `return_url`. The browser follows that redirect and leaves the JSON body behind, so anything the remaining legs of
73
+ * the login still need has to ride the URL. Preserve the query string exactly as given.
74
+ *
75
+ * An invalid `sso_state` never fails a login. A forged, edited or expired blob is silently dropped and the request is
76
+ * then treated as an ordinary login, so valid credentials still return `200` - just with no `sso` object. Check for
77
+ * `sso` explicitly rather than reading `200` as proof the hand-off survived. When it is absent, do not retry with the
78
+ * same blob; the user has to start again from the service provider. See the
79
+ * [Login with Green Security](https://greensecurity.apidocumentation.com/guides/sso-login-with-green-security)
80
+ * guide for the service provider half of this flow.
44
81
  */
45
82
  export function useUsersPostAuthenticateMutation(options) {
46
83
  const client = useGreenSecurityContext();
@@ -1 +1 @@
1
- {"version":3,"file":"usersPostAuthenticate.js","sourceRoot":"","sources":["../../../src/react-query/usersPostAuthenticate.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAEL,WAAW,GAEZ,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AActD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAsBxD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,MAAM,UAAU,gCAAgC,CAC9C,OAIC;IAMD,MAAM,MAAM,GAAG,uBAAuB,EAAE,CAAC;IACzC,OAAO,WAAW,CAAC;QACjB,GAAG,kCAAkC,CAAC,MAAM,EAAE,OAAO,CAAC;QACtD,GAAG,OAAO;KACX,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,gCAAgC;IAC9C,OAAO,CAAC,+BAA+B,EAAE,OAAO,EAAE,kBAAkB,CAAC,CAAC;AACxE,CAAC;AAED,MAAM,UAAU,kCAAkC,CAChD,OAA0B,EAC1B,WAA4B;IAO5B,OAAO;QACL,WAAW,EAAE,gCAAgC,EAAE;QAC/C,UAAU,EAAE,SAAS,+BAA+B,CAAC,EACnD,OAAO,EACP,OAAO,GACR;YACC,MAAM,aAAa,GAAG;gBACpB,GAAG,WAAW;gBACd,GAAG,OAAO;gBACV,YAAY,EAAE;oBACZ,GAAG,WAAW,EAAE,YAAY;oBAC5B,GAAG,OAAO,EAAE,YAAY;oBACxB,MAAM,EAAE,cAAc,CACpB,WAAW,EAAE,YAAY,EAAE,MAAM,EACjC,OAAO,EAAE,YAAY,EAAE,MAAM,CAC9B;iBACF;aACF,CAAC;YACF,OAAO,WAAW,CAAC,qBAAqB,CACtC,OAAO,EACP,OAAO,EACP,aAAa,CACd,CAAC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"usersPostAuthenticate.js","sourceRoot":"","sources":["../../../src/react-query/usersPostAuthenticate.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAEL,WAAW,GAEZ,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AActD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAsBxD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwEG;AACH,MAAM,UAAU,gCAAgC,CAC9C,OAIC;IAMD,MAAM,MAAM,GAAG,uBAAuB,EAAE,CAAC;IACzC,OAAO,WAAW,CAAC;QACjB,GAAG,kCAAkC,CAAC,MAAM,EAAE,OAAO,CAAC;QACtD,GAAG,OAAO;KACX,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,gCAAgC;IAC9C,OAAO,CAAC,+BAA+B,EAAE,OAAO,EAAE,kBAAkB,CAAC,CAAC;AACxE,CAAC;AAED,MAAM,UAAU,kCAAkC,CAChD,OAA0B,EAC1B,WAA4B;IAO5B,OAAO;QACL,WAAW,EAAE,gCAAgC,EAAE;QAC/C,UAAU,EAAE,SAAS,+BAA+B,CAAC,EACnD,OAAO,EACP,OAAO,GACR;YACC,MAAM,aAAa,GAAG;gBACpB,GAAG,WAAW;gBACd,GAAG,OAAO;gBACV,YAAY,EAAE;oBACZ,GAAG,WAAW,EAAE,YAAY;oBAC5B,GAAG,OAAO,EAAE,YAAY;oBACxB,MAAM,EAAE,cAAc,CACpB,WAAW,EAAE,YAAY,EAAE,MAAM,EACjC,OAAO,EAAE,YAAY,EAAE,MAAM,CAC9B;iBACF;aACF,CAAC;YACF,OAAO,WAAW,CAAC,qBAAqB,CACtC,OAAO,EACP,OAAO,EACP,aAAa,CACd,CAAC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,CAAC"}
@@ -44,9 +44,9 @@ export declare class Reports extends ClientSDK {
44
44
  * | `404` | No such run, or it is outside your access scope. | Stop. |
45
45
  * | `403` | Your account is locked, or lacks the `scheduled_reports` view permission. | Stop. |
46
46
  *
47
- * **Bound your polling.** A `409` is not a promise that the run will finish. Report
48
- * generation has no terminal failure state today, so a run whose generation crashed part way
49
- * through stays in `processing` and keeps answering `409` indefinitely. Apply your own
47
+ * **Bound your polling.** A `409` is not a promise that the run will finish. A run that fails
48
+ * while generating is now recorded as `failed` and answers `422`, but a run whose worker died
49
+ * outright still stays in `processing` and keeps answering `409` indefinitely. Apply your own
50
50
  * timeout or maximum attempt count and treat exhaustion as a failure; do not retry forever.
51
51
  *
52
52
  * Access control: the URL's `full_report_id` must be in the caller's read scope for
@@ -51,9 +51,9 @@ export class Reports extends ClientSDK {
51
51
  * | `404` | No such run, or it is outside your access scope. | Stop. |
52
52
  * | `403` | Your account is locked, or lacks the `scheduled_reports` view permission. | Stop. |
53
53
  *
54
- * **Bound your polling.** A `409` is not a promise that the run will finish. Report
55
- * generation has no terminal failure state today, so a run whose generation crashed part way
56
- * through stays in `processing` and keeps answering `409` indefinitely. Apply your own
54
+ * **Bound your polling.** A `409` is not a promise that the run will finish. A run that fails
55
+ * while generating is now recorded as `failed` and answers `422`, but a run whose worker died
56
+ * outright still stays in `processing` and keeps answering `409` indefinitely. Apply your own
57
57
  * timeout or maximum attempt count and treat exhaustion as a failure; do not retry forever.
58
58
  *
59
59
  * Access control: the URL's `full_report_id` must be in the caller's read scope for
@@ -69,6 +69,6 @@ export declare class GreenSecurity extends ClientSDK {
69
69
  method: string;
70
70
  } | Request;
71
71
  secret: string;
72
- }): Promise<webhooks.SendVendorCreatedRequest | webhooks.SendVendorUpdatedRequest | webhooks.SendVendorDestroyedRequest | webhooks.SendTargetFacilityStatusChangeCreatedRequest | webhooks.SendTargetFacilityStatusChangeUpdatedRequest | webhooks.SendTargetFacilityStatusChangeDestroyedRequest | webhooks.SendVendorScanCreatedRequest | webhooks.SendVendorScanUpdatedRequest | webhooks.SendVendorScanDestroyedRequest | webhooks.SendVisitorCheckinCreatedRequest | webhooks.SendVisitorCheckinUpdatedRequest | webhooks.SendVisitorCheckinDestroyedRequest>;
72
+ }): Promise<webhooks.SendFullReportCreatedRequest | webhooks.SendFullReportUpdatedRequest | webhooks.SendFullReportDestroyedRequest | webhooks.SendVendorCreatedRequest | webhooks.SendVendorUpdatedRequest | webhooks.SendVendorDestroyedRequest | webhooks.SendTargetFacilityStatusChangeCreatedRequest | webhooks.SendTargetFacilityStatusChangeUpdatedRequest | webhooks.SendTargetFacilityStatusChangeDestroyedRequest | webhooks.SendVendorScanCreatedRequest | webhooks.SendVendorScanUpdatedRequest | webhooks.SendVendorScanDestroyedRequest | webhooks.SendVisitorCheckinCreatedRequest | webhooks.SendVisitorCheckinUpdatedRequest | webhooks.SendVisitorCheckinDestroyedRequest>;
73
73
  }
74
74
  //# sourceMappingURL=sdk.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sdk.d.ts","sourceRoot":"","sources":["../../../src/sdk/sdk.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,KAAK,QAAQ,MAAM,6BAA6B,CAAC;AAExD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAA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AO,CAAC,IAAI,CAAC,YAAY,KAAjB,IAAI,CAAC,YAAY,GAAK,IAAI,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAChE,CAAC;IAGD,IAAI,OAAO;QACT,OAAO,CAAC,IAAI,CAAC,QAAQ,KAAb,IAAI,CAAC,QAAQ,GAAK,IAAI,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IACxD,CAAC;IAGD,IAAI,OAAO;QACT,OAAO,CAAC,IAAI,CAAC,QAAQ,KAAb,IAAI,CAAC,QAAQ,GAAK,IAAI,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IACxD,CAAC;IAED,KAAK,CAAC,eAAe,CAAC,EACpB,OAAO,EACP,MAAM,GASP;QAiBC,OAAO,WAAW,CAAC,eAAe,CAChC,IAAI,EACJ,EAAE,OAAO,EAAE,MAAM,EAAE,CACpB,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -100,6 +100,43 @@ export declare class Users extends ClientSDK {
100
100
  * 3. Site redirects to your selected `return_url`
101
101
  * 4. The `user_token` will be appended as a query string parameter to your `return_url` - you must parse this token and store it
102
102
  * 5. Fetch the user object from `/users/me` using the token
103
+ *
104
+ * ## Finishing a "Login with Green Security" flow
105
+ *
106
+ * Green Security is also a SAML2 **identity provider**. When a third-party service provider sends a user to
107
+ * `/saml/idp/sso` to sign in with their Green Security account, the user lands on a Green Security login screen
108
+ * carrying an `sso_state` query string parameter. That parameter is a signed, five-minute record of which service
109
+ * provider is waiting, where its assertion consumer service lives, and what `RelayState` it sent.
110
+ *
111
+ * Authentication itself is unchanged - the user may still need a password, an MFA code, a magic link or a round trip
112
+ * to their own SAML IdP, and every `requires` value above applies as normal. The only difference is that you must
113
+ * echo `sso_state` back on **every** call in the sequence, unchanged, including the follow-up that carries the
114
+ * `mfa_code`.
115
+ *
116
+ * Each `202` response carries the verified blob back to you in its own top-level `sso_state` field. Send back the
117
+ * value from the response you just received rather than the one you started with. The two are normally the same
118
+ * string, but re-sending your original copy is how a blob the server has already rejected gets resent, and it forces
119
+ * you to hold login state you would otherwise not need.
120
+ *
121
+ * 1. Read `sso_state` from the query string of the login screen you were sent to
122
+ * 2. Run the login exactly as you would otherwise, adding `sso_state` to each request body and taking the value for
123
+ * the next request from the previous `202` response
124
+ * 3. On the `200` response, read `sso.continue_url`
125
+ * 4. Navigate the browser to `sso.continue_url` - a full page navigation, not a background fetch. It answers with a
126
+ * self-submitting form that delivers the signed `SAMLResponse` and the original `RelayState` to the service
127
+ * provider
128
+ * 5. The service provider validates the assertion and the user is signed in on their side
129
+ *
130
+ * On the `password_reset` leg the blob is **also** appended to `redirect_url` as a query parameter, alongside
131
+ * `return_url`. The browser follows that redirect and leaves the JSON body behind, so anything the remaining legs of
132
+ * the login still need has to ride the URL. Preserve the query string exactly as given.
133
+ *
134
+ * An invalid `sso_state` never fails a login. A forged, edited or expired blob is silently dropped and the request is
135
+ * then treated as an ordinary login, so valid credentials still return `200` - just with no `sso` object. Check for
136
+ * `sso` explicitly rather than reading `200` as proof the hand-off survived. When it is absent, do not retry with the
137
+ * same blob; the user has to start again from the service provider. See the
138
+ * [Login with Green Security](https://greensecurity.apidocumentation.com/guides/sso-login-with-green-security)
139
+ * guide for the service provider half of this flow.
103
140
  */
104
141
  postAuthenticate(request: operations.PostAuthenticateRequestBody, options?: RequestOptions): Promise<operations.PostAuthenticateResponse>;
105
142
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../../src/sdk/users.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,KAAM,SAAQ,SAAS;IAClC;;;;;;;;;;;;;;;;;OAiBG;IACG,cAAc,CAClB,OAAO,EAAE,UAAU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AAE,UAAU,CAAC,+BAA+B,EACnD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,kDAAkD,CAAC;CAO1E"}
@@ -120,6 +120,43 @@ export class Users extends ClientSDK {
120
120
  * 3. Site redirects to your selected `return_url`
121
121
  * 4. The `user_token` will be appended as a query string parameter to your `return_url` - you must parse this token and store it
122
122
  * 5. Fetch the user object from `/users/me` using the token
123
+ *
124
+ * ## Finishing a "Login with Green Security" flow
125
+ *
126
+ * Green Security is also a SAML2 **identity provider**. When a third-party service provider sends a user to
127
+ * `/saml/idp/sso` to sign in with their Green Security account, the user lands on a Green Security login screen
128
+ * carrying an `sso_state` query string parameter. That parameter is a signed, five-minute record of which service
129
+ * provider is waiting, where its assertion consumer service lives, and what `RelayState` it sent.
130
+ *
131
+ * Authentication itself is unchanged - the user may still need a password, an MFA code, a magic link or a round trip
132
+ * to their own SAML IdP, and every `requires` value above applies as normal. The only difference is that you must
133
+ * echo `sso_state` back on **every** call in the sequence, unchanged, including the follow-up that carries the
134
+ * `mfa_code`.
135
+ *
136
+ * Each `202` response carries the verified blob back to you in its own top-level `sso_state` field. Send back the
137
+ * value from the response you just received rather than the one you started with. The two are normally the same
138
+ * string, but re-sending your original copy is how a blob the server has already rejected gets resent, and it forces
139
+ * you to hold login state you would otherwise not need.
140
+ *
141
+ * 1. Read `sso_state` from the query string of the login screen you were sent to
142
+ * 2. Run the login exactly as you would otherwise, adding `sso_state` to each request body and taking the value for
143
+ * the next request from the previous `202` response
144
+ * 3. On the `200` response, read `sso.continue_url`
145
+ * 4. Navigate the browser to `sso.continue_url` - a full page navigation, not a background fetch. It answers with a
146
+ * self-submitting form that delivers the signed `SAMLResponse` and the original `RelayState` to the service
147
+ * provider
148
+ * 5. The service provider validates the assertion and the user is signed in on their side
149
+ *
150
+ * On the `password_reset` leg the blob is **also** appended to `redirect_url` as a query parameter, alongside
151
+ * `return_url`. The browser follows that redirect and leaves the JSON body behind, so anything the remaining legs of
152
+ * the login still need has to ride the URL. Preserve the query string exactly as given.
153
+ *
154
+ * An invalid `sso_state` never fails a login. A forged, edited or expired blob is silently dropped and the request is
155
+ * then treated as an ordinary login, so valid credentials still return `200` - just with no `sso` object. Check for
156
+ * `sso` explicitly rather than reading `200` as proof the hand-off survived. When it is absent, do not retry with the
157
+ * same blob; the user has to start again from the service provider. See the
158
+ * [Login with Green Security](https://greensecurity.apidocumentation.com/guides/sso-login-with-green-security)
159
+ * guide for the service provider half of this flow.
123
160
  */
124
161
  async postAuthenticate(request, options) {
125
162
  return unwrapAsync(usersPostAuthenticate(this, request, options));