@unified-api/typescript-sdk 2.9.21 → 2.9.23
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/FUNCTIONS.md +1 -1
- package/README.md +20 -8
- package/docs/sdks/account/README.md +12 -12
- package/docs/sdks/accounting/README.md +76 -76
- package/docs/sdks/activity/README.md +12 -12
- package/docs/sdks/application/README.md +12 -12
- package/docs/sdks/applicationstatus/README.md +2 -2
- package/docs/sdks/ats/README.md +90 -90
- package/docs/sdks/auth/README.md +4 -4
- package/docs/sdks/call/README.md +2 -2
- package/docs/sdks/candidate/README.md +12 -12
- package/docs/sdks/channel/README.md +4 -4
- package/docs/sdks/collection/README.md +12 -12
- package/docs/sdks/comment/README.md +494 -0
- package/docs/sdks/commerce/README.md +48 -48
- package/docs/sdks/company/README.md +30 -30
- package/docs/sdks/contact/README.md +36 -36
- package/docs/sdks/crm/README.md +72 -72
- package/docs/sdks/customer/README.md +12 -12
- package/docs/sdks/deal/README.md +12 -12
- package/docs/sdks/document/README.md +12 -12
- package/docs/sdks/employee/README.md +12 -12
- package/docs/sdks/enrich/README.md +4 -4
- package/docs/sdks/event/README.md +12 -12
- package/docs/sdks/file/README.md +12 -12
- package/docs/sdks/genai/README.md +4 -4
- package/docs/sdks/group/README.md +12 -12
- package/docs/sdks/hris/README.md +56 -56
- package/docs/sdks/integration/README.md +4 -4
- package/docs/sdks/interview/README.md +12 -12
- package/docs/sdks/inventory/README.md +12 -12
- package/docs/sdks/invoice/README.md +12 -12
- package/docs/sdks/item/README.md +12 -12
- package/docs/sdks/job/README.md +12 -12
- package/docs/sdks/journal/README.md +12 -12
- package/docs/sdks/kms/README.md +518 -24
- package/docs/sdks/lead/README.md +12 -12
- package/docs/sdks/link/README.md +12 -12
- package/docs/sdks/list/README.md +12 -12
- package/docs/sdks/location/README.md +24 -24
- package/docs/sdks/login/README.md +2 -2
- package/docs/sdks/martech/README.md +24 -24
- package/docs/sdks/member/README.md +12 -12
- package/docs/sdks/message/README.md +12 -12
- package/docs/sdks/messaging/README.md +16 -16
- package/docs/sdks/model/README.md +2 -2
- package/docs/sdks/note/README.md +12 -12
- package/docs/sdks/organization/README.md +4 -4
- package/docs/sdks/page/README.md +12 -12
- package/docs/sdks/passthrough/README.md +28 -28
- package/docs/sdks/payment/README.md +32 -32
- package/docs/sdks/payout/README.md +4 -4
- package/docs/sdks/payslip/README.md +4 -4
- package/docs/sdks/person/README.md +2 -2
- package/docs/sdks/pipeline/README.md +12 -12
- package/docs/sdks/project/README.md +12 -12
- package/docs/sdks/prompt/README.md +2 -2
- package/docs/sdks/refund/README.md +4 -4
- package/docs/sdks/scorecard/README.md +12 -12
- package/docs/sdks/space/README.md +12 -12
- package/docs/sdks/storage/README.md +12 -12
- package/docs/sdks/task/README.md +24 -24
- package/docs/sdks/taxrate/README.md +12 -12
- package/docs/sdks/ticket/README.md +12 -12
- package/docs/sdks/ticketing/README.md +36 -36
- package/docs/sdks/timeoff/README.md +4 -4
- package/docs/sdks/transaction/README.md +12 -12
- package/docs/sdks/uc/README.md +14 -14
- package/docs/sdks/unified/README.md +4 -4
- package/funcs/commentCreateKmsComment.d.ts +13 -0
- package/funcs/commentCreateKmsComment.d.ts.map +1 -0
- package/funcs/commentCreateKmsComment.js +104 -0
- package/funcs/commentCreateKmsComment.js.map +1 -0
- package/funcs/commentGetKmsComment.d.ts +13 -0
- package/funcs/commentGetKmsComment.d.ts.map +1 -0
- package/funcs/commentGetKmsComment.js +107 -0
- package/funcs/commentGetKmsComment.js.map +1 -0
- package/funcs/commentListKmsComments.d.ts +13 -0
- package/funcs/commentListKmsComments.d.ts.map +1 -0
- package/funcs/commentListKmsComments.js +113 -0
- package/funcs/commentListKmsComments.js.map +1 -0
- package/funcs/commentPatchKmsComment.d.ts +13 -0
- package/funcs/commentPatchKmsComment.d.ts.map +1 -0
- package/funcs/commentPatchKmsComment.js +108 -0
- package/funcs/commentPatchKmsComment.js.map +1 -0
- package/funcs/commentRemoveKmsComment.d.ts +12 -0
- package/funcs/commentRemoveKmsComment.d.ts.map +1 -0
- package/funcs/commentRemoveKmsComment.js +105 -0
- package/funcs/commentRemoveKmsComment.js.map +1 -0
- package/funcs/commentUpdateKmsComment.d.ts +13 -0
- package/funcs/commentUpdateKmsComment.d.ts.map +1 -0
- package/funcs/commentUpdateKmsComment.js +108 -0
- package/funcs/commentUpdateKmsComment.js.map +1 -0
- package/funcs/kmsCreateKmsComment.d.ts +13 -0
- package/funcs/kmsCreateKmsComment.d.ts.map +1 -0
- package/funcs/kmsCreateKmsComment.js +104 -0
- package/funcs/kmsCreateKmsComment.js.map +1 -0
- package/funcs/kmsGetKmsComment.d.ts +13 -0
- package/funcs/kmsGetKmsComment.d.ts.map +1 -0
- package/funcs/kmsGetKmsComment.js +107 -0
- package/funcs/kmsGetKmsComment.js.map +1 -0
- package/funcs/kmsListKmsComments.d.ts +13 -0
- package/funcs/kmsListKmsComments.d.ts.map +1 -0
- package/funcs/kmsListKmsComments.js +113 -0
- package/funcs/kmsListKmsComments.js.map +1 -0
- package/funcs/kmsPatchKmsComment.d.ts +13 -0
- package/funcs/kmsPatchKmsComment.d.ts.map +1 -0
- package/funcs/kmsPatchKmsComment.js +108 -0
- package/funcs/kmsPatchKmsComment.js.map +1 -0
- package/funcs/kmsRemoveKmsComment.d.ts +12 -0
- package/funcs/kmsRemoveKmsComment.d.ts.map +1 -0
- package/funcs/kmsRemoveKmsComment.js +105 -0
- package/funcs/kmsRemoveKmsComment.js.map +1 -0
- package/funcs/kmsUpdateKmsComment.d.ts +13 -0
- package/funcs/kmsUpdateKmsComment.d.ts.map +1 -0
- package/funcs/kmsUpdateKmsComment.js +108 -0
- package/funcs/kmsUpdateKmsComment.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/schemas.d.ts +1 -1
- package/lib/schemas.d.ts.map +1 -1
- package/lib/schemas.js +4 -1
- package/lib/schemas.js.map +1 -1
- package/package.json +1 -1
- package/sdk/comment.d.ts +24 -0
- package/sdk/comment.d.ts.map +1 -1
- package/sdk/comment.js +42 -0
- package/sdk/comment.js.map +1 -1
- package/sdk/kms.d.ts +24 -0
- package/sdk/kms.d.ts.map +1 -1
- package/sdk/kms.js +42 -0
- package/sdk/kms.js.map +1 -1
- package/sdk/models/operations/createkmscomment.d.ts +40 -0
- package/sdk/models/operations/createkmscomment.d.ts.map +1 -0
- package/sdk/models/operations/createkmscomment.js +75 -0
- package/sdk/models/operations/createkmscomment.js.map +1 -0
- package/sdk/models/operations/getkmscomment.d.ts +42 -0
- package/sdk/models/operations/getkmscomment.d.ts.map +1 -0
- package/sdk/models/operations/getkmscomment.js +72 -0
- package/sdk/models/operations/getkmscomment.js.map +1 -0
- package/sdk/models/operations/index.d.ts +6 -0
- package/sdk/models/operations/index.d.ts.map +1 -1
- package/sdk/models/operations/index.js +6 -0
- package/sdk/models/operations/index.js.map +1 -1
- package/sdk/models/operations/listkmscomments.d.ts +61 -0
- package/sdk/models/operations/listkmscomments.d.ts.map +1 -0
- package/sdk/models/operations/listkmscomments.js +95 -0
- package/sdk/models/operations/listkmscomments.js.map +1 -0
- package/sdk/models/operations/patchkmscomment.d.ts +45 -0
- package/sdk/models/operations/patchkmscomment.d.ts.map +1 -0
- package/sdk/models/operations/patchkmscomment.js +77 -0
- package/sdk/models/operations/patchkmscomment.js.map +1 -0
- package/sdk/models/operations/removekmscomment.d.ts +66 -0
- package/sdk/models/operations/removekmscomment.d.ts.map +1 -0
- package/sdk/models/operations/removekmscomment.js +105 -0
- package/sdk/models/operations/removekmscomment.js.map +1 -0
- package/sdk/models/operations/updatekmscomment.d.ts +45 -0
- package/sdk/models/operations/updatekmscomment.d.ts.map +1 -0
- package/sdk/models/operations/updatekmscomment.js +77 -0
- package/sdk/models/operations/updatekmscomment.js.map +1 -0
- package/sdk/models/shared/index.d.ts +1 -0
- package/sdk/models/shared/index.d.ts.map +1 -1
- package/sdk/models/shared/index.js +1 -0
- package/sdk/models/shared/index.js.map +1 -1
- package/sdk/models/shared/integrationsupport.d.ts +32 -0
- package/sdk/models/shared/integrationsupport.d.ts.map +1 -1
- package/sdk/models/shared/integrationsupport.js +34 -5
- package/sdk/models/shared/integrationsupport.js.map +1 -1
- package/sdk/models/shared/kmscomment.d.ts +105 -0
- package/sdk/models/shared/kmscomment.d.ts.map +1 -0
- package/sdk/models/shared/kmscomment.js +138 -0
- package/sdk/models/shared/kmscomment.js.map +1 -0
- package/sdk/models/shared/kmspagemetadata.d.ts +2 -6
- package/sdk/models/shared/kmspagemetadata.d.ts.map +1 -1
- package/sdk/models/shared/kmspagemetadata.js +2 -2
- package/sdk/models/shared/kmspagemetadata.js.map +1 -1
- package/sdk/models/shared/repoorganization.d.ts +5 -0
- package/sdk/models/shared/repoorganization.d.ts.map +1 -1
- package/sdk/models/shared/repoorganization.js +4 -0
- package/sdk/models/shared/repoorganization.js.map +1 -1
- package/sdk/models/shared/webhook.d.ts +3 -0
- package/sdk/models/shared/webhook.d.ts.map +1 -1
- package/sdk/models/shared/webhook.js +1 -0
- package/sdk/models/shared/webhook.js.map +1 -1
- package/sdk/sdk.d.ts +2 -2
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +3 -3
- package/sdk/sdk.js.map +1 -1
- package/src/funcs/commentCreateKmsComment.ts +135 -0
- package/src/funcs/commentGetKmsComment.ts +138 -0
- package/src/funcs/commentListKmsComments.ts +144 -0
- package/src/funcs/commentPatchKmsComment.ts +139 -0
- package/src/funcs/commentRemoveKmsComment.ts +141 -0
- package/src/funcs/commentUpdateKmsComment.ts +139 -0
- package/src/funcs/kmsCreateKmsComment.ts +135 -0
- package/src/funcs/kmsGetKmsComment.ts +138 -0
- package/src/funcs/kmsListKmsComments.ts +144 -0
- package/src/funcs/kmsPatchKmsComment.ts +139 -0
- package/src/funcs/kmsRemoveKmsComment.ts +141 -0
- package/src/funcs/kmsUpdateKmsComment.ts +139 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/schemas.ts +5 -0
- package/src/sdk/comment.ts +90 -0
- package/src/sdk/kms.ts +90 -0
- package/src/sdk/models/operations/createkmscomment.ts +92 -0
- package/src/sdk/models/operations/getkmscomment.ts +92 -0
- package/src/sdk/models/operations/index.ts +6 -0
- package/src/sdk/models/operations/listkmscomments.ts +134 -0
- package/src/sdk/models/operations/patchkmscomment.ts +99 -0
- package/src/sdk/models/operations/removekmscomment.ts +151 -0
- package/src/sdk/models/operations/updatekmscomment.ts +99 -0
- package/src/sdk/models/shared/index.ts +1 -0
- package/src/sdk/models/shared/integrationsupport.ts +38 -0
- package/src/sdk/models/shared/kmscomment.ts +173 -0
- package/src/sdk/models/shared/kmspagemetadata.ts +4 -4
- package/src/sdk/models/shared/repoorganization.ts +9 -0
- package/src/sdk/models/shared/webhook.ts +1 -0
- package/src/sdk/sdk.ts +5 -5
|
@@ -0,0 +1,92 @@
|
|
|
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 GetKmsCommentRequest = {
|
|
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 Comment
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/** @internal */
|
|
27
|
+
export const GetKmsCommentRequest$inboundSchema: z.ZodType<
|
|
28
|
+
GetKmsCommentRequest,
|
|
29
|
+
z.ZodTypeDef,
|
|
30
|
+
unknown
|
|
31
|
+
> = z.object({
|
|
32
|
+
connection_id: z.string(),
|
|
33
|
+
fields: z.array(z.string()).optional(),
|
|
34
|
+
id: z.string(),
|
|
35
|
+
}).transform((v) => {
|
|
36
|
+
return remap$(v, {
|
|
37
|
+
"connection_id": "connectionId",
|
|
38
|
+
});
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
/** @internal */
|
|
42
|
+
export type GetKmsCommentRequest$Outbound = {
|
|
43
|
+
connection_id: string;
|
|
44
|
+
fields?: Array<string> | undefined;
|
|
45
|
+
id: string;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
/** @internal */
|
|
49
|
+
export const GetKmsCommentRequest$outboundSchema: z.ZodType<
|
|
50
|
+
GetKmsCommentRequest$Outbound,
|
|
51
|
+
z.ZodTypeDef,
|
|
52
|
+
GetKmsCommentRequest
|
|
53
|
+
> = z.object({
|
|
54
|
+
connectionId: z.string(),
|
|
55
|
+
fields: z.array(z.string()).optional(),
|
|
56
|
+
id: z.string(),
|
|
57
|
+
}).transform((v) => {
|
|
58
|
+
return remap$(v, {
|
|
59
|
+
connectionId: "connection_id",
|
|
60
|
+
});
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* @internal
|
|
65
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
66
|
+
*/
|
|
67
|
+
export namespace GetKmsCommentRequest$ {
|
|
68
|
+
/** @deprecated use `GetKmsCommentRequest$inboundSchema` instead. */
|
|
69
|
+
export const inboundSchema = GetKmsCommentRequest$inboundSchema;
|
|
70
|
+
/** @deprecated use `GetKmsCommentRequest$outboundSchema` instead. */
|
|
71
|
+
export const outboundSchema = GetKmsCommentRequest$outboundSchema;
|
|
72
|
+
/** @deprecated use `GetKmsCommentRequest$Outbound` instead. */
|
|
73
|
+
export type Outbound = GetKmsCommentRequest$Outbound;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function getKmsCommentRequestToJSON(
|
|
77
|
+
getKmsCommentRequest: GetKmsCommentRequest,
|
|
78
|
+
): string {
|
|
79
|
+
return JSON.stringify(
|
|
80
|
+
GetKmsCommentRequest$outboundSchema.parse(getKmsCommentRequest),
|
|
81
|
+
);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function getKmsCommentRequestFromJSON(
|
|
85
|
+
jsonString: string,
|
|
86
|
+
): SafeParseResult<GetKmsCommentRequest, SDKValidationError> {
|
|
87
|
+
return safeParse(
|
|
88
|
+
jsonString,
|
|
89
|
+
(x) => GetKmsCommentRequest$inboundSchema.parse(JSON.parse(x)),
|
|
90
|
+
`Failed to parse 'GetKmsCommentRequest' from JSON`,
|
|
91
|
+
);
|
|
92
|
+
}
|
|
@@ -31,6 +31,7 @@ export * from "./createhriscompany.js";
|
|
|
31
31
|
export * from "./createhrisemployee.js";
|
|
32
32
|
export * from "./createhrisgroup.js";
|
|
33
33
|
export * from "./createhrislocation.js";
|
|
34
|
+
export * from "./createkmscomment.js";
|
|
34
35
|
export * from "./createkmspage.js";
|
|
35
36
|
export * from "./createkmsspace.js";
|
|
36
37
|
export * from "./createlmsclass.js";
|
|
@@ -94,6 +95,7 @@ export * from "./gethrisgroup.js";
|
|
|
94
95
|
export * from "./gethrislocation.js";
|
|
95
96
|
export * from "./gethrispayslip.js";
|
|
96
97
|
export * from "./gethristimeoff.js";
|
|
98
|
+
export * from "./getkmscomment.js";
|
|
97
99
|
export * from "./getkmspage.js";
|
|
98
100
|
export * from "./getkmsspace.js";
|
|
99
101
|
export * from "./getlmsclass.js";
|
|
@@ -166,6 +168,7 @@ export * from "./listhrisgroups.js";
|
|
|
166
168
|
export * from "./listhrislocations.js";
|
|
167
169
|
export * from "./listhrispayslips.js";
|
|
168
170
|
export * from "./listhristimeoffs.js";
|
|
171
|
+
export * from "./listkmscomments.js";
|
|
169
172
|
export * from "./listkmspages.js";
|
|
170
173
|
export * from "./listkmsspaces.js";
|
|
171
174
|
export * from "./listlmsclasses.js";
|
|
@@ -233,6 +236,7 @@ export * from "./patchhriscompany.js";
|
|
|
233
236
|
export * from "./patchhrisemployee.js";
|
|
234
237
|
export * from "./patchhrisgroup.js";
|
|
235
238
|
export * from "./patchhrislocation.js";
|
|
239
|
+
export * from "./patchkmscomment.js";
|
|
236
240
|
export * from "./patchkmspage.js";
|
|
237
241
|
export * from "./patchkmsspace.js";
|
|
238
242
|
export * from "./patchlmsclass.js";
|
|
@@ -294,6 +298,7 @@ export * from "./removehriscompany.js";
|
|
|
294
298
|
export * from "./removehrisemployee.js";
|
|
295
299
|
export * from "./removehrisgroup.js";
|
|
296
300
|
export * from "./removehrislocation.js";
|
|
301
|
+
export * from "./removekmscomment.js";
|
|
297
302
|
export * from "./removekmspage.js";
|
|
298
303
|
export * from "./removekmsspace.js";
|
|
299
304
|
export * from "./removelmsclass.js";
|
|
@@ -353,6 +358,7 @@ export * from "./updatehriscompany.js";
|
|
|
353
358
|
export * from "./updatehrisemployee.js";
|
|
354
359
|
export * from "./updatehrisgroup.js";
|
|
355
360
|
export * from "./updatehrislocation.js";
|
|
361
|
+
export * from "./updatekmscomment.js";
|
|
356
362
|
export * from "./updatekmspage.js";
|
|
357
363
|
export * from "./updatekmsspace.js";
|
|
358
364
|
export * from "./updatelmsclass.js";
|
|
@@ -0,0 +1,134 @@
|
|
|
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 ListKmsCommentsRequest = {
|
|
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
|
+
pageId?: string | undefined;
|
|
24
|
+
parentId?: string | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* Query string to search. eg. email address or name
|
|
27
|
+
*/
|
|
28
|
+
query?: string | undefined;
|
|
29
|
+
sort?: string | undefined;
|
|
30
|
+
type?: string | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* Return only results whose updated date is equal or greater to this value
|
|
33
|
+
*/
|
|
34
|
+
updatedGte?: Date | undefined;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const ListKmsCommentsRequest$inboundSchema: z.ZodType<
|
|
39
|
+
ListKmsCommentsRequest,
|
|
40
|
+
z.ZodTypeDef,
|
|
41
|
+
unknown
|
|
42
|
+
> = z.object({
|
|
43
|
+
connection_id: z.string(),
|
|
44
|
+
fields: z.array(z.string()).optional(),
|
|
45
|
+
limit: z.number().optional(),
|
|
46
|
+
offset: z.number().optional(),
|
|
47
|
+
order: z.string().optional(),
|
|
48
|
+
page_id: z.string().optional(),
|
|
49
|
+
parent_id: z.string().optional(),
|
|
50
|
+
query: z.string().optional(),
|
|
51
|
+
sort: z.string().optional(),
|
|
52
|
+
type: z.string().optional(),
|
|
53
|
+
updated_gte: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
54
|
+
.optional(),
|
|
55
|
+
}).transform((v) => {
|
|
56
|
+
return remap$(v, {
|
|
57
|
+
"connection_id": "connectionId",
|
|
58
|
+
"page_id": "pageId",
|
|
59
|
+
"parent_id": "parentId",
|
|
60
|
+
"updated_gte": "updatedGte",
|
|
61
|
+
});
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
/** @internal */
|
|
65
|
+
export type ListKmsCommentsRequest$Outbound = {
|
|
66
|
+
connection_id: string;
|
|
67
|
+
fields?: Array<string> | undefined;
|
|
68
|
+
limit?: number | undefined;
|
|
69
|
+
offset?: number | undefined;
|
|
70
|
+
order?: string | undefined;
|
|
71
|
+
page_id?: string | undefined;
|
|
72
|
+
parent_id?: string | undefined;
|
|
73
|
+
query?: string | undefined;
|
|
74
|
+
sort?: string | undefined;
|
|
75
|
+
type?: string | undefined;
|
|
76
|
+
updated_gte?: string | undefined;
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
/** @internal */
|
|
80
|
+
export const ListKmsCommentsRequest$outboundSchema: z.ZodType<
|
|
81
|
+
ListKmsCommentsRequest$Outbound,
|
|
82
|
+
z.ZodTypeDef,
|
|
83
|
+
ListKmsCommentsRequest
|
|
84
|
+
> = z.object({
|
|
85
|
+
connectionId: z.string(),
|
|
86
|
+
fields: z.array(z.string()).optional(),
|
|
87
|
+
limit: z.number().optional(),
|
|
88
|
+
offset: z.number().optional(),
|
|
89
|
+
order: z.string().optional(),
|
|
90
|
+
pageId: z.string().optional(),
|
|
91
|
+
parentId: z.string().optional(),
|
|
92
|
+
query: z.string().optional(),
|
|
93
|
+
sort: z.string().optional(),
|
|
94
|
+
type: z.string().optional(),
|
|
95
|
+
updatedGte: z.date().transform(v => v.toISOString()).optional(),
|
|
96
|
+
}).transform((v) => {
|
|
97
|
+
return remap$(v, {
|
|
98
|
+
connectionId: "connection_id",
|
|
99
|
+
pageId: "page_id",
|
|
100
|
+
parentId: "parent_id",
|
|
101
|
+
updatedGte: "updated_gte",
|
|
102
|
+
});
|
|
103
|
+
});
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* @internal
|
|
107
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
108
|
+
*/
|
|
109
|
+
export namespace ListKmsCommentsRequest$ {
|
|
110
|
+
/** @deprecated use `ListKmsCommentsRequest$inboundSchema` instead. */
|
|
111
|
+
export const inboundSchema = ListKmsCommentsRequest$inboundSchema;
|
|
112
|
+
/** @deprecated use `ListKmsCommentsRequest$outboundSchema` instead. */
|
|
113
|
+
export const outboundSchema = ListKmsCommentsRequest$outboundSchema;
|
|
114
|
+
/** @deprecated use `ListKmsCommentsRequest$Outbound` instead. */
|
|
115
|
+
export type Outbound = ListKmsCommentsRequest$Outbound;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export function listKmsCommentsRequestToJSON(
|
|
119
|
+
listKmsCommentsRequest: ListKmsCommentsRequest,
|
|
120
|
+
): string {
|
|
121
|
+
return JSON.stringify(
|
|
122
|
+
ListKmsCommentsRequest$outboundSchema.parse(listKmsCommentsRequest),
|
|
123
|
+
);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export function listKmsCommentsRequestFromJSON(
|
|
127
|
+
jsonString: string,
|
|
128
|
+
): SafeParseResult<ListKmsCommentsRequest, SDKValidationError> {
|
|
129
|
+
return safeParse(
|
|
130
|
+
jsonString,
|
|
131
|
+
(x) => ListKmsCommentsRequest$inboundSchema.parse(JSON.parse(x)),
|
|
132
|
+
`Failed to parse 'ListKmsCommentsRequest' from JSON`,
|
|
133
|
+
);
|
|
134
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
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 PatchKmsCommentRequest = {
|
|
13
|
+
kmsComment?: shared.KmsComment | undefined;
|
|
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
|
+
* ID of the Comment
|
|
24
|
+
*/
|
|
25
|
+
id: string;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export const PatchKmsCommentRequest$inboundSchema: z.ZodType<
|
|
30
|
+
PatchKmsCommentRequest,
|
|
31
|
+
z.ZodTypeDef,
|
|
32
|
+
unknown
|
|
33
|
+
> = z.object({
|
|
34
|
+
KmsComment: shared.KmsComment$inboundSchema.optional(),
|
|
35
|
+
connection_id: z.string(),
|
|
36
|
+
fields: z.array(z.string()).optional(),
|
|
37
|
+
id: z.string(),
|
|
38
|
+
}).transform((v) => {
|
|
39
|
+
return remap$(v, {
|
|
40
|
+
"KmsComment": "kmsComment",
|
|
41
|
+
"connection_id": "connectionId",
|
|
42
|
+
});
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
/** @internal */
|
|
46
|
+
export type PatchKmsCommentRequest$Outbound = {
|
|
47
|
+
KmsComment?: shared.KmsComment$Outbound | undefined;
|
|
48
|
+
connection_id: string;
|
|
49
|
+
fields?: Array<string> | undefined;
|
|
50
|
+
id: string;
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
/** @internal */
|
|
54
|
+
export const PatchKmsCommentRequest$outboundSchema: z.ZodType<
|
|
55
|
+
PatchKmsCommentRequest$Outbound,
|
|
56
|
+
z.ZodTypeDef,
|
|
57
|
+
PatchKmsCommentRequest
|
|
58
|
+
> = z.object({
|
|
59
|
+
kmsComment: shared.KmsComment$outboundSchema.optional(),
|
|
60
|
+
connectionId: z.string(),
|
|
61
|
+
fields: z.array(z.string()).optional(),
|
|
62
|
+
id: z.string(),
|
|
63
|
+
}).transform((v) => {
|
|
64
|
+
return remap$(v, {
|
|
65
|
+
kmsComment: "KmsComment",
|
|
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 PatchKmsCommentRequest$ {
|
|
75
|
+
/** @deprecated use `PatchKmsCommentRequest$inboundSchema` instead. */
|
|
76
|
+
export const inboundSchema = PatchKmsCommentRequest$inboundSchema;
|
|
77
|
+
/** @deprecated use `PatchKmsCommentRequest$outboundSchema` instead. */
|
|
78
|
+
export const outboundSchema = PatchKmsCommentRequest$outboundSchema;
|
|
79
|
+
/** @deprecated use `PatchKmsCommentRequest$Outbound` instead. */
|
|
80
|
+
export type Outbound = PatchKmsCommentRequest$Outbound;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function patchKmsCommentRequestToJSON(
|
|
84
|
+
patchKmsCommentRequest: PatchKmsCommentRequest,
|
|
85
|
+
): string {
|
|
86
|
+
return JSON.stringify(
|
|
87
|
+
PatchKmsCommentRequest$outboundSchema.parse(patchKmsCommentRequest),
|
|
88
|
+
);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function patchKmsCommentRequestFromJSON(
|
|
92
|
+
jsonString: string,
|
|
93
|
+
): SafeParseResult<PatchKmsCommentRequest, SDKValidationError> {
|
|
94
|
+
return safeParse(
|
|
95
|
+
jsonString,
|
|
96
|
+
(x) => PatchKmsCommentRequest$inboundSchema.parse(JSON.parse(x)),
|
|
97
|
+
`Failed to parse 'PatchKmsCommentRequest' from JSON`,
|
|
98
|
+
);
|
|
99
|
+
}
|
|
@@ -0,0 +1,151 @@
|
|
|
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 RemoveKmsCommentRequest = {
|
|
12
|
+
/**
|
|
13
|
+
* ID of the connection
|
|
14
|
+
*/
|
|
15
|
+
connectionId: string;
|
|
16
|
+
/**
|
|
17
|
+
* ID of the Comment
|
|
18
|
+
*/
|
|
19
|
+
id: string;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export type RemoveKmsCommentResponse = {
|
|
23
|
+
headers: { [k: string]: Array<string> };
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/** @internal */
|
|
27
|
+
export const RemoveKmsCommentRequest$inboundSchema: z.ZodType<
|
|
28
|
+
RemoveKmsCommentRequest,
|
|
29
|
+
z.ZodTypeDef,
|
|
30
|
+
unknown
|
|
31
|
+
> = z.object({
|
|
32
|
+
connection_id: z.string(),
|
|
33
|
+
id: z.string(),
|
|
34
|
+
}).transform((v) => {
|
|
35
|
+
return remap$(v, {
|
|
36
|
+
"connection_id": "connectionId",
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
/** @internal */
|
|
41
|
+
export type RemoveKmsCommentRequest$Outbound = {
|
|
42
|
+
connection_id: string;
|
|
43
|
+
id: string;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
/** @internal */
|
|
47
|
+
export const RemoveKmsCommentRequest$outboundSchema: z.ZodType<
|
|
48
|
+
RemoveKmsCommentRequest$Outbound,
|
|
49
|
+
z.ZodTypeDef,
|
|
50
|
+
RemoveKmsCommentRequest
|
|
51
|
+
> = z.object({
|
|
52
|
+
connectionId: z.string(),
|
|
53
|
+
id: z.string(),
|
|
54
|
+
}).transform((v) => {
|
|
55
|
+
return remap$(v, {
|
|
56
|
+
connectionId: "connection_id",
|
|
57
|
+
});
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* @internal
|
|
62
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
63
|
+
*/
|
|
64
|
+
export namespace RemoveKmsCommentRequest$ {
|
|
65
|
+
/** @deprecated use `RemoveKmsCommentRequest$inboundSchema` instead. */
|
|
66
|
+
export const inboundSchema = RemoveKmsCommentRequest$inboundSchema;
|
|
67
|
+
/** @deprecated use `RemoveKmsCommentRequest$outboundSchema` instead. */
|
|
68
|
+
export const outboundSchema = RemoveKmsCommentRequest$outboundSchema;
|
|
69
|
+
/** @deprecated use `RemoveKmsCommentRequest$Outbound` instead. */
|
|
70
|
+
export type Outbound = RemoveKmsCommentRequest$Outbound;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function removeKmsCommentRequestToJSON(
|
|
74
|
+
removeKmsCommentRequest: RemoveKmsCommentRequest,
|
|
75
|
+
): string {
|
|
76
|
+
return JSON.stringify(
|
|
77
|
+
RemoveKmsCommentRequest$outboundSchema.parse(removeKmsCommentRequest),
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function removeKmsCommentRequestFromJSON(
|
|
82
|
+
jsonString: string,
|
|
83
|
+
): SafeParseResult<RemoveKmsCommentRequest, SDKValidationError> {
|
|
84
|
+
return safeParse(
|
|
85
|
+
jsonString,
|
|
86
|
+
(x) => RemoveKmsCommentRequest$inboundSchema.parse(JSON.parse(x)),
|
|
87
|
+
`Failed to parse 'RemoveKmsCommentRequest' from JSON`,
|
|
88
|
+
);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/** @internal */
|
|
92
|
+
export const RemoveKmsCommentResponse$inboundSchema: z.ZodType<
|
|
93
|
+
RemoveKmsCommentResponse,
|
|
94
|
+
z.ZodTypeDef,
|
|
95
|
+
unknown
|
|
96
|
+
> = z.object({
|
|
97
|
+
Headers: z.record(z.array(z.string())),
|
|
98
|
+
}).transform((v) => {
|
|
99
|
+
return remap$(v, {
|
|
100
|
+
"Headers": "headers",
|
|
101
|
+
});
|
|
102
|
+
});
|
|
103
|
+
|
|
104
|
+
/** @internal */
|
|
105
|
+
export type RemoveKmsCommentResponse$Outbound = {
|
|
106
|
+
Headers: { [k: string]: Array<string> };
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
/** @internal */
|
|
110
|
+
export const RemoveKmsCommentResponse$outboundSchema: z.ZodType<
|
|
111
|
+
RemoveKmsCommentResponse$Outbound,
|
|
112
|
+
z.ZodTypeDef,
|
|
113
|
+
RemoveKmsCommentResponse
|
|
114
|
+
> = z.object({
|
|
115
|
+
headers: z.record(z.array(z.string())),
|
|
116
|
+
}).transform((v) => {
|
|
117
|
+
return remap$(v, {
|
|
118
|
+
headers: "Headers",
|
|
119
|
+
});
|
|
120
|
+
});
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* @internal
|
|
124
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
125
|
+
*/
|
|
126
|
+
export namespace RemoveKmsCommentResponse$ {
|
|
127
|
+
/** @deprecated use `RemoveKmsCommentResponse$inboundSchema` instead. */
|
|
128
|
+
export const inboundSchema = RemoveKmsCommentResponse$inboundSchema;
|
|
129
|
+
/** @deprecated use `RemoveKmsCommentResponse$outboundSchema` instead. */
|
|
130
|
+
export const outboundSchema = RemoveKmsCommentResponse$outboundSchema;
|
|
131
|
+
/** @deprecated use `RemoveKmsCommentResponse$Outbound` instead. */
|
|
132
|
+
export type Outbound = RemoveKmsCommentResponse$Outbound;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export function removeKmsCommentResponseToJSON(
|
|
136
|
+
removeKmsCommentResponse: RemoveKmsCommentResponse,
|
|
137
|
+
): string {
|
|
138
|
+
return JSON.stringify(
|
|
139
|
+
RemoveKmsCommentResponse$outboundSchema.parse(removeKmsCommentResponse),
|
|
140
|
+
);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export function removeKmsCommentResponseFromJSON(
|
|
144
|
+
jsonString: string,
|
|
145
|
+
): SafeParseResult<RemoveKmsCommentResponse, SDKValidationError> {
|
|
146
|
+
return safeParse(
|
|
147
|
+
jsonString,
|
|
148
|
+
(x) => RemoveKmsCommentResponse$inboundSchema.parse(JSON.parse(x)),
|
|
149
|
+
`Failed to parse 'RemoveKmsCommentResponse' from JSON`,
|
|
150
|
+
);
|
|
151
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
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 UpdateKmsCommentRequest = {
|
|
13
|
+
kmsComment?: shared.KmsComment | undefined;
|
|
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
|
+
* ID of the Comment
|
|
24
|
+
*/
|
|
25
|
+
id: string;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export const UpdateKmsCommentRequest$inboundSchema: z.ZodType<
|
|
30
|
+
UpdateKmsCommentRequest,
|
|
31
|
+
z.ZodTypeDef,
|
|
32
|
+
unknown
|
|
33
|
+
> = z.object({
|
|
34
|
+
KmsComment: shared.KmsComment$inboundSchema.optional(),
|
|
35
|
+
connection_id: z.string(),
|
|
36
|
+
fields: z.array(z.string()).optional(),
|
|
37
|
+
id: z.string(),
|
|
38
|
+
}).transform((v) => {
|
|
39
|
+
return remap$(v, {
|
|
40
|
+
"KmsComment": "kmsComment",
|
|
41
|
+
"connection_id": "connectionId",
|
|
42
|
+
});
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
/** @internal */
|
|
46
|
+
export type UpdateKmsCommentRequest$Outbound = {
|
|
47
|
+
KmsComment?: shared.KmsComment$Outbound | undefined;
|
|
48
|
+
connection_id: string;
|
|
49
|
+
fields?: Array<string> | undefined;
|
|
50
|
+
id: string;
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
/** @internal */
|
|
54
|
+
export const UpdateKmsCommentRequest$outboundSchema: z.ZodType<
|
|
55
|
+
UpdateKmsCommentRequest$Outbound,
|
|
56
|
+
z.ZodTypeDef,
|
|
57
|
+
UpdateKmsCommentRequest
|
|
58
|
+
> = z.object({
|
|
59
|
+
kmsComment: shared.KmsComment$outboundSchema.optional(),
|
|
60
|
+
connectionId: z.string(),
|
|
61
|
+
fields: z.array(z.string()).optional(),
|
|
62
|
+
id: z.string(),
|
|
63
|
+
}).transform((v) => {
|
|
64
|
+
return remap$(v, {
|
|
65
|
+
kmsComment: "KmsComment",
|
|
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 UpdateKmsCommentRequest$ {
|
|
75
|
+
/** @deprecated use `UpdateKmsCommentRequest$inboundSchema` instead. */
|
|
76
|
+
export const inboundSchema = UpdateKmsCommentRequest$inboundSchema;
|
|
77
|
+
/** @deprecated use `UpdateKmsCommentRequest$outboundSchema` instead. */
|
|
78
|
+
export const outboundSchema = UpdateKmsCommentRequest$outboundSchema;
|
|
79
|
+
/** @deprecated use `UpdateKmsCommentRequest$Outbound` instead. */
|
|
80
|
+
export type Outbound = UpdateKmsCommentRequest$Outbound;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function updateKmsCommentRequestToJSON(
|
|
84
|
+
updateKmsCommentRequest: UpdateKmsCommentRequest,
|
|
85
|
+
): string {
|
|
86
|
+
return JSON.stringify(
|
|
87
|
+
UpdateKmsCommentRequest$outboundSchema.parse(updateKmsCommentRequest),
|
|
88
|
+
);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function updateKmsCommentRequestFromJSON(
|
|
92
|
+
jsonString: string,
|
|
93
|
+
): SafeParseResult<UpdateKmsCommentRequest, SDKValidationError> {
|
|
94
|
+
return safeParse(
|
|
95
|
+
jsonString,
|
|
96
|
+
(x) => UpdateKmsCommentRequest$inboundSchema.parse(JSON.parse(x)),
|
|
97
|
+
`Failed to parse 'UpdateKmsCommentRequest' from JSON`,
|
|
98
|
+
);
|
|
99
|
+
}
|
|
@@ -77,6 +77,7 @@ export * from "./hristimeoff.js";
|
|
|
77
77
|
export * from "./integration.js";
|
|
78
78
|
export * from "./integrationsupport.js";
|
|
79
79
|
export * from "./issue.js";
|
|
80
|
+
export * from "./kmscomment.js";
|
|
80
81
|
export * from "./kmspage.js";
|
|
81
82
|
export * from "./kmspagemetadata.js";
|
|
82
83
|
export * from "./kmsspace.js";
|