@apideck/unify 0.43.10 → 0.44.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 (214) hide show
  1. package/README.md +8 -1
  2. package/funcs/accountingAttachmentsList.d.ts.map +1 -1
  3. package/funcs/accountingAttachmentsList.js +4 -2
  4. package/funcs/accountingAttachmentsList.js.map +1 -1
  5. package/funcs/accountingCategoriesList.js +1 -0
  6. package/funcs/accountingCategoriesList.js.map +1 -1
  7. package/funcs/accountingCompaniesList.d.ts.map +1 -1
  8. package/funcs/accountingCompaniesList.js +4 -2
  9. package/funcs/accountingCompaniesList.js.map +1 -1
  10. package/funcs/accountingDepartmentsList.js +1 -0
  11. package/funcs/accountingDepartmentsList.js.map +1 -1
  12. package/funcs/accountingEmployeesList.js +1 -0
  13. package/funcs/accountingEmployeesList.js.map +1 -1
  14. package/funcs/accountingExpenseCategoriesList.js +1 -0
  15. package/funcs/accountingExpenseCategoriesList.js.map +1 -1
  16. package/funcs/accountingExpenseReportsList.js +1 -0
  17. package/funcs/accountingExpenseReportsList.js.map +1 -1
  18. package/funcs/accountingExpensesList.js +1 -0
  19. package/funcs/accountingExpensesList.js.map +1 -1
  20. package/funcs/accountingLocationsList.js +1 -0
  21. package/funcs/accountingLocationsList.js.map +1 -1
  22. package/funcs/accountingQuotesList.js +1 -0
  23. package/funcs/accountingQuotesList.js.map +1 -1
  24. package/funcs/accountingSubsidiariesList.d.ts.map +1 -1
  25. package/funcs/accountingSubsidiariesList.js +4 -2
  26. package/funcs/accountingSubsidiariesList.js.map +1 -1
  27. package/funcs/crmListsGet.d.ts +18 -0
  28. package/funcs/crmListsGet.d.ts.map +1 -0
  29. package/funcs/crmListsGet.js +146 -0
  30. package/funcs/crmListsGet.js.map +1 -0
  31. package/funcs/crmListsList.d.ts +21 -0
  32. package/funcs/crmListsList.d.ts.map +1 -0
  33. package/funcs/crmListsList.js +168 -0
  34. package/funcs/crmListsList.js.map +1 -0
  35. package/jsr.json +1 -1
  36. package/lib/config.d.ts +4 -4
  37. package/lib/config.js +4 -4
  38. package/lib/config.js.map +1 -1
  39. package/lib/http.d.ts +1 -1
  40. package/lib/http.d.ts.map +1 -1
  41. package/lib/http.js +1 -1
  42. package/lib/http.js.map +1 -1
  43. package/lib/security.d.ts +5 -4
  44. package/lib/security.d.ts.map +1 -1
  45. package/lib/security.js +6 -7
  46. package/lib/security.js.map +1 -1
  47. package/models/components/billsfilter.d.ts +10 -0
  48. package/models/components/billsfilter.d.ts.map +1 -1
  49. package/models/components/billsfilter.js +4 -0
  50. package/models/components/billsfilter.js.map +1 -1
  51. package/models/components/connection.d.ts +33 -9
  52. package/models/components/connection.d.ts.map +1 -1
  53. package/models/components/connection.js +32 -3
  54. package/models/components/connection.js.map +1 -1
  55. package/models/components/connector.d.ts +5 -0
  56. package/models/components/connector.d.ts.map +1 -1
  57. package/models/components/connector.js +2 -0
  58. package/models/components/connector.js.map +1 -1
  59. package/models/components/connectoroverview.d.ts +188 -0
  60. package/models/components/connectoroverview.d.ts.map +1 -0
  61. package/models/components/connectoroverview.js +148 -0
  62. package/models/components/connectoroverview.js.map +1 -0
  63. package/models/components/consumerconnection.d.ts +16 -3
  64. package/models/components/consumerconnection.d.ts.map +1 -1
  65. package/models/components/consumerconnection.js +14 -2
  66. package/models/components/consumerconnection.js.map +1 -1
  67. package/models/components/expensereport.d.ts +9 -0
  68. package/models/components/expensereport.d.ts.map +1 -1
  69. package/models/components/expensereport.js +2 -0
  70. package/models/components/expensereport.js.map +1 -1
  71. package/models/components/getlistresponse.d.ts +45 -0
  72. package/models/components/getlistresponse.d.ts.map +1 -0
  73. package/models/components/getlistresponse.js +66 -0
  74. package/models/components/getlistresponse.js.map +1 -0
  75. package/models/components/getlistsresponse.d.ts +50 -0
  76. package/models/components/getlistsresponse.d.ts.map +1 -0
  77. package/models/components/getlistsresponse.js +68 -0
  78. package/models/components/getlistsresponse.js.map +1 -0
  79. package/models/components/index.d.ts +4 -0
  80. package/models/components/index.d.ts.map +1 -1
  81. package/models/components/index.js +4 -0
  82. package/models/components/index.js.map +1 -1
  83. package/models/components/ledgeraccountsfilter.d.ts +3 -3
  84. package/models/components/ledgeraccountsfilter.js +1 -1
  85. package/models/components/list.d.ts +114 -0
  86. package/models/components/list.d.ts.map +1 -0
  87. package/models/components/list.js +110 -0
  88. package/models/components/list.js.map +1 -0
  89. package/models/components/webhookeventlogsfilter.d.ts +35 -0
  90. package/models/components/webhookeventlogsfilter.d.ts.map +1 -1
  91. package/models/components/webhookeventlogsfilter.js +13 -0
  92. package/models/components/webhookeventlogsfilter.js.map +1 -1
  93. package/models/components/webhookeventtype.d.ts +6 -0
  94. package/models/components/webhookeventtype.d.ts.map +1 -1
  95. package/models/components/webhookeventtype.js +6 -0
  96. package/models/components/webhookeventtype.js.map +1 -1
  97. package/models/operations/accountingattachmentsall.d.ts +9 -0
  98. package/models/operations/accountingattachmentsall.d.ts.map +1 -1
  99. package/models/operations/accountingattachmentsall.js +2 -0
  100. package/models/operations/accountingattachmentsall.js.map +1 -1
  101. package/models/operations/accountingcategoriesall.d.ts +9 -0
  102. package/models/operations/accountingcategoriesall.d.ts.map +1 -1
  103. package/models/operations/accountingcategoriesall.js +5 -0
  104. package/models/operations/accountingcategoriesall.js.map +1 -1
  105. package/models/operations/accountingcompaniesall.d.ts +9 -0
  106. package/models/operations/accountingcompaniesall.d.ts.map +1 -1
  107. package/models/operations/accountingcompaniesall.js +5 -0
  108. package/models/operations/accountingcompaniesall.js.map +1 -1
  109. package/models/operations/accountingdepartmentsall.d.ts +9 -0
  110. package/models/operations/accountingdepartmentsall.d.ts.map +1 -1
  111. package/models/operations/accountingdepartmentsall.js +5 -0
  112. package/models/operations/accountingdepartmentsall.js.map +1 -1
  113. package/models/operations/accountingemployeesall.d.ts +9 -0
  114. package/models/operations/accountingemployeesall.d.ts.map +1 -1
  115. package/models/operations/accountingemployeesall.js +5 -0
  116. package/models/operations/accountingemployeesall.js.map +1 -1
  117. package/models/operations/accountingexpensecategoriesall.d.ts +9 -0
  118. package/models/operations/accountingexpensecategoriesall.d.ts.map +1 -1
  119. package/models/operations/accountingexpensecategoriesall.js +5 -0
  120. package/models/operations/accountingexpensecategoriesall.js.map +1 -1
  121. package/models/operations/accountingexpensereportsall.d.ts +9 -0
  122. package/models/operations/accountingexpensereportsall.d.ts.map +1 -1
  123. package/models/operations/accountingexpensereportsall.js +5 -0
  124. package/models/operations/accountingexpensereportsall.js.map +1 -1
  125. package/models/operations/accountingexpensesall.d.ts +9 -0
  126. package/models/operations/accountingexpensesall.d.ts.map +1 -1
  127. package/models/operations/accountingexpensesall.js +5 -0
  128. package/models/operations/accountingexpensesall.js.map +1 -1
  129. package/models/operations/accountinglocationsall.d.ts +9 -0
  130. package/models/operations/accountinglocationsall.d.ts.map +1 -1
  131. package/models/operations/accountinglocationsall.js +5 -0
  132. package/models/operations/accountinglocationsall.js.map +1 -1
  133. package/models/operations/accountingquotesall.d.ts +9 -0
  134. package/models/operations/accountingquotesall.d.ts.map +1 -1
  135. package/models/operations/accountingquotesall.js +5 -0
  136. package/models/operations/accountingquotesall.js.map +1 -1
  137. package/models/operations/accountingsubsidiariesall.d.ts +9 -0
  138. package/models/operations/accountingsubsidiariesall.d.ts.map +1 -1
  139. package/models/operations/accountingsubsidiariesall.js +5 -0
  140. package/models/operations/accountingsubsidiariesall.js.map +1 -1
  141. package/models/operations/crmlistsall.d.ts +81 -0
  142. package/models/operations/crmlistsall.d.ts.map +1 -0
  143. package/models/operations/crmlistsall.js +80 -0
  144. package/models/operations/crmlistsall.js.map +1 -0
  145. package/models/operations/crmlistsone.d.ts +67 -0
  146. package/models/operations/crmlistsone.d.ts.map +1 -0
  147. package/models/operations/crmlistsone.js +74 -0
  148. package/models/operations/crmlistsone.js.map +1 -0
  149. package/models/operations/index.d.ts +2 -0
  150. package/models/operations/index.d.ts.map +1 -1
  151. package/models/operations/index.js +2 -0
  152. package/models/operations/index.js.map +1 -1
  153. package/package.json +1 -1
  154. package/sdk/crm.d.ts +3 -0
  155. package/sdk/crm.d.ts.map +1 -1
  156. package/sdk/crm.js +4 -0
  157. package/sdk/crm.js.map +1 -1
  158. package/sdk/lists.d.ts +22 -0
  159. package/sdk/lists.d.ts.map +1 -0
  160. package/sdk/lists.js +33 -0
  161. package/sdk/lists.js.map +1 -0
  162. package/src/__tests__/companies.test.ts +3 -0
  163. package/src/__tests__/connections.test.ts +48 -32
  164. package/src/__tests__/connectionsettings.test.ts +18 -12
  165. package/src/__tests__/consumers.test.ts +48 -32
  166. package/src/__tests__/employees.test.ts +3 -0
  167. package/src/__tests__/expensecategories.test.ts +3 -0
  168. package/src/__tests__/expensereports.test.ts +6 -0
  169. package/src/__tests__/quotes.test.ts +3 -0
  170. package/src/funcs/accountingAttachmentsList.ts +17 -7
  171. package/src/funcs/accountingCategoriesList.ts +1 -0
  172. package/src/funcs/accountingCompaniesList.ts +17 -7
  173. package/src/funcs/accountingDepartmentsList.ts +1 -0
  174. package/src/funcs/accountingEmployeesList.ts +1 -0
  175. package/src/funcs/accountingExpenseCategoriesList.ts +1 -0
  176. package/src/funcs/accountingExpenseReportsList.ts +1 -0
  177. package/src/funcs/accountingExpensesList.ts +1 -0
  178. package/src/funcs/accountingLocationsList.ts +1 -0
  179. package/src/funcs/accountingQuotesList.ts +1 -0
  180. package/src/funcs/accountingSubsidiariesList.ts +17 -7
  181. package/src/funcs/crmListsGet.ts +228 -0
  182. package/src/funcs/crmListsList.ts +303 -0
  183. package/src/lib/config.ts +4 -4
  184. package/src/lib/http.ts +3 -1
  185. package/src/lib/security.ts +10 -5
  186. package/src/models/components/billsfilter.ts +18 -0
  187. package/src/models/components/connection.ts +85 -6
  188. package/src/models/components/connector.ts +9 -0
  189. package/src/models/components/connectoroverview.ts +346 -0
  190. package/src/models/components/consumerconnection.ts +44 -3
  191. package/src/models/components/expensereport.ts +11 -0
  192. package/src/models/components/getlistresponse.ts +78 -0
  193. package/src/models/components/getlistsresponse.ts +84 -0
  194. package/src/models/components/index.ts +4 -0
  195. package/src/models/components/ledgeraccountsfilter.ts +3 -3
  196. package/src/models/components/list.ts +181 -0
  197. package/src/models/components/webhookeventlogsfilter.ts +48 -0
  198. package/src/models/components/webhookeventtype.ts +6 -0
  199. package/src/models/operations/accountingattachmentsall.ts +7 -0
  200. package/src/models/operations/accountingcategoriesall.ts +10 -0
  201. package/src/models/operations/accountingcompaniesall.ts +10 -0
  202. package/src/models/operations/accountingdepartmentsall.ts +10 -0
  203. package/src/models/operations/accountingemployeesall.ts +10 -0
  204. package/src/models/operations/accountingexpensecategoriesall.ts +10 -0
  205. package/src/models/operations/accountingexpensereportsall.ts +10 -0
  206. package/src/models/operations/accountingexpensesall.ts +10 -0
  207. package/src/models/operations/accountinglocationsall.ts +10 -0
  208. package/src/models/operations/accountingquotesall.ts +10 -0
  209. package/src/models/operations/accountingsubsidiariesall.ts +10 -0
  210. package/src/models/operations/crmlistsall.ts +138 -0
  211. package/src/models/operations/crmlistsone.ts +122 -0
  212. package/src/models/operations/index.ts +2 -0
  213. package/src/sdk/crm.ts +6 -0
  214. package/src/sdk/lists.ts +46 -0
@@ -0,0 +1,78 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
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 * as types from "../../types/primitives.js";
10
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+ import { List, List$inboundSchema } from "./list.js";
12
+ import { Meta, Meta$inboundSchema } from "./meta.js";
13
+
14
+ /**
15
+ * List
16
+ */
17
+ export type GetListResponse = {
18
+ /**
19
+ * HTTP Response Status Code
20
+ */
21
+ statusCode: number;
22
+ /**
23
+ * HTTP Response Status
24
+ */
25
+ status: string;
26
+ /**
27
+ * Apideck ID of service provider
28
+ */
29
+ service: string;
30
+ /**
31
+ * Unified API resource name
32
+ */
33
+ resource: string;
34
+ /**
35
+ * Operation performed
36
+ */
37
+ operation: string;
38
+ data: List;
39
+ /**
40
+ * Response metadata
41
+ */
42
+ meta?: Meta | undefined;
43
+ /**
44
+ * Raw response from the integration when raw=true query param is provided
45
+ */
46
+ raw?: { [k: string]: any } | null | undefined;
47
+ };
48
+
49
+ /** @internal */
50
+ export const GetListResponse$inboundSchema: z.ZodType<
51
+ GetListResponse,
52
+ z.ZodTypeDef,
53
+ unknown
54
+ > = z.object({
55
+ status_code: types.number(),
56
+ status: types.string(),
57
+ service: types.string(),
58
+ resource: types.string(),
59
+ operation: types.string(),
60
+ data: List$inboundSchema,
61
+ meta: types.optional(Meta$inboundSchema),
62
+ _raw: z.nullable(z.record(z.any())).optional(),
63
+ }).transform((v) => {
64
+ return remap$(v, {
65
+ "status_code": "statusCode",
66
+ "_raw": "raw",
67
+ });
68
+ });
69
+
70
+ export function getListResponseFromJSON(
71
+ jsonString: string,
72
+ ): SafeParseResult<GetListResponse, SDKValidationError> {
73
+ return safeParse(
74
+ jsonString,
75
+ (x) => GetListResponse$inboundSchema.parse(JSON.parse(x)),
76
+ `Failed to parse 'GetListResponse' from JSON`,
77
+ );
78
+ }
@@ -0,0 +1,84 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
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 * as types from "../../types/primitives.js";
10
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+ import { Links, Links$inboundSchema } from "./links.js";
12
+ import { List, List$inboundSchema } from "./list.js";
13
+ import { Meta, Meta$inboundSchema } from "./meta.js";
14
+
15
+ /**
16
+ * Lists
17
+ */
18
+ export type GetListsResponse = {
19
+ /**
20
+ * HTTP Response Status Code
21
+ */
22
+ statusCode: number;
23
+ /**
24
+ * HTTP Response Status
25
+ */
26
+ status: string;
27
+ /**
28
+ * Apideck ID of service provider
29
+ */
30
+ service: string;
31
+ /**
32
+ * Unified API resource name
33
+ */
34
+ resource: string;
35
+ /**
36
+ * Operation performed
37
+ */
38
+ operation: string;
39
+ data: Array<List>;
40
+ /**
41
+ * Raw response from the integration when raw=true query param is provided
42
+ */
43
+ raw?: { [k: string]: any } | null | undefined;
44
+ /**
45
+ * Response metadata
46
+ */
47
+ meta?: Meta | undefined;
48
+ /**
49
+ * Links to navigate to previous or next pages through the API
50
+ */
51
+ links?: Links | undefined;
52
+ };
53
+
54
+ /** @internal */
55
+ export const GetListsResponse$inboundSchema: z.ZodType<
56
+ GetListsResponse,
57
+ z.ZodTypeDef,
58
+ unknown
59
+ > = z.object({
60
+ status_code: types.number(),
61
+ status: types.string(),
62
+ service: types.string(),
63
+ resource: types.string(),
64
+ operation: types.string(),
65
+ data: z.array(List$inboundSchema),
66
+ _raw: z.nullable(z.record(z.any())).optional(),
67
+ meta: types.optional(Meta$inboundSchema),
68
+ links: types.optional(Links$inboundSchema),
69
+ }).transform((v) => {
70
+ return remap$(v, {
71
+ "status_code": "statusCode",
72
+ "_raw": "raw",
73
+ });
74
+ });
75
+
76
+ export function getListsResponseFromJSON(
77
+ jsonString: string,
78
+ ): SafeParseResult<GetListsResponse, SDKValidationError> {
79
+ return safeParse(
80
+ jsonString,
81
+ (x) => GetListsResponse$inboundSchema.parse(JSON.parse(x)),
82
+ `Failed to parse 'GetListsResponse' from JSON`,
83
+ );
84
+ }
@@ -74,6 +74,7 @@ export * from "./connectionstate.js";
74
74
  export * from "./connector.js";
75
75
  export * from "./connectordoc.js";
76
76
  export * from "./connectorevent.js";
77
+ export * from "./connectoroverview.js";
77
78
  export * from "./connectorresource.js";
78
79
  export * from "./connectorsetting.js";
79
80
  export * from "./connectorsfilter.js";
@@ -384,6 +385,8 @@ export * from "./getleadresponse.js";
384
385
  export * from "./getleadsresponse.js";
385
386
  export * from "./getledgeraccountresponse.js";
386
387
  export * from "./getledgeraccountsresponse.js";
388
+ export * from "./getlistresponse.js";
389
+ export * from "./getlistsresponse.js";
387
390
  export * from "./getlogsresponse.js";
388
391
  export * from "./getmessageresponse.js";
389
392
  export * from "./getmessagesresponse.js";
@@ -486,6 +489,7 @@ export * from "./linkedtaxstatusdetail.js";
486
489
  export * from "./linkedtrackingcategory.js";
487
490
  export * from "./linkedworktag.js";
488
491
  export * from "./links.js";
492
+ export * from "./list.js";
489
493
  export * from "./log.js";
490
494
  export * from "./logsfilter.js";
491
495
  export * from "./message.js";
@@ -28,14 +28,14 @@ export const Classification = {
28
28
  export type Classification = OpenEnum<typeof Classification>;
29
29
 
30
30
  /**
31
- * Filter by account status.
31
+ * Filter by account status. Supported only on a subset of connectors (e.g. NetSuite); connectors that do not support it reject `filter[status]` with a `400 UnsupportedFiltersError` — read the account's `status` field in the response and filter client-side instead. See the error's `supported_filters` or the connector's supported filters.
32
32
  */
33
33
  export const LedgerAccountsFilterStatus = {
34
34
  Active: "active",
35
35
  Inactive: "inactive",
36
36
  } as const;
37
37
  /**
38
- * Filter by account status.
38
+ * Filter by account status. Supported only on a subset of connectors (e.g. NetSuite); connectors that do not support it reject `filter[status]` with a `400 UnsupportedFiltersError` — read the account's `status` field in the response and filter client-side instead. See the error's `supported_filters` or the connector's supported filters.
39
39
  */
40
40
  export type LedgerAccountsFilterStatus = OpenEnum<
41
41
  typeof LedgerAccountsFilterStatus
@@ -52,7 +52,7 @@ export type LedgerAccountsFilter = {
52
52
  */
53
53
  classification?: Classification | undefined;
54
54
  /**
55
- * Filter by account status.
55
+ * Filter by account status. Supported only on a subset of connectors (e.g. NetSuite); connectors that do not support it reject `filter[status]` with a `400 UnsupportedFiltersError` — read the account's `status` field in the response and filter client-side instead. See the error's `supported_filters` or the connector's supported filters.
56
56
  */
57
57
  status?: LedgerAccountsFilterStatus | undefined;
58
58
  /**
@@ -0,0 +1,181 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import * as openEnums from "../../types/enums.js";
9
+ import { OpenEnum } from "../../types/enums.js";
10
+ import { Result as SafeParseResult } from "../../types/fp.js";
11
+ import * as types from "../../types/primitives.js";
12
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
13
+ import { CustomField, CustomField$inboundSchema } from "./customfield.js";
14
+
15
+ /**
16
+ * Whether the List is static (a fixed set of records) or dynamic (a saved segment that is automatically kept up to date based on filter criteria).
17
+ */
18
+ export const ListType = {
19
+ Static: "static",
20
+ Dynamic: "dynamic",
21
+ } as const;
22
+ /**
23
+ * Whether the List is static (a fixed set of records) or dynamic (a saved segment that is automatically kept up to date based on filter criteria).
24
+ */
25
+ export type ListType = OpenEnum<typeof ListType>;
26
+
27
+ /**
28
+ * The visibility of the List. Which of these values a given connector can return depends on its native sharing model — see the connector-specific gotchas below for details.
29
+ */
30
+ export const ListVisibility = {
31
+ Private: "private",
32
+ Shared: "shared",
33
+ Public: "public",
34
+ } as const;
35
+ /**
36
+ * The visibility of the List. Which of these values a given connector can return depends on its native sharing model — see the connector-specific gotchas below for details.
37
+ */
38
+ export type ListVisibility = OpenEnum<typeof ListVisibility>;
39
+
40
+ export type List = {
41
+ /**
42
+ * The unique identifier of the List.
43
+ */
44
+ id: string;
45
+ /**
46
+ * The name of the List.
47
+ */
48
+ name: string;
49
+ /**
50
+ * The description of the List.
51
+ */
52
+ description?: string | null | undefined;
53
+ /**
54
+ * Whether the List is static (a fixed set of records) or dynamic (a saved segment that is automatically kept up to date based on filter criteria).
55
+ */
56
+ type?: ListType | null | undefined;
57
+ /**
58
+ * The visibility of the List. Which of these values a given connector can return depends on its native sharing model — see the connector-specific gotchas below for details.
59
+ */
60
+ visibility?: ListVisibility | null | undefined;
61
+ /**
62
+ * The unique identifier of the user who owns the List.
63
+ */
64
+ ownerId?: string | null | undefined;
65
+ /**
66
+ * The filter criteria used to determine which records belong to a dynamic List. Shape is connector-native and passed through largely as-is (e.g. Close returns its own nested query-tree structure) rather than normalized to a common format.
67
+ */
68
+ filterCriteria?: { [k: string]: any } | null | undefined;
69
+ /**
70
+ * The number of records currently in the List.
71
+ */
72
+ recordCount?: number | null | undefined;
73
+ /**
74
+ * The unique identifier of the folder the List is organized under.
75
+ */
76
+ folderId?: string | null | undefined;
77
+ /**
78
+ * The type of CRM records the List contains. Normalized to a lowercase plural noun for the vendor's standard object types (e.g. contacts, companies, opportunities, leads, tickets, campaigns, tasks, events); for vendor-specific or custom object types the raw downstream identifier is passed through unchanged, following the connector's native casing (e.g. a HubSpot custom objectTypeId like 2-12345 or a Salesforce custom object API name), so a raw value may not always be distinguishable from a normalized one. This field is intentionally open-ended — no closed enum is enforced.
79
+ */
80
+ objectType?: string | null | undefined;
81
+ /**
82
+ * Whether the List is dynamic, meaning its records are automatically kept up to date based on filter criteria. This is a boolean mirror of `type` (`true` when `type` is `dynamic`, `false` when `static`), provided for callers that prefer a boolean check over a string comparison.
83
+ */
84
+ isDynamic?: boolean | null | undefined;
85
+ /**
86
+ * Whether the List has been marked as a favorite.
87
+ */
88
+ isFavorite?: boolean | null | undefined;
89
+ /**
90
+ * Whether the List is a default List.
91
+ */
92
+ isDefault?: boolean | null | undefined;
93
+ /**
94
+ * Whether the List is a system-generated List.
95
+ */
96
+ isSystem?: boolean | null | undefined;
97
+ customFields?: Array<CustomField> | undefined;
98
+ tags?: Array<string> | null | undefined;
99
+ /**
100
+ * The unique identifier of the user who last updated the List.
101
+ */
102
+ updatedBy?: string | null | undefined;
103
+ /**
104
+ * The unique identifier of the user who created the List.
105
+ */
106
+ createdBy?: string | null | undefined;
107
+ /**
108
+ * The date and time when the List was last updated.
109
+ */
110
+ updatedAt?: Date | null | undefined;
111
+ /**
112
+ * The date and time when the List was created.
113
+ */
114
+ createdAt?: Date | null | undefined;
115
+ };
116
+
117
+ /** @internal */
118
+ export const ListType$inboundSchema: z.ZodType<
119
+ ListType,
120
+ z.ZodTypeDef,
121
+ unknown
122
+ > = openEnums.inboundSchema(ListType);
123
+
124
+ /** @internal */
125
+ export const ListVisibility$inboundSchema: z.ZodType<
126
+ ListVisibility,
127
+ z.ZodTypeDef,
128
+ unknown
129
+ > = openEnums.inboundSchema(ListVisibility);
130
+
131
+ /** @internal */
132
+ export const List$inboundSchema: z.ZodType<List, z.ZodTypeDef, unknown> = z
133
+ .object({
134
+ id: types.string(),
135
+ name: types.string(),
136
+ description: z.nullable(types.string()).optional(),
137
+ type: z.nullable(ListType$inboundSchema).optional(),
138
+ visibility: z.nullable(ListVisibility$inboundSchema).optional(),
139
+ owner_id: z.nullable(types.string()).optional(),
140
+ filter_criteria: z.nullable(z.record(z.any())).optional(),
141
+ record_count: z.nullable(types.number()).optional(),
142
+ folder_id: z.nullable(types.string()).optional(),
143
+ object_type: z.nullable(types.string()).optional(),
144
+ is_dynamic: z.nullable(types.boolean()).optional(),
145
+ is_favorite: z.nullable(types.boolean()).optional(),
146
+ is_default: z.nullable(types.boolean()).optional(),
147
+ is_system: z.nullable(types.boolean()).optional(),
148
+ custom_fields: types.optional(z.array(CustomField$inboundSchema)),
149
+ tags: z.nullable(z.array(types.string())).optional(),
150
+ updated_by: z.nullable(types.string()).optional(),
151
+ created_by: z.nullable(types.string()).optional(),
152
+ updated_at: z.nullable(types.date()).optional(),
153
+ created_at: z.nullable(types.date()).optional(),
154
+ }).transform((v) => {
155
+ return remap$(v, {
156
+ "owner_id": "ownerId",
157
+ "filter_criteria": "filterCriteria",
158
+ "record_count": "recordCount",
159
+ "folder_id": "folderId",
160
+ "object_type": "objectType",
161
+ "is_dynamic": "isDynamic",
162
+ "is_favorite": "isFavorite",
163
+ "is_default": "isDefault",
164
+ "is_system": "isSystem",
165
+ "custom_fields": "customFields",
166
+ "updated_by": "updatedBy",
167
+ "created_by": "createdBy",
168
+ "updated_at": "updatedAt",
169
+ "created_at": "createdAt",
170
+ });
171
+ });
172
+
173
+ export function listFromJSON(
174
+ jsonString: string,
175
+ ): SafeParseResult<List, SDKValidationError> {
176
+ return safeParse(
177
+ jsonString,
178
+ (x) => List$inboundSchema.parse(JSON.parse(x)),
179
+ `Failed to parse 'List' from JSON`,
180
+ );
181
+ }
@@ -15,6 +15,34 @@ export type WebhookEventLogsFilter = {
15
15
  consumerId?: string | null | undefined;
16
16
  entityType?: string | null | undefined;
17
17
  eventType?: string | null | undefined;
18
+ /**
19
+ * Filter logs at or after this ISO 8601 date-time (inclusive).
20
+ */
21
+ startDate?: Date | null | undefined;
22
+ /**
23
+ * Filter logs at or before this ISO 8601 date-time (inclusive). Must be on or after start_date.
24
+ */
25
+ endDate?: Date | null | undefined;
26
+ /**
27
+ * Filter by delivery success or failure.
28
+ */
29
+ success?: boolean | null | undefined;
30
+ /**
31
+ * Filter by a single HTTP status code. For backward compatibility - use status_codes for multiple values.
32
+ */
33
+ statusCode?: number | null | undefined;
34
+ /**
35
+ * Filter by multiple HTTP status codes. Values must be between 100-599. Maximum 50 status codes allowed.
36
+ */
37
+ statusCodes?: Array<number> | null | undefined;
38
+ /**
39
+ * Filter by webhook event ID.
40
+ */
41
+ eventId?: string | null | undefined;
42
+ /**
43
+ * Filter by the delivery attempt number.
44
+ */
45
+ executionAttempt?: number | null | undefined;
18
46
  };
19
47
 
20
48
  /** @internal */
@@ -48,6 +76,13 @@ export type WebhookEventLogsFilter$Outbound = {
48
76
  consumer_id?: string | null | undefined;
49
77
  entity_type?: string | null | undefined;
50
78
  event_type?: string | null | undefined;
79
+ start_date?: string | null | undefined;
80
+ end_date?: string | null | undefined;
81
+ success?: boolean | null | undefined;
82
+ status_code?: number | null | undefined;
83
+ status_codes?: Array<number> | null | undefined;
84
+ event_id?: string | null | undefined;
85
+ execution_attempt?: number | null | undefined;
51
86
  };
52
87
 
53
88
  /** @internal */
@@ -63,12 +98,25 @@ export const WebhookEventLogsFilter$outboundSchema: z.ZodType<
63
98
  consumerId: z.nullable(z.string()).optional(),
64
99
  entityType: z.nullable(z.string()).optional(),
65
100
  eventType: z.nullable(z.string()).optional(),
101
+ startDate: z.nullable(z.date().transform(v => v.toISOString())).optional(),
102
+ endDate: z.nullable(z.date().transform(v => v.toISOString())).optional(),
103
+ success: z.nullable(z.boolean()).optional(),
104
+ statusCode: z.nullable(z.number()).optional(),
105
+ statusCodes: z.nullable(z.array(z.number())).optional(),
106
+ eventId: z.nullable(z.string()).optional(),
107
+ executionAttempt: z.nullable(z.number()).optional(),
66
108
  }).transform((v) => {
67
109
  return remap$(v, {
68
110
  excludeApis: "exclude_apis",
69
111
  consumerId: "consumer_id",
70
112
  entityType: "entity_type",
71
113
  eventType: "event_type",
114
+ startDate: "start_date",
115
+ endDate: "end_date",
116
+ statusCode: "status_code",
117
+ statusCodes: "status_codes",
118
+ eventId: "event_id",
119
+ executionAttempt: "execution_attempt",
72
120
  });
73
121
  });
74
122
 
@@ -111,6 +111,9 @@ export const WebhookEventType = {
111
111
  HrisCompanyCreated: "hris.company.created",
112
112
  HrisCompanyUpdated: "hris.company.updated",
113
113
  HrisCompanyDeleted: "hris.company.deleted",
114
+ HrisTimeOffRequestCreated: "hris.time-off-request.created",
115
+ HrisTimeOffRequestUpdated: "hris.time-off-request.updated",
116
+ HrisTimeOffRequestDeleted: "hris.time-off-request.deleted",
114
117
  FileStorageFileCreated: "file-storage.file.created",
115
118
  FileStorageFileUpdated: "file-storage.file.updated",
116
119
  FileStorageFileDeleted: "file-storage.file.deleted",
@@ -139,6 +142,9 @@ export const WebhookEventType = {
139
142
  AccountingProjectCreated: "accounting.project.created",
140
143
  AccountingProjectUpdated: "accounting.project.updated",
141
144
  AccountingProjectDeleted: "accounting.project.deleted",
145
+ AccountingTrackingCategoryCreated: "accounting.tracking_category.created",
146
+ AccountingTrackingCategoryUpdated: "accounting.tracking_category.updated",
147
+ AccountingTrackingCategoryDeleted: "accounting.tracking_category.deleted",
142
148
  } as const;
143
149
  export type WebhookEventType = OpenEnum<typeof WebhookEventType>;
144
150
 
@@ -62,6 +62,10 @@ export type AccountingAttachmentsAllRequest = {
62
62
  * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded.
63
63
  */
64
64
  fields?: string | null | undefined;
65
+ /**
66
+ * Optional unmapped key/values that will be passed through to downstream as query parameters. Ie: ?pass_through[search]=leads becomes ?search=leads
67
+ */
68
+ passThrough?: { [k: string]: any } | undefined;
65
69
  };
66
70
 
67
71
  export type AccountingAttachmentsAllResponse = {
@@ -88,6 +92,7 @@ export type AccountingAttachmentsAllRequest$Outbound = {
88
92
  cursor?: string | null | undefined;
89
93
  limit: number;
90
94
  fields?: string | null | undefined;
95
+ pass_through?: { [k: string]: any } | undefined;
91
96
  };
92
97
 
93
98
  /** @internal */
@@ -106,10 +111,12 @@ export const AccountingAttachmentsAllRequest$outboundSchema: z.ZodType<
106
111
  cursor: z.nullable(z.string()).optional(),
107
112
  limit: z.number().int().default(20),
108
113
  fields: z.nullable(z.string()).optional(),
114
+ passThrough: z.record(z.any()).optional(),
109
115
  }).transform((v) => {
110
116
  return remap$(v, {
111
117
  referenceType: "reference_type",
112
118
  referenceId: "reference_id",
119
+ passThrough: "pass_through",
113
120
  });
114
121
  });
115
122
 
@@ -58,6 +58,10 @@ export type AccountingCategoriesAllRequest = {
58
58
  * Apply filters
59
59
  */
60
60
  filter?: components.CategoriesFilter | undefined;
61
+ /**
62
+ * Optional unmapped key/values that will be passed through to downstream as query parameters. Ie: ?pass_through[search]=leads becomes ?search=leads
63
+ */
64
+ passThrough?: { [k: string]: any } | undefined;
61
65
  };
62
66
 
63
67
  export type AccountingCategoriesAllResponse = {
@@ -83,6 +87,7 @@ export type AccountingCategoriesAllRequest$Outbound = {
83
87
  limit: number;
84
88
  fields?: string | null | undefined;
85
89
  filter?: components.CategoriesFilter$Outbound | undefined;
90
+ pass_through?: { [k: string]: any } | undefined;
86
91
  };
87
92
 
88
93
  /** @internal */
@@ -100,6 +105,11 @@ export const AccountingCategoriesAllRequest$outboundSchema: z.ZodType<
100
105
  limit: z.number().int().default(20),
101
106
  fields: z.nullable(z.string()).optional(),
102
107
  filter: components.CategoriesFilter$outboundSchema.optional(),
108
+ passThrough: z.record(z.any()).optional(),
109
+ }).transform((v) => {
110
+ return remap$(v, {
111
+ passThrough: "pass_through",
112
+ });
103
113
  });
104
114
 
105
115
  export function accountingCategoriesAllRequestToJSON(
@@ -54,6 +54,10 @@ export type AccountingCompaniesAllRequest = {
54
54
  * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded.
55
55
  */
56
56
  fields?: string | null | undefined;
57
+ /**
58
+ * Optional unmapped key/values that will be passed through to downstream as query parameters. Ie: ?pass_through[search]=leads becomes ?search=leads
59
+ */
60
+ passThrough?: { [k: string]: any } | undefined;
57
61
  };
58
62
 
59
63
  export type AccountingCompaniesAllResponse = {
@@ -78,6 +82,7 @@ export type AccountingCompaniesAllRequest$Outbound = {
78
82
  cursor?: string | null | undefined;
79
83
  limit: number;
80
84
  fields?: string | null | undefined;
85
+ pass_through?: { [k: string]: any } | undefined;
81
86
  };
82
87
 
83
88
  /** @internal */
@@ -94,6 +99,11 @@ export const AccountingCompaniesAllRequest$outboundSchema: z.ZodType<
94
99
  cursor: z.nullable(z.string()).optional(),
95
100
  limit: z.number().int().default(20),
96
101
  fields: z.nullable(z.string()).optional(),
102
+ passThrough: z.record(z.any()).optional(),
103
+ }).transform((v) => {
104
+ return remap$(v, {
105
+ passThrough: "pass_through",
106
+ });
97
107
  });
98
108
 
99
109
  export function accountingCompaniesAllRequestToJSON(
@@ -58,6 +58,10 @@ export type AccountingDepartmentsAllRequest = {
58
58
  * Apply filters
59
59
  */
60
60
  filter?: components.AccountingDepartmentsFilter | undefined;
61
+ /**
62
+ * Optional unmapped key/values that will be passed through to downstream as query parameters. Ie: ?pass_through[search]=leads becomes ?search=leads
63
+ */
64
+ passThrough?: { [k: string]: any } | undefined;
61
65
  };
62
66
 
63
67
  export type AccountingDepartmentsAllResponse = {
@@ -85,6 +89,7 @@ export type AccountingDepartmentsAllRequest$Outbound = {
85
89
  limit: number;
86
90
  fields?: string | null | undefined;
87
91
  filter?: components.AccountingDepartmentsFilter$Outbound | undefined;
92
+ pass_through?: { [k: string]: any } | undefined;
88
93
  };
89
94
 
90
95
  /** @internal */
@@ -102,6 +107,11 @@ export const AccountingDepartmentsAllRequest$outboundSchema: z.ZodType<
102
107
  limit: z.number().int().default(20),
103
108
  fields: z.nullable(z.string()).optional(),
104
109
  filter: components.AccountingDepartmentsFilter$outboundSchema.optional(),
110
+ passThrough: z.record(z.any()).optional(),
111
+ }).transform((v) => {
112
+ return remap$(v, {
113
+ passThrough: "pass_through",
114
+ });
105
115
  });
106
116
 
107
117
  export function accountingDepartmentsAllRequestToJSON(
@@ -54,6 +54,10 @@ export type AccountingEmployeesAllRequest = {
54
54
  * Apply filters
55
55
  */
56
56
  filter?: components.AccountingEmployeesFilter | undefined;
57
+ /**
58
+ * Optional unmapped key/values that will be passed through to downstream as query parameters. Ie: ?pass_through[search]=leads becomes ?search=leads
59
+ */
60
+ passThrough?: { [k: string]: any } | undefined;
57
61
  };
58
62
 
59
63
  export type AccountingEmployeesAllResponse = {
@@ -80,6 +84,7 @@ export type AccountingEmployeesAllRequest$Outbound = {
80
84
  limit: number;
81
85
  fields?: string | null | undefined;
82
86
  filter?: components.AccountingEmployeesFilter$Outbound | undefined;
87
+ pass_through?: { [k: string]: any } | undefined;
83
88
  };
84
89
 
85
90
  /** @internal */
@@ -96,6 +101,11 @@ export const AccountingEmployeesAllRequest$outboundSchema: z.ZodType<
96
101
  limit: z.number().int().default(20),
97
102
  fields: z.nullable(z.string()).optional(),
98
103
  filter: components.AccountingEmployeesFilter$outboundSchema.optional(),
104
+ passThrough: z.record(z.any()).optional(),
105
+ }).transform((v) => {
106
+ return remap$(v, {
107
+ passThrough: "pass_through",
108
+ });
99
109
  });
100
110
 
101
111
  export function accountingEmployeesAllRequestToJSON(
@@ -54,6 +54,10 @@ export type AccountingExpenseCategoriesAllRequest = {
54
54
  * Apply filters
55
55
  */
56
56
  filter?: components.ExpenseCategoriesFilter | undefined;
57
+ /**
58
+ * Optional unmapped key/values that will be passed through to downstream as query parameters. Ie: ?pass_through[search]=leads becomes ?search=leads
59
+ */
60
+ passThrough?: { [k: string]: any } | undefined;
57
61
  };
58
62
 
59
63
  export type AccountingExpenseCategoriesAllResponse = {
@@ -80,6 +84,7 @@ export type AccountingExpenseCategoriesAllRequest$Outbound = {
80
84
  limit: number;
81
85
  fields?: string | null | undefined;
82
86
  filter?: components.ExpenseCategoriesFilter$Outbound | undefined;
87
+ pass_through?: { [k: string]: any } | undefined;
83
88
  };
84
89
 
85
90
  /** @internal */
@@ -96,6 +101,11 @@ export const AccountingExpenseCategoriesAllRequest$outboundSchema: z.ZodType<
96
101
  limit: z.number().int().default(20),
97
102
  fields: z.nullable(z.string()).optional(),
98
103
  filter: components.ExpenseCategoriesFilter$outboundSchema.optional(),
104
+ passThrough: z.record(z.any()).optional(),
105
+ }).transform((v) => {
106
+ return remap$(v, {
107
+ passThrough: "pass_through",
108
+ });
99
109
  });
100
110
 
101
111
  export function accountingExpenseCategoriesAllRequestToJSON(