@osdk/foundry.pack 0.0.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.
Files changed (41) hide show
  1. package/build/browser/_components.d.ts +262 -0
  2. package/build/browser/_components.d.ts.map +1 -0
  3. package/build/browser/_components.js +17 -0
  4. package/build/browser/_components.js.map +1 -0
  5. package/build/browser/_errors.d.ts +72 -0
  6. package/build/browser/_errors.d.ts.map +1 -0
  7. package/build/browser/_errors.js +17 -0
  8. package/build/browser/_errors.js.map +1 -0
  9. package/build/browser/index.d.ts +5 -0
  10. package/build/browser/index.d.ts.map +1 -0
  11. package/build/browser/index.js +18 -0
  12. package/build/browser/index.js.map +1 -0
  13. package/build/browser/public/Document.d.ts +33 -0
  14. package/build/browser/public/Document.d.ts.map +1 -0
  15. package/build/browser/public/Document.js +42 -0
  16. package/build/browser/public/Document.js.map +1 -0
  17. package/build/browser/public/DocumentType.d.ts +19 -0
  18. package/build/browser/public/DocumentType.d.ts.map +1 -0
  19. package/build/browser/public/DocumentType.js +30 -0
  20. package/build/browser/public/DocumentType.js.map +1 -0
  21. package/build/esm/_components.d.ts +262 -0
  22. package/build/esm/_components.d.ts.map +1 -0
  23. package/build/esm/_components.js +17 -0
  24. package/build/esm/_components.js.map +1 -0
  25. package/build/esm/_errors.d.ts +72 -0
  26. package/build/esm/_errors.d.ts.map +1 -0
  27. package/build/esm/_errors.js +17 -0
  28. package/build/esm/_errors.js.map +1 -0
  29. package/build/esm/index.d.ts +5 -0
  30. package/build/esm/index.d.ts.map +1 -0
  31. package/build/esm/index.js +18 -0
  32. package/build/esm/index.js.map +1 -0
  33. package/build/esm/public/Document.d.ts +33 -0
  34. package/build/esm/public/Document.d.ts.map +1 -0
  35. package/build/esm/public/Document.js +42 -0
  36. package/build/esm/public/Document.js.map +1 -0
  37. package/build/esm/public/DocumentType.d.ts +19 -0
  38. package/build/esm/public/DocumentType.d.ts.map +1 -0
  39. package/build/esm/public/DocumentType.js +30 -0
  40. package/build/esm/public/DocumentType.js.map +1 -0
  41. package/package.json +64 -0
@@ -0,0 +1,262 @@
1
+ import type * as _Core from "@osdk/foundry.core";
2
+ import type * as _Filesystem from "@osdk/foundry.filesystem";
3
+ export type LooselyBrandedString<T extends string> = string & {
4
+ __LOOSE_BRAND?: T;
5
+ };
6
+ /**
7
+ * Activity event broadcast to all clients after being applied on server.
8
+ *
9
+ * Log Safety: UNSAFE
10
+ */
11
+ export type ActivityCollaborativeUpdate = ({
12
+ type: "activityDeleted";
13
+ } & ActivityDeleted) | ({
14
+ type: "activityCreated";
15
+ } & ActivityCreated);
16
+ /**
17
+ * The event that gets published to PACK channels to update a users activity feed as new events
18
+ are added to a particular resource.
19
+ *
20
+ * Log Safety: UNSAFE
21
+ */
22
+ export interface ActivityCreated {
23
+ activityEvent: ActivityEvent;
24
+ }
25
+ /**
26
+ * The event that gets published to PACK channels to update a users activity feed whenever an event
27
+ is removed from a particular resource.
28
+ *
29
+ * Log Safety: UNSAFE
30
+ */
31
+ export interface ActivityDeleted {
32
+ eventId: EventId;
33
+ aggregationKey?: string;
34
+ }
35
+ /**
36
+ * A single activity event associated with a particular artifact.
37
+ *
38
+ * Log Safety: UNSAFE
39
+ */
40
+ export interface ActivityEvent {
41
+ eventId: EventId;
42
+ eventType: string;
43
+ eventData: VersionedEventData;
44
+ isRead: boolean;
45
+ aggregationKey: string;
46
+ createdBy: _Core.CreatedBy;
47
+ createdTime: _Core.CreatedTime;
48
+ }
49
+ /**
50
+ * An empty type representing all users in the system. Useful for expressing
51
+ operations that should be allowed by what is typically the 'Everyone' group,
52
+ or for expressing that anyone who satisfies Mandatory security is granted
53
+ discretionary access.
54
+ *
55
+ * Log Safety: SAFE
56
+ */
57
+ export interface AllPrincipal {
58
+ }
59
+ /**
60
+ * Update sent by client to apply to internal Y.Doc on server.
61
+ *
62
+ * Log Safety: UNSAFE
63
+ */
64
+ export interface ApplyYjsUpdate {
65
+ yjsUpdate: YjsUpdate;
66
+ clientId: ClientId;
67
+ description?: DocumentEditDescription;
68
+ }
69
+ /**
70
+ * Log Safety: SAFE
71
+ */
72
+ export type ClientId = string;
73
+ /**
74
+ * Update broadcast to all clients after being applied on server.
75
+ *
76
+ * Log Safety: UNSAFE
77
+ */
78
+ export interface CollaborativeUpdate {
79
+ update: CollaborativeUpdateContents;
80
+ clientId: ClientId;
81
+ }
82
+ /**
83
+ * Union type to allow broadcasting different collaborative message types.
84
+ *
85
+ * Log Safety: UNSAFE
86
+ */
87
+ export type CollaborativeUpdateContents = {
88
+ type: "yjsUpdate";
89
+ } & YjsUpdate;
90
+ /**
91
+ * Log Safety: UNSAFE
92
+ */
93
+ export interface CreateDocumentRequest {
94
+ security: DocumentSecurity;
95
+ ontologyRid: DocumentOntologyRid;
96
+ name: DocumentName;
97
+ description?: string;
98
+ documentTypeName: DocumentTypeName;
99
+ }
100
+ /**
101
+ * Log Safety: UNSAFE
102
+ */
103
+ export interface CreateDocumentTypeRequest {
104
+ parentFolderRid: _Filesystem.FolderRid;
105
+ name: DocumentTypeName;
106
+ }
107
+ /**
108
+ * Union of all security principals usable within disjunctive security conditions.
109
+ These principals are used to grant additional role access beyond mandatory security.
110
+ This includes the special 'all' principal, which grants access to any users who meet mandatory
111
+ for a given discretionary role.
112
+ *
113
+ * Log Safety: SAFE
114
+ */
115
+ export type DiscretionaryPrincipal = ({
116
+ type: "all";
117
+ } & AllPrincipal) | ({
118
+ type: "groupId";
119
+ } & DiscretionaryPrincipalGroupId) | ({
120
+ type: "userId";
121
+ } & DiscretionaryPrincipalUserId);
122
+ /**
123
+ * Log Safety: SAFE
124
+ */
125
+ export interface DiscretionaryPrincipalGroupId {
126
+ groupId: _Core.GroupId;
127
+ }
128
+ /**
129
+ * Log Safety: SAFE
130
+ */
131
+ export interface DiscretionaryPrincipalUserId {
132
+ userId: _Core.UserId;
133
+ }
134
+ /**
135
+ * Log Safety: UNSAFE
136
+ */
137
+ export interface Document {
138
+ id: DocumentRid;
139
+ documentTypeName: DocumentTypeName;
140
+ ontologyRid: DocumentOntologyRid;
141
+ name: DocumentName;
142
+ description?: string;
143
+ security: DocumentSecurity;
144
+ createdBy: _Core.CreatedBy;
145
+ createdTime: _Core.CreatedTime;
146
+ updatedBy: _Core.UpdatedBy;
147
+ updatedTime: _Core.UpdatedTime;
148
+ }
149
+ /**
150
+ * Log Safety: SAFE
151
+ */
152
+ export interface DocumentDiscretionarySecurity {
153
+ owners: Array<DiscretionaryPrincipal>;
154
+ editors: Array<DiscretionaryPrincipal>;
155
+ viewers: Array<DiscretionaryPrincipal>;
156
+ }
157
+ /**
158
+ * Log Safety: UNSAFE
159
+ */
160
+ export interface DocumentEditDescription {
161
+ eventData: VersionedEventData;
162
+ eventType: string;
163
+ }
164
+ /**
165
+ * Log Safety: UNSAFE
166
+ */
167
+ export interface DocumentMandatorySecurity {
168
+ classification: Array<MarkingPrincipal>;
169
+ markings: Array<MarkingId>;
170
+ }
171
+ /**
172
+ * Log Safety: UNSAFE
173
+ */
174
+ export type DocumentName = LooselyBrandedString<"DocumentName">;
175
+ /**
176
+ * Log Safety: SAFE
177
+ */
178
+ export type DocumentOntologyRid = LooselyBrandedString<"DocumentOntologyRid">;
179
+ /**
180
+ * Identifier for an PACK Document.
181
+ *
182
+ * Log Safety: SAFE
183
+ */
184
+ export type DocumentRid = LooselyBrandedString<"DocumentRid">;
185
+ /**
186
+ * Log Safety: UNSAFE
187
+ */
188
+ export interface DocumentSecurity {
189
+ mandatory: DocumentMandatorySecurity;
190
+ discretionary: DocumentDiscretionarySecurity;
191
+ }
192
+ /**
193
+ * Log Safety: UNSAFE
194
+ */
195
+ export interface DocumentType {
196
+ rid: DocumentTypeRid;
197
+ name: DocumentTypeName;
198
+ parentFolderRid: _Filesystem.FolderRid;
199
+ }
200
+ /**
201
+ * The configured name for a DocumentType. This is unique within an ontology but not
202
+ globally unique.
203
+ *
204
+ * Log Safety: UNSAFE
205
+ */
206
+ export type DocumentTypeName = LooselyBrandedString<"DocumentTypeName">;
207
+ /**
208
+ * Identifier for an PACK Document Type.
209
+ *
210
+ * Log Safety: SAFE
211
+ */
212
+ export type DocumentTypeRid = LooselyBrandedString<"DocumentTypeRid">;
213
+ /**
214
+ * A unique identifier for this activity event.
215
+ *
216
+ * Log Safety: UNSAFE
217
+ */
218
+ export type EventId = LooselyBrandedString<"EventId">;
219
+ /**
220
+ * The unique resource identifier (RID) of a Folder.
221
+ *
222
+ * Log Safety: SAFE
223
+ */
224
+ export type FolderRid = LooselyBrandedString<"FolderRid">;
225
+ /**
226
+ * A Foundry Group ID.
227
+ *
228
+ * Log Safety: SAFE
229
+ */
230
+ export type GroupId = string;
231
+ /**
232
+ * A UUID representing a Mandatory Marking.
233
+ *
234
+ * Log Safety: SAFE
235
+ */
236
+ export type MarkingId = string;
237
+ /**
238
+ * A portion marking used by CBAC (Classification based access control).
239
+ *
240
+ * Log Safety: UNSAFE
241
+ */
242
+ export type MarkingPrincipal = LooselyBrandedString<"MarkingPrincipal">;
243
+ /**
244
+ * A Foundry User ID.
245
+ *
246
+ * Log Safety: SAFE
247
+ */
248
+ export type UserId = string;
249
+ /**
250
+ * Log Safety: UNSAFE
251
+ */
252
+ export interface VersionedEventData {
253
+ data: any;
254
+ version: number;
255
+ }
256
+ /**
257
+ * Log Safety: UNSAFE
258
+ */
259
+ export interface YjsUpdate {
260
+ data: any;
261
+ }
262
+ //# sourceMappingURL=_components.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_components.d.ts","sourceRoot":"","sources":["../../src/_components.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,KAAK,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,KAAK,WAAW,MAAM,0BAA0B,CAAC;AAE7D,MAAM,MAAM,oBAAoB,CAAC,CAAC,SAAS,MAAM,IAAI,MAAM,GAAG;IAC5D,aAAa,CAAC,EAAE,CAAC,CAAC;CACnB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,2BAA2B,GACnC,CAAC;IA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;AAExE;;;;GAIG;AACH,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC;AAE5B;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,GAAG,CAAC;IACV,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,GAAG,CAAC;CACX"}
@@ -0,0 +1,17 @@
1
+ /*
2
+ * Copyright 2024 Palantir Technologies, Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export {};
17
+ //# sourceMappingURL=_components.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_components.js","names":[],"sources":["_components.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 */\nexport {};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
@@ -0,0 +1,72 @@
1
+ export type LooselyBrandedString<T extends string> = string & {
2
+ __LOOSE_BRAND?: T;
3
+ };
4
+ /**
5
+ * The user does not have permission to create documents of the given type in
6
+ the given ontology, or the document type does not exist in the ontology.
7
+ *
8
+ * Log Safety: UNSAFE
9
+ */
10
+ export interface CreateDocumentNotSupported {
11
+ errorCode: "PERMISSION_DENIED";
12
+ errorName: "CreateDocumentNotSupported";
13
+ errorDescription: "The user does not have permission to create documents of the given type in the given ontology, or the document type does not exist in the ontology.";
14
+ errorInstanceId: string;
15
+ parameters: {
16
+ ontologyRid: unknown;
17
+ documentTypeName: unknown;
18
+ };
19
+ }
20
+ /**
21
+ * Could not create the Document.
22
+ *
23
+ * Log Safety: SAFE
24
+ */
25
+ export interface CreateDocumentPermissionDenied {
26
+ errorCode: "PERMISSION_DENIED";
27
+ errorName: "CreateDocumentPermissionDenied";
28
+ errorDescription: "Could not create the Document.";
29
+ errorInstanceId: string;
30
+ parameters: {};
31
+ }
32
+ /**
33
+ * Could not create the DocumentType.
34
+ *
35
+ * Log Safety: SAFE
36
+ */
37
+ export interface CreateDocumentTypePermissionDenied {
38
+ errorCode: "PERMISSION_DENIED";
39
+ errorName: "CreateDocumentTypePermissionDenied";
40
+ errorDescription: "Could not create the DocumentType.";
41
+ errorInstanceId: string;
42
+ parameters: {};
43
+ }
44
+ /**
45
+ * The given Document could not be found.
46
+ *
47
+ * Log Safety: SAFE
48
+ */
49
+ export interface DocumentNotFound {
50
+ errorCode: "NOT_FOUND";
51
+ errorName: "DocumentNotFound";
52
+ errorDescription: "The given Document could not be found.";
53
+ errorInstanceId: string;
54
+ parameters: {
55
+ documentId: unknown;
56
+ };
57
+ }
58
+ /**
59
+ * This document type name already exists for the given ontology.
60
+ *
61
+ * Log Safety: UNSAFE
62
+ */
63
+ export interface DocumentTypeAlreadyExists {
64
+ errorCode: "CONFLICT";
65
+ errorName: "DocumentTypeAlreadyExists";
66
+ errorDescription: "This document type name already exists for the given ontology.";
67
+ errorInstanceId: string;
68
+ parameters: {
69
+ documentTypeName: unknown;
70
+ };
71
+ }
72
+ //# sourceMappingURL=_errors.d.ts.map
@@ -0,0 +1 @@
1
+ {"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gE,CAAC;IACnE,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE;QACV,gBAAgB,EAAE,OAAO,CAAC;KAC3B,CAAC;CACH"}
@@ -0,0 +1,17 @@
1
+ /*
2
+ * Copyright 2024 Palantir Technologies, Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export {};
17
+ //# sourceMappingURL=_errors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_errors.js","names":[],"sources":["_errors.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 */\nexport {};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
@@ -0,0 +1,5 @@
1
+ export type { ActivityCollaborativeUpdate, ActivityCreated, ActivityDeleted, ActivityEvent, AllPrincipal, ApplyYjsUpdate, ClientId, CollaborativeUpdate, CollaborativeUpdateContents, CreateDocumentRequest, CreateDocumentTypeRequest, DiscretionaryPrincipal, DiscretionaryPrincipalGroupId, DiscretionaryPrincipalUserId, Document, DocumentDiscretionarySecurity, DocumentEditDescription, DocumentMandatorySecurity, DocumentName, DocumentOntologyRid, DocumentRid, DocumentSecurity, DocumentType, DocumentTypeName, DocumentTypeRid, EventId, FolderRid, GroupId, MarkingId, MarkingPrincipal, UserId, VersionedEventData, YjsUpdate, } from "./_components.js";
2
+ export type { CreateDocumentNotSupported, CreateDocumentPermissionDenied, CreateDocumentTypePermissionDenied, DocumentNotFound, DocumentTypeAlreadyExists, } from "./_errors.js";
3
+ export * as Documents from "./public/Document.js";
4
+ export * as DocumentTypes from "./public/DocumentType.js";
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +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,cAAc,EACd,QAAQ,EACR,mBAAmB,EACnB,2BAA2B,EAC3B,qBAAqB,EACrB,yBAAyB,EACzB,sBAAsB,EACtB,6BAA6B,EAC7B,4BAA4B,EAC5B,QAAQ,EACR,6BAA6B,EAC7B,uBAAuB,EACvB,yBAAyB,EACzB,YAAY,EACZ,mBAAmB,EACnB,WAAW,EACX,gBAAgB,EAChB,YAAY,EACZ,gBAAgB,EAChB,eAAe,EACf,OAAO,EACP,SAAS,EACT,OAAO,EACP,SAAS,EACT,gBAAgB,EAChB,MAAM,EACN,kBAAkB,EAClB,SAAS,GACV,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EACV,0BAA0B,EAC1B,8BAA8B,EAC9B,kCAAkC,EAClC,gBAAgB,EAChB,yBAAyB,GAC1B,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,SAAS,MAAM,sBAAsB,CAAC;AAClD,OAAO,KAAK,aAAa,MAAM,0BAA0B,CAAC"}
@@ -0,0 +1,18 @@
1
+ /*
2
+ * Copyright 2024 Palantir Technologies, Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export * as Documents from "./public/Document.js";
17
+ export * as DocumentTypes from "./public/DocumentType.js";
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["Documents","DocumentTypes"],"sources":["index.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 */\nexport * as Documents from \"./public/Document.js\";\nexport * as DocumentTypes from \"./public/DocumentType.js\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,KAAKA,SAAS,MAAM,sBAAsB;AACjD,OAAO,KAAKC,aAAa,MAAM,0BAA0B","ignoreList":[]}
@@ -0,0 +1,33 @@
1
+ import type * as _Core from "@osdk/foundry.core";
2
+ import type { SharedClient as $OldClient, SharedClientContext as $OldClientContext } from "@osdk/shared.client";
3
+ import type { SharedClient as $Client, SharedClientContext as $ClientContext } from "@osdk/shared.client2";
4
+ import type * as _Pack from "../_components.js";
5
+ /**
6
+ * Creates a new Document.
7
+ *
8
+ * @alpha
9
+ *
10
+ * Required Scopes: [api:pack-write]
11
+ * URL: /v2/pack/documents
12
+ */
13
+ export declare function create($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
14
+ $body: _Pack.CreateDocumentRequest,
15
+ $queryParams?: {
16
+ preview?: _Core.PreviewMode | undefined;
17
+ }
18
+ ]): Promise<_Pack.Document>;
19
+ /**
20
+ * Get the Document with the specified id.
21
+ *
22
+ * @alpha
23
+ *
24
+ * Required Scopes: [api:pack-read]
25
+ * URL: /v2/pack/documents/{documentId}
26
+ */
27
+ export declare function get($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
28
+ documentId: _Pack.DocumentRid,
29
+ $queryParams?: {
30
+ preview?: _Core.PreviewMode | undefined;
31
+ }
32
+ ]): Promise<_Pack.Document>;
33
+ //# sourceMappingURL=Document.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,42 @@
1
+ /*
2
+ * Copyright 2024 Palantir Technologies, Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { foundryPlatformFetch as $foundryPlatformFetch } from "@osdk/shared.net.platformapi";
17
+ //
18
+ const _create = [1, "/v2/pack/documents", 3];
19
+ /**
20
+ * Creates a new Document.
21
+ *
22
+ * @alpha
23
+ *
24
+ * Required Scopes: [api:pack-write]
25
+ * URL: /v2/pack/documents
26
+ */
27
+ export function create($ctx, ...args) {
28
+ return $foundryPlatformFetch($ctx, _create, ...args);
29
+ }
30
+ const _get = [0, "/v2/pack/documents/{0}", 2];
31
+ /**
32
+ * Get the Document with the specified id.
33
+ *
34
+ * @alpha
35
+ *
36
+ * Required Scopes: [api:pack-read]
37
+ * URL: /v2/pack/documents/{documentId}
38
+ */
39
+ export function get($ctx, ...args) {
40
+ return $foundryPlatformFetch($ctx, _get, ...args);
41
+ }
42
+ //# sourceMappingURL=Document.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Document.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_create","create","$ctx","args","_get","get"],"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}\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","ignoreList":[]}
@@ -0,0 +1,19 @@
1
+ import type * as _Core from "@osdk/foundry.core";
2
+ import type { SharedClient as $OldClient, SharedClientContext as $OldClientContext } from "@osdk/shared.client";
3
+ import type { SharedClient as $Client, SharedClientContext as $ClientContext } from "@osdk/shared.client2";
4
+ import type * as _Pack from "../_components.js";
5
+ /**
6
+ * Creates a new DocumentType.
7
+ *
8
+ * @alpha
9
+ *
10
+ * Required Scopes: [api:pack-write]
11
+ * URL: /v2/pack/documentTypes
12
+ */
13
+ export declare function create($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
14
+ $body: _Pack.CreateDocumentTypeRequest,
15
+ $queryParams?: {
16
+ preview?: _Core.PreviewMode | undefined;
17
+ }
18
+ ]): Promise<_Pack.DocumentType>;
19
+ //# sourceMappingURL=DocumentType.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DocumentType.d.ts","sourceRoot":"","sources":["../../../src/public/DocumentType.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,yBAAyB;IACtC,YAAY,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAA;KAAE;CAC3D,GACA,OAAO,CAAC,KAAK,CAAC,YAAY,CAAC,CAE7B"}
@@ -0,0 +1,30 @@
1
+ /*
2
+ * Copyright 2024 Palantir Technologies, Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { foundryPlatformFetch as $foundryPlatformFetch } from "@osdk/shared.net.platformapi";
17
+ //
18
+ const _create = [1, "/v2/pack/documentTypes", 3];
19
+ /**
20
+ * Creates a new DocumentType.
21
+ *
22
+ * @alpha
23
+ *
24
+ * Required Scopes: [api:pack-write]
25
+ * URL: /v2/pack/documentTypes
26
+ */
27
+ export function create($ctx, ...args) {
28
+ return $foundryPlatformFetch($ctx, _create, ...args);
29
+ }
30
+ //# sourceMappingURL=DocumentType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DocumentType.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_create","create","$ctx","args"],"sources":["DocumentType.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/documentTypes\", 3];\n/**\n * Creates a new DocumentType.\n *\n * @alpha\n *\n * Required Scopes: [api:pack-write]\n * URL: /v2/pack/documentTypes\n */\nexport function create($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _create, ...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,wBAAwB,EAAE,CAAC,CAAC;AAChD;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","ignoreList":[]}
@@ -0,0 +1,262 @@
1
+ import type * as _Core from "@osdk/foundry.core";
2
+ import type * as _Filesystem from "@osdk/foundry.filesystem";
3
+ export type LooselyBrandedString<T extends string> = string & {
4
+ __LOOSE_BRAND?: T;
5
+ };
6
+ /**
7
+ * Activity event broadcast to all clients after being applied on server.
8
+ *
9
+ * Log Safety: UNSAFE
10
+ */
11
+ export type ActivityCollaborativeUpdate = ({
12
+ type: "activityDeleted";
13
+ } & ActivityDeleted) | ({
14
+ type: "activityCreated";
15
+ } & ActivityCreated);
16
+ /**
17
+ * The event that gets published to PACK channels to update a users activity feed as new events
18
+ are added to a particular resource.
19
+ *
20
+ * Log Safety: UNSAFE
21
+ */
22
+ export interface ActivityCreated {
23
+ activityEvent: ActivityEvent;
24
+ }
25
+ /**
26
+ * The event that gets published to PACK channels to update a users activity feed whenever an event
27
+ is removed from a particular resource.
28
+ *
29
+ * Log Safety: UNSAFE
30
+ */
31
+ export interface ActivityDeleted {
32
+ eventId: EventId;
33
+ aggregationKey?: string;
34
+ }
35
+ /**
36
+ * A single activity event associated with a particular artifact.
37
+ *
38
+ * Log Safety: UNSAFE
39
+ */
40
+ export interface ActivityEvent {
41
+ eventId: EventId;
42
+ eventType: string;
43
+ eventData: VersionedEventData;
44
+ isRead: boolean;
45
+ aggregationKey: string;
46
+ createdBy: _Core.CreatedBy;
47
+ createdTime: _Core.CreatedTime;
48
+ }
49
+ /**
50
+ * An empty type representing all users in the system. Useful for expressing
51
+ operations that should be allowed by what is typically the 'Everyone' group,
52
+ or for expressing that anyone who satisfies Mandatory security is granted
53
+ discretionary access.
54
+ *
55
+ * Log Safety: SAFE
56
+ */
57
+ export interface AllPrincipal {
58
+ }
59
+ /**
60
+ * Update sent by client to apply to internal Y.Doc on server.
61
+ *
62
+ * Log Safety: UNSAFE
63
+ */
64
+ export interface ApplyYjsUpdate {
65
+ yjsUpdate: YjsUpdate;
66
+ clientId: ClientId;
67
+ description?: DocumentEditDescription;
68
+ }
69
+ /**
70
+ * Log Safety: SAFE
71
+ */
72
+ export type ClientId = string;
73
+ /**
74
+ * Update broadcast to all clients after being applied on server.
75
+ *
76
+ * Log Safety: UNSAFE
77
+ */
78
+ export interface CollaborativeUpdate {
79
+ update: CollaborativeUpdateContents;
80
+ clientId: ClientId;
81
+ }
82
+ /**
83
+ * Union type to allow broadcasting different collaborative message types.
84
+ *
85
+ * Log Safety: UNSAFE
86
+ */
87
+ export type CollaborativeUpdateContents = {
88
+ type: "yjsUpdate";
89
+ } & YjsUpdate;
90
+ /**
91
+ * Log Safety: UNSAFE
92
+ */
93
+ export interface CreateDocumentRequest {
94
+ security: DocumentSecurity;
95
+ ontologyRid: DocumentOntologyRid;
96
+ name: DocumentName;
97
+ description?: string;
98
+ documentTypeName: DocumentTypeName;
99
+ }
100
+ /**
101
+ * Log Safety: UNSAFE
102
+ */
103
+ export interface CreateDocumentTypeRequest {
104
+ parentFolderRid: _Filesystem.FolderRid;
105
+ name: DocumentTypeName;
106
+ }
107
+ /**
108
+ * Union of all security principals usable within disjunctive security conditions.
109
+ These principals are used to grant additional role access beyond mandatory security.
110
+ This includes the special 'all' principal, which grants access to any users who meet mandatory
111
+ for a given discretionary role.
112
+ *
113
+ * Log Safety: SAFE
114
+ */
115
+ export type DiscretionaryPrincipal = ({
116
+ type: "all";
117
+ } & AllPrincipal) | ({
118
+ type: "groupId";
119
+ } & DiscretionaryPrincipalGroupId) | ({
120
+ type: "userId";
121
+ } & DiscretionaryPrincipalUserId);
122
+ /**
123
+ * Log Safety: SAFE
124
+ */
125
+ export interface DiscretionaryPrincipalGroupId {
126
+ groupId: _Core.GroupId;
127
+ }
128
+ /**
129
+ * Log Safety: SAFE
130
+ */
131
+ export interface DiscretionaryPrincipalUserId {
132
+ userId: _Core.UserId;
133
+ }
134
+ /**
135
+ * Log Safety: UNSAFE
136
+ */
137
+ export interface Document {
138
+ id: DocumentRid;
139
+ documentTypeName: DocumentTypeName;
140
+ ontologyRid: DocumentOntologyRid;
141
+ name: DocumentName;
142
+ description?: string;
143
+ security: DocumentSecurity;
144
+ createdBy: _Core.CreatedBy;
145
+ createdTime: _Core.CreatedTime;
146
+ updatedBy: _Core.UpdatedBy;
147
+ updatedTime: _Core.UpdatedTime;
148
+ }
149
+ /**
150
+ * Log Safety: SAFE
151
+ */
152
+ export interface DocumentDiscretionarySecurity {
153
+ owners: Array<DiscretionaryPrincipal>;
154
+ editors: Array<DiscretionaryPrincipal>;
155
+ viewers: Array<DiscretionaryPrincipal>;
156
+ }
157
+ /**
158
+ * Log Safety: UNSAFE
159
+ */
160
+ export interface DocumentEditDescription {
161
+ eventData: VersionedEventData;
162
+ eventType: string;
163
+ }
164
+ /**
165
+ * Log Safety: UNSAFE
166
+ */
167
+ export interface DocumentMandatorySecurity {
168
+ classification: Array<MarkingPrincipal>;
169
+ markings: Array<MarkingId>;
170
+ }
171
+ /**
172
+ * Log Safety: UNSAFE
173
+ */
174
+ export type DocumentName = LooselyBrandedString<"DocumentName">;
175
+ /**
176
+ * Log Safety: SAFE
177
+ */
178
+ export type DocumentOntologyRid = LooselyBrandedString<"DocumentOntologyRid">;
179
+ /**
180
+ * Identifier for an PACK Document.
181
+ *
182
+ * Log Safety: SAFE
183
+ */
184
+ export type DocumentRid = LooselyBrandedString<"DocumentRid">;
185
+ /**
186
+ * Log Safety: UNSAFE
187
+ */
188
+ export interface DocumentSecurity {
189
+ mandatory: DocumentMandatorySecurity;
190
+ discretionary: DocumentDiscretionarySecurity;
191
+ }
192
+ /**
193
+ * Log Safety: UNSAFE
194
+ */
195
+ export interface DocumentType {
196
+ rid: DocumentTypeRid;
197
+ name: DocumentTypeName;
198
+ parentFolderRid: _Filesystem.FolderRid;
199
+ }
200
+ /**
201
+ * The configured name for a DocumentType. This is unique within an ontology but not
202
+ globally unique.
203
+ *
204
+ * Log Safety: UNSAFE
205
+ */
206
+ export type DocumentTypeName = LooselyBrandedString<"DocumentTypeName">;
207
+ /**
208
+ * Identifier for an PACK Document Type.
209
+ *
210
+ * Log Safety: SAFE
211
+ */
212
+ export type DocumentTypeRid = LooselyBrandedString<"DocumentTypeRid">;
213
+ /**
214
+ * A unique identifier for this activity event.
215
+ *
216
+ * Log Safety: UNSAFE
217
+ */
218
+ export type EventId = LooselyBrandedString<"EventId">;
219
+ /**
220
+ * The unique resource identifier (RID) of a Folder.
221
+ *
222
+ * Log Safety: SAFE
223
+ */
224
+ export type FolderRid = LooselyBrandedString<"FolderRid">;
225
+ /**
226
+ * A Foundry Group ID.
227
+ *
228
+ * Log Safety: SAFE
229
+ */
230
+ export type GroupId = string;
231
+ /**
232
+ * A UUID representing a Mandatory Marking.
233
+ *
234
+ * Log Safety: SAFE
235
+ */
236
+ export type MarkingId = string;
237
+ /**
238
+ * A portion marking used by CBAC (Classification based access control).
239
+ *
240
+ * Log Safety: UNSAFE
241
+ */
242
+ export type MarkingPrincipal = LooselyBrandedString<"MarkingPrincipal">;
243
+ /**
244
+ * A Foundry User ID.
245
+ *
246
+ * Log Safety: SAFE
247
+ */
248
+ export type UserId = string;
249
+ /**
250
+ * Log Safety: UNSAFE
251
+ */
252
+ export interface VersionedEventData {
253
+ data: any;
254
+ version: number;
255
+ }
256
+ /**
257
+ * Log Safety: UNSAFE
258
+ */
259
+ export interface YjsUpdate {
260
+ data: any;
261
+ }
262
+ //# sourceMappingURL=_components.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_components.d.ts","sourceRoot":"","sources":["../../src/_components.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,KAAK,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,KAAK,WAAW,MAAM,0BAA0B,CAAC;AAE7D,MAAM,MAAM,oBAAoB,CAAC,CAAC,SAAS,MAAM,IAAI,MAAM,GAAG;IAC5D,aAAa,CAAC,EAAE,CAAC,CAAC;CACnB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,2BAA2B,GACnC,CAAC;IAAE,IAAI,EAAE,iBAAiB,CAAA;CAAE,GAAG,eAAe,CAAC,GAC/C,CAAC;IAAE,IAAI,EAAE,iBAAiB,CAAA;CAAE,GAAG,eAAe,CAAC,CAAC;AAEpD;;;;;KAKK;AACL,MAAM,WAAW,eAAe;IAC9B,aAAa,EAAE,aAAa,CAAC;CAC9B;AAED;;;;;KAKK;AACL,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,OAAO,CAAC;IACjB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,kBAAkB,CAAC;IAC9B,MAAM,EAAE,OAAO,CAAC;IAChB,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,WAAW,EAAE,KAAK,CAAC,WAAW,CAAC;CAChC;AAED;;;;;;;KAOK;AACL,MAAM,WAAW,YAAY;CAAG;AAEhC;;;;GAIG;AACH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B,eAAe,EAAE,WAAW,CAAC,SAAS,CAAC;CACxC;AAED;;;;;KAKK;AACL,MAAM,MAAM,gBAAgB,GAAG,oBAAoB,CAAC,kBAAkB,CAAC,CAAC;AAExE;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;AAEtE;;;;GAIG;AACH,MAAM,MAAM,OAAO,GAAG,oBAAoB,CAAC,SAAS,CAAC,CAAC;AAEtD;;;;GAIG;AACH,MAAM,MAAM,SAAS,GAAG,oBAAoB,CAAC,WAAW,CAAC,CAAC;AAE1D;;;;GAIG;AACH,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC;AAE7B;;;;GAIG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC;AAE/B;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GAAG,oBAAoB,CAAC,kBAAkB,CAAC,CAAC;AAExE;;;;GAIG;AACH,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC;AAE5B;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,GAAG,CAAC;IACV,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,GAAG,CAAC;CACX"}
@@ -0,0 +1,17 @@
1
+ /*
2
+ * Copyright 2024 Palantir Technologies, Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export {};
17
+ //# sourceMappingURL=_components.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_components.js","names":[],"sources":["_components.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 */\nexport {};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
@@ -0,0 +1,72 @@
1
+ export type LooselyBrandedString<T extends string> = string & {
2
+ __LOOSE_BRAND?: T;
3
+ };
4
+ /**
5
+ * The user does not have permission to create documents of the given type in
6
+ the given ontology, or the document type does not exist in the ontology.
7
+ *
8
+ * Log Safety: UNSAFE
9
+ */
10
+ export interface CreateDocumentNotSupported {
11
+ errorCode: "PERMISSION_DENIED";
12
+ errorName: "CreateDocumentNotSupported";
13
+ errorDescription: "The user does not have permission to create documents of the given type in the given ontology, or the document type does not exist in the ontology.";
14
+ errorInstanceId: string;
15
+ parameters: {
16
+ ontologyRid: unknown;
17
+ documentTypeName: unknown;
18
+ };
19
+ }
20
+ /**
21
+ * Could not create the Document.
22
+ *
23
+ * Log Safety: SAFE
24
+ */
25
+ export interface CreateDocumentPermissionDenied {
26
+ errorCode: "PERMISSION_DENIED";
27
+ errorName: "CreateDocumentPermissionDenied";
28
+ errorDescription: "Could not create the Document.";
29
+ errorInstanceId: string;
30
+ parameters: {};
31
+ }
32
+ /**
33
+ * Could not create the DocumentType.
34
+ *
35
+ * Log Safety: SAFE
36
+ */
37
+ export interface CreateDocumentTypePermissionDenied {
38
+ errorCode: "PERMISSION_DENIED";
39
+ errorName: "CreateDocumentTypePermissionDenied";
40
+ errorDescription: "Could not create the DocumentType.";
41
+ errorInstanceId: string;
42
+ parameters: {};
43
+ }
44
+ /**
45
+ * The given Document could not be found.
46
+ *
47
+ * Log Safety: SAFE
48
+ */
49
+ export interface DocumentNotFound {
50
+ errorCode: "NOT_FOUND";
51
+ errorName: "DocumentNotFound";
52
+ errorDescription: "The given Document could not be found.";
53
+ errorInstanceId: string;
54
+ parameters: {
55
+ documentId: unknown;
56
+ };
57
+ }
58
+ /**
59
+ * This document type name already exists for the given ontology.
60
+ *
61
+ * Log Safety: UNSAFE
62
+ */
63
+ export interface DocumentTypeAlreadyExists {
64
+ errorCode: "CONFLICT";
65
+ errorName: "DocumentTypeAlreadyExists";
66
+ errorDescription: "This document type name already exists for the given ontology.";
67
+ errorInstanceId: string;
68
+ parameters: {
69
+ documentTypeName: unknown;
70
+ };
71
+ }
72
+ //# sourceMappingURL=_errors.d.ts.map
@@ -0,0 +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,MAAM,CAAC;IACxB,UAAU,EAAE;QACV,UAAU,EAAE,OAAO,CAAC;KACrB,CAAC;CACH;AAED;;;;GAIG;AACH,MAAM,WAAW,yBAAyB;IACxC,SAAS,EAAE,UAAU,CAAC;IACtB,SAAS,EAAE,2BAA2B,CAAC;IACvC,gBAAgB,EACd,gEAAgE,CAAC;IACnE,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE;QACV,gBAAgB,EAAE,OAAO,CAAC;KAC3B,CAAC;CACH"}
@@ -0,0 +1,17 @@
1
+ /*
2
+ * Copyright 2024 Palantir Technologies, Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export {};
17
+ //# sourceMappingURL=_errors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_errors.js","names":[],"sources":["_errors.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 */\nexport {};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
@@ -0,0 +1,5 @@
1
+ export type { ActivityCollaborativeUpdate, ActivityCreated, ActivityDeleted, ActivityEvent, AllPrincipal, ApplyYjsUpdate, ClientId, CollaborativeUpdate, CollaborativeUpdateContents, CreateDocumentRequest, CreateDocumentTypeRequest, DiscretionaryPrincipal, DiscretionaryPrincipalGroupId, DiscretionaryPrincipalUserId, Document, DocumentDiscretionarySecurity, DocumentEditDescription, DocumentMandatorySecurity, DocumentName, DocumentOntologyRid, DocumentRid, DocumentSecurity, DocumentType, DocumentTypeName, DocumentTypeRid, EventId, FolderRid, GroupId, MarkingId, MarkingPrincipal, UserId, VersionedEventData, YjsUpdate, } from "./_components.js";
2
+ export type { CreateDocumentNotSupported, CreateDocumentPermissionDenied, CreateDocumentTypePermissionDenied, DocumentNotFound, DocumentTypeAlreadyExists, } from "./_errors.js";
3
+ export * as Documents from "./public/Document.js";
4
+ export * as DocumentTypes from "./public/DocumentType.js";
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +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,cAAc,EACd,QAAQ,EACR,mBAAmB,EACnB,2BAA2B,EAC3B,qBAAqB,EACrB,yBAAyB,EACzB,sBAAsB,EACtB,6BAA6B,EAC7B,4BAA4B,EAC5B,QAAQ,EACR,6BAA6B,EAC7B,uBAAuB,EACvB,yBAAyB,EACzB,YAAY,EACZ,mBAAmB,EACnB,WAAW,EACX,gBAAgB,EAChB,YAAY,EACZ,gBAAgB,EAChB,eAAe,EACf,OAAO,EACP,SAAS,EACT,OAAO,EACP,SAAS,EACT,gBAAgB,EAChB,MAAM,EACN,kBAAkB,EAClB,SAAS,GACV,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EACV,0BAA0B,EAC1B,8BAA8B,EAC9B,kCAAkC,EAClC,gBAAgB,EAChB,yBAAyB,GAC1B,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,SAAS,MAAM,sBAAsB,CAAC;AAClD,OAAO,KAAK,aAAa,MAAM,0BAA0B,CAAC"}
@@ -0,0 +1,18 @@
1
+ /*
2
+ * Copyright 2024 Palantir Technologies, Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export * as Documents from "./public/Document.js";
17
+ export * as DocumentTypes from "./public/DocumentType.js";
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["Documents","DocumentTypes"],"sources":["index.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 */\nexport * as Documents from \"./public/Document.js\";\nexport * as DocumentTypes from \"./public/DocumentType.js\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,KAAKA,SAAS,MAAM,sBAAsB;AACjD,OAAO,KAAKC,aAAa,MAAM,0BAA0B","ignoreList":[]}
@@ -0,0 +1,33 @@
1
+ import type * as _Core from "@osdk/foundry.core";
2
+ import type { SharedClient as $OldClient, SharedClientContext as $OldClientContext } from "@osdk/shared.client";
3
+ import type { SharedClient as $Client, SharedClientContext as $ClientContext } from "@osdk/shared.client2";
4
+ import type * as _Pack from "../_components.js";
5
+ /**
6
+ * Creates a new Document.
7
+ *
8
+ * @alpha
9
+ *
10
+ * Required Scopes: [api:pack-write]
11
+ * URL: /v2/pack/documents
12
+ */
13
+ export declare function create($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
14
+ $body: _Pack.CreateDocumentRequest,
15
+ $queryParams?: {
16
+ preview?: _Core.PreviewMode | undefined;
17
+ }
18
+ ]): Promise<_Pack.Document>;
19
+ /**
20
+ * Get the Document with the specified id.
21
+ *
22
+ * @alpha
23
+ *
24
+ * Required Scopes: [api:pack-read]
25
+ * URL: /v2/pack/documents/{documentId}
26
+ */
27
+ export declare function get($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
28
+ documentId: _Pack.DocumentRid,
29
+ $queryParams?: {
30
+ preview?: _Core.PreviewMode | undefined;
31
+ }
32
+ ]): Promise<_Pack.Document>;
33
+ //# sourceMappingURL=Document.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,42 @@
1
+ /*
2
+ * Copyright 2024 Palantir Technologies, Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { foundryPlatformFetch as $foundryPlatformFetch } from "@osdk/shared.net.platformapi";
17
+ //
18
+ const _create = [1, "/v2/pack/documents", 3];
19
+ /**
20
+ * Creates a new Document.
21
+ *
22
+ * @alpha
23
+ *
24
+ * Required Scopes: [api:pack-write]
25
+ * URL: /v2/pack/documents
26
+ */
27
+ export function create($ctx, ...args) {
28
+ return $foundryPlatformFetch($ctx, _create, ...args);
29
+ }
30
+ const _get = [0, "/v2/pack/documents/{0}", 2];
31
+ /**
32
+ * Get the Document with the specified id.
33
+ *
34
+ * @alpha
35
+ *
36
+ * Required Scopes: [api:pack-read]
37
+ * URL: /v2/pack/documents/{documentId}
38
+ */
39
+ export function get($ctx, ...args) {
40
+ return $foundryPlatformFetch($ctx, _get, ...args);
41
+ }
42
+ //# sourceMappingURL=Document.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Document.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_create","create","$ctx","args","_get","get"],"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}\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","ignoreList":[]}
@@ -0,0 +1,19 @@
1
+ import type * as _Core from "@osdk/foundry.core";
2
+ import type { SharedClient as $OldClient, SharedClientContext as $OldClientContext } from "@osdk/shared.client";
3
+ import type { SharedClient as $Client, SharedClientContext as $ClientContext } from "@osdk/shared.client2";
4
+ import type * as _Pack from "../_components.js";
5
+ /**
6
+ * Creates a new DocumentType.
7
+ *
8
+ * @alpha
9
+ *
10
+ * Required Scopes: [api:pack-write]
11
+ * URL: /v2/pack/documentTypes
12
+ */
13
+ export declare function create($ctx: $Client | $ClientContext | $OldClient | $OldClientContext, ...args: [
14
+ $body: _Pack.CreateDocumentTypeRequest,
15
+ $queryParams?: {
16
+ preview?: _Core.PreviewMode | undefined;
17
+ }
18
+ ]): Promise<_Pack.DocumentType>;
19
+ //# sourceMappingURL=DocumentType.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DocumentType.d.ts","sourceRoot":"","sources":["../../../src/public/DocumentType.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,yBAAyB;IACtC,YAAY,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAA;KAAE;CAC3D,GACA,OAAO,CAAC,KAAK,CAAC,YAAY,CAAC,CAE7B"}
@@ -0,0 +1,30 @@
1
+ /*
2
+ * Copyright 2024 Palantir Technologies, Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { foundryPlatformFetch as $foundryPlatformFetch } from "@osdk/shared.net.platformapi";
17
+ //
18
+ const _create = [1, "/v2/pack/documentTypes", 3];
19
+ /**
20
+ * Creates a new DocumentType.
21
+ *
22
+ * @alpha
23
+ *
24
+ * Required Scopes: [api:pack-write]
25
+ * URL: /v2/pack/documentTypes
26
+ */
27
+ export function create($ctx, ...args) {
28
+ return $foundryPlatformFetch($ctx, _create, ...args);
29
+ }
30
+ //# sourceMappingURL=DocumentType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DocumentType.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_create","create","$ctx","args"],"sources":["DocumentType.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/documentTypes\", 3];\n/**\n * Creates a new DocumentType.\n *\n * @alpha\n *\n * Required Scopes: [api:pack-write]\n * URL: /v2/pack/documentTypes\n */\nexport function create($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _create, ...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,wBAAwB,EAAE,CAAC,CAAC;AAChD;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","ignoreList":[]}
package/package.json ADDED
@@ -0,0 +1,64 @@
1
+ {
2
+ "name": "@osdk/foundry.pack",
3
+ "version": "0.0.0",
4
+ "license": "Apache-2.0",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "https://github.com/palantir/foundry-platform-typescript.git"
8
+ },
9
+ "exports": {
10
+ ".": {
11
+ "browser": "./build/browser/index.js",
12
+ "import": "./build/esm/index.js",
13
+ "default": "./build/esm/index.js"
14
+ },
15
+ "./*": {
16
+ "browser": "./build/browser/public/*.js",
17
+ "import": "./build/esm/public/*.js",
18
+ "default": "./build/esm/public/*.js"
19
+ }
20
+ },
21
+ "dependencies": {
22
+ "@osdk/shared.client": "^1.0.1",
23
+ "@osdk/shared.client2": "^1.0.0",
24
+ "@osdk/foundry.core": "2.35.0",
25
+ "@osdk/foundry.filesystem": "2.35.0",
26
+ "@osdk/shared.net.platformapi": "~1.5.0"
27
+ },
28
+ "devDependencies": {
29
+ "typescript": "^5.5.4",
30
+ "@osdk/monorepo.tsconfig": "~0.0.0"
31
+ },
32
+ "publishConfig": {
33
+ "access": "public"
34
+ },
35
+ "files": [
36
+ "build/cjs",
37
+ "build/esm",
38
+ "build/browser",
39
+ "CHANGELOG.md",
40
+ "package.json",
41
+ "templates",
42
+ "*.d.ts"
43
+ ],
44
+ "module": "./build/esm/index.js",
45
+ "types": "./build/esm/index.d.ts",
46
+ "sls": {
47
+ "dependencies": {
48
+ "com.palantir.foundry.api:api-gateway": {
49
+ "minVersion": "1.1342.0",
50
+ "maxVersion": "1.x.x",
51
+ "optional": false
52
+ }
53
+ }
54
+ },
55
+ "type": "module",
56
+ "scripts": {
57
+ "check-attw": "monorepo.tool.attw esm",
58
+ "check-spelling": "cspell --quiet .",
59
+ "clean": "rm -rf lib dist types build tsconfig.tsbuildinfo",
60
+ "fix-lint": "eslint . --fix && dprint fmt --config $(find-up dprint.json)",
61
+ "lint": "eslint . && dprint check --config $(find-up dprint.json)",
62
+ "transpile": "monorepo.tool.transpile"
63
+ }
64
+ }