@greensecurity/javascript-sdk 0.45.0-beta.14 → 0.45.0-beta.16
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/funcs/reportsGetFullReport.d.ts +3 -3
- package/dist/commonjs/funcs/reportsGetFullReport.js +3 -3
- 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/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 +1 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +1 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- 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/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/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/esm/__tests__/vendors.test.js +1 -1
- package/dist/esm/funcs/reportsGetFullReport.d.ts +3 -3
- package/dist/esm/funcs/reportsGetFullReport.js +3 -3
- 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/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 +1 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +1 -0
- package/dist/esm/models/components/index.js.map +1 -1
- 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/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/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/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/vendors.test.ts +1 -1
- package/src/funcs/reportsGetFullReport.ts +3 -3
- 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/fullreport.ts +193 -0
- package/src/models/components/index.ts +1 -0
- package/src/models/components/webhooksubscription.ts +3 -0
- package/src/models/components/webhooksubscriptiondetail.ts +1 -0
- 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/sdk/reports.ts +3 -3
- package/src/sdk/sdk.ts +3 -0
|
@@ -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 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/webhooks/sendfullreportupdated.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,0CAA0C,GAInD,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,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,0BAA0B,EAAE,wBAAwB;QACpD,sBAAsB,EAAE,oBAAoB;QAC5C,gCAAgC,EAAE,6BAA6B;QAC/D,kBAAkB,EAAE,gBAAgB;QACpC,YAAY,EAAE,YAAY;KAC3B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAUH,gBAAgB;AAChB,MAAM,CAAC,MAAM,2CAA2C,GAIpD,CAAC,CAAC,MAAM,CAAC;IACX,sBAAsB,EAAE,CAAC,CAAC,MAAM,EAAE;IAClC,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC9B,2BAA2B,EAAE,CAAC,CAAC,MAAM,EAAE;IACvC,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE;IAC1B,UAAU,EAAE,UAAU,CAAC,yBAAyB;CACjD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,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.
|
|
32
|
-
*
|
|
33
|
-
*
|
|
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.
|
|
62
|
-
*
|
|
63
|
-
*
|
|
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.
|
|
28
|
-
*
|
|
29
|
-
*
|
|
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.
|
|
64
|
-
*
|
|
65
|
-
*
|
|
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
|
|
@@ -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.
|
|
48
|
-
*
|
|
49
|
-
*
|
|
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
|
package/dist/esm/sdk/reports.js
CHANGED
|
@@ -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.
|
|
55
|
-
*
|
|
56
|
-
*
|
|
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
|
package/dist/esm/sdk/sdk.d.ts
CHANGED
|
@@ -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
|
-
{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,OAAO,KAAZ,IAAI,CAAC,OAAO,GAAK,IAAI,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IACtD,CAAC;IAGD,IAAI,aAAa;QACf,OAAO,CAAC,IAAI,CAAC,cAAc,KAAnB,IAAI,CAAC,cAAc,GAAK,IAAI,aAAa,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IACpE,CAAC;IAGD,IAAI,WAAW;QACb,OAAO,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"}
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -45,9 +45,9 @@ import { Result } from "../types/fp.js";
|
|
|
45
45
|
* | `404` | No such run, or it is outside your access scope. | Stop. |
|
|
46
46
|
* | `403` | Your account is locked, or lacks the `scheduled_reports` view permission. | Stop. |
|
|
47
47
|
*
|
|
48
|
-
* **Bound your polling.** A `409` is not a promise that the run will finish.
|
|
49
|
-
*
|
|
50
|
-
*
|
|
48
|
+
* **Bound your polling.** A `409` is not a promise that the run will finish. A run that fails
|
|
49
|
+
* while generating is now recorded as `failed` and answers `422`, but a run whose worker died
|
|
50
|
+
* outright still stays in `processing` and keeps answering `409` indefinitely. Apply your own
|
|
51
51
|
* timeout or maximum attempt count and treat exhaustion as a failure; do not retry forever.
|
|
52
52
|
*
|
|
53
53
|
* Access control: the URL's `full_report_id` must be in the caller's read scope for
|
|
@@ -21,6 +21,9 @@ export async function validateWebhook(client: GreenSecurityCore, {
|
|
|
21
21
|
secret: string;
|
|
22
22
|
}): Promise<
|
|
23
23
|
Result<
|
|
24
|
+
| webhooks.SendFullReportCreatedRequest
|
|
25
|
+
| webhooks.SendFullReportUpdatedRequest
|
|
26
|
+
| webhooks.SendFullReportDestroyedRequest
|
|
24
27
|
| webhooks.SendVendorCreatedRequest
|
|
25
28
|
| webhooks.SendVendorUpdatedRequest
|
|
26
29
|
| webhooks.SendVendorDestroyedRequest
|
|
@@ -43,6 +46,9 @@ export async function validateWebhook(client: GreenSecurityCore, {
|
|
|
43
46
|
}
|
|
44
47
|
const jsonString = await request.text();
|
|
45
48
|
const knownSchemas = [
|
|
49
|
+
webhooks.sendFullReportCreatedRequestFromJSON,
|
|
50
|
+
webhooks.sendFullReportUpdatedRequestFromJSON,
|
|
51
|
+
webhooks.sendFullReportDestroyedRequestFromJSON,
|
|
46
52
|
webhooks.sendVendorCreatedRequestFromJSON,
|
|
47
53
|
webhooks.sendVendorUpdatedRequestFromJSON,
|
|
48
54
|
webhooks.sendVendorDestroyedRequestFromJSON,
|
|
@@ -171,6 +171,7 @@ async function $do(
|
|
|
171
171
|
>(
|
|
172
172
|
M.json(200, types$.boolean()),
|
|
173
173
|
M.jsonErr([400, 401, 403, 404], errors.ApiErrorResponse$inboundSchema),
|
|
174
|
+
M.jsonErr(503, errors.ApiErrorResponse$inboundSchema),
|
|
174
175
|
M.fail("4XX"),
|
|
175
176
|
M.fail([500, "5XX"]),
|
|
176
177
|
)(response, req, { extraFields: responseFields });
|
package/src/lib/config.ts
CHANGED
|
@@ -80,8 +80,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
80
80
|
export const SDK_METADATA = {
|
|
81
81
|
language: "typescript",
|
|
82
82
|
openapiDocVersion: "0.45.0",
|
|
83
|
-
sdkVersion: "0.45.0-beta.
|
|
83
|
+
sdkVersion: "0.45.0-beta.16",
|
|
84
84
|
genVersion: "2.935.1",
|
|
85
85
|
userAgent:
|
|
86
|
-
"speakeasy-sdk/typescript 0.45.0-beta.
|
|
86
|
+
"speakeasy-sdk/typescript 0.45.0-beta.16 2.935.1 0.45.0 @greensecurity/javascript-sdk",
|
|
87
87
|
} as const;
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
9
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
+
import * as types from "../../types/primitives.js";
|
|
11
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Where the run ended up. A delivery of `FullReport.created` only ever carries a
|
|
15
|
+
*
|
|
16
|
+
* @remarks
|
|
17
|
+
* terminal value; the others are states a run passes through.
|
|
18
|
+
*/
|
|
19
|
+
export const FullReportStatus = {
|
|
20
|
+
Pending: "pending",
|
|
21
|
+
Processing: "processing",
|
|
22
|
+
Completed: "completed",
|
|
23
|
+
Canceled: "canceled",
|
|
24
|
+
Failed: "failed",
|
|
25
|
+
} as const;
|
|
26
|
+
/**
|
|
27
|
+
* Where the run ended up. A delivery of `FullReport.created` only ever carries a
|
|
28
|
+
*
|
|
29
|
+
* @remarks
|
|
30
|
+
* terminal value; the others are states a run passes through.
|
|
31
|
+
*/
|
|
32
|
+
export type FullReportStatus = ClosedEnum<typeof FullReportStatus>;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* One run of a report, generated on request or by a schedule. Carries the run's own state
|
|
36
|
+
*
|
|
37
|
+
* @remarks
|
|
38
|
+
* plus which report it was and a short-lived signed link to the file it produced.
|
|
39
|
+
*/
|
|
40
|
+
export type FullReport = {
|
|
41
|
+
id: number;
|
|
42
|
+
/**
|
|
43
|
+
* Where the run ended up. A delivery of `FullReport.created` only ever carries a
|
|
44
|
+
*
|
|
45
|
+
* @remarks
|
|
46
|
+
* terminal value; the others are states a run passes through.
|
|
47
|
+
*/
|
|
48
|
+
status: FullReportStatus;
|
|
49
|
+
/**
|
|
50
|
+
* The report that was run, e.g. `Reports::SqlQueryReport`.
|
|
51
|
+
*/
|
|
52
|
+
reportClass: string;
|
|
53
|
+
/**
|
|
54
|
+
* The subject line of the schedule that produced this run. Null for a run that was
|
|
55
|
+
*
|
|
56
|
+
* @remarks
|
|
57
|
+
* generated on request rather than by a schedule.
|
|
58
|
+
*/
|
|
59
|
+
name?: string | null | undefined;
|
|
60
|
+
/**
|
|
61
|
+
* Signed download link, valid for 2 hours from the moment the delivery was built and
|
|
62
|
+
*
|
|
63
|
+
* @remarks
|
|
64
|
+
* minted fresh for each delivery. Null when the run produced no file, which is every
|
|
65
|
+
* non-`completed` status.
|
|
66
|
+
*/
|
|
67
|
+
reportUrl?: string | null | undefined;
|
|
68
|
+
dateSubmitted?: Date | null | undefined;
|
|
69
|
+
/**
|
|
70
|
+
* When the run started generating.
|
|
71
|
+
*/
|
|
72
|
+
dateCreated?: Date | null | undefined;
|
|
73
|
+
/**
|
|
74
|
+
* When the run reached a terminal state. Stamping this is what delivers `created`.
|
|
75
|
+
*/
|
|
76
|
+
dateCompleted?: Date | null | undefined;
|
|
77
|
+
/**
|
|
78
|
+
* Milliseconds spent generating.
|
|
79
|
+
*/
|
|
80
|
+
durationMs?: number | null | undefined;
|
|
81
|
+
rowCount?: number | null | undefined;
|
|
82
|
+
/**
|
|
83
|
+
* Size of the generated file in bytes.
|
|
84
|
+
*/
|
|
85
|
+
fileSize?: number | null | undefined;
|
|
86
|
+
/**
|
|
87
|
+
* Why a `failed` run failed. Null on every other status.
|
|
88
|
+
*/
|
|
89
|
+
errorMessage?: string | null | undefined;
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
/** @internal */
|
|
93
|
+
export const FullReportStatus$inboundSchema: z.ZodNativeEnum<
|
|
94
|
+
typeof FullReportStatus
|
|
95
|
+
> = z.nativeEnum(FullReportStatus);
|
|
96
|
+
/** @internal */
|
|
97
|
+
export const FullReportStatus$outboundSchema: z.ZodNativeEnum<
|
|
98
|
+
typeof FullReportStatus
|
|
99
|
+
> = FullReportStatus$inboundSchema;
|
|
100
|
+
|
|
101
|
+
/** @internal */
|
|
102
|
+
export const FullReport$inboundSchema: z.ZodType<
|
|
103
|
+
FullReport,
|
|
104
|
+
z.ZodTypeDef,
|
|
105
|
+
unknown
|
|
106
|
+
> = z.object({
|
|
107
|
+
id: types.number(),
|
|
108
|
+
status: FullReportStatus$inboundSchema,
|
|
109
|
+
report_class: types.string(),
|
|
110
|
+
name: z.nullable(types.string()).optional(),
|
|
111
|
+
report_url: z.nullable(types.string()).optional(),
|
|
112
|
+
date_submitted: z.nullable(types.date()).optional(),
|
|
113
|
+
date_created: z.nullable(types.date()).optional(),
|
|
114
|
+
date_completed: z.nullable(types.date()).optional(),
|
|
115
|
+
duration_ms: z.nullable(types.number()).optional(),
|
|
116
|
+
row_count: z.nullable(types.number()).optional(),
|
|
117
|
+
file_size: z.nullable(types.number()).optional(),
|
|
118
|
+
error_message: z.nullable(types.string()).optional(),
|
|
119
|
+
}).transform((v) => {
|
|
120
|
+
return remap$(v, {
|
|
121
|
+
"report_class": "reportClass",
|
|
122
|
+
"report_url": "reportUrl",
|
|
123
|
+
"date_submitted": "dateSubmitted",
|
|
124
|
+
"date_created": "dateCreated",
|
|
125
|
+
"date_completed": "dateCompleted",
|
|
126
|
+
"duration_ms": "durationMs",
|
|
127
|
+
"row_count": "rowCount",
|
|
128
|
+
"file_size": "fileSize",
|
|
129
|
+
"error_message": "errorMessage",
|
|
130
|
+
});
|
|
131
|
+
});
|
|
132
|
+
/** @internal */
|
|
133
|
+
export type FullReport$Outbound = {
|
|
134
|
+
id: number;
|
|
135
|
+
status: string;
|
|
136
|
+
report_class: string;
|
|
137
|
+
name?: string | null | undefined;
|
|
138
|
+
report_url?: string | null | undefined;
|
|
139
|
+
date_submitted?: string | null | undefined;
|
|
140
|
+
date_created?: string | null | undefined;
|
|
141
|
+
date_completed?: string | null | undefined;
|
|
142
|
+
duration_ms?: number | null | undefined;
|
|
143
|
+
row_count?: number | null | undefined;
|
|
144
|
+
file_size?: number | null | undefined;
|
|
145
|
+
error_message?: string | null | undefined;
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
/** @internal */
|
|
149
|
+
export const FullReport$outboundSchema: z.ZodType<
|
|
150
|
+
FullReport$Outbound,
|
|
151
|
+
z.ZodTypeDef,
|
|
152
|
+
FullReport
|
|
153
|
+
> = z.object({
|
|
154
|
+
id: z.number().int(),
|
|
155
|
+
status: FullReportStatus$outboundSchema,
|
|
156
|
+
reportClass: z.string(),
|
|
157
|
+
name: z.nullable(z.string()).optional(),
|
|
158
|
+
reportUrl: z.nullable(z.string()).optional(),
|
|
159
|
+
dateSubmitted: z.nullable(z.date().transform(v => v.toISOString()))
|
|
160
|
+
.optional(),
|
|
161
|
+
dateCreated: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
162
|
+
dateCompleted: z.nullable(z.date().transform(v => v.toISOString()))
|
|
163
|
+
.optional(),
|
|
164
|
+
durationMs: z.nullable(z.number().int()).optional(),
|
|
165
|
+
rowCount: z.nullable(z.number().int()).optional(),
|
|
166
|
+
fileSize: z.nullable(z.number().int()).optional(),
|
|
167
|
+
errorMessage: z.nullable(z.string()).optional(),
|
|
168
|
+
}).transform((v) => {
|
|
169
|
+
return remap$(v, {
|
|
170
|
+
reportClass: "report_class",
|
|
171
|
+
reportUrl: "report_url",
|
|
172
|
+
dateSubmitted: "date_submitted",
|
|
173
|
+
dateCreated: "date_created",
|
|
174
|
+
dateCompleted: "date_completed",
|
|
175
|
+
durationMs: "duration_ms",
|
|
176
|
+
rowCount: "row_count",
|
|
177
|
+
fileSize: "file_size",
|
|
178
|
+
errorMessage: "error_message",
|
|
179
|
+
});
|
|
180
|
+
});
|
|
181
|
+
|
|
182
|
+
export function fullReportToJSON(fullReport: FullReport): string {
|
|
183
|
+
return JSON.stringify(FullReport$outboundSchema.parse(fullReport));
|
|
184
|
+
}
|
|
185
|
+
export function fullReportFromJSON(
|
|
186
|
+
jsonString: string,
|
|
187
|
+
): SafeParseResult<FullReport, SDKValidationError> {
|
|
188
|
+
return safeParse(
|
|
189
|
+
jsonString,
|
|
190
|
+
(x) => FullReport$inboundSchema.parse(JSON.parse(x)),
|
|
191
|
+
`Failed to parse 'FullReport' from JSON`,
|
|
192
|
+
);
|
|
193
|
+
}
|
|
@@ -45,6 +45,7 @@ export * from "./fhirconfigcreate.js";
|
|
|
45
45
|
export * from "./fhirconfigpartialupdate.js";
|
|
46
46
|
export * from "./fhirextraentities.js";
|
|
47
47
|
export * from "./financialstatus.js";
|
|
48
|
+
export * from "./fullreport.js";
|
|
48
49
|
export * from "./handoff.js";
|
|
49
50
|
export * from "./imageset.js";
|
|
50
51
|
export * from "./invitee.js";
|
|
@@ -12,6 +12,9 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
12
12
|
* and `destroyed` lifecycle of every entity that supports webhooks.
|
|
13
13
|
*/
|
|
14
14
|
export const WebhookSubscription = {
|
|
15
|
+
FullReportCreated: "FullReport.created",
|
|
16
|
+
FullReportUpdated: "FullReport.updated",
|
|
17
|
+
FullReportDestroyed: "FullReport.destroyed",
|
|
15
18
|
TargetFacilityStatusChangeCreated: "TargetFacilityStatusChange.created",
|
|
16
19
|
TargetFacilityStatusChangeUpdated: "TargetFacilityStatusChange.updated",
|
|
17
20
|
TargetFacilityStatusChangeDestroyed: "TargetFacilityStatusChange.destroyed",
|
|
@@ -14,6 +14,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
14
14
|
* The entity the event is about.
|
|
15
15
|
*/
|
|
16
16
|
export const Model = {
|
|
17
|
+
FullReport: "FullReport",
|
|
17
18
|
TargetFacilityStatusChange: "TargetFacilityStatusChange",
|
|
18
19
|
Vendor: "Vendor",
|
|
19
20
|
VendorScan: "VendorScan",
|
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
+
export * from "./sendfullreportcreated.js";
|
|
6
|
+
export * from "./sendfullreportdestroyed.js";
|
|
7
|
+
export * from "./sendfullreportupdated.js";
|
|
5
8
|
export * from "./sendtargetfacilitystatuschangecreated.js";
|
|
6
9
|
export * from "./sendtargetfacilitystatuschangedestroyed.js";
|
|
7
10
|
export * from "./sendtargetfacilitystatuschangeupdated.js";
|