@osdk/internal.foundry.ontologiesv2 0.2.0-beta.9 → 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 (98) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/build/browser/public/Action.d.ts +3 -3
  3. package/build/browser/public/Action.d.ts.map +1 -1
  4. package/build/browser/public/Action.js +9 -9
  5. package/build/browser/public/Action.js.map +1 -1
  6. package/build/browser/public/ActionTypeV2.d.ts +2 -2
  7. package/build/browser/public/ActionTypeV2.d.ts.map +1 -1
  8. package/build/browser/public/ActionTypeV2.js +6 -6
  9. package/build/browser/public/ActionTypeV2.js.map +1 -1
  10. package/build/browser/public/Attachment.d.ts +3 -3
  11. package/build/browser/public/Attachment.d.ts.map +1 -1
  12. package/build/browser/public/Attachment.js +9 -9
  13. package/build/browser/public/Attachment.js.map +1 -1
  14. package/build/browser/public/AttachmentPropertyV2.d.ts +4 -4
  15. package/build/browser/public/AttachmentPropertyV2.d.ts.map +1 -1
  16. package/build/browser/public/AttachmentPropertyV2.js +12 -12
  17. package/build/browser/public/AttachmentPropertyV2.js.map +1 -1
  18. package/build/browser/public/LinkedObjectV2.d.ts +2 -2
  19. package/build/browser/public/LinkedObjectV2.d.ts.map +1 -1
  20. package/build/browser/public/LinkedObjectV2.js +6 -6
  21. package/build/browser/public/LinkedObjectV2.js.map +1 -1
  22. package/build/browser/public/ObjectTypeV2.d.ts +5 -5
  23. package/build/browser/public/ObjectTypeV2.d.ts.map +1 -1
  24. package/build/browser/public/ObjectTypeV2.js +15 -15
  25. package/build/browser/public/ObjectTypeV2.js.map +1 -1
  26. package/build/browser/public/OntologyInterface.d.ts +4 -4
  27. package/build/browser/public/OntologyInterface.d.ts.map +1 -1
  28. package/build/browser/public/OntologyInterface.js +12 -12
  29. package/build/browser/public/OntologyInterface.js.map +1 -1
  30. package/build/browser/public/OntologyObjectSet.d.ts +4 -4
  31. package/build/browser/public/OntologyObjectSet.d.ts.map +1 -1
  32. package/build/browser/public/OntologyObjectSet.js +12 -12
  33. package/build/browser/public/OntologyObjectSet.js.map +1 -1
  34. package/build/browser/public/OntologyObjectV2.d.ts +5 -5
  35. package/build/browser/public/OntologyObjectV2.d.ts.map +1 -1
  36. package/build/browser/public/OntologyObjectV2.js +15 -15
  37. package/build/browser/public/OntologyObjectV2.js.map +1 -1
  38. package/build/browser/public/OntologyV2.d.ts +3 -3
  39. package/build/browser/public/OntologyV2.d.ts.map +1 -1
  40. package/build/browser/public/OntologyV2.js +9 -9
  41. package/build/browser/public/OntologyV2.js.map +1 -1
  42. package/build/browser/public/Query.d.ts +1 -1
  43. package/build/browser/public/Query.d.ts.map +1 -1
  44. package/build/browser/public/Query.js +3 -3
  45. package/build/browser/public/Query.js.map +1 -1
  46. package/build/browser/public/QueryType.d.ts +2 -2
  47. package/build/browser/public/QueryType.d.ts.map +1 -1
  48. package/build/browser/public/QueryType.js +6 -6
  49. package/build/browser/public/QueryType.js.map +1 -1
  50. package/build/esm/public/Action.d.ts +3 -3
  51. package/build/esm/public/Action.d.ts.map +1 -1
  52. package/build/esm/public/Action.js +9 -9
  53. package/build/esm/public/Action.js.map +1 -1
  54. package/build/esm/public/ActionTypeV2.d.ts +2 -2
  55. package/build/esm/public/ActionTypeV2.d.ts.map +1 -1
  56. package/build/esm/public/ActionTypeV2.js +6 -6
  57. package/build/esm/public/ActionTypeV2.js.map +1 -1
  58. package/build/esm/public/Attachment.d.ts +3 -3
  59. package/build/esm/public/Attachment.d.ts.map +1 -1
  60. package/build/esm/public/Attachment.js +9 -9
  61. package/build/esm/public/Attachment.js.map +1 -1
  62. package/build/esm/public/AttachmentPropertyV2.d.ts +4 -4
  63. package/build/esm/public/AttachmentPropertyV2.d.ts.map +1 -1
  64. package/build/esm/public/AttachmentPropertyV2.js +12 -12
  65. package/build/esm/public/AttachmentPropertyV2.js.map +1 -1
  66. package/build/esm/public/LinkedObjectV2.d.ts +2 -2
  67. package/build/esm/public/LinkedObjectV2.d.ts.map +1 -1
  68. package/build/esm/public/LinkedObjectV2.js +6 -6
  69. package/build/esm/public/LinkedObjectV2.js.map +1 -1
  70. package/build/esm/public/ObjectTypeV2.d.ts +5 -5
  71. package/build/esm/public/ObjectTypeV2.d.ts.map +1 -1
  72. package/build/esm/public/ObjectTypeV2.js +15 -15
  73. package/build/esm/public/ObjectTypeV2.js.map +1 -1
  74. package/build/esm/public/OntologyInterface.d.ts +4 -4
  75. package/build/esm/public/OntologyInterface.d.ts.map +1 -1
  76. package/build/esm/public/OntologyInterface.js +12 -12
  77. package/build/esm/public/OntologyInterface.js.map +1 -1
  78. package/build/esm/public/OntologyObjectSet.d.ts +4 -4
  79. package/build/esm/public/OntologyObjectSet.d.ts.map +1 -1
  80. package/build/esm/public/OntologyObjectSet.js +12 -12
  81. package/build/esm/public/OntologyObjectSet.js.map +1 -1
  82. package/build/esm/public/OntologyObjectV2.d.ts +5 -5
  83. package/build/esm/public/OntologyObjectV2.d.ts.map +1 -1
  84. package/build/esm/public/OntologyObjectV2.js +15 -15
  85. package/build/esm/public/OntologyObjectV2.js.map +1 -1
  86. package/build/esm/public/OntologyV2.d.ts +3 -3
  87. package/build/esm/public/OntologyV2.d.ts.map +1 -1
  88. package/build/esm/public/OntologyV2.js +9 -9
  89. package/build/esm/public/OntologyV2.js.map +1 -1
  90. package/build/esm/public/Query.d.ts +1 -1
  91. package/build/esm/public/Query.d.ts.map +1 -1
  92. package/build/esm/public/Query.js +3 -3
  93. package/build/esm/public/Query.js.map +1 -1
  94. package/build/esm/public/QueryType.d.ts +2 -2
  95. package/build/esm/public/QueryType.d.ts.map +1 -1
  96. package/build/esm/public/QueryType.js +6 -6
  97. package/build/esm/public/QueryType.js.map +1 -1
  98. package/package.json +4 -4
package/CHANGELOG.md CHANGED
@@ -1,5 +1,49 @@
1
1
  # @osdk/internal.foundry.ontologiesv2
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
+ - 1252d94: ESM Only
11
+ - 5d6d5ab: Updated to latest gateway apis
12
+ - 5d6d5ab: We now generate error types
13
+ - 5d6d5ab: Includes @alpha/@beta/@public jsdoc tags
14
+ - 5d6d5ab: Internally refactored to support new API versions
15
+ - 5d6d5ab: Autofill Content-Length and Content-Type headers in API's that accept Blobs
16
+ - 5d6d5ab: SLS dependencies are optional
17
+ - d4d6605: Audited and cleaned up deps
18
+
19
+ ### Patch Changes
20
+
21
+ - Updated dependencies [5d6d5ab]
22
+ - Updated dependencies [b60e107]
23
+ - Updated dependencies [5d6d5ab]
24
+ - Updated dependencies [5dc1241]
25
+ - Updated dependencies [1252d94]
26
+ - Updated dependencies [5d6d5ab]
27
+ - Updated dependencies [5d6d5ab]
28
+ - Updated dependencies [5d6d5ab]
29
+ - Updated dependencies [5d6d5ab]
30
+ - Updated dependencies [5d6d5ab]
31
+ - Updated dependencies [5d6d5ab]
32
+ - Updated dependencies [d4d6605]
33
+ - Updated dependencies [5dc1241]
34
+ - @osdk/internal.foundry.core@0.2.0
35
+ - @osdk/shared.client@1.0.0
36
+ - @osdk/shared.net.platformapi@0.3.0
37
+
38
+ ## 0.2.0-beta.10
39
+
40
+ ### Patch Changes
41
+
42
+ - Updated dependencies [5dc1241]
43
+ - @osdk/shared.client@1.0.0-beta.3
44
+ - @osdk/internal.foundry.core@0.2.0-beta.10
45
+ - @osdk/shared.net.platformapi@0.3.0-beta.3
46
+
3
47
  ## 0.2.0-beta.9
4
48
 
5
49
  ### Minor Changes
@@ -16,7 +16,7 @@ import type { SharedClient as $Client, SharedClientContext as $ClientContext } f
16
16
  * Required Scopes: [api:ontologies-read, api:ontologies-write]
17
17
  * URL: /v2/ontologies/{ontology}/actions/{action}/apply
18
18
  */
19
- export declare function applyActionV2($ctx: $Client | $ClientContext, ...args: [
19
+ export declare function apply($ctx: $Client | $ClientContext, ...args: [
20
20
  ontology: _Core.OntologyIdentifier,
21
21
  action: _Core.ActionTypeApiName,
22
22
  $body: _Core.ApplyActionRequestV2,
@@ -41,7 +41,7 @@ export declare function applyActionV2($ctx: $Client | $ClientContext, ...args: [
41
41
  * Required Scopes: [api:ontologies-read, api:ontologies-write]
42
42
  * URL: /v2/ontologies/{ontology}/actions/{action}/applyAsync
43
43
  */
44
- export declare function applyActionAsyncV2($ctx: $Client | $ClientContext, ...args: [
44
+ export declare function applyAsync($ctx: $Client | $ClientContext, ...args: [
45
45
  ontology: _Core.OntologyIdentifier,
46
46
  action: _Core.ActionTypeApiName,
47
47
  $body: _Core.AsyncApplyActionRequestV2,
@@ -67,7 +67,7 @@ export declare function applyActionAsyncV2($ctx: $Client | $ClientContext, ...ar
67
67
  * Required Scopes: [api:ontologies-read, api:ontologies-write]
68
68
  * URL: /v2/ontologies/{ontology}/actions/{action}/applyBatch
69
69
  */
70
- export declare function applyActionBatchV2($ctx: $Client | $ClientContext, ...args: [
70
+ export declare function applyBatch($ctx: $Client | $ClientContext, ...args: [
71
71
  ontology: _Core.OntologyIdentifier,
72
72
  action: _Core.ActionTypeApiName,
73
73
  $body: _Core.BatchApplyActionRequestV2,
@@ -1 +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;AAkB7B;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,aAAa,CAC3B,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,QAAQ,EAAE,KAAK,CAAC,kBAAkB;IAClC,MAAM,EAAE,KAAK,CAAC,iBAAiB;IAC/B,KAAK,EAAE,KAAK,CAAC,oBAAoB;IACjC,YAAY,CAAC,EAAE;QACb,k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AAS,CAAC;QAC7D,WAAW,CAAC,EAAE,KAAK,CAAC,cAAc,GAAG,SAAS,CAAC;KAChD;CACF,GACA,OAAO,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAE3C"}
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import { foundryPlatformFetch as $foundryPlatformFetch } from "@osdk/shared.net.platformapi";
17
17
  //
18
- const _applyActionV2 = [1, "/v2/ontologies/{0}/actions/{1}/apply", 3];
18
+ const _apply = [1, "/v2/ontologies/{0}/actions/{1}/apply", 3];
19
19
  /**
20
20
  * Applies an action using the given parameters.
21
21
  *
@@ -32,10 +32,10 @@ const _applyActionV2 = [1, "/v2/ontologies/{0}/actions/{1}/apply", 3];
32
32
  * Required Scopes: [api:ontologies-read, api:ontologies-write]
33
33
  * URL: /v2/ontologies/{ontology}/actions/{action}/apply
34
34
  */
35
- export function applyActionV2($ctx, ...args) {
36
- return $foundryPlatformFetch($ctx, _applyActionV2, ...args);
35
+ export function apply($ctx, ...args) {
36
+ return $foundryPlatformFetch($ctx, _apply, ...args);
37
37
  }
38
- const _applyActionAsyncV2 = [1, "/v2/ontologies/{0}/actions/{1}/applyAsync", 3];
38
+ const _applyAsync = [1, "/v2/ontologies/{0}/actions/{1}/applyAsync", 3];
39
39
  /**
40
40
  * Applies an action using the given parameters.
41
41
  *
@@ -52,10 +52,10 @@ const _applyActionAsyncV2 = [1, "/v2/ontologies/{0}/actions/{1}/applyAsync", 3];
52
52
  * Required Scopes: [api:ontologies-read, api:ontologies-write]
53
53
  * URL: /v2/ontologies/{ontology}/actions/{action}/applyAsync
54
54
  */
55
- export function applyActionAsyncV2($ctx, ...args) {
56
- return $foundryPlatformFetch($ctx, _applyActionAsyncV2, ...args);
55
+ export function applyAsync($ctx, ...args) {
56
+ return $foundryPlatformFetch($ctx, _applyAsync, ...args);
57
57
  }
58
- const _applyActionBatchV2 = [1, "/v2/ontologies/{0}/actions/{1}/applyBatch", 3];
58
+ const _applyBatch = [1, "/v2/ontologies/{0}/actions/{1}/applyBatch", 3];
59
59
  /**
60
60
  * Applies multiple actions (of the same Action Type) using the given parameters.
61
61
  * Changes to the Ontology are eventually consistent and may take some time to be visible.
@@ -73,7 +73,7 @@ const _applyActionBatchV2 = [1, "/v2/ontologies/{0}/actions/{1}/applyBatch", 3];
73
73
  * Required Scopes: [api:ontologies-read, api:ontologies-write]
74
74
  * URL: /v2/ontologies/{ontology}/actions/{action}/applyBatch
75
75
  */
76
- export function applyActionBatchV2($ctx, ...args) {
77
- return $foundryPlatformFetch($ctx, _applyActionBatchV2, ...args);
76
+ export function applyBatch($ctx, ...args) {
77
+ return $foundryPlatformFetch($ctx, _applyBatch, ...args);
78
78
  }
79
79
  //# sourceMappingURL=Action.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Action.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_applyActionV2","applyActionV2","$ctx","args","_applyActionAsyncV2","applyActionAsyncV2","_applyActionBatchV2","applyActionBatchV2"],"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 _applyActionV2 = [1, \"/v2/ontologies/{0}/actions/{1}/apply\", 3];\n/**\n * Applies an action using the given parameters.\n *\n * Changes to the Ontology are eventually consistent 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 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: /v2/ontologies/{ontology}/actions/{action}/apply\n */\nexport function applyActionV2($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _applyActionV2, ...args);\n}\nconst _applyActionAsyncV2 = [1, \"/v2/ontologies/{0}/actions/{1}/applyAsync\", 3];\n/**\n * Applies an action using the given parameters.\n *\n * Changes to the Ontology are eventually consistent 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 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 * @alpha\n *\n * Required Scopes: [api:ontologies-read, api:ontologies-write]\n * URL: /v2/ontologies/{ontology}/actions/{action}/applyAsync\n */\nexport function applyActionAsyncV2($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _applyActionAsyncV2, ...args);\n}\nconst _applyActionBatchV2 = [1, \"/v2/ontologies/{0}/actions/{1}/applyBatch\", 3];\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 [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: /v2/ontologies/{ontology}/actions/{action}/applyBatch\n */\nexport function applyActionBatchV2($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _applyActionBatchV2, ...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,cAAc,GAAG,CAAC,CAAC,EAAE,sCAAsC,EAAE,CAAC,CAAC;AACrE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,aAAaA,CAACC,IAAI,EAAE,GAAGC,IAAI,EAAE;EACzC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEF,cAAc,EAAE,GAAGG,IAAI,CAAC;AAC/D;AACA,MAAMC,mBAAmB,GAAG,CAAC,CAAC,EAAE,2CAA2C,EAAE,CAAC,CAAC;AAC/E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,kBAAkBA,CAACH,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC9C,OAAOJ,qBAAqB,CAACG,IAAI,EAAEE,mBAAmB,EAAE,GAAGD,IAAI,CAAC;AACpE;AACA,MAAMG,mBAAmB,GAAG,CAAC,CAAC,EAAE,2CAA2C,EAAE,CAAC,CAAC;AAC/E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,kBAAkBA,CAACL,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC9C,OAAOJ,qBAAqB,CAACG,IAAI,EAAEI,mBAAmB,EAAE,GAAGH,IAAI,CAAC;AACpE","ignoreList":[]}
1
+ {"version":3,"file":"Action.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_apply","apply","$ctx","args","_applyAsync","applyAsync","_applyBatch","applyBatch"],"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, \"/v2/ontologies/{0}/actions/{1}/apply\", 3];\n/**\n * Applies an action using the given parameters.\n *\n * Changes to the Ontology are eventually consistent 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 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: /v2/ontologies/{ontology}/actions/{action}/apply\n */\nexport function apply($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _apply, ...args);\n}\nconst _applyAsync = [1, \"/v2/ontologies/{0}/actions/{1}/applyAsync\", 3];\n/**\n * Applies an action using the given parameters.\n *\n * Changes to the Ontology are eventually consistent 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 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 * @alpha\n *\n * Required Scopes: [api:ontologies-read, api:ontologies-write]\n * URL: /v2/ontologies/{ontology}/actions/{action}/applyAsync\n */\nexport function applyAsync($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _applyAsync, ...args);\n}\nconst _applyBatch = [1, \"/v2/ontologies/{0}/actions/{1}/applyBatch\", 3];\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 [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: /v2/ontologies/{ontology}/actions/{action}/applyBatch\n */\nexport function applyBatch($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _applyBatch, ...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;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,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;AACA;AACA,OAAO,SAASC,UAAUA,CAACL,IAAI,EAAE,GAAGC,IAAI,EAAE;EACtC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEI,WAAW,EAAE,GAAGH,IAAI,CAAC;AAC5D","ignoreList":[]}
@@ -13,7 +13,7 @@ import type { SharedClient as $Client, SharedClientContext as $ClientContext } f
13
13
  * Required Scopes: [api:ontologies-read]
14
14
  * URL: /v2/ontologies/{ontology}/actionTypes
15
15
  */
16
- export declare function listActionTypesV2($ctx: $Client | $ClientContext, ...args: [
16
+ export declare function list($ctx: $Client | $ClientContext, ...args: [
17
17
  ontology: _Core.OntologyIdentifier,
18
18
  $queryParams?: {
19
19
  pageSize?: _Core.PageSize | undefined;
@@ -30,7 +30,7 @@ export declare function listActionTypesV2($ctx: $Client | $ClientContext, ...arg
30
30
  * Required Scopes: [api:ontologies-read]
31
31
  * URL: /v2/ontologies/{ontology}/actionTypes/{actionType}
32
32
  */
33
- export declare function getActionTypeV2($ctx: $Client | $ClientContext, ...args: [
33
+ export declare function get($ctx: $Client | $ClientContext, ...args: [
34
34
  ontology: _Core.OntologyIdentifier,
35
35
  actionType: _Core.ActionTypeApiName
36
36
  ]): Promise<_Core.ActionTypeV2>;
@@ -1 +1 @@
1
- {"version":3,"file":"ActionTypeV2.d.ts","sourceRoot":"","sources":["../../../src/public/ActionTypeV2.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,iBAAiB,CAC/B,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,QAAQ,EAAE,KAAK,CAAC,kBAAkB;IAElC,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,yBAAyB,CAAC,CAE1C;AASD;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAC7B,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,QAAQ,EAAE,KAAK,CAAC,kBAAkB;IAClC,UAAU,EAAE,KAAK,CAAC,iBAAiB;CACpC,GACA,OAAO,CAAC,KAAK,CAAC,YAAY,CAAC,CAE7B"}
1
+ {"version":3,"file":"ActionTypeV2.d.ts","sourceRoot":"","sources":["../../../src/public/ActionTypeV2.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,QAAQ,EAAE,KAAK,CAAC,kBAAkB;IAElC,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,yBAAyB,CAAC,CAE1C;AASD;;;;;;;;;GASG;AACH,wBAAgB,GAAG,CACjB,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,QAAQ,EAAE,KAAK,CAAC,kBAAkB;IAClC,UAAU,EAAE,KAAK,CAAC,iBAAiB;CACpC,GACA,OAAO,CAAC,KAAK,CAAC,YAAY,CAAC,CAE7B"}
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import { foundryPlatformFetch as $foundryPlatformFetch } from "@osdk/shared.net.platformapi";
17
17
  //
18
- const _listActionTypesV2 = [0, "/v2/ontologies/{0}/actionTypes", 2];
18
+ const _list = [0, "/v2/ontologies/{0}/actionTypes", 2];
19
19
  /**
20
20
  * Lists the action types for the given Ontology.
21
21
  *
@@ -29,10 +29,10 @@ const _listActionTypesV2 = [0, "/v2/ontologies/{0}/actionTypes", 2];
29
29
  * Required Scopes: [api:ontologies-read]
30
30
  * URL: /v2/ontologies/{ontology}/actionTypes
31
31
  */
32
- export function listActionTypesV2($ctx, ...args) {
33
- return $foundryPlatformFetch($ctx, _listActionTypesV2, ...args);
32
+ export function list($ctx, ...args) {
33
+ return $foundryPlatformFetch($ctx, _list, ...args);
34
34
  }
35
- const _getActionTypeV2 = [0, "/v2/ontologies/{0}/actionTypes/{1}"];
35
+ const _get = [0, "/v2/ontologies/{0}/actionTypes/{1}"];
36
36
  /**
37
37
  * Gets a specific action type with the given API name.
38
38
  *
@@ -43,7 +43,7 @@ const _getActionTypeV2 = [0, "/v2/ontologies/{0}/actionTypes/{1}"];
43
43
  * Required Scopes: [api:ontologies-read]
44
44
  * URL: /v2/ontologies/{ontology}/actionTypes/{actionType}
45
45
  */
46
- export function getActionTypeV2($ctx, ...args) {
47
- return $foundryPlatformFetch($ctx, _getActionTypeV2, ...args);
46
+ export function get($ctx, ...args) {
47
+ return $foundryPlatformFetch($ctx, _get, ...args);
48
48
  }
49
49
  //# sourceMappingURL=ActionTypeV2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ActionTypeV2.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_listActionTypesV2","listActionTypesV2","$ctx","args","_getActionTypeV2","getActionTypeV2"],"sources":["ActionTypeV2.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 _listActionTypesV2 = [0, \"/v2/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: /v2/ontologies/{ontology}/actionTypes\n */\nexport function listActionTypesV2($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _listActionTypesV2, ...args);\n}\nconst _getActionTypeV2 = [0, \"/v2/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: /v2/ontologies/{ontology}/actionTypes/{actionType}\n */\nexport function getActionTypeV2($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getActionTypeV2, ...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,kBAAkB,GAAG,CAAC,CAAC,EAAE,gCAAgC,EAAE,CAAC,CAAC;AACnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,iBAAiBA,CAACC,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC7C,OAAOJ,qBAAqB,CAACG,IAAI,EAAEF,kBAAkB,EAAE,GAAGG,IAAI,CAAC;AACnE;AACA,MAAMC,gBAAgB,GAAG,CAAC,CAAC,EAAE,oCAAoC,CAAC;AAClE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,eAAeA,CAACH,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC3C,OAAOJ,qBAAqB,CAACG,IAAI,EAAEE,gBAAgB,EAAE,GAAGD,IAAI,CAAC;AACjE","ignoreList":[]}
1
+ {"version":3,"file":"ActionTypeV2.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_list","list","$ctx","args","_get","get"],"sources":["ActionTypeV2.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, \"/v2/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: /v2/ontologies/{ontology}/actionTypes\n */\nexport function list($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _list, ...args);\n}\nconst _get = [0, \"/v2/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: /v2/ontologies/{ontology}/actionTypes/{actionType}\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":[]}
@@ -15,7 +15,7 @@ import type { SharedClient as $Client, SharedClientContext as $ClientContext } f
15
15
  * Required Scopes: [api:ontologies-write]
16
16
  * URL: /v2/ontologies/attachments/upload
17
17
  */
18
- export declare function uploadAttachmentV2($ctx: $Client | $ClientContext, ...args: [
18
+ export declare function upload($ctx: $Client | $ClientContext, ...args: [
19
19
  $body: Blob,
20
20
  $queryParams: {
21
21
  filename: _Core.Filename;
@@ -35,7 +35,7 @@ export declare function uploadAttachmentV2($ctx: $Client | $ClientContext, ...ar
35
35
  * Required Scopes: [api:ontologies-read]
36
36
  * URL: /v2/ontologies/attachments/{attachmentRid}/content
37
37
  */
38
- export declare function getAttachmentContentV2($ctx: $Client | $ClientContext, ...args: [attachmentRid: _Core.AttachmentRid]): Promise<Blob>;
38
+ export declare function read($ctx: $Client | $ClientContext, ...args: [attachmentRid: _Core.AttachmentRid]): Promise<Blob>;
39
39
  /**
40
40
  * Get the metadata of an attachment.
41
41
  *
@@ -47,5 +47,5 @@ export declare function getAttachmentContentV2($ctx: $Client | $ClientContext, .
47
47
  * Required Scopes: [api:ontologies-read]
48
48
  * URL: /v2/ontologies/attachments/{attachmentRid}
49
49
  */
50
- export declare function getAttachmentV2($ctx: $Client | $ClientContext, ...args: [attachmentRid: _Core.AttachmentRid]): Promise<_Core.AttachmentV2>;
50
+ export declare function get($ctx: $Client | $ClientContext, ...args: [attachmentRid: _Core.AttachmentRid]): Promise<_Core.AttachmentV2>;
51
51
  //# sourceMappingURL=Attachment.d.ts.map
@@ -1 +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,kBAAkB,CAChC,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,YAAY,CAAC,CAc7B;AAMD;;;;;;;;;;GAUG;AACH,wBAAgB,sBAAsB,CACpC,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,eAAe,CAC7B,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE,CAAC,aAAa,EAAE,KAAK,CAAC,aAAa,CAAC,GAC5C,OAAO,CAAC,KAAK,CAAC,YAAY,CAAC,CAE7B"}
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,YAAY,CAAC,CAQ7B;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,YAAY,CAAC,CAE7B"}
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import { foundryPlatformFetch as $foundryPlatformFetch } from "@osdk/shared.net.platformapi";
17
17
  //
18
- const _uploadAttachmentV2 = [1, "/v2/ontologies/attachments/upload", 7, "*/*"];
18
+ const _upload = [1, "/v2/ontologies/attachments/upload", 7, "*/*"];
19
19
  /**
20
20
  * Upload an attachment to use in an action. Any attachment which has not been linked to an object via
21
21
  * an action within one hour after upload will be removed.
@@ -31,15 +31,15 @@ const _uploadAttachmentV2 = [1, "/v2/ontologies/attachments/upload", 7, "*/*"];
31
31
  * Required Scopes: [api:ontologies-write]
32
32
  * URL: /v2/ontologies/attachments/upload
33
33
  */
34
- export function uploadAttachmentV2($ctx, ...args) {
34
+ export function upload($ctx, ...args) {
35
35
  const headerParams = {
36
36
  ...args[2],
37
37
  "Content-Type": args[2]?.["Content-Type"] ?? args[0].type,
38
38
  "Content-Length": args[0].size.toString()
39
39
  };
40
- return $foundryPlatformFetch($ctx, _uploadAttachmentV2, args[0], args[1], headerParams);
40
+ return $foundryPlatformFetch($ctx, _upload, args[0], args[1], headerParams);
41
41
  }
42
- const _getAttachmentContentV2 = [0, "/v2/ontologies/attachments/{0}/content",,, "*/*"];
42
+ const _read = [0, "/v2/ontologies/attachments/{0}/content",,, "*/*"];
43
43
  /**
44
44
  * Get the content of an attachment.
45
45
  *
@@ -51,10 +51,10 @@ const _getAttachmentContentV2 = [0, "/v2/ontologies/attachments/{0}/content",,,
51
51
  * Required Scopes: [api:ontologies-read]
52
52
  * URL: /v2/ontologies/attachments/{attachmentRid}/content
53
53
  */
54
- export function getAttachmentContentV2($ctx, ...args) {
55
- return $foundryPlatformFetch($ctx, _getAttachmentContentV2, ...args);
54
+ export function read($ctx, ...args) {
55
+ return $foundryPlatformFetch($ctx, _read, ...args);
56
56
  }
57
- const _getAttachmentV2 = [0, "/v2/ontologies/attachments/{0}"];
57
+ const _get = [0, "/v2/ontologies/attachments/{0}"];
58
58
  /**
59
59
  * Get the metadata of an attachment.
60
60
  *
@@ -66,7 +66,7 @@ const _getAttachmentV2 = [0, "/v2/ontologies/attachments/{0}"];
66
66
  * Required Scopes: [api:ontologies-read]
67
67
  * URL: /v2/ontologies/attachments/{attachmentRid}
68
68
  */
69
- export function getAttachmentV2($ctx, ...args) {
70
- return $foundryPlatformFetch($ctx, _getAttachmentV2, ...args);
69
+ export function get($ctx, ...args) {
70
+ return $foundryPlatformFetch($ctx, _get, ...args);
71
71
  }
72
72
  //# sourceMappingURL=Attachment.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Attachment.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_uploadAttachmentV2","uploadAttachmentV2","$ctx","args","headerParams","type","size","toString","_getAttachmentContentV2","getAttachmentContentV2","_getAttachmentV2","getAttachmentV2"],"sources":["Attachment.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 _uploadAttachmentV2 = [1, \"/v2/ontologies/attachments/upload\", 7, \"*/*\"];\n/**\n * Upload an attachment to use in an action. Any attachment which has not been linked to an object via\n * an action within one hour after upload will be removed.\n * Previously mapped attachments which are not connected to any object anymore are also removed on\n * a biweekly basis.\n * The body of the request must contain the binary content of the file and the `Content-Type` header must be `application/octet-stream`.\n *\n * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:ontologies-write`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-write]\n * URL: /v2/ontologies/attachments/upload\n */\nexport function uploadAttachmentV2($ctx, ...args) {\n const headerParams = {\n ...args[2],\n \"Content-Type\": args[2]?.[\"Content-Type\"] ?? args[0].type,\n \"Content-Length\": args[0].size.toString(),\n };\n return $foundryPlatformFetch($ctx, _uploadAttachmentV2, args[0], args[1], headerParams);\n}\nconst _getAttachmentContentV2 = [0, \"/v2/ontologies/attachments/{0}/content\", , , \"*/*\"];\n/**\n * Get the content of an attachment.\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: /v2/ontologies/attachments/{attachmentRid}/content\n */\nexport function getAttachmentContentV2($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getAttachmentContentV2, ...args);\n}\nconst _getAttachmentV2 = [0, \"/v2/ontologies/attachments/{0}\"];\n/**\n * Get the metadata of an attachment.\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: /v2/ontologies/attachments/{attachmentRid}\n */\nexport function getAttachmentV2($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getAttachmentV2, ...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,mBAAmB,GAAG,CAAC,CAAC,EAAE,mCAAmC,EAAE,CAAC,EAAE,KAAK,CAAC;AAC9E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,kBAAkBA,CAACC,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC9C,MAAMC,YAAY,GAAG;IACjB,GAAGD,IAAI,CAAC,CAAC,CAAC;IACV,cAAc,EAAEA,IAAI,CAAC,CAAC,CAAC,GAAG,cAAc,CAAC,IAAIA,IAAI,CAAC,CAAC,CAAC,CAACE,IAAI;IACzD,gBAAgB,EAAEF,IAAI,CAAC,CAAC,CAAC,CAACG,IAAI,CAACC,QAAQ,CAAC;EAC5C,CAAC;EACD,OAAOR,qBAAqB,CAACG,IAAI,EAAEF,mBAAmB,EAAEG,IAAI,CAAC,CAAC,CAAC,EAAEA,IAAI,CAAC,CAAC,CAAC,EAAEC,YAAY,CAAC;AAC3F;AACA,MAAMI,uBAAuB,GAAG,CAAC,CAAC,EAAE,wCAAwC,IAAM,KAAK,CAAC;AACxF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,sBAAsBA,CAACP,IAAI,EAAE,GAAGC,IAAI,EAAE;EAClD,OAAOJ,qBAAqB,CAACG,IAAI,EAAEM,uBAAuB,EAAE,GAAGL,IAAI,CAAC;AACxE;AACA,MAAMO,gBAAgB,GAAG,CAAC,CAAC,EAAE,gCAAgC,CAAC;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,eAAeA,CAACT,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC3C,OAAOJ,qBAAqB,CAACG,IAAI,EAAEQ,gBAAgB,EAAE,GAAGP,IAAI,CAAC;AACjE","ignoreList":[]}
1
+ {"version":3,"file":"Attachment.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_upload","upload","$ctx","args","headerParams","type","size","toString","_read","read","_get","get"],"sources":["Attachment.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 _upload = [1, \"/v2/ontologies/attachments/upload\", 7, \"*/*\"];\n/**\n * Upload an attachment to use in an action. Any attachment which has not been linked to an object via\n * an action within one hour after upload will be removed.\n * Previously mapped attachments which are not connected to any object anymore are also removed on\n * a biweekly basis.\n * The body of the request must contain the binary content of the file and the `Content-Type` header must be `application/octet-stream`.\n *\n * Third-party applications using this endpoint via OAuth2 must request the\n * following operation scopes: `api:ontologies-write`.\n *\n * @public\n *\n * Required Scopes: [api:ontologies-write]\n * URL: /v2/ontologies/attachments/upload\n */\nexport function upload($ctx, ...args) {\n const headerParams = {\n ...args[2],\n \"Content-Type\": args[2]?.[\"Content-Type\"] ?? args[0].type,\n \"Content-Length\": args[0].size.toString(),\n };\n return $foundryPlatformFetch($ctx, _upload, args[0], args[1], headerParams);\n}\nconst _read = [0, \"/v2/ontologies/attachments/{0}/content\", , , \"*/*\"];\n/**\n * Get the content of an attachment.\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: /v2/ontologies/attachments/{attachmentRid}/content\n */\nexport function read($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _read, ...args);\n}\nconst _get = [0, \"/v2/ontologies/attachments/{0}\"];\n/**\n * Get the metadata of an attachment.\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: /v2/ontologies/attachments/{attachmentRid}\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,mCAAmC,EAAE,CAAC,EAAE,KAAK,CAAC;AAClE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,MAAMA,CAACC,IAAI,EAAE,GAAGC,IAAI,EAAE;EAClC,MAAMC,YAAY,GAAG;IACjB,GAAGD,IAAI,CAAC,CAAC,CAAC;IACV,cAAc,EAAEA,IAAI,CAAC,CAAC,CAAC,GAAG,cAAc,CAAC,IAAIA,IAAI,CAAC,CAAC,CAAC,CAACE,IAAI;IACzD,gBAAgB,EAAEF,IAAI,CAAC,CAAC,CAAC,CAACG,IAAI,CAACC,QAAQ,CAAC;EAC5C,CAAC;EACD,OAAOR,qBAAqB,CAACG,IAAI,EAAEF,OAAO,EAAEG,IAAI,CAAC,CAAC,CAAC,EAAEA,IAAI,CAAC,CAAC,CAAC,EAAEC,YAAY,CAAC;AAC/E;AACA,MAAMI,KAAK,GAAG,CAAC,CAAC,EAAE,wCAAwC,IAAM,KAAK,CAAC;AACtE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,IAAIA,CAACP,IAAI,EAAE,GAAGC,IAAI,EAAE;EAChC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEM,KAAK,EAAE,GAAGL,IAAI,CAAC;AACtD;AACA,MAAMO,IAAI,GAAG,CAAC,CAAC,EAAE,gCAAgC,CAAC;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,GAAGA,CAACT,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC/B,OAAOJ,qBAAqB,CAACG,IAAI,EAAEQ,IAAI,EAAE,GAAGP,IAAI,CAAC;AACrD","ignoreList":[]}
@@ -11,7 +11,7 @@ import type { SharedClient as $Client, SharedClientContext as $ClientContext } f
11
11
  * Required Scopes: [api:ontologies-read]
12
12
  * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/attachments/{property}
13
13
  */
14
- export declare function listPropertyAttachments($ctx: $Client | $ClientContext, ...args: [
14
+ export declare function getAttachment($ctx: $Client | $ClientContext, ...args: [
15
15
  ontology: _Core.OntologyIdentifier,
16
16
  objectType: _Core.ObjectTypeApiName,
17
17
  primaryKey: _Core.PropertyValueEscapedString,
@@ -32,7 +32,7 @@ export declare function listPropertyAttachments($ctx: $Client | $ClientContext,
32
32
  * Required Scopes: [api:ontologies-read]
33
33
  * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/attachments/{property}/{attachmentRid}
34
34
  */
35
- export declare function getAttachmentPropertyByRidV2($ctx: $Client | $ClientContext, ...args: [
35
+ export declare function getAttachmentByRid($ctx: $Client | $ClientContext, ...args: [
36
36
  ontology: _Core.OntologyIdentifier,
37
37
  objectType: _Core.ObjectTypeApiName,
38
38
  primaryKey: _Core.PropertyValueEscapedString,
@@ -54,7 +54,7 @@ export declare function getAttachmentPropertyByRidV2($ctx: $Client | $ClientCont
54
54
  * Required Scopes: [api:ontologies-read]
55
55
  * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/attachments/{property}/content
56
56
  */
57
- export declare function getAttachmentPropertyContentV2($ctx: $Client | $ClientContext, ...args: [
57
+ export declare function readAttachment($ctx: $Client | $ClientContext, ...args: [
58
58
  ontology: _Core.OntologyIdentifier,
59
59
  objectType: _Core.ObjectTypeApiName,
60
60
  primaryKey: _Core.PropertyValueEscapedString,
@@ -77,7 +77,7 @@ export declare function getAttachmentPropertyContentV2($ctx: $Client | $ClientCo
77
77
  * Required Scopes: [api:ontologies-read]
78
78
  * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/attachments/{property}/{attachmentRid}/content
79
79
  */
80
- export declare function getAttachmentPropertyContentByRidV2($ctx: $Client | $ClientContext, ...args: [
80
+ export declare function readAttachmentByRid($ctx: $Client | $ClientContext, ...args: [
81
81
  ontology: _Core.OntologyIdentifier,
82
82
  objectType: _Core.ObjectTypeApiName,
83
83
  primaryKey: _Core.PropertyValueEscapedString,
@@ -1 +1 @@
1
- {"version":3,"file":"AttachmentPropertyV2.d.ts","sourceRoot":"","sources":["../../../src/public/AttachmentPropertyV2.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,KAAK,MAAM,6BAA6B,CAAC;AAC1D,OAAO,KAAK,EACV,YAAY,IAAI,O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G;AACH,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,QAAQ,EAAE,KAAK,CAAC,kBAAkB;IAClC,UAAU,EAAE,KAAK,CAAC,iBAAiB;IACnC,UAAU,EAAE,KAAK,CAAC,0BAA0B;IAC5C,QAAQ,EAAE,KAAK,CAAC,eAAe;IAC/B,aAAa,EAAE,KAAK,CAAC,aAAa;IAElC,YAAY,CAAC,EAAE;QACb,kBAAkB,CAAC,EAAE,KAAK,CAAC,qBAAqB,GAAG,SAAS,CAAC;QAC7D,WAAW,CAAC,EAAE,KAAK,CAAC,cAAc,GAAG,SAAS,CAAC;KAChD;CACF,GACA,OAAO,CAAC,IAAI,CAAC,CAEf"}
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import { foundryPlatformFetch as $foundryPlatformFetch } from "@osdk/shared.net.platformapi";
17
17
  //
18
- const _listPropertyAttachments = [0, "/v2/ontologies/{0}/objects/{1}/{2}/attachments/{3}", 2];
18
+ const _getAttachment = [0, "/v2/ontologies/{0}/objects/{1}/{2}/attachments/{3}", 2];
19
19
  /**
20
20
  * Get the metadata of attachments parented to the given object.
21
21
  *
@@ -27,10 +27,10 @@ const _listPropertyAttachments = [0, "/v2/ontologies/{0}/objects/{1}/{2}/attachm
27
27
  * Required Scopes: [api:ontologies-read]
28
28
  * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/attachments/{property}
29
29
  */
30
- export function listPropertyAttachments($ctx, ...args) {
31
- return $foundryPlatformFetch($ctx, _listPropertyAttachments, ...args);
30
+ export function getAttachment($ctx, ...args) {
31
+ return $foundryPlatformFetch($ctx, _getAttachment, ...args);
32
32
  }
33
- const _getAttachmentPropertyByRidV2 = [0, "/v2/ontologies/{0}/objects/{1}/{2}/attachments/{3}/{4}", 2];
33
+ const _getAttachmentByRid = [0, "/v2/ontologies/{0}/objects/{1}/{2}/attachments/{3}/{4}", 2];
34
34
  /**
35
35
  * Get the metadata of a particular attachment in an attachment list.
36
36
  *
@@ -42,10 +42,10 @@ const _getAttachmentPropertyByRidV2 = [0, "/v2/ontologies/{0}/objects/{1}/{2}/at
42
42
  * Required Scopes: [api:ontologies-read]
43
43
  * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/attachments/{property}/{attachmentRid}
44
44
  */
45
- export function getAttachmentPropertyByRidV2($ctx, ...args) {
46
- return $foundryPlatformFetch($ctx, _getAttachmentPropertyByRidV2, ...args);
45
+ export function getAttachmentByRid($ctx, ...args) {
46
+ return $foundryPlatformFetch($ctx, _getAttachmentByRid, ...args);
47
47
  }
48
- const _getAttachmentPropertyContentV2 = [0, "/v2/ontologies/{0}/objects/{1}/{2}/attachments/{3}/content", 2,, "*/*"];
48
+ const _readAttachment = [0, "/v2/ontologies/{0}/objects/{1}/{2}/attachments/{3}/content", 2,, "*/*"];
49
49
  /**
50
50
  * Get the content of an attachment.
51
51
  *
@@ -57,10 +57,10 @@ const _getAttachmentPropertyContentV2 = [0, "/v2/ontologies/{0}/objects/{1}/{2}/
57
57
  * Required Scopes: [api:ontologies-read]
58
58
  * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/attachments/{property}/content
59
59
  */
60
- export function getAttachmentPropertyContentV2($ctx, ...args) {
61
- return $foundryPlatformFetch($ctx, _getAttachmentPropertyContentV2, ...args);
60
+ export function readAttachment($ctx, ...args) {
61
+ return $foundryPlatformFetch($ctx, _readAttachment, ...args);
62
62
  }
63
- const _getAttachmentPropertyContentByRidV2 = [0, "/v2/ontologies/{0}/objects/{1}/{2}/attachments/{3}/{4}/content", 2,, "*/*"];
63
+ const _readAttachmentByRid = [0, "/v2/ontologies/{0}/objects/{1}/{2}/attachments/{3}/{4}/content", 2,, "*/*"];
64
64
  /**
65
65
  * Get the content of an attachment by its RID.
66
66
  *
@@ -74,7 +74,7 @@ const _getAttachmentPropertyContentByRidV2 = [0, "/v2/ontologies/{0}/objects/{1}
74
74
  * Required Scopes: [api:ontologies-read]
75
75
  * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/attachments/{property}/{attachmentRid}/content
76
76
  */
77
- export function getAttachmentPropertyContentByRidV2($ctx, ...args) {
78
- return $foundryPlatformFetch($ctx, _getAttachmentPropertyContentByRidV2, ...args);
77
+ export function readAttachmentByRid($ctx, ...args) {
78
+ return $foundryPlatformFetch($ctx, _readAttachmentByRid, ...args);
79
79
  }
80
80
  //# sourceMappingURL=AttachmentPropertyV2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AttachmentPropertyV2.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_listPropertyAttachments","listPropertyAttachments","$ctx","args","_getAttachmentPropertyByRidV2","getAttachmentPropertyByRidV2","_getAttachmentPropertyContentV2","getAttachmentPropertyContentV2","_getAttachmentPropertyContentByRidV2","getAttachmentPropertyContentByRidV2"],"sources":["AttachmentPropertyV2.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 _listPropertyAttachments = [0, \"/v2/ontologies/{0}/objects/{1}/{2}/attachments/{3}\", 2];\n/**\n * Get the metadata of attachments parented to the given object.\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: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/attachments/{property}\n */\nexport function listPropertyAttachments($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _listPropertyAttachments, ...args);\n}\nconst _getAttachmentPropertyByRidV2 = [0, \"/v2/ontologies/{0}/objects/{1}/{2}/attachments/{3}/{4}\", 2];\n/**\n * Get the metadata of a particular attachment in an attachment list.\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: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/attachments/{property}/{attachmentRid}\n */\nexport function getAttachmentPropertyByRidV2($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getAttachmentPropertyByRidV2, ...args);\n}\nconst _getAttachmentPropertyContentV2 = [\n 0,\n \"/v2/ontologies/{0}/objects/{1}/{2}/attachments/{3}/content\",\n 2,\n ,\n \"*/*\",\n];\n/**\n * Get the content of an attachment.\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: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/attachments/{property}/content\n */\nexport function getAttachmentPropertyContentV2($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getAttachmentPropertyContentV2, ...args);\n}\nconst _getAttachmentPropertyContentByRidV2 = [\n 0,\n \"/v2/ontologies/{0}/objects/{1}/{2}/attachments/{3}/{4}/content\",\n 2,\n ,\n \"*/*\",\n];\n/**\n * Get the content of an attachment by its RID.\n *\n * The RID must exist in the attachment array of the property.\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: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/attachments/{property}/{attachmentRid}/content\n */\nexport function getAttachmentPropertyContentByRidV2($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getAttachmentPropertyContentByRidV2, ...args);\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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"AttachmentPropertyV2.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_getAttachment","getAttachment","$ctx","args","_getAttachmentByRid","getAttachmentByRid","_readAttachment","readAttachment","_readAttachmentByRid","readAttachmentByRid"],"sources":["AttachmentPropertyV2.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 _getAttachment = [0, \"/v2/ontologies/{0}/objects/{1}/{2}/attachments/{3}\", 2];\n/**\n * Get the metadata of attachments parented to the given object.\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: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/attachments/{property}\n */\nexport function getAttachment($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getAttachment, ...args);\n}\nconst _getAttachmentByRid = [0, \"/v2/ontologies/{0}/objects/{1}/{2}/attachments/{3}/{4}\", 2];\n/**\n * Get the metadata of a particular attachment in an attachment list.\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: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/attachments/{property}/{attachmentRid}\n */\nexport function getAttachmentByRid($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getAttachmentByRid, ...args);\n}\nconst _readAttachment = [\n 0,\n \"/v2/ontologies/{0}/objects/{1}/{2}/attachments/{3}/content\",\n 2,\n ,\n \"*/*\",\n];\n/**\n * Get the content of an attachment.\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: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/attachments/{property}/content\n */\nexport function readAttachment($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _readAttachment, ...args);\n}\nconst _readAttachmentByRid = [\n 0,\n \"/v2/ontologies/{0}/objects/{1}/{2}/attachments/{3}/{4}/content\",\n 2,\n ,\n \"*/*\",\n];\n/**\n * Get the content of an attachment by its RID.\n *\n * The RID must exist in the attachment array of the property.\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: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/attachments/{property}/{attachmentRid}/content\n */\nexport function readAttachmentByRid($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _readAttachmentByRid, ...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,cAAc,GAAG,CAAC,CAAC,EAAE,oDAAoD,EAAE,CAAC,CAAC;AACnF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,aAAaA,CAACC,IAAI,EAAE,GAAGC,IAAI,EAAE;EACzC,OAAOJ,qBAAqB,CAACG,IAAI,EAAEF,cAAc,EAAE,GAAGG,IAAI,CAAC;AAC/D;AACA,MAAMC,mBAAmB,GAAG,CAAC,CAAC,EAAE,wDAAwD,EAAE,CAAC,CAAC;AAC5F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,kBAAkBA,CAACH,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC9C,OAAOJ,qBAAqB,CAACG,IAAI,EAAEE,mBAAmB,EAAE,GAAGD,IAAI,CAAC;AACpE;AACA,MAAMG,eAAe,GAAG,CACpB,CAAC,EACD,4DAA4D,EAC5D,CAAC,GAED,KAAK,CACR;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,cAAcA,CAACL,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC1C,OAAOJ,qBAAqB,CAACG,IAAI,EAAEI,eAAe,EAAE,GAAGH,IAAI,CAAC;AAChE;AACA,MAAMK,oBAAoB,GAAG,CACzB,CAAC,EACD,gEAAgE,EAChE,CAAC,GAED,KAAK,CACR;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,mBAAmBA,CAACP,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC/C,OAAOJ,qBAAqB,CAACG,IAAI,EAAEM,oBAAoB,EAAE,GAAGL,IAAI,CAAC;AACrE","ignoreList":[]}
@@ -22,7 +22,7 @@ import type { SharedClient as $Client, SharedClientContext as $ClientContext } f
22
22
  * Required Scopes: [api:ontologies-read]
23
23
  * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/links/{linkType}
24
24
  */
25
- export declare function listLinkedObjectsV2($ctx: $Client | $ClientContext, ...args: [
25
+ export declare function listLinkedObjects($ctx: $Client | $ClientContext, ...args: [
26
26
  ontology: _Core.OntologyIdentifier,
27
27
  objectType: _Core.ObjectTypeApiName,
28
28
  primaryKey: _Core.PropertyValueEscapedString,
@@ -49,7 +49,7 @@ export declare function listLinkedObjectsV2($ctx: $Client | $ClientContext, ...a
49
49
  * Required Scopes: [api:ontologies-read]
50
50
  * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/links/{linkType}/{linkedObjectPrimaryKey}
51
51
  */
52
- export declare function getLinkedObjectV2($ctx: $Client | $ClientContext, ...args: [
52
+ export declare function getLinkedObject($ctx: $Client | $ClientContext, ...args: [
53
53
  ontology: _Core.OntologyIdentifier,
54
54
  objectType: _Core.ObjectTypeApiName,
55
55
  primaryKey: _Core.PropertyValueEscapedString,
@@ -1 +1 @@
1
- {"version":3,"file":"LinkedObjectV2.d.ts","sourceRoot":"","sources":["../../../src/public/LinkedObjectV2.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;AAwB7B;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,QAAQ,EAAE,KAAK,CAAC,kBAAkB;IAClC,UAAU,EAAE,KAAK,CAAC,iBAAiB;IACnC,UAAU,EAAE,KAAK,CAAC,0BAA0B;IAC5C,QAAQ,EAAE,KAAK,CAAC,eAAe;IAE/B,YAAY,EAAE;QACZ,QAAQ,CAAC,EAAE,KAAK,CAAC,QAAQ,GAAG,SAAS,CAAC;QACtC,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,SAAS,CAAC;QACxC,MAAM,EAAE,KAAK,CAAC,KAAK,CAAC,uBAAuB,CAAC,CAAC;QAC7C,OAAO,CAAC,EAAE,KAAK,CAAC,OAAO,GAAG,SAAS,CAAC;QACpC,kBAAkB,CAAC,EAAE,KAAK,CAAC,qBAAqB,GAAG,SAAS,CAAC;QAC7D,WAAW,CAAC,EAAE,KAAK,CAAC,cAAc,GAAG,SAAS,CAAC;QAC/C,UAAU,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;KAClC;CACF,GACA,OAAO,CAAC,KAAK,CAAC,2BAA2B,CAAC,CAE5C;AAkBD;;;;;;;;;;;GAWG;AACH,w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,GAAG,SAAS,CAAC;QACxC,MAAM,EAAE,KAAK,CAAC,KAAK,CAAC,uBAAuB,CAAC,CAAC;QAC7C,OAAO,CAAC,EAAE,KAAK,CAAC,OAAO,GAAG,SAAS,CAAC;QACpC,kBAAkB,CAAC,EAAE,KAAK,CAAC,qBAAqB,GAAG,SAAS,CAAC;QAC7D,WAAW,CAAC,EAAE,KAAK,CAAC,cAAc,GAAG,SAAS,CAAC;QAC/C,UAAU,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;KAClC;CACF,GACA,OAAO,CAAC,KAAK,CAAC,2BAA2B,CAAC,CAE5C;AAkBD;;;;;;;;;;;GAWG;AACH,wBAAgB,eAAe,CAC7B,IAAI,EAAE,OAAO,GAAG,cAAc,EAC9B,GAAG,IAAI,EAAE;IACP,QAAQ,EAAE,KAAK,CAAC,kBAAkB;IAClC,UAAU,EAAE,KAAK,CAAC,iBAAiB;IACnC,UAAU,EAAE,KAAK,CAAC,0BAA0B;IAC5C,QAAQ,EAAE,KAAK,CAAC,eAAe;IAC/B,sBAAsB,EAAE,KAAK,CAAC,0BAA0B;IAExD,YAAY,EAAE;QACZ,MAAM,EAAE,KAAK,CAAC,KAAK,CAAC,uBAAuB,CAAC,CAAC;QAC7C,kBAAkB,CAAC,EAAE,KAAK,CAAC,qBAAqB,GAAG,SAAS,CAAC;QAC7D,WAAW,CAAC,EAAE,KAAK,CAAC,cAAc,GAAG,SAAS,CAAC;QAC/C,UAAU,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;KAClC;CACF,GACA,OAAO,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAEjC"}
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import { foundryPlatformFetch as $foundryPlatformFetch } from "@osdk/shared.net.platformapi";
17
17
  //
18
- const _listLinkedObjectsV2 = [0, "/v2/ontologies/{0}/objects/{1}/{2}/links/{3}", 2];
18
+ const _listLinkedObjects = [0, "/v2/ontologies/{0}/objects/{1}/{2}/links/{3}", 2];
19
19
  /**
20
20
  * Lists the linked objects for a specific object and the given link type.
21
21
  *
@@ -38,10 +38,10 @@ const _listLinkedObjectsV2 = [0, "/v2/ontologies/{0}/objects/{1}/{2}/links/{3}",
38
38
  * Required Scopes: [api:ontologies-read]
39
39
  * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/links/{linkType}
40
40
  */
41
- export function listLinkedObjectsV2($ctx, ...args) {
42
- return $foundryPlatformFetch($ctx, _listLinkedObjectsV2, ...args);
41
+ export function listLinkedObjects($ctx, ...args) {
42
+ return $foundryPlatformFetch($ctx, _listLinkedObjects, ...args);
43
43
  }
44
- const _getLinkedObjectV2 = [0, "/v2/ontologies/{0}/objects/{1}/{2}/links/{3}/{4}", 2];
44
+ const _getLinkedObject = [0, "/v2/ontologies/{0}/objects/{1}/{2}/links/{3}/{4}", 2];
45
45
  /**
46
46
  * Get a specific linked object that originates from another object.
47
47
  *
@@ -54,7 +54,7 @@ const _getLinkedObjectV2 = [0, "/v2/ontologies/{0}/objects/{1}/{2}/links/{3}/{4}
54
54
  * Required Scopes: [api:ontologies-read]
55
55
  * URL: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/links/{linkType}/{linkedObjectPrimaryKey}
56
56
  */
57
- export function getLinkedObjectV2($ctx, ...args) {
58
- return $foundryPlatformFetch($ctx, _getLinkedObjectV2, ...args);
57
+ export function getLinkedObject($ctx, ...args) {
58
+ return $foundryPlatformFetch($ctx, _getLinkedObject, ...args);
59
59
  }
60
60
  //# sourceMappingURL=LinkedObjectV2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"LinkedObjectV2.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_listLinkedObjectsV2","listLinkedObjectsV2","$ctx","args","_getLinkedObjectV2","getLinkedObjectV2"],"sources":["LinkedObjectV2.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 _listLinkedObjectsV2 = [0, \"/v2/ontologies/{0}/objects/{1}/{2}/links/{3}\", 2];\n/**\n * Lists the linked objects for a specific object and the given link type.\n *\n * Note that this endpoint does not guarantee consistency. Changes to the data could result in missing or\n * repeated objects in the response pages.\n *\n * For Object Storage V1 backed objects, this endpoint returns a maximum of 10,000 objects. After 10,000 objects have been returned and if more objects\n * are available, attempting to load another page will result in an `ObjectsExceededLimit` error being returned. There is no limit on Object Storage V2 backed objects.\n *\n * Each page may be smaller or larger than the requested page size. However, it\n * is guaranteed that if there are more results available, at least one result will be present\n * in the response.\n *\n * Note that null value properties will not be returned.\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: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/links/{linkType}\n */\nexport function listLinkedObjectsV2($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _listLinkedObjectsV2, ...args);\n}\nconst _getLinkedObjectV2 = [0, \"/v2/ontologies/{0}/objects/{1}/{2}/links/{3}/{4}\", 2];\n/**\n * Get a specific linked object that originates from another object.\n *\n * If there is no link between the two objects, `LinkedObjectNotFound` is thrown.\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: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/links/{linkType}/{linkedObjectPrimaryKey}\n */\nexport function getLinkedObjectV2($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getLinkedObjectV2, ...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,oBAAoB,GAAG,CAAC,CAAC,EAAE,8CAA8C,EAAE,CAAC,CAAC;AACnF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,mBAAmBA,CAACC,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC/C,OAAOJ,qBAAqB,CAACG,IAAI,EAAEF,oBAAoB,EAAE,GAAGG,IAAI,CAAC;AACrE;AACA,MAAMC,kBAAkB,GAAG,CAAC,CAAC,EAAE,kDAAkD,EAAE,CAAC,CAAC;AACrF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,iBAAiBA,CAACH,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC7C,OAAOJ,qBAAqB,CAACG,IAAI,EAAEE,kBAAkB,EAAE,GAAGD,IAAI,CAAC;AACnE","ignoreList":[]}
1
+ {"version":3,"file":"LinkedObjectV2.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_listLinkedObjects","listLinkedObjects","$ctx","args","_getLinkedObject","getLinkedObject"],"sources":["LinkedObjectV2.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 _listLinkedObjects = [0, \"/v2/ontologies/{0}/objects/{1}/{2}/links/{3}\", 2];\n/**\n * Lists the linked objects for a specific object and the given link type.\n *\n * Note that this endpoint does not guarantee consistency. Changes to the data could result in missing or\n * repeated objects in the response pages.\n *\n * For Object Storage V1 backed objects, this endpoint returns a maximum of 10,000 objects. After 10,000 objects have been returned and if more objects\n * are available, attempting to load another page will result in an `ObjectsExceededLimit` error being returned. There is no limit on Object Storage V2 backed objects.\n *\n * Each page may be smaller or larger than the requested page size. However, it\n * is guaranteed that if there are more results available, at least one result will be present\n * in the response.\n *\n * Note that null value properties will not be returned.\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: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/links/{linkType}\n */\nexport function listLinkedObjects($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _listLinkedObjects, ...args);\n}\nconst _getLinkedObject = [0, \"/v2/ontologies/{0}/objects/{1}/{2}/links/{3}/{4}\", 2];\n/**\n * Get a specific linked object that originates from another object.\n *\n * If there is no link between the two objects, `LinkedObjectNotFound` is thrown.\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: /v2/ontologies/{ontology}/objects/{objectType}/{primaryKey}/links/{linkType}/{linkedObjectPrimaryKey}\n */\nexport function getLinkedObject($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _getLinkedObject, ...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,kBAAkB,GAAG,CAAC,CAAC,EAAE,8CAA8C,EAAE,CAAC,CAAC;AACjF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,iBAAiBA,CAACC,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC7C,OAAOJ,qBAAqB,CAACG,IAAI,EAAEF,kBAAkB,EAAE,GAAGG,IAAI,CAAC;AACnE;AACA,MAAMC,gBAAgB,GAAG,CAAC,CAAC,EAAE,kDAAkD,EAAE,CAAC,CAAC;AACnF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,eAAeA,CAACH,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC3C,OAAOJ,qBAAqB,CAACG,IAAI,EAAEE,gBAAgB,EAAE,GAAGD,IAAI,CAAC;AACjE","ignoreList":[]}