@apideck/unify 0.19.0 → 0.20.1

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 (102) hide show
  1. package/docs/sdks/connections/README.md +190 -42
  2. package/docs/sdks/connectionsettings/README.md +190 -42
  3. package/docs/sdks/customers/README.md +2 -0
  4. package/jsr.json +1 -1
  5. package/lib/config.d.ts +4 -4
  6. package/lib/config.js +4 -4
  7. package/lib/sdks.d.ts.map +1 -1
  8. package/lib/sdks.js +2 -8
  9. package/lib/sdks.js.map +1 -1
  10. package/lib/security.d.ts +4 -3
  11. package/lib/security.d.ts.map +1 -1
  12. package/lib/security.js +6 -1
  13. package/lib/security.js.map +1 -1
  14. package/models/components/address.d.ts +8 -8
  15. package/models/components/address.d.ts.map +1 -1
  16. package/models/components/address.js +13 -14
  17. package/models/components/address.js.map +1 -1
  18. package/models/components/balancesheetfilter.d.ts +2 -0
  19. package/models/components/balancesheetfilter.d.ts.map +1 -1
  20. package/models/components/balancesheetfilter.js.map +1 -1
  21. package/models/components/bill.d.ts +10 -0
  22. package/models/components/bill.d.ts.map +1 -1
  23. package/models/components/bill.js +8 -0
  24. package/models/components/bill.js.map +1 -1
  25. package/models/components/billpayment.d.ts +2 -2
  26. package/models/components/connectionimportdata.d.ts +15 -15
  27. package/models/components/connectionimportdata.d.ts.map +1 -1
  28. package/models/components/connectionimportdata.js +18 -19
  29. package/models/components/connectionimportdata.js.map +1 -1
  30. package/models/components/consumerconnection.d.ts +6 -26
  31. package/models/components/consumerconnection.d.ts.map +1 -1
  32. package/models/components/consumerconnection.js +3 -26
  33. package/models/components/consumerconnection.js.map +1 -1
  34. package/models/components/contact.d.ts +9 -9
  35. package/models/components/contact.d.ts.map +1 -1
  36. package/models/components/contact.js +16 -15
  37. package/models/components/contact.js.map +1 -1
  38. package/models/components/customersfilter.d.ts +5 -0
  39. package/models/components/customersfilter.d.ts.map +1 -1
  40. package/models/components/customersfilter.js +4 -0
  41. package/models/components/customersfilter.js.map +1 -1
  42. package/models/components/employee.d.ts +5 -0
  43. package/models/components/employee.d.ts.map +1 -1
  44. package/models/components/employee.js +4 -0
  45. package/models/components/employee.js.map +1 -1
  46. package/models/components/employeesfilter.d.ts +5 -0
  47. package/models/components/employeesfilter.d.ts.map +1 -1
  48. package/models/components/employeesfilter.js +2 -0
  49. package/models/components/employeesfilter.js.map +1 -1
  50. package/models/components/formfieldoption.d.ts +10 -2
  51. package/models/components/formfieldoption.d.ts.map +1 -1
  52. package/models/components/formfieldoption.js +12 -4
  53. package/models/components/formfieldoption.js.map +1 -1
  54. package/models/components/formfieldoptiongroup.d.ts +29 -4
  55. package/models/components/formfieldoptiongroup.d.ts.map +1 -1
  56. package/models/components/formfieldoptiongroup.js +34 -5
  57. package/models/components/formfieldoptiongroup.js.map +1 -1
  58. package/models/components/index.d.ts +2 -0
  59. package/models/components/index.d.ts.map +1 -1
  60. package/models/components/index.js +2 -0
  61. package/models/components/index.js.map +1 -1
  62. package/models/components/payment.d.ts +1 -1
  63. package/models/components/paymentinput.d.ts +1 -1
  64. package/models/components/profitandloss.d.ts +256 -56
  65. package/models/components/profitandloss.d.ts.map +1 -1
  66. package/models/components/profitandloss.js +158 -62
  67. package/models/components/profitandloss.js.map +1 -1
  68. package/models/components/profitandlossindicator.d.ts +32 -0
  69. package/models/components/profitandlossindicator.d.ts.map +1 -0
  70. package/models/components/profitandlossindicator.js +59 -0
  71. package/models/components/profitandlossindicator.js.map +1 -0
  72. package/models/components/profitandlosstype.d.ts +34 -0
  73. package/models/components/profitandlosstype.d.ts.map +1 -0
  74. package/models/components/profitandlosstype.js +53 -0
  75. package/models/components/profitandlosstype.js.map +1 -0
  76. package/models/components/simpleformfieldoption.d.ts +27 -2
  77. package/models/components/simpleformfieldoption.d.ts.map +1 -1
  78. package/models/components/simpleformfieldoption.js +33 -3
  79. package/models/components/simpleformfieldoption.js.map +1 -1
  80. package/package.json +1 -1
  81. package/src/lib/config.ts +4 -4
  82. package/src/lib/sdks.ts +2 -7
  83. package/src/lib/security.ts +11 -3
  84. package/src/models/components/address.ts +15 -14
  85. package/src/models/components/balancesheetfilter.ts +2 -0
  86. package/src/models/components/bill.ts +18 -0
  87. package/src/models/components/billpayment.ts +2 -2
  88. package/src/models/components/connectionimportdata.ts +24 -33
  89. package/src/models/components/consumerconnection.ts +4 -53
  90. package/src/models/components/contact.ts +17 -18
  91. package/src/models/components/customersfilter.ts +9 -0
  92. package/src/models/components/employee.ts +9 -0
  93. package/src/models/components/employeesfilter.ts +7 -0
  94. package/src/models/components/formfieldoption.ts +25 -7
  95. package/src/models/components/formfieldoptiongroup.ts +50 -8
  96. package/src/models/components/index.ts +2 -0
  97. package/src/models/components/payment.ts +1 -1
  98. package/src/models/components/paymentinput.ts +1 -1
  99. package/src/models/components/profitandloss.ts +407 -101
  100. package/src/models/components/profitandlossindicator.ts +69 -0
  101. package/src/models/components/profitandlosstype.ts +39 -0
  102. package/src/models/components/simpleformfieldoption.ts +42 -4
@@ -1 +1 @@
1
- {"version":3,"file":"simpleformfieldoption.d.ts","sourceRoot":"","sources":["../../src/models/components/simpleformfieldoption.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,IAAI,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;AAE5C,MAAM,MAAM,0BAA0B,GAClC,MAAM,GACN,MAAM,GACN,MAAM,GACN,OAAO,GACP,KAAK,CAAC,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC,CAAC;AAEpC,MAAM,MAAM,qBAAqB,GAAG;IAClC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,KAAK,CAAC,EACF,MAAM,GACN,MAAM,GACN,MAAM,GACN,OAAO,GACP,KAAK,C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WAAW,CAAC;IAC3B,0DAA0D;IACnD,MAAM,aAAa;;MAA2B,CAAC;IACtD,2DAA2D;IACpD,MAAM,cAAc;;MAA4B,CAAC;CACzD;AAED,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,OAAO,CACzD,qBAAqB,EACrB,CAAC,CAAC,UAAU,EACZ,OAAO,CAeP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,8BAA8B,GAAG;IAC3C,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EACF,MAAM,GACN,MAAM,GACN,MAAM,GACN,OAAO,GACP,KAAK,CAAC,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC,GAC/B,SAAS,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,oCAAoC,EAAE,CAAC,CAAC,OAAO,CAC1D,8BAA8B,EAC9B,CAAC,CAAC,UAAU,EACZ,qBAAqB,CAerB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,sBAAsB,CAAC;IACtC,qEAAqE;IAC9D,MAAM,aAAa,yDAAsC,CAAC;IACjE,sEAAsE;IAC/D,MAAM,cAAc,gFAAuC,CAAC;IACnE,gEAAgE;IAChE,KAAY,QAAQ,GAAG,8BAA8B,CAAC;CACvD;AAED,wBAAgB,2BAA2B,CACzC,qBAAqB,EAAE,qBAAqB,GAC3C,MAAM,CAIR;AAED,wBAAgB,6BAA6B,CAC3C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,qBAAqB,EAAE,kBAAkB,CAAC,CAM5D"}
@@ -26,7 +26,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.SimpleFormFieldOption$ = exports.SimpleFormFieldOption$outboundSchema = exports.SimpleFormFieldOption$inboundSchema = exports.SimpleFormFieldOptionValue$ = exports.SimpleFormFieldOptionValue$outboundSchema = exports.SimpleFormFieldOptionValue$inboundSchema = exports.Five$ = exports.Five$outboundSchema = exports.Five$inboundSchema = void 0;
29
+ exports.SimpleFormFieldOption$ = exports.SimpleFormFieldOption$outboundSchema = exports.SimpleFormFieldOption$inboundSchema = exports.OptionType$ = exports.OptionType$outboundSchema = exports.OptionType$inboundSchema = exports.SimpleFormFieldOptionValue$ = exports.SimpleFormFieldOptionValue$outboundSchema = exports.SimpleFormFieldOptionValue$inboundSchema = exports.Five$ = exports.Five$outboundSchema = exports.Five$inboundSchema = exports.OptionType = void 0;
30
30
  exports.fiveToJSON = fiveToJSON;
31
31
  exports.fiveFromJSON = fiveFromJSON;
32
32
  exports.simpleFormFieldOptionValueToJSON = simpleFormFieldOptionValueToJSON;
@@ -34,7 +34,11 @@ exports.simpleFormFieldOptionValueFromJSON = simpleFormFieldOptionValueFromJSON;
34
34
  exports.simpleFormFieldOptionToJSON = simpleFormFieldOptionToJSON;
35
35
  exports.simpleFormFieldOptionFromJSON = simpleFormFieldOptionFromJSON;
36
36
  const z = __importStar(require("zod"));
37
+ const primitives_js_1 = require("../../lib/primitives.js");
37
38
  const schemas_js_1 = require("../../lib/schemas.js");
39
+ exports.OptionType = {
40
+ Simple: "simple",
41
+ };
38
42
  /** @internal */
39
43
  exports.Five$inboundSchema = z
40
44
  .union([z.string(), z.number().int(), z.number()]);
@@ -91,8 +95,24 @@ function simpleFormFieldOptionValueFromJSON(jsonString) {
91
95
  return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.SimpleFormFieldOptionValue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SimpleFormFieldOptionValue' from JSON`);
92
96
  }
93
97
  /** @internal */
98
+ exports.OptionType$inboundSchema = z
99
+ .nativeEnum(exports.OptionType);
100
+ /** @internal */
101
+ exports.OptionType$outboundSchema = exports.OptionType$inboundSchema;
102
+ /**
103
+ * @internal
104
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
105
+ */
106
+ var OptionType$;
107
+ (function (OptionType$) {
108
+ /** @deprecated use `OptionType$inboundSchema` instead. */
109
+ OptionType$.inboundSchema = exports.OptionType$inboundSchema;
110
+ /** @deprecated use `OptionType$outboundSchema` instead. */
111
+ OptionType$.outboundSchema = exports.OptionType$outboundSchema;
112
+ })(OptionType$ || (exports.OptionType$ = OptionType$ = {}));
113
+ /** @internal */
94
114
  exports.SimpleFormFieldOption$inboundSchema = z.object({
95
- label: z.string().optional(),
115
+ label: z.string(),
96
116
  value: z.union([
97
117
  z.string(),
98
118
  z.number().int(),
@@ -100,10 +120,15 @@ exports.SimpleFormFieldOption$inboundSchema = z.object({
100
120
  z.boolean(),
101
121
  z.array(z.union([z.string(), z.number().int(), z.number()])),
102
122
  ]).optional(),
123
+ option_type: exports.OptionType$inboundSchema,
124
+ }).transform((v) => {
125
+ return (0, primitives_js_1.remap)(v, {
126
+ "option_type": "optionType",
127
+ });
103
128
  });
104
129
  /** @internal */
105
130
  exports.SimpleFormFieldOption$outboundSchema = z.object({
106
- label: z.string().optional(),
131
+ label: z.string(),
107
132
  value: z.union([
108
133
  z.string(),
109
134
  z.number().int(),
@@ -111,6 +136,11 @@ exports.SimpleFormFieldOption$outboundSchema = z.object({
111
136
  z.boolean(),
112
137
  z.array(z.union([z.string(), z.number().int(), z.number()])),
113
138
  ]).optional(),
139
+ optionType: exports.OptionType$outboundSchema,
140
+ }).transform((v) => {
141
+ return (0, primitives_js_1.remap)(v, {
142
+ optionType: "option_type",
143
+ });
114
144
  });
115
145
  /**
116
146
  * @internal
@@ -1 +1 @@
1
- {"version":3,"file":"simpleformfieldoption.js","sourceRoot":"","sources":["../../src/models/components/simpleformfieldoption.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAmDH,gCAEC;AAED,oCAQC;AAiDD,4EAMC;AAED,gFAQC;AA2DD,kEAMC;AAED,sEAQC;AAzMD,uCAAyB;AACzB,qDAAiD;AAwBjD,gBAAgB;AACH,QAAA,kBAAkB,GAA2C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B;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,2CAAmC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC/D,mDAAmD,CACpD,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"simpleformfieldoption.js","sourceRoot":"","sources":["../../src/models/components/simpleformfieldoption.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AA2DH,gCAEC;AAED,oCAQC;AAiDD,4EAMC;AAED,gFAQC;AAyFD,kEAMC;AAED,sEAQC;AA/OD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAcpC,QAAA,UAAU,GAAG;IACxB,MAAM,EAAE,QAAQ;CACR,CAAC;AAeX,gBAAgB;AACH,QAAA,kBAAkB,GAA2C,CAAC;KACxE,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;AAKrD,gBAAgB;AACH,QAAA,mBAAmB,GAC9B,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;AAEtD;;;GAGG;AACH,IAAiB,KAAK,CAOrB;AAPD,WAAiB,KAAK;IACpB,oDAAoD;IACvC,mBAAa,GAAG,0BAAkB,CAAC;IAChD,qDAAqD;IACxC,oBAAc,GAAG,2BAAmB,CAAC;AAGpD,CAAC,EAPgB,KAAK,qBAAL,KAAK,QAOrB;AAED,SAAgB,UAAU,CAAC,IAAU;IACnC,OAAO,IAAI,CAAC,SAAS,CAAC,2BAAmB,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;AACzD,CAAC;AAED,SAAgB,YAA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C,CAAC,EAAE,EAAE,CAAC,2CAAmC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC/D,mDAAmD,CACpD,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apideck/unify",
3
- "version": "0.19.0",
3
+ "version": "0.20.1",
4
4
  "author": "Speakeasy",
5
5
  "main": "./index.js",
6
6
  "sideEffects": false,
package/src/lib/config.ts CHANGED
@@ -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.19.0",
68
- genVersion: "2.539.1",
69
- userAgent: "speakeasy-sdk/typescript 0.19.0 2.539.1 10.11.5 @apideck/unify",
66
+ openapiDocVersion: "10.12.4",
67
+ sdkVersion: "0.20.1",
68
+ genVersion: "2.559.0",
69
+ userAgent: "speakeasy-sdk/typescript 0.20.1 2.559.0 10.12.4 @apideck/unify",
70
70
  } as const;
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;
@@ -4,6 +4,7 @@
4
4
 
5
5
  import * as components from "../models/components/index.js";
6
6
  import { env } from "./env.js";
7
+
7
8
  type OAuth2PasswordFlow = {
8
9
  username: string;
9
10
  password?: string | undefined;
@@ -85,7 +86,9 @@ type SecurityInputOAuth2ClientCredentials = {
85
86
  value:
86
87
  | { clientID?: string | undefined; clientSecret?: string | undefined }
87
88
  | null
89
+ | string
88
90
  | undefined;
91
+ fieldName?: string;
89
92
  };
90
93
 
91
94
  type SecurityInputOAuth2PasswordCredentials = {
@@ -94,13 +97,13 @@ type SecurityInputOAuth2PasswordCredentials = {
94
97
  | string
95
98
  | null
96
99
  | undefined;
97
- fieldName: string;
100
+ fieldName?: string;
98
101
  };
99
102
 
100
103
  type SecurityInputCustom = {
101
104
  type: "http:custom";
102
105
  value: any | null | undefined;
103
- fieldName: string;
106
+ fieldName?: string;
104
107
  };
105
108
 
106
109
  export type SecurityInput =
@@ -137,6 +140,9 @@ export function resolveSecurity(
137
140
  typeof o.value === "string" && !!o.value
138
141
  );
139
142
  } else if (o.type === "oauth2:client_credentials") {
143
+ if (typeof o.value == "string") {
144
+ return !!o.value;
145
+ }
140
146
  return o.value.clientID != null || o.value.clientSecret != null;
141
147
  } else if (typeof o.value === "string") {
142
148
  return !!o.value;
@@ -225,7 +231,9 @@ function applyBearer(
225
231
  value = `Bearer ${value}`;
226
232
  }
227
233
 
228
- state.headers[spec.fieldName] = value;
234
+ if (spec.fieldName !== undefined) {
235
+ state.headers[spec.fieldName] = value;
236
+ }
229
237
  }
230
238
 
231
239
  export function resolveGlobalSecurity(
@@ -12,7 +12,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
12
12
  /**
13
13
  * The type of address.
14
14
  */
15
- export const AddressType = {
15
+ export const Type = {
16
16
  Primary: "primary",
17
17
  Secondary: "secondary",
18
18
  Home: "home",
@@ -24,7 +24,7 @@ export const AddressType = {
24
24
  /**
25
25
  * The type of address.
26
26
  */
27
- export type AddressType = ClosedEnum<typeof AddressType>;
27
+ export type Type = ClosedEnum<typeof Type>;
28
28
 
29
29
  export type Address = {
30
30
  /**
@@ -34,7 +34,7 @@ export type Address = {
34
34
  /**
35
35
  * The type of address.
36
36
  */
37
- type?: AddressType | null | undefined;
37
+ type?: Type | null | undefined;
38
38
  /**
39
39
  * The address string. Some APIs don't provide structured address data.
40
40
  */
@@ -126,29 +126,30 @@ export type Address = {
126
126
  };
127
127
 
128
128
  /** @internal */
129
- export const AddressType$inboundSchema: z.ZodNativeEnum<typeof AddressType> = z
130
- .nativeEnum(AddressType);
129
+ export const Type$inboundSchema: z.ZodNativeEnum<typeof Type> = z.nativeEnum(
130
+ Type,
131
+ );
131
132
 
132
133
  /** @internal */
133
- export const AddressType$outboundSchema: z.ZodNativeEnum<typeof AddressType> =
134
- AddressType$inboundSchema;
134
+ export const Type$outboundSchema: z.ZodNativeEnum<typeof Type> =
135
+ Type$inboundSchema;
135
136
 
136
137
  /**
137
138
  * @internal
138
139
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
139
140
  */
140
- export namespace AddressType$ {
141
- /** @deprecated use `AddressType$inboundSchema` instead. */
142
- export const inboundSchema = AddressType$inboundSchema;
143
- /** @deprecated use `AddressType$outboundSchema` instead. */
144
- export const outboundSchema = AddressType$outboundSchema;
141
+ export namespace Type$ {
142
+ /** @deprecated use `Type$inboundSchema` instead. */
143
+ export const inboundSchema = Type$inboundSchema;
144
+ /** @deprecated use `Type$outboundSchema` instead. */
145
+ export const outboundSchema = Type$outboundSchema;
145
146
  }
146
147
 
147
148
  /** @internal */
148
149
  export const Address$inboundSchema: z.ZodType<Address, z.ZodTypeDef, unknown> =
149
150
  z.object({
150
151
  id: z.nullable(z.string()).optional(),
151
- type: z.nullable(AddressType$inboundSchema).optional(),
152
+ type: z.nullable(Type$inboundSchema).optional(),
152
153
  string: z.nullable(z.string()).optional(),
153
154
  name: z.nullable(z.string()).optional(),
154
155
  line1: z.nullable(z.string()).optional(),
@@ -216,7 +217,7 @@ export const Address$outboundSchema: z.ZodType<
216
217
  Address
217
218
  > = z.object({
218
219
  id: z.nullable(z.string()).optional(),
219
- type: z.nullable(AddressType$outboundSchema).optional(),
220
+ type: z.nullable(Type$outboundSchema).optional(),
220
221
  string: z.nullable(z.string()).optional(),
221
222
  name: z.nullable(z.string()).optional(),
222
223
  line1: z.nullable(z.string()).optional(),
@@ -25,6 +25,8 @@ export type PeriodType = ClosedEnum<typeof PeriodType>;
25
25
  export type BalanceSheetFilter = {
26
26
  /**
27
27
  * The start date of the period to include in the resource.
28
+ *
29
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
28
30
  */
29
31
  startDate?: string | undefined;
30
32
  /**
@@ -206,6 +206,10 @@ export type Bill = {
206
206
  * Discount percentage applied to this transaction.
207
207
  */
208
208
  discountPercentage?: number | null | undefined;
209
+ /**
210
+ * URL link to a source document - shown as 'Go to [appName]' in the downstream app. Currently only supported for Xero.
211
+ */
212
+ sourceDocumentUrl?: string | null | undefined;
209
213
  /**
210
214
  * A list of linked tracking categories.
211
215
  */
@@ -346,6 +350,10 @@ export type BillInput = {
346
350
  * Discount percentage applied to this transaction.
347
351
  */
348
352
  discountPercentage?: number | null | undefined;
353
+ /**
354
+ * URL link to a source document - shown as 'Go to [appName]' in the downstream app. Currently only supported for Xero.
355
+ */
356
+ sourceDocumentUrl?: string | null | undefined;
349
357
  /**
350
358
  * A list of linked tracking categories.
351
359
  */
@@ -417,6 +425,7 @@ export const Bill$inboundSchema: z.ZodType<Bill, z.ZodTypeDef, unknown> = z
417
425
  accounting_by_row: z.nullable(z.boolean()).optional(),
418
426
  bank_account: BankAccount$inboundSchema.optional(),
419
427
  discount_percentage: z.nullable(z.number()).optional(),
428
+ source_document_url: z.nullable(z.string()).optional(),
420
429
  tracking_categories: z.nullable(
421
430
  z.array(z.nullable(LinkedTrackingCategory$inboundSchema)),
422
431
  ).optional(),
@@ -453,6 +462,7 @@ export const Bill$inboundSchema: z.ZodType<Bill, z.ZodTypeDef, unknown> = z
453
462
  "accounting_by_row": "accountingByRow",
454
463
  "bank_account": "bankAccount",
455
464
  "discount_percentage": "discountPercentage",
465
+ "source_document_url": "sourceDocumentUrl",
456
466
  "tracking_categories": "trackingCategories",
457
467
  "updated_by": "updatedBy",
458
468
  "created_by": "createdBy",
@@ -498,6 +508,7 @@ export type Bill$Outbound = {
498
508
  accounting_by_row?: boolean | null | undefined;
499
509
  bank_account?: BankAccount$Outbound | undefined;
500
510
  discount_percentage?: number | null | undefined;
511
+ source_document_url?: string | null | undefined;
501
512
  tracking_categories?:
502
513
  | Array<LinkedTrackingCategory$Outbound | null>
503
514
  | null
@@ -549,6 +560,7 @@ export const Bill$outboundSchema: z.ZodType<Bill$Outbound, z.ZodTypeDef, Bill> =
549
560
  accountingByRow: z.nullable(z.boolean()).optional(),
550
561
  bankAccount: BankAccount$outboundSchema.optional(),
551
562
  discountPercentage: z.nullable(z.number()).optional(),
563
+ sourceDocumentUrl: z.nullable(z.string()).optional(),
552
564
  trackingCategories: z.nullable(
553
565
  z.array(z.nullable(LinkedTrackingCategory$outboundSchema)),
554
566
  ).optional(),
@@ -581,6 +593,7 @@ export const Bill$outboundSchema: z.ZodType<Bill$Outbound, z.ZodTypeDef, Bill> =
581
593
  accountingByRow: "accounting_by_row",
582
594
  bankAccount: "bank_account",
583
595
  discountPercentage: "discount_percentage",
596
+ sourceDocumentUrl: "source_document_url",
584
597
  trackingCategories: "tracking_categories",
585
598
  updatedBy: "updated_by",
586
599
  createdBy: "created_by",
@@ -655,6 +668,7 @@ export const BillInput$inboundSchema: z.ZodType<
655
668
  accounting_by_row: z.nullable(z.boolean()).optional(),
656
669
  bank_account: BankAccount$inboundSchema.optional(),
657
670
  discount_percentage: z.nullable(z.number()).optional(),
671
+ source_document_url: z.nullable(z.string()).optional(),
658
672
  tracking_categories: z.nullable(
659
673
  z.array(z.nullable(LinkedTrackingCategory$inboundSchema)),
660
674
  ).optional(),
@@ -681,6 +695,7 @@ export const BillInput$inboundSchema: z.ZodType<
681
695
  "accounting_by_row": "accountingByRow",
682
696
  "bank_account": "bankAccount",
683
697
  "discount_percentage": "discountPercentage",
698
+ "source_document_url": "sourceDocumentUrl",
684
699
  "tracking_categories": "trackingCategories",
685
700
  "row_version": "rowVersion",
686
701
  "custom_fields": "customFields",
@@ -719,6 +734,7 @@ export type BillInput$Outbound = {
719
734
  accounting_by_row?: boolean | null | undefined;
720
735
  bank_account?: BankAccount$Outbound | undefined;
721
736
  discount_percentage?: number | null | undefined;
737
+ source_document_url?: string | null | undefined;
722
738
  tracking_categories?:
723
739
  | Array<LinkedTrackingCategory$Outbound | null>
724
740
  | null
@@ -766,6 +782,7 @@ export const BillInput$outboundSchema: z.ZodType<
766
782
  accountingByRow: z.nullable(z.boolean()).optional(),
767
783
  bankAccount: BankAccount$outboundSchema.optional(),
768
784
  discountPercentage: z.nullable(z.number()).optional(),
785
+ sourceDocumentUrl: z.nullable(z.string()).optional(),
769
786
  trackingCategories: z.nullable(
770
787
  z.array(z.nullable(LinkedTrackingCategory$outboundSchema)),
771
788
  ).optional(),
@@ -792,6 +809,7 @@ export const BillInput$outboundSchema: z.ZodType<
792
809
  accountingByRow: "accounting_by_row",
793
810
  bankAccount: "bank_account",
794
811
  discountPercentage: "discount_percentage",
812
+ sourceDocumentUrl: "source_document_url",
795
813
  trackingCategories: "tracking_categories",
796
814
  rowVersion: "row_version",
797
815
  customFields: "custom_fields",
@@ -138,7 +138,7 @@ export type BillPayment = {
138
138
  */
139
139
  currencyRate?: number | null | undefined;
140
140
  /**
141
- * The total amount of the transaction
141
+ * The total amount of the transaction or record
142
142
  */
143
143
  totalAmount: number | null;
144
144
  /**
@@ -259,7 +259,7 @@ export type BillPaymentInput = {
259
259
  */
260
260
  currencyRate?: number | null | undefined;
261
261
  /**
262
- * The total amount of the transaction
262
+ * The total amount of the transaction or record
263
263
  */
264
264
  totalAmount: number | null;
265
265
  /**
@@ -30,14 +30,14 @@ export type Credentials = {
30
30
  /**
31
31
  * Connection settings. Values will persist to `form_fields` with corresponding id
32
32
  */
33
- export type ConnectionImportDataSettings = {};
33
+ export type Settings = {};
34
34
 
35
35
  export type ConnectionImportData = {
36
36
  credentials?: Credentials | undefined;
37
37
  /**
38
38
  * Connection settings. Values will persist to `form_fields` with corresponding id
39
39
  */
40
- settings?: ConnectionImportDataSettings | null | undefined;
40
+ settings?: Settings | null | undefined;
41
41
  /**
42
42
  * Attach your own consumer specific metadata
43
43
  */
@@ -120,52 +120,46 @@ export function credentialsFromJSON(
120
120
  }
121
121
 
122
122
  /** @internal */
123
- export const ConnectionImportDataSettings$inboundSchema: z.ZodType<
124
- ConnectionImportDataSettings,
123
+ export const Settings$inboundSchema: z.ZodType<
124
+ Settings,
125
125
  z.ZodTypeDef,
126
126
  unknown
127
127
  > = z.object({});
128
128
 
129
129
  /** @internal */
130
- export type ConnectionImportDataSettings$Outbound = {};
130
+ export type Settings$Outbound = {};
131
131
 
132
132
  /** @internal */
133
- export const ConnectionImportDataSettings$outboundSchema: z.ZodType<
134
- ConnectionImportDataSettings$Outbound,
133
+ export const Settings$outboundSchema: z.ZodType<
134
+ Settings$Outbound,
135
135
  z.ZodTypeDef,
136
- ConnectionImportDataSettings
136
+ Settings
137
137
  > = z.object({});
138
138
 
139
139
  /**
140
140
  * @internal
141
141
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
142
142
  */
143
- export namespace ConnectionImportDataSettings$ {
144
- /** @deprecated use `ConnectionImportDataSettings$inboundSchema` instead. */
145
- export const inboundSchema = ConnectionImportDataSettings$inboundSchema;
146
- /** @deprecated use `ConnectionImportDataSettings$outboundSchema` instead. */
147
- export const outboundSchema = ConnectionImportDataSettings$outboundSchema;
148
- /** @deprecated use `ConnectionImportDataSettings$Outbound` instead. */
149
- export type Outbound = ConnectionImportDataSettings$Outbound;
143
+ export namespace Settings$ {
144
+ /** @deprecated use `Settings$inboundSchema` instead. */
145
+ export const inboundSchema = Settings$inboundSchema;
146
+ /** @deprecated use `Settings$outboundSchema` instead. */
147
+ export const outboundSchema = Settings$outboundSchema;
148
+ /** @deprecated use `Settings$Outbound` instead. */
149
+ export type Outbound = Settings$Outbound;
150
150
  }
151
151
 
152
- export function connectionImportDataSettingsToJSON(
153
- connectionImportDataSettings: ConnectionImportDataSettings,
154
- ): string {
155
- return JSON.stringify(
156
- ConnectionImportDataSettings$outboundSchema.parse(
157
- connectionImportDataSettings,
158
- ),
159
- );
152
+ export function settingsToJSON(settings: Settings): string {
153
+ return JSON.stringify(Settings$outboundSchema.parse(settings));
160
154
  }
161
155
 
162
- export function connectionImportDataSettingsFromJSON(
156
+ export function settingsFromJSON(
163
157
  jsonString: string,
164
- ): SafeParseResult<ConnectionImportDataSettings, SDKValidationError> {
158
+ ): SafeParseResult<Settings, SDKValidationError> {
165
159
  return safeParse(
166
160
  jsonString,
167
- (x) => ConnectionImportDataSettings$inboundSchema.parse(JSON.parse(x)),
168
- `Failed to parse 'ConnectionImportDataSettings' from JSON`,
161
+ (x) => Settings$inboundSchema.parse(JSON.parse(x)),
162
+ `Failed to parse 'Settings' from JSON`,
169
163
  );
170
164
  }
171
165
 
@@ -176,15 +170,14 @@ export const ConnectionImportData$inboundSchema: z.ZodType<
176
170
  unknown
177
171
  > = z.object({
178
172
  credentials: z.lazy(() => Credentials$inboundSchema).optional(),
179
- settings: z.nullable(z.lazy(() => ConnectionImportDataSettings$inboundSchema))
180
- .optional(),
173
+ settings: z.nullable(z.lazy(() => Settings$inboundSchema)).optional(),
181
174
  metadata: z.nullable(z.record(z.any())).optional(),
182
175
  });
183
176
 
184
177
  /** @internal */
185
178
  export type ConnectionImportData$Outbound = {
186
179
  credentials?: Credentials$Outbound | undefined;
187
- settings?: ConnectionImportDataSettings$Outbound | null | undefined;
180
+ settings?: Settings$Outbound | null | undefined;
188
181
  metadata?: { [k: string]: any } | null | undefined;
189
182
  };
190
183
 
@@ -195,9 +188,7 @@ export const ConnectionImportData$outboundSchema: z.ZodType<
195
188
  ConnectionImportData
196
189
  > = z.object({
197
190
  credentials: z.lazy(() => Credentials$outboundSchema).optional(),
198
- settings: z.nullable(
199
- z.lazy(() => ConnectionImportDataSettings$outboundSchema),
200
- ).optional(),
191
+ settings: z.nullable(z.lazy(() => Settings$outboundSchema)).optional(),
201
192
  metadata: z.nullable(z.record(z.any())).optional(),
202
193
  });
203
194
 
@@ -18,11 +18,6 @@ import {
18
18
  ConnectionState$outboundSchema,
19
19
  } from "./connectionstate.js";
20
20
 
21
- /**
22
- * Connection settings. Values will persist to `form_fields` with corresponding id
23
- */
24
- export type Settings = {};
25
-
26
21
  export type ConsumerConnection = {
27
22
  id?: string | undefined;
28
23
  name?: string | undefined;
@@ -41,7 +36,7 @@ export type ConsumerConnection = {
41
36
  /**
42
37
  * Connection settings. Values will persist to `form_fields` with corresponding id
43
38
  */
44
- settings?: Settings | null | undefined;
39
+ settings?: { [k: string]: any } | null | undefined;
45
40
  /**
46
41
  * Attach your own consumer specific metadata
47
42
  */
@@ -54,50 +49,6 @@ export type ConsumerConnection = {
54
49
  state?: ConnectionState | undefined;
55
50
  };
56
51
 
57
- /** @internal */
58
- export const Settings$inboundSchema: z.ZodType<
59
- Settings,
60
- z.ZodTypeDef,
61
- unknown
62
- > = z.object({});
63
-
64
- /** @internal */
65
- export type Settings$Outbound = {};
66
-
67
- /** @internal */
68
- export const Settings$outboundSchema: z.ZodType<
69
- Settings$Outbound,
70
- z.ZodTypeDef,
71
- Settings
72
- > = z.object({});
73
-
74
- /**
75
- * @internal
76
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
77
- */
78
- export namespace Settings$ {
79
- /** @deprecated use `Settings$inboundSchema` instead. */
80
- export const inboundSchema = Settings$inboundSchema;
81
- /** @deprecated use `Settings$outboundSchema` instead. */
82
- export const outboundSchema = Settings$outboundSchema;
83
- /** @deprecated use `Settings$Outbound` instead. */
84
- export type Outbound = Settings$Outbound;
85
- }
86
-
87
- export function settingsToJSON(settings: Settings): string {
88
- return JSON.stringify(Settings$outboundSchema.parse(settings));
89
- }
90
-
91
- export function settingsFromJSON(
92
- jsonString: string,
93
- ): SafeParseResult<Settings, SDKValidationError> {
94
- return safeParse(
95
- jsonString,
96
- (x) => Settings$inboundSchema.parse(JSON.parse(x)),
97
- `Failed to parse 'Settings' from JSON`,
98
- );
99
- }
100
-
101
52
  /** @internal */
102
53
  export const ConsumerConnection$inboundSchema: z.ZodType<
103
54
  ConsumerConnection,
@@ -115,7 +66,7 @@ export const ConsumerConnection$inboundSchema: z.ZodType<
115
66
  consumer_id: z.string().optional(),
116
67
  auth_type: AuthType$inboundSchema.optional(),
117
68
  enabled: z.boolean().optional(),
118
- settings: z.nullable(z.lazy(() => Settings$inboundSchema)).optional(),
69
+ settings: z.nullable(z.record(z.any())).optional(),
119
70
  metadata: z.nullable(z.record(z.any())).optional(),
120
71
  created_at: z.string().optional(),
121
72
  updated_at: z.nullable(z.string()).optional(),
@@ -145,7 +96,7 @@ export type ConsumerConnection$Outbound = {
145
96
  consumer_id?: string | undefined;
146
97
  auth_type?: string | undefined;
147
98
  enabled?: boolean | undefined;
148
- settings?: Settings$Outbound | null | undefined;
99
+ settings?: { [k: string]: any } | null | undefined;
149
100
  metadata?: { [k: string]: any } | null | undefined;
150
101
  created_at?: string | undefined;
151
102
  updated_at?: string | null | undefined;
@@ -169,7 +120,7 @@ export const ConsumerConnection$outboundSchema: z.ZodType<
169
120
  consumerId: z.string().optional(),
170
121
  authType: AuthType$outboundSchema.optional(),
171
122
  enabled: z.boolean().optional(),
172
- settings: z.nullable(z.lazy(() => Settings$outboundSchema)).optional(),
123
+ settings: z.nullable(z.record(z.any())).optional(),
173
124
  metadata: z.nullable(z.record(z.any())).optional(),
174
125
  createdAt: z.string().optional(),
175
126
  updatedAt: z.nullable(z.string()).optional(),