@unified-api/typescript-sdk 2.9.22 → 2.9.24
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 +108 -0
- package/sdk/models/shared/kmscomment.d.ts.map +1 -0
- package/sdk/models/shared/kmscomment.js +139 -0
- package/sdk/models/shared/kmscomment.js.map +1 -0
- package/sdk/models/shared/kmspage.d.ts +5 -2
- package/sdk/models/shared/kmspage.d.ts.map +1 -1
- package/sdk/models/shared/kmspage.js +3 -2
- package/sdk/models/shared/kmspage.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 +174 -0
- package/src/sdk/models/shared/kmspage.ts +5 -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
package/src/sdk/kms.ts
CHANGED
|
@@ -2,16 +2,22 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
+
import { kmsCreateKmsComment } from "../funcs/kmsCreateKmsComment.js";
|
|
5
6
|
import { kmsCreateKmsPage } from "../funcs/kmsCreateKmsPage.js";
|
|
6
7
|
import { kmsCreateKmsSpace } from "../funcs/kmsCreateKmsSpace.js";
|
|
8
|
+
import { kmsGetKmsComment } from "../funcs/kmsGetKmsComment.js";
|
|
7
9
|
import { kmsGetKmsPage } from "../funcs/kmsGetKmsPage.js";
|
|
8
10
|
import { kmsGetKmsSpace } from "../funcs/kmsGetKmsSpace.js";
|
|
11
|
+
import { kmsListKmsComments } from "../funcs/kmsListKmsComments.js";
|
|
9
12
|
import { kmsListKmsPages } from "../funcs/kmsListKmsPages.js";
|
|
10
13
|
import { kmsListKmsSpaces } from "../funcs/kmsListKmsSpaces.js";
|
|
14
|
+
import { kmsPatchKmsComment } from "../funcs/kmsPatchKmsComment.js";
|
|
11
15
|
import { kmsPatchKmsPage } from "../funcs/kmsPatchKmsPage.js";
|
|
12
16
|
import { kmsPatchKmsSpace } from "../funcs/kmsPatchKmsSpace.js";
|
|
17
|
+
import { kmsRemoveKmsComment } from "../funcs/kmsRemoveKmsComment.js";
|
|
13
18
|
import { kmsRemoveKmsPage } from "../funcs/kmsRemoveKmsPage.js";
|
|
14
19
|
import { kmsRemoveKmsSpace } from "../funcs/kmsRemoveKmsSpace.js";
|
|
20
|
+
import { kmsUpdateKmsComment } from "../funcs/kmsUpdateKmsComment.js";
|
|
15
21
|
import { kmsUpdateKmsPage } from "../funcs/kmsUpdateKmsPage.js";
|
|
16
22
|
import { kmsUpdateKmsSpace } from "../funcs/kmsUpdateKmsSpace.js";
|
|
17
23
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
@@ -20,6 +26,20 @@ import * as shared from "./models/shared/index.js";
|
|
|
20
26
|
import { unwrapAsync } from "./types/fp.js";
|
|
21
27
|
|
|
22
28
|
export class Kms extends ClientSDK {
|
|
29
|
+
/**
|
|
30
|
+
* Create a comment
|
|
31
|
+
*/
|
|
32
|
+
async createKmsComment(
|
|
33
|
+
request: operations.CreateKmsCommentRequest,
|
|
34
|
+
options?: RequestOptions,
|
|
35
|
+
): Promise<shared.KmsComment> {
|
|
36
|
+
return unwrapAsync(kmsCreateKmsComment(
|
|
37
|
+
this,
|
|
38
|
+
request,
|
|
39
|
+
options,
|
|
40
|
+
));
|
|
41
|
+
}
|
|
42
|
+
|
|
23
43
|
/**
|
|
24
44
|
* Create a page
|
|
25
45
|
*/
|
|
@@ -48,6 +68,20 @@ export class Kms extends ClientSDK {
|
|
|
48
68
|
));
|
|
49
69
|
}
|
|
50
70
|
|
|
71
|
+
/**
|
|
72
|
+
* Retrieve a comment
|
|
73
|
+
*/
|
|
74
|
+
async getKmsComment(
|
|
75
|
+
request: operations.GetKmsCommentRequest,
|
|
76
|
+
options?: RequestOptions,
|
|
77
|
+
): Promise<shared.KmsComment> {
|
|
78
|
+
return unwrapAsync(kmsGetKmsComment(
|
|
79
|
+
this,
|
|
80
|
+
request,
|
|
81
|
+
options,
|
|
82
|
+
));
|
|
83
|
+
}
|
|
84
|
+
|
|
51
85
|
/**
|
|
52
86
|
* Retrieve a page
|
|
53
87
|
*/
|
|
@@ -76,6 +110,20 @@ export class Kms extends ClientSDK {
|
|
|
76
110
|
));
|
|
77
111
|
}
|
|
78
112
|
|
|
113
|
+
/**
|
|
114
|
+
* List all comments
|
|
115
|
+
*/
|
|
116
|
+
async listKmsComments(
|
|
117
|
+
request: operations.ListKmsCommentsRequest,
|
|
118
|
+
options?: RequestOptions,
|
|
119
|
+
): Promise<Array<shared.KmsComment>> {
|
|
120
|
+
return unwrapAsync(kmsListKmsComments(
|
|
121
|
+
this,
|
|
122
|
+
request,
|
|
123
|
+
options,
|
|
124
|
+
));
|
|
125
|
+
}
|
|
126
|
+
|
|
79
127
|
/**
|
|
80
128
|
* List all pages
|
|
81
129
|
*/
|
|
@@ -104,6 +152,20 @@ export class Kms extends ClientSDK {
|
|
|
104
152
|
));
|
|
105
153
|
}
|
|
106
154
|
|
|
155
|
+
/**
|
|
156
|
+
* Update a comment
|
|
157
|
+
*/
|
|
158
|
+
async patchKmsComment(
|
|
159
|
+
request: operations.PatchKmsCommentRequest,
|
|
160
|
+
options?: RequestOptions,
|
|
161
|
+
): Promise<shared.KmsComment> {
|
|
162
|
+
return unwrapAsync(kmsPatchKmsComment(
|
|
163
|
+
this,
|
|
164
|
+
request,
|
|
165
|
+
options,
|
|
166
|
+
));
|
|
167
|
+
}
|
|
168
|
+
|
|
107
169
|
/**
|
|
108
170
|
* Update a page
|
|
109
171
|
*/
|
|
@@ -132,6 +194,20 @@ export class Kms extends ClientSDK {
|
|
|
132
194
|
));
|
|
133
195
|
}
|
|
134
196
|
|
|
197
|
+
/**
|
|
198
|
+
* Remove a comment
|
|
199
|
+
*/
|
|
200
|
+
async removeKmsComment(
|
|
201
|
+
request: operations.RemoveKmsCommentRequest,
|
|
202
|
+
options?: RequestOptions,
|
|
203
|
+
): Promise<operations.RemoveKmsCommentResponse | undefined> {
|
|
204
|
+
return unwrapAsync(kmsRemoveKmsComment(
|
|
205
|
+
this,
|
|
206
|
+
request,
|
|
207
|
+
options,
|
|
208
|
+
));
|
|
209
|
+
}
|
|
210
|
+
|
|
135
211
|
/**
|
|
136
212
|
* Remove a page
|
|
137
213
|
*/
|
|
@@ -160,6 +236,20 @@ export class Kms extends ClientSDK {
|
|
|
160
236
|
));
|
|
161
237
|
}
|
|
162
238
|
|
|
239
|
+
/**
|
|
240
|
+
* Update a comment
|
|
241
|
+
*/
|
|
242
|
+
async updateKmsComment(
|
|
243
|
+
request: operations.UpdateKmsCommentRequest,
|
|
244
|
+
options?: RequestOptions,
|
|
245
|
+
): Promise<shared.KmsComment> {
|
|
246
|
+
return unwrapAsync(kmsUpdateKmsComment(
|
|
247
|
+
this,
|
|
248
|
+
request,
|
|
249
|
+
options,
|
|
250
|
+
));
|
|
251
|
+
}
|
|
252
|
+
|
|
163
253
|
/**
|
|
164
254
|
* Update a page
|
|
165
255
|
*/
|
|
@@ -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
|
+
import * as shared from "../shared/index.js";
|
|
11
|
+
|
|
12
|
+
export type CreateKmsCommentRequest = {
|
|
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
|
+
|
|
24
|
+
/** @internal */
|
|
25
|
+
export const CreateKmsCommentRequest$inboundSchema: z.ZodType<
|
|
26
|
+
CreateKmsCommentRequest,
|
|
27
|
+
z.ZodTypeDef,
|
|
28
|
+
unknown
|
|
29
|
+
> = z.object({
|
|
30
|
+
KmsComment: shared.KmsComment$inboundSchema.optional(),
|
|
31
|
+
connection_id: z.string(),
|
|
32
|
+
fields: z.array(z.string()).optional(),
|
|
33
|
+
}).transform((v) => {
|
|
34
|
+
return remap$(v, {
|
|
35
|
+
"KmsComment": "kmsComment",
|
|
36
|
+
"connection_id": "connectionId",
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
/** @internal */
|
|
41
|
+
export type CreateKmsCommentRequest$Outbound = {
|
|
42
|
+
KmsComment?: shared.KmsComment$Outbound | undefined;
|
|
43
|
+
connection_id: string;
|
|
44
|
+
fields?: Array<string> | undefined;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
/** @internal */
|
|
48
|
+
export const CreateKmsCommentRequest$outboundSchema: z.ZodType<
|
|
49
|
+
CreateKmsCommentRequest$Outbound,
|
|
50
|
+
z.ZodTypeDef,
|
|
51
|
+
CreateKmsCommentRequest
|
|
52
|
+
> = z.object({
|
|
53
|
+
kmsComment: shared.KmsComment$outboundSchema.optional(),
|
|
54
|
+
connectionId: z.string(),
|
|
55
|
+
fields: z.array(z.string()).optional(),
|
|
56
|
+
}).transform((v) => {
|
|
57
|
+
return remap$(v, {
|
|
58
|
+
kmsComment: "KmsComment",
|
|
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 CreateKmsCommentRequest$ {
|
|
68
|
+
/** @deprecated use `CreateKmsCommentRequest$inboundSchema` instead. */
|
|
69
|
+
export const inboundSchema = CreateKmsCommentRequest$inboundSchema;
|
|
70
|
+
/** @deprecated use `CreateKmsCommentRequest$outboundSchema` instead. */
|
|
71
|
+
export const outboundSchema = CreateKmsCommentRequest$outboundSchema;
|
|
72
|
+
/** @deprecated use `CreateKmsCommentRequest$Outbound` instead. */
|
|
73
|
+
export type Outbound = CreateKmsCommentRequest$Outbound;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function createKmsCommentRequestToJSON(
|
|
77
|
+
createKmsCommentRequest: CreateKmsCommentRequest,
|
|
78
|
+
): string {
|
|
79
|
+
return JSON.stringify(
|
|
80
|
+
CreateKmsCommentRequest$outboundSchema.parse(createKmsCommentRequest),
|
|
81
|
+
);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function createKmsCommentRequestFromJSON(
|
|
85
|
+
jsonString: string,
|
|
86
|
+
): SafeParseResult<CreateKmsCommentRequest, SDKValidationError> {
|
|
87
|
+
return safeParse(
|
|
88
|
+
jsonString,
|
|
89
|
+
(x) => CreateKmsCommentRequest$inboundSchema.parse(JSON.parse(x)),
|
|
90
|
+
`Failed to parse 'CreateKmsCommentRequest' from JSON`,
|
|
91
|
+
);
|
|
92
|
+
}
|
|
@@ -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
|
+
}
|