@unified-api/typescript-sdk 2.73.17 → 2.73.18
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/README.md +16 -0
- package/bin/mcp-server.js +1726 -11
- package/bin/mcp-server.js.map +50 -19
- package/docs/sdks/package/README.md +165 -0
- package/docs/sdks/request/README.md +489 -0
- package/docs/sdks/verification/README.md +647 -0
- package/examples/package-lock.json +1 -1
- package/funcs/accountingListAccountingBalancesheets.js +2 -0
- package/funcs/accountingListAccountingBalancesheets.js.map +1 -1
- package/funcs/accountingListAccountingProfitlosses.js +2 -0
- package/funcs/accountingListAccountingProfitlosses.js.map +1 -1
- package/funcs/verificationCreateVerificationRequest.d.ts +15 -0
- package/funcs/verificationCreateVerificationRequest.d.ts.map +1 -0
- package/funcs/verificationCreateVerificationRequest.js +124 -0
- package/funcs/verificationCreateVerificationRequest.js.map +1 -0
- package/funcs/verificationGetVerificationPackage.d.ts +15 -0
- package/funcs/verificationGetVerificationPackage.d.ts.map +1 -0
- package/funcs/verificationGetVerificationPackage.js +125 -0
- package/funcs/verificationGetVerificationPackage.js.map +1 -0
- package/funcs/verificationGetVerificationRequest.d.ts +15 -0
- package/funcs/verificationGetVerificationRequest.d.ts.map +1 -0
- package/funcs/verificationGetVerificationRequest.js +125 -0
- package/funcs/verificationGetVerificationRequest.js.map +1 -0
- package/funcs/verificationListVerificationPackages.d.ts +15 -0
- package/funcs/verificationListVerificationPackages.d.ts.map +1 -0
- package/funcs/verificationListVerificationPackages.js +128 -0
- package/funcs/verificationListVerificationPackages.js.map +1 -0
- package/funcs/verificationListVerificationRequests.d.ts +15 -0
- package/funcs/verificationListVerificationRequests.d.ts.map +1 -0
- package/funcs/verificationListVerificationRequests.js +130 -0
- package/funcs/verificationListVerificationRequests.js.map +1 -0
- package/funcs/verificationPatchVerificationRequest.d.ts +15 -0
- package/funcs/verificationPatchVerificationRequest.d.ts.map +1 -0
- package/funcs/verificationPatchVerificationRequest.js +128 -0
- package/funcs/verificationPatchVerificationRequest.js.map +1 -0
- package/funcs/verificationRemoveVerificationRequest.d.ts +14 -0
- package/funcs/verificationRemoveVerificationRequest.d.ts.map +1 -0
- package/funcs/verificationRemoveVerificationRequest.js +122 -0
- package/funcs/verificationRemoveVerificationRequest.js.map +1 -0
- package/funcs/verificationUpdateVerificationRequest.d.ts +15 -0
- package/funcs/verificationUpdateVerificationRequest.d.ts.map +1 -0
- package/funcs/verificationUpdateVerificationRequest.js +128 -0
- package/funcs/verificationUpdateVerificationRequest.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +17 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/verificationCreateVerificationRequest.d.ts +8 -0
- package/mcp-server/tools/verificationCreateVerificationRequest.d.ts.map +1 -0
- package/mcp-server/tools/verificationCreateVerificationRequest.js +62 -0
- package/mcp-server/tools/verificationCreateVerificationRequest.js.map +1 -0
- package/mcp-server/tools/verificationGetVerificationPackage.d.ts +8 -0
- package/mcp-server/tools/verificationGetVerificationPackage.d.ts.map +1 -0
- package/mcp-server/tools/verificationGetVerificationPackage.js +62 -0
- package/mcp-server/tools/verificationGetVerificationPackage.js.map +1 -0
- package/mcp-server/tools/verificationGetVerificationRequest.d.ts +8 -0
- package/mcp-server/tools/verificationGetVerificationRequest.d.ts.map +1 -0
- package/mcp-server/tools/verificationGetVerificationRequest.js +62 -0
- package/mcp-server/tools/verificationGetVerificationRequest.js.map +1 -0
- package/mcp-server/tools/verificationListVerificationPackages.d.ts +8 -0
- package/mcp-server/tools/verificationListVerificationPackages.d.ts.map +1 -0
- package/mcp-server/tools/verificationListVerificationPackages.js +62 -0
- package/mcp-server/tools/verificationListVerificationPackages.js.map +1 -0
- package/mcp-server/tools/verificationListVerificationRequests.d.ts +8 -0
- package/mcp-server/tools/verificationListVerificationRequests.d.ts.map +1 -0
- package/mcp-server/tools/verificationListVerificationRequests.js +62 -0
- package/mcp-server/tools/verificationListVerificationRequests.js.map +1 -0
- package/mcp-server/tools/verificationPatchVerificationRequest.d.ts +8 -0
- package/mcp-server/tools/verificationPatchVerificationRequest.d.ts.map +1 -0
- package/mcp-server/tools/verificationPatchVerificationRequest.js +62 -0
- package/mcp-server/tools/verificationPatchVerificationRequest.js.map +1 -0
- package/mcp-server/tools/verificationRemoveVerificationRequest.d.ts +8 -0
- package/mcp-server/tools/verificationRemoveVerificationRequest.d.ts.map +1 -0
- package/mcp-server/tools/verificationRemoveVerificationRequest.js +61 -0
- package/mcp-server/tools/verificationRemoveVerificationRequest.js.map +1 -0
- package/mcp-server/tools/verificationUpdateVerificationRequest.d.ts +8 -0
- package/mcp-server/tools/verificationUpdateVerificationRequest.d.ts.map +1 -0
- package/mcp-server/tools/verificationUpdateVerificationRequest.js +62 -0
- package/mcp-server/tools/verificationUpdateVerificationRequest.js.map +1 -0
- package/package.json +1 -1
- package/sdk/models/operations/createverificationrequest.d.ts +45 -0
- package/sdk/models/operations/createverificationrequest.d.ts.map +1 -0
- package/sdk/models/operations/createverificationrequest.js +87 -0
- package/sdk/models/operations/createverificationrequest.js.map +1 -0
- package/sdk/models/operations/getverificationpackage.d.ts +47 -0
- package/sdk/models/operations/getverificationpackage.d.ts.map +1 -0
- package/sdk/models/operations/getverificationpackage.js +84 -0
- package/sdk/models/operations/getverificationpackage.js.map +1 -0
- package/sdk/models/operations/getverificationrequest.d.ts +47 -0
- package/sdk/models/operations/getverificationrequest.d.ts.map +1 -0
- package/sdk/models/operations/getverificationrequest.js +84 -0
- package/sdk/models/operations/getverificationrequest.js.map +1 -0
- package/sdk/models/operations/index.d.ts +8 -0
- package/sdk/models/operations/index.d.ts.map +1 -1
- package/sdk/models/operations/index.js +8 -0
- package/sdk/models/operations/index.js.map +1 -1
- package/sdk/models/operations/listaccountingbalancesheets.d.ts +10 -0
- package/sdk/models/operations/listaccountingbalancesheets.d.ts.map +1 -1
- package/sdk/models/operations/listaccountingbalancesheets.js +8 -0
- package/sdk/models/operations/listaccountingbalancesheets.js.map +1 -1
- package/sdk/models/operations/listaccountingprofitlosses.d.ts +10 -0
- package/sdk/models/operations/listaccountingprofitlosses.d.ts.map +1 -1
- package/sdk/models/operations/listaccountingprofitlosses.js +8 -0
- package/sdk/models/operations/listaccountingprofitlosses.js.map +1 -1
- package/sdk/models/operations/listunifiedconnections.d.ts +3 -0
- package/sdk/models/operations/listunifiedconnections.d.ts.map +1 -1
- package/sdk/models/operations/listunifiedconnections.js +1 -0
- package/sdk/models/operations/listunifiedconnections.js.map +1 -1
- package/sdk/models/operations/listunifiedintegrations.d.ts +3 -0
- package/sdk/models/operations/listunifiedintegrations.d.ts.map +1 -1
- package/sdk/models/operations/listunifiedintegrations.js +1 -0
- package/sdk/models/operations/listunifiedintegrations.js.map +1 -1
- package/sdk/models/operations/listunifiedintegrationworkspaces.d.ts +3 -0
- package/sdk/models/operations/listunifiedintegrationworkspaces.d.ts.map +1 -1
- package/sdk/models/operations/listunifiedintegrationworkspaces.js +1 -0
- package/sdk/models/operations/listunifiedintegrationworkspaces.js.map +1 -1
- package/sdk/models/operations/listverificationpackages.d.ts +60 -0
- package/sdk/models/operations/listverificationpackages.d.ts.map +1 -0
- package/sdk/models/operations/listverificationpackages.js +96 -0
- package/sdk/models/operations/listverificationpackages.js.map +1 -0
- package/sdk/models/operations/listverificationrequests.d.ts +70 -0
- package/sdk/models/operations/listverificationrequests.d.ts.map +1 -0
- package/sdk/models/operations/listverificationrequests.js +104 -0
- package/sdk/models/operations/listverificationrequests.js.map +1 -0
- package/sdk/models/operations/patchverificationrequest.d.ts +50 -0
- package/sdk/models/operations/patchverificationrequest.d.ts.map +1 -0
- package/sdk/models/operations/patchverificationrequest.js +89 -0
- package/sdk/models/operations/patchverificationrequest.js.map +1 -0
- package/sdk/models/operations/removeverificationrequest.d.ts +66 -0
- package/sdk/models/operations/removeverificationrequest.d.ts.map +1 -0
- package/sdk/models/operations/removeverificationrequest.js +115 -0
- package/sdk/models/operations/removeverificationrequest.js.map +1 -0
- package/sdk/models/operations/updateverificationrequest.d.ts +50 -0
- package/sdk/models/operations/updateverificationrequest.d.ts.map +1 -0
- package/sdk/models/operations/updateverificationrequest.js +89 -0
- package/sdk/models/operations/updateverificationrequest.js.map +1 -0
- package/sdk/models/shared/index.d.ts +7 -0
- package/sdk/models/shared/index.d.ts.map +1 -1
- package/sdk/models/shared/index.js +7 -0
- package/sdk/models/shared/index.js.map +1 -1
- package/sdk/models/shared/propertyconnectioncategories.d.ts +1 -0
- package/sdk/models/shared/propertyconnectioncategories.d.ts.map +1 -1
- package/sdk/models/shared/propertyconnectioncategories.js +1 -0
- package/sdk/models/shared/propertyconnectioncategories.js.map +1 -1
- package/sdk/models/shared/propertyconnectionpermissions.d.ts +3 -0
- package/sdk/models/shared/propertyconnectionpermissions.d.ts.map +1 -1
- package/sdk/models/shared/propertyconnectionpermissions.js +3 -0
- package/sdk/models/shared/propertyconnectionpermissions.js.map +1 -1
- package/sdk/models/shared/propertyintegrationcategories.d.ts +1 -0
- package/sdk/models/shared/propertyintegrationcategories.d.ts.map +1 -1
- package/sdk/models/shared/propertyintegrationcategories.js +1 -0
- package/sdk/models/shared/propertyintegrationcategories.js.map +1 -1
- package/sdk/models/shared/verificationaddress.d.ts +43 -0
- package/sdk/models/shared/verificationaddress.d.ts.map +1 -0
- package/sdk/models/shared/verificationaddress.js +96 -0
- package/sdk/models/shared/verificationaddress.js.map +1 -0
- package/sdk/models/shared/verificationpackage.d.ts +104 -0
- package/sdk/models/shared/verificationpackage.d.ts.map +1 -0
- package/sdk/models/shared/verificationpackage.js +165 -0
- package/sdk/models/shared/verificationpackage.js.map +1 -0
- package/sdk/models/shared/verificationparameter.d.ts +76 -0
- package/sdk/models/shared/verificationparameter.d.ts.map +1 -0
- package/sdk/models/shared/verificationparameter.js +129 -0
- package/sdk/models/shared/verificationparameter.js.map +1 -0
- package/sdk/models/shared/verificationparameterinput.d.ts +33 -0
- package/sdk/models/shared/verificationparameterinput.d.ts.map +1 -0
- package/sdk/models/shared/verificationparameterinput.js +73 -0
- package/sdk/models/shared/verificationparameterinput.js.map +1 -0
- package/sdk/models/shared/verificationrequest.d.ts +131 -0
- package/sdk/models/shared/verificationrequest.d.ts.map +1 -0
- package/sdk/models/shared/verificationrequest.js +233 -0
- package/sdk/models/shared/verificationrequest.js.map +1 -0
- package/sdk/models/shared/verificationresponsedetail.d.ts +39 -0
- package/sdk/models/shared/verificationresponsedetail.d.ts.map +1 -0
- package/sdk/models/shared/verificationresponsedetail.js +94 -0
- package/sdk/models/shared/verificationresponsedetail.js.map +1 -0
- package/sdk/models/shared/verificationtime.d.ts +34 -0
- package/sdk/models/shared/verificationtime.d.ts.map +1 -0
- package/sdk/models/shared/verificationtime.js +80 -0
- package/sdk/models/shared/verificationtime.js.map +1 -0
- package/sdk/models/shared/webhook.d.ts +2 -0
- package/sdk/models/shared/webhook.d.ts.map +1 -1
- package/sdk/models/shared/webhook.js +2 -0
- package/sdk/models/shared/webhook.js.map +1 -1
- package/sdk/package.d.ts +14 -0
- package/sdk/package.d.ts.map +1 -0
- package/sdk/package.js +26 -0
- package/sdk/package.js.map +1 -0
- package/sdk/request.d.ts +30 -0
- package/sdk/request.d.ts.map +1 -0
- package/sdk/request.js +54 -0
- package/sdk/request.js.map +1 -0
- package/sdk/sdk.d.ts +9 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +12 -0
- package/sdk/sdk.js.map +1 -1
- package/sdk/verification.d.ts +38 -0
- package/sdk/verification.d.ts.map +1 -0
- package/sdk/verification.js +68 -0
- package/sdk/verification.js.map +1 -0
- package/src/funcs/accountingListAccountingBalancesheets.ts +2 -0
- package/src/funcs/accountingListAccountingProfitlosses.ts +2 -0
- package/src/funcs/verificationCreateVerificationRequest.ts +173 -0
- package/src/funcs/verificationGetVerificationPackage.ts +176 -0
- package/src/funcs/verificationGetVerificationRequest.ts +176 -0
- package/src/funcs/verificationListVerificationPackages.ts +177 -0
- package/src/funcs/verificationListVerificationRequests.ts +179 -0
- package/src/funcs/verificationPatchVerificationRequest.ts +179 -0
- package/src/funcs/verificationRemoveVerificationRequest.ts +181 -0
- package/src/funcs/verificationUpdateVerificationRequest.ts +179 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +17 -1
- package/src/mcp-server/tools/verificationCreateVerificationRequest.ts +37 -0
- package/src/mcp-server/tools/verificationGetVerificationPackage.ts +37 -0
- package/src/mcp-server/tools/verificationGetVerificationRequest.ts +37 -0
- package/src/mcp-server/tools/verificationListVerificationPackages.ts +37 -0
- package/src/mcp-server/tools/verificationListVerificationRequests.ts +37 -0
- package/src/mcp-server/tools/verificationPatchVerificationRequest.ts +37 -0
- package/src/mcp-server/tools/verificationRemoveVerificationRequest.ts +35 -0
- package/src/mcp-server/tools/verificationUpdateVerificationRequest.ts +37 -0
- package/src/sdk/models/operations/createverificationrequest.ts +101 -0
- package/src/sdk/models/operations/getverificationpackage.ts +101 -0
- package/src/sdk/models/operations/getverificationrequest.ts +101 -0
- package/src/sdk/models/operations/index.ts +8 -0
- package/src/sdk/models/operations/listaccountingbalancesheets.ts +18 -0
- package/src/sdk/models/operations/listaccountingprofitlosses.ts +18 -0
- package/src/sdk/models/operations/listunifiedconnections.ts +1 -0
- package/src/sdk/models/operations/listunifiedintegrations.ts +1 -0
- package/src/sdk/models/operations/listunifiedintegrationworkspaces.ts +1 -0
- package/src/sdk/models/operations/listverificationpackages.ts +126 -0
- package/src/sdk/models/operations/listverificationrequests.ts +144 -0
- package/src/sdk/models/operations/patchverificationrequest.ts +108 -0
- package/src/sdk/models/operations/removeverificationrequest.ts +156 -0
- package/src/sdk/models/operations/updateverificationrequest.ts +108 -0
- package/src/sdk/models/shared/index.ts +7 -0
- package/src/sdk/models/shared/propertyconnectioncategories.ts +1 -0
- package/src/sdk/models/shared/propertyconnectionpermissions.ts +3 -0
- package/src/sdk/models/shared/propertyintegrationcategories.ts +1 -0
- package/src/sdk/models/shared/verificationaddress.ts +107 -0
- package/src/sdk/models/shared/verificationpackage.ts +231 -0
- package/src/sdk/models/shared/verificationparameter.ts +167 -0
- package/src/sdk/models/shared/verificationparameterinput.ts +74 -0
- package/src/sdk/models/shared/verificationrequest.ts +330 -0
- package/src/sdk/models/shared/verificationresponsedetail.ts +101 -0
- package/src/sdk/models/shared/verificationtime.ts +82 -0
- package/src/sdk/models/shared/webhook.ts +2 -0
- package/src/sdk/package.ts +40 -0
- package/src/sdk/request.ts +100 -0
- package/src/sdk/sdk.ts +18 -0
- package/src/sdk/verification.ts +130 -0
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { verificationUpdateVerificationRequest } from "../../funcs/verificationUpdateVerificationRequest.js";
|
|
6
|
+
import * as operations from "../../sdk/models/operations/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request: operations.UpdateVerificationRequestRequest$inboundSchema,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool$verificationUpdateVerificationRequest: ToolDefinition<
|
|
14
|
+
typeof args
|
|
15
|
+
> = {
|
|
16
|
+
name: "verification-update-verification-request",
|
|
17
|
+
description: `Update a request`,
|
|
18
|
+
args,
|
|
19
|
+
tool: async (client, args, ctx) => {
|
|
20
|
+
const [result, apiCall] = await verificationUpdateVerificationRequest(
|
|
21
|
+
client,
|
|
22
|
+
args.request,
|
|
23
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
24
|
+
).$inspect();
|
|
25
|
+
|
|
26
|
+
if (!result.ok) {
|
|
27
|
+
return {
|
|
28
|
+
content: [{ type: "text", text: result.error.message }],
|
|
29
|
+
isError: true,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
const value = result.value;
|
|
34
|
+
|
|
35
|
+
return formatResult(value, apiCall);
|
|
36
|
+
},
|
|
37
|
+
};
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import * as shared from "../shared/index.js";
|
|
11
|
+
|
|
12
|
+
export type CreateVerificationRequestRequest = {
|
|
13
|
+
verificationRequest: shared.VerificationRequest;
|
|
14
|
+
/**
|
|
15
|
+
* ID of the connection
|
|
16
|
+
*/
|
|
17
|
+
connectionId: string;
|
|
18
|
+
/**
|
|
19
|
+
* Comma-delimited fields to return
|
|
20
|
+
*/
|
|
21
|
+
fields?: Array<string> | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar
|
|
24
|
+
*/
|
|
25
|
+
raw?: string | undefined;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export const CreateVerificationRequestRequest$inboundSchema: z.ZodType<
|
|
30
|
+
CreateVerificationRequestRequest,
|
|
31
|
+
z.ZodTypeDef,
|
|
32
|
+
unknown
|
|
33
|
+
> = z.object({
|
|
34
|
+
VerificationRequest: shared.VerificationRequest$inboundSchema,
|
|
35
|
+
connection_id: z.string(),
|
|
36
|
+
fields: z.array(z.string()).optional(),
|
|
37
|
+
raw: z.string().optional(),
|
|
38
|
+
}).transform((v) => {
|
|
39
|
+
return remap$(v, {
|
|
40
|
+
"VerificationRequest": "verificationRequest",
|
|
41
|
+
"connection_id": "connectionId",
|
|
42
|
+
});
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
/** @internal */
|
|
46
|
+
export type CreateVerificationRequestRequest$Outbound = {
|
|
47
|
+
VerificationRequest: shared.VerificationRequest$Outbound;
|
|
48
|
+
connection_id: string;
|
|
49
|
+
fields?: Array<string> | undefined;
|
|
50
|
+
raw?: string | undefined;
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
/** @internal */
|
|
54
|
+
export const CreateVerificationRequestRequest$outboundSchema: z.ZodType<
|
|
55
|
+
CreateVerificationRequestRequest$Outbound,
|
|
56
|
+
z.ZodTypeDef,
|
|
57
|
+
CreateVerificationRequestRequest
|
|
58
|
+
> = z.object({
|
|
59
|
+
verificationRequest: shared.VerificationRequest$outboundSchema,
|
|
60
|
+
connectionId: z.string(),
|
|
61
|
+
fields: z.array(z.string()).optional(),
|
|
62
|
+
raw: z.string().optional(),
|
|
63
|
+
}).transform((v) => {
|
|
64
|
+
return remap$(v, {
|
|
65
|
+
verificationRequest: "VerificationRequest",
|
|
66
|
+
connectionId: "connection_id",
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* @internal
|
|
72
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
73
|
+
*/
|
|
74
|
+
export namespace CreateVerificationRequestRequest$ {
|
|
75
|
+
/** @deprecated use `CreateVerificationRequestRequest$inboundSchema` instead. */
|
|
76
|
+
export const inboundSchema = CreateVerificationRequestRequest$inboundSchema;
|
|
77
|
+
/** @deprecated use `CreateVerificationRequestRequest$outboundSchema` instead. */
|
|
78
|
+
export const outboundSchema = CreateVerificationRequestRequest$outboundSchema;
|
|
79
|
+
/** @deprecated use `CreateVerificationRequestRequest$Outbound` instead. */
|
|
80
|
+
export type Outbound = CreateVerificationRequestRequest$Outbound;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function createVerificationRequestRequestToJSON(
|
|
84
|
+
createVerificationRequestRequest: CreateVerificationRequestRequest,
|
|
85
|
+
): string {
|
|
86
|
+
return JSON.stringify(
|
|
87
|
+
CreateVerificationRequestRequest$outboundSchema.parse(
|
|
88
|
+
createVerificationRequestRequest,
|
|
89
|
+
),
|
|
90
|
+
);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export function createVerificationRequestRequestFromJSON(
|
|
94
|
+
jsonString: string,
|
|
95
|
+
): SafeParseResult<CreateVerificationRequestRequest, SDKValidationError> {
|
|
96
|
+
return safeParse(
|
|
97
|
+
jsonString,
|
|
98
|
+
(x) => CreateVerificationRequestRequest$inboundSchema.parse(JSON.parse(x)),
|
|
99
|
+
`Failed to parse 'CreateVerificationRequestRequest' from JSON`,
|
|
100
|
+
);
|
|
101
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type GetVerificationPackageRequest = {
|
|
12
|
+
/**
|
|
13
|
+
* ID of the connection
|
|
14
|
+
*/
|
|
15
|
+
connectionId: string;
|
|
16
|
+
/**
|
|
17
|
+
* Comma-delimited fields to return
|
|
18
|
+
*/
|
|
19
|
+
fields?: Array<string> | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* ID of the Package
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar
|
|
26
|
+
*/
|
|
27
|
+
raw?: string | undefined;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
/** @internal */
|
|
31
|
+
export const GetVerificationPackageRequest$inboundSchema: z.ZodType<
|
|
32
|
+
GetVerificationPackageRequest,
|
|
33
|
+
z.ZodTypeDef,
|
|
34
|
+
unknown
|
|
35
|
+
> = z.object({
|
|
36
|
+
connection_id: z.string(),
|
|
37
|
+
fields: z.array(z.string()).optional(),
|
|
38
|
+
id: z.string(),
|
|
39
|
+
raw: z.string().optional(),
|
|
40
|
+
}).transform((v) => {
|
|
41
|
+
return remap$(v, {
|
|
42
|
+
"connection_id": "connectionId",
|
|
43
|
+
});
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
/** @internal */
|
|
47
|
+
export type GetVerificationPackageRequest$Outbound = {
|
|
48
|
+
connection_id: string;
|
|
49
|
+
fields?: Array<string> | undefined;
|
|
50
|
+
id: string;
|
|
51
|
+
raw?: string | undefined;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
/** @internal */
|
|
55
|
+
export const GetVerificationPackageRequest$outboundSchema: z.ZodType<
|
|
56
|
+
GetVerificationPackageRequest$Outbound,
|
|
57
|
+
z.ZodTypeDef,
|
|
58
|
+
GetVerificationPackageRequest
|
|
59
|
+
> = z.object({
|
|
60
|
+
connectionId: z.string(),
|
|
61
|
+
fields: z.array(z.string()).optional(),
|
|
62
|
+
id: z.string(),
|
|
63
|
+
raw: z.string().optional(),
|
|
64
|
+
}).transform((v) => {
|
|
65
|
+
return remap$(v, {
|
|
66
|
+
connectionId: "connection_id",
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* @internal
|
|
72
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
73
|
+
*/
|
|
74
|
+
export namespace GetVerificationPackageRequest$ {
|
|
75
|
+
/** @deprecated use `GetVerificationPackageRequest$inboundSchema` instead. */
|
|
76
|
+
export const inboundSchema = GetVerificationPackageRequest$inboundSchema;
|
|
77
|
+
/** @deprecated use `GetVerificationPackageRequest$outboundSchema` instead. */
|
|
78
|
+
export const outboundSchema = GetVerificationPackageRequest$outboundSchema;
|
|
79
|
+
/** @deprecated use `GetVerificationPackageRequest$Outbound` instead. */
|
|
80
|
+
export type Outbound = GetVerificationPackageRequest$Outbound;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function getVerificationPackageRequestToJSON(
|
|
84
|
+
getVerificationPackageRequest: GetVerificationPackageRequest,
|
|
85
|
+
): string {
|
|
86
|
+
return JSON.stringify(
|
|
87
|
+
GetVerificationPackageRequest$outboundSchema.parse(
|
|
88
|
+
getVerificationPackageRequest,
|
|
89
|
+
),
|
|
90
|
+
);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export function getVerificationPackageRequestFromJSON(
|
|
94
|
+
jsonString: string,
|
|
95
|
+
): SafeParseResult<GetVerificationPackageRequest, SDKValidationError> {
|
|
96
|
+
return safeParse(
|
|
97
|
+
jsonString,
|
|
98
|
+
(x) => GetVerificationPackageRequest$inboundSchema.parse(JSON.parse(x)),
|
|
99
|
+
`Failed to parse 'GetVerificationPackageRequest' from JSON`,
|
|
100
|
+
);
|
|
101
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type GetVerificationRequestRequest = {
|
|
12
|
+
/**
|
|
13
|
+
* ID of the connection
|
|
14
|
+
*/
|
|
15
|
+
connectionId: string;
|
|
16
|
+
/**
|
|
17
|
+
* Comma-delimited fields to return
|
|
18
|
+
*/
|
|
19
|
+
fields?: Array<string> | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* ID of the Request
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar
|
|
26
|
+
*/
|
|
27
|
+
raw?: string | undefined;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
/** @internal */
|
|
31
|
+
export const GetVerificationRequestRequest$inboundSchema: z.ZodType<
|
|
32
|
+
GetVerificationRequestRequest,
|
|
33
|
+
z.ZodTypeDef,
|
|
34
|
+
unknown
|
|
35
|
+
> = z.object({
|
|
36
|
+
connection_id: z.string(),
|
|
37
|
+
fields: z.array(z.string()).optional(),
|
|
38
|
+
id: z.string(),
|
|
39
|
+
raw: z.string().optional(),
|
|
40
|
+
}).transform((v) => {
|
|
41
|
+
return remap$(v, {
|
|
42
|
+
"connection_id": "connectionId",
|
|
43
|
+
});
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
/** @internal */
|
|
47
|
+
export type GetVerificationRequestRequest$Outbound = {
|
|
48
|
+
connection_id: string;
|
|
49
|
+
fields?: Array<string> | undefined;
|
|
50
|
+
id: string;
|
|
51
|
+
raw?: string | undefined;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
/** @internal */
|
|
55
|
+
export const GetVerificationRequestRequest$outboundSchema: z.ZodType<
|
|
56
|
+
GetVerificationRequestRequest$Outbound,
|
|
57
|
+
z.ZodTypeDef,
|
|
58
|
+
GetVerificationRequestRequest
|
|
59
|
+
> = z.object({
|
|
60
|
+
connectionId: z.string(),
|
|
61
|
+
fields: z.array(z.string()).optional(),
|
|
62
|
+
id: z.string(),
|
|
63
|
+
raw: z.string().optional(),
|
|
64
|
+
}).transform((v) => {
|
|
65
|
+
return remap$(v, {
|
|
66
|
+
connectionId: "connection_id",
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* @internal
|
|
72
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
73
|
+
*/
|
|
74
|
+
export namespace GetVerificationRequestRequest$ {
|
|
75
|
+
/** @deprecated use `GetVerificationRequestRequest$inboundSchema` instead. */
|
|
76
|
+
export const inboundSchema = GetVerificationRequestRequest$inboundSchema;
|
|
77
|
+
/** @deprecated use `GetVerificationRequestRequest$outboundSchema` instead. */
|
|
78
|
+
export const outboundSchema = GetVerificationRequestRequest$outboundSchema;
|
|
79
|
+
/** @deprecated use `GetVerificationRequestRequest$Outbound` instead. */
|
|
80
|
+
export type Outbound = GetVerificationRequestRequest$Outbound;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function getVerificationRequestRequestToJSON(
|
|
84
|
+
getVerificationRequestRequest: GetVerificationRequestRequest,
|
|
85
|
+
): string {
|
|
86
|
+
return JSON.stringify(
|
|
87
|
+
GetVerificationRequestRequest$outboundSchema.parse(
|
|
88
|
+
getVerificationRequestRequest,
|
|
89
|
+
),
|
|
90
|
+
);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export function getVerificationRequestRequestFromJSON(
|
|
94
|
+
jsonString: string,
|
|
95
|
+
): SafeParseResult<GetVerificationRequestRequest, SDKValidationError> {
|
|
96
|
+
return safeParse(
|
|
97
|
+
jsonString,
|
|
98
|
+
(x) => GetVerificationRequestRequest$inboundSchema.parse(JSON.parse(x)),
|
|
99
|
+
`Failed to parse 'GetVerificationRequestRequest' from JSON`,
|
|
100
|
+
);
|
|
101
|
+
}
|
|
@@ -77,6 +77,7 @@ export * from "./createuccomment.js";
|
|
|
77
77
|
export * from "./createuccontact.js";
|
|
78
78
|
export * from "./createucrecording.js";
|
|
79
79
|
export * from "./createunifiedwebhook.js";
|
|
80
|
+
export * from "./createverificationrequest.js";
|
|
80
81
|
export * from "./getaccountingaccount.js";
|
|
81
82
|
export * from "./getaccountingbalancesheet.js";
|
|
82
83
|
export * from "./getaccountingbill.js";
|
|
@@ -165,6 +166,8 @@ export * from "./getunifiedconnection.js";
|
|
|
165
166
|
export * from "./getunifiedintegrationauth.js";
|
|
166
167
|
export * from "./getunifiedintegrationlogin.js";
|
|
167
168
|
export * from "./getunifiedwebhook.js";
|
|
169
|
+
export * from "./getverificationpackage.js";
|
|
170
|
+
export * from "./getverificationrequest.js";
|
|
168
171
|
export * from "./listaccountingaccounts.js";
|
|
169
172
|
export * from "./listaccountingbalancesheets.js";
|
|
170
173
|
export * from "./listaccountingbills.js";
|
|
@@ -261,6 +264,8 @@ export * from "./listunifiedintegrations.js";
|
|
|
261
264
|
export * from "./listunifiedintegrationworkspaces.js";
|
|
262
265
|
export * from "./listunifiedissues.js";
|
|
263
266
|
export * from "./listunifiedwebhooks.js";
|
|
267
|
+
export * from "./listverificationpackages.js";
|
|
268
|
+
export * from "./listverificationrequests.js";
|
|
264
269
|
export * from "./patchaccountingaccount.js";
|
|
265
270
|
export * from "./patchaccountingbill.js";
|
|
266
271
|
export * from "./patchaccountingcategory.js";
|
|
@@ -337,6 +342,7 @@ export * from "./patchucrecording.js";
|
|
|
337
342
|
export * from "./patchunifiedconnection.js";
|
|
338
343
|
export * from "./patchunifiedwebhook.js";
|
|
339
344
|
export * from "./patchunifiedwebhooktrigger.js";
|
|
345
|
+
export * from "./patchverificationrequest.js";
|
|
340
346
|
export * from "./removeaccountingaccount.js";
|
|
341
347
|
export * from "./removeaccountingbill.js";
|
|
342
348
|
export * from "./removeaccountingcategory.js";
|
|
@@ -411,6 +417,7 @@ export * from "./removeuccontact.js";
|
|
|
411
417
|
export * from "./removeucrecording.js";
|
|
412
418
|
export * from "./removeunifiedconnection.js";
|
|
413
419
|
export * from "./removeunifiedwebhook.js";
|
|
420
|
+
export * from "./removeverificationrequest.js";
|
|
414
421
|
export * from "./updateaccountingaccount.js";
|
|
415
422
|
export * from "./updateaccountingbill.js";
|
|
416
423
|
export * from "./updateaccountingcategory.js";
|
|
@@ -487,3 +494,4 @@ export * from "./updateucrecording.js";
|
|
|
487
494
|
export * from "./updateunifiedconnection.js";
|
|
488
495
|
export * from "./updateunifiedwebhook.js";
|
|
489
496
|
export * from "./updateunifiedwebhooktrigger.js";
|
|
497
|
+
export * from "./updateverificationrequest.js";
|
|
@@ -9,10 +9,18 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
|
|
11
11
|
export type ListAccountingBalancesheetsRequest = {
|
|
12
|
+
/**
|
|
13
|
+
* The category ID to filter by
|
|
14
|
+
*/
|
|
15
|
+
categoryId?: string | undefined;
|
|
12
16
|
/**
|
|
13
17
|
* ID of the connection
|
|
14
18
|
*/
|
|
15
19
|
connectionId: string;
|
|
20
|
+
/**
|
|
21
|
+
* The contact ID to filter by
|
|
22
|
+
*/
|
|
23
|
+
contactId?: string | undefined;
|
|
16
24
|
/**
|
|
17
25
|
* The end date to filter by
|
|
18
26
|
*/
|
|
@@ -49,7 +57,9 @@ export const ListAccountingBalancesheetsRequest$inboundSchema: z.ZodType<
|
|
|
49
57
|
z.ZodTypeDef,
|
|
50
58
|
unknown
|
|
51
59
|
> = z.object({
|
|
60
|
+
category_id: z.string().optional(),
|
|
52
61
|
connection_id: z.string(),
|
|
62
|
+
contact_id: z.string().optional(),
|
|
53
63
|
end_le: z.string().optional(),
|
|
54
64
|
fields: z.array(z.string()).optional(),
|
|
55
65
|
limit: z.number().optional(),
|
|
@@ -62,7 +72,9 @@ export const ListAccountingBalancesheetsRequest$inboundSchema: z.ZodType<
|
|
|
62
72
|
updated_gte: z.string().optional(),
|
|
63
73
|
}).transform((v) => {
|
|
64
74
|
return remap$(v, {
|
|
75
|
+
"category_id": "categoryId",
|
|
65
76
|
"connection_id": "connectionId",
|
|
77
|
+
"contact_id": "contactId",
|
|
66
78
|
"end_le": "endLe",
|
|
67
79
|
"start_gte": "startGte",
|
|
68
80
|
"updated_gte": "updatedGte",
|
|
@@ -71,7 +83,9 @@ export const ListAccountingBalancesheetsRequest$inboundSchema: z.ZodType<
|
|
|
71
83
|
|
|
72
84
|
/** @internal */
|
|
73
85
|
export type ListAccountingBalancesheetsRequest$Outbound = {
|
|
86
|
+
category_id?: string | undefined;
|
|
74
87
|
connection_id: string;
|
|
88
|
+
contact_id?: string | undefined;
|
|
75
89
|
end_le?: string | undefined;
|
|
76
90
|
fields?: Array<string> | undefined;
|
|
77
91
|
limit?: number | undefined;
|
|
@@ -90,7 +104,9 @@ export const ListAccountingBalancesheetsRequest$outboundSchema: z.ZodType<
|
|
|
90
104
|
z.ZodTypeDef,
|
|
91
105
|
ListAccountingBalancesheetsRequest
|
|
92
106
|
> = z.object({
|
|
107
|
+
categoryId: z.string().optional(),
|
|
93
108
|
connectionId: z.string(),
|
|
109
|
+
contactId: z.string().optional(),
|
|
94
110
|
endLe: z.string().optional(),
|
|
95
111
|
fields: z.array(z.string()).optional(),
|
|
96
112
|
limit: z.number().optional(),
|
|
@@ -103,7 +119,9 @@ export const ListAccountingBalancesheetsRequest$outboundSchema: z.ZodType<
|
|
|
103
119
|
updatedGte: z.string().optional(),
|
|
104
120
|
}).transform((v) => {
|
|
105
121
|
return remap$(v, {
|
|
122
|
+
categoryId: "category_id",
|
|
106
123
|
connectionId: "connection_id",
|
|
124
|
+
contactId: "contact_id",
|
|
107
125
|
endLe: "end_le",
|
|
108
126
|
startGte: "start_gte",
|
|
109
127
|
updatedGte: "updated_gte",
|
|
@@ -9,10 +9,18 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
|
|
11
11
|
export type ListAccountingProfitlossesRequest = {
|
|
12
|
+
/**
|
|
13
|
+
* The category ID to filter by
|
|
14
|
+
*/
|
|
15
|
+
categoryId?: string | undefined;
|
|
12
16
|
/**
|
|
13
17
|
* ID of the connection
|
|
14
18
|
*/
|
|
15
19
|
connectionId: string;
|
|
20
|
+
/**
|
|
21
|
+
* The contact ID to filter by
|
|
22
|
+
*/
|
|
23
|
+
contactId?: string | undefined;
|
|
16
24
|
/**
|
|
17
25
|
* The end date to filter by
|
|
18
26
|
*/
|
|
@@ -49,7 +57,9 @@ export const ListAccountingProfitlossesRequest$inboundSchema: z.ZodType<
|
|
|
49
57
|
z.ZodTypeDef,
|
|
50
58
|
unknown
|
|
51
59
|
> = z.object({
|
|
60
|
+
category_id: z.string().optional(),
|
|
52
61
|
connection_id: z.string(),
|
|
62
|
+
contact_id: z.string().optional(),
|
|
53
63
|
end_le: z.string().optional(),
|
|
54
64
|
fields: z.array(z.string()).optional(),
|
|
55
65
|
limit: z.number().optional(),
|
|
@@ -62,7 +72,9 @@ export const ListAccountingProfitlossesRequest$inboundSchema: z.ZodType<
|
|
|
62
72
|
updated_gte: z.string().optional(),
|
|
63
73
|
}).transform((v) => {
|
|
64
74
|
return remap$(v, {
|
|
75
|
+
"category_id": "categoryId",
|
|
65
76
|
"connection_id": "connectionId",
|
|
77
|
+
"contact_id": "contactId",
|
|
66
78
|
"end_le": "endLe",
|
|
67
79
|
"start_gte": "startGte",
|
|
68
80
|
"updated_gte": "updatedGte",
|
|
@@ -71,7 +83,9 @@ export const ListAccountingProfitlossesRequest$inboundSchema: z.ZodType<
|
|
|
71
83
|
|
|
72
84
|
/** @internal */
|
|
73
85
|
export type ListAccountingProfitlossesRequest$Outbound = {
|
|
86
|
+
category_id?: string | undefined;
|
|
74
87
|
connection_id: string;
|
|
88
|
+
contact_id?: string | undefined;
|
|
75
89
|
end_le?: string | undefined;
|
|
76
90
|
fields?: Array<string> | undefined;
|
|
77
91
|
limit?: number | undefined;
|
|
@@ -90,7 +104,9 @@ export const ListAccountingProfitlossesRequest$outboundSchema: z.ZodType<
|
|
|
90
104
|
z.ZodTypeDef,
|
|
91
105
|
ListAccountingProfitlossesRequest
|
|
92
106
|
> = z.object({
|
|
107
|
+
categoryId: z.string().optional(),
|
|
93
108
|
connectionId: z.string(),
|
|
109
|
+
contactId: z.string().optional(),
|
|
94
110
|
endLe: z.string().optional(),
|
|
95
111
|
fields: z.array(z.string()).optional(),
|
|
96
112
|
limit: z.number().optional(),
|
|
@@ -103,7 +119,9 @@ export const ListAccountingProfitlossesRequest$outboundSchema: z.ZodType<
|
|
|
103
119
|
updatedGte: z.string().optional(),
|
|
104
120
|
}).transform((v) => {
|
|
105
121
|
return remap$(v, {
|
|
122
|
+
categoryId: "category_id",
|
|
106
123
|
connectionId: "connection_id",
|
|
124
|
+
contactId: "contact_id",
|
|
107
125
|
endLe: "end_le",
|
|
108
126
|
startGte: "start_gte",
|
|
109
127
|
updatedGte: "updated_gte",
|
|
@@ -32,6 +32,7 @@ export const ListUnifiedIntegrationsQueryParamCategories = {
|
|
|
32
32
|
Repo: "repo",
|
|
33
33
|
Metadata: "metadata",
|
|
34
34
|
Calendar: "calendar",
|
|
35
|
+
Verification: "verification",
|
|
35
36
|
} as const;
|
|
36
37
|
export type ListUnifiedIntegrationsQueryParamCategories = ClosedEnum<
|
|
37
38
|
typeof ListUnifiedIntegrationsQueryParamCategories
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type ListVerificationPackagesRequest = {
|
|
12
|
+
/**
|
|
13
|
+
* ID of the connection
|
|
14
|
+
*/
|
|
15
|
+
connectionId: string;
|
|
16
|
+
/**
|
|
17
|
+
* Comma-delimited fields to return
|
|
18
|
+
*/
|
|
19
|
+
fields?: Array<string> | undefined;
|
|
20
|
+
limit?: number | undefined;
|
|
21
|
+
offset?: number | undefined;
|
|
22
|
+
order?: string | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* Query string to search. eg. email address or name
|
|
25
|
+
*/
|
|
26
|
+
query?: string | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar
|
|
29
|
+
*/
|
|
30
|
+
raw?: string | undefined;
|
|
31
|
+
sort?: string | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* Return only results whose updated date is equal or greater to this value
|
|
34
|
+
*/
|
|
35
|
+
updatedGte?: string | undefined;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
/** @internal */
|
|
39
|
+
export const ListVerificationPackagesRequest$inboundSchema: z.ZodType<
|
|
40
|
+
ListVerificationPackagesRequest,
|
|
41
|
+
z.ZodTypeDef,
|
|
42
|
+
unknown
|
|
43
|
+
> = z.object({
|
|
44
|
+
connection_id: z.string(),
|
|
45
|
+
fields: z.array(z.string()).optional(),
|
|
46
|
+
limit: z.number().optional(),
|
|
47
|
+
offset: z.number().optional(),
|
|
48
|
+
order: z.string().optional(),
|
|
49
|
+
query: z.string().optional(),
|
|
50
|
+
raw: z.string().optional(),
|
|
51
|
+
sort: z.string().optional(),
|
|
52
|
+
updated_gte: z.string().optional(),
|
|
53
|
+
}).transform((v) => {
|
|
54
|
+
return remap$(v, {
|
|
55
|
+
"connection_id": "connectionId",
|
|
56
|
+
"updated_gte": "updatedGte",
|
|
57
|
+
});
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
/** @internal */
|
|
61
|
+
export type ListVerificationPackagesRequest$Outbound = {
|
|
62
|
+
connection_id: string;
|
|
63
|
+
fields?: Array<string> | undefined;
|
|
64
|
+
limit?: number | undefined;
|
|
65
|
+
offset?: number | undefined;
|
|
66
|
+
order?: string | undefined;
|
|
67
|
+
query?: string | undefined;
|
|
68
|
+
raw?: string | undefined;
|
|
69
|
+
sort?: string | undefined;
|
|
70
|
+
updated_gte?: string | undefined;
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
/** @internal */
|
|
74
|
+
export const ListVerificationPackagesRequest$outboundSchema: z.ZodType<
|
|
75
|
+
ListVerificationPackagesRequest$Outbound,
|
|
76
|
+
z.ZodTypeDef,
|
|
77
|
+
ListVerificationPackagesRequest
|
|
78
|
+
> = z.object({
|
|
79
|
+
connectionId: z.string(),
|
|
80
|
+
fields: z.array(z.string()).optional(),
|
|
81
|
+
limit: z.number().optional(),
|
|
82
|
+
offset: z.number().optional(),
|
|
83
|
+
order: z.string().optional(),
|
|
84
|
+
query: z.string().optional(),
|
|
85
|
+
raw: z.string().optional(),
|
|
86
|
+
sort: z.string().optional(),
|
|
87
|
+
updatedGte: z.string().optional(),
|
|
88
|
+
}).transform((v) => {
|
|
89
|
+
return remap$(v, {
|
|
90
|
+
connectionId: "connection_id",
|
|
91
|
+
updatedGte: "updated_gte",
|
|
92
|
+
});
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* @internal
|
|
97
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
98
|
+
*/
|
|
99
|
+
export namespace ListVerificationPackagesRequest$ {
|
|
100
|
+
/** @deprecated use `ListVerificationPackagesRequest$inboundSchema` instead. */
|
|
101
|
+
export const inboundSchema = ListVerificationPackagesRequest$inboundSchema;
|
|
102
|
+
/** @deprecated use `ListVerificationPackagesRequest$outboundSchema` instead. */
|
|
103
|
+
export const outboundSchema = ListVerificationPackagesRequest$outboundSchema;
|
|
104
|
+
/** @deprecated use `ListVerificationPackagesRequest$Outbound` instead. */
|
|
105
|
+
export type Outbound = ListVerificationPackagesRequest$Outbound;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export function listVerificationPackagesRequestToJSON(
|
|
109
|
+
listVerificationPackagesRequest: ListVerificationPackagesRequest,
|
|
110
|
+
): string {
|
|
111
|
+
return JSON.stringify(
|
|
112
|
+
ListVerificationPackagesRequest$outboundSchema.parse(
|
|
113
|
+
listVerificationPackagesRequest,
|
|
114
|
+
),
|
|
115
|
+
);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export function listVerificationPackagesRequestFromJSON(
|
|
119
|
+
jsonString: string,
|
|
120
|
+
): SafeParseResult<ListVerificationPackagesRequest, SDKValidationError> {
|
|
121
|
+
return safeParse(
|
|
122
|
+
jsonString,
|
|
123
|
+
(x) => ListVerificationPackagesRequest$inboundSchema.parse(JSON.parse(x)),
|
|
124
|
+
`Failed to parse 'ListVerificationPackagesRequest' from JSON`,
|
|
125
|
+
);
|
|
126
|
+
}
|