@osdk/foundry.ontologies 2.66.0 → 2.68.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 (42) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/build/browser/_components.d.ts +385 -5
  3. package/build/browser/_components.d.ts.map +1 -1
  4. package/build/browser/_errors.d.ts +34 -0
  5. package/build/browser/_errors.d.ts.map +1 -1
  6. package/build/browser/index.d.ts +2 -2
  7. package/build/browser/index.d.ts.map +1 -1
  8. package/build/browser/public/ActionTypeV2.d.ts +2 -0
  9. package/build/browser/public/ActionTypeV2.d.ts.map +1 -1
  10. package/build/browser/public/CipherTextProperty.d.ts +46 -0
  11. package/build/browser/public/CipherTextProperty.d.ts.map +1 -1
  12. package/build/browser/public/CipherTextProperty.js +32 -0
  13. package/build/browser/public/CipherTextProperty.js.map +1 -1
  14. package/build/browser/public/ObjectTypeV2.d.ts +6 -0
  15. package/build/browser/public/ObjectTypeV2.d.ts.map +1 -1
  16. package/build/browser/public/ObjectTypeV2.js +3 -0
  17. package/build/browser/public/ObjectTypeV2.js.map +1 -1
  18. package/build/browser/public/OntologyScenario.d.ts +26 -0
  19. package/build/browser/public/OntologyScenario.d.ts.map +1 -1
  20. package/build/browser/public/OntologyScenario.js +20 -0
  21. package/build/browser/public/OntologyScenario.js.map +1 -1
  22. package/build/esm/_components.d.ts +385 -5
  23. package/build/esm/_components.d.ts.map +1 -1
  24. package/build/esm/_errors.d.ts +34 -0
  25. package/build/esm/_errors.d.ts.map +1 -1
  26. package/build/esm/index.d.ts +2 -2
  27. package/build/esm/index.d.ts.map +1 -1
  28. package/build/esm/public/ActionTypeV2.d.ts +2 -0
  29. package/build/esm/public/ActionTypeV2.d.ts.map +1 -1
  30. package/build/esm/public/CipherTextProperty.d.ts +46 -0
  31. package/build/esm/public/CipherTextProperty.d.ts.map +1 -1
  32. package/build/esm/public/CipherTextProperty.js +32 -0
  33. package/build/esm/public/CipherTextProperty.js.map +1 -1
  34. package/build/esm/public/ObjectTypeV2.d.ts +6 -0
  35. package/build/esm/public/ObjectTypeV2.d.ts.map +1 -1
  36. package/build/esm/public/ObjectTypeV2.js +3 -0
  37. package/build/esm/public/ObjectTypeV2.js.map +1 -1
  38. package/build/esm/public/OntologyScenario.d.ts +26 -0
  39. package/build/esm/public/OntologyScenario.d.ts.map +1 -1
  40. package/build/esm/public/OntologyScenario.js +20 -0
  41. package/build/esm/public/OntologyScenario.js.map +1 -1
  42. package/package.json +5 -4
@@ -1 +1 @@
1
- {"version":3,"file":"OntologyScenario.d.ts","sourceRoot":"","sources":["../../../src/public/OntologyScenario.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,KAAK,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,EACV,YAAY,IAAI,UAAU,EAC1B,mBAAmB,IAAI,iBAAiB,EACzC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EACV,YAAY,IAAI,OAAO,EACvB,mBAAmB,IAAI,cAAc,EACtC,MAAM,sBAAsB,CAAC;AAG9B,OAAO,KAAK,KAAK,WAAW,MAAM,mBAAmB,CAAC;AAYtD;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAC5B,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE;IACP,QAAQ,EAAE,WAAW,CAAC,kBAAkB;IACxC,KAAK,EAAE,WAAW,CAAC,6BAA6B;IAChD,YAAY,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAA;KAAE;CAC3D,GACA,OAAO,CAAC,WAAW,CAAC,8BAA8B,CAAC,CAErD;AAUD;;;;;;;GAOG;AACH,wBAAgB,6BAA6B,CAC3C,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE;IACP,QAAQ,EAAE,WAAW,CAAC,kBAAk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B,CAAC,CAEtD;AAeD;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,8BAA8B,CAC5C,IAAI,EAAE,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,iBAAiB,EAC/D,GAAG,IAAI,EAAE;IACP,QAAQ,EAAE,WAAW,CAAC,kBAAkB;IACxC,WAAW,EAAE,WAAW,CAAC,mBAAmB;IAC5C,UAAU,EAAE,WAAW,CAAC,iBAAiB;IAEzC,YAAY,CAAC,EAAE;QACb,QAAQ,CAAC,EAAE,KAAK,CAAC,QAAQ,GAAG,SAAS,CAAC;QACtC,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,SAAS,CAAC;QACxC,OAAO,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,SAAS,CAAC;KACzC;CACF,GACA,OAAO,CAAC,WAAW,CAAC,sCAAsC,CAAC,CAE7D"}
@@ -101,4 +101,24 @@ const _listScenarioEditedLinks = [0, "/v2/ontologies/{0}/scenarios/{1}/objects/{
101
101
  export function listScenarioEditedLinks($ctx, ...args) {
102
102
  return $foundryPlatformFetch($ctx, _listScenarioEditedLinks, ...args);
103
103
  }
104
+ const _listScenarioConflictingObjects = [0, "/v2/ontologies/{0}/scenarios/{1}/objects/{2}/conflicting", 2];
105
+ /**
106
+ * Returns the list of objects with edits that conflict with edits to the scenario's base for a specific object
107
+ * type. A conflict occurs when an object has been edited both within the scenario and on the scenario's base
108
+ * after the scenario was created. Only objects that the user has permission to view are returned.
109
+ *
110
+ * Conflict detection takes into account changes that are not reflected in the user-visible object data.
111
+ * As a result, this endpoint may report false positives. An object may be returned as conflicting even if
112
+ * its data has not actually changed on the scenario's base.
113
+ *
114
+ * Each page may be smaller than the requested page size.
115
+ *
116
+ * @alpha
117
+ *
118
+ * Required Scopes: [api:ontologies-read]
119
+ * URL: /v2/ontologies/{ontology}/scenarios/{scenarioRid}/objects/{objectType}/conflicting
120
+ */
121
+ export function listScenarioConflictingObjects($ctx, ...args) {
122
+ return $foundryPlatformFetch($ctx, _listScenarioConflictingObjects, ...args);
123
+ }
104
124
  //# sourceMappingURL=OntologyScenario.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"OntologyScenario.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_createScenario","createScenario","$ctx","args","_listScenarioEditedObjectTypes","listScenarioEditedObjectTypes","_listScenarioEditedLinkTypes","listScenarioEditedLinkTypes","_listScenarioEditedEntityTypes","listScenarioEditedEntityTypes","_listScenarioEditedObjects","listScenarioEditedObjects","_listScenarioEditedLinks","listScenarioEditedLinks"],"sources":["OntologyScenario.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 _createScenario = [1, \"/v2/ontologies/{0}/scenarios/create\", 3];\n/**\n * Creates an ontology scenario.\n *\n * @alpha\n *\n * Required Scopes: [api:ontologies-read, api:ontologies-write]\n * URL: /v2/ontologies/{ontology}/scenarios/create\n */\nexport function createScenario($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _createScenario, ...args);\n}\nconst _listScenarioEditedObjectTypes = [0, \"/v2/ontologies/{0}/scenarios/{1}/objectTypes/edited\", 2];\n/**\n * Returns the list of object type API names that have been modified within a given scenario.\n *\n * @alpha\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/scenarios/{scenarioRid}/objectTypes/edited\n */\nexport function listScenarioEditedObjectTypes($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _listScenarioEditedObjectTypes, ...args);\n}\nconst _listScenarioEditedLinkTypes = [\n 0,\n \"/v2/ontologies/{0}/scenarios/{1}/objectTypes/{2}/outgoingLinkTypes/edited\",\n 2,\n];\n/**\n * Returns the list of outgoing links that have been modified within a given scenario for an object type.\n *\n * Note that only many-to-many link type are returned by this endpoint. One-to-many link type edits are\n * surfaced as object edits on the object type that owns the foreign key property.\n *\n * @alpha\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/scenarios/{scenarioRid}/objectTypes/{objectType}/outgoingLinkTypes/edited\n */\nexport function listScenarioEditedLinkTypes($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _listScenarioEditedLinkTypes, ...args);\n}\nconst _listScenarioEditedEntityTypes = [0, \"/v2/ontologies/{0}/scenarios/{1}/editedEntityTypes\", 2];\n/**\n * Returns the object types and link types that have been modified within a given scenario.\n *\n * The response contains the list of object type API names that have been modified, and the list of\n * many-to-many link types that have been modified, grouped by their source object type. One-to-many\n * link type edits are surfaced as object edits on the object type that owns the foreign key property.\n *\n * @alpha\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/scenarios/{scenarioRid}/editedEntityTypes\n */\nexport function listScenarioEditedEntityTypes($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _listScenarioEditedEntityTypes, ...args);\n}\nconst _listScenarioEditedObjects = [0, \"/v2/ontologies/{0}/scenarios/{1}/objects/{2}/edited\", 2];\n/**\n * Returns the list of objects that have been edited within a given scenario for a specific object type.\n * Only objects that the user has permission to view are returned.\n *\n * Each page may be smaller than the requested page size.\n *\n * @alpha\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/scenarios/{scenarioRid}/objects/{objectType}/edited\n */\nexport function listScenarioEditedObjects($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _listScenarioEditedObjects, ...args);\n}\nconst _listScenarioEditedLinks = [0, \"/v2/ontologies/{0}/scenarios/{1}/objects/{2}/links/{3}/edited\", 2];\n/**\n * Returns the list of edited links within a given scenario for a specific object type and link type, grouped\n * by source object. Only works for many-to-many link types. Only links where the user has permission to view\n * both objects are returned.\n *\n * Each page may be smaller than the requested page size.\n *\n * @alpha\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/scenarios/{scenarioRid}/objects/{objectType}/links/{linkType}/edited\n */\nexport function listScenarioEditedLinks($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _listScenarioEditedLinks, ...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,eAAe,GAAG,CAAC,CAAC,EAAE,qCAAqC,EAAE,CAAC,CAAC;AACrE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,cAAcA,CAACC,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC1C,OAAOJ,qBAAqB,CAACG,IAAI,EAAEF,eAAe,EAAE,GAAGG,IAAI,CAAC;AAChE;AACA,MAAMC,8BAA8B,GAAG,CAAC,CAAC,EAAE,qDAAqD,EAAE,CAAC,CAAC;AACpG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,6BAA6BA,CAACH,IAAI,EAAE,GAAGC,IAAI,EAAE;EACzD,OAAOJ,qBAAqB,CAACG,IAAI,EAAEE,8BAA8B,EAAE,GAAGD,IAAI,CAAC;AAC/E;AACA,MAAMG,4BAA4B,GAAG,CACjC,CAAC,EACD,2EAA2E,EAC3E,CAAC,CACJ;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,2BAA2BA,CAACL,IAAI,EAAE,GAAGC,IAAI,EAAE;EACvD,OAAOJ,qBAAqB,CAACG,IAAI,EAAEI,4BAA4B,EAAE,GAAGH,IAAI,CAAC;AAC7E;AACA,MAAMK,8BAA8B,GAAG,CAAC,CAAC,EAAE,oDAAoD,EAAE,CAAC,CAAC;AACnG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,6BAA6BA,CAACP,IAAI,EAAE,GAAGC,IAAI,EAAE;EACzD,OAAOJ,qBAAqB,CAACG,IAAI,EAAEM,8BAA8B,EAAE,GAAGL,IAAI,CAAC;AAC/E;AACA,MAAMO,0BAA0B,GAAG,CAAC,CAAC,EAAE,qDAAqD,EAAE,CAAC,CAAC;AAChG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,yBAAyBA,CAACT,IAAI,EAAE,GAAGC,IAAI,EAAE;EACrD,OAAOJ,qBAAqB,CAACG,IAAI,EAAEQ,0BAA0B,EAAE,GAAGP,IAAI,CAAC;AAC3E;AACA,MAAMS,wBAAwB,GAAG,CAAC,CAAC,EAAE,+DAA+D,EAAE,CAAC,CAAC;AACxG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,uBAAuBA,CAACX,IAAI,EAAE,GAAGC,IAAI,EAAE;EACnD,OAAOJ,qBAAqB,CAACG,IAAI,EAAEU,wBAAwB,EAAE,GAAGT,IAAI,CAAC;AACzE","ignoreList":[]}
1
+ {"version":3,"file":"OntologyScenario.js","names":["foundryPlatformFetch","$foundryPlatformFetch","_createScenario","createScenario","$ctx","args","_listScenarioEditedObjectTypes","listScenarioEditedObjectTypes","_listScenarioEditedLinkTypes","listScenarioEditedLinkTypes","_listScenarioEditedEntityTypes","listScenarioEditedEntityTypes","_listScenarioEditedObjects","listScenarioEditedObjects","_listScenarioEditedLinks","listScenarioEditedLinks","_listScenarioConflictingObjects","listScenarioConflictingObjects"],"sources":["OntologyScenario.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 _createScenario = [1, \"/v2/ontologies/{0}/scenarios/create\", 3];\n/**\n * Creates an ontology scenario.\n *\n * @alpha\n *\n * Required Scopes: [api:ontologies-read, api:ontologies-write]\n * URL: /v2/ontologies/{ontology}/scenarios/create\n */\nexport function createScenario($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _createScenario, ...args);\n}\nconst _listScenarioEditedObjectTypes = [0, \"/v2/ontologies/{0}/scenarios/{1}/objectTypes/edited\", 2];\n/**\n * Returns the list of object type API names that have been modified within a given scenario.\n *\n * @alpha\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/scenarios/{scenarioRid}/objectTypes/edited\n */\nexport function listScenarioEditedObjectTypes($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _listScenarioEditedObjectTypes, ...args);\n}\nconst _listScenarioEditedLinkTypes = [\n 0,\n \"/v2/ontologies/{0}/scenarios/{1}/objectTypes/{2}/outgoingLinkTypes/edited\",\n 2,\n];\n/**\n * Returns the list of outgoing links that have been modified within a given scenario for an object type.\n *\n * Note that only many-to-many link type are returned by this endpoint. One-to-many link type edits are\n * surfaced as object edits on the object type that owns the foreign key property.\n *\n * @alpha\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/scenarios/{scenarioRid}/objectTypes/{objectType}/outgoingLinkTypes/edited\n */\nexport function listScenarioEditedLinkTypes($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _listScenarioEditedLinkTypes, ...args);\n}\nconst _listScenarioEditedEntityTypes = [0, \"/v2/ontologies/{0}/scenarios/{1}/editedEntityTypes\", 2];\n/**\n * Returns the object types and link types that have been modified within a given scenario.\n *\n * The response contains the list of object type API names that have been modified, and the list of\n * many-to-many link types that have been modified, grouped by their source object type. One-to-many\n * link type edits are surfaced as object edits on the object type that owns the foreign key property.\n *\n * @alpha\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/scenarios/{scenarioRid}/editedEntityTypes\n */\nexport function listScenarioEditedEntityTypes($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _listScenarioEditedEntityTypes, ...args);\n}\nconst _listScenarioEditedObjects = [0, \"/v2/ontologies/{0}/scenarios/{1}/objects/{2}/edited\", 2];\n/**\n * Returns the list of objects that have been edited within a given scenario for a specific object type.\n * Only objects that the user has permission to view are returned.\n *\n * Each page may be smaller than the requested page size.\n *\n * @alpha\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/scenarios/{scenarioRid}/objects/{objectType}/edited\n */\nexport function listScenarioEditedObjects($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _listScenarioEditedObjects, ...args);\n}\nconst _listScenarioEditedLinks = [0, \"/v2/ontologies/{0}/scenarios/{1}/objects/{2}/links/{3}/edited\", 2];\n/**\n * Returns the list of edited links within a given scenario for a specific object type and link type, grouped\n * by source object. Only works for many-to-many link types. Only links where the user has permission to view\n * both objects are returned.\n *\n * Each page may be smaller than the requested page size.\n *\n * @alpha\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/scenarios/{scenarioRid}/objects/{objectType}/links/{linkType}/edited\n */\nexport function listScenarioEditedLinks($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _listScenarioEditedLinks, ...args);\n}\nconst _listScenarioConflictingObjects = [0, \"/v2/ontologies/{0}/scenarios/{1}/objects/{2}/conflicting\", 2];\n/**\n * Returns the list of objects with edits that conflict with edits to the scenario's base for a specific object\n * type. A conflict occurs when an object has been edited both within the scenario and on the scenario's base\n * after the scenario was created. Only objects that the user has permission to view are returned.\n *\n * Conflict detection takes into account changes that are not reflected in the user-visible object data.\n * As a result, this endpoint may report false positives. An object may be returned as conflicting even if\n * its data has not actually changed on the scenario's base.\n *\n * Each page may be smaller than the requested page size.\n *\n * @alpha\n *\n * Required Scopes: [api:ontologies-read]\n * URL: /v2/ontologies/{ontology}/scenarios/{scenarioRid}/objects/{objectType}/conflicting\n */\nexport function listScenarioConflictingObjects($ctx, ...args) {\n return $foundryPlatformFetch($ctx, _listScenarioConflictingObjects, ...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,eAAe,GAAG,CAAC,CAAC,EAAE,qCAAqC,EAAE,CAAC,CAAC;AACrE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,cAAcA,CAACC,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC1C,OAAOJ,qBAAqB,CAACG,IAAI,EAAEF,eAAe,EAAE,GAAGG,IAAI,CAAC;AAChE;AACA,MAAMC,8BAA8B,GAAG,CAAC,CAAC,EAAE,qDAAqD,EAAE,CAAC,CAAC;AACpG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,6BAA6BA,CAACH,IAAI,EAAE,GAAGC,IAAI,EAAE;EACzD,OAAOJ,qBAAqB,CAACG,IAAI,EAAEE,8BAA8B,EAAE,GAAGD,IAAI,CAAC;AAC/E;AACA,MAAMG,4BAA4B,GAAG,CACjC,CAAC,EACD,2EAA2E,EAC3E,CAAC,CACJ;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,2BAA2BA,CAACL,IAAI,EAAE,GAAGC,IAAI,EAAE;EACvD,OAAOJ,qBAAqB,CAACG,IAAI,EAAEI,4BAA4B,EAAE,GAAGH,IAAI,CAAC;AAC7E;AACA,MAAMK,8BAA8B,GAAG,CAAC,CAAC,EAAE,oDAAoD,EAAE,CAAC,CAAC;AACnG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,6BAA6BA,CAACP,IAAI,EAAE,GAAGC,IAAI,EAAE;EACzD,OAAOJ,qBAAqB,CAACG,IAAI,EAAEM,8BAA8B,EAAE,GAAGL,IAAI,CAAC;AAC/E;AACA,MAAMO,0BAA0B,GAAG,CAAC,CAAC,EAAE,qDAAqD,EAAE,CAAC,CAAC;AAChG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,yBAAyBA,CAACT,IAAI,EAAE,GAAGC,IAAI,EAAE;EACrD,OAAOJ,qBAAqB,CAACG,IAAI,EAAEQ,0BAA0B,EAAE,GAAGP,IAAI,CAAC;AAC3E;AACA,MAAMS,wBAAwB,GAAG,CAAC,CAAC,EAAE,+DAA+D,EAAE,CAAC,CAAC;AACxG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,uBAAuBA,CAACX,IAAI,EAAE,GAAGC,IAAI,EAAE;EACnD,OAAOJ,qBAAqB,CAACG,IAAI,EAAEU,wBAAwB,EAAE,GAAGT,IAAI,CAAC;AACzE;AACA,MAAMW,+BAA+B,GAAG,CAAC,CAAC,EAAE,0DAA0D,EAAE,CAAC,CAAC;AAC1G;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,8BAA8BA,CAACb,IAAI,EAAE,GAAGC,IAAI,EAAE;EAC1D,OAAOJ,qBAAqB,CAACG,IAAI,EAAEY,+BAA+B,EAAE,GAAGX,IAAI,CAAC;AAChF","ignoreList":[]}
@@ -1,4 +1,5 @@
1
1
  import type * as _Core from "@osdk/foundry.core";
2
+ import type * as _Datasets from "@osdk/foundry.datasets";
2
3
  import type * as _Geo from "@osdk/foundry.geo";
3
4
  export type LooselyBrandedString<T extends string> = string & {
4
5
  __LOOSE_BRAND?: T;
@@ -1184,10 +1185,42 @@ export interface CenterPoint {
1184
1185
  export type CenterPointTypes = {
1185
1186
  type: "Point";
1186
1187
  } & _Geo.GeoPoint;
1188
+ /**
1189
+ * Controls which Cipher Channel is used when encrypting a value. If not specified, defaults to PREFER_EXISTING.
1190
+
1191
+ PREFER_EXISTING: use the Cipher Channel parsed from the existing ciphertext value; fall back to the default channel configured in ontology metadata.
1192
+ PREFER_DEFAULT: use the default channel configured in ontology metadata; fall back to the channel parsed from the existing ciphertext value.
1193
+ EXISTING_ONLY: use the channel parsed from the existing ciphertext value only; error if the value is not already encrypted.
1194
+ DEFAULT_ONLY: use the default channel configured in ontology metadata only; error if none is configured.
1195
+ *
1196
+ * Log Safety: SAFE
1197
+ */
1198
+ export type CipherChannelStrategy = "PREFER_EXISTING" | "PREFER_DEFAULT" | "EXISTING_ONLY" | "DEFAULT_ONLY";
1199
+ /**
1200
+ * A value encrypted with Cipher, stored in its envelope form which encodes
1201
+ the Cipher Channel used to encrypt it (for example CIPHER::{cipherChannelRid}::<ciphertext>::CIPHER).
1202
+ *
1203
+ * Log Safety: UNSAFE
1204
+ */
1205
+ export type CipherText = LooselyBrandedString<"CipherText">;
1187
1206
  /**
1188
1207
  * Log Safety: UNSAFE
1189
1208
  */
1190
1209
  export type CipherTextProperty = LooselyBrandedString<"CipherTextProperty">;
1210
+ /**
1211
+ * The name of a column in a tabular datasource.
1212
+ *
1213
+ * Log Safety: UNSAFE
1214
+ */
1215
+ export type ColumnName = LooselyBrandedString<"ColumnName">;
1216
+ /**
1217
+ * A property bound to a single column in the backing datasource.
1218
+ *
1219
+ * Log Safety: UNSAFE
1220
+ */
1221
+ export interface ColumnPropertyMapping {
1222
+ column: ColumnName;
1223
+ }
1191
1224
  /**
1192
1225
  * The conjunctive set of markings required to access the property value.
1193
1226
  All markings from a conjunctive set must be met for access.
@@ -1437,6 +1470,18 @@ export interface CurrentUserArgument {
1437
1470
  * Log Safety: SAFE
1438
1471
  */
1439
1472
  export type CustomTypeId = LooselyBrandedString<"CustomTypeId">;
1473
+ /**
1474
+ * The id of a datasource branch. Branch ids are user supplied strings, not RIDs.
1475
+ *
1476
+ * Log Safety: UNSAFE
1477
+ */
1478
+ export type DatasourceBranchId = LooselyBrandedString<"DatasourceBranchId">;
1479
+ /**
1480
+ * Randomly generated identifier for an object type's datasource.
1481
+ *
1482
+ * Log Safety: SAFE
1483
+ */
1484
+ export type DatasourceRid = LooselyBrandedString<"DatasourceRid">;
1440
1485
  /**
1441
1486
  * Represents the value of data in the following format. Note that these values can be nested, for example an array of structs.
1442
1487
  | Type | JSON encoding | Example |
@@ -1534,7 +1579,7 @@ export interface DateValue {
1534
1579
  * Log Safety: DO_NOT_LOG
1535
1580
  */
1536
1581
  export interface DecryptionResult {
1537
- plaintext?: Plaintext;
1582
+ plaintext: Plaintext;
1538
1583
  }
1539
1584
  /**
1540
1585
  * Log Safety: UNSAFE
@@ -1672,6 +1717,12 @@ export interface DerivedTimeSeriesProperty {
1672
1717
  templateRid: TimeseriesTemplateRid;
1673
1718
  templateVersion?: TimeseriesTemplateVersion;
1674
1719
  }
1720
+ /**
1721
+ * The RID of a direct-write source backing an object type.
1722
+ *
1723
+ * Log Safety: SAFE
1724
+ */
1725
+ export type DirectSourceRid = LooselyBrandedString<"DirectSourceRid">;
1675
1726
  /**
1676
1727
  * The disjunctive set of markings required to access the property value.
1677
1728
  Disjunctive markings are represented as a conjunctive list of disjunctive sets.
@@ -1766,6 +1817,13 @@ export type EditHistoryEdit = ({
1766
1817
  } & DeleteEdit) | ({
1767
1818
  type: "modifyEdit";
1768
1819
  } & ModifyEdit);
1820
+ /**
1821
+ * A property on an object type that is permissioned to a tabular datasource, but the contents are only populated through Actions.
1822
+ *
1823
+ * Log Safety: SAFE
1824
+ */
1825
+ export interface EditOnlyPropertyMapping {
1826
+ }
1769
1827
  /**
1770
1828
  * Log Safety: UNSAFE
1771
1829
  */
@@ -1795,6 +1853,22 @@ export interface EditsHistoryTimestampFilter {
1795
1853
  * Log Safety: SAFE
1796
1854
  */
1797
1855
  export type EditTypeFilter = "create" | "modify" | "delete";
1856
+ /**
1857
+ * The request to encrypt a plaintext value into a CipherText value.
1858
+ *
1859
+ * Log Safety: DO_NOT_LOG
1860
+ */
1861
+ export interface EncryptionRequest {
1862
+ plaintext: Plaintext;
1863
+ }
1864
+ /**
1865
+ * The result of a CipherText encryption. If successful, the encrypted ciphertext value will be returned. Otherwise, an error will be thrown.
1866
+ *
1867
+ * Log Safety: UNSAFE
1868
+ */
1869
+ export interface EncryptionResult {
1870
+ ciphertext: CipherText;
1871
+ }
1798
1872
  /**
1799
1873
  * Log Safety: UNSAFE
1800
1874
  */
@@ -2686,6 +2760,44 @@ export interface LinkSideObject {
2686
2760
  primaryKey: PropertyValue;
2687
2761
  objectType: ObjectTypeApiName;
2688
2762
  }
2763
+ /**
2764
+ * Messages sent over the link type subscription WebSocket.
2765
+ *
2766
+ * Log Safety: UNSAFE
2767
+ */
2768
+ export type LinksMessage = ({
2769
+ type: "subscriptionClosed";
2770
+ } & SubscriptionClosed) | ({
2771
+ type: "subscribeResponses";
2772
+ } & ObjectSetSubscribeResponses) | ({
2773
+ type: "refresh";
2774
+ } & RefreshLinks) | ({
2775
+ type: "updates";
2776
+ } & LinkUpdates);
2777
+ /**
2778
+ * Represents the state of a link change. ADDED indicates the link was created. REMOVED indicates
2779
+ the link was deleted. Updates are represented as a REMOVED followed by an ADDED LinkState in a
2780
+ single LinkUpdates message.
2781
+ *
2782
+ * Log Safety: SAFE
2783
+ */
2784
+ export type LinkState = "ADDED" | "REMOVED";
2785
+ /**
2786
+ * Identifies an object by its object type and primary key. Used in link subscription
2787
+ requests and responses to identify objects on either side of a link.
2788
+ *
2789
+ * Log Safety: UNSAFE
2790
+ */
2791
+ export interface LinkSubscriptionObjectLocator {
2792
+ objectType: ObjectTypeApiName;
2793
+ primaryKey: ObjectPrimaryKey;
2794
+ }
2795
+ /**
2796
+ * A list of object locators to report link changes on.
2797
+ *
2798
+ * Log Safety: UNSAFE
2799
+ */
2800
+ export type LinkSubscriptionObjectLocators = Array<LinkSubscriptionObjectLocator>;
2689
2801
  /**
2690
2802
  * The name of the link type in the API. To find the API name for your Link Type, check the Ontology Manager
2691
2803
  application.
@@ -2693,6 +2805,12 @@ application.
2693
2805
  * Log Safety: UNSAFE
2694
2806
  */
2695
2807
  export type LinkTypeApiName = LooselyBrandedString<"LinkTypeApiName">;
2808
+ /**
2809
+ * A list of directed link type API names.
2810
+ *
2811
+ * Log Safety: UNSAFE
2812
+ */
2813
+ export type LinkTypeApiNames = Array<LinkTypeApiName>;
2696
2814
  /**
2697
2815
  * The unique ID of a link type. To find the ID for your link type, check the Ontology Manager application.
2698
2816
  *
@@ -2733,6 +2851,46 @@ export interface LinkTypeSideV2 {
2733
2851
  foreignKeyPropertyApiName?: PropertyApiName;
2734
2852
  linkTypeRid: LinkTypeRid;
2735
2853
  }
2854
+ /**
2855
+ * A request to subscribe to link changes from a selected side of a set of objects over a set of link
2856
+ types.
2857
+ *
2858
+ * Log Safety: UNSAFE
2859
+ */
2860
+ export interface LinkTypeSubscribeRequest {
2861
+ selectedObjects: LinkSubscriptionObjectLocators;
2862
+ linkTypes: LinkTypeApiNames;
2863
+ }
2864
+ /**
2865
+ * The list of link subscriptions that should be established. A client can stop subscribing to links
2866
+ by removing the request from subsequent LinkTypeSubscribeRequests.
2867
+ *
2868
+ * Log Safety: UNSAFE
2869
+ */
2870
+ export interface LinkTypeSubscribeRequests {
2871
+ id: RequestId;
2872
+ requests: Array<LinkTypeSubscribeRequest>;
2873
+ }
2874
+ /**
2875
+ * Represents a single link change between two objects.
2876
+ *
2877
+ * Log Safety: UNSAFE
2878
+ */
2879
+ export interface LinkUpdate {
2880
+ selectedSide: LinkSubscriptionObjectLocator;
2881
+ linkType: LinkTypeApiName;
2882
+ linkedSide: LinkSubscriptionObjectLocator;
2883
+ state: LinkState;
2884
+ }
2885
+ /**
2886
+ * A message containing link updates for a subscription.
2887
+ *
2888
+ * Log Safety: UNSAFE
2889
+ */
2890
+ export interface LinkUpdates {
2891
+ id: SubscriptionId;
2892
+ updates: Array<LinkUpdate>;
2893
+ }
2736
2894
  /**
2737
2895
  * Log Safety: UNSAFE
2738
2896
  */
@@ -2880,6 +3038,15 @@ export interface ListQueryTypesResponseV2 {
2880
3038
  nextPageToken?: _Core.PageToken;
2881
3039
  data: Array<QueryTypeV2>;
2882
3040
  }
3041
+ /**
3042
+ * The objects that have a conflicting edit within a scenario for a given object type.
3043
+ *
3044
+ * Log Safety: UNSAFE
3045
+ */
3046
+ export interface ListScenarioConflictingObjectsResponse {
3047
+ data: Array<ObjectLocator>;
3048
+ nextPageToken?: _Core.PageToken;
3049
+ }
2883
3050
  /**
2884
3051
  * The object types and link types that have been modified within a scenario.
2885
3052
  *
@@ -3948,6 +4115,67 @@ List object types endpoint or check the Ontology Manager.
3948
4115
  * Log Safety: UNSAFE
3949
4116
  */
3950
4117
  export type ObjectTypeApiName = LooselyBrandedString<"ObjectTypeApiName">;
4118
+ /**
4119
+ * An object type datasource backed by a Foundry dataset.
4120
+ *
4121
+ * Log Safety: UNSAFE
4122
+ */
4123
+ export interface ObjectTypeDatasetDatasource {
4124
+ datasetRid: _Datasets.DatasetRid;
4125
+ branch?: DatasourceBranchId;
4126
+ propertyMapping: Record<PropertyApiName, PropertyTypeMappingInfo>;
4127
+ }
4128
+ /**
4129
+ * A datasource that supplies property values for an object type. Each object type can have one or more
4130
+ datasources; together they back all of the object type's properties. The definition carries the RID of the
4131
+ backing Foundry resource (for example, the dataset RID for a dataset-backed object type), enabling callers to
4132
+ navigate from an object type to its backing data.
4133
+ *
4134
+ * Log Safety: UNSAFE
4135
+ */
4136
+ export interface ObjectTypeDatasource {
4137
+ rid: DatasourceRid;
4138
+ definition: ObjectTypeDatasourceDefinition;
4139
+ }
4140
+ /**
4141
+ * The definition of an object type datasource, identifying the kind of Foundry resource that backs the object
4142
+ type.
4143
+ *
4144
+ * Log Safety: UNSAFE
4145
+ */
4146
+ export type ObjectTypeDatasourceDefinition = ({
4147
+ type: "timeSeries";
4148
+ } & ObjectTypeTimeSeriesDatasource) | ({
4149
+ type: "unsupported";
4150
+ } & ObjectTypeUnsupportedDatasource) | ({
4151
+ type: "restrictedView";
4152
+ } & ObjectTypeRestrictedViewDatasource) | ({
4153
+ type: "stream";
4154
+ } & ObjectTypeStreamDatasource) | ({
4155
+ type: "mediaSetView";
4156
+ } & ObjectTypeMediaSetViewDatasource) | ({
4157
+ type: "direct";
4158
+ } & ObjectTypeDirectDatasource) | ({
4159
+ type: "geotimeSeries";
4160
+ } & ObjectTypeGeotimeSeriesDatasource) | ({
4161
+ type: "editsOnly";
4162
+ } & ObjectTypeEditsOnlyDatasource) | ({
4163
+ type: "dataset";
4164
+ } & ObjectTypeDatasetDatasource) | ({
4165
+ type: "table";
4166
+ } & ObjectTypeTableDatasource);
4167
+ /**
4168
+ * An object type datasource backed by a direct-write source. Property values are written directly to the
4169
+ datasource rather than being read from a separate Foundry resource. Unlike an edits-only datasource, a direct
4170
+ datasource has a backing source that values are written to by some writer. An edits-only datasource has no
4171
+ backing source at all and its properties are populated solely via Actions.
4172
+ *
4173
+ * Log Safety: UNSAFE
4174
+ */
4175
+ export interface ObjectTypeDirectDatasource {
4176
+ directSourceRid: DirectSourceRid;
4177
+ propertyMapping: Record<PropertyApiName, PropertyTypeMappingInfo>;
4178
+ }
3951
4179
  /**
3952
4180
  * Log Safety: UNSAFE
3953
4181
  */
@@ -3980,6 +4208,17 @@ export interface ObjectTypeEditsHistoryResponse {
3980
4208
  totalCount?: number;
3981
4209
  nextPageToken?: string;
3982
4210
  }
4211
+ /**
4212
+ * An object type datasource that is not backed by any external Foundry resource. All properties on the object type
4213
+ can only be populated via Actions. Other datasources have edit only properties, which are permissioned to the
4214
+ backing tabular datasource. This datasource has no backing tabular datasource and is a true edit only object
4215
+ type. Note that this datasource type is incompatible with any other datasource and all the properties on the
4216
+ object type are backed by it.
4217
+ *
4218
+ * Log Safety: SAFE
4219
+ */
4220
+ export interface ObjectTypeEditsOnlyDatasource {
4221
+ }
3983
4222
  /**
3984
4223
  * Log Safety: UNSAFE
3985
4224
  */
@@ -3990,6 +4229,16 @@ export interface ObjectTypeFullMetadata {
3990
4229
  implementsInterfaces2: Record<InterfaceTypeApiName, ObjectTypeInterfaceImplementation>;
3991
4230
  sharedPropertyTypeMapping: Record<SharedPropertyTypeApiName, PropertyApiName>;
3992
4231
  }
4232
+ /**
4233
+ * An object type datasource backed by a Geotime series integration, providing values for Geotime series reference
4234
+ properties.
4235
+ *
4236
+ * Log Safety: UNSAFE
4237
+ */
4238
+ export interface ObjectTypeGeotimeSeriesDatasource {
4239
+ geotimeSeriesIntegrationRid: GeotimeSeriesIntegrationRid;
4240
+ properties: Array<PropertyApiName>;
4241
+ }
3993
4242
  /**
3994
4243
  * The unique identifier (ID) for an object type. This can be viewed in Ontology Manager.
3995
4244
  *
@@ -4016,12 +4265,72 @@ export interface ObjectTypeLinkTypeApiNameMapping {
4016
4265
  objectTypeApiName: ObjectTypeApiName;
4017
4266
  linkTypes: Array<LinkTypeApiName>;
4018
4267
  }
4268
+ /**
4269
+ * An object type datasource backed by a Foundry media set view, providing media for media reference properties.
4270
+ *
4271
+ * Log Safety: UNSAFE
4272
+ */
4273
+ export interface ObjectTypeMediaSetViewDatasource {
4274
+ mediaSetViewRid: _Core.MediaSetViewRid;
4275
+ properties: Array<PropertyApiName>;
4276
+ }
4277
+ /**
4278
+ * An object type datasource backed by a Foundry restricted view.
4279
+ *
4280
+ * Log Safety: UNSAFE
4281
+ */
4282
+ export interface ObjectTypeRestrictedViewDatasource {
4283
+ restrictedViewRid: RestrictedViewRid;
4284
+ propertyMapping: Record<PropertyApiName, PropertyTypeMappingInfo>;
4285
+ }
4019
4286
  /**
4020
4287
  * The unique resource identifier of an object type, useful for interacting with other Foundry APIs.
4021
4288
  *
4022
4289
  * Log Safety: SAFE
4023
4290
  */
4024
4291
  export type ObjectTypeRid = LooselyBrandedString<"ObjectTypeRid">;
4292
+ /**
4293
+ * An object type datasource backed by a Foundry stream.
4294
+ *
4295
+ * Log Safety: UNSAFE
4296
+ */
4297
+ export interface ObjectTypeStreamDatasource {
4298
+ streamRid: StreamRid;
4299
+ branch?: DatasourceBranchId;
4300
+ propertyMapping: Record<PropertyApiName, PropertyTypeMappingInfo>;
4301
+ }
4302
+ /**
4303
+ * An object type datasource backed by a Foundry table.
4304
+ *
4305
+ * Log Safety: UNSAFE
4306
+ */
4307
+ export interface ObjectTypeTableDatasource {
4308
+ tableRid: TableRid;
4309
+ branch?: DatasourceBranchId;
4310
+ propertyMapping: Record<PropertyApiName, PropertyTypeMappingInfo>;
4311
+ }
4312
+ /**
4313
+ * An object type datasource backed by a time series sync, providing values for time-dependent properties.
4314
+ *
4315
+ * Log Safety: UNSAFE
4316
+ */
4317
+ export interface ObjectTypeTimeSeriesDatasource {
4318
+ timeSeriesSyncRid: TimeseriesSyncRid;
4319
+ properties: Array<PropertyApiName>;
4320
+ }
4321
+ /**
4322
+ * A datasource of a kind not yet exposed in the public API. The unsupportedType discriminator supplies the
4323
+ underlying OMS variant so callers can recognize known but unmodelled cases (e.g., derived properties). Variants
4324
+ the adapter does not recognise at all are returned with an "unknown" discriminator. The properties list
4325
+ enumerates the property API names this datasource backs. The properties will be empty for "unknown"
4326
+ datasources.
4327
+ *
4328
+ * Log Safety: UNSAFE
4329
+ */
4330
+ export interface ObjectTypeUnsupportedDatasource {
4331
+ unsupportedType: string;
4332
+ properties: Array<PropertyApiName>;
4333
+ }
4025
4334
  /**
4026
4335
  * Represents an object type in the Ontology.
4027
4336
  *
@@ -4039,6 +4348,8 @@ export interface ObjectTypeV2 {
4039
4348
  rid: ObjectTypeRid;
4040
4349
  titleProperty: PropertyApiName;
4041
4350
  visibility?: ObjectTypeVisibility;
4351
+ aliases: Array<string>;
4352
+ datasources: Array<ObjectTypeDatasource>;
4042
4353
  }
4043
4354
  /**
4044
4355
  * The suggested visibility of the object type.
@@ -4778,6 +5089,20 @@ export interface PropertyTimestampFormattingRule {
4778
5089
  * Log Safety: UNSAFE
4779
5090
  */
4780
5091
  export type PropertyTypeApiName = LooselyBrandedString<"PropertyTypeApiName">;
5092
+ /**
5093
+ * Describes how a single object type property is bound to its backing tabular datasource. A property may be backed
5094
+ by a single column, by a struct (with nested field mappings), or be edit-only (no backing column even though it
5095
+ is permissioned to the tabular datasource).
5096
+ *
5097
+ * Log Safety: UNSAFE
5098
+ */
5099
+ export type PropertyTypeMappingInfo = ({
5100
+ type: "struct";
5101
+ } & StructPropertyMapping) | ({
5102
+ type: "column";
5103
+ } & ColumnPropertyMapping) | ({
5104
+ type: "editOnly";
5105
+ } & EditOnlyPropertyMapping);
4781
5106
  /**
4782
5107
  * Log Safety: UNSAFE
4783
5108
  */
@@ -5217,6 +5542,15 @@ export interface ReferenceUpdate {
5217
5542
  export type ReferenceValue = {
5218
5543
  type: "geotimeSeriesValue";
5219
5544
  } & GeotimeSeriesValue;
5545
+ /**
5546
+ * Indicates that the link types cannot be incrementally updated and must be refreshed.
5547
+ *
5548
+ * Log Safety: UNSAFE
5549
+ */
5550
+ export interface RefreshLinks {
5551
+ id: SubscriptionId;
5552
+ linkTypes: LinkTypeApiNames;
5553
+ }
5220
5554
  /**
5221
5555
  * The list of updated Foundry Objects cannot be provided. The object set must be refreshed using Object Set Service.
5222
5556
  *
@@ -5350,6 +5684,12 @@ export interface ResolvedInterfacePropertyType {
5350
5684
  valueFormatting?: PropertyValueFormattingRule;
5351
5685
  requireImplementation: boolean;
5352
5686
  }
5687
+ /**
5688
+ * The RID of a Foundry restricted view.
5689
+ *
5690
+ * Log Safety: SAFE
5691
+ */
5692
+ export type RestrictedViewRid = LooselyBrandedString<"RestrictedViewRid">;
5353
5693
  /**
5354
5694
  * If not specified, defaults to NONE.
5355
5695
  *
@@ -5580,10 +5920,21 @@ export interface SearchOrderBy {
5580
5920
  */
5581
5921
  export type SearchOrderByType = "fields" | "relevance";
5582
5922
  /**
5583
- * Specifies the ordering of search results by a field and an ordering direction or by relevance if scores are required in a nearestNeighbors query. By default orderType is set to fields.
5584
- *
5585
- * Log Safety: UNSAFE
5586
- */
5923
+ * Specifies the ordering of search results by a field and an ordering direction, or by relevance.
5924
+ If the fields array is provided, orderType is automatically set to fields.
5925
+ If this object is omitted entirely, the ordering is unspecified.
5926
+ Setting orderType to relevance requests that results are sorted by decreasing relevance score.
5927
+ For queries that include text search filters (e.g. containsAllTerms, containsAnyTerm,
5928
+ containsAllTermsInOrder, containsAllTermsInOrderPrefixLastTerm) or nearestNeighbors, the
5929
+ relevance score reflects how well each object matches the query. For other queries, the ordering
5930
+ is unspecified.
5931
+ When paging through results ordered by relevance, ordering is not guaranteed to be consistent
5932
+ across pages: an object may appear on multiple pages or be skipped entirely. Use a single page
5933
+ when result completeness is required.
5934
+ Relevance ordering can be expensive and should only be used when required.
5935
+ *
5936
+ * Log Safety: UNSAFE
5937
+ */
5587
5938
  export interface SearchOrderByV2 {
5588
5939
  orderType?: SearchOrderByType;
5589
5940
  fields: Array<SearchOrderingV2>;
@@ -5855,6 +6206,12 @@ export type StreamMessage = ({
5855
6206
  } & SubscriptionClosed) | ({
5856
6207
  type: "subscribeResponses";
5857
6208
  } & ObjectSetSubscribeResponses);
6209
+ /**
6210
+ * The RID of a Foundry stream.
6211
+ *
6212
+ * Log Safety: SAFE
6213
+ */
6214
+ export type StreamRid = LooselyBrandedString<"StreamRid">;
5858
6215
  /**
5859
6216
  * Log Safety: UNSAFE
5860
6217
  */
@@ -5987,6 +6344,14 @@ export interface StructFieldOfPropertyImplementation {
5987
6344
  propertyApiName: PropertyApiName;
5988
6345
  structFieldApiName: StructFieldApiName;
5989
6346
  }
6347
+ /**
6348
+ * A single struct field's mapping where apiName is the name of a struct field.
6349
+ *
6350
+ * Log Safety: UNSAFE
6351
+ */
6352
+ export interface StructFieldPropertyMapping {
6353
+ apiName: StructFieldApiName;
6354
+ }
5990
6355
  /**
5991
6356
  * A combination of a property identifier and the load level to apply to the property. You can select a reduced
5992
6357
  value for arrays and the main value for structs. If the provided load level cannot be applied to the property
@@ -6037,6 +6402,15 @@ export interface StructParameterFieldArgument {
6037
6402
  parameterId: ParameterId;
6038
6403
  structParameterFieldApiName: StructParameterFieldApiName;
6039
6404
  }
6405
+ /**
6406
+ * A mapping from the backing column struct field names to a struct property's fields.
6407
+ *
6408
+ * Log Safety: UNSAFE
6409
+ */
6410
+ export interface StructPropertyMapping {
6411
+ column: ColumnName;
6412
+ fields: Record<_Core.StructFieldName, StructFieldPropertyMapping>;
6413
+ }
6040
6414
  /**
6041
6415
  * Log Safety: UNSAFE
6042
6416
  */
@@ -6143,6 +6517,12 @@ export interface SyncApplyActionResponseV2 {
6143
6517
  export interface SynchronousWebhookOutputArgument {
6144
6518
  webhookOutputParamName: string;
6145
6519
  }
6520
+ /**
6521
+ * The RID of a Foundry table.
6522
+ *
6523
+ * Log Safety: SAFE
6524
+ */
6525
+ export type TableRid = LooselyBrandedString<"TableRid">;
6146
6526
  /**
6147
6527
  * Log Safety: UNSAFE
6148
6528
  */