@maesn/typescript-sdk 0.8.20 → 0.8.22

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 (65) hide show
  1. package/README.md +2 -0
  2. package/esm/funcs/accounting-get-open-items-async.d.ts +11 -0
  3. package/esm/funcs/accounting-get-open-items-async.d.ts.map +1 -0
  4. package/esm/funcs/accounting-get-open-items-async.js +89 -0
  5. package/esm/funcs/accounting-get-open-items-async.js.map +1 -0
  6. package/esm/funcs/auth-system-login-url.js +1 -0
  7. package/esm/funcs/auth-system-login-url.js.map +1 -1
  8. package/esm/lib/config.d.ts +3 -3
  9. package/esm/lib/config.js +3 -3
  10. package/esm/lib/config.js.map +1 -1
  11. package/esm/models/create-auth-webhook-request-dto.d.ts +2 -0
  12. package/esm/models/create-auth-webhook-request-dto.d.ts.map +1 -1
  13. package/esm/models/create-auth-webhook-request-dto.js +1 -0
  14. package/esm/models/create-auth-webhook-request-dto.js.map +1 -1
  15. package/esm/models/create-journal-entry-request-dto.d.ts +2 -0
  16. package/esm/models/create-journal-entry-request-dto.d.ts.map +1 -1
  17. package/esm/models/create-journal-entry-request-dto.js +1 -0
  18. package/esm/models/create-journal-entry-request-dto.js.map +1 -1
  19. package/esm/models/index.d.ts +1 -0
  20. package/esm/models/index.d.ts.map +1 -1
  21. package/esm/models/index.js +1 -0
  22. package/esm/models/index.js.map +1 -1
  23. package/esm/models/journal-entry-response-dto.d.ts +1 -0
  24. package/esm/models/journal-entry-response-dto.d.ts.map +1 -1
  25. package/esm/models/journal-entry-response-dto.js +1 -0
  26. package/esm/models/journal-entry-response-dto.js.map +1 -1
  27. package/esm/models/operations/get-open-items-async.d.ts +98 -0
  28. package/esm/models/operations/get-open-items-async.d.ts.map +1 -0
  29. package/esm/models/operations/get-open-items-async.js +69 -0
  30. package/esm/models/operations/get-open-items-async.js.map +1 -0
  31. package/esm/models/operations/index.d.ts +1 -0
  32. package/esm/models/operations/index.d.ts.map +1 -1
  33. package/esm/models/operations/index.js +1 -0
  34. package/esm/models/operations/index.js.map +1 -1
  35. package/esm/models/operations/system-login-url.d.ts +5 -0
  36. package/esm/models/operations/system-login-url.d.ts.map +1 -1
  37. package/esm/models/operations/system-login-url.js +1 -0
  38. package/esm/models/operations/system-login-url.js.map +1 -1
  39. package/esm/models/submission-page-localization-dto.d.ts +20 -0
  40. package/esm/models/submission-page-localization-dto.d.ts.map +1 -0
  41. package/esm/models/submission-page-localization-dto.js +16 -0
  42. package/esm/models/submission-page-localization-dto.js.map +1 -0
  43. package/esm/models/submission-page-style-dto.d.ts +3 -0
  44. package/esm/models/submission-page-style-dto.d.ts.map +1 -1
  45. package/esm/models/submission-page-style-dto.js +2 -0
  46. package/esm/models/submission-page-style-dto.js.map +1 -1
  47. package/esm/sdk/accounting.d.ts +1 -0
  48. package/esm/sdk/accounting.d.ts.map +1 -1
  49. package/esm/sdk/accounting.js +4 -0
  50. package/esm/sdk/accounting.js.map +1 -1
  51. package/jsr.json +1 -1
  52. package/package.json +1 -1
  53. package/src/funcs/accounting-get-open-items-async.ts +184 -0
  54. package/src/funcs/auth-system-login-url.ts +1 -0
  55. package/src/lib/config.ts +3 -3
  56. package/src/models/create-auth-webhook-request-dto.ts +3 -0
  57. package/src/models/create-journal-entry-request-dto.ts +3 -0
  58. package/src/models/index.ts +1 -0
  59. package/src/models/journal-entry-response-dto.ts +2 -0
  60. package/src/models/operations/get-open-items-async.ts +217 -0
  61. package/src/models/operations/index.ts +1 -0
  62. package/src/models/operations/system-login-url.ts +6 -0
  63. package/src/models/submission-page-localization-dto.ts +44 -0
  64. package/src/models/submission-page-style-dto.ts +10 -0
  65. package/src/sdk/accounting.ts +12 -0
@@ -0,0 +1,184 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4-mini";
6
+ import { MaesnCore } from "../core.js";
7
+ import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
8
+ import { matchStatusCode } from "../lib/http.js";
9
+ import * as M from "../lib/matchers.js";
10
+ import { compactMap } from "../lib/primitives.js";
11
+ import { safeParse } from "../lib/schemas.js";
12
+ import { RequestOptions } from "../lib/sdks.js";
13
+ import { pathToFunc } from "../lib/url.js";
14
+ import {
15
+ ConnectionError,
16
+ InvalidRequestError,
17
+ RequestAbortedError,
18
+ RequestTimeoutError,
19
+ UnexpectedClientError,
20
+ } from "../models/errors/http-client-errors.js";
21
+ import { MaesnError } from "../models/errors/maesn-error.js";
22
+ import { ResponseValidationError } from "../models/errors/response-validation-error.js";
23
+ import { SDKValidationError } from "../models/errors/sdk-validation-error.js";
24
+ import * as operations from "../models/operations/index.js";
25
+ import { APICall, APIPromise } from "../types/async.js";
26
+ import { Result } from "../types/fp.js";
27
+
28
+ export function accountingGetOpenItemsAsync(
29
+ client: MaesnCore,
30
+ request?: operations.GetOpenItemsAsyncRequest | undefined,
31
+ options?: RequestOptions,
32
+ ): APIPromise<
33
+ Result<
34
+ operations.GetOpenItemsAsyncResponse,
35
+ | MaesnError
36
+ | ResponseValidationError
37
+ | ConnectionError
38
+ | RequestAbortedError
39
+ | RequestTimeoutError
40
+ | InvalidRequestError
41
+ | UnexpectedClientError
42
+ | SDKValidationError
43
+ >
44
+ > {
45
+ return new APIPromise($do(
46
+ client,
47
+ request,
48
+ options,
49
+ ));
50
+ }
51
+
52
+ async function $do(
53
+ client: MaesnCore,
54
+ request?: operations.GetOpenItemsAsyncRequest | undefined,
55
+ options?: RequestOptions,
56
+ ): Promise<
57
+ [
58
+ Result<
59
+ operations.GetOpenItemsAsyncResponse,
60
+ | MaesnError
61
+ | ResponseValidationError
62
+ | ConnectionError
63
+ | RequestAbortedError
64
+ | RequestTimeoutError
65
+ | InvalidRequestError
66
+ | UnexpectedClientError
67
+ | SDKValidationError
68
+ >,
69
+ APICall,
70
+ ]
71
+ > {
72
+ const parsed = safeParse(
73
+ request,
74
+ (value) =>
75
+ z.parse(
76
+ z.optional(operations.GetOpenItemsAsyncRequest$outboundSchema),
77
+ value,
78
+ ),
79
+ "Input validation failed",
80
+ );
81
+ if (!parsed.ok) {
82
+ return [parsed, { status: "invalid" }];
83
+ }
84
+ const payload = parsed.value;
85
+ const body = null;
86
+
87
+ const path = pathToFunc("/accounting/openItems/async")();
88
+
89
+ const query = encodeFormQuery({
90
+ "companyId": payload?.companyId,
91
+ "environmentName": payload?.environmentName,
92
+ "fiscalYearStartDate": payload?.fiscalYearStartDate,
93
+ "limit": payload?.limit,
94
+ "page": payload?.page,
95
+ "rawData": payload?.rawData,
96
+ });
97
+
98
+ const headers = new Headers(compactMap({
99
+ Accept: "application/json",
100
+ "X-ACCOUNT-KEY": encodeSimple(
101
+ "X-ACCOUNT-KEY",
102
+ payload?.accountKey ?? client._options.accountKey,
103
+ { explode: false, charEncoding: "none" },
104
+ ),
105
+ "X-API-KEY": encodeSimple(
106
+ "X-API-KEY",
107
+ payload?.apiKey ?? client._options.apiKey,
108
+ { explode: false, charEncoding: "none" },
109
+ ),
110
+ }));
111
+
112
+ const context = {
113
+ options: client._options,
114
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
115
+ operationID: "getOpenItemsAsync",
116
+ oAuth2Scopes: null,
117
+
118
+ resolvedSecurity: null,
119
+
120
+ securitySource: null,
121
+ retryConfig: options?.retries
122
+ || client._options.retryConfig
123
+ || {
124
+ strategy: "backoff",
125
+ backoff: {
126
+ initialInterval: 500,
127
+ maxInterval: 60000,
128
+ exponent: 1.5,
129
+ maxElapsedTime: 3600000,
130
+ },
131
+ retryConnectionErrors: true,
132
+ }
133
+ || { strategy: "none" },
134
+ retryCodes: options?.retryCodes || ["5XX"],
135
+ };
136
+
137
+ const requestRes = client._createRequest(context, {
138
+ method: "GET",
139
+ baseURL: options?.serverURL,
140
+ path: path,
141
+ headers: headers,
142
+ query: query,
143
+ body: body,
144
+ userAgent: client._options.userAgent,
145
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
146
+ }, options);
147
+ if (!requestRes.ok) {
148
+ return [requestRes, { status: "invalid" }];
149
+ }
150
+ const req = requestRes.value;
151
+
152
+ const doResult = await client._do(req, {
153
+ context,
154
+ isErrorStatusCode: (statusCode: number) =>
155
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
156
+ retryConfig: context.retryConfig,
157
+ retryCodes: context.retryCodes,
158
+ });
159
+ if (!doResult.ok) {
160
+ return [doResult, { status: "request-error", request: req }];
161
+ }
162
+ const response = doResult.value;
163
+
164
+ const [result] = await M.match<
165
+ operations.GetOpenItemsAsyncResponse,
166
+ | MaesnError
167
+ | ResponseValidationError
168
+ | ConnectionError
169
+ | RequestAbortedError
170
+ | RequestTimeoutError
171
+ | InvalidRequestError
172
+ | UnexpectedClientError
173
+ | SDKValidationError
174
+ >(
175
+ M.json(202, operations.GetOpenItemsAsyncResponse$inboundSchema),
176
+ M.fail("4XX"),
177
+ M.fail("5XX"),
178
+ )(response, req);
179
+ if (!result.ok) {
180
+ return [result, { status: "complete", request: req, response }];
181
+ }
182
+
183
+ return [result, { status: "complete", request: req, response }];
184
+ }
@@ -96,6 +96,7 @@ async function $do(
96
96
  "companyId": payload.companyId,
97
97
  "environmentSelection": payload.environmentSelection,
98
98
  "include_signature": payload.include_signature,
99
+ "locale": payload.locale,
99
100
  "tenantId": payload.tenantId,
100
101
  });
101
102
 
package/src/lib/config.ts CHANGED
@@ -51,8 +51,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
51
51
  export const SDK_METADATA = {
52
52
  language: "typescript",
53
53
  openapiDocVersion: "1.0",
54
- sdkVersion: "0.8.20",
55
- genVersion: "2.937.18",
54
+ sdkVersion: "0.8.22",
55
+ genVersion: "2.941.0",
56
56
  userAgent:
57
- "speakeasy-sdk/typescript 0.8.20 2.937.18 1.0 @maesn/typescript-sdk",
57
+ "speakeasy-sdk/typescript 0.8.22 2.941.0 1.0 @maesn/typescript-sdk",
58
58
  } as const;
@@ -11,6 +11,7 @@ export type CreateAuthWebhookRequestDto = {
11
11
  includeSignature?: boolean | undefined;
12
12
  tenantId?: string | undefined;
13
13
  webhookCallbackUrl?: string | undefined;
14
+ locale?: string | undefined;
14
15
  };
15
16
 
16
17
  /** @internal */
@@ -21,6 +22,7 @@ export type CreateAuthWebhookRequestDto$Outbound = {
21
22
  includeSignature?: boolean | undefined;
22
23
  tenantId?: string | undefined;
23
24
  webhookCallbackUrl?: string | undefined;
25
+ locale?: string | undefined;
24
26
  };
25
27
 
26
28
  /** @internal */
@@ -34,6 +36,7 @@ export const CreateAuthWebhookRequestDto$outboundSchema: z.ZodMiniType<
34
36
  includeSignature: z.optional(z.boolean()),
35
37
  tenantId: z.optional(z.string()),
36
38
  webhookCallbackUrl: z.optional(z.string()),
39
+ locale: z.optional(z.string()),
37
40
  });
38
41
 
39
42
  export function createAuthWebhookRequestDtoToJSON(
@@ -210,6 +210,7 @@ export type CreateJournalEntryRequestDto = {
210
210
  accountId?: string | undefined;
211
211
  accountingPeriodId?: string | undefined;
212
212
  accountingReason?: CreateJournalEntryRequestDtoAccountingReason | undefined;
213
+ additionalInformation?: string | undefined;
213
214
  advancePayment?: AdvancePaymentInput | undefined;
214
215
  currency?: CreateJournalEntryRequestDtoCurrency | undefined;
215
216
  debitCreditIndicator?:
@@ -259,6 +260,7 @@ export type CreateJournalEntryRequestDto$Outbound = {
259
260
  accountId?: string | undefined;
260
261
  accountingPeriodId?: string | undefined;
261
262
  accountingReason?: string | undefined;
263
+ additionalInformation?: string | undefined;
262
264
  advancePayment?: AdvancePaymentInput$Outbound | undefined;
263
265
  currency?: string | undefined;
264
266
  debitCreditIndicator?: string | undefined;
@@ -289,6 +291,7 @@ export const CreateJournalEntryRequestDto$outboundSchema: z.ZodMiniType<
289
291
  accountingReason: z.optional(
290
292
  CreateJournalEntryRequestDtoAccountingReason$outboundSchema,
291
293
  ),
294
+ additionalInformation: z.optional(z.string()),
292
295
  advancePayment: z.optional(AdvancePaymentInput$outboundSchema),
293
296
  currency: z.optional(CreateJournalEntryRequestDtoCurrency$outboundSchema),
294
297
  debitCreditIndicator: z.optional(
@@ -136,6 +136,7 @@ export * from "./purchase-order-line-item-response-dto.js";
136
136
  export * from "./purchase-order-response-dto.js";
137
137
  export * from "./sales-order-line-item-response-dto.js";
138
138
  export * from "./sales-order-response-dto.js";
139
+ export * from "./submission-page-localization-dto.js";
139
140
  export * from "./submission-page-style-dto.js";
140
141
  export * from "./subscription.js";
141
142
  export * from "./system-registration-dto.js";
@@ -227,6 +227,7 @@ export type JournalEntryResponseDto = {
227
227
  accountId: string | null;
228
228
  accountingPeriodId: string | null;
229
229
  accountingReason: JournalEntryResponseDtoAccountingReason | null;
230
+ additionalInformation?: string | null | undefined;
230
231
  advancePayment?: AdvancePayment | null | undefined;
231
232
  createdDate: string | null;
232
233
  currency: JournalEntryResponseDtoCurrency | null;
@@ -310,6 +311,7 @@ export const JournalEntryResponseDto$inboundSchema: z.ZodMiniType<
310
311
  accountingReason: types.nullable(
311
312
  JournalEntryResponseDtoAccountingReason$inboundSchema,
312
313
  ),
314
+ additionalInformation: z.optional(z.nullable(types.string())),
313
315
  advancePayment: z.optional(
314
316
  z.nullable(z.lazy(() => AdvancePayment$inboundSchema)),
315
317
  ),
@@ -0,0 +1,217 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4-mini";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { ClosedEnum } from "../../types/enums.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import * as types from "../../types/primitives.js";
10
+ import { SDKValidationError } from "../errors/sdk-validation-error.js";
11
+ import * as models from "../index.js";
12
+
13
+ export type GetOpenItemsAsyncGlobals = {
14
+ apiKey?: string | undefined;
15
+ accountKey?: string | undefined;
16
+ };
17
+
18
+ export const GetOpenItemsAsyncLimit = {
19
+ Five: 5,
20
+ Ten: 10,
21
+ Twenty: 20,
22
+ Fifty: 50,
23
+ OneHundred: 100,
24
+ } as const;
25
+ export type GetOpenItemsAsyncLimit = ClosedEnum<typeof GetOpenItemsAsyncLimit>;
26
+
27
+ export type GetOpenItemsAsyncRequest = {
28
+ page?: number | undefined;
29
+ limit?: GetOpenItemsAsyncLimit | undefined;
30
+ /**
31
+ * Environment name (required for multi-environment systems such as Business Central)
32
+ */
33
+ environmentName?: string | undefined;
34
+ /**
35
+ * ID of the company (required for multi-company target systems)
36
+ */
37
+ companyId?: string | undefined;
38
+ /**
39
+ * When true, returns the unprocessed response from the upstream target system
40
+ */
41
+ rawData?: boolean | undefined;
42
+ /**
43
+ * ISO 8601 start date of the fiscal year used for balance calculation
44
+ */
45
+ fiscalYearStartDate?: string | undefined;
46
+ /**
47
+ * API key
48
+ */
49
+ apiKey?: string | undefined;
50
+ /**
51
+ * Account key
52
+ */
53
+ accountKey?: string | undefined;
54
+ };
55
+
56
+ export type GetOpenItemsAsyncPagination = {
57
+ total: number;
58
+ perPage: number;
59
+ currentPage: number;
60
+ totalPages: number;
61
+ };
62
+
63
+ export type GetOpenItemsAsyncMeta = {
64
+ warnings?: Array<string> | null | undefined;
65
+ pagination?: GetOpenItemsAsyncPagination | null | undefined;
66
+ };
67
+
68
+ export type GetOpenItemsAsyncErrors = {};
69
+
70
+ export type GetOpenItemsAsyncRawData = {};
71
+
72
+ /**
73
+ * Open items fetch queued successfully. Processed asynchronously and returns 202 with taskId.
74
+ */
75
+ export type GetOpenItemsAsyncResponse = {
76
+ meta?: GetOpenItemsAsyncMeta | null | undefined;
77
+ data: models.TaskIdResponseDto;
78
+ errors: GetOpenItemsAsyncErrors | null;
79
+ rawData: GetOpenItemsAsyncRawData | null;
80
+ };
81
+
82
+ /** @internal */
83
+ export const GetOpenItemsAsyncLimit$outboundSchema: z.ZodMiniEnum<
84
+ typeof GetOpenItemsAsyncLimit
85
+ > = z.enum(GetOpenItemsAsyncLimit);
86
+
87
+ /** @internal */
88
+ export type GetOpenItemsAsyncRequest$Outbound = {
89
+ page?: number | undefined;
90
+ limit?: number | undefined;
91
+ environmentName?: string | undefined;
92
+ companyId?: string | undefined;
93
+ rawData?: boolean | undefined;
94
+ fiscalYearStartDate?: string | undefined;
95
+ apiKey?: string | undefined;
96
+ accountKey?: string | undefined;
97
+ };
98
+
99
+ /** @internal */
100
+ export const GetOpenItemsAsyncRequest$outboundSchema: z.ZodMiniType<
101
+ GetOpenItemsAsyncRequest$Outbound,
102
+ GetOpenItemsAsyncRequest
103
+ > = z.object({
104
+ page: z.optional(z.number()),
105
+ limit: z.optional(GetOpenItemsAsyncLimit$outboundSchema),
106
+ environmentName: z.optional(z.string()),
107
+ companyId: z.optional(z.string()),
108
+ rawData: z.optional(z.boolean()),
109
+ fiscalYearStartDate: z.optional(z.string()),
110
+ apiKey: z.optional(z.string()),
111
+ accountKey: z.optional(z.string()),
112
+ });
113
+
114
+ export function getOpenItemsAsyncRequestToJSON(
115
+ getOpenItemsAsyncRequest: GetOpenItemsAsyncRequest,
116
+ ): string {
117
+ return JSON.stringify(
118
+ GetOpenItemsAsyncRequest$outboundSchema.parse(getOpenItemsAsyncRequest),
119
+ );
120
+ }
121
+
122
+ /** @internal */
123
+ export const GetOpenItemsAsyncPagination$inboundSchema: z.ZodMiniType<
124
+ GetOpenItemsAsyncPagination,
125
+ unknown
126
+ > = z.object({
127
+ total: types.number(),
128
+ perPage: types.number(),
129
+ currentPage: types.number(),
130
+ totalPages: types.number(),
131
+ });
132
+
133
+ export function getOpenItemsAsyncPaginationFromJSON(
134
+ jsonString: string,
135
+ ): SafeParseResult<GetOpenItemsAsyncPagination, SDKValidationError> {
136
+ return safeParse(
137
+ jsonString,
138
+ (x) => GetOpenItemsAsyncPagination$inboundSchema.parse(JSON.parse(x)),
139
+ `Failed to parse 'GetOpenItemsAsyncPagination' from JSON`,
140
+ );
141
+ }
142
+
143
+ /** @internal */
144
+ export const GetOpenItemsAsyncMeta$inboundSchema: z.ZodMiniType<
145
+ GetOpenItemsAsyncMeta,
146
+ unknown
147
+ > = z.object({
148
+ warnings: z.optional(z.nullable(z.array(types.string()))),
149
+ pagination: z.optional(
150
+ z.nullable(z.lazy(() => GetOpenItemsAsyncPagination$inboundSchema)),
151
+ ),
152
+ });
153
+
154
+ export function getOpenItemsAsyncMetaFromJSON(
155
+ jsonString: string,
156
+ ): SafeParseResult<GetOpenItemsAsyncMeta, SDKValidationError> {
157
+ return safeParse(
158
+ jsonString,
159
+ (x) => GetOpenItemsAsyncMeta$inboundSchema.parse(JSON.parse(x)),
160
+ `Failed to parse 'GetOpenItemsAsyncMeta' from JSON`,
161
+ );
162
+ }
163
+
164
+ /** @internal */
165
+ export const GetOpenItemsAsyncErrors$inboundSchema: z.ZodMiniType<
166
+ GetOpenItemsAsyncErrors,
167
+ unknown
168
+ > = z.object({});
169
+
170
+ export function getOpenItemsAsyncErrorsFromJSON(
171
+ jsonString: string,
172
+ ): SafeParseResult<GetOpenItemsAsyncErrors, SDKValidationError> {
173
+ return safeParse(
174
+ jsonString,
175
+ (x) => GetOpenItemsAsyncErrors$inboundSchema.parse(JSON.parse(x)),
176
+ `Failed to parse 'GetOpenItemsAsyncErrors' from JSON`,
177
+ );
178
+ }
179
+
180
+ /** @internal */
181
+ export const GetOpenItemsAsyncRawData$inboundSchema: z.ZodMiniType<
182
+ GetOpenItemsAsyncRawData,
183
+ unknown
184
+ > = z.object({});
185
+
186
+ export function getOpenItemsAsyncRawDataFromJSON(
187
+ jsonString: string,
188
+ ): SafeParseResult<GetOpenItemsAsyncRawData, SDKValidationError> {
189
+ return safeParse(
190
+ jsonString,
191
+ (x) => GetOpenItemsAsyncRawData$inboundSchema.parse(JSON.parse(x)),
192
+ `Failed to parse 'GetOpenItemsAsyncRawData' from JSON`,
193
+ );
194
+ }
195
+
196
+ /** @internal */
197
+ export const GetOpenItemsAsyncResponse$inboundSchema: z.ZodMiniType<
198
+ GetOpenItemsAsyncResponse,
199
+ unknown
200
+ > = z.object({
201
+ meta: z.optional(
202
+ z.nullable(z.lazy(() => GetOpenItemsAsyncMeta$inboundSchema)),
203
+ ),
204
+ data: models.TaskIdResponseDto$inboundSchema,
205
+ errors: types.nullable(z.lazy(() => GetOpenItemsAsyncErrors$inboundSchema)),
206
+ rawData: types.nullable(z.lazy(() => GetOpenItemsAsyncRawData$inboundSchema)),
207
+ });
208
+
209
+ export function getOpenItemsAsyncResponseFromJSON(
210
+ jsonString: string,
211
+ ): SafeParseResult<GetOpenItemsAsyncResponse, SDKValidationError> {
212
+ return safeParse(
213
+ jsonString,
214
+ (x) => GetOpenItemsAsyncResponse$inboundSchema.parse(JSON.parse(x)),
215
+ `Failed to parse 'GetOpenItemsAsyncResponse' from JSON`,
216
+ );
217
+ }
@@ -108,6 +108,7 @@ export * from "./get-offer-line-item.js";
108
108
  export * from "./get-offer-line-items.js";
109
109
  export * from "./get-offer.js";
110
110
  export * from "./get-offers.js";
111
+ export * from "./get-open-items-async.js";
111
112
  export * from "./get-open-items.js";
112
113
  export * from "./get-payment-term.js";
113
114
  export * from "./get-payment-terms.js";
@@ -40,6 +40,10 @@ export type SystemLoginUrlRequest = {
40
40
  * When set to true, appends a signature as a query parameter to the redirect URL.
41
41
  */
42
42
  includeSignature?: boolean | undefined;
43
+ /**
44
+ * BCP-47 language tag (for example de or de-DE) the authentication pages should be shown in. Falls back to the texts configured without a locale.
45
+ */
46
+ locale?: string | undefined;
43
47
  /**
44
48
  * API key
45
49
  */
@@ -60,6 +64,7 @@ export type SystemLoginUrlRequest$Outbound = {
60
64
  baseUrl?: string | undefined;
61
65
  environmentSelection?: boolean | undefined;
62
66
  include_signature?: boolean | undefined;
67
+ locale?: string | undefined;
63
68
  apiKey?: string | undefined;
64
69
  accountKey?: string | undefined;
65
70
  };
@@ -78,6 +83,7 @@ export const SystemLoginUrlRequest$outboundSchema: z.ZodMiniType<
78
83
  baseUrl: z.optional(z.string()),
79
84
  environmentSelection: z.optional(z.boolean()),
80
85
  includeSignature: z.optional(z.boolean()),
86
+ locale: z.optional(z.string()),
81
87
  apiKey: z.optional(z.string()),
82
88
  accountKey: z.optional(z.string()),
83
89
  }),
@@ -0,0 +1,44 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4-mini";
6
+
7
+ export type SubmissionPageLocalizationDto = {
8
+ locale?: string | undefined;
9
+ titleText?: string | undefined;
10
+ freeText?: string | undefined;
11
+ submitButtonText?: string | undefined;
12
+ cancelButtonText?: string | undefined;
13
+ };
14
+
15
+ /** @internal */
16
+ export type SubmissionPageLocalizationDto$Outbound = {
17
+ locale?: string | undefined;
18
+ titleText?: string | undefined;
19
+ freeText?: string | undefined;
20
+ submitButtonText?: string | undefined;
21
+ cancelButtonText?: string | undefined;
22
+ };
23
+
24
+ /** @internal */
25
+ export const SubmissionPageLocalizationDto$outboundSchema: z.ZodMiniType<
26
+ SubmissionPageLocalizationDto$Outbound,
27
+ SubmissionPageLocalizationDto
28
+ > = z.object({
29
+ locale: z.optional(z.string()),
30
+ titleText: z.optional(z.string()),
31
+ freeText: z.optional(z.string()),
32
+ submitButtonText: z.optional(z.string()),
33
+ cancelButtonText: z.optional(z.string()),
34
+ });
35
+
36
+ export function submissionPageLocalizationDtoToJSON(
37
+ submissionPageLocalizationDto: SubmissionPageLocalizationDto,
38
+ ): string {
39
+ return JSON.stringify(
40
+ SubmissionPageLocalizationDto$outboundSchema.parse(
41
+ submissionPageLocalizationDto,
42
+ ),
43
+ );
44
+ }
@@ -3,6 +3,11 @@
3
3
  */
4
4
 
5
5
  import * as z from "zod/v4-mini";
6
+ import {
7
+ SubmissionPageLocalizationDto,
8
+ SubmissionPageLocalizationDto$Outbound,
9
+ SubmissionPageLocalizationDto$outboundSchema,
10
+ } from "./submission-page-localization-dto.js";
6
11
 
7
12
  export type SubmissionPageStyleDto = {
8
13
  logoSvg: string;
@@ -16,6 +21,7 @@ export type SubmissionPageStyleDto = {
16
21
  cancelButtonColor: string;
17
22
  cancelButtonTextColor: string;
18
23
  errorTextColor: string;
24
+ pageLocalizations?: Array<SubmissionPageLocalizationDto> | undefined;
19
25
  };
20
26
 
21
27
  /** @internal */
@@ -31,6 +37,7 @@ export type SubmissionPageStyleDto$Outbound = {
31
37
  cancelButtonColor: string;
32
38
  cancelButtonTextColor: string;
33
39
  errorTextColor: string;
40
+ pageLocalizations?: Array<SubmissionPageLocalizationDto$Outbound> | undefined;
34
41
  };
35
42
 
36
43
  /** @internal */
@@ -49,6 +56,9 @@ export const SubmissionPageStyleDto$outboundSchema: z.ZodMiniType<
49
56
  cancelButtonColor: z.string(),
50
57
  cancelButtonTextColor: z.string(),
51
58
  errorTextColor: z.string(),
59
+ pageLocalizations: z.optional(
60
+ z.array(SubmissionPageLocalizationDto$outboundSchema),
61
+ ),
52
62
  });
53
63
 
54
64
  export function submissionPageStyleDtoToJSON(
@@ -86,6 +86,7 @@ import { accountingGetOfferLineItem } from "../funcs/accounting-get-offer-line-i
86
86
  import { accountingGetOfferLineItems } from "../funcs/accounting-get-offer-line-items.js";
87
87
  import { accountingGetOffer } from "../funcs/accounting-get-offer.js";
88
88
  import { accountingGetOffers } from "../funcs/accounting-get-offers.js";
89
+ import { accountingGetOpenItemsAsync } from "../funcs/accounting-get-open-items-async.js";
89
90
  import { accountingGetOpenItems } from "../funcs/accounting-get-open-items.js";
90
91
  import { accountingGetPaymentTerm } from "../funcs/accounting-get-payment-term.js";
91
92
  import { accountingGetPaymentTerms } from "../funcs/accounting-get-payment-terms.js";
@@ -1397,6 +1398,17 @@ export class Accounting extends ClientSDK {
1397
1398
  ));
1398
1399
  }
1399
1400
 
1401
+ async getOpenItemsAsync(
1402
+ request?: operations.GetOpenItemsAsyncRequest | undefined,
1403
+ options?: RequestOptions,
1404
+ ): Promise<operations.GetOpenItemsAsyncResponse> {
1405
+ return unwrapAsync(accountingGetOpenItemsAsync(
1406
+ this,
1407
+ request,
1408
+ options,
1409
+ ));
1410
+ }
1411
+
1400
1412
  async getTrialBalance(
1401
1413
  request?: operations.GetTrialBalanceRequest | undefined,
1402
1414
  options?: RequestOptions,