@knowledge-stack/ksapi 1.84.0 → 1.85.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.
@@ -0,0 +1,160 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Knowledge Stack API
5
+ * Knowledge Stack backend API for authentication and knowledge management
6
+ *
7
+ * The version of the OpenAPI document: 0.1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
+ return new (P || (P = Promise))(function (resolve, reject) {
17
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
23
+ import * as runtime from '../runtime';
24
+ import { DocumentCheckoutResponseFromJSON, } from '../models/index';
25
+ /**
26
+ *
27
+ */
28
+ export class DocumentCheckoutApi extends runtime.BaseAPI {
29
+ /**
30
+ * Creates request options for acquireDocumentCheckout without sending the request
31
+ */
32
+ acquireDocumentCheckoutRequestOpts(requestParameters) {
33
+ return __awaiter(this, void 0, void 0, function* () {
34
+ if (requestParameters['pathPartId'] == null) {
35
+ throw new runtime.RequiredError('pathPartId', 'Required parameter "pathPartId" was null or undefined when calling acquireDocumentCheckout().');
36
+ }
37
+ const queryParameters = {};
38
+ const headerParameters = {};
39
+ if (requestParameters['authorization'] != null) {
40
+ headerParameters['authorization'] = String(requestParameters['authorization']);
41
+ }
42
+ let urlPath = `/v1/documents/{path_part_id}/checkout`;
43
+ urlPath = urlPath.replace(`{${"path_part_id"}}`, encodeURIComponent(String(requestParameters['pathPartId'])));
44
+ return {
45
+ path: urlPath,
46
+ method: 'POST',
47
+ headers: headerParameters,
48
+ query: queryParameters,
49
+ };
50
+ });
51
+ }
52
+ /**
53
+ * Acquire a write lock on the document. If the caller already holds the lock, re-acquire refreshes ``acquired_at``; the response is 200 in both cases. If another user holds the lock, returns 409. Locks have no TTL — they persist until released by the holder.
54
+ * Acquire Document Checkout Handler
55
+ */
56
+ acquireDocumentCheckoutRaw(requestParameters, initOverrides) {
57
+ return __awaiter(this, void 0, void 0, function* () {
58
+ const requestOptions = yield this.acquireDocumentCheckoutRequestOpts(requestParameters);
59
+ const response = yield this.request(requestOptions, initOverrides);
60
+ return new runtime.JSONApiResponse(response, (jsonValue) => DocumentCheckoutResponseFromJSON(jsonValue));
61
+ });
62
+ }
63
+ /**
64
+ * Acquire a write lock on the document. If the caller already holds the lock, re-acquire refreshes ``acquired_at``; the response is 200 in both cases. If another user holds the lock, returns 409. Locks have no TTL — they persist until released by the holder.
65
+ * Acquire Document Checkout Handler
66
+ */
67
+ acquireDocumentCheckout(requestParameters, initOverrides) {
68
+ return __awaiter(this, void 0, void 0, function* () {
69
+ const response = yield this.acquireDocumentCheckoutRaw(requestParameters, initOverrides);
70
+ return yield response.value();
71
+ });
72
+ }
73
+ /**
74
+ * Creates request options for getDocumentCheckout without sending the request
75
+ */
76
+ getDocumentCheckoutRequestOpts(requestParameters) {
77
+ return __awaiter(this, void 0, void 0, function* () {
78
+ if (requestParameters['pathPartId'] == null) {
79
+ throw new runtime.RequiredError('pathPartId', 'Required parameter "pathPartId" was null or undefined when calling getDocumentCheckout().');
80
+ }
81
+ const queryParameters = {};
82
+ const headerParameters = {};
83
+ if (requestParameters['authorization'] != null) {
84
+ headerParameters['authorization'] = String(requestParameters['authorization']);
85
+ }
86
+ let urlPath = `/v1/documents/{path_part_id}/checkout`;
87
+ urlPath = urlPath.replace(`{${"path_part_id"}}`, encodeURIComponent(String(requestParameters['pathPartId'])));
88
+ return {
89
+ path: urlPath,
90
+ method: 'GET',
91
+ headers: headerParameters,
92
+ query: queryParameters,
93
+ };
94
+ });
95
+ }
96
+ /**
97
+ * Get the active checkout for the document. 404 if no active checkout exists. The holder can always GET their own lock regardless of current path permissions (parallel to the release holder-bypass).
98
+ * Get Document Checkout Handler
99
+ */
100
+ getDocumentCheckoutRaw(requestParameters, initOverrides) {
101
+ return __awaiter(this, void 0, void 0, function* () {
102
+ const requestOptions = yield this.getDocumentCheckoutRequestOpts(requestParameters);
103
+ const response = yield this.request(requestOptions, initOverrides);
104
+ return new runtime.JSONApiResponse(response, (jsonValue) => DocumentCheckoutResponseFromJSON(jsonValue));
105
+ });
106
+ }
107
+ /**
108
+ * Get the active checkout for the document. 404 if no active checkout exists. The holder can always GET their own lock regardless of current path permissions (parallel to the release holder-bypass).
109
+ * Get Document Checkout Handler
110
+ */
111
+ getDocumentCheckout(requestParameters, initOverrides) {
112
+ return __awaiter(this, void 0, void 0, function* () {
113
+ const response = yield this.getDocumentCheckoutRaw(requestParameters, initOverrides);
114
+ return yield response.value();
115
+ });
116
+ }
117
+ /**
118
+ * Creates request options for releaseDocumentCheckout without sending the request
119
+ */
120
+ releaseDocumentCheckoutRequestOpts(requestParameters) {
121
+ return __awaiter(this, void 0, void 0, function* () {
122
+ if (requestParameters['pathPartId'] == null) {
123
+ throw new runtime.RequiredError('pathPartId', 'Required parameter "pathPartId" was null or undefined when calling releaseDocumentCheckout().');
124
+ }
125
+ const queryParameters = {};
126
+ const headerParameters = {};
127
+ if (requestParameters['authorization'] != null) {
128
+ headerParameters['authorization'] = String(requestParameters['authorization']);
129
+ }
130
+ let urlPath = `/v1/documents/{path_part_id}/checkout`;
131
+ urlPath = urlPath.replace(`{${"path_part_id"}}`, encodeURIComponent(String(requestParameters['pathPartId'])));
132
+ return {
133
+ path: urlPath,
134
+ method: 'DELETE',
135
+ headers: headerParameters,
136
+ query: queryParameters,
137
+ };
138
+ });
139
+ }
140
+ /**
141
+ * Release the write lock on the document. Only the holder may release the lock; others receive 403. The holder can always release regardless of current path permissions (in case a folder move relocated the doc to a path the holder can no longer write to).
142
+ * Release Document Checkout Handler
143
+ */
144
+ releaseDocumentCheckoutRaw(requestParameters, initOverrides) {
145
+ return __awaiter(this, void 0, void 0, function* () {
146
+ const requestOptions = yield this.releaseDocumentCheckoutRequestOpts(requestParameters);
147
+ const response = yield this.request(requestOptions, initOverrides);
148
+ return new runtime.VoidApiResponse(response);
149
+ });
150
+ }
151
+ /**
152
+ * Release the write lock on the document. Only the holder may release the lock; others receive 403. The holder can always release regardless of current path permissions (in case a folder move relocated the doc to a path the holder can no longer write to).
153
+ * Release Document Checkout Handler
154
+ */
155
+ releaseDocumentCheckout(requestParameters, initOverrides) {
156
+ return __awaiter(this, void 0, void 0, function* () {
157
+ yield this.releaseDocumentCheckoutRaw(requestParameters, initOverrides);
158
+ });
159
+ }
160
+ }
@@ -4,6 +4,7 @@ export * from './AuthApi';
4
4
  export * from './ChunkLineagesApi';
5
5
  export * from './ChunksApi';
6
6
  export * from './DefaultApi';
7
+ export * from './DocumentCheckoutApi';
7
8
  export * from './DocumentVersionsApi';
8
9
  export * from './DocumentsApi';
9
10
  export * from './FeaturesApi';
@@ -6,6 +6,7 @@ export * from './AuthApi';
6
6
  export * from './ChunkLineagesApi';
7
7
  export * from './ChunksApi';
8
8
  export * from './DefaultApi';
9
+ export * from './DocumentCheckoutApi';
9
10
  export * from './DocumentVersionsApi';
10
11
  export * from './DocumentsApi';
11
12
  export * from './FeaturesApi';
@@ -0,0 +1,65 @@
1
+ /**
2
+ * Knowledge Stack API
3
+ * Knowledge Stack backend API for authentication and knowledge management
4
+ *
5
+ * The version of the OpenAPI document: 0.1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * Active checkout state on a document.
14
+ * @export
15
+ * @interface DocumentCheckoutResponse
16
+ */
17
+ export interface DocumentCheckoutResponse {
18
+ /**
19
+ * Tenant ID
20
+ * @type {string}
21
+ * @memberof DocumentCheckoutResponse
22
+ */
23
+ tenantId: string;
24
+ /**
25
+ * Document's PathPart ID
26
+ * @type {string}
27
+ * @memberof DocumentCheckoutResponse
28
+ */
29
+ pathPartId: string;
30
+ /**
31
+ * User who holds the checkout
32
+ * @type {string}
33
+ * @memberof DocumentCheckoutResponse
34
+ */
35
+ userId: string;
36
+ /**
37
+ * When the checkout was acquired
38
+ * @type {Date}
39
+ * @memberof DocumentCheckoutResponse
40
+ */
41
+ acquiredAt: Date;
42
+ }
43
+ export declare const DocumentCheckoutResponsePropertyValidationAttributesMap: {
44
+ [property: string]: {
45
+ maxLength?: number;
46
+ minLength?: number;
47
+ pattern?: string;
48
+ maximum?: number;
49
+ exclusiveMaximum?: boolean;
50
+ minimum?: number;
51
+ exclusiveMinimum?: boolean;
52
+ multipleOf?: number;
53
+ maxItems?: number;
54
+ minItems?: number;
55
+ uniqueItems?: boolean;
56
+ };
57
+ };
58
+ /**
59
+ * Check if a given object implements the DocumentCheckoutResponse interface.
60
+ */
61
+ export declare function instanceOfDocumentCheckoutResponse(value: object): value is DocumentCheckoutResponse;
62
+ export declare function DocumentCheckoutResponseFromJSON(json: any): DocumentCheckoutResponse;
63
+ export declare function DocumentCheckoutResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DocumentCheckoutResponse;
64
+ export declare function DocumentCheckoutResponseToJSON(json: any): DocumentCheckoutResponse;
65
+ export declare function DocumentCheckoutResponseToJSONTyped(value?: DocumentCheckoutResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,56 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Knowledge Stack API
5
+ * Knowledge Stack backend API for authentication and knowledge management
6
+ *
7
+ * The version of the OpenAPI document: 0.1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export const DocumentCheckoutResponsePropertyValidationAttributesMap = {};
15
+ /**
16
+ * Check if a given object implements the DocumentCheckoutResponse interface.
17
+ */
18
+ export function instanceOfDocumentCheckoutResponse(value) {
19
+ if (!('tenantId' in value) || value['tenantId'] === undefined)
20
+ return false;
21
+ if (!('pathPartId' in value) || value['pathPartId'] === undefined)
22
+ return false;
23
+ if (!('userId' in value) || value['userId'] === undefined)
24
+ return false;
25
+ if (!('acquiredAt' in value) || value['acquiredAt'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ export function DocumentCheckoutResponseFromJSON(json) {
30
+ return DocumentCheckoutResponseFromJSONTyped(json, false);
31
+ }
32
+ export function DocumentCheckoutResponseFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'tenantId': json['tenant_id'],
38
+ 'pathPartId': json['path_part_id'],
39
+ 'userId': json['user_id'],
40
+ 'acquiredAt': (new Date(json['acquired_at'])),
41
+ };
42
+ }
43
+ export function DocumentCheckoutResponseToJSON(json) {
44
+ return DocumentCheckoutResponseToJSONTyped(json, false);
45
+ }
46
+ export function DocumentCheckoutResponseToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'tenant_id': value['tenantId'],
52
+ 'path_part_id': value['pathPartId'],
53
+ 'user_id': value['userId'],
54
+ 'acquired_at': value['acquiredAt'].toISOString(),
55
+ };
56
+ }
@@ -12,6 +12,7 @@
12
12
  import type { DocumentOrigin } from './DocumentOrigin';
13
13
  import type { TagResponse } from './TagResponse';
14
14
  import type { DocumentType } from './DocumentType';
15
+ import type { DocumentCheckoutResponse } from './DocumentCheckoutResponse';
15
16
  import type { DocumentVersionResponse } from './DocumentVersionResponse';
16
17
  /**
17
18
  * Document response model.
@@ -127,6 +128,12 @@ export interface DocumentResponse {
127
128
  * @memberof DocumentResponse
128
129
  */
129
130
  canWrite?: boolean | null;
131
+ /**
132
+ * Active write-lock state. Null when no checkout is held. Populated on detail endpoints (GET /v1/documents/{id}). Any tenant member with read access may observe this state.
133
+ * @type {DocumentCheckoutResponse}
134
+ * @memberof DocumentResponse
135
+ */
136
+ checkout?: DocumentCheckoutResponse | null;
130
137
  }
131
138
  /**
132
139
  * @export
@@ -14,6 +14,7 @@
14
14
  import { DocumentOriginFromJSON, DocumentOriginToJSON, } from './DocumentOrigin';
15
15
  import { TagResponseFromJSON, TagResponseToJSON, } from './TagResponse';
16
16
  import { DocumentTypeFromJSON, DocumentTypeToJSON, } from './DocumentType';
17
+ import { DocumentCheckoutResponseFromJSON, DocumentCheckoutResponseToJSON, } from './DocumentCheckoutResponse';
17
18
  import { DocumentVersionResponseFromJSON, DocumentVersionResponseToJSON, } from './DocumentVersionResponse';
18
19
  /**
19
20
  * @export
@@ -86,6 +87,7 @@ export function DocumentResponseFromJSONTyped(json, ignoreDiscriminator) {
86
87
  'updatedAt': (new Date(json['updated_at'])),
87
88
  'tags': json['tags'] == null ? undefined : (json['tags'].map(TagResponseFromJSON)),
88
89
  'canWrite': json['can_write'] == null ? undefined : json['can_write'],
90
+ 'checkout': json['checkout'] == null ? undefined : DocumentCheckoutResponseFromJSON(json['checkout']),
89
91
  };
90
92
  }
91
93
  export function DocumentResponseToJSON(json) {
@@ -114,5 +116,6 @@ export function DocumentResponseToJSONTyped(value, ignoreDiscriminator = false)
114
116
  'updated_at': value['updatedAt'].toISOString(),
115
117
  'tags': value['tags'] == null ? undefined : (value['tags'].map(TagResponseToJSON)),
116
118
  'can_write': value['canWrite'],
119
+ 'checkout': DocumentCheckoutResponseToJSON(value['checkout']),
117
120
  };
118
121
  }
@@ -41,6 +41,7 @@ export * from './CreateThreadRequest';
41
41
  export * from './CreateWorkflowDefinitionRequest';
42
42
  export * from './DirectorySyncResponse';
43
43
  export * from './DissolveSectionResponse';
44
+ export * from './DocumentCheckoutResponse';
44
45
  export * from './DocumentOrigin';
45
46
  export * from './DocumentResponse';
46
47
  export * from './DocumentType';
@@ -43,6 +43,7 @@ export * from './CreateThreadRequest';
43
43
  export * from './CreateWorkflowDefinitionRequest';
44
44
  export * from './DirectorySyncResponse';
45
45
  export * from './DissolveSectionResponse';
46
+ export * from './DocumentCheckoutResponse';
46
47
  export * from './DocumentOrigin';
47
48
  export * from './DocumentResponse';
48
49
  export * from './DocumentType';
@@ -0,0 +1,65 @@
1
+ /**
2
+ * Knowledge Stack API
3
+ * Knowledge Stack backend API for authentication and knowledge management
4
+ *
5
+ * The version of the OpenAPI document: 0.1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * Active checkout state on a document.
14
+ * @export
15
+ * @interface DocumentCheckoutResponse
16
+ */
17
+ export interface DocumentCheckoutResponse {
18
+ /**
19
+ * Tenant ID
20
+ * @type {string}
21
+ * @memberof DocumentCheckoutResponse
22
+ */
23
+ tenantId: string;
24
+ /**
25
+ * Document's PathPart ID
26
+ * @type {string}
27
+ * @memberof DocumentCheckoutResponse
28
+ */
29
+ pathPartId: string;
30
+ /**
31
+ * User who holds the checkout
32
+ * @type {string}
33
+ * @memberof DocumentCheckoutResponse
34
+ */
35
+ userId: string;
36
+ /**
37
+ * When the checkout was acquired
38
+ * @type {Date}
39
+ * @memberof DocumentCheckoutResponse
40
+ */
41
+ acquiredAt: Date;
42
+ }
43
+ export declare const DocumentCheckoutResponsePropertyValidationAttributesMap: {
44
+ [property: string]: {
45
+ maxLength?: number;
46
+ minLength?: number;
47
+ pattern?: string;
48
+ maximum?: number;
49
+ exclusiveMaximum?: boolean;
50
+ minimum?: number;
51
+ exclusiveMinimum?: boolean;
52
+ multipleOf?: number;
53
+ maxItems?: number;
54
+ minItems?: number;
55
+ uniqueItems?: boolean;
56
+ };
57
+ };
58
+ /**
59
+ * Check if a given object implements the DocumentCheckoutResponse interface.
60
+ */
61
+ export declare function instanceOfDocumentCheckoutResponse(value: object): value is DocumentCheckoutResponse;
62
+ export declare function DocumentCheckoutResponseFromJSON(json: any): DocumentCheckoutResponse;
63
+ export declare function DocumentCheckoutResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DocumentCheckoutResponse;
64
+ export declare function DocumentCheckoutResponseToJSON(json: any): DocumentCheckoutResponse;
65
+ export declare function DocumentCheckoutResponseToJSONTyped(value?: DocumentCheckoutResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Knowledge Stack API
6
+ * Knowledge Stack backend API for authentication and knowledge management
7
+ *
8
+ * The version of the OpenAPI document: 0.1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.DocumentCheckoutResponsePropertyValidationAttributesMap = void 0;
17
+ exports.instanceOfDocumentCheckoutResponse = instanceOfDocumentCheckoutResponse;
18
+ exports.DocumentCheckoutResponseFromJSON = DocumentCheckoutResponseFromJSON;
19
+ exports.DocumentCheckoutResponseFromJSONTyped = DocumentCheckoutResponseFromJSONTyped;
20
+ exports.DocumentCheckoutResponseToJSON = DocumentCheckoutResponseToJSON;
21
+ exports.DocumentCheckoutResponseToJSONTyped = DocumentCheckoutResponseToJSONTyped;
22
+ exports.DocumentCheckoutResponsePropertyValidationAttributesMap = {};
23
+ /**
24
+ * Check if a given object implements the DocumentCheckoutResponse interface.
25
+ */
26
+ function instanceOfDocumentCheckoutResponse(value) {
27
+ if (!('tenantId' in value) || value['tenantId'] === undefined)
28
+ return false;
29
+ if (!('pathPartId' in value) || value['pathPartId'] === undefined)
30
+ return false;
31
+ if (!('userId' in value) || value['userId'] === undefined)
32
+ return false;
33
+ if (!('acquiredAt' in value) || value['acquiredAt'] === undefined)
34
+ return false;
35
+ return true;
36
+ }
37
+ function DocumentCheckoutResponseFromJSON(json) {
38
+ return DocumentCheckoutResponseFromJSONTyped(json, false);
39
+ }
40
+ function DocumentCheckoutResponseFromJSONTyped(json, ignoreDiscriminator) {
41
+ if (json == null) {
42
+ return json;
43
+ }
44
+ return {
45
+ 'tenantId': json['tenant_id'],
46
+ 'pathPartId': json['path_part_id'],
47
+ 'userId': json['user_id'],
48
+ 'acquiredAt': (new Date(json['acquired_at'])),
49
+ };
50
+ }
51
+ function DocumentCheckoutResponseToJSON(json) {
52
+ return DocumentCheckoutResponseToJSONTyped(json, false);
53
+ }
54
+ function DocumentCheckoutResponseToJSONTyped(value, ignoreDiscriminator = false) {
55
+ if (value == null) {
56
+ return value;
57
+ }
58
+ return {
59
+ 'tenant_id': value['tenantId'],
60
+ 'path_part_id': value['pathPartId'],
61
+ 'user_id': value['userId'],
62
+ 'acquired_at': value['acquiredAt'].toISOString(),
63
+ };
64
+ }
@@ -12,6 +12,7 @@
12
12
  import type { DocumentOrigin } from './DocumentOrigin';
13
13
  import type { TagResponse } from './TagResponse';
14
14
  import type { DocumentType } from './DocumentType';
15
+ import type { DocumentCheckoutResponse } from './DocumentCheckoutResponse';
15
16
  import type { DocumentVersionResponse } from './DocumentVersionResponse';
16
17
  /**
17
18
  * Document response model.
@@ -127,6 +128,12 @@ export interface DocumentResponse {
127
128
  * @memberof DocumentResponse
128
129
  */
129
130
  canWrite?: boolean | null;
131
+ /**
132
+ * Active write-lock state. Null when no checkout is held. Populated on detail endpoints (GET /v1/documents/{id}). Any tenant member with read access may observe this state.
133
+ * @type {DocumentCheckoutResponse}
134
+ * @memberof DocumentResponse
135
+ */
136
+ checkout?: DocumentCheckoutResponse | null;
130
137
  }
131
138
  /**
132
139
  * @export
@@ -22,6 +22,7 @@ exports.DocumentResponseToJSONTyped = DocumentResponseToJSONTyped;
22
22
  const DocumentOrigin_1 = require("./DocumentOrigin");
23
23
  const TagResponse_1 = require("./TagResponse");
24
24
  const DocumentType_1 = require("./DocumentType");
25
+ const DocumentCheckoutResponse_1 = require("./DocumentCheckoutResponse");
25
26
  const DocumentVersionResponse_1 = require("./DocumentVersionResponse");
26
27
  /**
27
28
  * @export
@@ -94,6 +95,7 @@ function DocumentResponseFromJSONTyped(json, ignoreDiscriminator) {
94
95
  'updatedAt': (new Date(json['updated_at'])),
95
96
  'tags': json['tags'] == null ? undefined : (json['tags'].map(TagResponse_1.TagResponseFromJSON)),
96
97
  'canWrite': json['can_write'] == null ? undefined : json['can_write'],
98
+ 'checkout': json['checkout'] == null ? undefined : (0, DocumentCheckoutResponse_1.DocumentCheckoutResponseFromJSON)(json['checkout']),
97
99
  };
98
100
  }
99
101
  function DocumentResponseToJSON(json) {
@@ -122,5 +124,6 @@ function DocumentResponseToJSONTyped(value, ignoreDiscriminator = false) {
122
124
  'updated_at': value['updatedAt'].toISOString(),
123
125
  'tags': value['tags'] == null ? undefined : (value['tags'].map(TagResponse_1.TagResponseToJSON)),
124
126
  'can_write': value['canWrite'],
127
+ 'checkout': (0, DocumentCheckoutResponse_1.DocumentCheckoutResponseToJSON)(value['checkout']),
125
128
  };
126
129
  }
@@ -41,6 +41,7 @@ export * from './CreateThreadRequest';
41
41
  export * from './CreateWorkflowDefinitionRequest';
42
42
  export * from './DirectorySyncResponse';
43
43
  export * from './DissolveSectionResponse';
44
+ export * from './DocumentCheckoutResponse';
44
45
  export * from './DocumentOrigin';
45
46
  export * from './DocumentResponse';
46
47
  export * from './DocumentType';
@@ -59,6 +59,7 @@ __exportStar(require("./CreateThreadRequest"), exports);
59
59
  __exportStar(require("./CreateWorkflowDefinitionRequest"), exports);
60
60
  __exportStar(require("./DirectorySyncResponse"), exports);
61
61
  __exportStar(require("./DissolveSectionResponse"), exports);
62
+ __exportStar(require("./DocumentCheckoutResponse"), exports);
62
63
  __exportStar(require("./DocumentOrigin"), exports);
63
64
  __exportStar(require("./DocumentResponse"), exports);
64
65
  __exportStar(require("./DocumentType"), exports);