@apideck/unify 0.18.0 → 0.20.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 (225) hide show
  1. package/docs/sdks/customers/README.md +2 -0
  2. package/funcs/accountingAttachmentsList.js +1 -1
  3. package/funcs/accountingAttachmentsList.js.map +1 -1
  4. package/funcs/accountingBillPaymentsList.js +1 -1
  5. package/funcs/accountingBillPaymentsList.js.map +1 -1
  6. package/funcs/accountingBillsList.js +1 -1
  7. package/funcs/accountingBillsList.js.map +1 -1
  8. package/funcs/accountingCreditNotesList.js +1 -1
  9. package/funcs/accountingCreditNotesList.js.map +1 -1
  10. package/funcs/accountingCustomersList.js +1 -1
  11. package/funcs/accountingCustomersList.js.map +1 -1
  12. package/funcs/accountingDepartmentsList.js +1 -1
  13. package/funcs/accountingDepartmentsList.js.map +1 -1
  14. package/funcs/accountingExpensesList.js +1 -1
  15. package/funcs/accountingExpensesList.js.map +1 -1
  16. package/funcs/accountingInvoiceItemsList.js +1 -1
  17. package/funcs/accountingInvoiceItemsList.js.map +1 -1
  18. package/funcs/accountingInvoicesList.js +1 -1
  19. package/funcs/accountingInvoicesList.js.map +1 -1
  20. package/funcs/accountingJournalEntriesList.js +1 -1
  21. package/funcs/accountingJournalEntriesList.js.map +1 -1
  22. package/funcs/accountingLedgerAccountsList.js +1 -1
  23. package/funcs/accountingLedgerAccountsList.js.map +1 -1
  24. package/funcs/accountingLocationsList.js +1 -1
  25. package/funcs/accountingLocationsList.js.map +1 -1
  26. package/funcs/accountingPaymentsList.js +1 -1
  27. package/funcs/accountingPaymentsList.js.map +1 -1
  28. package/funcs/accountingPurchaseOrdersList.js +1 -1
  29. package/funcs/accountingPurchaseOrdersList.js.map +1 -1
  30. package/funcs/accountingSubsidiariesList.js +1 -1
  31. package/funcs/accountingSubsidiariesList.js.map +1 -1
  32. package/funcs/accountingSuppliersList.js +1 -1
  33. package/funcs/accountingSuppliersList.js.map +1 -1
  34. package/funcs/accountingTaxRatesList.js +1 -1
  35. package/funcs/accountingTaxRatesList.js.map +1 -1
  36. package/funcs/accountingTrackingCategoriesList.js +1 -1
  37. package/funcs/accountingTrackingCategoriesList.js.map +1 -1
  38. package/funcs/atsApplicantsList.js +1 -1
  39. package/funcs/atsApplicantsList.js.map +1 -1
  40. package/funcs/atsApplicationsList.js +1 -1
  41. package/funcs/atsApplicationsList.js.map +1 -1
  42. package/funcs/atsJobsList.js +1 -1
  43. package/funcs/atsJobsList.js.map +1 -1
  44. package/funcs/connectorApisList.js +1 -1
  45. package/funcs/connectorApisList.js.map +1 -1
  46. package/funcs/connectorConnectorsList.js +1 -1
  47. package/funcs/connectorConnectorsList.js.map +1 -1
  48. package/funcs/crmActivitiesList.js +1 -1
  49. package/funcs/crmActivitiesList.js.map +1 -1
  50. package/funcs/crmCompaniesList.js +1 -1
  51. package/funcs/crmCompaniesList.js.map +1 -1
  52. package/funcs/crmContactsList.js +1 -1
  53. package/funcs/crmContactsList.js.map +1 -1
  54. package/funcs/crmLeadsList.js +1 -1
  55. package/funcs/crmLeadsList.js.map +1 -1
  56. package/funcs/crmNotesList.js +1 -1
  57. package/funcs/crmNotesList.js.map +1 -1
  58. package/funcs/crmOpportunitiesList.js +1 -1
  59. package/funcs/crmOpportunitiesList.js.map +1 -1
  60. package/funcs/crmPipelinesList.js +1 -1
  61. package/funcs/crmPipelinesList.js.map +1 -1
  62. package/funcs/crmUsersList.js +1 -1
  63. package/funcs/crmUsersList.js.map +1 -1
  64. package/funcs/ecommerceCustomersList.js +1 -1
  65. package/funcs/ecommerceCustomersList.js.map +1 -1
  66. package/funcs/ecommerceOrdersList.js +1 -1
  67. package/funcs/ecommerceOrdersList.js.map +1 -1
  68. package/funcs/ecommerceProductsList.js +1 -1
  69. package/funcs/ecommerceProductsList.js.map +1 -1
  70. package/funcs/fileStorageDriveGroupsList.js +1 -1
  71. package/funcs/fileStorageDriveGroupsList.js.map +1 -1
  72. package/funcs/fileStorageDrivesList.js +1 -1
  73. package/funcs/fileStorageDrivesList.js.map +1 -1
  74. package/funcs/fileStorageFilesList.js +1 -1
  75. package/funcs/fileStorageFilesList.js.map +1 -1
  76. package/funcs/fileStorageSharedLinksList.js +1 -1
  77. package/funcs/fileStorageSharedLinksList.js.map +1 -1
  78. package/funcs/hrisCompaniesList.js +1 -1
  79. package/funcs/hrisCompaniesList.js.map +1 -1
  80. package/funcs/hrisDepartmentsList.js +1 -1
  81. package/funcs/hrisDepartmentsList.js.map +1 -1
  82. package/funcs/hrisEmployeesList.js +1 -1
  83. package/funcs/hrisEmployeesList.js.map +1 -1
  84. package/funcs/hrisTimeOffRequestsList.js +1 -1
  85. package/funcs/hrisTimeOffRequestsList.js.map +1 -1
  86. package/funcs/issueTrackingCollectionTagsList.js +1 -1
  87. package/funcs/issueTrackingCollectionTagsList.js.map +1 -1
  88. package/funcs/issueTrackingCollectionTicketCommentsGet.js +1 -1
  89. package/funcs/issueTrackingCollectionTicketCommentsGet.js.map +1 -1
  90. package/funcs/issueTrackingCollectionTicketCommentsList.js +1 -1
  91. package/funcs/issueTrackingCollectionTicketCommentsList.js.map +1 -1
  92. package/funcs/issueTrackingCollectionTicketsList.js +1 -1
  93. package/funcs/issueTrackingCollectionTicketsList.js.map +1 -1
  94. package/funcs/issueTrackingCollectionUsersList.js +1 -1
  95. package/funcs/issueTrackingCollectionUsersList.js.map +1 -1
  96. package/funcs/issueTrackingCollectionsList.js +1 -1
  97. package/funcs/issueTrackingCollectionsList.js.map +1 -1
  98. package/funcs/smsMessagesList.js +1 -1
  99. package/funcs/smsMessagesList.js.map +1 -1
  100. package/funcs/vaultConsumersList.js +1 -1
  101. package/funcs/vaultConsumersList.js.map +1 -1
  102. package/funcs/vaultLogsList.js +1 -1
  103. package/funcs/vaultLogsList.js.map +1 -1
  104. package/funcs/webhookEventLogsList.js +1 -1
  105. package/funcs/webhookEventLogsList.js.map +1 -1
  106. package/funcs/webhookWebhooksList.js +1 -1
  107. package/funcs/webhookWebhooksList.js.map +1 -1
  108. package/jsr.json +1 -1
  109. package/lib/config.d.ts +5 -5
  110. package/lib/config.d.ts.map +1 -1
  111. package/lib/config.js +4 -4
  112. package/lib/primitives.d.ts +3 -0
  113. package/lib/primitives.d.ts.map +1 -1
  114. package/lib/primitives.js +7 -0
  115. package/lib/primitives.js.map +1 -1
  116. package/lib/sdks.d.ts.map +1 -1
  117. package/lib/sdks.js +2 -8
  118. package/lib/sdks.js.map +1 -1
  119. package/models/components/address.d.ts +8 -8
  120. package/models/components/address.d.ts.map +1 -1
  121. package/models/components/address.js +14 -13
  122. package/models/components/address.js.map +1 -1
  123. package/models/components/balancesheetfilter.d.ts +2 -0
  124. package/models/components/balancesheetfilter.d.ts.map +1 -1
  125. package/models/components/balancesheetfilter.js.map +1 -1
  126. package/models/components/bill.d.ts +10 -0
  127. package/models/components/bill.d.ts.map +1 -1
  128. package/models/components/bill.js +8 -0
  129. package/models/components/bill.js.map +1 -1
  130. package/models/components/billpayment.d.ts +2 -2
  131. package/models/components/contact.d.ts +9 -9
  132. package/models/components/contact.d.ts.map +1 -1
  133. package/models/components/contact.js +15 -16
  134. package/models/components/contact.js.map +1 -1
  135. package/models/components/customersfilter.d.ts +5 -0
  136. package/models/components/customersfilter.d.ts.map +1 -1
  137. package/models/components/customersfilter.js +4 -0
  138. package/models/components/customersfilter.js.map +1 -1
  139. package/models/components/index.d.ts +2 -0
  140. package/models/components/index.d.ts.map +1 -1
  141. package/models/components/index.js +2 -0
  142. package/models/components/index.js.map +1 -1
  143. package/models/components/payment.d.ts +1 -1
  144. package/models/components/paymentinput.d.ts +1 -1
  145. package/models/components/profitandloss.d.ts +256 -56
  146. package/models/components/profitandloss.d.ts.map +1 -1
  147. package/models/components/profitandloss.js +158 -62
  148. package/models/components/profitandloss.js.map +1 -1
  149. package/models/components/profitandlossindicator.d.ts +32 -0
  150. package/models/components/profitandlossindicator.d.ts.map +1 -0
  151. package/models/components/profitandlossindicator.js +59 -0
  152. package/models/components/profitandlossindicator.js.map +1 -0
  153. package/models/components/profitandlosstype.d.ts +34 -0
  154. package/models/components/profitandlosstype.d.ts.map +1 -0
  155. package/models/components/profitandlosstype.js +53 -0
  156. package/models/components/profitandlosstype.js.map +1 -0
  157. package/package.json +1 -1
  158. package/src/funcs/accountingAttachmentsList.ts +1 -1
  159. package/src/funcs/accountingBillPaymentsList.ts +1 -1
  160. package/src/funcs/accountingBillsList.ts +1 -1
  161. package/src/funcs/accountingCreditNotesList.ts +1 -1
  162. package/src/funcs/accountingCustomersList.ts +1 -1
  163. package/src/funcs/accountingDepartmentsList.ts +1 -1
  164. package/src/funcs/accountingExpensesList.ts +1 -1
  165. package/src/funcs/accountingInvoiceItemsList.ts +1 -1
  166. package/src/funcs/accountingInvoicesList.ts +1 -1
  167. package/src/funcs/accountingJournalEntriesList.ts +1 -1
  168. package/src/funcs/accountingLedgerAccountsList.ts +1 -1
  169. package/src/funcs/accountingLocationsList.ts +1 -1
  170. package/src/funcs/accountingPaymentsList.ts +1 -1
  171. package/src/funcs/accountingPurchaseOrdersList.ts +1 -1
  172. package/src/funcs/accountingSubsidiariesList.ts +1 -1
  173. package/src/funcs/accountingSuppliersList.ts +1 -1
  174. package/src/funcs/accountingTaxRatesList.ts +1 -1
  175. package/src/funcs/accountingTrackingCategoriesList.ts +1 -1
  176. package/src/funcs/atsApplicantsList.ts +1 -1
  177. package/src/funcs/atsApplicationsList.ts +1 -1
  178. package/src/funcs/atsJobsList.ts +1 -1
  179. package/src/funcs/connectorApisList.ts +1 -1
  180. package/src/funcs/connectorConnectorsList.ts +1 -1
  181. package/src/funcs/crmActivitiesList.ts +1 -1
  182. package/src/funcs/crmCompaniesList.ts +1 -1
  183. package/src/funcs/crmContactsList.ts +1 -1
  184. package/src/funcs/crmLeadsList.ts +1 -1
  185. package/src/funcs/crmNotesList.ts +1 -1
  186. package/src/funcs/crmOpportunitiesList.ts +1 -1
  187. package/src/funcs/crmPipelinesList.ts +1 -1
  188. package/src/funcs/crmUsersList.ts +1 -1
  189. package/src/funcs/ecommerceCustomersList.ts +1 -1
  190. package/src/funcs/ecommerceOrdersList.ts +1 -1
  191. package/src/funcs/ecommerceProductsList.ts +1 -1
  192. package/src/funcs/fileStorageDriveGroupsList.ts +1 -1
  193. package/src/funcs/fileStorageDrivesList.ts +1 -1
  194. package/src/funcs/fileStorageFilesList.ts +1 -1
  195. package/src/funcs/fileStorageSharedLinksList.ts +1 -1
  196. package/src/funcs/hrisCompaniesList.ts +1 -1
  197. package/src/funcs/hrisDepartmentsList.ts +1 -1
  198. package/src/funcs/hrisEmployeesList.ts +1 -1
  199. package/src/funcs/hrisTimeOffRequestsList.ts +1 -1
  200. package/src/funcs/issueTrackingCollectionTagsList.ts +1 -1
  201. package/src/funcs/issueTrackingCollectionTicketCommentsGet.ts +1 -1
  202. package/src/funcs/issueTrackingCollectionTicketCommentsList.ts +1 -1
  203. package/src/funcs/issueTrackingCollectionTicketsList.ts +1 -1
  204. package/src/funcs/issueTrackingCollectionUsersList.ts +1 -1
  205. package/src/funcs/issueTrackingCollectionsList.ts +1 -1
  206. package/src/funcs/smsMessagesList.ts +1 -1
  207. package/src/funcs/vaultConsumersList.ts +1 -1
  208. package/src/funcs/vaultLogsList.ts +1 -1
  209. package/src/funcs/webhookEventLogsList.ts +1 -1
  210. package/src/funcs/webhookWebhooksList.ts +1 -1
  211. package/src/lib/config.ts +5 -5
  212. package/src/lib/primitives.ts +14 -0
  213. package/src/lib/sdks.ts +2 -7
  214. package/src/models/components/address.ts +14 -15
  215. package/src/models/components/balancesheetfilter.ts +2 -0
  216. package/src/models/components/bill.ts +18 -0
  217. package/src/models/components/billpayment.ts +2 -2
  218. package/src/models/components/contact.ts +18 -17
  219. package/src/models/components/customersfilter.ts +9 -0
  220. package/src/models/components/index.ts +2 -0
  221. package/src/models/components/payment.ts +1 -1
  222. package/src/models/components/paymentinput.ts +1 -1
  223. package/src/models/components/profitandloss.ts +407 -101
  224. package/src/models/components/profitandlossindicator.ts +69 -0
  225. package/src/models/components/profitandlosstype.ts +39 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apideck/unify",
3
- "version": "0.18.0",
3
+ "version": "0.20.0",
4
4
  "author": "Speakeasy",
5
5
  "main": "./index.js",
6
6
  "sideEffects": false,
@@ -268,7 +268,7 @@ async function $do(
268
268
  "~next"?: { cursor: string };
269
269
  } => {
270
270
  const nextCursor = dlv(responseData, "meta.cursors.next");
271
- if (nextCursor == null) {
271
+ if (typeof nextCursor !== "string") {
272
272
  return { next: () => null };
273
273
  }
274
274
 
@@ -267,7 +267,7 @@ async function $do(
267
267
  "~next"?: { cursor: string };
268
268
  } => {
269
269
  const nextCursor = dlv(responseData, "meta.cursors.next");
270
- if (nextCursor == null) {
270
+ if (typeof nextCursor !== "string") {
271
271
  return { next: () => null };
272
272
  }
273
273
 
@@ -264,7 +264,7 @@ async function $do(
264
264
  "~next"?: { cursor: string };
265
265
  } => {
266
266
  const nextCursor = dlv(responseData, "meta.cursors.next");
267
- if (nextCursor == null) {
267
+ if (typeof nextCursor !== "string") {
268
268
  return { next: () => null };
269
269
  }
270
270
 
@@ -267,7 +267,7 @@ async function $do(
267
267
  "~next"?: { cursor: string };
268
268
  } => {
269
269
  const nextCursor = dlv(responseData, "meta.cursors.next");
270
- if (nextCursor == null) {
270
+ if (typeof nextCursor !== "string") {
271
271
  return { next: () => null };
272
272
  }
273
273
 
@@ -265,7 +265,7 @@ async function $do(
265
265
  "~next"?: { cursor: string };
266
266
  } => {
267
267
  const nextCursor = dlv(responseData, "meta.cursors.next");
268
- if (nextCursor == null) {
268
+ if (typeof nextCursor !== "string") {
269
269
  return { next: () => null };
270
270
  }
271
271
 
@@ -265,7 +265,7 @@ async function $do(
265
265
  "~next"?: { cursor: string };
266
266
  } => {
267
267
  const nextCursor = dlv(responseData, "meta.cursors.next");
268
- if (nextCursor == null) {
268
+ if (typeof nextCursor !== "string") {
269
269
  return { next: () => null };
270
270
  }
271
271
 
@@ -252,7 +252,7 @@ async function $do(
252
252
  "~next"?: { cursor: string };
253
253
  } => {
254
254
  const nextCursor = dlv(responseData, "meta.cursors.next");
255
- if (nextCursor == null) {
255
+ if (typeof nextCursor !== "string") {
256
256
  return { next: () => null };
257
257
  }
258
258
 
@@ -267,7 +267,7 @@ async function $do(
267
267
  "~next"?: { cursor: string };
268
268
  } => {
269
269
  const nextCursor = dlv(responseData, "meta.cursors.next");
270
- if (nextCursor == null) {
270
+ if (typeof nextCursor !== "string") {
271
271
  return { next: () => null };
272
272
  }
273
273
 
@@ -265,7 +265,7 @@ async function $do(
265
265
  "~next"?: { cursor: string };
266
266
  } => {
267
267
  const nextCursor = dlv(responseData, "meta.cursors.next");
268
- if (nextCursor == null) {
268
+ if (typeof nextCursor !== "string") {
269
269
  return { next: () => null };
270
270
  }
271
271
 
@@ -267,7 +267,7 @@ async function $do(
267
267
  "~next"?: { cursor: string };
268
268
  } => {
269
269
  const nextCursor = dlv(responseData, "meta.cursors.next");
270
- if (nextCursor == null) {
270
+ if (typeof nextCursor !== "string") {
271
271
  return { next: () => null };
272
272
  }
273
273
 
@@ -267,7 +267,7 @@ async function $do(
267
267
  "~next"?: { cursor: string };
268
268
  } => {
269
269
  const nextCursor = dlv(responseData, "meta.cursors.next");
270
- if (nextCursor == null) {
270
+ if (typeof nextCursor !== "string") {
271
271
  return { next: () => null };
272
272
  }
273
273
 
@@ -263,7 +263,7 @@ async function $do(
263
263
  "~next"?: { cursor: string };
264
264
  } => {
265
265
  const nextCursor = dlv(responseData, "meta.cursors.next");
266
- if (nextCursor == null) {
266
+ if (typeof nextCursor !== "string") {
267
267
  return { next: () => null };
268
268
  }
269
269
 
@@ -265,7 +265,7 @@ async function $do(
265
265
  "~next"?: { cursor: string };
266
266
  } => {
267
267
  const nextCursor = dlv(responseData, "meta.cursors.next");
268
- if (nextCursor == null) {
268
+ if (typeof nextCursor !== "string") {
269
269
  return { next: () => null };
270
270
  }
271
271
 
@@ -266,7 +266,7 @@ async function $do(
266
266
  "~next"?: { cursor: string };
267
267
  } => {
268
268
  const nextCursor = dlv(responseData, "meta.cursors.next");
269
- if (nextCursor == null) {
269
+ if (typeof nextCursor !== "string") {
270
270
  return { next: () => null };
271
271
  }
272
272
 
@@ -255,7 +255,7 @@ async function $do(
255
255
  "~next"?: { cursor: string };
256
256
  } => {
257
257
  const nextCursor = dlv(responseData, "meta.cursors.next");
258
- if (nextCursor == null) {
258
+ if (typeof nextCursor !== "string") {
259
259
  return { next: () => null };
260
260
  }
261
261
 
@@ -265,7 +265,7 @@ async function $do(
265
265
  "~next"?: { cursor: string };
266
266
  } => {
267
267
  const nextCursor = dlv(responseData, "meta.cursors.next");
268
- if (nextCursor == null) {
268
+ if (typeof nextCursor !== "string") {
269
269
  return { next: () => null };
270
270
  }
271
271
 
@@ -264,7 +264,7 @@ async function $do(
264
264
  "~next"?: { cursor: string };
265
265
  } => {
266
266
  const nextCursor = dlv(responseData, "meta.cursors.next");
267
- if (nextCursor == null) {
267
+ if (typeof nextCursor !== "string") {
268
268
  return { next: () => null };
269
269
  }
270
270
 
@@ -269,7 +269,7 @@ async function $do(
269
269
  "~next"?: { cursor: string };
270
270
  } => {
271
271
  const nextCursor = dlv(responseData, "meta.cursors.next");
272
- if (nextCursor == null) {
272
+ if (typeof nextCursor !== "string") {
273
273
  return { next: () => null };
274
274
  }
275
275
 
@@ -263,7 +263,7 @@ async function $do(
263
263
  "~next"?: { cursor: string };
264
264
  } => {
265
265
  const nextCursor = dlv(responseData, "meta.cursors.next");
266
- if (nextCursor == null) {
266
+ if (typeof nextCursor !== "string") {
267
267
  return { next: () => null };
268
268
  }
269
269
 
@@ -261,7 +261,7 @@ async function $do(
261
261
  "~next"?: { cursor: string };
262
262
  } => {
263
263
  const nextCursor = dlv(responseData, "meta.cursors.next");
264
- if (nextCursor == null) {
264
+ if (typeof nextCursor !== "string") {
265
265
  return { next: () => null };
266
266
  }
267
267
 
@@ -262,7 +262,7 @@ async function $do(
262
262
  "~next"?: { cursor: string };
263
263
  } => {
264
264
  const nextCursor = dlv(responseData, "meta.cursors.next");
265
- if (nextCursor == null) {
265
+ if (typeof nextCursor !== "string") {
266
266
  return { next: () => null };
267
267
  }
268
268
 
@@ -240,7 +240,7 @@ async function $do(
240
240
  "~next"?: { cursor: string };
241
241
  } => {
242
242
  const nextCursor = dlv(responseData, "meta.cursors.next");
243
- if (nextCursor == null) {
243
+ if (typeof nextCursor !== "string") {
244
244
  return { next: () => null };
245
245
  }
246
246
 
@@ -241,7 +241,7 @@ async function $do(
241
241
  "~next"?: { cursor: string };
242
242
  } => {
243
243
  const nextCursor = dlv(responseData, "meta.cursors.next");
244
- if (nextCursor == null) {
244
+ if (typeof nextCursor !== "string") {
245
245
  return { next: () => null };
246
246
  }
247
247
 
@@ -264,7 +264,7 @@ async function $do(
264
264
  "~next"?: { cursor: string };
265
265
  } => {
266
266
  const nextCursor = dlv(responseData, "meta.cursors.next");
267
- if (nextCursor == null) {
267
+ if (typeof nextCursor !== "string") {
268
268
  return { next: () => null };
269
269
  }
270
270
 
@@ -264,7 +264,7 @@ async function $do(
264
264
  "~next"?: { cursor: string };
265
265
  } => {
266
266
  const nextCursor = dlv(responseData, "meta.cursors.next");
267
- if (nextCursor == null) {
267
+ if (typeof nextCursor !== "string") {
268
268
  return { next: () => null };
269
269
  }
270
270
 
@@ -264,7 +264,7 @@ async function $do(
264
264
  "~next"?: { cursor: string };
265
265
  } => {
266
266
  const nextCursor = dlv(responseData, "meta.cursors.next");
267
- if (nextCursor == null) {
267
+ if (typeof nextCursor !== "string") {
268
268
  return { next: () => null };
269
269
  }
270
270
 
@@ -264,7 +264,7 @@ async function $do(
264
264
  "~next"?: { cursor: string };
265
265
  } => {
266
266
  const nextCursor = dlv(responseData, "meta.cursors.next");
267
- if (nextCursor == null) {
267
+ if (typeof nextCursor !== "string") {
268
268
  return { next: () => null };
269
269
  }
270
270
 
@@ -262,7 +262,7 @@ async function $do(
262
262
  "~next"?: { cursor: string };
263
263
  } => {
264
264
  const nextCursor = dlv(responseData, "meta.cursors.next");
265
- if (nextCursor == null) {
265
+ if (typeof nextCursor !== "string") {
266
266
  return { next: () => null };
267
267
  }
268
268
 
@@ -265,7 +265,7 @@ async function $do(
265
265
  "~next"?: { cursor: string };
266
266
  } => {
267
267
  const nextCursor = dlv(responseData, "meta.cursors.next");
268
- if (nextCursor == null) {
268
+ if (typeof nextCursor !== "string") {
269
269
  return { next: () => null };
270
270
  }
271
271
 
@@ -262,7 +262,7 @@ async function $do(
262
262
  "~next"?: { cursor: string };
263
263
  } => {
264
264
  const nextCursor = dlv(responseData, "meta.cursors.next");
265
- if (nextCursor == null) {
265
+ if (typeof nextCursor !== "string") {
266
266
  return { next: () => null };
267
267
  }
268
268
 
@@ -262,7 +262,7 @@ async function $do(
262
262
  "~next"?: { cursor: string };
263
263
  } => {
264
264
  const nextCursor = dlv(responseData, "meta.cursors.next");
265
- if (nextCursor == null) {
265
+ if (typeof nextCursor !== "string") {
266
266
  return { next: () => null };
267
267
  }
268
268
 
@@ -264,7 +264,7 @@ async function $do(
264
264
  "~next"?: { cursor: string };
265
265
  } => {
266
266
  const nextCursor = dlv(responseData, "meta.cursors.next");
267
- if (nextCursor == null) {
267
+ if (typeof nextCursor !== "string") {
268
268
  return { next: () => null };
269
269
  }
270
270
 
@@ -264,7 +264,7 @@ async function $do(
264
264
  "~next"?: { cursor: string };
265
265
  } => {
266
266
  const nextCursor = dlv(responseData, "meta.cursors.next");
267
- if (nextCursor == null) {
267
+ if (typeof nextCursor !== "string") {
268
268
  return { next: () => null };
269
269
  }
270
270
 
@@ -263,7 +263,7 @@ async function $do(
263
263
  "~next"?: { cursor: string };
264
264
  } => {
265
265
  const nextCursor = dlv(responseData, "meta.cursors.next");
266
- if (nextCursor == null) {
266
+ if (typeof nextCursor !== "string") {
267
267
  return { next: () => null };
268
268
  }
269
269
 
@@ -266,7 +266,7 @@ async function $do(
266
266
  "~next"?: { cursor: string };
267
267
  } => {
268
268
  const nextCursor = dlv(responseData, "meta.cursors.next");
269
- if (nextCursor == null) {
269
+ if (typeof nextCursor !== "string") {
270
270
  return { next: () => null };
271
271
  }
272
272
 
@@ -263,7 +263,7 @@ async function $do(
263
263
  "~next"?: { cursor: string };
264
264
  } => {
265
265
  const nextCursor = dlv(responseData, "meta.cursors.next");
266
- if (nextCursor == null) {
266
+ if (typeof nextCursor !== "string") {
267
267
  return { next: () => null };
268
268
  }
269
269
 
@@ -265,7 +265,7 @@ async function $do(
265
265
  "~next"?: { cursor: string };
266
266
  } => {
267
267
  const nextCursor = dlv(responseData, "meta.cursors.next");
268
- if (nextCursor == null) {
268
+ if (typeof nextCursor !== "string") {
269
269
  return { next: () => null };
270
270
  }
271
271
 
@@ -265,7 +265,7 @@ async function $do(
265
265
  "~next"?: { cursor: string };
266
266
  } => {
267
267
  const nextCursor = dlv(responseData, "meta.cursors.next");
268
- if (nextCursor == null) {
268
+ if (typeof nextCursor !== "string") {
269
269
  return { next: () => null };
270
270
  }
271
271
 
@@ -262,7 +262,7 @@ async function $do(
262
262
  "~next"?: { cursor: string };
263
263
  } => {
264
264
  const nextCursor = dlv(responseData, "meta.cursors.next");
265
- if (nextCursor == null) {
265
+ if (typeof nextCursor !== "string") {
266
266
  return { next: () => null };
267
267
  }
268
268
 
@@ -262,7 +262,7 @@ async function $do(
262
262
  "~next"?: { cursor: string };
263
263
  } => {
264
264
  const nextCursor = dlv(responseData, "meta.cursors.next");
265
- if (nextCursor == null) {
265
+ if (typeof nextCursor !== "string") {
266
266
  return { next: () => null };
267
267
  }
268
268
 
@@ -264,7 +264,7 @@ async function $do(
264
264
  "~next"?: { cursor: string };
265
265
  } => {
266
266
  const nextCursor = dlv(responseData, "meta.cursors.next");
267
- if (nextCursor == null) {
267
+ if (typeof nextCursor !== "string") {
268
268
  return { next: () => null };
269
269
  }
270
270
 
@@ -264,7 +264,7 @@ async function $do(
264
264
  "~next"?: { cursor: string };
265
265
  } => {
266
266
  const nextCursor = dlv(responseData, "meta.cursors.next");
267
- if (nextCursor == null) {
267
+ if (typeof nextCursor !== "string") {
268
268
  return { next: () => null };
269
269
  }
270
270
 
@@ -278,7 +278,7 @@ async function $do(
278
278
  "~next"?: { cursor: string };
279
279
  } => {
280
280
  const nextCursor = dlv(responseData, "meta.cursors.next");
281
- if (nextCursor == null) {
281
+ if (typeof nextCursor !== "string") {
282
282
  return { next: () => null };
283
283
  }
284
284
 
@@ -275,7 +275,7 @@ async function $do(
275
275
  "~next"?: { cursor: string };
276
276
  } => {
277
277
  const nextCursor = dlv(responseData, "meta.cursors.next");
278
- if (nextCursor == null) {
278
+ if (typeof nextCursor !== "string") {
279
279
  return { next: () => null };
280
280
  }
281
281
 
@@ -282,7 +282,7 @@ async function $do(
282
282
  "~next"?: { cursor: string };
283
283
  } => {
284
284
  const nextCursor = dlv(responseData, "meta.cursors.next");
285
- if (nextCursor == null) {
285
+ if (typeof nextCursor !== "string") {
286
286
  return { next: () => null };
287
287
  }
288
288
 
@@ -280,7 +280,7 @@ async function $do(
280
280
  "~next"?: { cursor: string };
281
281
  } => {
282
282
  const nextCursor = dlv(responseData, "meta.cursors.next");
283
- if (nextCursor == null) {
283
+ if (typeof nextCursor !== "string") {
284
284
  return { next: () => null };
285
285
  }
286
286
 
@@ -278,7 +278,7 @@ async function $do(
278
278
  "~next"?: { cursor: string };
279
279
  } => {
280
280
  const nextCursor = dlv(responseData, "meta.cursors.next");
281
- if (nextCursor == null) {
281
+ if (typeof nextCursor !== "string") {
282
282
  return { next: () => null };
283
283
  }
284
284
 
@@ -266,7 +266,7 @@ async function $do(
266
266
  "~next"?: { cursor: string };
267
267
  } => {
268
268
  const nextCursor = dlv(responseData, "meta.cursors.next");
269
- if (nextCursor == null) {
269
+ if (typeof nextCursor !== "string") {
270
270
  return { next: () => null };
271
271
  }
272
272
 
@@ -252,7 +252,7 @@ async function $do(
252
252
  "~next"?: { cursor: string };
253
253
  } => {
254
254
  const nextCursor = dlv(responseData, "meta.cursors.next");
255
- if (nextCursor == null) {
255
+ if (typeof nextCursor !== "string") {
256
256
  return { next: () => null };
257
257
  }
258
258
 
@@ -240,7 +240,7 @@ async function $do(
240
240
  "~next"?: { cursor: string };
241
241
  } => {
242
242
  const nextCursor = dlv(responseData, "meta.cursors.next");
243
- if (nextCursor == null) {
243
+ if (typeof nextCursor !== "string") {
244
244
  return { next: () => null };
245
245
  }
246
246
 
@@ -255,7 +255,7 @@ async function $do(
255
255
  "~next"?: { cursor: string };
256
256
  } => {
257
257
  const nextCursor = dlv(responseData, "meta.cursors.next");
258
- if (nextCursor == null) {
258
+ if (typeof nextCursor !== "string") {
259
259
  return { next: () => null };
260
260
  }
261
261
 
@@ -251,7 +251,7 @@ async function $do(
251
251
  "~next"?: { cursor: string };
252
252
  } => {
253
253
  const nextCursor = dlv(responseData, "meta.cursors.next");
254
- if (nextCursor == null) {
254
+ if (typeof nextCursor !== "string") {
255
255
  return { next: () => null };
256
256
  }
257
257
 
@@ -240,7 +240,7 @@ async function $do(
240
240
  "~next"?: { cursor: string };
241
241
  } => {
242
242
  const nextCursor = dlv(responseData, "meta.cursors.next");
243
- if (nextCursor == null) {
243
+ if (typeof nextCursor !== "string") {
244
244
  return { next: () => null };
245
245
  }
246
246
 
package/src/lib/config.ts CHANGED
@@ -15,7 +15,7 @@ export const ServerList = [
15
15
  ] as const;
16
16
 
17
17
  export type SDKOptions = {
18
- apiKey?: string | (() => Promise<string>);
18
+ apiKey?: string | (() => Promise<string>) | undefined;
19
19
 
20
20
  /**
21
21
  * Allows setting the consumerId parameter for all supported operations
@@ -63,8 +63,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
63
63
 
64
64
  export const SDK_METADATA = {
65
65
  language: "typescript",
66
- openapiDocVersion: "10.11.5",
67
- sdkVersion: "0.18.0",
68
- genVersion: "2.522.5",
69
- userAgent: "speakeasy-sdk/typescript 0.18.0 2.522.5 10.11.5 @apideck/unify",
66
+ openapiDocVersion: "10.12.3",
67
+ sdkVersion: "0.20.0",
68
+ genVersion: "2.548.1",
69
+ userAgent: "speakeasy-sdk/typescript 0.20.0 2.548.1 10.12.3 @apideck/unify",
70
70
  } as const;
@@ -134,3 +134,17 @@ export function compactMap<T>(
134
134
 
135
135
  return out;
136
136
  }
137
+
138
+ export function allRequired<V extends Record<string, unknown>>(
139
+ v: V,
140
+ ):
141
+ | {
142
+ [K in keyof V]: NonNullable<V[K]>;
143
+ }
144
+ | undefined {
145
+ if (Object.values(v).every((x) => x == null)) {
146
+ return void 0;
147
+ }
148
+
149
+ return v as ReturnType<typeof allRequired<V>>;
150
+ }
package/src/lib/sdks.ts CHANGED
@@ -195,14 +195,9 @@ export class ClientSDK {
195
195
 
196
196
  if (conf.body instanceof ReadableStream) {
197
197
  if (!fetchOptions) {
198
- fetchOptions = {
199
- // @ts-expect-error see https://github.com/node-fetch/node-fetch/issues/1769
200
- duplex: "half",
201
- };
202
- } else {
203
- // @ts-expect-error see https://github.com/node-fetch/node-fetch/issues/1769
204
- fetchOptions.duplex = "half";
198
+ fetchOptions = {};
205
199
  }
200
+ Object.assign(fetchOptions, { duplex: "half" });
206
201
  }
207
202
 
208
203
  let input;