@osdk/foundry.pack 2.51.0 → 2.52.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @osdk/foundry.pack
2
2
 
3
+ ## 2.52.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 61dbb74: regenerate platform sdk
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [61dbb74]
12
+ - @osdk/foundry.filesystem@2.52.0
13
+ - @osdk/foundry.core@2.52.0
14
+
3
15
  ## 2.51.0
4
16
 
5
17
  ### Minor Changes
@@ -1,6 +1,34 @@
1
1
  export type LooselyBrandedString<T extends string> = string & {
2
2
  __LOOSE_BRAND?: T;
3
3
  };
4
+ /**
5
+ * Autosaved documents cannot be deleted.
6
+ *
7
+ * Log Safety: SAFE
8
+ */
9
+ export interface CannotDeleteAutosavedDocument {
10
+ errorCode: "INVALID_ARGUMENT";
11
+ errorName: "CannotDeleteAutosavedDocument";
12
+ errorDescription: "Autosaved documents cannot be deleted.";
13
+ errorInstanceId: string;
14
+ parameters: {
15
+ documentId: unknown;
16
+ };
17
+ }
18
+ /**
19
+ * Hidden documents cannot be deleted.
20
+ *
21
+ * Log Safety: SAFE
22
+ */
23
+ export interface CannotDeleteHiddenDocument {
24
+ errorCode: "INVALID_ARGUMENT";
25
+ errorName: "CannotDeleteHiddenDocument";
26
+ errorDescription: "Hidden documents cannot be deleted.";
27
+ errorInstanceId: string;
28
+ parameters: {
29
+ documentId: unknown;
30
+ };
31
+ }
4
32
  /**
5
33
  * The user does not have permission to create documents of the given type in
6
34
  the given ontology, or the Document Type does not exist in the ontology.
@@ -41,6 +69,20 @@ export interface CreateDocumentTypePermissionDenied {
41
69
  errorInstanceId: string;
42
70
  parameters: {};
43
71
  }
72
+ /**
73
+ * Could not delete the Document.
74
+ *
75
+ * Log Safety: SAFE
76
+ */
77
+ export interface DeleteDocumentPermissionDenied {
78
+ errorCode: "PERMISSION_DENIED";
79
+ errorName: "DeleteDocumentPermissionDenied";
80
+ errorDescription: "Could not delete the Document.";
81
+ errorInstanceId: string;
82
+ parameters: {
83
+ documentId: unknown;
84
+ };
85
+ }
44
86
  /**
45
87
  * The given Document could not be found.
46
88
  *
@@ -1 +1 @@
1
- {"version":3,"file":"_errors.d.ts","sourceRoot":"","sources":["../../src/_errors.ts"],"names":[],"mappings":"AAgBA,MAAM,MAAM,oBAAoB,CAAC,CAAC,SAAS,MAAM,IAAI,MAAM,GAAG;IAC5D,aAAa,CAAC,EAAE,CAAC,CAAC;CACnB,CAAC;AAEF;;;;;KAKK;AACL,MAAM,WAAW,0BAA0B;IACzC,SAAS,EAAE,mBAAmB,CAAC;IAC/B,SAAS,EAAE,4BAA4B,CAAC;IACxC,gBAAgB,EACd,qJAAqJ,CAAC;IACxJ,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE;QACV,WAAW,EAAE,OAAO,CAAC;QACrB,gBAAgB,EAAE,OAAO,CAAC;KAC3B,CAAC;CACH;AAED;;;;GAIG;AACH,MAAM,WAAW,8BAA8B;IAC7C,SAAS,EAAE,mBAAmB,CAAC;IAC/B,SAAS,EAAE,gCAAgC,CAAC;IAC5C,gBAAgB,EAAE,gCAAgC,CAAC;IACnD,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,EAAE,CAAC;CAChB;AAED;;;;GAIG;AACH,MAAM,WAAW,kCAAkC;IACjD,SAAS,EAAE,mBAAmB,CAAC;IAC/B,SAAS,EAAE,oCAAoC,CAAC;IAChD,gBAAgB,EAAE,oCAAoC,CAAC;IACvD,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,EAAE,CAAC;CAChB;AAED;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC/B,SAAS,EAAE,WAAW,CAAC;IACvB,SAAS,EAAE,kBAAkB,CAAC;IAC9B,gBAAgB,EAAE,wCAAwC,CAAC;IAC3D,eAAe,EAAE,M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;IACxB,UAAU,EAAE,EAAE,CAAC;CAChB;AAED;;;;GAIG;AACH,MAAM,WAAW,0BAA0B;IACzC,SAAS,EAAE,mBAAmB,CAAC;IAC/B,SAAS,EAAE,4BAA4B,CAAC;IACxC,gBAAgB,EACd,4FAA4F,CAAC;IAC/F,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE;QACV,UAAU,EAAE,OAAO,CAAC;KACrB,CAAC;CACH;AAED;;;;GAIG;AACH,MAAM,WAAW,8BAA8B;IAC7C,SAAS,EAAE,mBAAmB,CAAC;IAC/B,SAAS,EAAE,gCAAgC,CAAC;IAC5C,gBAAgB,EAAE,gCAAgC,CAAC;IACnD,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE;QACV,UAAU,EAAE,OAAO,CAAC;KACrB,CAAC;CACH"}
@@ -1,5 +1,5 @@
1
1
  export type { ActivityCollaborativeUpdate, ActivityCreated, ActivityDeleted, ActivityEvent, AllPrincipal, ClientId, CreateDocumentRequest, CreateDocumentTypeRequest, CustomPresenceEvent, DiscretionaryPrincipal, DiscretionaryPrincipalGroupId, DiscretionaryPrincipalUserId, Document, DocumentDiscretionarySecurity, DocumentEditDescription, DocumentMandatorySecurity, DocumentName, DocumentOntologyRid, DocumentPresenceChangeEvent, DocumentPublishMessage, DocumentRid, DocumentSearchQuery, DocumentSearchRequest, DocumentSearchResponse, DocumentSecurity, DocumentSort, DocumentSortField, DocumentType, DocumentTypeName, DocumentTypeRid, DocumentUpdate, DocumentUpdateMessage, DocumentUpdateSubscriptionRequest, EditId, ErrorCode, ErrorMessage, EventId, FileSystemType, FolderRid, GroupId, MarkingId, MarkingPrincipal, PageToken, PresenceCollaborativeUpdate, PresencePublishMessage, RevisionId, SearchDocumentsRequest, UpdateDocumentMetadataRequest, UpdateDocumentRequest, UserId, UserPresence, VersionedEventData, YjsUpdate, } from "./_components.js";
2
- export type { CreateDocumentNotSupported, CreateDocumentPermissionDenied, CreateDocumentTypePermissionDenied, DocumentNotFound, DocumentTypeAlreadyExists, DocumentTypeNameNotFound, SearchDocumentsPermissionDenied, UpdateDocumentNotSupported, UpdateDocumentPermissionDenied, } from "./_errors.js";
2
+ export type { CannotDeleteAutosavedDocument, CannotDeleteHiddenDocument, CreateDocumentNotSupported, CreateDocumentPermissionDenied, CreateDocumentTypePermissionDenied, DeleteDocumentPermissionDenied, DocumentNotFound, DocumentTypeAlreadyExists, DocumentTypeNameNotFound, SearchDocumentsPermissionDenied, UpdateDocumentNotSupported, UpdateDocumentPermissionDenied, } from "./_errors.js";
3
3
  export * as Documents from "./public/Document.js";
4
4
  export * as DocumentTypes from "./public/DocumentType.js";
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAgBA,YAAY,EACV,2BAA2B,EAC3B,eAAe,EACf,eAAe,EACf,aAAa,EACb,YAAY,EACZ,QAAQ,EACR,qBAAqB,EACrB,yBAAyB,EACzB,mBAAmB,EACnB,sBAAsB,EACtB,6BAA6B,EAC7B,4BAA4B,EAC5B,QAAQ,EACR,6BAA6B,EAC7B,uBAAuB,EACvB,yBAAyB,EACzB,YAAY,EACZ,mBAAmB,EACnB,2BAA2B,EAC3B,sBAAsB,EACtB,WAAW,EACX,mBAAmB,EACnB,qBAAqB,EACrB,sBAAsB,EACtB,gBAAgB,EAChB,YAAY,EACZ,iBAAiB,EACjB,YAAY,EACZ,gBAAgB,EAChB,eAAe,EACf,cAAc,EACd,qBAAqB,EACrB,iCAAiC,EACjC,MAAM,EACN,SAAS,EACT,YAAY,EACZ,OAAO,EACP,cAAc,EACd,SAAS,EACT,OAAO,EACP,SAAS,EACT,gBAAgB,EAChB,SAAS,EACT,2BAA2B,EAC3B,sBAAsB,EACtB,UAAU,EACV,sBAAsB,EACtB,6BAA6B,EAC7B,qBAAqB,EACrB,MAAM,EACN,YAAY,EACZ,kBAAkB,EAClB,SAAS,GACV,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EACV,0BAA0B,EAC1B,8BAA8B,EAC9B,kCAAkC,EAClC,gBAAgB,EAChB,yBAAyB,EACzB,wBAAwB,EACxB,+BAA+B,EAC/B,0BAA0B,EAC1B,8BAA8B,GAC/B,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,SAAS,MAAM,sBAAsB,CAAC;AAClD,OAAO,KAAK,aAAa,MAAM,0BAA0B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAgBA,YAAY,EACV,2BAA2B,EAC3B,eAAe,EACf,eAAe,EACf,aAAa,EACb,YAAY,EACZ,QAAQ,EACR,qBAAqB,EACrB,yBAAyB,EACzB,mBAAmB,EACnB,sBAAsB,EACtB,6BAA6B,EAC7B,4BAA4B,EAC5B,QAAQ,EACR,6BAA6B,EAC7B,uBAAuB,EACvB,yBAAyB,EACzB,YAAY,EACZ,mBAAmB,EACnB,2BAA2B,EAC3B,sBAAsB,EACtB,WAAW,EACX,mBAAmB,EACnB,qBAAqB,EACrB,sBAAsB,EACtB,gBAAgB,EAChB,YAAY,EACZ,iBAAiB,EACjB,YAAY,EACZ,gBAAgB,EAChB,eAAe,EACf,cAAc,EACd,qBAAqB,EACrB,iCAAiC,EACjC,MAAM,EACN,SAAS,EACT,YAAY,EACZ,OAAO,EACP,cAAc,EACd,SAAS,EACT,OAAO,EACP,SAAS,EACT,gBAAgB,EAChB,SAAS,EACT,2BAA2B,EAC3B,sBAAsB,EACtB,UAAU,EACV,sBAAsB,EACtB,6BAA6B,EAC7B,qBAAqB,EACrB,MAAM,EACN,YAAY,EACZ,kBAAkB,EAClB,SAAS,GACV,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EACV,6BAA6B,EAC7B,0BAA0B,EAC1B,0BAA0B,EAC1B,8BAA8B,EAC9B,kCAAkC,EAClC,8BAA8B,EAC9B,gBAAgB,EAChB,yBAAyB,EACzB,wBAAwB,EACxB,+BAA+B,EAC/B,0BAA0B,EAC1B,8BAA8B,GAC/B,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,SAAS,MAAM,sBAAsB,CAAC;AAClD,OAAO,KAAK,aAAa,MAAM,0BAA0B,CAAC"}
@@ -16,6 +16,20 @@ export declare function create($ctx: $Client | $ClientContext | $OldClient | $Ol
16
16
  preview?: _Core.PreviewMode | undefined;
17
17
  }
18
18
  ]): Promise<_Pack.Document>;
19
+ /**
20
+ * Delete the Document with the specified id.
21
+ *
22
+ * @alpha
23
+ *
24
+ * Required Scopes: [api:pack-write]
25
+ * URL: /v2/pack/documents/{documentId}
26
+ */
27
+ export declare function deleteDocument($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
28
+ documentId: _Pack.DocumentRid,
29
+ $queryParams?: {
30
+ preview?: _Core.PreviewMode | undefined;
31
+ }
32
+ ]): Promise<void>;
19
33
  /**
20
34
  * Get the Document with the specified id.
21
35
  *
@@ -1 +1 @@
1
- {"version":3,"file":"Document.d.ts","sourceRoot":"","sources":["../../../src/public/Document.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,KAAK,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,EACV,YAAY,IAAI,UAAU,EAC1B,mBAAmB,IAAI,iBAAiB,EACzC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EACV,YAAY,IAAI,OAAO,EACvB,mBAAmB,IAAI,cAAc,EACtC,MAAM,sBAAsB,CAAC;AAG9B,OAAO,KAAK,KAAK,KAAK,MAAM,mBAAmB,CAAC;AAWhD;;;;;;;GAOG;AACH,wBAAgB,MAAM,CACpB,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE;IACP,KAAK,EAAE,KAAK,CAAC,qBAAqB;IAClC,YAAY,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAA;KAAE;CAC3D,GACA,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C,YAAY,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAA;KAAE;CAC3D,GACA,OAAO,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAEvC;AAUD;;;;;;;GAOG;AACH,wBAAgB,MAAM,CACpB,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE;IACP,UAAU,EAAE,KAAK,CAAC,WAAW;IAC7B,KAAK,EAAE,KAAK,CAAC,qBAAqB;IAClC,YAAY,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAA;KAAE;CAC3D,GACA,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,CAEzB"}
@@ -27,6 +27,18 @@ const _create = [1, "/v2/pack/documents", 3];
27
27
  export function create($ctx, ...args) {
28
28
  return $foundryPlatformFetch($ctx, _create, ...args);
29
29
  }
30
+ const _deleteDocument = [3, "/v2/pack/documents/{0}", 2];
31
+ /**
32
+ * Delete the Document with the specified id.
33
+ *
34
+ * @alpha
35
+ *
36
+ * Required Scopes: [api:pack-write]
37
+ * URL: /v2/pack/documents/{documentId}
38
+ */
39
+ export function deleteDocument($ctx, ...args) {
40
+ return $foundryPlatformFetch($ctx, _deleteDocument, ...args);
41
+ }
30
42
  const _get = [0, "/v2/pack/documents/{0}", 2];
31
43
  /**
32
44
  * Get the Document with the specified id.
@@ -1 +1 @@
1
- {"version":3,"file":"Document.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_create","create","$ctx","args","_get","get","_search","search","_update","update"],"sources":["Document.js"],"sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\nconst _create = [1, \"/v2/pack/documents\", 3];\n/**\n * Creates a new Document.\n *\n * @alpha\n *\n * Required Scopes: [api:pack-write]\n * URL: /v2/pack/documents\n */\nexport function create($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _create, ...args);\n}\nconst _get = [0, \"/v2/pack/documents/{0}\", 2];\n/**\n * Get the Document with the specified id.\n *\n * @alpha\n *\n * Required Scopes: [api:pack-read]\n * URL: /v2/pack/documents/{documentId}\n */\nexport function get($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _get, ...args);\n}\nconst _search = [1, \"/v2/pack/documents/search\", 3];\n/**\n * Loads all PACK Documents visible to the user of the provided Document Type Name. If a search request\n * is provided, filters and sorts the results based on the user's query, sort, and pagination options.\n *\n * @alpha\n *\n * Required Scopes: [api:pack-read]\n * URL: /v2/pack/documents/search\n */\nexport function search($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _search, ...args);\n}\nconst _update = [1, \"/v2/pack/documents/{0}/update\", 3];\n/**\n * Updates the metadata (name, description, and/or security) of a PACK Document.\n *\n * @alpha\n *\n * Required Scopes: [api:pack-write]\n * URL: /v2/pack/documents/{documentId}/update\n */\nexport function update($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _update, ...args);\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,oBAAoB,IAAIC,qBAAqB,QAAQ,8BAA8B;AAC5F;AACA,MAAMC,OAAO,GAAG,CAAC,CAAC,EAAE,oBAAoB,EAAE,CAAC,CAAC;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,MAAMA,CAACC,IAAI,EAAE,GAAGC,IAAI,EAAE;EAClC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEF,OAAO,EAAE,GAAGG,IAAI,CAAC;AACxD;AACA,MAAMC,IAAI,GAAG,CAAC,CAAC,EAAE,wBAAwB,EAAE,CAAC,CAAC;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,GAAGA,CAACH,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC/B,OAAOJ,qBAAqB,CAACG,IAAI,EAAEE,IAAI,EAAE,GAAGD,IAAI,CAAC;AACrD;AACA,MAAMG,OAAO,GAAG,CAAC,CAAC,EAAE,2BAA2B,EAAE,CAAC,CAAC;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,MAAMA,CAACL,IAAI,EAAE,GAAGC,IAAI,EAAE;EAClC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEI,OAAO,EAAE,GAAGH,IAAI,CAAC;AACxD;AACA,MAAMK,OAAO,GAAG,CAAC,CAAC,EAAE,+BAA+B,EAAE,CAAC,CAAC;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,MAAMA,CAACP,IAAI,EAAE,GAAGC,IAAI,EAAE;EAClC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEM,OAAO,EAAE,GAAGL,IAAI,CAAC;AACxD","ignoreList":[]}
1
+ {"version":3,"file":"Document.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_create","create","$ctx","args","_deleteDocument","deleteDocument","_get","get","_search","search","_update","update"],"sources":["Document.js"],"sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\nconst _create = [1, \"/v2/pack/documents\", 3];\n/**\n * Creates a new Document.\n *\n * @alpha\n *\n * Required Scopes: [api:pack-write]\n * URL: /v2/pack/documents\n */\nexport function create($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _create, ...args);\n}\nconst _deleteDocument = [3, \"/v2/pack/documents/{0}\", 2];\n/**\n * Delete the Document with the specified id.\n *\n * @alpha\n *\n * Required Scopes: [api:pack-write]\n * URL: /v2/pack/documents/{documentId}\n */\nexport function deleteDocument($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _deleteDocument, ...args);\n}\nconst _get = [0, \"/v2/pack/documents/{0}\", 2];\n/**\n * Get the Document with the specified id.\n *\n * @alpha\n *\n * Required Scopes: [api:pack-read]\n * URL: /v2/pack/documents/{documentId}\n */\nexport function get($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _get, ...args);\n}\nconst _search = [1, \"/v2/pack/documents/search\", 3];\n/**\n * Loads all PACK Documents visible to the user of the provided Document Type Name. If a search request\n * is provided, filters and sorts the results based on the user's query, sort, and pagination options.\n *\n * @alpha\n *\n * Required Scopes: [api:pack-read]\n * URL: /v2/pack/documents/search\n */\nexport function search($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _search, ...args);\n}\nconst _update = [1, \"/v2/pack/documents/{0}/update\", 3];\n/**\n * Updates the metadata (name, description, and/or security) of a PACK Document.\n *\n * @alpha\n *\n * Required Scopes: [api:pack-write]\n * URL: /v2/pack/documents/{documentId}/update\n */\nexport function update($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _update, ...args);\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,oBAAoB,IAAIC,qBAAqB,QAAQ,8BAA8B;AAC5F;A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AGP,IAAI,CAAC;AACxD","ignoreList":[]}
@@ -1,6 +1,34 @@
1
1
  export type LooselyBrandedString<T extends string> = string & {
2
2
  __LOOSE_BRAND?: T;
3
3
  };
4
+ /**
5
+ * Autosaved documents cannot be deleted.
6
+ *
7
+ * Log Safety: SAFE
8
+ */
9
+ export interface CannotDeleteAutosavedDocument {
10
+ errorCode: "INVALID_ARGUMENT";
11
+ errorName: "CannotDeleteAutosavedDocument";
12
+ errorDescription: "Autosaved documents cannot be deleted.";
13
+ errorInstanceId: string;
14
+ parameters: {
15
+ documentId: unknown;
16
+ };
17
+ }
18
+ /**
19
+ * Hidden documents cannot be deleted.
20
+ *
21
+ * Log Safety: SAFE
22
+ */
23
+ export interface CannotDeleteHiddenDocument {
24
+ errorCode: "INVALID_ARGUMENT";
25
+ errorName: "CannotDeleteHiddenDocument";
26
+ errorDescription: "Hidden documents cannot be deleted.";
27
+ errorInstanceId: string;
28
+ parameters: {
29
+ documentId: unknown;
30
+ };
31
+ }
4
32
  /**
5
33
  * The user does not have permission to create documents of the given type in
6
34
  the given ontology, or the Document Type does not exist in the ontology.
@@ -41,6 +69,20 @@ export interface CreateDocumentTypePermissionDenied {
41
69
  errorInstanceId: string;
42
70
  parameters: {};
43
71
  }
72
+ /**
73
+ * Could not delete the Document.
74
+ *
75
+ * Log Safety: SAFE
76
+ */
77
+ export interface DeleteDocumentPermissionDenied {
78
+ errorCode: "PERMISSION_DENIED";
79
+ errorName: "DeleteDocumentPermissionDenied";
80
+ errorDescription: "Could not delete the Document.";
81
+ errorInstanceId: string;
82
+ parameters: {
83
+ documentId: unknown;
84
+ };
85
+ }
44
86
  /**
45
87
  * The given Document could not be found.
46
88
  *
@@ -1 +1 @@
1
- {"version":3,"file":"_errors.d.ts","sourceRoot":"","sources":["../../src/_errors.ts"],"names":[],"mappings":"AAgBA,MAAM,MAAM,oBAAoB,CAAC,CAAC,SAAS,MAAM,IAAI,MAAM,GAAG;IAC5D,aAAa,CAAC,EAAE,CAAC,C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AAgC,CAAC;IAC5C,gBAAgB,EAAE,gCAAgC,CAAC;IACnD,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE;QACV,UAAU,EAAE,OAAO,CAAC;KACrB,CAAC;CACH"}
@@ -1,5 +1,5 @@
1
1
  export type { ActivityCollaborativeUpdate, ActivityCreated, ActivityDeleted, ActivityEvent, AllPrincipal, ClientId, CreateDocumentRequest, CreateDocumentTypeRequest, CustomPresenceEvent, DiscretionaryPrincipal, DiscretionaryPrincipalGroupId, DiscretionaryPrincipalUserId, Document, DocumentDiscretionarySecurity, DocumentEditDescription, DocumentMandatorySecurity, DocumentName, DocumentOntologyRid, DocumentPresenceChangeEvent, DocumentPublishMessage, DocumentRid, DocumentSearchQuery, DocumentSearchRequest, DocumentSearchResponse, DocumentSecurity, DocumentSort, DocumentSortField, DocumentType, DocumentTypeName, DocumentTypeRid, DocumentUpdate, DocumentUpdateMessage, DocumentUpdateSubscriptionRequest, EditId, ErrorCode, ErrorMessage, EventId, FileSystemType, FolderRid, GroupId, MarkingId, MarkingPrincipal, PageToken, PresenceCollaborativeUpdate, PresencePublishMessage, RevisionId, SearchDocumentsRequest, UpdateDocumentMetadataRequest, UpdateDocumentRequest, UserId, UserPresence, VersionedEventData, YjsUpdate, } from "./_components.js";
2
- export type { CreateDocumentNotSupported, CreateDocumentPermissionDenied, CreateDocumentTypePermissionDenied, DocumentNotFound, DocumentTypeAlreadyExists, DocumentTypeNameNotFound, SearchDocumentsPermissionDenied, UpdateDocumentNotSupported, UpdateDocumentPermissionDenied, } from "./_errors.js";
2
+ export type { CannotDeleteAutosavedDocument, CannotDeleteHiddenDocument, CreateDocumentNotSupported, CreateDocumentPermissionDenied, CreateDocumentTypePermissionDenied, DeleteDocumentPermissionDenied, DocumentNotFound, DocumentTypeAlreadyExists, DocumentTypeNameNotFound, SearchDocumentsPermissionDenied, UpdateDocumentNotSupported, UpdateDocumentPermissionDenied, } from "./_errors.js";
3
3
  export * as Documents from "./public/Document.js";
4
4
  export * as DocumentTypes from "./public/DocumentType.js";
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAgBA,YAAY,EACV,2BAA2B,EAC3B,eAAe,EACf,eAAe,EACf,aAAa,EACb,YAAY,EACZ,QAAQ,EACR,qBAAqB,EACrB,yBAAyB,EACzB,mBAAmB,EACnB,sBAAsB,EACtB,6BAA6B,EAC7B,4BAA4B,EAC5B,QAAQ,EACR,6BAA6B,EAC7B,uBAAuB,EACvB,yBAAyB,EACzB,YAAY,EACZ,mBAAmB,EACnB,2BAA2B,EAC3B,sBAAsB,EACtB,WAAW,EACX,mBAAmB,EACnB,qBAAqB,EACrB,sBAAsB,EACtB,gBAAgB,EAChB,YAAY,EACZ,iBAAiB,EACjB,YAAY,EACZ,gBAAgB,EAChB,eAAe,EACf,cAAc,EACd,qBAAqB,EACrB,iCAAiC,EACjC,MAAM,EACN,SAAS,EACT,YAAY,EACZ,OAAO,EACP,cAAc,EACd,SAAS,EACT,OAAO,EACP,SAAS,EACT,gBAAgB,EAChB,SAAS,EACT,2BAA2B,EAC3B,sBAAsB,EACtB,UAAU,EACV,sBAAsB,EACtB,6BAA6B,EAC7B,qBAAqB,EACrB,MAAM,EACN,YAAY,EACZ,kBAAkB,EAClB,SAAS,GACV,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EACV,0BAA0B,EAC1B,8BAA8B,EAC9B,kCAAkC,EAClC,gBAAgB,EAChB,yBAAyB,EACzB,wBAAwB,EACxB,+BAA+B,EAC/B,0BAA0B,EAC1B,8BAA8B,GAC/B,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,SAAS,MAAM,sBAAsB,CAAC;AAClD,OAAO,KAAK,aAAa,MAAM,0BAA0B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAgBA,YAAY,EACV,2BAA2B,EAC3B,eAAe,EACf,eAAe,EACf,aAAa,EACb,YAAY,EACZ,QAAQ,EACR,qBAAqB,EACrB,yBAAyB,EACzB,mBAAmB,EACnB,sBAAsB,EACtB,6BAA6B,EAC7B,4BAA4B,EAC5B,QAAQ,EACR,6BAA6B,EAC7B,uBAAuB,EACvB,yBAAyB,EACzB,YAAY,EACZ,mBAAmB,EACnB,2BAA2B,EAC3B,sBAAsB,EACtB,WAAW,EACX,mBAAmB,EACnB,qBAAqB,EACrB,sBAAsB,EACtB,gBAAgB,EAChB,YAAY,EACZ,iBAAiB,EACjB,YAAY,EACZ,gBAAgB,EAChB,eAAe,EACf,cAAc,EACd,qBAAqB,EACrB,iCAAiC,EACjC,MAAM,EACN,SAAS,EACT,YAAY,EACZ,OAAO,EACP,cAAc,EACd,SAAS,EACT,OAAO,EACP,SAAS,EACT,gBAAgB,EAChB,SAAS,EACT,2BAA2B,EAC3B,sBAAsB,EACtB,UAAU,EACV,sBAAsB,EACtB,6BAA6B,EAC7B,qBAAqB,EACrB,MAAM,EACN,YAAY,EACZ,kBAAkB,EAClB,SAAS,GACV,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EACV,6BAA6B,EAC7B,0BAA0B,EAC1B,0BAA0B,EAC1B,8BAA8B,EAC9B,kCAAkC,EAClC,8BAA8B,EAC9B,gBAAgB,EAChB,yBAAyB,EACzB,wBAAwB,EACxB,+BAA+B,EAC/B,0BAA0B,EAC1B,8BAA8B,GAC/B,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,SAAS,MAAM,sBAAsB,CAAC;AAClD,OAAO,KAAK,aAAa,MAAM,0BAA0B,CAAC"}
@@ -16,6 +16,20 @@ export declare function create($ctx: $Client | $ClientContext | $OldClient | $Ol
16
16
  preview?: _Core.PreviewMode | undefined;
17
17
  }
18
18
  ]): Promise<_Pack.Document>;
19
+ /**
20
+ * Delete the Document with the specified id.
21
+ *
22
+ * @alpha
23
+ *
24
+ * Required Scopes: [api:pack-write]
25
+ * URL: /v2/pack/documents/{documentId}
26
+ */
27
+ export declare function deleteDocument($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
28
+ documentId: _Pack.DocumentRid,
29
+ $queryParams?: {
30
+ preview?: _Core.PreviewMode | undefined;
31
+ }
32
+ ]): Promise<void>;
19
33
  /**
20
34
  * Get the Document with the specified id.
21
35
  *
@@ -1 +1 @@
1
- {"version":3,"file":"Document.d.ts","sourceRoot":"","sources":["../../../src/public/Document.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,KAAK,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,EACV,YAAY,IAAI,UAAU,EAC1B,mBAAmB,IAAI,iBAAiB,EACzC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EACV,YAAY,IAAI,OAAO,EACvB,mBAAmB,IAAI,cAAc,EACtC,MAAM,sBAAsB,CAAC;AAG9B,OAAO,KAAK,KAAK,KAAK,MAAM,mBAAmB,CAAC;AAWhD;;;;;;;GAOG;AACH,wBAAgB,MAAM,CACpB,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE;IACP,KAAK,EAAE,KAAK,CAAC,qBAAqB;IAClC,YAAY,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAA;KAAE;CAC3D,GACA,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,CAEzB;AASD;;;;;;;GAOG;AACH,wBAAgB,GAAG,CACjB,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE;IACP,UAAU,EAAE,KAAK,CAAC,WAAW;IAE7B,YAAY,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAA;KAAE;CAC3D,GACA,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,CAEzB;AASD;;;;;;;;G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E;QAAE,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAA;KAAE;CAC3D,GACA,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,CAEzB"}
@@ -27,6 +27,18 @@ const _create = [1, "/v2/pack/documents", 3];
27
27
  export function create($ctx, ...args) {
28
28
  return $foundryPlatformFetch($ctx, _create, ...args);
29
29
  }
30
+ const _deleteDocument = [3, "/v2/pack/documents/{0}", 2];
31
+ /**
32
+ * Delete the Document with the specified id.
33
+ *
34
+ * @alpha
35
+ *
36
+ * Required Scopes: [api:pack-write]
37
+ * URL: /v2/pack/documents/{documentId}
38
+ */
39
+ export function deleteDocument($ctx, ...args) {
40
+ return $foundryPlatformFetch($ctx, _deleteDocument, ...args);
41
+ }
30
42
  const _get = [0, "/v2/pack/documents/{0}", 2];
31
43
  /**
32
44
  * Get the Document with the specified id.
@@ -1 +1 @@
1
- {"version":3,"file":"Document.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_create","create","$ctx","args","_get","get","_search","search","_update","update"],"sources":["Document.js"],"sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\nconst _create = [1, \"/v2/pack/documents\", 3];\n/**\n * Creates a new Document.\n *\n * @alpha\n *\n * Required Scopes: [api:pack-write]\n * URL: /v2/pack/documents\n */\nexport function create($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _create, ...args);\n}\nconst _get = [0, \"/v2/pack/documents/{0}\", 2];\n/**\n * Get the Document with the specified id.\n *\n * @alpha\n *\n * Required Scopes: [api:pack-read]\n * URL: /v2/pack/documents/{documentId}\n */\nexport function get($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _get, ...args);\n}\nconst _search = [1, \"/v2/pack/documents/search\", 3];\n/**\n * Loads all PACK Documents visible to the user of the provided Document Type Name. If a search request\n * is provided, filters and sorts the results based on the user's query, sort, and pagination options.\n *\n * @alpha\n *\n * Required Scopes: [api:pack-read]\n * URL: /v2/pack/documents/search\n */\nexport function search($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _search, ...args);\n}\nconst _update = [1, \"/v2/pack/documents/{0}/update\", 3];\n/**\n * Updates the metadata (name, description, and/or security) of a PACK Document.\n *\n * @alpha\n *\n * Required Scopes: [api:pack-write]\n * URL: /v2/pack/documents/{documentId}/update\n */\nexport function update($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _update, ...args);\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,oBAAoB,IAAIC,qBAAqB,QAAQ,8BAA8B;AAC5F;AACA,MAAMC,OAAO,GAAG,CAAC,CAAC,EAAE,oBAAoB,EAAE,CAAC,CAAC;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,MAAMA,CAACC,IAAI,EAAE,GAAGC,IAAI,EAAE;EAClC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEF,OAAO,EAAE,GAAGG,IAAI,CAAC;AACxD;AACA,MAAMC,IAAI,GAAG,CAAC,CAAC,EAAE,wBAAwB,EAAE,CAAC,CAAC;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,GAAGA,CAACH,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC/B,OAAOJ,qBAAqB,CAACG,IAAI,EAAEE,IAAI,EAAE,GAAGD,IAAI,CAAC;AACrD;AACA,MAAMG,OAAO,GAAG,CAAC,CAAC,EAAE,2BAA2B,EAAE,CAAC,CAAC;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,MAAMA,CAACL,IAAI,EAAE,GAAGC,IAAI,EAAE;EAClC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEI,OAAO,EAAE,GAAGH,IAAI,CAAC;AACxD;AACA,MAAMK,OAAO,GAAG,CAAC,CAAC,EAAE,+BAA+B,EAAE,CAAC,CAAC;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,MAAMA,CAACP,IAAI,EAAE,GAAGC,IAAI,EAAE;EAClC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEM,OAAO,EAAE,GAAGL,IAAI,CAAC;AACxD","ignoreList":[]}
1
+ {"version":3,"file":"Document.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_create","create","$ctx","args","_deleteDocument","deleteDocument","_get","get","_search","search","_update","update"],"sources":["Document.js"],"sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { foundryPlatformFetch as $foundryPlatformFetch } from \"@osdk/shared.net.platformapi\";\n//\nconst _create = [1, \"/v2/pack/documents\", 3];\n/**\n * Creates a new Document.\n *\n * @alpha\n *\n * Required Scopes: [api:pack-write]\n * URL: /v2/pack/documents\n */\nexport function create($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _create, ...args);\n}\nconst _deleteDocument = [3, \"/v2/pack/documents/{0}\", 2];\n/**\n * Delete the Document with the specified id.\n *\n * @alpha\n *\n * Required Scopes: [api:pack-write]\n * URL: /v2/pack/documents/{documentId}\n */\nexport function deleteDocument($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _deleteDocument, ...args);\n}\nconst _get = [0, \"/v2/pack/documents/{0}\", 2];\n/**\n * Get the Document with the specified id.\n *\n * @alpha\n *\n * Required Scopes: [api:pack-read]\n * URL: /v2/pack/documents/{documentId}\n */\nexport function get($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _get, ...args);\n}\nconst _search = [1, \"/v2/pack/documents/search\", 3];\n/**\n * Loads all PACK Documents visible to the user of the provided Document Type Name. If a search request\n * is provided, filters and sorts the results based on the user's query, sort, and pagination options.\n *\n * @alpha\n *\n * Required Scopes: [api:pack-read]\n * URL: /v2/pack/documents/search\n */\nexport function search($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _search, ...args);\n}\nconst _update = [1, \"/v2/pack/documents/{0}/update\", 3];\n/**\n * Updates the metadata (name, description, and/or security) of a PACK Document.\n *\n * @alpha\n *\n * Required Scopes: [api:pack-write]\n * URL: /v2/pack/documents/{documentId}/update\n */\nexport function update($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _update, ...args);\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,oBAAoB,IAAIC,qBAAqB,QAAQ,8BAA8B;AAC5F;AACA,MAAMC,OAAO,GAAG,CAAC,CAAC,EAAE,oBAAoB,EAAE,CAAC,CAAC;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,MAAMA,CAACC,IAAI,EAAE,GAAGC,IAAI,EAAE;EAClC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEF,OAAO,EAAE,GAAGG,IAAI,CAAC;AACxD;AACA,MAAMC,eAAe,GAAG,CAAC,CAAC,EAAE,wBAAwB,EAAE,CAAC,CAAC;AACxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,cAAcA,CAACH,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC1C,OAAOJ,qBAAqB,CAACG,IAAI,EAAEE,eAAe,EAAE,GAAGD,IAAI,CAAC;AAChE;AACA,MAAMG,IAAI,GAAG,CAAC,CAAC,EAAE,wBAAwB,EAAE,CAAC,CAAC;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,GAAGA,CAACL,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC/B,OAAOJ,qBAAqB,CAACG,IAAI,EAAEI,IAAI,EAAE,GAAGH,IAAI,CAAC;AACrD;AACA,MAAMK,OAAO,GAAG,CAAC,CAAC,EAAE,2BAA2B,EAAE,CAAC,CAAC;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,MAAMA,CAACP,IAAI,EAAE,GAAGC,IAAI,EAAE;EAClC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEM,OAAO,EAAE,GAAGL,IAAI,CAAC;AACxD;AACA,MAAMO,OAAO,GAAG,CAAC,CAAC,EAAE,+BAA+B,EAAE,CAAC,CAAC;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,MAAMA,CAACT,IAAI,EAAE,GAAGC,IAAI,EAAE;EAClC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEQ,OAAO,EAAE,GAAGP,IAAI,CAAC;AACxD","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@osdk/foundry.pack",
3
- "version": "2.51.0",
3
+ "version": "2.52.0",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -21,8 +21,8 @@
21
21
  "dependencies": {
22
22
  "@osdk/shared.client": "^1.0.1",
23
23
  "@osdk/shared.client2": "^1.0.0",
24
- "@osdk/foundry.core": "2.51.0",
25
- "@osdk/foundry.filesystem": "2.51.0",
24
+ "@osdk/foundry.core": "2.52.0",
25
+ "@osdk/foundry.filesystem": "2.52.0",
26
26
  "@osdk/shared.net.platformapi": "~1.6.0"
27
27
  },
28
28
  "devDependencies": {
@@ -46,7 +46,7 @@
46
46
  "sls": {
47
47
  "dependencies": {
48
48
  "com.palantir.foundry.api:api-gateway": {
49
- "minVersion": "1.1490.0",
49
+ "minVersion": "1.1496.0",
50
50
  "maxVersion": "1.x.x",
51
51
  "optional": false
52
52
  }