@unified-api/typescript-sdk 2.9.27 → 2.10.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 (80) hide show
  1. package/jsr.json +1 -1
  2. package/lib/config.d.ts +3 -3
  3. package/lib/config.js +3 -3
  4. package/package.json +1 -1
  5. package/sdk/models/shared/atsactivity.d.ts +23 -6
  6. package/sdk/models/shared/atsactivity.d.ts.map +1 -1
  7. package/sdk/models/shared/atsactivity.js +28 -3
  8. package/sdk/models/shared/atsactivity.js.map +1 -1
  9. package/sdk/models/shared/atsapplication.d.ts +23 -6
  10. package/sdk/models/shared/atsapplication.d.ts.map +1 -1
  11. package/sdk/models/shared/atsapplication.js +26 -3
  12. package/sdk/models/shared/atsapplication.js.map +1 -1
  13. package/sdk/models/shared/atscandidate.d.ts +23 -6
  14. package/sdk/models/shared/atscandidate.d.ts.map +1 -1
  15. package/sdk/models/shared/atscandidate.js +26 -3
  16. package/sdk/models/shared/atscandidate.js.map +1 -1
  17. package/sdk/models/shared/atscompany.d.ts +23 -6
  18. package/sdk/models/shared/atscompany.d.ts.map +1 -1
  19. package/sdk/models/shared/atscompany.js +26 -3
  20. package/sdk/models/shared/atscompany.js.map +1 -1
  21. package/sdk/models/shared/atsdocument.d.ts +23 -6
  22. package/sdk/models/shared/atsdocument.d.ts.map +1 -1
  23. package/sdk/models/shared/atsdocument.js +26 -3
  24. package/sdk/models/shared/atsdocument.js.map +1 -1
  25. package/sdk/models/shared/atsinterview.d.ts +23 -6
  26. package/sdk/models/shared/atsinterview.d.ts.map +1 -1
  27. package/sdk/models/shared/atsinterview.js +26 -3
  28. package/sdk/models/shared/atsinterview.js.map +1 -1
  29. package/sdk/models/shared/atsjob.d.ts +29 -6
  30. package/sdk/models/shared/atsjob.d.ts.map +1 -1
  31. package/sdk/models/shared/atsjob.js +29 -3
  32. package/sdk/models/shared/atsjob.js.map +1 -1
  33. package/sdk/models/shared/atsjobposting.d.ts +49 -0
  34. package/sdk/models/shared/atsjobposting.d.ts.map +1 -0
  35. package/sdk/models/shared/atsjobposting.js +93 -0
  36. package/sdk/models/shared/atsjobposting.js.map +1 -0
  37. package/sdk/models/shared/atsscorecard.d.ts +23 -6
  38. package/sdk/models/shared/atsscorecard.d.ts.map +1 -1
  39. package/sdk/models/shared/atsscorecard.js +26 -3
  40. package/sdk/models/shared/atsscorecard.js.map +1 -1
  41. package/sdk/models/shared/atsstatus.d.ts +23 -6
  42. package/sdk/models/shared/atsstatus.d.ts.map +1 -1
  43. package/sdk/models/shared/atsstatus.js +26 -3
  44. package/sdk/models/shared/atsstatus.js.map +1 -1
  45. package/sdk/models/shared/commercecollection.d.ts +15 -15
  46. package/sdk/models/shared/commercecollection.d.ts.map +1 -1
  47. package/sdk/models/shared/commercecollection.js +18 -20
  48. package/sdk/models/shared/commercecollection.js.map +1 -1
  49. package/sdk/models/shared/connection.d.ts +2 -2
  50. package/sdk/models/shared/connection.d.ts.map +1 -1
  51. package/sdk/models/shared/connection.js +2 -2
  52. package/sdk/models/shared/connection.js.map +1 -1
  53. package/sdk/models/shared/index.d.ts +2 -0
  54. package/sdk/models/shared/index.d.ts.map +1 -1
  55. package/sdk/models/shared/index.js +2 -0
  56. package/sdk/models/shared/index.js.map +1 -1
  57. package/sdk/models/shared/metadatametadata.d.ts +85 -7
  58. package/sdk/models/shared/metadatametadata.d.ts.map +1 -1
  59. package/sdk/models/shared/metadatametadata.js +60 -5
  60. package/sdk/models/shared/metadatametadata.js.map +1 -1
  61. package/sdk/models/shared/propertyatsjobpostingaddress.d.ts +46 -0
  62. package/sdk/models/shared/propertyatsjobpostingaddress.d.ts.map +1 -0
  63. package/sdk/models/shared/propertyatsjobpostingaddress.js +86 -0
  64. package/sdk/models/shared/propertyatsjobpostingaddress.js.map +1 -0
  65. package/src/lib/config.ts +3 -3
  66. package/src/sdk/models/shared/atsactivity.ts +44 -4
  67. package/src/sdk/models/shared/atsapplication.ts +54 -4
  68. package/src/sdk/models/shared/atscandidate.ts +52 -4
  69. package/src/sdk/models/shared/atscompany.ts +50 -4
  70. package/src/sdk/models/shared/atsdocument.ts +50 -4
  71. package/src/sdk/models/shared/atsinterview.ts +52 -4
  72. package/src/sdk/models/shared/atsjob.ts +63 -4
  73. package/src/sdk/models/shared/atsjobposting.ts +120 -0
  74. package/src/sdk/models/shared/atsscorecard.ts +52 -4
  75. package/src/sdk/models/shared/atsstatus.ts +50 -4
  76. package/src/sdk/models/shared/commercecollection.ts +33 -23
  77. package/src/sdk/models/shared/connection.ts +4 -4
  78. package/src/sdk/models/shared/index.ts +2 -0
  79. package/src/sdk/models/shared/metadatametadata.ts +100 -7
  80. package/src/sdk/models/shared/propertyatsjobpostingaddress.ts +112 -0
@@ -0,0 +1,120 @@
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 {
11
+ PropertyAtsJobPostingAddress,
12
+ PropertyAtsJobPostingAddress$inboundSchema,
13
+ PropertyAtsJobPostingAddress$Outbound,
14
+ PropertyAtsJobPostingAddress$outboundSchema,
15
+ } from "./propertyatsjobpostingaddress.js";
16
+
17
+ export type AtsJobPosting = {
18
+ /**
19
+ * job-post-specific address
20
+ */
21
+ address?: PropertyAtsJobPostingAddress | undefined;
22
+ createdAt?: Date | undefined;
23
+ description?: string | undefined;
24
+ id?: string | undefined;
25
+ isActive?: boolean | undefined;
26
+ location?: string | undefined;
27
+ name?: string | undefined;
28
+ postingUrl?: string | undefined;
29
+ updatedAt?: Date | undefined;
30
+ };
31
+
32
+ /** @internal */
33
+ export const AtsJobPosting$inboundSchema: z.ZodType<
34
+ AtsJobPosting,
35
+ z.ZodTypeDef,
36
+ unknown
37
+ > = z.object({
38
+ address: PropertyAtsJobPostingAddress$inboundSchema.optional(),
39
+ created_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
40
+ .optional(),
41
+ description: z.string().optional(),
42
+ id: z.string().optional(),
43
+ is_active: z.boolean().optional(),
44
+ location: z.string().optional(),
45
+ name: z.string().optional(),
46
+ posting_url: z.string().optional(),
47
+ updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
48
+ .optional(),
49
+ }).transform((v) => {
50
+ return remap$(v, {
51
+ "created_at": "createdAt",
52
+ "is_active": "isActive",
53
+ "posting_url": "postingUrl",
54
+ "updated_at": "updatedAt",
55
+ });
56
+ });
57
+
58
+ /** @internal */
59
+ export type AtsJobPosting$Outbound = {
60
+ address?: PropertyAtsJobPostingAddress$Outbound | undefined;
61
+ created_at?: string | undefined;
62
+ description?: string | undefined;
63
+ id?: string | undefined;
64
+ is_active?: boolean | undefined;
65
+ location?: string | undefined;
66
+ name?: string | undefined;
67
+ posting_url?: string | undefined;
68
+ updated_at?: string | undefined;
69
+ };
70
+
71
+ /** @internal */
72
+ export const AtsJobPosting$outboundSchema: z.ZodType<
73
+ AtsJobPosting$Outbound,
74
+ z.ZodTypeDef,
75
+ AtsJobPosting
76
+ > = z.object({
77
+ address: PropertyAtsJobPostingAddress$outboundSchema.optional(),
78
+ createdAt: z.date().transform(v => v.toISOString()).optional(),
79
+ description: z.string().optional(),
80
+ id: z.string().optional(),
81
+ isActive: z.boolean().optional(),
82
+ location: z.string().optional(),
83
+ name: z.string().optional(),
84
+ postingUrl: z.string().optional(),
85
+ updatedAt: z.date().transform(v => v.toISOString()).optional(),
86
+ }).transform((v) => {
87
+ return remap$(v, {
88
+ createdAt: "created_at",
89
+ isActive: "is_active",
90
+ postingUrl: "posting_url",
91
+ updatedAt: "updated_at",
92
+ });
93
+ });
94
+
95
+ /**
96
+ * @internal
97
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
98
+ */
99
+ export namespace AtsJobPosting$ {
100
+ /** @deprecated use `AtsJobPosting$inboundSchema` instead. */
101
+ export const inboundSchema = AtsJobPosting$inboundSchema;
102
+ /** @deprecated use `AtsJobPosting$outboundSchema` instead. */
103
+ export const outboundSchema = AtsJobPosting$outboundSchema;
104
+ /** @deprecated use `AtsJobPosting$Outbound` instead. */
105
+ export type Outbound = AtsJobPosting$Outbound;
106
+ }
107
+
108
+ export function atsJobPostingToJSON(atsJobPosting: AtsJobPosting): string {
109
+ return JSON.stringify(AtsJobPosting$outboundSchema.parse(atsJobPosting));
110
+ }
111
+
112
+ export function atsJobPostingFromJSON(
113
+ jsonString: string,
114
+ ): SafeParseResult<AtsJobPosting, SDKValidationError> {
115
+ return safeParse(
116
+ jsonString,
117
+ (x) => AtsJobPosting$inboundSchema.parse(JSON.parse(x)),
118
+ `Failed to parse 'AtsJobPosting' from JSON`,
119
+ );
120
+ }
@@ -15,6 +15,8 @@ import {
15
15
  AtsScorecardQuestion$outboundSchema,
16
16
  } from "./atsscorecardquestion.js";
17
17
 
18
+ export type AtsScorecardRaw = {};
19
+
18
20
  export const Recommendation = {
19
21
  DefinitelyNo: "DEFINITELY_NO",
20
22
  No: "NO",
@@ -33,11 +35,57 @@ export type AtsScorecard = {
33
35
  interviewerId?: string | undefined;
34
36
  jobId?: string | undefined;
35
37
  questions?: Array<AtsScorecardQuestion> | undefined;
36
- raw?: { [k: string]: any } | undefined;
38
+ raw?: AtsScorecardRaw | undefined;
37
39
  recommendation?: Recommendation | undefined;
38
40
  updatedAt?: Date | undefined;
39
41
  };
40
42
 
43
+ /** @internal */
44
+ export const AtsScorecardRaw$inboundSchema: z.ZodType<
45
+ AtsScorecardRaw,
46
+ z.ZodTypeDef,
47
+ unknown
48
+ > = z.object({});
49
+
50
+ /** @internal */
51
+ export type AtsScorecardRaw$Outbound = {};
52
+
53
+ /** @internal */
54
+ export const AtsScorecardRaw$outboundSchema: z.ZodType<
55
+ AtsScorecardRaw$Outbound,
56
+ z.ZodTypeDef,
57
+ AtsScorecardRaw
58
+ > = z.object({});
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 AtsScorecardRaw$ {
65
+ /** @deprecated use `AtsScorecardRaw$inboundSchema` instead. */
66
+ export const inboundSchema = AtsScorecardRaw$inboundSchema;
67
+ /** @deprecated use `AtsScorecardRaw$outboundSchema` instead. */
68
+ export const outboundSchema = AtsScorecardRaw$outboundSchema;
69
+ /** @deprecated use `AtsScorecardRaw$Outbound` instead. */
70
+ export type Outbound = AtsScorecardRaw$Outbound;
71
+ }
72
+
73
+ export function atsScorecardRawToJSON(
74
+ atsScorecardRaw: AtsScorecardRaw,
75
+ ): string {
76
+ return JSON.stringify(AtsScorecardRaw$outboundSchema.parse(atsScorecardRaw));
77
+ }
78
+
79
+ export function atsScorecardRawFromJSON(
80
+ jsonString: string,
81
+ ): SafeParseResult<AtsScorecardRaw, SDKValidationError> {
82
+ return safeParse(
83
+ jsonString,
84
+ (x) => AtsScorecardRaw$inboundSchema.parse(JSON.parse(x)),
85
+ `Failed to parse 'AtsScorecardRaw' from JSON`,
86
+ );
87
+ }
88
+
41
89
  /** @internal */
42
90
  export const Recommendation$inboundSchema: z.ZodNativeEnum<
43
91
  typeof Recommendation
@@ -75,7 +123,7 @@ export const AtsScorecard$inboundSchema: z.ZodType<
75
123
  interviewer_id: z.string().optional(),
76
124
  job_id: z.string().optional(),
77
125
  questions: z.array(AtsScorecardQuestion$inboundSchema).optional(),
78
- raw: z.record(z.any()).optional(),
126
+ raw: z.lazy(() => AtsScorecardRaw$inboundSchema).optional(),
79
127
  recommendation: Recommendation$inboundSchema.optional(),
80
128
  updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
81
129
  .optional(),
@@ -102,7 +150,7 @@ export type AtsScorecard$Outbound = {
102
150
  interviewer_id?: string | undefined;
103
151
  job_id?: string | undefined;
104
152
  questions?: Array<AtsScorecardQuestion$Outbound> | undefined;
105
- raw?: { [k: string]: any } | undefined;
153
+ raw?: AtsScorecardRaw$Outbound | undefined;
106
154
  recommendation?: string | undefined;
107
155
  updated_at?: string | undefined;
108
156
  };
@@ -122,7 +170,7 @@ export const AtsScorecard$outboundSchema: z.ZodType<
122
170
  interviewerId: z.string().optional(),
123
171
  jobId: z.string().optional(),
124
172
  questions: z.array(AtsScorecardQuestion$outboundSchema).optional(),
125
- raw: z.record(z.any()).optional(),
173
+ raw: z.lazy(() => AtsScorecardRaw$outboundSchema).optional(),
126
174
  recommendation: Recommendation$outboundSchema.optional(),
127
175
  updatedAt: z.date().transform(v => v.toISOString()).optional(),
128
176
  }).transform((v) => {
@@ -9,6 +9,8 @@ import { ClosedEnum } from "../../types/enums.js";
9
9
  import { Result as SafeParseResult } from "../../types/fp.js";
10
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
11
 
12
+ export type AtsStatusRaw = {};
13
+
12
14
  export const AtsStatusStatus = {
13
15
  New: "NEW",
14
16
  Reviewing: "REVIEWING",
@@ -31,10 +33,54 @@ export type AtsStatus = {
31
33
  description?: string | undefined;
32
34
  id?: string | undefined;
33
35
  originalStatus?: string | undefined;
34
- raw?: { [k: string]: any } | undefined;
36
+ raw?: AtsStatusRaw | undefined;
35
37
  status?: AtsStatusStatus | undefined;
36
38
  };
37
39
 
40
+ /** @internal */
41
+ export const AtsStatusRaw$inboundSchema: z.ZodType<
42
+ AtsStatusRaw,
43
+ z.ZodTypeDef,
44
+ unknown
45
+ > = z.object({});
46
+
47
+ /** @internal */
48
+ export type AtsStatusRaw$Outbound = {};
49
+
50
+ /** @internal */
51
+ export const AtsStatusRaw$outboundSchema: z.ZodType<
52
+ AtsStatusRaw$Outbound,
53
+ z.ZodTypeDef,
54
+ AtsStatusRaw
55
+ > = z.object({});
56
+
57
+ /**
58
+ * @internal
59
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
60
+ */
61
+ export namespace AtsStatusRaw$ {
62
+ /** @deprecated use `AtsStatusRaw$inboundSchema` instead. */
63
+ export const inboundSchema = AtsStatusRaw$inboundSchema;
64
+ /** @deprecated use `AtsStatusRaw$outboundSchema` instead. */
65
+ export const outboundSchema = AtsStatusRaw$outboundSchema;
66
+ /** @deprecated use `AtsStatusRaw$Outbound` instead. */
67
+ export type Outbound = AtsStatusRaw$Outbound;
68
+ }
69
+
70
+ export function atsStatusRawToJSON(atsStatusRaw: AtsStatusRaw): string {
71
+ return JSON.stringify(AtsStatusRaw$outboundSchema.parse(atsStatusRaw));
72
+ }
73
+
74
+ export function atsStatusRawFromJSON(
75
+ jsonString: string,
76
+ ): SafeParseResult<AtsStatusRaw, SDKValidationError> {
77
+ return safeParse(
78
+ jsonString,
79
+ (x) => AtsStatusRaw$inboundSchema.parse(JSON.parse(x)),
80
+ `Failed to parse 'AtsStatusRaw' from JSON`,
81
+ );
82
+ }
83
+
38
84
  /** @internal */
39
85
  export const AtsStatusStatus$inboundSchema: z.ZodNativeEnum<
40
86
  typeof AtsStatusStatus
@@ -65,7 +111,7 @@ export const AtsStatus$inboundSchema: z.ZodType<
65
111
  description: z.string().optional(),
66
112
  id: z.string().optional(),
67
113
  original_status: z.string().optional(),
68
- raw: z.record(z.any()).optional(),
114
+ raw: z.lazy(() => AtsStatusRaw$inboundSchema).optional(),
69
115
  status: AtsStatusStatus$inboundSchema.optional(),
70
116
  }).transform((v) => {
71
117
  return remap$(v, {
@@ -78,7 +124,7 @@ export type AtsStatus$Outbound = {
78
124
  description?: string | undefined;
79
125
  id?: string | undefined;
80
126
  original_status?: string | undefined;
81
- raw?: { [k: string]: any } | undefined;
127
+ raw?: AtsStatusRaw$Outbound | undefined;
82
128
  status?: string | undefined;
83
129
  };
84
130
 
@@ -91,7 +137,7 @@ export const AtsStatus$outboundSchema: z.ZodType<
91
137
  description: z.string().optional(),
92
138
  id: z.string().optional(),
93
139
  originalStatus: z.string().optional(),
94
- raw: z.record(z.any()).optional(),
140
+ raw: z.lazy(() => AtsStatusRaw$outboundSchema).optional(),
95
141
  status: AtsStatusStatus$outboundSchema.optional(),
96
142
  }).transform((v) => {
97
143
  return remap$(v, {
@@ -21,7 +21,7 @@ import {
21
21
  CommerceItemMetadata$outboundSchema,
22
22
  } from "./commerceitemmetadata.js";
23
23
 
24
- export type Raw = {};
24
+ export type CommerceCollectionRaw = {};
25
25
 
26
26
  export const CommerceCollectionType = {
27
27
  Collection: "COLLECTION",
@@ -46,47 +46,57 @@ export type CommerceCollection = {
46
46
  parentId?: string | undefined;
47
47
  publicDescription?: string | undefined;
48
48
  publicName?: string | undefined;
49
- raw?: Raw | undefined;
49
+ raw?: CommerceCollectionRaw | undefined;
50
50
  tags?: Array<string> | undefined;
51
51
  type?: CommerceCollectionType | undefined;
52
52
  updatedAt?: Date | undefined;
53
53
  };
54
54
 
55
55
  /** @internal */
56
- export const Raw$inboundSchema: z.ZodType<Raw, z.ZodTypeDef, unknown> = z
57
- .object({});
56
+ export const CommerceCollectionRaw$inboundSchema: z.ZodType<
57
+ CommerceCollectionRaw,
58
+ z.ZodTypeDef,
59
+ unknown
60
+ > = z.object({});
58
61
 
59
62
  /** @internal */
60
- export type Raw$Outbound = {};
63
+ export type CommerceCollectionRaw$Outbound = {};
61
64
 
62
65
  /** @internal */
63
- export const Raw$outboundSchema: z.ZodType<Raw$Outbound, z.ZodTypeDef, Raw> = z
64
- .object({});
66
+ export const CommerceCollectionRaw$outboundSchema: z.ZodType<
67
+ CommerceCollectionRaw$Outbound,
68
+ z.ZodTypeDef,
69
+ CommerceCollectionRaw
70
+ > = z.object({});
65
71
 
66
72
  /**
67
73
  * @internal
68
74
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
69
75
  */
70
- export namespace Raw$ {
71
- /** @deprecated use `Raw$inboundSchema` instead. */
72
- export const inboundSchema = Raw$inboundSchema;
73
- /** @deprecated use `Raw$outboundSchema` instead. */
74
- export const outboundSchema = Raw$outboundSchema;
75
- /** @deprecated use `Raw$Outbound` instead. */
76
- export type Outbound = Raw$Outbound;
76
+ export namespace CommerceCollectionRaw$ {
77
+ /** @deprecated use `CommerceCollectionRaw$inboundSchema` instead. */
78
+ export const inboundSchema = CommerceCollectionRaw$inboundSchema;
79
+ /** @deprecated use `CommerceCollectionRaw$outboundSchema` instead. */
80
+ export const outboundSchema = CommerceCollectionRaw$outboundSchema;
81
+ /** @deprecated use `CommerceCollectionRaw$Outbound` instead. */
82
+ export type Outbound = CommerceCollectionRaw$Outbound;
77
83
  }
78
84
 
79
- export function rawToJSON(raw: Raw): string {
80
- return JSON.stringify(Raw$outboundSchema.parse(raw));
85
+ export function commerceCollectionRawToJSON(
86
+ commerceCollectionRaw: CommerceCollectionRaw,
87
+ ): string {
88
+ return JSON.stringify(
89
+ CommerceCollectionRaw$outboundSchema.parse(commerceCollectionRaw),
90
+ );
81
91
  }
82
92
 
83
- export function rawFromJSON(
93
+ export function commerceCollectionRawFromJSON(
84
94
  jsonString: string,
85
- ): SafeParseResult<Raw, SDKValidationError> {
95
+ ): SafeParseResult<CommerceCollectionRaw, SDKValidationError> {
86
96
  return safeParse(
87
97
  jsonString,
88
- (x) => Raw$inboundSchema.parse(JSON.parse(x)),
89
- `Failed to parse 'Raw' from JSON`,
98
+ (x) => CommerceCollectionRaw$inboundSchema.parse(JSON.parse(x)),
99
+ `Failed to parse 'CommerceCollectionRaw' from JSON`,
90
100
  );
91
101
  }
92
102
 
@@ -130,7 +140,7 @@ export const CommerceCollection$inboundSchema: z.ZodType<
130
140
  parent_id: z.string().optional(),
131
141
  public_description: z.string().optional(),
132
142
  public_name: z.string().optional(),
133
- raw: z.lazy(() => Raw$inboundSchema).optional(),
143
+ raw: z.lazy(() => CommerceCollectionRaw$inboundSchema).optional(),
134
144
  tags: z.array(z.string()).optional(),
135
145
  type: CommerceCollectionType$inboundSchema.optional(),
136
146
  updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
@@ -162,7 +172,7 @@ export type CommerceCollection$Outbound = {
162
172
  parent_id?: string | undefined;
163
173
  public_description?: string | undefined;
164
174
  public_name?: string | undefined;
165
- raw?: Raw$Outbound | undefined;
175
+ raw?: CommerceCollectionRaw$Outbound | undefined;
166
176
  tags?: Array<string> | undefined;
167
177
  type?: string | undefined;
168
178
  updated_at?: string | undefined;
@@ -186,7 +196,7 @@ export const CommerceCollection$outboundSchema: z.ZodType<
186
196
  parentId: z.string().optional(),
187
197
  publicDescription: z.string().optional(),
188
198
  publicName: z.string().optional(),
189
- raw: z.lazy(() => Raw$outboundSchema).optional(),
199
+ raw: z.lazy(() => CommerceCollectionRaw$outboundSchema).optional(),
190
200
  tags: z.array(z.string()).optional(),
191
201
  type: CommerceCollectionType$outboundSchema.optional(),
192
202
  updatedAt: z.date().transform(v => v.toISOString()).optional(),
@@ -41,7 +41,7 @@ export type Connection = {
41
41
  environment?: string | undefined;
42
42
  externalXref?: string | undefined;
43
43
  id?: string | undefined;
44
- integrationName: string;
44
+ integrationName?: string | undefined;
45
45
  integrationType: string;
46
46
  isPaused?: boolean | undefined;
47
47
  lastHealthyAt?: Date | undefined;
@@ -65,7 +65,7 @@ export const Connection$inboundSchema: z.ZodType<
65
65
  environment: z.string().default("Production"),
66
66
  external_xref: z.string().optional(),
67
67
  id: z.string().optional(),
68
- integration_name: z.string(),
68
+ integration_name: z.string().optional(),
69
69
  integration_type: z.string(),
70
70
  is_paused: z.boolean().optional(),
71
71
  last_healthy_at: z.string().datetime({ offset: true }).transform(v =>
@@ -102,7 +102,7 @@ export type Connection$Outbound = {
102
102
  environment: string;
103
103
  external_xref?: string | undefined;
104
104
  id?: string | undefined;
105
- integration_name: string;
105
+ integration_name?: string | undefined;
106
106
  integration_type: string;
107
107
  is_paused?: boolean | undefined;
108
108
  last_healthy_at?: string | undefined;
@@ -125,7 +125,7 @@ export const Connection$outboundSchema: z.ZodType<
125
125
  environment: z.string().default("Production"),
126
126
  externalXref: z.string().optional(),
127
127
  id: z.string().optional(),
128
- integrationName: z.string(),
128
+ integrationName: z.string().optional(),
129
129
  integrationType: z.string(),
130
130
  isPaused: z.boolean().optional(),
131
131
  lastHealthyAt: z.date().transform(v => v.toISOString()).optional(),
@@ -29,6 +29,7 @@ export * from "./atsdocument.js";
29
29
  export * from "./atsemail.js";
30
30
  export * from "./atsinterview.js";
31
31
  export * from "./atsjob.js";
32
+ export * from "./atsjobposting.js";
32
33
  export * from "./atsjobquestion.js";
33
34
  export * from "./atsoffer.js";
34
35
  export * from "./atsscorecard.js";
@@ -110,6 +111,7 @@ export * from "./propertyaccountingorganizationaddress.js";
110
111
  export * from "./propertyatsactivityfrom.js";
111
112
  export * from "./propertyatscandidateaddress.js";
112
113
  export * from "./propertyatscompanyaddress.js";
114
+ export * from "./propertyatsjobpostingaddress.js";
113
115
  export * from "./propertycommercelocationaddress.js";
114
116
  export * from "./propertyconnectionauth.js";
115
117
  export * from "./propertyconnectioncategories.js";
@@ -5,20 +5,110 @@
5
5
  import * as z from "zod";
6
6
  import { remap as remap$ } from "../../../lib/primitives.js";
7
7
  import { safeParse } from "../../../lib/schemas.js";
8
+ import { ClosedEnum } from "../../types/enums.js";
8
9
  import { Result as SafeParseResult } from "../../types/fp.js";
9
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
11
 
12
+ export type MetadataMetadataRaw = {};
13
+
14
+ export const MetadataMetadataType = {
15
+ Text: "TEXT",
16
+ Number: "NUMBER",
17
+ Date: "DATE",
18
+ Boolean: "BOOLEAN",
19
+ File: "FILE",
20
+ Textarea: "TEXTAREA",
21
+ SingleSelect: "SINGLE_SELECT",
22
+ MultipleSelect: "MULTIPLE_SELECT",
23
+ Measurement: "MEASUREMENT",
24
+ Price: "PRICE",
25
+ YesNo: "YES_NO",
26
+ Currency: "CURRENCY",
27
+ Url: "URL",
28
+ } as const;
29
+ export type MetadataMetadataType = ClosedEnum<typeof MetadataMetadataType>;
30
+
11
31
  export type MetadataMetadata = {
12
32
  createdAt?: Date | undefined;
13
33
  id?: string | undefined;
14
34
  name: string;
15
35
  objectType: string;
16
36
  objects?: { [k: string]: string } | undefined;
17
- raw?: { [k: string]: any } | undefined;
18
- type?: string | undefined;
37
+ options?: Array<string> | undefined;
38
+ raw?: MetadataMetadataRaw | undefined;
39
+ type?: MetadataMetadataType | undefined;
19
40
  updatedAt?: Date | undefined;
20
41
  };
21
42
 
43
+ /** @internal */
44
+ export const MetadataMetadataRaw$inboundSchema: z.ZodType<
45
+ MetadataMetadataRaw,
46
+ z.ZodTypeDef,
47
+ unknown
48
+ > = z.object({});
49
+
50
+ /** @internal */
51
+ export type MetadataMetadataRaw$Outbound = {};
52
+
53
+ /** @internal */
54
+ export const MetadataMetadataRaw$outboundSchema: z.ZodType<
55
+ MetadataMetadataRaw$Outbound,
56
+ z.ZodTypeDef,
57
+ MetadataMetadataRaw
58
+ > = z.object({});
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 MetadataMetadataRaw$ {
65
+ /** @deprecated use `MetadataMetadataRaw$inboundSchema` instead. */
66
+ export const inboundSchema = MetadataMetadataRaw$inboundSchema;
67
+ /** @deprecated use `MetadataMetadataRaw$outboundSchema` instead. */
68
+ export const outboundSchema = MetadataMetadataRaw$outboundSchema;
69
+ /** @deprecated use `MetadataMetadataRaw$Outbound` instead. */
70
+ export type Outbound = MetadataMetadataRaw$Outbound;
71
+ }
72
+
73
+ export function metadataMetadataRawToJSON(
74
+ metadataMetadataRaw: MetadataMetadataRaw,
75
+ ): string {
76
+ return JSON.stringify(
77
+ MetadataMetadataRaw$outboundSchema.parse(metadataMetadataRaw),
78
+ );
79
+ }
80
+
81
+ export function metadataMetadataRawFromJSON(
82
+ jsonString: string,
83
+ ): SafeParseResult<MetadataMetadataRaw, SDKValidationError> {
84
+ return safeParse(
85
+ jsonString,
86
+ (x) => MetadataMetadataRaw$inboundSchema.parse(JSON.parse(x)),
87
+ `Failed to parse 'MetadataMetadataRaw' from JSON`,
88
+ );
89
+ }
90
+
91
+ /** @internal */
92
+ export const MetadataMetadataType$inboundSchema: z.ZodNativeEnum<
93
+ typeof MetadataMetadataType
94
+ > = z.nativeEnum(MetadataMetadataType);
95
+
96
+ /** @internal */
97
+ export const MetadataMetadataType$outboundSchema: z.ZodNativeEnum<
98
+ typeof MetadataMetadataType
99
+ > = MetadataMetadataType$inboundSchema;
100
+
101
+ /**
102
+ * @internal
103
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
104
+ */
105
+ export namespace MetadataMetadataType$ {
106
+ /** @deprecated use `MetadataMetadataType$inboundSchema` instead. */
107
+ export const inboundSchema = MetadataMetadataType$inboundSchema;
108
+ /** @deprecated use `MetadataMetadataType$outboundSchema` instead. */
109
+ export const outboundSchema = MetadataMetadataType$outboundSchema;
110
+ }
111
+
22
112
  /** @internal */
23
113
  export const MetadataMetadata$inboundSchema: z.ZodType<
24
114
  MetadataMetadata,
@@ -31,8 +121,9 @@ export const MetadataMetadata$inboundSchema: z.ZodType<
31
121
  name: z.string(),
32
122
  object_type: z.string(),
33
123
  objects: z.record(z.string()).optional(),
34
- raw: z.record(z.any()).optional(),
35
- type: z.string().optional(),
124
+ options: z.array(z.string()).optional(),
125
+ raw: z.lazy(() => MetadataMetadataRaw$inboundSchema).optional(),
126
+ type: MetadataMetadataType$inboundSchema.optional(),
36
127
  updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
37
128
  .optional(),
38
129
  }).transform((v) => {
@@ -50,7 +141,8 @@ export type MetadataMetadata$Outbound = {
50
141
  name: string;
51
142
  object_type: string;
52
143
  objects?: { [k: string]: string } | undefined;
53
- raw?: { [k: string]: any } | undefined;
144
+ options?: Array<string> | undefined;
145
+ raw?: MetadataMetadataRaw$Outbound | undefined;
54
146
  type?: string | undefined;
55
147
  updated_at?: string | undefined;
56
148
  };
@@ -66,8 +158,9 @@ export const MetadataMetadata$outboundSchema: z.ZodType<
66
158
  name: z.string(),
67
159
  objectType: z.string(),
68
160
  objects: z.record(z.string()).optional(),
69
- raw: z.record(z.any()).optional(),
70
- type: z.string().optional(),
161
+ options: z.array(z.string()).optional(),
162
+ raw: z.lazy(() => MetadataMetadataRaw$outboundSchema).optional(),
163
+ type: MetadataMetadataType$outboundSchema.optional(),
71
164
  updatedAt: z.date().transform(v => v.toISOString()).optional(),
72
165
  }).transform((v) => {
73
166
  return remap$(v, {