@maesn/typescript-sdk 0.8.31 → 0.8.32

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 (48) hide show
  1. package/README.md +2 -0
  2. package/esm/funcs/accounting-create-journal-entry-attachments.js +1 -1
  3. package/esm/funcs/accounting-get-document-permissions.d.ts +11 -0
  4. package/esm/funcs/accounting-get-document-permissions.d.ts.map +1 -0
  5. package/esm/funcs/accounting-get-document-permissions.js +85 -0
  6. package/esm/funcs/accounting-get-document-permissions.js.map +1 -0
  7. package/esm/funcs/accounting-get-journal-entry-attachment-by-id.js +1 -1
  8. package/esm/funcs/accounting-get-journal-entry-attachments.js +1 -1
  9. package/esm/lib/config.d.ts +3 -3
  10. package/esm/lib/config.js +3 -3
  11. package/esm/lib/config.js.map +1 -1
  12. package/esm/models/document-permissions-response-dto.d.ts +10 -0
  13. package/esm/models/document-permissions-response-dto.d.ts.map +1 -0
  14. package/esm/models/document-permissions-response-dto.js +14 -0
  15. package/esm/models/document-permissions-response-dto.js.map +1 -0
  16. package/esm/models/index.d.ts +1 -0
  17. package/esm/models/index.d.ts.map +1 -1
  18. package/esm/models/index.js +1 -0
  19. package/esm/models/index.js.map +1 -1
  20. package/esm/models/operations/get-document-permissions.d.ts +74 -0
  21. package/esm/models/operations/get-document-permissions.d.ts.map +1 -0
  22. package/esm/models/operations/get-document-permissions.js +57 -0
  23. package/esm/models/operations/get-document-permissions.js.map +1 -0
  24. package/esm/models/operations/index.d.ts +1 -0
  25. package/esm/models/operations/index.d.ts.map +1 -1
  26. package/esm/models/operations/index.js +1 -0
  27. package/esm/models/operations/index.js.map +1 -1
  28. package/esm/sdk/accounting.d.ts +1 -0
  29. package/esm/sdk/accounting.d.ts.map +1 -1
  30. package/esm/sdk/accounting.js +4 -0
  31. package/esm/sdk/accounting.js.map +1 -1
  32. package/esm/sdk/accounting.lazy.d.ts +1 -0
  33. package/esm/sdk/accounting.lazy.d.ts.map +1 -1
  34. package/esm/sdk/accounting.lazy.js +8 -0
  35. package/esm/sdk/accounting.lazy.js.map +1 -1
  36. package/jsr.json +1 -1
  37. package/package.json +1 -1
  38. package/src/funcs/accounting-create-journal-entry-attachments.ts +1 -1
  39. package/src/funcs/accounting-get-document-permissions.ts +180 -0
  40. package/src/funcs/accounting-get-journal-entry-attachment-by-id.ts +1 -1
  41. package/src/funcs/accounting-get-journal-entry-attachments.ts +1 -1
  42. package/src/lib/config.ts +3 -3
  43. package/src/models/document-permissions-response-dto.ts +33 -0
  44. package/src/models/index.ts +1 -0
  45. package/src/models/operations/get-document-permissions.ts +202 -0
  46. package/src/models/operations/index.ts +1 -0
  47. package/src/sdk/accounting.lazy.ts +31 -0
  48. package/src/sdk/accounting.ts +12 -0
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@maesn/typescript-sdk",
5
- "version": "0.8.31",
5
+ "version": "0.8.32",
6
6
  "exports": {
7
7
  ".": "./src/index.ts",
8
8
  "./node": "./src/node.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maesn/typescript-sdk",
3
- "version": "0.8.31",
3
+ "version": "0.8.32",
4
4
  "author": "Speakeasy",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -132,7 +132,7 @@ async function $do(
132
132
  }),
133
133
  };
134
134
  const pathResult = encodePath(
135
- "/accounting/journalEntries/{journalEntryId}/Attachments",
135
+ "/accounting/journalEntries/{journalEntryId}/attachments",
136
136
  pathParams,
137
137
  );
138
138
  if (!pathResult.ok) {
@@ -0,0 +1,180 @@
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 accountingGetDocumentPermissions(
29
+ client: MaesnCore,
30
+ request?: operations.GetDocumentPermissionsRequest | undefined,
31
+ options?: RequestOptions,
32
+ ): APIPromise<
33
+ Result<
34
+ operations.GetDocumentPermissionsResponse,
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.GetDocumentPermissionsRequest | undefined,
55
+ options?: RequestOptions,
56
+ ): Promise<
57
+ [
58
+ Result<
59
+ operations.GetDocumentPermissionsResponse,
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.GetDocumentPermissionsRequest$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/files/documentPermissions")();
88
+
89
+ const query = encodeFormQuery({
90
+ "companyId": payload?.companyId,
91
+ "rawData": payload?.rawData,
92
+ });
93
+
94
+ const headers = new Headers(compactMap({
95
+ Accept: "application/json",
96
+ "X-ACCOUNT-KEY": encodeSimple(
97
+ "X-ACCOUNT-KEY",
98
+ payload?.accountKey ?? client._options.accountKey,
99
+ { explode: false, charEncoding: "none" },
100
+ ),
101
+ "X-API-KEY": encodeSimple(
102
+ "X-API-KEY",
103
+ payload?.apiKey ?? client._options.apiKey,
104
+ { explode: false, charEncoding: "none" },
105
+ ),
106
+ }));
107
+
108
+ const context = {
109
+ options: client._options,
110
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
111
+ operationID: "getDocumentPermissions",
112
+ oAuth2Scopes: null,
113
+
114
+ resolvedSecurity: null,
115
+
116
+ securitySource: null,
117
+ retryConfig: options?.retries
118
+ || client._options.retryConfig
119
+ || {
120
+ strategy: "backoff",
121
+ backoff: {
122
+ initialInterval: 500,
123
+ maxInterval: 60000,
124
+ exponent: 1.5,
125
+ maxElapsedTime: 3600000,
126
+ },
127
+ retryConnectionErrors: true,
128
+ }
129
+ || { strategy: "none" },
130
+ retryCodes: options?.retryCodes || ["5XX"],
131
+ };
132
+
133
+ const requestRes = client._createRequest(context, {
134
+ method: "GET",
135
+ baseURL: options?.serverURL,
136
+ path: path,
137
+ headers: headers,
138
+ query: query,
139
+ body: body,
140
+ userAgent: client._options.userAgent,
141
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
142
+ }, options);
143
+ if (!requestRes.ok) {
144
+ return [requestRes, { status: "invalid" }];
145
+ }
146
+ const req = requestRes.value;
147
+
148
+ const doResult = await client._do(req, {
149
+ context,
150
+ isErrorStatusCode: (statusCode: number) =>
151
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
152
+ retryConfig: context.retryConfig,
153
+ retryCodes: context.retryCodes,
154
+ });
155
+ if (!doResult.ok) {
156
+ return [doResult, { status: "request-error", request: req }];
157
+ }
158
+ const response = doResult.value;
159
+
160
+ const [result] = await M.match<
161
+ operations.GetDocumentPermissionsResponse,
162
+ | MaesnError
163
+ | ResponseValidationError
164
+ | ConnectionError
165
+ | RequestAbortedError
166
+ | RequestTimeoutError
167
+ | InvalidRequestError
168
+ | UnexpectedClientError
169
+ | SDKValidationError
170
+ >(
171
+ M.json(200, operations.GetDocumentPermissionsResponse$inboundSchema),
172
+ M.fail("4XX"),
173
+ M.fail("5XX"),
174
+ )(response, req);
175
+ if (!result.ok) {
176
+ return [result, { status: "complete", request: req, response }];
177
+ }
178
+
179
+ return [result, { status: "complete", request: req, response }];
180
+ }
@@ -94,7 +94,7 @@ async function $do(
94
94
  }),
95
95
  };
96
96
  const pathResult = encodePath(
97
- "/accounting/journalEntries/{journalEntryId}/Attachments/{attachmentId}",
97
+ "/accounting/journalEntries/{journalEntryId}/attachments/{attachmentId}",
98
98
  pathParams,
99
99
  );
100
100
  if (!pathResult.ok) {
@@ -90,7 +90,7 @@ async function $do(
90
90
  }),
91
91
  };
92
92
  const pathResult = encodePath(
93
- "/accounting/journalEntries/{journalEntryId}/Attachments",
93
+ "/accounting/journalEntries/{journalEntryId}/attachments",
94
94
  pathParams,
95
95
  );
96
96
  if (!pathResult.ok) {
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.31",
55
- genVersion: "2.968.1",
54
+ sdkVersion: "0.8.32",
55
+ genVersion: "2.968.17",
56
56
  userAgent:
57
- "speakeasy-sdk/typescript 0.8.31 2.968.1 1.0 @maesn/typescript-sdk",
57
+ "speakeasy-sdk/typescript 0.8.32 2.968.17 1.0 @maesn/typescript-sdk",
58
58
  } as const;
@@ -0,0 +1,33 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4-mini";
6
+ import { lazySchema as lazySchema$, safeParse } from "../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../types/fp.js";
8
+ import * as types from "../types/primitives.js";
9
+ import { SDKValidationError } from "./errors/sdk-validation-error.js";
10
+
11
+ export type DocumentPermissionsResponseDto = {
12
+ isDocumentStorageEnabled: boolean | null;
13
+ };
14
+
15
+ /** @internal */
16
+ export const DocumentPermissionsResponseDto$inboundSchema: z.ZodMiniType<
17
+ DocumentPermissionsResponseDto,
18
+ unknown
19
+ > = /* @__PURE__ */ lazySchema$(() =>
20
+ z.object({
21
+ isDocumentStorageEnabled: types.nullable(types.boolean()),
22
+ })
23
+ );
24
+
25
+ export function documentPermissionsResponseDtoFromJSON(
26
+ jsonString: string,
27
+ ): SafeParseResult<DocumentPermissionsResponseDto, SDKValidationError> {
28
+ return safeParse(
29
+ jsonString,
30
+ (x) => DocumentPermissionsResponseDto$inboundSchema.parse(JSON.parse(x)),
31
+ `Failed to parse 'DocumentPermissionsResponseDto' from JSON`,
32
+ );
33
+ }
@@ -92,6 +92,7 @@ export * from "./dimension.js";
92
92
  export * from "./discount-period-request.js";
93
93
  export * from "./discount-period-response.js";
94
94
  export * from "./document-extensions-response-dto.js";
95
+ export * from "./document-permissions-response-dto.js";
95
96
  export * from "./document-response-dto.js";
96
97
  export * from "./document-types-response-dto.js";
97
98
  export * from "./email-address-v2.js";
@@ -0,0 +1,202 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4-mini";
6
+ import { lazySchema as lazySchema$, safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import * as types from "../../types/primitives.js";
9
+ import { SDKValidationError } from "../errors/sdk-validation-error.js";
10
+ import * as models from "../index.js";
11
+
12
+ export type GetDocumentPermissionsGlobals = {
13
+ apiKey?: string | undefined;
14
+ accountKey?: string | undefined;
15
+ };
16
+
17
+ export type GetDocumentPermissionsRequest = {
18
+ /**
19
+ * ID of the company (required for multi-company target systems)
20
+ */
21
+ companyId?: string | undefined;
22
+ /**
23
+ * When true, returns the unprocessed response from the upstream target system
24
+ */
25
+ rawData?: boolean | undefined;
26
+ /**
27
+ * API key
28
+ */
29
+ apiKey?: string | undefined;
30
+ /**
31
+ * Account key
32
+ */
33
+ accountKey?: string | undefined;
34
+ };
35
+
36
+ export type GetDocumentPermissionsPagination = {
37
+ total: number;
38
+ perPage: number;
39
+ currentPage: number;
40
+ totalPages: number;
41
+ };
42
+
43
+ export type GetDocumentPermissionsMeta = {
44
+ warnings?: Array<string> | null | undefined;
45
+ pagination?: GetDocumentPermissionsPagination | null | undefined;
46
+ partialErrors?: Array<models.PartialError> | null | undefined;
47
+ };
48
+
49
+ export type GetDocumentPermissionsErrors = {};
50
+
51
+ export type GetDocumentPermissionsRawData = {};
52
+
53
+ /**
54
+ * Permissions for file/document storage for the authenticated end user's connected target system
55
+ */
56
+ export type GetDocumentPermissionsResponse = {
57
+ meta?: GetDocumentPermissionsMeta | null | undefined;
58
+ data: models.DocumentPermissionsResponseDto;
59
+ errors: GetDocumentPermissionsErrors | null;
60
+ rawData: GetDocumentPermissionsRawData | null;
61
+ };
62
+
63
+ /** @internal */
64
+ export type GetDocumentPermissionsRequest$Outbound = {
65
+ companyId?: string | undefined;
66
+ rawData?: boolean | undefined;
67
+ apiKey?: string | undefined;
68
+ accountKey?: string | undefined;
69
+ };
70
+
71
+ /** @internal */
72
+ export const GetDocumentPermissionsRequest$outboundSchema: z.ZodMiniType<
73
+ GetDocumentPermissionsRequest$Outbound,
74
+ GetDocumentPermissionsRequest
75
+ > = /* @__PURE__ */ lazySchema$(() =>
76
+ z.object({
77
+ companyId: z.optional(z.string()),
78
+ rawData: z.optional(z.boolean()),
79
+ apiKey: z.optional(z.string()),
80
+ accountKey: z.optional(z.string()),
81
+ })
82
+ );
83
+
84
+ export function getDocumentPermissionsRequestToJSON(
85
+ getDocumentPermissionsRequest: GetDocumentPermissionsRequest,
86
+ ): string {
87
+ return JSON.stringify(
88
+ GetDocumentPermissionsRequest$outboundSchema.parse(
89
+ getDocumentPermissionsRequest,
90
+ ),
91
+ );
92
+ }
93
+
94
+ /** @internal */
95
+ export const GetDocumentPermissionsPagination$inboundSchema: z.ZodMiniType<
96
+ GetDocumentPermissionsPagination,
97
+ unknown
98
+ > = /* @__PURE__ */ lazySchema$(() =>
99
+ z.object({
100
+ total: types.number(),
101
+ perPage: types.number(),
102
+ currentPage: types.number(),
103
+ totalPages: types.number(),
104
+ })
105
+ );
106
+
107
+ export function getDocumentPermissionsPaginationFromJSON(
108
+ jsonString: string,
109
+ ): SafeParseResult<GetDocumentPermissionsPagination, SDKValidationError> {
110
+ return safeParse(
111
+ jsonString,
112
+ (x) => GetDocumentPermissionsPagination$inboundSchema.parse(JSON.parse(x)),
113
+ `Failed to parse 'GetDocumentPermissionsPagination' from JSON`,
114
+ );
115
+ }
116
+
117
+ /** @internal */
118
+ export const GetDocumentPermissionsMeta$inboundSchema: z.ZodMiniType<
119
+ GetDocumentPermissionsMeta,
120
+ unknown
121
+ > = /* @__PURE__ */ lazySchema$(() =>
122
+ z.object({
123
+ warnings: z.optional(z.nullable(z.array(types.string()))),
124
+ pagination: z.optional(
125
+ z.nullable(z.lazy(() => GetDocumentPermissionsPagination$inboundSchema)),
126
+ ),
127
+ partialErrors: z.optional(
128
+ z.nullable(z.array(models.PartialError$inboundSchema)),
129
+ ),
130
+ })
131
+ );
132
+
133
+ export function getDocumentPermissionsMetaFromJSON(
134
+ jsonString: string,
135
+ ): SafeParseResult<GetDocumentPermissionsMeta, SDKValidationError> {
136
+ return safeParse(
137
+ jsonString,
138
+ (x) => GetDocumentPermissionsMeta$inboundSchema.parse(JSON.parse(x)),
139
+ `Failed to parse 'GetDocumentPermissionsMeta' from JSON`,
140
+ );
141
+ }
142
+
143
+ /** @internal */
144
+ export const GetDocumentPermissionsErrors$inboundSchema: z.ZodMiniType<
145
+ GetDocumentPermissionsErrors,
146
+ unknown
147
+ > = /* @__PURE__ */ lazySchema$(() => z.object({}));
148
+
149
+ export function getDocumentPermissionsErrorsFromJSON(
150
+ jsonString: string,
151
+ ): SafeParseResult<GetDocumentPermissionsErrors, SDKValidationError> {
152
+ return safeParse(
153
+ jsonString,
154
+ (x) => GetDocumentPermissionsErrors$inboundSchema.parse(JSON.parse(x)),
155
+ `Failed to parse 'GetDocumentPermissionsErrors' from JSON`,
156
+ );
157
+ }
158
+
159
+ /** @internal */
160
+ export const GetDocumentPermissionsRawData$inboundSchema: z.ZodMiniType<
161
+ GetDocumentPermissionsRawData,
162
+ unknown
163
+ > = /* @__PURE__ */ lazySchema$(() => z.object({}));
164
+
165
+ export function getDocumentPermissionsRawDataFromJSON(
166
+ jsonString: string,
167
+ ): SafeParseResult<GetDocumentPermissionsRawData, SDKValidationError> {
168
+ return safeParse(
169
+ jsonString,
170
+ (x) => GetDocumentPermissionsRawData$inboundSchema.parse(JSON.parse(x)),
171
+ `Failed to parse 'GetDocumentPermissionsRawData' from JSON`,
172
+ );
173
+ }
174
+
175
+ /** @internal */
176
+ export const GetDocumentPermissionsResponse$inboundSchema: z.ZodMiniType<
177
+ GetDocumentPermissionsResponse,
178
+ unknown
179
+ > = /* @__PURE__ */ lazySchema$(() =>
180
+ z.object({
181
+ meta: z.optional(
182
+ z.nullable(z.lazy(() => GetDocumentPermissionsMeta$inboundSchema)),
183
+ ),
184
+ data: models.DocumentPermissionsResponseDto$inboundSchema,
185
+ errors: types.nullable(
186
+ z.lazy(() => GetDocumentPermissionsErrors$inboundSchema),
187
+ ),
188
+ rawData: types.nullable(
189
+ z.lazy(() => GetDocumentPermissionsRawData$inboundSchema),
190
+ ),
191
+ })
192
+ );
193
+
194
+ export function getDocumentPermissionsResponseFromJSON(
195
+ jsonString: string,
196
+ ): SafeParseResult<GetDocumentPermissionsResponse, SDKValidationError> {
197
+ return safeParse(
198
+ jsonString,
199
+ (x) => GetDocumentPermissionsResponse$inboundSchema.parse(JSON.parse(x)),
200
+ `Failed to parse 'GetDocumentPermissionsResponse' from JSON`,
201
+ );
202
+ }
@@ -89,6 +89,7 @@ export * from "./get-dimensions-by-dimension.js";
89
89
  export * from "./get-dimensions-v2.js";
90
90
  export * from "./get-dimensions.js";
91
91
  export * from "./get-document-extensions.js";
92
+ export * from "./get-document-permissions.js";
92
93
  export * from "./get-document-types.js";
93
94
  export * from "./get-end-user-list.js";
94
95
  export * from "./get-environments.js";
@@ -769,6 +769,26 @@ const accountingGetDocumentExtensions =
769
769
  ),
770
770
  )) as typeof import("../funcs/accounting-get-document-extensions.js").accountingGetDocumentExtensions;
771
771
 
772
+ let accountingGetDocumentPermissions$module:
773
+ | Promise<typeof import("../funcs/accounting-get-document-permissions.js")>
774
+ | undefined;
775
+ const accountingGetDocumentPermissions =
776
+ ((
777
+ ...args: Parameters<
778
+ typeof import("../funcs/accounting-get-document-permissions.js").accountingGetDocumentPermissions
779
+ >
780
+ ) =>
781
+ new APIPromise(
782
+ (accountingGetDocumentPermissions$module ??= import(
783
+ "../funcs/accounting-get-document-permissions.js"
784
+ ).catch((error: unknown) => {
785
+ accountingGetDocumentPermissions$module = undefined;
786
+ throw error;
787
+ })).then((module) =>
788
+ module.accountingGetDocumentPermissions(...args).$inspect()
789
+ ),
790
+ )) as typeof import("../funcs/accounting-get-document-permissions.js").accountingGetDocumentPermissions;
791
+
772
792
  let accountingGetAsyncTaskInfo$module:
773
793
  | Promise<typeof import("../funcs/accounting-get-async-task-info.js")>
774
794
  | undefined;
@@ -3183,6 +3203,17 @@ export class Accounting extends ClientSDK {
3183
3203
  ));
3184
3204
  }
3185
3205
 
3206
+ async getDocumentPermissions(
3207
+ request?: operations.GetDocumentPermissionsRequest | undefined,
3208
+ options?: RequestOptions,
3209
+ ): Promise<operations.GetDocumentPermissionsResponse> {
3210
+ return unwrapAsync(accountingGetDocumentPermissions(
3211
+ this,
3212
+ request,
3213
+ options,
3214
+ ));
3215
+ }
3216
+
3186
3217
  async getAsyncTaskInfo(
3187
3218
  request: operations.GetAsyncTaskInfoRequest,
3188
3219
  options?: RequestOptions,
@@ -70,6 +70,7 @@ import { accountingGetCustomers } from "../funcs/accounting-get-customers.js";
70
70
  import { accountingGetDimensionsByDimension } from "../funcs/accounting-get-dimensions-by-dimension.js";
71
71
  import { accountingGetDimensions } from "../funcs/accounting-get-dimensions.js";
72
72
  import { accountingGetDocumentExtensions } from "../funcs/accounting-get-document-extensions.js";
73
+ import { accountingGetDocumentPermissions } from "../funcs/accounting-get-document-permissions.js";
73
74
  import { accountingGetDocumentTypes } from "../funcs/accounting-get-document-types.js";
74
75
  import { accountingGetExpense } from "../funcs/accounting-get-expense.js";
75
76
  import { accountingGetExpenses } from "../funcs/accounting-get-expenses.js";
@@ -602,6 +603,17 @@ export class Accounting extends ClientSDK {
602
603
  ));
603
604
  }
604
605
 
606
+ async getDocumentPermissions(
607
+ request?: operations.GetDocumentPermissionsRequest | undefined,
608
+ options?: RequestOptions,
609
+ ): Promise<operations.GetDocumentPermissionsResponse> {
610
+ return unwrapAsync(accountingGetDocumentPermissions(
611
+ this,
612
+ request,
613
+ options,
614
+ ));
615
+ }
616
+
605
617
  async getAsyncTaskInfo(
606
618
  request: operations.GetAsyncTaskInfoRequest,
607
619
  options?: RequestOptions,