@unified-api/typescript-sdk 2.1.3 → 2.2.0

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.
Files changed (55) hide show
  1. package/README.md +7 -1
  2. package/funcs/unifiedPatchUnifiedWebhook.d.ts +13 -0
  3. package/funcs/unifiedPatchUnifiedWebhook.d.ts.map +1 -0
  4. package/funcs/unifiedPatchUnifiedWebhook.js +91 -0
  5. package/funcs/unifiedPatchUnifiedWebhook.js.map +1 -0
  6. package/funcs/unifiedUpdateUnifiedWebhook.d.ts +13 -0
  7. package/funcs/unifiedUpdateUnifiedWebhook.d.ts.map +1 -0
  8. package/funcs/unifiedUpdateUnifiedWebhook.js +91 -0
  9. package/funcs/unifiedUpdateUnifiedWebhook.js.map +1 -0
  10. package/funcs/webhookPatchUnifiedWebhook.d.ts +13 -0
  11. package/funcs/webhookPatchUnifiedWebhook.d.ts.map +1 -0
  12. package/funcs/webhookPatchUnifiedWebhook.js +91 -0
  13. package/funcs/webhookPatchUnifiedWebhook.js.map +1 -0
  14. package/funcs/webhookUpdateUnifiedWebhook.d.ts +13 -0
  15. package/funcs/webhookUpdateUnifiedWebhook.d.ts.map +1 -0
  16. package/funcs/webhookUpdateUnifiedWebhook.js +91 -0
  17. package/funcs/webhookUpdateUnifiedWebhook.js.map +1 -0
  18. package/lib/config.d.ts +3 -3
  19. package/lib/config.js +3 -3
  20. package/package.json +1 -1
  21. package/sdk/models/operations/index.d.ts +2 -0
  22. package/sdk/models/operations/index.d.ts.map +1 -1
  23. package/sdk/models/operations/index.js +2 -0
  24. package/sdk/models/operations/index.js.map +1 -1
  25. package/sdk/models/operations/patchunifiedwebhook.d.ts +34 -0
  26. package/sdk/models/operations/patchunifiedwebhook.d.ts.map +1 -0
  27. package/sdk/models/operations/patchunifiedwebhook.js +66 -0
  28. package/sdk/models/operations/patchunifiedwebhook.js.map +1 -0
  29. package/sdk/models/operations/updateunifiedwebhook.d.ts +34 -0
  30. package/sdk/models/operations/updateunifiedwebhook.d.ts.map +1 -0
  31. package/sdk/models/operations/updateunifiedwebhook.js +66 -0
  32. package/sdk/models/operations/updateunifiedwebhook.js.map +1 -0
  33. package/sdk/models/shared/atscandidate.d.ts +2 -0
  34. package/sdk/models/shared/atscandidate.d.ts.map +1 -1
  35. package/sdk/models/shared/atscandidate.js +4 -0
  36. package/sdk/models/shared/atscandidate.js.map +1 -1
  37. package/sdk/unified.d.ts +8 -0
  38. package/sdk/unified.d.ts.map +1 -1
  39. package/sdk/unified.js +14 -0
  40. package/sdk/unified.js.map +1 -1
  41. package/sdk/webhook.d.ts +8 -0
  42. package/sdk/webhook.d.ts.map +1 -1
  43. package/sdk/webhook.js +14 -0
  44. package/sdk/webhook.js.map +1 -1
  45. package/src/funcs/unifiedPatchUnifiedWebhook.ts +122 -0
  46. package/src/funcs/unifiedUpdateUnifiedWebhook.ts +122 -0
  47. package/src/funcs/webhookPatchUnifiedWebhook.ts +122 -0
  48. package/src/funcs/webhookUpdateUnifiedWebhook.ts +122 -0
  49. package/src/lib/config.ts +3 -3
  50. package/src/sdk/models/operations/index.ts +2 -0
  51. package/src/sdk/models/operations/patchunifiedwebhook.ts +69 -0
  52. package/src/sdk/models/operations/updateunifiedwebhook.ts +69 -0
  53. package/src/sdk/models/shared/atscandidate.ts +6 -0
  54. package/src/sdk/unified.ts +22 -0
  55. package/src/sdk/webhook.ts +22 -0
@@ -0,0 +1,122 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { UnifiedToCore } from "../core.js";
6
+ import { encodeJSON as encodeJSON$, encodeSimple as encodeSimple$ } from "../lib/encodings.js";
7
+ import * as m$ from "../lib/matchers.js";
8
+ import * as schemas$ from "../lib/schemas.js";
9
+ import { RequestOptions } from "../lib/sdks.js";
10
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
11
+ import { pathToFunc } from "../lib/url.js";
12
+ import {
13
+ ConnectionError,
14
+ InvalidRequestError,
15
+ RequestAbortedError,
16
+ RequestTimeoutError,
17
+ UnexpectedClientError,
18
+ } from "../sdk/models/errors/httpclienterrors.js";
19
+ import { SDKError } from "../sdk/models/errors/sdkerror.js";
20
+ import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js";
21
+ import * as operations from "../sdk/models/operations/index.js";
22
+ import * as shared from "../sdk/models/shared/index.js";
23
+ import { Result } from "../sdk/types/fp.js";
24
+
25
+ /**
26
+ * Update webhook subscription
27
+ */
28
+ export async function unifiedUpdateUnifiedWebhook(
29
+ client$: UnifiedToCore,
30
+ request: operations.UpdateUnifiedWebhookRequest,
31
+ options?: RequestOptions
32
+ ): Promise<
33
+ Result<
34
+ shared.Webhook,
35
+ | SDKError
36
+ | SDKValidationError
37
+ | UnexpectedClientError
38
+ | InvalidRequestError
39
+ | RequestAbortedError
40
+ | RequestTimeoutError
41
+ | ConnectionError
42
+ >
43
+ > {
44
+ const input$ = request;
45
+
46
+ const parsed$ = schemas$.safeParse(
47
+ input$,
48
+ (value$) => operations.UpdateUnifiedWebhookRequest$outboundSchema.parse(value$),
49
+ "Input validation failed"
50
+ );
51
+ if (!parsed$.ok) {
52
+ return parsed$;
53
+ }
54
+ const payload$ = parsed$.value;
55
+ const body$ = encodeJSON$("body", payload$.Webhook, { explode: true });
56
+
57
+ const pathParams$ = {
58
+ id: encodeSimple$("id", payload$.id, { explode: false, charEncoding: "percent" }),
59
+ };
60
+
61
+ const path$ = pathToFunc("/unified/webhook/{id}")(pathParams$);
62
+
63
+ const headers$ = new Headers({
64
+ "Content-Type": "application/json",
65
+ Accept: "application/json",
66
+ });
67
+
68
+ const security$ = await extractSecurity(client$.options$.security);
69
+ const context = {
70
+ operationID: "updateUnifiedWebhook",
71
+ oAuth2Scopes: [],
72
+ securitySource: client$.options$.security,
73
+ };
74
+ const securitySettings$ = resolveGlobalSecurity(security$);
75
+
76
+ const requestRes = client$.createRequest$(
77
+ context,
78
+ {
79
+ security: securitySettings$,
80
+ method: "PUT",
81
+ path: path$,
82
+ headers: headers$,
83
+ body: body$,
84
+ timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
85
+ },
86
+ options
87
+ );
88
+ if (!requestRes.ok) {
89
+ return requestRes;
90
+ }
91
+ const request$ = requestRes.value;
92
+
93
+ const doResult = await client$.do$(request$, {
94
+ context,
95
+ errorCodes: ["4XX", "5XX"],
96
+ retryConfig: options?.retries || client$.options$.retryConfig,
97
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
98
+ });
99
+ if (!doResult.ok) {
100
+ return doResult;
101
+ }
102
+ const response = doResult.value;
103
+
104
+ const [result$] = await m$.match<
105
+ shared.Webhook,
106
+ | SDKError
107
+ | SDKValidationError
108
+ | UnexpectedClientError
109
+ | InvalidRequestError
110
+ | RequestAbortedError
111
+ | RequestTimeoutError
112
+ | ConnectionError
113
+ >(
114
+ m$.json(200, shared.Webhook$inboundSchema),
115
+ m$.fail(["4XX", "5XX"])
116
+ )(response);
117
+ if (!result$.ok) {
118
+ return result$;
119
+ }
120
+
121
+ return result$;
122
+ }
@@ -0,0 +1,122 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { UnifiedToCore } from "../core.js";
6
+ import { encodeJSON as encodeJSON$, encodeSimple as encodeSimple$ } from "../lib/encodings.js";
7
+ import * as m$ from "../lib/matchers.js";
8
+ import * as schemas$ from "../lib/schemas.js";
9
+ import { RequestOptions } from "../lib/sdks.js";
10
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
11
+ import { pathToFunc } from "../lib/url.js";
12
+ import {
13
+ ConnectionError,
14
+ InvalidRequestError,
15
+ RequestAbortedError,
16
+ RequestTimeoutError,
17
+ UnexpectedClientError,
18
+ } from "../sdk/models/errors/httpclienterrors.js";
19
+ import { SDKError } from "../sdk/models/errors/sdkerror.js";
20
+ import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js";
21
+ import * as operations from "../sdk/models/operations/index.js";
22
+ import * as shared from "../sdk/models/shared/index.js";
23
+ import { Result } from "../sdk/types/fp.js";
24
+
25
+ /**
26
+ * Update webhook subscription
27
+ */
28
+ export async function webhookPatchUnifiedWebhook(
29
+ client$: UnifiedToCore,
30
+ request: operations.PatchUnifiedWebhookRequest,
31
+ options?: RequestOptions
32
+ ): Promise<
33
+ Result<
34
+ shared.Webhook,
35
+ | SDKError
36
+ | SDKValidationError
37
+ | UnexpectedClientError
38
+ | InvalidRequestError
39
+ | RequestAbortedError
40
+ | RequestTimeoutError
41
+ | ConnectionError
42
+ >
43
+ > {
44
+ const input$ = request;
45
+
46
+ const parsed$ = schemas$.safeParse(
47
+ input$,
48
+ (value$) => operations.PatchUnifiedWebhookRequest$outboundSchema.parse(value$),
49
+ "Input validation failed"
50
+ );
51
+ if (!parsed$.ok) {
52
+ return parsed$;
53
+ }
54
+ const payload$ = parsed$.value;
55
+ const body$ = encodeJSON$("body", payload$.Webhook, { explode: true });
56
+
57
+ const pathParams$ = {
58
+ id: encodeSimple$("id", payload$.id, { explode: false, charEncoding: "percent" }),
59
+ };
60
+
61
+ const path$ = pathToFunc("/unified/webhook/{id}")(pathParams$);
62
+
63
+ const headers$ = new Headers({
64
+ "Content-Type": "application/json",
65
+ Accept: "application/json",
66
+ });
67
+
68
+ const security$ = await extractSecurity(client$.options$.security);
69
+ const context = {
70
+ operationID: "patchUnifiedWebhook",
71
+ oAuth2Scopes: [],
72
+ securitySource: client$.options$.security,
73
+ };
74
+ const securitySettings$ = resolveGlobalSecurity(security$);
75
+
76
+ const requestRes = client$.createRequest$(
77
+ context,
78
+ {
79
+ security: securitySettings$,
80
+ method: "PATCH",
81
+ path: path$,
82
+ headers: headers$,
83
+ body: body$,
84
+ timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
85
+ },
86
+ options
87
+ );
88
+ if (!requestRes.ok) {
89
+ return requestRes;
90
+ }
91
+ const request$ = requestRes.value;
92
+
93
+ const doResult = await client$.do$(request$, {
94
+ context,
95
+ errorCodes: ["4XX", "5XX"],
96
+ retryConfig: options?.retries || client$.options$.retryConfig,
97
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
98
+ });
99
+ if (!doResult.ok) {
100
+ return doResult;
101
+ }
102
+ const response = doResult.value;
103
+
104
+ const [result$] = await m$.match<
105
+ shared.Webhook,
106
+ | SDKError
107
+ | SDKValidationError
108
+ | UnexpectedClientError
109
+ | InvalidRequestError
110
+ | RequestAbortedError
111
+ | RequestTimeoutError
112
+ | ConnectionError
113
+ >(
114
+ m$.json(200, shared.Webhook$inboundSchema),
115
+ m$.fail(["4XX", "5XX"])
116
+ )(response);
117
+ if (!result$.ok) {
118
+ return result$;
119
+ }
120
+
121
+ return result$;
122
+ }
@@ -0,0 +1,122 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { UnifiedToCore } from "../core.js";
6
+ import { encodeJSON as encodeJSON$, encodeSimple as encodeSimple$ } from "../lib/encodings.js";
7
+ import * as m$ from "../lib/matchers.js";
8
+ import * as schemas$ from "../lib/schemas.js";
9
+ import { RequestOptions } from "../lib/sdks.js";
10
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
11
+ import { pathToFunc } from "../lib/url.js";
12
+ import {
13
+ ConnectionError,
14
+ InvalidRequestError,
15
+ RequestAbortedError,
16
+ RequestTimeoutError,
17
+ UnexpectedClientError,
18
+ } from "../sdk/models/errors/httpclienterrors.js";
19
+ import { SDKError } from "../sdk/models/errors/sdkerror.js";
20
+ import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js";
21
+ import * as operations from "../sdk/models/operations/index.js";
22
+ import * as shared from "../sdk/models/shared/index.js";
23
+ import { Result } from "../sdk/types/fp.js";
24
+
25
+ /**
26
+ * Update webhook subscription
27
+ */
28
+ export async function webhookUpdateUnifiedWebhook(
29
+ client$: UnifiedToCore,
30
+ request: operations.UpdateUnifiedWebhookRequest,
31
+ options?: RequestOptions
32
+ ): Promise<
33
+ Result<
34
+ shared.Webhook,
35
+ | SDKError
36
+ | SDKValidationError
37
+ | UnexpectedClientError
38
+ | InvalidRequestError
39
+ | RequestAbortedError
40
+ | RequestTimeoutError
41
+ | ConnectionError
42
+ >
43
+ > {
44
+ const input$ = request;
45
+
46
+ const parsed$ = schemas$.safeParse(
47
+ input$,
48
+ (value$) => operations.UpdateUnifiedWebhookRequest$outboundSchema.parse(value$),
49
+ "Input validation failed"
50
+ );
51
+ if (!parsed$.ok) {
52
+ return parsed$;
53
+ }
54
+ const payload$ = parsed$.value;
55
+ const body$ = encodeJSON$("body", payload$.Webhook, { explode: true });
56
+
57
+ const pathParams$ = {
58
+ id: encodeSimple$("id", payload$.id, { explode: false, charEncoding: "percent" }),
59
+ };
60
+
61
+ const path$ = pathToFunc("/unified/webhook/{id}")(pathParams$);
62
+
63
+ const headers$ = new Headers({
64
+ "Content-Type": "application/json",
65
+ Accept: "application/json",
66
+ });
67
+
68
+ const security$ = await extractSecurity(client$.options$.security);
69
+ const context = {
70
+ operationID: "updateUnifiedWebhook",
71
+ oAuth2Scopes: [],
72
+ securitySource: client$.options$.security,
73
+ };
74
+ const securitySettings$ = resolveGlobalSecurity(security$);
75
+
76
+ const requestRes = client$.createRequest$(
77
+ context,
78
+ {
79
+ security: securitySettings$,
80
+ method: "PUT",
81
+ path: path$,
82
+ headers: headers$,
83
+ body: body$,
84
+ timeoutMs: options?.timeoutMs || client$.options$.timeoutMs || -1,
85
+ },
86
+ options
87
+ );
88
+ if (!requestRes.ok) {
89
+ return requestRes;
90
+ }
91
+ const request$ = requestRes.value;
92
+
93
+ const doResult = await client$.do$(request$, {
94
+ context,
95
+ errorCodes: ["4XX", "5XX"],
96
+ retryConfig: options?.retries || client$.options$.retryConfig,
97
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
98
+ });
99
+ if (!doResult.ok) {
100
+ return doResult;
101
+ }
102
+ const response = doResult.value;
103
+
104
+ const [result$] = await m$.match<
105
+ shared.Webhook,
106
+ | SDKError
107
+ | SDKValidationError
108
+ | UnexpectedClientError
109
+ | InvalidRequestError
110
+ | RequestAbortedError
111
+ | RequestTimeoutError
112
+ | ConnectionError
113
+ >(
114
+ m$.json(200, shared.Webhook$inboundSchema),
115
+ m$.fail(["4XX", "5XX"])
116
+ )(response);
117
+ if (!result$.ok) {
118
+ return result$;
119
+ }
120
+
121
+ return result$;
122
+ }
package/src/lib/config.ts CHANGED
@@ -65,7 +65,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
65
65
  export const SDK_METADATA = {
66
66
  language: "typescript",
67
67
  openapiDocVersion: "1.0",
68
- sdkVersion: "2.1.3",
69
- genVersion: "2.399.0",
70
- userAgent: "speakeasy-sdk/typescript 2.1.3 2.399.0 1.0 @unified-api/typescript-sdk",
68
+ sdkVersion: "2.2.0",
69
+ genVersion: "2.402.5",
70
+ userAgent: "speakeasy-sdk/typescript 2.2.0 2.402.5 1.0 @unified-api/typescript-sdk",
71
71
  } as const;
@@ -202,6 +202,7 @@ export * from "./patchticketingnote.js";
202
202
  export * from "./patchticketingticket.js";
203
203
  export * from "./patchuccontact.js";
204
204
  export * from "./patchunifiedconnection.js";
205
+ export * from "./patchunifiedwebhook.js";
205
206
  export * from "./patchunifiedwebhooktrigger.js";
206
207
  export * from "./removeaccountingaccount.js";
207
208
  export * from "./removeaccountingcontact.js";
@@ -290,4 +291,5 @@ export * from "./updateticketingnote.js";
290
291
  export * from "./updateticketingticket.js";
291
292
  export * from "./updateuccontact.js";
292
293
  export * from "./updateunifiedconnection.js";
294
+ export * from "./updateunifiedwebhook.js";
293
295
  export * from "./updateunifiedwebhooktrigger.js";
@@ -0,0 +1,69 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { remap as remap$ } from "../../../lib/primitives.js";
6
+ import * as shared from "../shared/index.js";
7
+ import * as z from "zod";
8
+
9
+ export type PatchUnifiedWebhookRequest = {
10
+ /**
11
+ * A webhook is used to POST new/updated information to your server.
12
+ */
13
+ webhook?: shared.Webhook | undefined;
14
+ /**
15
+ * ID of the Webhook
16
+ */
17
+ id: string;
18
+ };
19
+
20
+ /** @internal */
21
+ export const PatchUnifiedWebhookRequest$inboundSchema: z.ZodType<
22
+ PatchUnifiedWebhookRequest,
23
+ z.ZodTypeDef,
24
+ unknown
25
+ > = z
26
+ .object({
27
+ Webhook: shared.Webhook$inboundSchema.optional(),
28
+ id: z.string(),
29
+ })
30
+ .transform((v) => {
31
+ return remap$(v, {
32
+ Webhook: "webhook",
33
+ });
34
+ });
35
+
36
+ /** @internal */
37
+ export type PatchUnifiedWebhookRequest$Outbound = {
38
+ Webhook?: shared.Webhook$Outbound | undefined;
39
+ id: string;
40
+ };
41
+
42
+ /** @internal */
43
+ export const PatchUnifiedWebhookRequest$outboundSchema: z.ZodType<
44
+ PatchUnifiedWebhookRequest$Outbound,
45
+ z.ZodTypeDef,
46
+ PatchUnifiedWebhookRequest
47
+ > = z
48
+ .object({
49
+ webhook: shared.Webhook$outboundSchema.optional(),
50
+ id: z.string(),
51
+ })
52
+ .transform((v) => {
53
+ return remap$(v, {
54
+ webhook: "Webhook",
55
+ });
56
+ });
57
+
58
+ /**
59
+ * @internal
60
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
61
+ */
62
+ export namespace PatchUnifiedWebhookRequest$ {
63
+ /** @deprecated use `PatchUnifiedWebhookRequest$inboundSchema` instead. */
64
+ export const inboundSchema = PatchUnifiedWebhookRequest$inboundSchema;
65
+ /** @deprecated use `PatchUnifiedWebhookRequest$outboundSchema` instead. */
66
+ export const outboundSchema = PatchUnifiedWebhookRequest$outboundSchema;
67
+ /** @deprecated use `PatchUnifiedWebhookRequest$Outbound` instead. */
68
+ export type Outbound = PatchUnifiedWebhookRequest$Outbound;
69
+ }
@@ -0,0 +1,69 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { remap as remap$ } from "../../../lib/primitives.js";
6
+ import * as shared from "../shared/index.js";
7
+ import * as z from "zod";
8
+
9
+ export type UpdateUnifiedWebhookRequest = {
10
+ /**
11
+ * A webhook is used to POST new/updated information to your server.
12
+ */
13
+ webhook?: shared.Webhook | undefined;
14
+ /**
15
+ * ID of the Webhook
16
+ */
17
+ id: string;
18
+ };
19
+
20
+ /** @internal */
21
+ export const UpdateUnifiedWebhookRequest$inboundSchema: z.ZodType<
22
+ UpdateUnifiedWebhookRequest,
23
+ z.ZodTypeDef,
24
+ unknown
25
+ > = z
26
+ .object({
27
+ Webhook: shared.Webhook$inboundSchema.optional(),
28
+ id: z.string(),
29
+ })
30
+ .transform((v) => {
31
+ return remap$(v, {
32
+ Webhook: "webhook",
33
+ });
34
+ });
35
+
36
+ /** @internal */
37
+ export type UpdateUnifiedWebhookRequest$Outbound = {
38
+ Webhook?: shared.Webhook$Outbound | undefined;
39
+ id: string;
40
+ };
41
+
42
+ /** @internal */
43
+ export const UpdateUnifiedWebhookRequest$outboundSchema: z.ZodType<
44
+ UpdateUnifiedWebhookRequest$Outbound,
45
+ z.ZodTypeDef,
46
+ UpdateUnifiedWebhookRequest
47
+ > = z
48
+ .object({
49
+ webhook: shared.Webhook$outboundSchema.optional(),
50
+ id: z.string(),
51
+ })
52
+ .transform((v) => {
53
+ return remap$(v, {
54
+ webhook: "Webhook",
55
+ });
56
+ });
57
+
58
+ /**
59
+ * @internal
60
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
61
+ */
62
+ export namespace UpdateUnifiedWebhookRequest$ {
63
+ /** @deprecated use `UpdateUnifiedWebhookRequest$inboundSchema` instead. */
64
+ export const inboundSchema = UpdateUnifiedWebhookRequest$inboundSchema;
65
+ /** @deprecated use `UpdateUnifiedWebhookRequest$outboundSchema` instead. */
66
+ export const outboundSchema = UpdateUnifiedWebhookRequest$outboundSchema;
67
+ /** @deprecated use `UpdateUnifiedWebhookRequest$Outbound` instead. */
68
+ export type Outbound = UpdateUnifiedWebhookRequest$Outbound;
69
+ }
@@ -57,6 +57,7 @@ export type AtsCandidate = {
57
57
  title?: string | undefined;
58
58
  updatedAt?: Date | undefined;
59
59
  userId?: string | undefined;
60
+ webUrl?: string | undefined;
60
61
  };
61
62
 
62
63
  /** @internal */
@@ -110,6 +111,7 @@ export const AtsCandidate$inboundSchema: z.ZodType<AtsCandidate, z.ZodTypeDef, u
110
111
  .transform((v) => new Date(v))
111
112
  .optional(),
112
113
  user_id: z.string().optional(),
114
+ web_url: z.string().optional(),
113
115
  })
114
116
  .transform((v) => {
115
117
  return remap$(v, {
@@ -122,6 +124,7 @@ export const AtsCandidate$inboundSchema: z.ZodType<AtsCandidate, z.ZodTypeDef, u
122
124
  link_urls: "linkUrls",
123
125
  updated_at: "updatedAt",
124
126
  user_id: "userId",
127
+ web_url: "webUrl",
125
128
  });
126
129
  });
127
130
 
@@ -146,6 +149,7 @@ export type AtsCandidate$Outbound = {
146
149
  title?: string | undefined;
147
150
  updated_at?: string | undefined;
148
151
  user_id?: string | undefined;
152
+ web_url?: string | undefined;
149
153
  };
150
154
 
151
155
  /** @internal */
@@ -183,6 +187,7 @@ export const AtsCandidate$outboundSchema: z.ZodType<
183
187
  .transform((v) => v.toISOString())
184
188
  .optional(),
185
189
  userId: z.string().optional(),
190
+ webUrl: z.string().optional(),
186
191
  })
187
192
  .transform((v) => {
188
193
  return remap$(v, {
@@ -195,6 +200,7 @@ export const AtsCandidate$outboundSchema: z.ZodType<
195
200
  linkUrls: "link_urls",
196
201
  updatedAt: "updated_at",
197
202
  userId: "user_id",
203
+ webUrl: "web_url",
198
204
  });
199
205
  });
200
206
 
@@ -15,10 +15,12 @@ import { unifiedListUnifiedIntegrations } from "../funcs/unifiedListUnifiedInteg
15
15
  import { unifiedListUnifiedIssues } from "../funcs/unifiedListUnifiedIssues.js";
16
16
  import { unifiedListUnifiedWebhooks } from "../funcs/unifiedListUnifiedWebhooks.js";
17
17
  import { unifiedPatchUnifiedConnection } from "../funcs/unifiedPatchUnifiedConnection.js";
18
+ import { unifiedPatchUnifiedWebhook } from "../funcs/unifiedPatchUnifiedWebhook.js";
18
19
  import { unifiedPatchUnifiedWebhookTrigger } from "../funcs/unifiedPatchUnifiedWebhookTrigger.js";
19
20
  import { unifiedRemoveUnifiedConnection } from "../funcs/unifiedRemoveUnifiedConnection.js";
20
21
  import { unifiedRemoveUnifiedWebhook } from "../funcs/unifiedRemoveUnifiedWebhook.js";
21
22
  import { unifiedUpdateUnifiedConnection } from "../funcs/unifiedUpdateUnifiedConnection.js";
23
+ import { unifiedUpdateUnifiedWebhook } from "../funcs/unifiedUpdateUnifiedWebhook.js";
22
24
  import { unifiedUpdateUnifiedWebhookTrigger } from "../funcs/unifiedUpdateUnifiedWebhookTrigger.js";
23
25
  import { ClientSDK, RequestOptions } from "../lib/sdks.js";
24
26
  import * as operations from "./models/operations/index.js";
@@ -165,6 +167,16 @@ export class Unified extends ClientSDK {
165
167
  return unwrapAsync(unifiedPatchUnifiedConnection(this, request, options));
166
168
  }
167
169
 
170
+ /**
171
+ * Update webhook subscription
172
+ */
173
+ async patchUnifiedWebhook(
174
+ request: operations.PatchUnifiedWebhookRequest,
175
+ options?: RequestOptions
176
+ ): Promise<shared.Webhook> {
177
+ return unwrapAsync(unifiedPatchUnifiedWebhook(this, request, options));
178
+ }
179
+
168
180
  /**
169
181
  * Trigger webhook
170
182
  */
@@ -205,6 +217,16 @@ export class Unified extends ClientSDK {
205
217
  return unwrapAsync(unifiedUpdateUnifiedConnection(this, request, options));
206
218
  }
207
219
 
220
+ /**
221
+ * Update webhook subscription
222
+ */
223
+ async updateUnifiedWebhook(
224
+ request: operations.UpdateUnifiedWebhookRequest,
225
+ options?: RequestOptions
226
+ ): Promise<shared.Webhook> {
227
+ return unwrapAsync(unifiedUpdateUnifiedWebhook(this, request, options));
228
+ }
229
+
208
230
  /**
209
231
  * Trigger webhook
210
232
  */
@@ -5,8 +5,10 @@
5
5
  import { webhookCreateUnifiedWebhook } from "../funcs/webhookCreateUnifiedWebhook.js";
6
6
  import { webhookGetUnifiedWebhook } from "../funcs/webhookGetUnifiedWebhook.js";
7
7
  import { webhookListUnifiedWebhooks } from "../funcs/webhookListUnifiedWebhooks.js";
8
+ import { webhookPatchUnifiedWebhook } from "../funcs/webhookPatchUnifiedWebhook.js";
8
9
  import { webhookPatchUnifiedWebhookTrigger } from "../funcs/webhookPatchUnifiedWebhookTrigger.js";
9
10
  import { webhookRemoveUnifiedWebhook } from "../funcs/webhookRemoveUnifiedWebhook.js";
11
+ import { webhookUpdateUnifiedWebhook } from "../funcs/webhookUpdateUnifiedWebhook.js";
10
12
  import { webhookUpdateUnifiedWebhookTrigger } from "../funcs/webhookUpdateUnifiedWebhookTrigger.js";
11
13
  import { ClientSDK, RequestOptions } from "../lib/sdks.js";
12
14
  import * as operations from "./models/operations/index.js";
@@ -47,6 +49,16 @@ export class Webhook extends ClientSDK {
47
49
  return unwrapAsync(webhookListUnifiedWebhooks(this, request, options));
48
50
  }
49
51
 
52
+ /**
53
+ * Update webhook subscription
54
+ */
55
+ async patchUnifiedWebhook(
56
+ request: operations.PatchUnifiedWebhookRequest,
57
+ options?: RequestOptions
58
+ ): Promise<shared.Webhook> {
59
+ return unwrapAsync(webhookPatchUnifiedWebhook(this, request, options));
60
+ }
61
+
50
62
  /**
51
63
  * Trigger webhook
52
64
  */
@@ -67,6 +79,16 @@ export class Webhook extends ClientSDK {
67
79
  return unwrapAsync(webhookRemoveUnifiedWebhook(this, request, options));
68
80
  }
69
81
 
82
+ /**
83
+ * Update webhook subscription
84
+ */
85
+ async updateUnifiedWebhook(
86
+ request: operations.UpdateUnifiedWebhookRequest,
87
+ options?: RequestOptions
88
+ ): Promise<shared.Webhook> {
89
+ return unwrapAsync(webhookUpdateUnifiedWebhook(this, request, options));
90
+ }
91
+
70
92
  /**
71
93
  * Trigger webhook
72
94
  */