@osdk/internal.foundry.ontologies 0.2.0-beta.8 → 0.2.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 (120) hide show
  1. package/CHANGELOG.md +59 -0
  2. package/build/browser/_components.d.ts +4 -0
  3. package/build/browser/_components.d.ts.map +1 -0
  4. package/build/browser/_components.js +17 -0
  5. package/build/browser/_components.js.map +1 -0
  6. package/build/browser/_errors.d.ts +4 -0
  7. package/build/browser/_errors.d.ts.map +1 -0
  8. package/build/browser/_errors.js +17 -0
  9. package/build/browser/_errors.js.map +1 -0
  10. package/build/browser/index.d.ts +11 -0
  11. package/build/browser/index.d.ts.map +1 -0
  12. package/build/browser/index.js +23 -10
  13. package/build/browser/index.js.map +1 -1
  14. package/build/browser/public/Action.d.ts +105 -0
  15. package/build/browser/public/Action.d.ts.map +1 -0
  16. package/build/browser/public/Action.js +108 -3
  17. package/build/browser/public/Action.js.map +1 -1
  18. package/build/browser/public/ActionType.d.ts +37 -0
  19. package/build/browser/public/ActionType.d.ts.map +1 -0
  20. package/build/browser/public/ActionType.js +48 -3
  21. package/build/browser/public/ActionType.js.map +1 -1
  22. package/build/browser/public/Attachment.d.ts +51 -0
  23. package/build/browser/public/Attachment.d.ts.map +1 -0
  24. package/build/browser/public/Attachment.js +71 -3
  25. package/build/browser/public/Attachment.js.map +1 -1
  26. package/build/browser/public/ObjectType.d.ts +70 -0
  27. package/build/browser/public/ObjectType.d.ts.map +1 -0
  28. package/build/browser/public/ObjectType.js +79 -3
  29. package/build/browser/public/ObjectType.js.map +1 -1
  30. package/build/browser/public/Ontology.d.ts +25 -0
  31. package/build/browser/public/Ontology.d.ts.map +1 -0
  32. package/build/browser/public/Ontology.js +45 -3
  33. package/build/browser/public/Ontology.js.map +1 -1
  34. package/build/browser/public/OntologyObject.d.ts +162 -0
  35. package/build/browser/public/OntologyObject.d.ts.map +1 -0
  36. package/build/browser/public/OntologyObject.js +150 -3
  37. package/build/browser/public/OntologyObject.js.map +1 -1
  38. package/build/browser/public/Query.d.ts +18 -0
  39. package/build/browser/public/Query.d.ts.map +1 -0
  40. package/build/browser/public/Query.js +31 -3
  41. package/build/browser/public/Query.js.map +1 -1
  42. package/build/browser/public/QueryType.d.ts +34 -0
  43. package/build/browser/public/QueryType.d.ts.map +1 -0
  44. package/build/browser/public/QueryType.js +48 -3
  45. package/build/browser/public/QueryType.js.map +1 -1
  46. package/build/esm/_components.js +17 -0
  47. package/build/esm/_components.js.map +1 -0
  48. package/build/esm/_errors.js +17 -0
  49. package/build/esm/_errors.js.map +1 -0
  50. package/build/esm/index.js +23 -10
  51. package/build/esm/index.js.map +1 -1
  52. package/build/esm/public/Action.d.ts +27 -27
  53. package/build/esm/public/Action.d.ts.map +1 -1
  54. package/build/esm/public/Action.js +108 -3
  55. package/build/esm/public/Action.js.map +1 -1
  56. package/build/esm/public/ActionType.d.ts +10 -7
  57. package/build/esm/public/ActionType.d.ts.map +1 -1
  58. package/build/esm/public/ActionType.js +48 -3
  59. package/build/esm/public/ActionType.js.map +1 -1
  60. package/build/esm/public/Attachment.d.ts +7 -7
  61. package/build/esm/public/Attachment.d.ts.map +1 -1
  62. package/build/esm/public/Attachment.js +71 -3
  63. package/build/esm/public/Attachment.js.map +1 -1
  64. package/build/esm/public/ObjectType.d.ts +16 -16
  65. package/build/esm/public/ObjectType.d.ts.map +1 -1
  66. package/build/esm/public/ObjectType.js +79 -3
  67. package/build/esm/public/ObjectType.js.map +1 -1
  68. package/build/esm/public/Ontology.d.ts +3 -3
  69. package/build/esm/public/Ontology.d.ts.map +1 -1
  70. package/build/esm/public/Ontology.js +45 -3
  71. package/build/esm/public/Ontology.js.map +1 -1
  72. package/build/esm/public/OntologyObject.d.ts +41 -41
  73. package/build/esm/public/OntologyObject.d.ts.map +1 -1
  74. package/build/esm/public/OntologyObject.js +150 -3
  75. package/build/esm/public/OntologyObject.js.map +1 -1
  76. package/build/esm/public/Query.d.ts +6 -6
  77. package/build/esm/public/Query.d.ts.map +1 -1
  78. package/build/esm/public/Query.js +31 -3
  79. package/build/esm/public/Query.js.map +1 -1
  80. package/build/esm/public/QueryType.d.ts +7 -7
  81. package/build/esm/public/QueryType.d.ts.map +1 -1
  82. package/build/esm/public/QueryType.js +48 -3
  83. package/build/esm/public/QueryType.js.map +1 -1
  84. package/package.json +6 -7
  85. package/build/browser/chunk-5RUWELWF.js +0 -21
  86. package/build/browser/chunk-5RUWELWF.js.map +0 -1
  87. package/build/browser/chunk-ABHCL2BI.js +0 -21
  88. package/build/browser/chunk-ABHCL2BI.js.map +0 -1
  89. package/build/browser/chunk-ATSSLGFA.js +0 -31
  90. package/build/browser/chunk-ATSSLGFA.js.map +0 -1
  91. package/build/browser/chunk-MONAXU3N.js +0 -36
  92. package/build/browser/chunk-MONAXU3N.js.map +0 -1
  93. package/build/browser/chunk-PZ5AY32C.js +0 -9
  94. package/build/browser/chunk-PZ5AY32C.js.map +0 -1
  95. package/build/browser/chunk-SALCOSHR.js +0 -16
  96. package/build/browser/chunk-SALCOSHR.js.map +0 -1
  97. package/build/browser/chunk-UM4N5F6D.js +0 -21
  98. package/build/browser/chunk-UM4N5F6D.js.map +0 -1
  99. package/build/browser/chunk-VBZZKGHE.js +0 -41
  100. package/build/browser/chunk-VBZZKGHE.js.map +0 -1
  101. package/build/browser/chunk-YCOLCQXU.js +0 -31
  102. package/build/browser/chunk-YCOLCQXU.js.map +0 -1
  103. package/build/esm/chunk-5RUWELWF.js +0 -21
  104. package/build/esm/chunk-5RUWELWF.js.map +0 -1
  105. package/build/esm/chunk-ABHCL2BI.js +0 -21
  106. package/build/esm/chunk-ABHCL2BI.js.map +0 -1
  107. package/build/esm/chunk-ATSSLGFA.js +0 -31
  108. package/build/esm/chunk-ATSSLGFA.js.map +0 -1
  109. package/build/esm/chunk-MONAXU3N.js +0 -36
  110. package/build/esm/chunk-MONAXU3N.js.map +0 -1
  111. package/build/esm/chunk-PZ5AY32C.js +0 -9
  112. package/build/esm/chunk-PZ5AY32C.js.map +0 -1
  113. package/build/esm/chunk-SALCOSHR.js +0 -16
  114. package/build/esm/chunk-SALCOSHR.js.map +0 -1
  115. package/build/esm/chunk-UM4N5F6D.js +0 -21
  116. package/build/esm/chunk-UM4N5F6D.js.map +0 -1
  117. package/build/esm/chunk-VBZZKGHE.js +0 -41
  118. package/build/esm/chunk-VBZZKGHE.js.map +0 -1
  119. package/build/esm/chunk-YCOLCQXU.js +0 -31
  120. package/build/esm/chunk-YCOLCQXU.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,64 @@
1
1
  # @osdk/internal.foundry.ontologies
2
2
 
3
+ ## 0.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 5d6d5ab: Use the "verb" where possible
8
+ - 1770490: URLs in jsdoc now link to palantir.com
9
+ - 5d6d5ab: Internal improvement to type references
10
+ - 5d6d5ab: Updated to latest gateway apis
11
+ - 5d6d5ab: We now generate error types
12
+ - 5d6d5ab: Includes @alpha/@beta/@public jsdoc tags
13
+ - 5d6d5ab: Internally refactored to support new API versions
14
+ - 5d6d5ab: Autofill Content-Length and Content-Type headers in API's that accept Blobs
15
+ - 5d6d5ab: SLS dependencies are optional
16
+ - d4d6605: Audited and cleaned up deps
17
+
18
+ ### Patch Changes
19
+
20
+ - Updated dependencies [5d6d5ab]
21
+ - Updated dependencies [b60e107]
22
+ - Updated dependencies [5d6d5ab]
23
+ - Updated dependencies [5dc1241]
24
+ - Updated dependencies [1252d94]
25
+ - Updated dependencies [5d6d5ab]
26
+ - Updated dependencies [5d6d5ab]
27
+ - Updated dependencies [5d6d5ab]
28
+ - Updated dependencies [5d6d5ab]
29
+ - Updated dependencies [5d6d5ab]
30
+ - Updated dependencies [5d6d5ab]
31
+ - Updated dependencies [d4d6605]
32
+ - Updated dependencies [5dc1241]
33
+ - @osdk/internal.foundry.core@0.2.0
34
+ - @osdk/shared.client@1.0.0
35
+ - @osdk/shared.net.platformapi@0.3.0
36
+
37
+ ## 0.2.0-beta.10
38
+
39
+ ### Patch Changes
40
+
41
+ - Updated dependencies [5dc1241]
42
+ - @osdk/shared.client@1.0.0-beta.3
43
+ - @osdk/internal.foundry.core@0.2.0-beta.10
44
+ - @osdk/shared.net.platformapi@0.3.0-beta.3
45
+
46
+ ## 0.2.0-beta.9
47
+
48
+ ### Minor Changes
49
+
50
+ - 5d6d5ab: Internal improvement to type references
51
+ - d4d6605: Audited and cleaned up deps
52
+
53
+ ### Patch Changes
54
+
55
+ - Updated dependencies [b60e107]
56
+ - Updated dependencies [5d6d5ab]
57
+ - Updated dependencies [d4d6605]
58
+ - @osdk/shared.client@1.0.0-beta.2
59
+ - @osdk/internal.foundry.core@0.2.0-beta.9
60
+ - @osdk/shared.net.platformapi@0.3.0-beta.2
61
+
3
62
  ## 0.2.0-beta.8
4
63
 
5
64
  ### Patch Changes
@@ -0,0 +1,4 @@
1
+ export type LooselyBrandedString<T extends string> = string & {
2
+ __LOOSE_BRAND?: T;
3
+ };
4
+ //# sourceMappingURL=_components.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_components.d.ts","sourceRoot":"","sources":["../../src/_components.ts"],"names":[],"mappings":"AAgBA,MAAM,MAAM,oBAAoB,CAAC,CAAC,SAAS,MAAM,IAAI,MAAM,GAAG;IAC5D,aAAa,CAAC,EAAE,CAAC,CAAC;CACnB,CAAC"}
@@ -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,4 @@
1
+ export type LooselyBrandedString<T extends string> = string & {
2
+ __LOOSE_BRAND?: T;
3
+ };
4
+ //# 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"}
@@ -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,11 @@
1
+ export type {} from "./_components.js";
2
+ export type {} from "./_errors.js";
3
+ export * as Actions from "./public/Action.js";
4
+ export * as ActionTypes from "./public/ActionType.js";
5
+ export * as Attachments from "./public/Attachment.js";
6
+ export * as ObjectTypes from "./public/ObjectType.js";
7
+ export * as Ontologies from "./public/Ontology.js";
8
+ export * as OntologyObjects from "./public/OntologyObject.js";
9
+ export * as Queries from "./public/Query.js";
10
+ export * as QueryTypes from "./public/QueryType.js";
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAgBA,YAAY,EAAE,MAAM,kBAAkB,CAAC;AACvC,YAAY,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAC;AAC9C,OAAO,KAAK,WAAW,MAAM,wBAAwB,CAAC;AACtD,OAAO,KAAK,WAAW,MAAM,wBAAwB,CAAC;AACtD,OAAO,KAAK,WAAW,MAAM,wBAAwB,CAAC;AACtD,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AACnD,OAAO,KAAK,eAAe,MAAM,4BAA4B,CAAC;AAC9D,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,uBAAuB,CAAC"}
@@ -1,11 +1,24 @@
1
- export { QueryType_exports as QueryTypes } from './chunk-UM4N5F6D.js';
2
- export { Action_exports as Actions } from './chunk-MONAXU3N.js';
3
- export { ActionType_exports as ActionTypes } from './chunk-5RUWELWF.js';
4
- export { Attachment_exports as Attachments } from './chunk-YCOLCQXU.js';
5
- export { ObjectType_exports as ObjectTypes } from './chunk-ATSSLGFA.js';
6
- export { Ontology_exports as Ontologies } from './chunk-ABHCL2BI.js';
7
- export { OntologyObject_exports as OntologyObjects } from './chunk-VBZZKGHE.js';
8
- export { Query_exports as Queries } from './chunk-SALCOSHR.js';
9
- import './chunk-PZ5AY32C.js';
10
- //# sourceMappingURL=index.js.map
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 Actions from "./public/Action.js";
17
+ export * as ActionTypes from "./public/ActionType.js";
18
+ export * as Attachments from "./public/Attachment.js";
19
+ export * as ObjectTypes from "./public/ObjectType.js";
20
+ export * as Ontologies from "./public/Ontology.js";
21
+ export * as OntologyObjects from "./public/OntologyObject.js";
22
+ export * as Queries from "./public/Query.js";
23
+ export * as QueryTypes from "./public/QueryType.js";
11
24
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
1
+ {"version":3,"file":"index.js","names":["Actions","ActionTypes","Attachments","ObjectTypes","Ontologies","OntologyObjects","Queries","QueryTypes"],"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 Actions from \"./public/Action.js\";\nexport * as ActionTypes from \"./public/ActionType.js\";\nexport * as Attachments from \"./public/Attachment.js\";\nexport * as ObjectTypes from \"./public/ObjectType.js\";\nexport * as Ontologies from \"./public/Ontology.js\";\nexport * as OntologyObjects from \"./public/OntologyObject.js\";\nexport * as Queries from \"./public/Query.js\";\nexport * as QueryTypes from \"./public/QueryType.js\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,KAAKA,OAAO,MAAM,oBAAoB;AAC7C,OAAO,KAAKC,WAAW,MAAM,wBAAwB;AACrD,OAAO,KAAKC,WAAW,MAAM,wBAAwB;AACrD,OAAO,KAAKC,WAAW,MAAM,wBAAwB;AACrD,OAAO,KAAKC,UAAU,MAAM,sBAAsB;AAClD,OAAO,KAAKC,eAAe,MAAM,4BAA4B;AAC7D,OAAO,KAAKC,OAAO,MAAM,mBAAmB;AAC5C,OAAO,KAAKC,UAAU,MAAM,uBAAuB","ignoreList":[]}
@@ -0,0 +1,105 @@
1
+ import type * as _Core from "@osdk/internal.foundry.core";
2
+ import type { SharedClient as $Client, SharedClientContext as $ClientContext } from "@osdk/shared.client";
3
+ /**
4
+ * Applies an action using the given parameters. Changes to the Ontology are eventually consistent and may take
5
+ * some time to be visible.
6
+ *
7
+ * Note that [parameter default values](https://www.palantir.com/docs/foundry/action-types/parameters-default-value/) are not currently supported by
8
+ * this endpoint.
9
+ *
10
+ * Third-party applications using this endpoint via OAuth2 must request the
11
+ * following operation scopes: `api:ontologies-read api:ontologies-write`.
12
+ *
13
+ * @public
14
+ *
15
+ * Required Scopes: [api:ontologies-read, api:ontologies-write]
16
+ * URL: /v1/ontologies/{ontologyRid}/actions/{actionType}/apply
17
+ */
18
+ export declare function apply($ctx: $Client | $ClientContext, ...args: [
19
+ ontologyRid: _Core.OntologyRid,
20
+ actionType: _Core.ActionTypeApiName,
21
+ $body: _Core.ApplyActionRequest
22
+ ]): Promise<_Core.ApplyActionResponse>;
23
+ /**
24
+ * Applies multiple actions (of the same Action Type) using the given parameters.
25
+ * Changes to the Ontology are eventually consistent and may take some time to be visible.
26
+ *
27
+ * Up to 20 actions may be applied in one call. Actions that only modify objects in Object Storage v2 and do not
28
+ * call Functions may receive a higher limit.
29
+ *
30
+ * Note that [parameter default values](https://www.palantir.com/docs/foundry/action-types/parameters-default-value/) and
31
+ * [notifications](https://www.palantir.com/docs/foundry/action-types/notifications/) are not currently supported by this endpoint.
32
+ *
33
+ * Third-party applications using this endpoint via OAuth2 must request the
34
+ * following operation scopes: `api:ontologies-read api:ontologies-write`.
35
+ *
36
+ * @public
37
+ *
38
+ * Required Scopes: [api:ontologies-read, api:ontologies-write]
39
+ * URL: /v1/ontologies/{ontologyRid}/actions/{actionType}/applyBatch
40
+ */
41
+ export declare function applyBatch($ctx: $Client | $ClientContext, ...args: [
42
+ ontologyRid: _Core.OntologyRid,
43
+ actionType: _Core.ActionTypeApiName,
44
+ $body: _Core.BatchApplyActionRequest
45
+ ]): Promise<_Core.BatchApplyActionResponse>;
46
+ /**
47
+ * Applies an action asynchronously using the given parameters. Changes to the Ontology are eventually consistent
48
+ * and may take some time to be visible.
49
+ *
50
+ * Note that [parameter default values](https://www.palantir.com/docs/foundry/action-types/parameters-default-value/) are not currently
51
+ * supported by this endpoint.
52
+ *
53
+ * Third-party applications using this endpoint via OAuth2 must request the
54
+ * following operation scopes: `api:ontologies-read api:ontologies-write`.
55
+ *
56
+ * @alpha
57
+ *
58
+ * Required Scopes: [api:ontologies-read, api:ontologies-write]
59
+ * URL: /v1/ontologies/{ontologyRid}/actions/{actionType}/applyAsync
60
+ */
61
+ export declare function applyAsync($ctx: $Client | $ClientContext, ...args: [
62
+ ontologyRid: _Core.OntologyRid,
63
+ actionType: _Core.ActionTypeApiName,
64
+ $body: _Core.AsyncApplyActionRequest,
65
+ $queryParams?: {
66
+ preview?: _Core.PreviewMode | undefined;
67
+ }
68
+ ]): Promise<void>;
69
+ /**
70
+ * @alpha
71
+ *
72
+ * Required Scopes: [api:ontologies-read, api:ontologies-write]
73
+ * URL: /v1/ontologies/{ontologyRid}/actions/{actionType}/applyAsync/{actionRid}
74
+ */
75
+ export declare function getOperationStatus($ctx: $Client | $ClientContext, ...args: [
76
+ ontologyRid: _Core.OntologyRid,
77
+ actionType: _Core.ActionTypeApiName,
78
+ actionRid: _Core.ActionRid,
79
+ $queryParams?: {
80
+ preview?: _Core.PreviewMode | undefined;
81
+ }
82
+ ]): Promise<_Core.AsyncActionOperation>;
83
+ /**
84
+ * Validates if an action can be run with the given set of parameters.
85
+ * The response contains the evaluation of parameters and **submission criteria**
86
+ * that determine if the request is `VALID` or `INVALID`.
87
+ * For performance reasons, validations will not consider existing objects or other data in Foundry.
88
+ * For example, the uniqueness of a primary key or the existence of a user ID will not be checked.
89
+ * Note that [parameter default values](https://www.palantir.com/docs/foundry/action-types/parameters-default-value/) are not currently supported by
90
+ * this endpoint. Unspecified parameters will be given a default value of `null`.
91
+ *
92
+ * Third-party applications using this endpoint via OAuth2 must request the
93
+ * following operation scopes: `api:ontologies-read`.
94
+ *
95
+ * @public
96
+ *
97
+ * Required Scopes: [api:ontologies-read]
98
+ * URL: /v1/ontologies/{ontologyRid}/actions/{actionType}/validate
99
+ */
100
+ export declare function validate($ctx: $Client | $ClientContext, ...args: [
101
+ ontologyRid: _Core.OntologyRid,
102
+ actionType: _Core.ActionTypeApiName,
103
+ $body: _Core.ValidateActionRequest
104
+ ]): Promise<_Core.ValidateActionResponse>;
105
+ //# sourceMappingURL=Action.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Action.d.ts","sourceRoot":"","sources":["../../../src/public/Action.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,KAAK,MAAM,6BAA6B,CAAC;AAC1D,OAAO,KAAK,EACV,YAAY,IAAI,OAAO,EACvB,mBAAmB,IAAI,cAAc,EACtC,MAAM,qBAAqB,CAAC;AAc7B;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,KAAK,CACnB,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,WAAW,EAAE,KAAK,CAAC,WAAW;IAC9B,UAAU,EAAE,KAAK,CAAC,iBAAiB;IACnC,KAAK,EAAE,KAAK,CAAC,kBAAkB;CAChC,GACA,OAAO,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAEpC;AAUD;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,UAAU,CACxB,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,WAAW,EAAE,KAAK,CAAC,WAAW;IAC9B,UAAU,EAAE,KAAK,CAAC,iBAAiB;IACnC,KAAK,EAAE,KAAK,CAAC,uBAAuB;CACrC,GACA,OAAO,CAAC,KAAK,CAAC,wBAAwB,CAAC,CAEzC;AAWD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,UAAU,CACxB,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,WAAW,EAAE,KAAK,CAAC,WAAW;IAC9B,UAAU,EAAE,KAAK,CAAC,iBAAiB;IACnC,KAAK,EAAE,KAAK,CAAC,uBAAuB;IACpC,YAAY,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAA;KAAE;CAC3D,GACA,OAAO,CAAC,IAAI,CAAC,CAEf;AAWD;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,WAAW,EAAE,KAAK,CAAC,WAAW;IAC9B,UAAU,EAAE,KAAK,CAAC,iBAAiB;IACnC,SAAS,EAAE,KAAK,CAAC,SAAS;IAE1B,YAAY,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAA;KAAE;CAC3D,GACA,OAAO,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAErC;AAUD;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,QAAQ,CACtB,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,WAAW,EAAE,KAAK,CAAC,WAAW;IAC9B,UAAU,EAAE,KAAK,CAAC,iBAAiB;IACnC,KAAK,EAAE,KAAK,CAAC,qBAAqB;CACnC,GACA,OAAO,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAEvC"}
@@ -1,4 +1,109 @@
1
- export { applyAction, applyActionAsync, applyActionBatch, getAsyncActionStatus, validateAction } from '../chunk-MONAXU3N.js';
2
- import '../chunk-PZ5AY32C.js';
3
- //# sourceMappingURL=Action.js.map
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 _apply = [1, "/v1/ontologies/{0}/actions/{1}/apply", 1];
19
+ /**
20
+ * Applies an action using the given parameters. Changes to the Ontology are eventually consistent and may take
21
+ * some time to be visible.
22
+ *
23
+ * Note that [parameter default values](https://www.palantir.com/docs/foundry/action-types/parameters-default-value/) are not currently supported by
24
+ * this endpoint.
25
+ *
26
+ * Third-party applications using this endpoint via OAuth2 must request the
27
+ * following operation scopes: `api:ontologies-read api:ontologies-write`.
28
+ *
29
+ * @public
30
+ *
31
+ * Required Scopes: [api:ontologies-read, api:ontologies-write]
32
+ * URL: /v1/ontologies/{ontologyRid}/actions/{actionType}/apply
33
+ */
34
+ export function apply($ctx, ...args) {
35
+ return $foundryPlatformFetch($ctx, _apply, ...args);
36
+ }
37
+ const _applyBatch = [1, "/v1/ontologies/{0}/actions/{1}/applyBatch", 1];
38
+ /**
39
+ * Applies multiple actions (of the same Action Type) using the given parameters.
40
+ * Changes to the Ontology are eventually consistent and may take some time to be visible.
41
+ *
42
+ * Up to 20 actions may be applied in one call. Actions that only modify objects in Object Storage v2 and do not
43
+ * call Functions may receive a higher limit.
44
+ *
45
+ * Note that [parameter default values](https://www.palantir.com/docs/foundry/action-types/parameters-default-value/) and
46
+ * [notifications](https://www.palantir.com/docs/foundry/action-types/notifications/) are not currently supported by this endpoint.
47
+ *
48
+ * Third-party applications using this endpoint via OAuth2 must request the
49
+ * following operation scopes: `api:ontologies-read api:ontologies-write`.
50
+ *
51
+ * @public
52
+ *
53
+ * Required Scopes: [api:ontologies-read, api:ontologies-write]
54
+ * URL: /v1/ontologies/{ontologyRid}/actions/{actionType}/applyBatch
55
+ */
56
+ export function applyBatch($ctx, ...args) {
57
+ return $foundryPlatformFetch($ctx, _applyBatch, ...args);
58
+ }
59
+ const _applyAsync = [1, "/v1/ontologies/{0}/actions/{1}/applyAsync", 3];
60
+ /**
61
+ * Applies an action asynchronously using the given parameters. Changes to the Ontology are eventually consistent
62
+ * and may take some time to be visible.
63
+ *
64
+ * Note that [parameter default values](https://www.palantir.com/docs/foundry/action-types/parameters-default-value/) are not currently
65
+ * supported by this endpoint.
66
+ *
67
+ * Third-party applications using this endpoint via OAuth2 must request the
68
+ * following operation scopes: `api:ontologies-read api:ontologies-write`.
69
+ *
70
+ * @alpha
71
+ *
72
+ * Required Scopes: [api:ontologies-read, api:ontologies-write]
73
+ * URL: /v1/ontologies/{ontologyRid}/actions/{actionType}/applyAsync
74
+ */
75
+ export function applyAsync($ctx, ...args) {
76
+ return $foundryPlatformFetch($ctx, _applyAsync, ...args);
77
+ }
78
+ const _getOperationStatus = [0, "/v1/ontologies/{0}/actions/{1}/applyAsync/{2}", 2];
79
+ /**
80
+ * @alpha
81
+ *
82
+ * Required Scopes: [api:ontologies-read, api:ontologies-write]
83
+ * URL: /v1/ontologies/{ontologyRid}/actions/{actionType}/applyAsync/{actionRid}
84
+ */
85
+ export function getOperationStatus($ctx, ...args) {
86
+ return $foundryPlatformFetch($ctx, _getOperationStatus, ...args);
87
+ }
88
+ const _validate = [1, "/v1/ontologies/{0}/actions/{1}/validate", 1];
89
+ /**
90
+ * Validates if an action can be run with the given set of parameters.
91
+ * The response contains the evaluation of parameters and **submission criteria**
92
+ * that determine if the request is `VALID` or `INVALID`.
93
+ * For performance reasons, validations will not consider existing objects or other data in Foundry.
94
+ * For example, the uniqueness of a primary key or the existence of a user ID will not be checked.
95
+ * Note that [parameter default values](https://www.palantir.com/docs/foundry/action-types/parameters-default-value/) are not currently supported by
96
+ * this endpoint. Unspecified parameters will be given a default value of `null`.
97
+ *
98
+ * Third-party applications using this endpoint via OAuth2 must request the
99
+ * following operation scopes: `api:ontologies-read`.
100
+ *
101
+ * @public
102
+ *
103
+ * Required Scopes: [api:ontologies-read]
104
+ * URL: /v1/ontologies/{ontologyRid}/actions/{actionType}/validate
105
+ */
106
+ export function validate($ctx, ...args) {
107
+ return $foundryPlatformFetch($ctx, _validate, ...args);
108
+ }
4
109
  //# sourceMappingURL=Action.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"Action.js"}
1
+ {"version":3,"file":"Action.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_apply","apply","$ctx","args","_applyBatch","applyBatch","_applyAsync","applyAsync","_getOperationStatus","getOperationStatus","_validate","validate"],"sources":["Action.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 _apply = [1, \"/v1/ontologies/{0}/actions/{1}/apply\", 1];\n/**\n * Applies an action using the given parameters. Changes to the Ontology are eventually consistent and may take\n * some time to be visible.\n *\n * Note that [parameter default values](https://www.palantir.com/docs/foundry/action-types/parameters-default-value/) are not currently supported by\n * this endpoint.\n *\n * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:ontologies-read api:ontologies-write`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read, api:ontologies-write]\n * URL: /v1/ontologies/{ontologyRid}/actions/{actionType}/apply\n */\nexport function apply($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _apply, ...args);\n}\nconst _applyBatch = [1, \"/v1/ontologies/{0}/actions/{1}/applyBatch\", 1];\n/**\n * Applies multiple actions (of the same Action Type) using the given parameters.\n * Changes to the Ontology are eventually consistent and may take some time to be visible.\n *\n * Up to 20 actions may be applied in one call. Actions that only modify objects in Object Storage v2 and do not\n * call Functions may receive a higher limit.\n *\n * Note that [parameter default values](https://www.palantir.com/docs/foundry/action-types/parameters-default-value/) and\n * [notifications](https://www.palantir.com/docs/foundry/action-types/notifications/) are not currently supported by this endpoint.\n *\n * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:ontologies-read api:ontologies-write`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read, api:ontologies-write]\n * URL: /v1/ontologies/{ontologyRid}/actions/{actionType}/applyBatch\n */\nexport function applyBatch($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _applyBatch, ...args);\n}\nconst _applyAsync = [1, \"/v1/ontologies/{0}/actions/{1}/applyAsync\", 3];\n/**\n * Applies an action asynchronously using the given parameters. Changes to the Ontology are eventually consistent\n * and may take some time to be visible.\n *\n * Note that [parameter default values](https://www.palantir.com/docs/foundry/action-types/parameters-default-value/) are not currently\n * supported by this endpoint.\n *\n * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:ontologies-read api:ontologies-write`.\n *\n * @alpha\n *\n * Required Scopes: [api:ontologies-read, api:ontologies-write]\n * URL: /v1/ontologies/{ontologyRid}/actions/{actionType}/applyAsync\n */\nexport function applyAsync($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _applyAsync, ...args);\n}\nconst _getOperationStatus = [0, \"/v1/ontologies/{0}/actions/{1}/applyAsync/{2}\", 2];\n/**\n * @alpha\n *\n * Required Scopes: [api:ontologies-read, api:ontologies-write]\n * URL: /v1/ontologies/{ontologyRid}/actions/{actionType}/applyAsync/{actionRid}\n */\nexport function getOperationStatus($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getOperationStatus, ...args);\n}\nconst _validate = [1, \"/v1/ontologies/{0}/actions/{1}/validate\", 1];\n/**\n * Validates if an action can be run with the given set of parameters.\n * The response contains the evaluation of parameters and **submission criteria**\n * that determine if the request is `VALID` or `INVALID`.\n * For performance reasons, validations will not consider existing objects or other data in Foundry.\n * For example, the uniqueness of a primary key or the existence of a user ID will not be checked.\n * Note that [parameter default values](https://www.palantir.com/docs/foundry/action-types/parameters-default-value/) are not currently supported by\n * this endpoint. Unspecified parameters will be given a default value of `null`.\n *\n * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v1/ontologies/{ontologyRid}/actions/{actionType}/validate\n */\nexport function validate($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _validate, ...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,MAAM,GAAG,CAAC,CAAC,EAAE,sCAAsC,EAAE,CAAC,CAAC;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,KAAKA,CAACC,IAAI,EAAE,GAAGC,IAAI,EAAE;EACjC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEF,MAAM,EAAE,GAAGG,IAAI,CAAC;AACvD;AACA,MAAMC,WAAW,GAAG,CAAC,CAAC,EAAE,2CAA2C,EAAE,CAAC,CAAC;AACvE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,UAAUA,CAACH,IAAI,EAAE,GAAGC,IAAI,EAAE;EACtC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEE,WAAW,EAAE,GAAGD,IAAI,CAAC;AAC5D;AACA,MAAMG,WAAW,GAAG,CAAC,CAAC,EAAE,2CAA2C,EAAE,CAAC,CAAC;AACvE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,UAAUA,CAACL,IAAI,EAAE,GAAGC,IAAI,EAAE;EACtC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEI,WAAW,EAAE,GAAGH,IAAI,CAAC;AAC5D;AACA,MAAMK,mBAAmB,GAAG,CAAC,CAAC,EAAE,+CAA+C,EAAE,CAAC,CAAC;AACnF;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,kBAAkBA,CAACP,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC9C,OAAOJ,qBAAqB,CAACG,IAAI,EAAEM,mBAAmB,EAAE,GAAGL,IAAI,CAAC;AACpE;AACA,MAAMO,SAAS,GAAG,CAAC,CAAC,EAAE,yCAAyC,EAAE,CAAC,CAAC;AACnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,QAAQA,CAACT,IAAI,EAAE,GAAGC,IAAI,EAAE;EACpC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEQ,SAAS,EAAE,GAAGP,IAAI,CAAC;AAC1D","ignoreList":[]}
@@ -0,0 +1,37 @@
1
+ import type * as _Core from "@osdk/internal.foundry.core";
2
+ import type { SharedClient as $Client, SharedClientContext as $ClientContext } from "@osdk/shared.client";
3
+ /**
4
+ * Lists the action types for the given Ontology.
5
+ *
6
+ * Each page may be smaller than the requested page size. However, it is guaranteed that if there are more
7
+ * results available, at least one result will be present in the response.
8
+ *
9
+ * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.
10
+ *
11
+ * @public
12
+ *
13
+ * Required Scopes: [api:ontologies-read]
14
+ * URL: /v1/ontologies/{ontologyRid}/actionTypes
15
+ */
16
+ export declare function list($ctx: $Client | $ClientContext, ...args: [
17
+ ontologyRid: _Core.OntologyRid,
18
+ $queryParams?: {
19
+ pageSize?: _Core.PageSize | undefined;
20
+ pageToken?: _Core.PageToken | undefined;
21
+ }
22
+ ]): Promise<_Core.ListActionTypesResponse>;
23
+ /**
24
+ * Gets a specific action type with the given API name.
25
+ *
26
+ * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.
27
+ *
28
+ * @public
29
+ *
30
+ * Required Scopes: [api:ontologies-read]
31
+ * URL: /v1/ontologies/{ontologyRid}/actionTypes/{actionTypeApiName}
32
+ */
33
+ export declare function get($ctx: $Client | $ClientContext, ...args: [
34
+ ontologyRid: _Core.OntologyRid,
35
+ actionTypeApiName: _Core.ActionTypeApiName
36
+ ]): Promise<_Core.ActionType>;
37
+ //# sourceMappingURL=ActionType.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ActionType.d.ts","sourceRoot":"","sources":["../../../src/public/ActionType.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,KAAK,MAAM,6BAA6B,CAAC;AAC1D,OAAO,KAAK,EACV,YAAY,IAAI,OAAO,EACvB,mBAAmB,IAAI,cAAc,EACtC,MAAM,qBAAqB,CAAC;AAgB7B;;;;;;;;;;;;GAYG;AACH,wBAAgB,IAAI,CAClB,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,WAAW,EAAE,KAAK,CAAC,WAAW;IAE9B,YAAY,CAAC,EAAE;QACb,QAAQ,CAAC,EAAE,KAAK,CAAC,QAAQ,GAAG,SAAS,CAAC;QACtC,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,SAAS,CAAC;KACzC;CACF,GACA,OAAO,CAAC,KAAK,CAAC,uBAAuB,CAAC,CAExC;AASD;;;;;;;;;GASG;AACH,wBAAgB,GAAG,CACjB,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,WAAW,EAAE,KAAK,CAAC,WAAW;IAC9B,iBAAiB,EAAE,KAAK,CAAC,iBAAiB;CAC3C,GACA,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,CAE3B"}
@@ -1,4 +1,49 @@
1
- export { getActionType, listActionTypes } from '../chunk-5RUWELWF.js';
2
- import '../chunk-PZ5AY32C.js';
3
- //# sourceMappingURL=ActionType.js.map
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 _list = [0, "/v1/ontologies/{0}/actionTypes", 2];
19
+ /**
20
+ * Lists the action types for the given Ontology.
21
+ *
22
+ * Each page may be smaller than the requested page size. However, it is guaranteed that if there are more
23
+ * results available, at least one result will be present in the response.
24
+ *
25
+ * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.
26
+ *
27
+ * @public
28
+ *
29
+ * Required Scopes: [api:ontologies-read]
30
+ * URL: /v1/ontologies/{ontologyRid}/actionTypes
31
+ */
32
+ export function list($ctx, ...args) {
33
+ return $foundryPlatformFetch($ctx, _list, ...args);
34
+ }
35
+ const _get = [0, "/v1/ontologies/{0}/actionTypes/{1}"];
36
+ /**
37
+ * Gets a specific action type with the given API name.
38
+ *
39
+ * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.
40
+ *
41
+ * @public
42
+ *
43
+ * Required Scopes: [api:ontologies-read]
44
+ * URL: /v1/ontologies/{ontologyRid}/actionTypes/{actionTypeApiName}
45
+ */
46
+ export function get($ctx, ...args) {
47
+ return $foundryPlatformFetch($ctx, _get, ...args);
48
+ }
4
49
  //# sourceMappingURL=ActionType.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"ActionType.js"}
1
+ {"version":3,"file":"ActionType.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_list","list","$ctx","args","_get","get"],"sources":["ActionType.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 _list = [0, \"/v1/ontologies/{0}/actionTypes\", 2];\n/**\n * Lists the action types for the given Ontology.\n *\n * Each page may be smaller than the requested page size. However, it is guaranteed that if there are more\n * results available, at least one result will be present in the response.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v1/ontologies/{ontologyRid}/actionTypes\n */\nexport function list($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _list, ...args);\n}\nconst _get = [0, \"/v1/ontologies/{0}/actionTypes/{1}\"];\n/**\n * Gets a specific action type with the given API name.\n *\n * Third-party applications using this endpoint via OAuth2 must request the following operation scope: `api:ontologies-read`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v1/ontologies/{ontologyRid}/actionTypes/{actionTypeApiName}\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,KAAK,GAAG,CAAC,CAAC,EAAE,gCAAgC,EAAE,CAAC,CAAC;AACtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,IAAIA,CAACC,IAAI,EAAE,GAAGC,IAAI,EAAE;EAChC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEF,KAAK,EAAE,GAAGG,IAAI,CAAC;AACtD;AACA,MAAMC,IAAI,GAAG,CAAC,CAAC,EAAE,oCAAoC,CAAC;AACtD;AACA;AACA;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,51 @@
1
+ import type * as _Core from "@osdk/internal.foundry.core";
2
+ import type { SharedClient as $Client, SharedClientContext as $ClientContext } from "@osdk/shared.client";
3
+ /**
4
+ * Upload an attachment to use in an action. Any attachment which has not been linked to an object via
5
+ * an action within one hour after upload will be removed.
6
+ * Previously mapped attachments which are not connected to any object anymore are also removed on
7
+ * a biweekly basis.
8
+ * The body of the request must contain the binary content of the file and the `Content-Type` header must be `application/octet-stream`.
9
+ *
10
+ * Third-party applications using this endpoint via OAuth2 must request the
11
+ * following operation scopes: `api:ontologies-write`.
12
+ *
13
+ * @public
14
+ *
15
+ * Required Scopes: [api:ontologies-write]
16
+ * URL: /v1/attachments/upload
17
+ */
18
+ export declare function upload($ctx: $Client | $ClientContext, ...args: [
19
+ $body: Blob,
20
+ $queryParams: {
21
+ filename: _Core.Filename;
22
+ },
23
+ $headerParams?: {
24
+ "Content-Type"?: _Core.ContentType;
25
+ }
26
+ ]): Promise<_Core.Attachment>;
27
+ /**
28
+ * Get the content of an attachment.
29
+ *
30
+ * Third-party applications using this endpoint via OAuth2 must request the
31
+ * following operation scopes: `api:ontologies-read`.
32
+ *
33
+ * @public
34
+ *
35
+ * Required Scopes: [api:ontologies-read]
36
+ * URL: /v1/attachments/{attachmentRid}/content
37
+ */
38
+ export declare function read($ctx: $Client | $ClientContext, ...args: [attachmentRid: _Core.AttachmentRid]): Promise<Blob>;
39
+ /**
40
+ * Get the metadata of an attachment.
41
+ *
42
+ * Third-party applications using this endpoint via OAuth2 must request the
43
+ * following operation scopes: `api:ontologies-read`.
44
+ *
45
+ * @public
46
+ *
47
+ * Required Scopes: [api:ontologies-read]
48
+ * URL: /v1/attachments/{attachmentRid}
49
+ */
50
+ export declare function get($ctx: $Client | $ClientContext, ...args: [attachmentRid: _Core.AttachmentRid]): Promise<_Core.Attachment>;
51
+ //# sourceMappingURL=Attachment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Attachment.d.ts","sourceRoot":"","sources":["../../../src/public/Attachment.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,KAAK,MAAM,6BAA6B,CAAC;AAC1D,OAAO,KAAK,EACV,YAAY,IAAI,OAAO,EACvB,mBAAmB,IAAI,cAAc,EACtC,MAAM,qBAAqB,CAAC;AAc7B;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,MAAM,CACpB,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,KAAK,EAAE,IAAI;IACX,YAAY,EAAE;QAAE,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAA;KAAE;IAC1C,aAAa,CAAC,EAAE;QAAE,cAAc,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;KAAE;CACvD,GACA,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,CAQ3B;AAMD;;;;;;;;;;GAUG;AACH,wBAAgB,IAAI,CAClB,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE,CAAC,aAAa,EAAE,KAAK,CAAC,aAAa,CAAC,GAC5C,OAAO,CAAC,IAAI,CAAC,CAEf;AAMD;;;;;;;;;;GAUG;AACH,wBAAgB,GAAG,CACjB,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE,CAAC,aAAa,EAAE,KAAK,CAAC,aAAa,CAAC,GAC5C,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,CAE3B"}