@greensecurity/javascript-sdk 0.39.41 → 0.39.46
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/bin/mcp-server.js +180 -121
- package/bin/mcp-server.js.map +34 -33
- package/dist/commonjs/__tests__/zones.test.js +5 -2
- package/dist/commonjs/__tests__/zones.test.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/models/components/backgroundcheckresult.d.ts +27 -27
- package/dist/commonjs/models/components/backgroundcheckresult.d.ts.map +1 -1
- package/dist/commonjs/models/components/backgroundcheckresult.js.map +1 -1
- package/dist/commonjs/models/components/contact.d.ts +25 -25
- package/dist/commonjs/models/components/contact.d.ts.map +1 -1
- package/dist/commonjs/models/components/contact.js +17 -17
- package/dist/commonjs/models/components/contact.js.map +1 -1
- package/dist/commonjs/models/components/credential.d.ts +25 -25
- package/dist/commonjs/models/components/credential.d.ts.map +1 -1
- package/dist/commonjs/models/components/credential.js.map +1 -1
- package/dist/commonjs/models/components/credentialdocument.d.ts +21 -21
- package/dist/commonjs/models/components/credentialdocument.d.ts.map +1 -1
- package/dist/commonjs/models/components/credentialdocument.js +24 -24
- package/dist/commonjs/models/components/credentialdocument.js.map +1 -1
- package/dist/commonjs/models/components/credit.d.ts +10 -10
- package/dist/commonjs/models/components/credit.d.ts.map +1 -1
- package/dist/commonjs/models/components/credit.js.map +1 -1
- package/dist/commonjs/models/components/datarequest.d.ts +21 -21
- package/dist/commonjs/models/components/datarequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/datarequest.js.map +1 -1
- package/dist/commonjs/models/components/facility.d.ts +25 -25
- package/dist/commonjs/models/components/facility.d.ts.map +1 -1
- package/dist/commonjs/models/components/facility.js +16 -16
- package/dist/commonjs/models/components/facility.js.map +1 -1
- package/dist/commonjs/models/components/feed.d.ts +15 -0
- package/dist/commonjs/models/components/feed.d.ts.map +1 -1
- package/dist/commonjs/models/components/feed.js +21 -0
- package/dist/commonjs/models/components/feed.js.map +1 -1
- 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/invitee.d.ts +33 -0
- package/dist/commonjs/models/components/invitee.d.ts.map +1 -0
- package/dist/commonjs/models/components/invitee.js +73 -0
- package/dist/commonjs/models/components/invitee.js.map +1 -0
- package/dist/commonjs/models/components/mfarequiredresponse.d.ts +20 -20
- package/dist/commonjs/models/components/mfarequiredresponse.d.ts.map +1 -1
- package/dist/commonjs/models/components/mfarequiredresponse.js.map +1 -1
- package/dist/commonjs/models/components/passwordrequiredresponse.d.ts +11 -11
- package/dist/commonjs/models/components/passwordrequiredresponse.d.ts.map +1 -1
- package/dist/commonjs/models/components/passwordrequiredresponse.js.map +1 -1
- package/dist/commonjs/models/components/samlloginrequiredresponse.d.ts +18 -18
- package/dist/commonjs/models/components/samlloginrequiredresponse.d.ts.map +1 -1
- package/dist/commonjs/models/components/samlloginrequiredresponse.js.map +1 -1
- package/dist/commonjs/models/components/standingappointment.d.ts +15 -2
- package/dist/commonjs/models/components/standingappointment.d.ts.map +1 -1
- package/dist/commonjs/models/components/standingappointment.js +21 -4
- package/dist/commonjs/models/components/standingappointment.js.map +1 -1
- package/dist/commonjs/models/components/user.d.ts +65 -65
- package/dist/commonjs/models/components/user.d.ts.map +1 -1
- package/dist/commonjs/models/components/user.js +17 -17
- package/dist/commonjs/models/components/user.js.map +1 -1
- package/dist/commonjs/models/components/userlocation.d.ts +19 -19
- package/dist/commonjs/models/components/userlocation.d.ts.map +1 -1
- package/dist/commonjs/models/components/userlocation.js.map +1 -1
- package/dist/commonjs/models/components/vendorcredentialdatarequest.d.ts +42 -42
- package/dist/commonjs/models/components/vendorcredentialdatarequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/vendorcredentialdatarequest.js +45 -45
- package/dist/commonjs/models/components/vendorcredentialdatarequest.js.map +1 -1
- package/dist/commonjs/models/components/vendorcredentialfile.d.ts +21 -21
- package/dist/commonjs/models/components/vendorcredentialfile.d.ts.map +1 -1
- package/dist/commonjs/models/components/vendorcredentialfile.js +30 -30
- package/dist/commonjs/models/components/vendorcredentialfile.js.map +1 -1
- package/dist/commonjs/models/components/webhookendpoint.d.ts +18 -18
- package/dist/commonjs/models/components/webhookendpoint.d.ts.map +1 -1
- package/dist/commonjs/models/components/webhookendpoint.js.map +1 -1
- package/dist/commonjs/models/operations/createinvoice.d.ts +106 -106
- package/dist/commonjs/models/operations/createinvoice.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createinvoice.js +46 -46
- package/dist/commonjs/models/operations/createinvoice.js.map +1 -1
- package/dist/commonjs/models/operations/createorupdatebcr.d.ts +20 -20
- package/dist/commonjs/models/operations/createorupdatebcr.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createorupdatebcr.js.map +1 -1
- package/dist/commonjs/models/operations/listvendorinvoices.d.ts +20 -20
- package/dist/commonjs/models/operations/listvendorinvoices.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listvendorinvoices.js.map +1 -1
- package/dist/commonjs/models/operations/securityzonecheckin.d.ts +22 -22
- package/dist/commonjs/models/operations/securityzonecheckin.d.ts.map +1 -1
- package/dist/commonjs/models/operations/securityzonecheckin.js +17 -17
- package/dist/commonjs/models/operations/securityzonecheckin.js.map +1 -1
- package/dist/commonjs/models/operations/senddownloadcode.d.ts +10 -10
- package/dist/commonjs/models/operations/senddownloadcode.d.ts.map +1 -1
- package/dist/commonjs/models/operations/senddownloadcode.js.map +1 -1
- package/dist/commonjs/models/operations/updateinvoice.d.ts +106 -106
- package/dist/commonjs/models/operations/updateinvoice.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updateinvoice.js +47 -47
- package/dist/commonjs/models/operations/updateinvoice.js.map +1 -1
- package/dist/commonjs/models/operations/updatevendorcredentialdata.d.ts +22 -22
- package/dist/commonjs/models/operations/updatevendorcredentialdata.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updatevendorcredentialdata.js.map +1 -1
- package/dist/commonjs/models/operations/updatevendordetails.d.ts +24 -24
- package/dist/commonjs/models/operations/updatevendordetails.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updatevendordetails.js.map +1 -1
- package/dist/commonjs/models/operations/updatevendorscrubdetails.d.ts +21 -21
- package/dist/commonjs/models/operations/updatevendorscrubdetails.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updatevendorscrubdetails.js.map +1 -1
- package/dist/esm/__tests__/zones.test.js +5 -2
- package/dist/esm/__tests__/zones.test.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/models/components/backgroundcheckresult.d.ts +27 -27
- package/dist/esm/models/components/backgroundcheckresult.d.ts.map +1 -1
- package/dist/esm/models/components/backgroundcheckresult.js.map +1 -1
- package/dist/esm/models/components/contact.d.ts +25 -25
- package/dist/esm/models/components/contact.d.ts.map +1 -1
- package/dist/esm/models/components/contact.js +16 -16
- package/dist/esm/models/components/contact.js.map +1 -1
- package/dist/esm/models/components/credential.d.ts +25 -25
- package/dist/esm/models/components/credential.d.ts.map +1 -1
- package/dist/esm/models/components/credential.js.map +1 -1
- package/dist/esm/models/components/credentialdocument.d.ts +21 -21
- package/dist/esm/models/components/credentialdocument.d.ts.map +1 -1
- package/dist/esm/models/components/credentialdocument.js +21 -21
- package/dist/esm/models/components/credentialdocument.js.map +1 -1
- package/dist/esm/models/components/credit.d.ts +10 -10
- package/dist/esm/models/components/credit.d.ts.map +1 -1
- package/dist/esm/models/components/credit.js.map +1 -1
- package/dist/esm/models/components/datarequest.d.ts +21 -21
- package/dist/esm/models/components/datarequest.d.ts.map +1 -1
- package/dist/esm/models/components/datarequest.js.map +1 -1
- package/dist/esm/models/components/facility.d.ts +25 -25
- package/dist/esm/models/components/facility.d.ts.map +1 -1
- package/dist/esm/models/components/facility.js +15 -15
- package/dist/esm/models/components/facility.js.map +1 -1
- package/dist/esm/models/components/feed.d.ts +15 -0
- package/dist/esm/models/components/feed.d.ts.map +1 -1
- package/dist/esm/models/components/feed.js +21 -0
- package/dist/esm/models/components/feed.js.map +1 -1
- 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/invitee.d.ts +33 -0
- package/dist/esm/models/components/invitee.d.ts.map +1 -0
- package/dist/esm/models/components/invitee.js +35 -0
- package/dist/esm/models/components/invitee.js.map +1 -0
- package/dist/esm/models/components/mfarequiredresponse.d.ts +20 -20
- package/dist/esm/models/components/mfarequiredresponse.d.ts.map +1 -1
- package/dist/esm/models/components/mfarequiredresponse.js.map +1 -1
- package/dist/esm/models/components/passwordrequiredresponse.d.ts +11 -11
- package/dist/esm/models/components/passwordrequiredresponse.d.ts.map +1 -1
- package/dist/esm/models/components/passwordrequiredresponse.js.map +1 -1
- package/dist/esm/models/components/samlloginrequiredresponse.d.ts +18 -18
- package/dist/esm/models/components/samlloginrequiredresponse.d.ts.map +1 -1
- package/dist/esm/models/components/samlloginrequiredresponse.js.map +1 -1
- package/dist/esm/models/components/standingappointment.d.ts +15 -2
- package/dist/esm/models/components/standingappointment.d.ts.map +1 -1
- package/dist/esm/models/components/standingappointment.js +21 -4
- package/dist/esm/models/components/standingappointment.js.map +1 -1
- package/dist/esm/models/components/user.d.ts +65 -65
- package/dist/esm/models/components/user.d.ts.map +1 -1
- package/dist/esm/models/components/user.js +16 -16
- package/dist/esm/models/components/user.js.map +1 -1
- package/dist/esm/models/components/userlocation.d.ts +19 -19
- package/dist/esm/models/components/userlocation.d.ts.map +1 -1
- package/dist/esm/models/components/userlocation.js.map +1 -1
- package/dist/esm/models/components/vendorcredentialdatarequest.d.ts +42 -42
- package/dist/esm/models/components/vendorcredentialdatarequest.d.ts.map +1 -1
- package/dist/esm/models/components/vendorcredentialdatarequest.js +42 -42
- package/dist/esm/models/components/vendorcredentialdatarequest.js.map +1 -1
- package/dist/esm/models/components/vendorcredentialfile.d.ts +21 -21
- package/dist/esm/models/components/vendorcredentialfile.d.ts.map +1 -1
- package/dist/esm/models/components/vendorcredentialfile.js +27 -27
- package/dist/esm/models/components/vendorcredentialfile.js.map +1 -1
- package/dist/esm/models/components/webhookendpoint.d.ts +18 -18
- package/dist/esm/models/components/webhookendpoint.d.ts.map +1 -1
- package/dist/esm/models/components/webhookendpoint.js.map +1 -1
- package/dist/esm/models/operations/createinvoice.d.ts +106 -106
- package/dist/esm/models/operations/createinvoice.d.ts.map +1 -1
- package/dist/esm/models/operations/createinvoice.js +45 -45
- package/dist/esm/models/operations/createinvoice.js.map +1 -1
- package/dist/esm/models/operations/createorupdatebcr.d.ts +20 -20
- package/dist/esm/models/operations/createorupdatebcr.d.ts.map +1 -1
- package/dist/esm/models/operations/createorupdatebcr.js.map +1 -1
- package/dist/esm/models/operations/listvendorinvoices.d.ts +20 -20
- package/dist/esm/models/operations/listvendorinvoices.d.ts.map +1 -1
- package/dist/esm/models/operations/listvendorinvoices.js.map +1 -1
- package/dist/esm/models/operations/securityzonecheckin.d.ts +22 -22
- package/dist/esm/models/operations/securityzonecheckin.d.ts.map +1 -1
- package/dist/esm/models/operations/securityzonecheckin.js +16 -16
- package/dist/esm/models/operations/securityzonecheckin.js.map +1 -1
- package/dist/esm/models/operations/senddownloadcode.d.ts +10 -10
- package/dist/esm/models/operations/senddownloadcode.d.ts.map +1 -1
- package/dist/esm/models/operations/senddownloadcode.js.map +1 -1
- package/dist/esm/models/operations/updateinvoice.d.ts +106 -106
- package/dist/esm/models/operations/updateinvoice.d.ts.map +1 -1
- package/dist/esm/models/operations/updateinvoice.js +46 -46
- package/dist/esm/models/operations/updateinvoice.js.map +1 -1
- package/dist/esm/models/operations/updatevendorcredentialdata.d.ts +22 -22
- package/dist/esm/models/operations/updatevendorcredentialdata.d.ts.map +1 -1
- package/dist/esm/models/operations/updatevendorcredentialdata.js.map +1 -1
- package/dist/esm/models/operations/updatevendordetails.d.ts +24 -24
- package/dist/esm/models/operations/updatevendordetails.d.ts.map +1 -1
- package/dist/esm/models/operations/updatevendordetails.js.map +1 -1
- package/dist/esm/models/operations/updatevendorscrubdetails.d.ts +21 -21
- package/dist/esm/models/operations/updatevendorscrubdetails.d.ts.map +1 -1
- package/dist/esm/models/operations/updatevendorscrubdetails.js.map +1 -1
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/zones.test.ts +5 -2
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/backgroundcheckresult.ts +31 -31
- package/src/models/components/contact.ts +25 -25
- package/src/models/components/credential.ts +26 -26
- package/src/models/components/credentialdocument.ts +53 -53
- package/src/models/components/credit.ts +11 -11
- package/src/models/components/datarequest.ts +19 -19
- package/src/models/components/facility.ts +27 -27
- package/src/models/components/feed.ts +40 -0
- package/src/models/components/index.ts +1 -0
- package/src/models/components/invitee.ts +67 -0
- package/src/models/components/mfarequiredresponse.ts +21 -21
- package/src/models/components/passwordrequiredresponse.ts +12 -12
- package/src/models/components/samlloginrequiredresponse.ts +21 -21
- package/src/models/components/standingappointment.ts +40 -6
- package/src/models/components/user.ts +50 -50
- package/src/models/components/userlocation.ts +19 -19
- package/src/models/components/vendorcredentialdatarequest.ts +95 -95
- package/src/models/components/vendorcredentialfile.ts +57 -57
- package/src/models/components/webhookendpoint.ts +21 -21
- package/src/models/operations/createinvoice.ts +114 -114
- package/src/models/operations/createorupdatebcr.ts +21 -21
- package/src/models/operations/listvendorinvoices.ts +21 -21
- package/src/models/operations/securityzonecheckin.ts +24 -24
- package/src/models/operations/senddownloadcode.ts +12 -12
- package/src/models/operations/updateinvoice.ts +124 -124
- package/src/models/operations/updatevendorcredentialdata.ts +24 -24
- package/src/models/operations/updatevendordetails.ts +21 -21
- package/src/models/operations/updatevendorscrubdetails.ts +23 -23
|
@@ -16,6 +16,17 @@ export const Action = {
|
|
|
16
16
|
} as const;
|
|
17
17
|
export type Action = ClosedEnum<typeof Action>;
|
|
18
18
|
|
|
19
|
+
export type Credit = {
|
|
20
|
+
id?: number | undefined;
|
|
21
|
+
date?: string | null | undefined;
|
|
22
|
+
action?: Action | undefined;
|
|
23
|
+
amount?: number | undefined;
|
|
24
|
+
balance?: number | undefined;
|
|
25
|
+
from?: string | null | undefined;
|
|
26
|
+
to?: string | null | undefined;
|
|
27
|
+
invoiceNumber?: string | null | undefined;
|
|
28
|
+
};
|
|
29
|
+
|
|
19
30
|
/** @internal */
|
|
20
31
|
export const Action$inboundSchema: z.ZodNativeEnum<typeof Action> = z
|
|
21
32
|
.nativeEnum(Action);
|
|
@@ -35,17 +46,6 @@ export namespace Action$ {
|
|
|
35
46
|
export const outboundSchema = Action$outboundSchema;
|
|
36
47
|
}
|
|
37
48
|
|
|
38
|
-
export type Credit = {
|
|
39
|
-
id?: number | undefined;
|
|
40
|
-
date?: string | null | undefined;
|
|
41
|
-
action?: Action | undefined;
|
|
42
|
-
amount?: number | undefined;
|
|
43
|
-
balance?: number | undefined;
|
|
44
|
-
from?: string | null | undefined;
|
|
45
|
-
to?: string | null | undefined;
|
|
46
|
-
invoiceNumber?: string | null | undefined;
|
|
47
|
-
};
|
|
48
|
-
|
|
49
49
|
/** @internal */
|
|
50
50
|
export const Credit$inboundSchema: z.ZodType<Credit, z.ZodTypeDef, unknown> = z
|
|
51
51
|
.object({
|
|
@@ -18,25 +18,6 @@ export const DataType = {
|
|
|
18
18
|
} as const;
|
|
19
19
|
export type DataType = ClosedEnum<typeof DataType>;
|
|
20
20
|
|
|
21
|
-
/** @internal */
|
|
22
|
-
export const DataType$inboundSchema: z.ZodNativeEnum<typeof DataType> = z
|
|
23
|
-
.nativeEnum(DataType);
|
|
24
|
-
|
|
25
|
-
/** @internal */
|
|
26
|
-
export const DataType$outboundSchema: z.ZodNativeEnum<typeof DataType> =
|
|
27
|
-
DataType$inboundSchema;
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* @internal
|
|
31
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
32
|
-
*/
|
|
33
|
-
export namespace DataType$ {
|
|
34
|
-
/** @deprecated use `DataType$inboundSchema` instead. */
|
|
35
|
-
export const inboundSchema = DataType$inboundSchema;
|
|
36
|
-
/** @deprecated use `DataType$outboundSchema` instead. */
|
|
37
|
-
export const outboundSchema = DataType$outboundSchema;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
21
|
export type Url = {
|
|
41
22
|
value?: string | null | undefined;
|
|
42
23
|
func?: string | null | undefined;
|
|
@@ -61,6 +42,25 @@ export type DataRequest = {
|
|
|
61
42
|
file?: DataRequestFile | null | undefined;
|
|
62
43
|
};
|
|
63
44
|
|
|
45
|
+
/** @internal */
|
|
46
|
+
export const DataType$inboundSchema: z.ZodNativeEnum<typeof DataType> = z
|
|
47
|
+
.nativeEnum(DataType);
|
|
48
|
+
|
|
49
|
+
/** @internal */
|
|
50
|
+
export const DataType$outboundSchema: z.ZodNativeEnum<typeof DataType> =
|
|
51
|
+
DataType$inboundSchema;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* @internal
|
|
55
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
56
|
+
*/
|
|
57
|
+
export namespace DataType$ {
|
|
58
|
+
/** @deprecated use `DataType$inboundSchema` instead. */
|
|
59
|
+
export const inboundSchema = DataType$inboundSchema;
|
|
60
|
+
/** @deprecated use `DataType$outboundSchema` instead. */
|
|
61
|
+
export const outboundSchema = DataType$outboundSchema;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
64
|
/** @internal */
|
|
65
65
|
export const Url$inboundSchema: z.ZodType<Url, z.ZodTypeDef, unknown> = z
|
|
66
66
|
.object({
|
|
@@ -34,33 +34,6 @@ import {
|
|
|
34
34
|
SystemSummary$outboundSchema,
|
|
35
35
|
} from "./systemsummary.js";
|
|
36
36
|
|
|
37
|
-
export const VendorGuestLimitAndOr = {
|
|
38
|
-
And: "and",
|
|
39
|
-
Or: "or",
|
|
40
|
-
} as const;
|
|
41
|
-
export type VendorGuestLimitAndOr = ClosedEnum<typeof VendorGuestLimitAndOr>;
|
|
42
|
-
|
|
43
|
-
/** @internal */
|
|
44
|
-
export const VendorGuestLimitAndOr$inboundSchema: z.ZodNativeEnum<
|
|
45
|
-
typeof VendorGuestLimitAndOr
|
|
46
|
-
> = z.nativeEnum(VendorGuestLimitAndOr);
|
|
47
|
-
|
|
48
|
-
/** @internal */
|
|
49
|
-
export const VendorGuestLimitAndOr$outboundSchema: z.ZodNativeEnum<
|
|
50
|
-
typeof VendorGuestLimitAndOr
|
|
51
|
-
> = VendorGuestLimitAndOr$inboundSchema;
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* @internal
|
|
55
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
56
|
-
*/
|
|
57
|
-
export namespace VendorGuestLimitAndOr$ {
|
|
58
|
-
/** @deprecated use `VendorGuestLimitAndOr$inboundSchema` instead. */
|
|
59
|
-
export const inboundSchema = VendorGuestLimitAndOr$inboundSchema;
|
|
60
|
-
/** @deprecated use `VendorGuestLimitAndOr$outboundSchema` instead. */
|
|
61
|
-
export const outboundSchema = VendorGuestLimitAndOr$outboundSchema;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
37
|
export type AppointmentPolicy = {
|
|
65
38
|
standingApptPeriod?: string | undefined;
|
|
66
39
|
apptRequestInfo?: string | undefined;
|
|
@@ -144,6 +117,12 @@ export type Uses = {
|
|
|
144
117
|
visitorSearch: boolean;
|
|
145
118
|
};
|
|
146
119
|
|
|
120
|
+
export const VendorGuestLimitAndOr = {
|
|
121
|
+
And: "and",
|
|
122
|
+
Or: "or",
|
|
123
|
+
} as const;
|
|
124
|
+
export type VendorGuestLimitAndOr = ClosedEnum<typeof VendorGuestLimitAndOr>;
|
|
125
|
+
|
|
147
126
|
export type VendorGuestPolicy = {
|
|
148
127
|
enabled: boolean;
|
|
149
128
|
vendorGuestLimit?: number | undefined;
|
|
@@ -860,6 +839,27 @@ export function usesFromJSON(
|
|
|
860
839
|
);
|
|
861
840
|
}
|
|
862
841
|
|
|
842
|
+
/** @internal */
|
|
843
|
+
export const VendorGuestLimitAndOr$inboundSchema: z.ZodNativeEnum<
|
|
844
|
+
typeof VendorGuestLimitAndOr
|
|
845
|
+
> = z.nativeEnum(VendorGuestLimitAndOr);
|
|
846
|
+
|
|
847
|
+
/** @internal */
|
|
848
|
+
export const VendorGuestLimitAndOr$outboundSchema: z.ZodNativeEnum<
|
|
849
|
+
typeof VendorGuestLimitAndOr
|
|
850
|
+
> = VendorGuestLimitAndOr$inboundSchema;
|
|
851
|
+
|
|
852
|
+
/**
|
|
853
|
+
* @internal
|
|
854
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
855
|
+
*/
|
|
856
|
+
export namespace VendorGuestLimitAndOr$ {
|
|
857
|
+
/** @deprecated use `VendorGuestLimitAndOr$inboundSchema` instead. */
|
|
858
|
+
export const inboundSchema = VendorGuestLimitAndOr$inboundSchema;
|
|
859
|
+
/** @deprecated use `VendorGuestLimitAndOr$outboundSchema` instead. */
|
|
860
|
+
export const outboundSchema = VendorGuestLimitAndOr$outboundSchema;
|
|
861
|
+
}
|
|
862
|
+
|
|
863
863
|
/** @internal */
|
|
864
864
|
export const VendorGuestPolicy$inboundSchema: z.ZodType<
|
|
865
865
|
VendorGuestPolicy,
|
|
@@ -7,6 +7,12 @@ import { remap as remap$ } from "../../lib/primitives.js";
|
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
Invitee,
|
|
12
|
+
Invitee$inboundSchema,
|
|
13
|
+
Invitee$Outbound,
|
|
14
|
+
Invitee$outboundSchema,
|
|
15
|
+
} from "./invitee.js";
|
|
10
16
|
|
|
11
17
|
/**
|
|
12
18
|
* A representation of a Feed response
|
|
@@ -18,6 +24,13 @@ export type Feed = {
|
|
|
18
24
|
end?: string | null | undefined;
|
|
19
25
|
status?: string | null | undefined;
|
|
20
26
|
allDay?: boolean | undefined;
|
|
27
|
+
standingAppt?: boolean | undefined;
|
|
28
|
+
bringingFood?: boolean | undefined;
|
|
29
|
+
notes?: string | null | undefined;
|
|
30
|
+
facility?: string | null | undefined;
|
|
31
|
+
department?: string | null | undefined;
|
|
32
|
+
eventCreator?: string | null | undefined;
|
|
33
|
+
invitees?: Array<Invitee | null> | undefined;
|
|
21
34
|
};
|
|
22
35
|
|
|
23
36
|
/** @internal */
|
|
@@ -29,9 +42,19 @@ export const Feed$inboundSchema: z.ZodType<Feed, z.ZodTypeDef, unknown> = z
|
|
|
29
42
|
end: z.nullable(z.string()).optional(),
|
|
30
43
|
status: z.nullable(z.string()).optional(),
|
|
31
44
|
all_day: z.boolean().optional(),
|
|
45
|
+
standing_appt: z.boolean().optional(),
|
|
46
|
+
bringing_food: z.boolean().optional(),
|
|
47
|
+
notes: z.nullable(z.string()).optional(),
|
|
48
|
+
facility: z.nullable(z.string()).optional(),
|
|
49
|
+
department: z.nullable(z.string()).optional(),
|
|
50
|
+
event_creator: z.nullable(z.string()).optional(),
|
|
51
|
+
invitees: z.array(z.nullable(Invitee$inboundSchema)).optional(),
|
|
32
52
|
}).transform((v) => {
|
|
33
53
|
return remap$(v, {
|
|
34
54
|
"all_day": "allDay",
|
|
55
|
+
"standing_appt": "standingAppt",
|
|
56
|
+
"bringing_food": "bringingFood",
|
|
57
|
+
"event_creator": "eventCreator",
|
|
35
58
|
});
|
|
36
59
|
});
|
|
37
60
|
|
|
@@ -43,6 +66,13 @@ export type Feed$Outbound = {
|
|
|
43
66
|
end?: string | null | undefined;
|
|
44
67
|
status?: string | null | undefined;
|
|
45
68
|
all_day?: boolean | undefined;
|
|
69
|
+
standing_appt?: boolean | undefined;
|
|
70
|
+
bringing_food?: boolean | undefined;
|
|
71
|
+
notes?: string | null | undefined;
|
|
72
|
+
facility?: string | null | undefined;
|
|
73
|
+
department?: string | null | undefined;
|
|
74
|
+
event_creator?: string | null | undefined;
|
|
75
|
+
invitees?: Array<Invitee$Outbound | null> | undefined;
|
|
46
76
|
};
|
|
47
77
|
|
|
48
78
|
/** @internal */
|
|
@@ -54,9 +84,19 @@ export const Feed$outboundSchema: z.ZodType<Feed$Outbound, z.ZodTypeDef, Feed> =
|
|
|
54
84
|
end: z.nullable(z.string()).optional(),
|
|
55
85
|
status: z.nullable(z.string()).optional(),
|
|
56
86
|
allDay: z.boolean().optional(),
|
|
87
|
+
standingAppt: z.boolean().optional(),
|
|
88
|
+
bringingFood: z.boolean().optional(),
|
|
89
|
+
notes: z.nullable(z.string()).optional(),
|
|
90
|
+
facility: z.nullable(z.string()).optional(),
|
|
91
|
+
department: z.nullable(z.string()).optional(),
|
|
92
|
+
eventCreator: z.nullable(z.string()).optional(),
|
|
93
|
+
invitees: z.array(z.nullable(Invitee$outboundSchema)).optional(),
|
|
57
94
|
}).transform((v) => {
|
|
58
95
|
return remap$(v, {
|
|
59
96
|
allDay: "all_day",
|
|
97
|
+
standingAppt: "standing_appt",
|
|
98
|
+
bringingFood: "bringing_food",
|
|
99
|
+
eventCreator: "event_creator",
|
|
60
100
|
});
|
|
61
101
|
});
|
|
62
102
|
|
|
@@ -26,6 +26,7 @@ export * from "./feed.js";
|
|
|
26
26
|
export * from "./financialstatus.js";
|
|
27
27
|
export * from "./handoff.js";
|
|
28
28
|
export * from "./imageset.js";
|
|
29
|
+
export * from "./invitee.js";
|
|
29
30
|
export * from "./invoice.js";
|
|
30
31
|
export * from "./invoiceitem.js";
|
|
31
32
|
export * from "./invoicetransaction.js";
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
export type Invitee = {
|
|
11
|
+
name?: string | null | undefined;
|
|
12
|
+
details?: string | null | undefined;
|
|
13
|
+
status?: string | null | undefined;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const Invitee$inboundSchema: z.ZodType<Invitee, z.ZodTypeDef, unknown> =
|
|
18
|
+
z.object({
|
|
19
|
+
name: z.nullable(z.string()).optional(),
|
|
20
|
+
details: z.nullable(z.string()).optional(),
|
|
21
|
+
status: z.nullable(z.string()).optional(),
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
/** @internal */
|
|
25
|
+
export type Invitee$Outbound = {
|
|
26
|
+
name?: string | null | undefined;
|
|
27
|
+
details?: string | null | undefined;
|
|
28
|
+
status?: string | null | undefined;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export const Invitee$outboundSchema: z.ZodType<
|
|
33
|
+
Invitee$Outbound,
|
|
34
|
+
z.ZodTypeDef,
|
|
35
|
+
Invitee
|
|
36
|
+
> = z.object({
|
|
37
|
+
name: z.nullable(z.string()).optional(),
|
|
38
|
+
details: z.nullable(z.string()).optional(),
|
|
39
|
+
status: z.nullable(z.string()).optional(),
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* @internal
|
|
44
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
45
|
+
*/
|
|
46
|
+
export namespace Invitee$ {
|
|
47
|
+
/** @deprecated use `Invitee$inboundSchema` instead. */
|
|
48
|
+
export const inboundSchema = Invitee$inboundSchema;
|
|
49
|
+
/** @deprecated use `Invitee$outboundSchema` instead. */
|
|
50
|
+
export const outboundSchema = Invitee$outboundSchema;
|
|
51
|
+
/** @deprecated use `Invitee$Outbound` instead. */
|
|
52
|
+
export type Outbound = Invitee$Outbound;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function inviteeToJSON(invitee: Invitee): string {
|
|
56
|
+
return JSON.stringify(Invitee$outboundSchema.parse(invitee));
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function inviteeFromJSON(
|
|
60
|
+
jsonString: string,
|
|
61
|
+
): SafeParseResult<Invitee, SDKValidationError> {
|
|
62
|
+
return safeParse(
|
|
63
|
+
jsonString,
|
|
64
|
+
(x) => Invitee$inboundSchema.parse(JSON.parse(x)),
|
|
65
|
+
`Failed to parse 'Invitee' from JSON`,
|
|
66
|
+
);
|
|
67
|
+
}
|
|
@@ -22,6 +22,27 @@ export const MfaMethod = {
|
|
|
22
22
|
} as const;
|
|
23
23
|
export type MfaMethod = ClosedEnum<typeof MfaMethod>;
|
|
24
24
|
|
|
25
|
+
/**
|
|
26
|
+
* The response is sent when a login is successful, but requires more information such as a MFA.
|
|
27
|
+
*
|
|
28
|
+
* @remarks
|
|
29
|
+
*
|
|
30
|
+
* If the `mfa_method` is text or email, it's best to show helper text to the user to notify them that a code was sent via mobile or email and they should enter it to proceed.
|
|
31
|
+
*/
|
|
32
|
+
export type MfaRequiredResponse = {
|
|
33
|
+
requires: MfaRequiredResponseRequires;
|
|
34
|
+
success: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Error describing the exact condition of what further steps are needed to finish the login process.
|
|
37
|
+
*/
|
|
38
|
+
error: string;
|
|
39
|
+
/**
|
|
40
|
+
* A redacted version of the phone number such as `###-###-1234`
|
|
41
|
+
*/
|
|
42
|
+
mobilePhone?: string | undefined;
|
|
43
|
+
mfaMethod?: MfaMethod | undefined;
|
|
44
|
+
};
|
|
45
|
+
|
|
25
46
|
/** @internal */
|
|
26
47
|
export const MfaRequiredResponseRequires$inboundSchema: z.ZodNativeEnum<
|
|
27
48
|
typeof MfaRequiredResponseRequires
|
|
@@ -62,27 +83,6 @@ export namespace MfaMethod$ {
|
|
|
62
83
|
export const outboundSchema = MfaMethod$outboundSchema;
|
|
63
84
|
}
|
|
64
85
|
|
|
65
|
-
/**
|
|
66
|
-
* The response is sent when a login is successful, but requires more information such as a MFA.
|
|
67
|
-
*
|
|
68
|
-
* @remarks
|
|
69
|
-
*
|
|
70
|
-
* If the `mfa_method` is text or email, it's best to show helper text to the user to notify them that a code was sent via mobile or email and they should enter it to proceed.
|
|
71
|
-
*/
|
|
72
|
-
export type MfaRequiredResponse = {
|
|
73
|
-
requires: MfaRequiredResponseRequires;
|
|
74
|
-
success: boolean;
|
|
75
|
-
/**
|
|
76
|
-
* Error describing the exact condition of what further steps are needed to finish the login process.
|
|
77
|
-
*/
|
|
78
|
-
error: string;
|
|
79
|
-
/**
|
|
80
|
-
* A redacted version of the phone number such as `###-###-1234`
|
|
81
|
-
*/
|
|
82
|
-
mobilePhone?: string | undefined;
|
|
83
|
-
mfaMethod?: MfaMethod | undefined;
|
|
84
|
-
};
|
|
85
|
-
|
|
86
86
|
/** @internal */
|
|
87
87
|
export const MfaRequiredResponse$inboundSchema: z.ZodType<
|
|
88
88
|
MfaRequiredResponse,
|
|
@@ -13,6 +13,18 @@ export const Requires = {
|
|
|
13
13
|
} as const;
|
|
14
14
|
export type Requires = ClosedEnum<typeof Requires>;
|
|
15
15
|
|
|
16
|
+
/**
|
|
17
|
+
* The response is sent when the email address provided requires a password (no SAML login).
|
|
18
|
+
*/
|
|
19
|
+
export type PasswordRequiredResponse = {
|
|
20
|
+
requires: Requires;
|
|
21
|
+
success: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Error describing the exact condition of what further steps are needed to finish the login process.
|
|
24
|
+
*/
|
|
25
|
+
error: string;
|
|
26
|
+
};
|
|
27
|
+
|
|
16
28
|
/** @internal */
|
|
17
29
|
export const Requires$inboundSchema: z.ZodNativeEnum<typeof Requires> = z
|
|
18
30
|
.nativeEnum(Requires);
|
|
@@ -32,18 +44,6 @@ export namespace Requires$ {
|
|
|
32
44
|
export const outboundSchema = Requires$outboundSchema;
|
|
33
45
|
}
|
|
34
46
|
|
|
35
|
-
/**
|
|
36
|
-
* The response is sent when the email address provided requires a password (no SAML login).
|
|
37
|
-
*/
|
|
38
|
-
export type PasswordRequiredResponse = {
|
|
39
|
-
requires: Requires;
|
|
40
|
-
success: boolean;
|
|
41
|
-
/**
|
|
42
|
-
* Error describing the exact condition of what further steps are needed to finish the login process.
|
|
43
|
-
*/
|
|
44
|
-
error: string;
|
|
45
|
-
};
|
|
46
|
-
|
|
47
47
|
/** @internal */
|
|
48
48
|
export const PasswordRequiredResponse$inboundSchema: z.ZodType<
|
|
49
49
|
PasswordRequiredResponse,
|
|
@@ -16,6 +16,27 @@ export type SamlLoginRequiredResponseRequires = ClosedEnum<
|
|
|
16
16
|
typeof SamlLoginRequiredResponseRequires
|
|
17
17
|
>;
|
|
18
18
|
|
|
19
|
+
/**
|
|
20
|
+
* The email address provided must complete SAML authentication at the provided `sso_url` which encodes the `return_url` that was sent as part of the request.
|
|
21
|
+
*
|
|
22
|
+
* @remarks
|
|
23
|
+
*
|
|
24
|
+
* The user will complete their SAML login at the external IdP and the browser will be redirected to your selected `return_url` with an extra query string parameter called `user_token`. That token is equivalent to the user login and can be used in the `/users/me` endpoint to get user details.
|
|
25
|
+
*/
|
|
26
|
+
export type SamlLoginRequiredResponse = {
|
|
27
|
+
requires: SamlLoginRequiredResponseRequires;
|
|
28
|
+
success: boolean;
|
|
29
|
+
error: string;
|
|
30
|
+
/**
|
|
31
|
+
* Instructions that should be displayed to a user in case the SAML flow determines that the account is valid but this is a registration of a brand new user.
|
|
32
|
+
*/
|
|
33
|
+
ssoInstructions?: string | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* This is the URL that should be opened to initiate the SAML login flow
|
|
36
|
+
*/
|
|
37
|
+
ssoUrl: string;
|
|
38
|
+
};
|
|
39
|
+
|
|
19
40
|
/** @internal */
|
|
20
41
|
export const SamlLoginRequiredResponseRequires$inboundSchema: z.ZodNativeEnum<
|
|
21
42
|
typeof SamlLoginRequiredResponseRequires
|
|
@@ -38,27 +59,6 @@ export namespace SamlLoginRequiredResponseRequires$ {
|
|
|
38
59
|
SamlLoginRequiredResponseRequires$outboundSchema;
|
|
39
60
|
}
|
|
40
61
|
|
|
41
|
-
/**
|
|
42
|
-
* The email address provided must complete SAML authentication at the provided `sso_url` which encodes the `return_url` that was sent as part of the request.
|
|
43
|
-
*
|
|
44
|
-
* @remarks
|
|
45
|
-
*
|
|
46
|
-
* The user will complete their SAML login at the external IdP and the browser will be redirected to your selected `return_url` with an extra query string parameter called `user_token`. That token is equivalent to the user login and can be used in the `/users/me` endpoint to get user details.
|
|
47
|
-
*/
|
|
48
|
-
export type SamlLoginRequiredResponse = {
|
|
49
|
-
requires: SamlLoginRequiredResponseRequires;
|
|
50
|
-
success: boolean;
|
|
51
|
-
error: string;
|
|
52
|
-
/**
|
|
53
|
-
* Instructions that should be displayed to a user in case the SAML flow determines that the account is valid but this is a registration of a brand new user.
|
|
54
|
-
*/
|
|
55
|
-
ssoInstructions?: string | undefined;
|
|
56
|
-
/**
|
|
57
|
-
* This is the URL that should be opened to initiate the SAML login flow
|
|
58
|
-
*/
|
|
59
|
-
ssoUrl: string;
|
|
60
|
-
};
|
|
61
|
-
|
|
62
62
|
/** @internal */
|
|
63
63
|
export const SamlLoginRequiredResponse$inboundSchema: z.ZodType<
|
|
64
64
|
SamlLoginRequiredResponse,
|
|
@@ -7,6 +7,12 @@ import { remap as remap$ } from "../../lib/primitives.js";
|
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
Invitee,
|
|
12
|
+
Invitee$inboundSchema,
|
|
13
|
+
Invitee$Outbound,
|
|
14
|
+
Invitee$outboundSchema,
|
|
15
|
+
} from "./invitee.js";
|
|
10
16
|
|
|
11
17
|
/**
|
|
12
18
|
* A representation of a StandingAppointment response
|
|
@@ -18,8 +24,14 @@ export type StandingAppointment = {
|
|
|
18
24
|
attendees?: Array<string> | undefined;
|
|
19
25
|
start?: string | null | undefined;
|
|
20
26
|
end?: string | null | undefined;
|
|
21
|
-
className?: string | null | undefined;
|
|
22
27
|
status?: string | null | undefined;
|
|
28
|
+
standingAppt?: boolean | undefined;
|
|
29
|
+
bringingFood?: boolean | undefined;
|
|
30
|
+
notes?: string | null | undefined;
|
|
31
|
+
facility?: string | null | undefined;
|
|
32
|
+
department?: string | null | undefined;
|
|
33
|
+
eventCreator?: string | null | undefined;
|
|
34
|
+
invitees?: Array<Invitee | null> | undefined;
|
|
23
35
|
};
|
|
24
36
|
|
|
25
37
|
/** @internal */
|
|
@@ -34,11 +46,19 @@ export const StandingAppointment$inboundSchema: z.ZodType<
|
|
|
34
46
|
attendees: z.array(z.string()).optional(),
|
|
35
47
|
start: z.nullable(z.string()).optional(),
|
|
36
48
|
end: z.nullable(z.string()).optional(),
|
|
37
|
-
class_name: z.nullable(z.string()).optional(),
|
|
38
49
|
status: z.nullable(z.string()).optional(),
|
|
50
|
+
standing_appt: z.boolean().optional(),
|
|
51
|
+
bringing_food: z.boolean().optional(),
|
|
52
|
+
notes: z.nullable(z.string()).optional(),
|
|
53
|
+
facility: z.nullable(z.string()).optional(),
|
|
54
|
+
department: z.nullable(z.string()).optional(),
|
|
55
|
+
event_creator: z.nullable(z.string()).optional(),
|
|
56
|
+
invitees: z.array(z.nullable(Invitee$inboundSchema)).optional(),
|
|
39
57
|
}).transform((v) => {
|
|
40
58
|
return remap$(v, {
|
|
41
|
-
"
|
|
59
|
+
"standing_appt": "standingAppt",
|
|
60
|
+
"bringing_food": "bringingFood",
|
|
61
|
+
"event_creator": "eventCreator",
|
|
42
62
|
});
|
|
43
63
|
});
|
|
44
64
|
|
|
@@ -50,8 +70,14 @@ export type StandingAppointment$Outbound = {
|
|
|
50
70
|
attendees?: Array<string> | undefined;
|
|
51
71
|
start?: string | null | undefined;
|
|
52
72
|
end?: string | null | undefined;
|
|
53
|
-
class_name?: string | null | undefined;
|
|
54
73
|
status?: string | null | undefined;
|
|
74
|
+
standing_appt?: boolean | undefined;
|
|
75
|
+
bringing_food?: boolean | undefined;
|
|
76
|
+
notes?: string | null | undefined;
|
|
77
|
+
facility?: string | null | undefined;
|
|
78
|
+
department?: string | null | undefined;
|
|
79
|
+
event_creator?: string | null | undefined;
|
|
80
|
+
invitees?: Array<Invitee$Outbound | null> | undefined;
|
|
55
81
|
};
|
|
56
82
|
|
|
57
83
|
/** @internal */
|
|
@@ -66,11 +92,19 @@ export const StandingAppointment$outboundSchema: z.ZodType<
|
|
|
66
92
|
attendees: z.array(z.string()).optional(),
|
|
67
93
|
start: z.nullable(z.string()).optional(),
|
|
68
94
|
end: z.nullable(z.string()).optional(),
|
|
69
|
-
className: z.nullable(z.string()).optional(),
|
|
70
95
|
status: z.nullable(z.string()).optional(),
|
|
96
|
+
standingAppt: z.boolean().optional(),
|
|
97
|
+
bringingFood: z.boolean().optional(),
|
|
98
|
+
notes: z.nullable(z.string()).optional(),
|
|
99
|
+
facility: z.nullable(z.string()).optional(),
|
|
100
|
+
department: z.nullable(z.string()).optional(),
|
|
101
|
+
eventCreator: z.nullable(z.string()).optional(),
|
|
102
|
+
invitees: z.array(z.nullable(Invitee$outboundSchema)).optional(),
|
|
71
103
|
}).transform((v) => {
|
|
72
104
|
return remap$(v, {
|
|
73
|
-
|
|
105
|
+
standingAppt: "standing_appt",
|
|
106
|
+
bringingFood: "bringing_food",
|
|
107
|
+
eventCreator: "event_creator",
|
|
74
108
|
});
|
|
75
109
|
});
|
|
76
110
|
|
|
@@ -58,56 +58,6 @@ export const UserType = {
|
|
|
58
58
|
*/
|
|
59
59
|
export type UserType = ClosedEnum<typeof UserType>;
|
|
60
60
|
|
|
61
|
-
/**
|
|
62
|
-
* A `permanent` user token can be used to access any API endpoint as the logged in user. A `one time` token is used to authenticate the user once.
|
|
63
|
-
*/
|
|
64
|
-
export const TokenType = {
|
|
65
|
-
Permanent: "permanent",
|
|
66
|
-
OneTime: "one time",
|
|
67
|
-
} as const;
|
|
68
|
-
/**
|
|
69
|
-
* A `permanent` user token can be used to access any API endpoint as the logged in user. A `one time` token is used to authenticate the user once.
|
|
70
|
-
*/
|
|
71
|
-
export type TokenType = ClosedEnum<typeof TokenType>;
|
|
72
|
-
|
|
73
|
-
/** @internal */
|
|
74
|
-
export const UserType$inboundSchema: z.ZodNativeEnum<typeof UserType> = z
|
|
75
|
-
.nativeEnum(UserType);
|
|
76
|
-
|
|
77
|
-
/** @internal */
|
|
78
|
-
export const UserType$outboundSchema: z.ZodNativeEnum<typeof UserType> =
|
|
79
|
-
UserType$inboundSchema;
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* @internal
|
|
83
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
84
|
-
*/
|
|
85
|
-
export namespace UserType$ {
|
|
86
|
-
/** @deprecated use `UserType$inboundSchema` instead. */
|
|
87
|
-
export const inboundSchema = UserType$inboundSchema;
|
|
88
|
-
/** @deprecated use `UserType$outboundSchema` instead. */
|
|
89
|
-
export const outboundSchema = UserType$outboundSchema;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
/** @internal */
|
|
93
|
-
export const TokenType$inboundSchema: z.ZodNativeEnum<typeof TokenType> = z
|
|
94
|
-
.nativeEnum(TokenType);
|
|
95
|
-
|
|
96
|
-
/** @internal */
|
|
97
|
-
export const TokenType$outboundSchema: z.ZodNativeEnum<typeof TokenType> =
|
|
98
|
-
TokenType$inboundSchema;
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* @internal
|
|
102
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
103
|
-
*/
|
|
104
|
-
export namespace TokenType$ {
|
|
105
|
-
/** @deprecated use `TokenType$inboundSchema` instead. */
|
|
106
|
-
export const inboundSchema = TokenType$inboundSchema;
|
|
107
|
-
/** @deprecated use `TokenType$outboundSchema` instead. */
|
|
108
|
-
export const outboundSchema = TokenType$outboundSchema;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
61
|
export type UserUser = {
|
|
112
62
|
/**
|
|
113
63
|
* This identifier is only used to reference the underlying user. Based on the `user_type` a more relevant identifier may be used to get relvant information from other endpoints.
|
|
@@ -146,6 +96,18 @@ export type UserUser = {
|
|
|
146
96
|
location?: UserLocation | null | undefined;
|
|
147
97
|
};
|
|
148
98
|
|
|
99
|
+
/**
|
|
100
|
+
* A `permanent` user token can be used to access any API endpoint as the logged in user. A `one time` token is used to authenticate the user once.
|
|
101
|
+
*/
|
|
102
|
+
export const TokenType = {
|
|
103
|
+
Permanent: "permanent",
|
|
104
|
+
OneTime: "one time",
|
|
105
|
+
} as const;
|
|
106
|
+
/**
|
|
107
|
+
* A `permanent` user token can be used to access any API endpoint as the logged in user. A `one time` token is used to authenticate the user once.
|
|
108
|
+
*/
|
|
109
|
+
export type TokenType = ClosedEnum<typeof TokenType>;
|
|
110
|
+
|
|
149
111
|
export type UserToken = {
|
|
150
112
|
/**
|
|
151
113
|
* This token can be passed in authorization headers for this user.
|
|
@@ -185,6 +147,25 @@ export type User = {
|
|
|
185
147
|
company?: Company | null | undefined;
|
|
186
148
|
};
|
|
187
149
|
|
|
150
|
+
/** @internal */
|
|
151
|
+
export const UserType$inboundSchema: z.ZodNativeEnum<typeof UserType> = z
|
|
152
|
+
.nativeEnum(UserType);
|
|
153
|
+
|
|
154
|
+
/** @internal */
|
|
155
|
+
export const UserType$outboundSchema: z.ZodNativeEnum<typeof UserType> =
|
|
156
|
+
UserType$inboundSchema;
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* @internal
|
|
160
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
161
|
+
*/
|
|
162
|
+
export namespace UserType$ {
|
|
163
|
+
/** @deprecated use `UserType$inboundSchema` instead. */
|
|
164
|
+
export const inboundSchema = UserType$inboundSchema;
|
|
165
|
+
/** @deprecated use `UserType$outboundSchema` instead. */
|
|
166
|
+
export const outboundSchema = UserType$outboundSchema;
|
|
167
|
+
}
|
|
168
|
+
|
|
188
169
|
/** @internal */
|
|
189
170
|
export const UserUser$inboundSchema: z.ZodType<
|
|
190
171
|
UserUser,
|
|
@@ -281,6 +262,25 @@ export function userUserFromJSON(
|
|
|
281
262
|
);
|
|
282
263
|
}
|
|
283
264
|
|
|
265
|
+
/** @internal */
|
|
266
|
+
export const TokenType$inboundSchema: z.ZodNativeEnum<typeof TokenType> = z
|
|
267
|
+
.nativeEnum(TokenType);
|
|
268
|
+
|
|
269
|
+
/** @internal */
|
|
270
|
+
export const TokenType$outboundSchema: z.ZodNativeEnum<typeof TokenType> =
|
|
271
|
+
TokenType$inboundSchema;
|
|
272
|
+
|
|
273
|
+
/**
|
|
274
|
+
* @internal
|
|
275
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
276
|
+
*/
|
|
277
|
+
export namespace TokenType$ {
|
|
278
|
+
/** @deprecated use `TokenType$inboundSchema` instead. */
|
|
279
|
+
export const inboundSchema = TokenType$inboundSchema;
|
|
280
|
+
/** @deprecated use `TokenType$outboundSchema` instead. */
|
|
281
|
+
export const outboundSchema = TokenType$outboundSchema;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
284
|
/** @internal */
|
|
285
285
|
export const UserToken$inboundSchema: z.ZodType<
|
|
286
286
|
UserToken,
|