@unified-api/typescript-sdk 2.73.2 → 2.73.4

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 (124) hide show
  1. package/README.md +8 -0
  2. package/bin/mcp-server.js +3473 -2828
  3. package/bin/mcp-server.js.map +26 -13
  4. package/docs/sdks/ats/README.md +332 -0
  5. package/docs/sdks/company/README.md +332 -0
  6. package/funcs/atsCreateAtsCompany.d.ts +15 -0
  7. package/funcs/atsCreateAtsCompany.d.ts.map +1 -0
  8. package/funcs/atsCreateAtsCompany.js +112 -0
  9. package/funcs/atsCreateAtsCompany.js.map +1 -0
  10. package/funcs/atsPatchAtsCompany.d.ts +15 -0
  11. package/funcs/atsPatchAtsCompany.d.ts.map +1 -0
  12. package/funcs/atsPatchAtsCompany.js +116 -0
  13. package/funcs/atsPatchAtsCompany.js.map +1 -0
  14. package/funcs/atsRemoveAtsCompany.d.ts +14 -0
  15. package/funcs/atsRemoveAtsCompany.d.ts.map +1 -0
  16. package/funcs/atsRemoveAtsCompany.js +112 -0
  17. package/funcs/atsRemoveAtsCompany.js.map +1 -0
  18. package/funcs/atsUpdateAtsCompany.d.ts +15 -0
  19. package/funcs/atsUpdateAtsCompany.d.ts.map +1 -0
  20. package/funcs/atsUpdateAtsCompany.js +116 -0
  21. package/funcs/atsUpdateAtsCompany.js.map +1 -0
  22. package/jsr.json +1 -1
  23. package/lib/config.d.ts +3 -3
  24. package/lib/config.js +3 -3
  25. package/mcp-server/cli/start/command.d.ts.map +1 -1
  26. package/mcp-server/cli/start/command.js +0 -12
  27. package/mcp-server/cli/start/command.js.map +1 -1
  28. package/mcp-server/cli/start/impl.d.ts +0 -2
  29. package/mcp-server/cli/start/impl.d.ts.map +1 -1
  30. package/mcp-server/cli/start/impl.js +0 -2
  31. package/mcp-server/cli/start/impl.js.map +1 -1
  32. package/mcp-server/mcp-server.js +1 -1
  33. package/mcp-server/server.d.ts.map +1 -1
  34. package/mcp-server/server.js +9 -1
  35. package/mcp-server/server.js.map +1 -1
  36. package/mcp-server/tools/atsCreateAtsCompany.d.ts +8 -0
  37. package/mcp-server/tools/atsCreateAtsCompany.d.ts.map +1 -0
  38. package/mcp-server/tools/atsCreateAtsCompany.js +52 -0
  39. package/mcp-server/tools/atsCreateAtsCompany.js.map +1 -0
  40. package/mcp-server/tools/atsPatchAtsCompany.d.ts +8 -0
  41. package/mcp-server/tools/atsPatchAtsCompany.d.ts.map +1 -0
  42. package/mcp-server/tools/atsPatchAtsCompany.js +52 -0
  43. package/mcp-server/tools/atsPatchAtsCompany.js.map +1 -0
  44. package/mcp-server/tools/atsRemoveAtsCompany.d.ts +8 -0
  45. package/mcp-server/tools/atsRemoveAtsCompany.d.ts.map +1 -0
  46. package/mcp-server/tools/atsRemoveAtsCompany.js +51 -0
  47. package/mcp-server/tools/atsRemoveAtsCompany.js.map +1 -0
  48. package/mcp-server/tools/atsUpdateAtsCompany.d.ts +8 -0
  49. package/mcp-server/tools/atsUpdateAtsCompany.d.ts.map +1 -0
  50. package/mcp-server/tools/atsUpdateAtsCompany.js +52 -0
  51. package/mcp-server/tools/atsUpdateAtsCompany.js.map +1 -0
  52. package/package.json +1 -1
  53. package/sdk/ats.d.ts +16 -0
  54. package/sdk/ats.d.ts.map +1 -1
  55. package/sdk/ats.js +28 -0
  56. package/sdk/ats.js.map +1 -1
  57. package/sdk/company.d.ts +16 -0
  58. package/sdk/company.d.ts.map +1 -1
  59. package/sdk/company.js +28 -0
  60. package/sdk/company.js.map +1 -1
  61. package/sdk/models/errors/sdkerror.d.ts.map +1 -1
  62. package/sdk/models/errors/sdkerror.js +8 -2
  63. package/sdk/models/errors/sdkerror.js.map +1 -1
  64. package/sdk/models/operations/createatscompany.d.ts +45 -0
  65. package/sdk/models/operations/createatscompany.d.ts.map +1 -0
  66. package/sdk/models/operations/createatscompany.js +77 -0
  67. package/sdk/models/operations/createatscompany.js.map +1 -0
  68. package/sdk/models/operations/index.d.ts +4 -0
  69. package/sdk/models/operations/index.d.ts.map +1 -1
  70. package/sdk/models/operations/index.js +4 -0
  71. package/sdk/models/operations/index.js.map +1 -1
  72. package/sdk/models/operations/patchatscompany.d.ts +50 -0
  73. package/sdk/models/operations/patchatscompany.d.ts.map +1 -0
  74. package/sdk/models/operations/patchatscompany.js +79 -0
  75. package/sdk/models/operations/patchatscompany.js.map +1 -0
  76. package/sdk/models/operations/removeatscompany.d.ts +66 -0
  77. package/sdk/models/operations/removeatscompany.d.ts.map +1 -0
  78. package/sdk/models/operations/removeatscompany.js +105 -0
  79. package/sdk/models/operations/removeatscompany.js.map +1 -0
  80. package/sdk/models/operations/updateatscompany.d.ts +50 -0
  81. package/sdk/models/operations/updateatscompany.d.ts.map +1 -0
  82. package/sdk/models/operations/updateatscompany.js +79 -0
  83. package/sdk/models/operations/updateatscompany.js.map +1 -0
  84. package/sdk/models/shared/index.d.ts +2 -0
  85. package/sdk/models/shared/index.d.ts.map +1 -1
  86. package/sdk/models/shared/index.js +2 -0
  87. package/sdk/models/shared/index.js.map +1 -1
  88. package/sdk/models/shared/messagingmessage.d.ts +3 -0
  89. package/sdk/models/shared/messagingmessage.d.ts.map +1 -1
  90. package/sdk/models/shared/messagingmessage.js +3 -0
  91. package/sdk/models/shared/messagingmessage.js.map +1 -1
  92. package/sdk/models/shared/messagingreaction.d.ts +32 -0
  93. package/sdk/models/shared/messagingreaction.d.ts.map +1 -0
  94. package/sdk/models/shared/messagingreaction.js +62 -0
  95. package/sdk/models/shared/messagingreaction.js.map +1 -0
  96. package/sdk/models/shared/propertymessagingreactionmember.d.ts +33 -0
  97. package/sdk/models/shared/propertymessagingreactionmember.d.ts.map +1 -0
  98. package/sdk/models/shared/propertymessagingreactionmember.js +72 -0
  99. package/sdk/models/shared/propertymessagingreactionmember.js.map +1 -0
  100. package/src/funcs/atsCreateAtsCompany.ts +170 -0
  101. package/src/funcs/atsPatchAtsCompany.ts +174 -0
  102. package/src/funcs/atsRemoveAtsCompany.ts +175 -0
  103. package/src/funcs/atsUpdateAtsCompany.ts +174 -0
  104. package/src/lib/config.ts +3 -3
  105. package/src/mcp-server/cli/start/command.ts +0 -13
  106. package/src/mcp-server/cli/start/impl.ts +0 -4
  107. package/src/mcp-server/mcp-server.ts +1 -1
  108. package/src/mcp-server/server.ts +9 -1
  109. package/src/mcp-server/tools/atsCreateAtsCompany.ts +35 -0
  110. package/src/mcp-server/tools/atsPatchAtsCompany.ts +35 -0
  111. package/src/mcp-server/tools/atsRemoveAtsCompany.ts +33 -0
  112. package/src/mcp-server/tools/atsUpdateAtsCompany.ts +35 -0
  113. package/src/sdk/ats.ts +60 -0
  114. package/src/sdk/company.ts +60 -0
  115. package/src/sdk/models/errors/sdkerror.ts +8 -2
  116. package/src/sdk/models/operations/createatscompany.ts +99 -0
  117. package/src/sdk/models/operations/index.ts +4 -0
  118. package/src/sdk/models/operations/patchatscompany.ts +106 -0
  119. package/src/sdk/models/operations/removeatscompany.ts +151 -0
  120. package/src/sdk/models/operations/updateatscompany.ts +106 -0
  121. package/src/sdk/models/shared/index.ts +2 -0
  122. package/src/sdk/models/shared/messagingmessage.ts +10 -0
  123. package/src/sdk/models/shared/messagingreaction.ts +76 -0
  124. package/src/sdk/models/shared/propertymessagingreactionmember.ts +85 -0
@@ -25,8 +25,14 @@ export class SDKError extends UnifiedToError {
25
25
  }`;
26
26
  }
27
27
  const body = httpMeta.body || `""`;
28
- message += body.length > 100 ? "\n" : " ";
29
- message += `Body ${body}`;
28
+ message += body.length > 100 ? "\n" : ". ";
29
+ let bodyDisplay = body;
30
+ if (body.length > 10000) {
31
+ const truncated = body.substring(0, 10000);
32
+ const remaining = body.length - 10000;
33
+ bodyDisplay = `${truncated}...and ${remaining} more chars`;
34
+ }
35
+ message += `Body: ${bodyDisplay}`;
30
36
  message = message.trim();
31
37
  super(message, httpMeta);
32
38
  this.name = "SDKError";
@@ -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 CreateAtsCompanyRequest = {
13
+ atsCompany: shared.AtsCompany;
14
+ /**
15
+ * ID of the connection
16
+ */
17
+ connectionId: string;
18
+ /**
19
+ * Comma-delimited fields to return
20
+ */
21
+ fields?: Array<string> | undefined;
22
+ /**
23
+ * Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar
24
+ */
25
+ raw?: string | undefined;
26
+ };
27
+
28
+ /** @internal */
29
+ export const CreateAtsCompanyRequest$inboundSchema: z.ZodType<
30
+ CreateAtsCompanyRequest,
31
+ z.ZodTypeDef,
32
+ unknown
33
+ > = z.object({
34
+ AtsCompany: shared.AtsCompany$inboundSchema,
35
+ connection_id: z.string(),
36
+ fields: z.array(z.string()).optional(),
37
+ raw: z.string().optional(),
38
+ }).transform((v) => {
39
+ return remap$(v, {
40
+ "AtsCompany": "atsCompany",
41
+ "connection_id": "connectionId",
42
+ });
43
+ });
44
+
45
+ /** @internal */
46
+ export type CreateAtsCompanyRequest$Outbound = {
47
+ AtsCompany: shared.AtsCompany$Outbound;
48
+ connection_id: string;
49
+ fields?: Array<string> | undefined;
50
+ raw?: string | undefined;
51
+ };
52
+
53
+ /** @internal */
54
+ export const CreateAtsCompanyRequest$outboundSchema: z.ZodType<
55
+ CreateAtsCompanyRequest$Outbound,
56
+ z.ZodTypeDef,
57
+ CreateAtsCompanyRequest
58
+ > = z.object({
59
+ atsCompany: shared.AtsCompany$outboundSchema,
60
+ connectionId: z.string(),
61
+ fields: z.array(z.string()).optional(),
62
+ raw: z.string().optional(),
63
+ }).transform((v) => {
64
+ return remap$(v, {
65
+ atsCompany: "AtsCompany",
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 CreateAtsCompanyRequest$ {
75
+ /** @deprecated use `CreateAtsCompanyRequest$inboundSchema` instead. */
76
+ export const inboundSchema = CreateAtsCompanyRequest$inboundSchema;
77
+ /** @deprecated use `CreateAtsCompanyRequest$outboundSchema` instead. */
78
+ export const outboundSchema = CreateAtsCompanyRequest$outboundSchema;
79
+ /** @deprecated use `CreateAtsCompanyRequest$Outbound` instead. */
80
+ export type Outbound = CreateAtsCompanyRequest$Outbound;
81
+ }
82
+
83
+ export function createAtsCompanyRequestToJSON(
84
+ createAtsCompanyRequest: CreateAtsCompanyRequest,
85
+ ): string {
86
+ return JSON.stringify(
87
+ CreateAtsCompanyRequest$outboundSchema.parse(createAtsCompanyRequest),
88
+ );
89
+ }
90
+
91
+ export function createAtsCompanyRequestFromJSON(
92
+ jsonString: string,
93
+ ): SafeParseResult<CreateAtsCompanyRequest, SDKValidationError> {
94
+ return safeParse(
95
+ jsonString,
96
+ (x) => CreateAtsCompanyRequest$inboundSchema.parse(JSON.parse(x)),
97
+ `Failed to parse 'CreateAtsCompanyRequest' from JSON`,
98
+ );
99
+ }
@@ -12,6 +12,7 @@ export * from "./createaccountingtransaction.js";
12
12
  export * from "./createatsactivity.js";
13
13
  export * from "./createatsapplication.js";
14
14
  export * from "./createatscandidate.js";
15
+ export * from "./createatscompany.js";
15
16
  export * from "./createatsdocument.js";
16
17
  export * from "./createatsinterview.js";
17
18
  export * from "./createatsjob.js";
@@ -247,6 +248,7 @@ export * from "./patchaccountingtransaction.js";
247
248
  export * from "./patchatsactivity.js";
248
249
  export * from "./patchatsapplication.js";
249
250
  export * from "./patchatscandidate.js";
251
+ export * from "./patchatscompany.js";
250
252
  export * from "./patchatsdocument.js";
251
253
  export * from "./patchatsinterview.js";
252
254
  export * from "./patchatsjob.js";
@@ -317,6 +319,7 @@ export * from "./removeaccountingtransaction.js";
317
319
  export * from "./removeatsactivity.js";
318
320
  export * from "./removeatsapplication.js";
319
321
  export * from "./removeatscandidate.js";
322
+ export * from "./removeatscompany.js";
320
323
  export * from "./removeatsdocument.js";
321
324
  export * from "./removeatsinterview.js";
322
325
  export * from "./removeatsjob.js";
@@ -385,6 +388,7 @@ export * from "./updateaccountingtransaction.js";
385
388
  export * from "./updateatsactivity.js";
386
389
  export * from "./updateatsapplication.js";
387
390
  export * from "./updateatscandidate.js";
391
+ export * from "./updateatscompany.js";
388
392
  export * from "./updateatsdocument.js";
389
393
  export * from "./updateatsinterview.js";
390
394
  export * from "./updateatsjob.js";
@@ -0,0 +1,106 @@
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 PatchAtsCompanyRequest = {
13
+ atsCompany: shared.AtsCompany;
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 Company
24
+ */
25
+ id: string;
26
+ /**
27
+ * Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar
28
+ */
29
+ raw?: string | undefined;
30
+ };
31
+
32
+ /** @internal */
33
+ export const PatchAtsCompanyRequest$inboundSchema: z.ZodType<
34
+ PatchAtsCompanyRequest,
35
+ z.ZodTypeDef,
36
+ unknown
37
+ > = z.object({
38
+ AtsCompany: shared.AtsCompany$inboundSchema,
39
+ connection_id: z.string(),
40
+ fields: z.array(z.string()).optional(),
41
+ id: z.string(),
42
+ raw: z.string().optional(),
43
+ }).transform((v) => {
44
+ return remap$(v, {
45
+ "AtsCompany": "atsCompany",
46
+ "connection_id": "connectionId",
47
+ });
48
+ });
49
+
50
+ /** @internal */
51
+ export type PatchAtsCompanyRequest$Outbound = {
52
+ AtsCompany: shared.AtsCompany$Outbound;
53
+ connection_id: string;
54
+ fields?: Array<string> | undefined;
55
+ id: string;
56
+ raw?: string | undefined;
57
+ };
58
+
59
+ /** @internal */
60
+ export const PatchAtsCompanyRequest$outboundSchema: z.ZodType<
61
+ PatchAtsCompanyRequest$Outbound,
62
+ z.ZodTypeDef,
63
+ PatchAtsCompanyRequest
64
+ > = z.object({
65
+ atsCompany: shared.AtsCompany$outboundSchema,
66
+ connectionId: z.string(),
67
+ fields: z.array(z.string()).optional(),
68
+ id: z.string(),
69
+ raw: z.string().optional(),
70
+ }).transform((v) => {
71
+ return remap$(v, {
72
+ atsCompany: "AtsCompany",
73
+ connectionId: "connection_id",
74
+ });
75
+ });
76
+
77
+ /**
78
+ * @internal
79
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
80
+ */
81
+ export namespace PatchAtsCompanyRequest$ {
82
+ /** @deprecated use `PatchAtsCompanyRequest$inboundSchema` instead. */
83
+ export const inboundSchema = PatchAtsCompanyRequest$inboundSchema;
84
+ /** @deprecated use `PatchAtsCompanyRequest$outboundSchema` instead. */
85
+ export const outboundSchema = PatchAtsCompanyRequest$outboundSchema;
86
+ /** @deprecated use `PatchAtsCompanyRequest$Outbound` instead. */
87
+ export type Outbound = PatchAtsCompanyRequest$Outbound;
88
+ }
89
+
90
+ export function patchAtsCompanyRequestToJSON(
91
+ patchAtsCompanyRequest: PatchAtsCompanyRequest,
92
+ ): string {
93
+ return JSON.stringify(
94
+ PatchAtsCompanyRequest$outboundSchema.parse(patchAtsCompanyRequest),
95
+ );
96
+ }
97
+
98
+ export function patchAtsCompanyRequestFromJSON(
99
+ jsonString: string,
100
+ ): SafeParseResult<PatchAtsCompanyRequest, SDKValidationError> {
101
+ return safeParse(
102
+ jsonString,
103
+ (x) => PatchAtsCompanyRequest$inboundSchema.parse(JSON.parse(x)),
104
+ `Failed to parse 'PatchAtsCompanyRequest' from JSON`,
105
+ );
106
+ }
@@ -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 RemoveAtsCompanyRequest = {
12
+ /**
13
+ * ID of the connection
14
+ */
15
+ connectionId: string;
16
+ /**
17
+ * ID of the Company
18
+ */
19
+ id: string;
20
+ };
21
+
22
+ export type RemoveAtsCompanyResponse = {
23
+ headers: { [k: string]: Array<string> };
24
+ };
25
+
26
+ /** @internal */
27
+ export const RemoveAtsCompanyRequest$inboundSchema: z.ZodType<
28
+ RemoveAtsCompanyRequest,
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 RemoveAtsCompanyRequest$Outbound = {
42
+ connection_id: string;
43
+ id: string;
44
+ };
45
+
46
+ /** @internal */
47
+ export const RemoveAtsCompanyRequest$outboundSchema: z.ZodType<
48
+ RemoveAtsCompanyRequest$Outbound,
49
+ z.ZodTypeDef,
50
+ RemoveAtsCompanyRequest
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 RemoveAtsCompanyRequest$ {
65
+ /** @deprecated use `RemoveAtsCompanyRequest$inboundSchema` instead. */
66
+ export const inboundSchema = RemoveAtsCompanyRequest$inboundSchema;
67
+ /** @deprecated use `RemoveAtsCompanyRequest$outboundSchema` instead. */
68
+ export const outboundSchema = RemoveAtsCompanyRequest$outboundSchema;
69
+ /** @deprecated use `RemoveAtsCompanyRequest$Outbound` instead. */
70
+ export type Outbound = RemoveAtsCompanyRequest$Outbound;
71
+ }
72
+
73
+ export function removeAtsCompanyRequestToJSON(
74
+ removeAtsCompanyRequest: RemoveAtsCompanyRequest,
75
+ ): string {
76
+ return JSON.stringify(
77
+ RemoveAtsCompanyRequest$outboundSchema.parse(removeAtsCompanyRequest),
78
+ );
79
+ }
80
+
81
+ export function removeAtsCompanyRequestFromJSON(
82
+ jsonString: string,
83
+ ): SafeParseResult<RemoveAtsCompanyRequest, SDKValidationError> {
84
+ return safeParse(
85
+ jsonString,
86
+ (x) => RemoveAtsCompanyRequest$inboundSchema.parse(JSON.parse(x)),
87
+ `Failed to parse 'RemoveAtsCompanyRequest' from JSON`,
88
+ );
89
+ }
90
+
91
+ /** @internal */
92
+ export const RemoveAtsCompanyResponse$inboundSchema: z.ZodType<
93
+ RemoveAtsCompanyResponse,
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 RemoveAtsCompanyResponse$Outbound = {
106
+ Headers: { [k: string]: Array<string> };
107
+ };
108
+
109
+ /** @internal */
110
+ export const RemoveAtsCompanyResponse$outboundSchema: z.ZodType<
111
+ RemoveAtsCompanyResponse$Outbound,
112
+ z.ZodTypeDef,
113
+ RemoveAtsCompanyResponse
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 RemoveAtsCompanyResponse$ {
127
+ /** @deprecated use `RemoveAtsCompanyResponse$inboundSchema` instead. */
128
+ export const inboundSchema = RemoveAtsCompanyResponse$inboundSchema;
129
+ /** @deprecated use `RemoveAtsCompanyResponse$outboundSchema` instead. */
130
+ export const outboundSchema = RemoveAtsCompanyResponse$outboundSchema;
131
+ /** @deprecated use `RemoveAtsCompanyResponse$Outbound` instead. */
132
+ export type Outbound = RemoveAtsCompanyResponse$Outbound;
133
+ }
134
+
135
+ export function removeAtsCompanyResponseToJSON(
136
+ removeAtsCompanyResponse: RemoveAtsCompanyResponse,
137
+ ): string {
138
+ return JSON.stringify(
139
+ RemoveAtsCompanyResponse$outboundSchema.parse(removeAtsCompanyResponse),
140
+ );
141
+ }
142
+
143
+ export function removeAtsCompanyResponseFromJSON(
144
+ jsonString: string,
145
+ ): SafeParseResult<RemoveAtsCompanyResponse, SDKValidationError> {
146
+ return safeParse(
147
+ jsonString,
148
+ (x) => RemoveAtsCompanyResponse$inboundSchema.parse(JSON.parse(x)),
149
+ `Failed to parse 'RemoveAtsCompanyResponse' from JSON`,
150
+ );
151
+ }
@@ -0,0 +1,106 @@
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 UpdateAtsCompanyRequest = {
13
+ atsCompany: shared.AtsCompany;
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 Company
24
+ */
25
+ id: string;
26
+ /**
27
+ * Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar
28
+ */
29
+ raw?: string | undefined;
30
+ };
31
+
32
+ /** @internal */
33
+ export const UpdateAtsCompanyRequest$inboundSchema: z.ZodType<
34
+ UpdateAtsCompanyRequest,
35
+ z.ZodTypeDef,
36
+ unknown
37
+ > = z.object({
38
+ AtsCompany: shared.AtsCompany$inboundSchema,
39
+ connection_id: z.string(),
40
+ fields: z.array(z.string()).optional(),
41
+ id: z.string(),
42
+ raw: z.string().optional(),
43
+ }).transform((v) => {
44
+ return remap$(v, {
45
+ "AtsCompany": "atsCompany",
46
+ "connection_id": "connectionId",
47
+ });
48
+ });
49
+
50
+ /** @internal */
51
+ export type UpdateAtsCompanyRequest$Outbound = {
52
+ AtsCompany: shared.AtsCompany$Outbound;
53
+ connection_id: string;
54
+ fields?: Array<string> | undefined;
55
+ id: string;
56
+ raw?: string | undefined;
57
+ };
58
+
59
+ /** @internal */
60
+ export const UpdateAtsCompanyRequest$outboundSchema: z.ZodType<
61
+ UpdateAtsCompanyRequest$Outbound,
62
+ z.ZodTypeDef,
63
+ UpdateAtsCompanyRequest
64
+ > = z.object({
65
+ atsCompany: shared.AtsCompany$outboundSchema,
66
+ connectionId: z.string(),
67
+ fields: z.array(z.string()).optional(),
68
+ id: z.string(),
69
+ raw: z.string().optional(),
70
+ }).transform((v) => {
71
+ return remap$(v, {
72
+ atsCompany: "AtsCompany",
73
+ connectionId: "connection_id",
74
+ });
75
+ });
76
+
77
+ /**
78
+ * @internal
79
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
80
+ */
81
+ export namespace UpdateAtsCompanyRequest$ {
82
+ /** @deprecated use `UpdateAtsCompanyRequest$inboundSchema` instead. */
83
+ export const inboundSchema = UpdateAtsCompanyRequest$inboundSchema;
84
+ /** @deprecated use `UpdateAtsCompanyRequest$outboundSchema` instead. */
85
+ export const outboundSchema = UpdateAtsCompanyRequest$outboundSchema;
86
+ /** @deprecated use `UpdateAtsCompanyRequest$Outbound` instead. */
87
+ export type Outbound = UpdateAtsCompanyRequest$Outbound;
88
+ }
89
+
90
+ export function updateAtsCompanyRequestToJSON(
91
+ updateAtsCompanyRequest: UpdateAtsCompanyRequest,
92
+ ): string {
93
+ return JSON.stringify(
94
+ UpdateAtsCompanyRequest$outboundSchema.parse(updateAtsCompanyRequest),
95
+ );
96
+ }
97
+
98
+ export function updateAtsCompanyRequestFromJSON(
99
+ jsonString: string,
100
+ ): SafeParseResult<UpdateAtsCompanyRequest, SDKValidationError> {
101
+ return safeParse(
102
+ jsonString,
103
+ (x) => UpdateAtsCompanyRequest$inboundSchema.parse(JSON.parse(x)),
104
+ `Failed to parse 'UpdateAtsCompanyRequest' from JSON`,
105
+ );
106
+ }
@@ -124,6 +124,7 @@ export * from "./messagingattachment.js";
124
124
  export * from "./messagingchannel.js";
125
125
  export * from "./messagingmember.js";
126
126
  export * from "./messagingmessage.js";
127
+ export * from "./messagingreaction.js";
127
128
  export * from "./metadatametadata.js";
128
129
  export * from "./paymentlineitem.js";
129
130
  export * from "./paymentlink.js";
@@ -171,6 +172,7 @@ export * from "./propertyhrislocationaddress.js";
171
172
  export * from "./propertyintegrationcategories.js";
172
173
  export * from "./propertylmsstudentaddress.js";
173
174
  export * from "./propertymessagingmessageauthormember.js";
175
+ export * from "./propertymessagingreactionmember.js";
174
176
  export * from "./propertyscimgroupmeta.js";
175
177
  export * from "./propertyscimgroupschemas.js";
176
178
  export * from "./propertyscimusermeta.js";
@@ -19,6 +19,12 @@ import {
19
19
  MessagingMember$Outbound,
20
20
  MessagingMember$outboundSchema,
21
21
  } from "./messagingmember.js";
22
+ import {
23
+ MessagingReaction,
24
+ MessagingReaction$inboundSchema,
25
+ MessagingReaction$Outbound,
26
+ MessagingReaction$outboundSchema,
27
+ } from "./messagingreaction.js";
22
28
  import {
23
29
  PropertyMessagingMessageAuthorMember,
24
30
  PropertyMessagingMessageAuthorMember$inboundSchema,
@@ -45,6 +51,7 @@ export type MessagingMessage = {
45
51
  messageMarkdown?: string | undefined;
46
52
  parentMessageId?: string | undefined;
47
53
  raw?: { [k: string]: any } | undefined;
54
+ reactions?: Array<MessagingReaction> | undefined;
48
55
  reference?: string | undefined;
49
56
  rootMessageId?: string | undefined;
50
57
  subject?: string | undefined;
@@ -74,6 +81,7 @@ export const MessagingMessage$inboundSchema: z.ZodType<
74
81
  message_markdown: z.string().optional(),
75
82
  parent_message_id: z.string().optional(),
76
83
  raw: z.record(z.any()).optional(),
84
+ reactions: z.array(MessagingReaction$inboundSchema).optional(),
77
85
  reference: z.string().optional(),
78
86
  root_message_id: z.string().optional(),
79
87
  subject: z.string().optional(),
@@ -116,6 +124,7 @@ export type MessagingMessage$Outbound = {
116
124
  message_markdown?: string | undefined;
117
125
  parent_message_id?: string | undefined;
118
126
  raw?: { [k: string]: any } | undefined;
127
+ reactions?: Array<MessagingReaction$Outbound> | undefined;
119
128
  reference?: string | undefined;
120
129
  root_message_id?: string | undefined;
121
130
  subject?: string | undefined;
@@ -144,6 +153,7 @@ export const MessagingMessage$outboundSchema: z.ZodType<
144
153
  messageMarkdown: z.string().optional(),
145
154
  parentMessageId: z.string().optional(),
146
155
  raw: z.record(z.any()).optional(),
156
+ reactions: z.array(MessagingReaction$outboundSchema).optional(),
147
157
  reference: z.string().optional(),
148
158
  rootMessageId: z.string().optional(),
149
159
  subject: z.string().optional(),
@@ -0,0 +1,76 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { safeParse } from "../../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+ import {
10
+ PropertyMessagingReactionMember,
11
+ PropertyMessagingReactionMember$inboundSchema,
12
+ PropertyMessagingReactionMember$Outbound,
13
+ PropertyMessagingReactionMember$outboundSchema,
14
+ } from "./propertymessagingreactionmember.js";
15
+
16
+ export type MessagingReaction = {
17
+ member: PropertyMessagingReactionMember;
18
+ reaction: string;
19
+ };
20
+
21
+ /** @internal */
22
+ export const MessagingReaction$inboundSchema: z.ZodType<
23
+ MessagingReaction,
24
+ z.ZodTypeDef,
25
+ unknown
26
+ > = z.object({
27
+ member: PropertyMessagingReactionMember$inboundSchema,
28
+ reaction: z.string(),
29
+ });
30
+
31
+ /** @internal */
32
+ export type MessagingReaction$Outbound = {
33
+ member: PropertyMessagingReactionMember$Outbound;
34
+ reaction: string;
35
+ };
36
+
37
+ /** @internal */
38
+ export const MessagingReaction$outboundSchema: z.ZodType<
39
+ MessagingReaction$Outbound,
40
+ z.ZodTypeDef,
41
+ MessagingReaction
42
+ > = z.object({
43
+ member: PropertyMessagingReactionMember$outboundSchema,
44
+ reaction: z.string(),
45
+ });
46
+
47
+ /**
48
+ * @internal
49
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
50
+ */
51
+ export namespace MessagingReaction$ {
52
+ /** @deprecated use `MessagingReaction$inboundSchema` instead. */
53
+ export const inboundSchema = MessagingReaction$inboundSchema;
54
+ /** @deprecated use `MessagingReaction$outboundSchema` instead. */
55
+ export const outboundSchema = MessagingReaction$outboundSchema;
56
+ /** @deprecated use `MessagingReaction$Outbound` instead. */
57
+ export type Outbound = MessagingReaction$Outbound;
58
+ }
59
+
60
+ export function messagingReactionToJSON(
61
+ messagingReaction: MessagingReaction,
62
+ ): string {
63
+ return JSON.stringify(
64
+ MessagingReaction$outboundSchema.parse(messagingReaction),
65
+ );
66
+ }
67
+
68
+ export function messagingReactionFromJSON(
69
+ jsonString: string,
70
+ ): SafeParseResult<MessagingReaction, SDKValidationError> {
71
+ return safeParse(
72
+ jsonString,
73
+ (x) => MessagingReaction$inboundSchema.parse(JSON.parse(x)),
74
+ `Failed to parse 'MessagingReaction' from JSON`,
75
+ );
76
+ }