@osdk/maker 0.16.0-beta.4 → 0.16.0-beta.6

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 (32) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/README.md +4 -1
  3. package/build/browser/api/defineFunction.js +61 -0
  4. package/build/browser/api/defineFunction.js.map +1 -0
  5. package/build/browser/api/object/ObjectTypeDatasourceDefinition.js.map +1 -1
  6. package/build/browser/api/test/objects.test.js +11 -2
  7. package/build/browser/api/test/objects.test.js.map +1 -1
  8. package/build/browser/cli/main.js +145 -2
  9. package/build/browser/cli/main.js.map +1 -1
  10. package/build/browser/conversion/toMarketplace/convertDatasourceDefinition.js +17 -6
  11. package/build/browser/conversion/toMarketplace/convertDatasourceDefinition.js.map +1 -1
  12. package/build/cjs/defineFunction-7ORD7HD4.cjs +72 -0
  13. package/build/cjs/defineFunction-7ORD7HD4.cjs.map +1 -0
  14. package/build/cjs/index.cjs +154 -8
  15. package/build/cjs/index.cjs.map +1 -1
  16. package/build/cjs/index.d.cts +10 -3
  17. package/build/esm/api/defineFunction.js +61 -0
  18. package/build/esm/api/defineFunction.js.map +1 -0
  19. package/build/esm/api/object/ObjectTypeDatasourceDefinition.js.map +1 -1
  20. package/build/esm/api/test/objects.test.js +11 -2
  21. package/build/esm/api/test/objects.test.js.map +1 -1
  22. package/build/esm/cli/main.js +145 -2
  23. package/build/esm/cli/main.js.map +1 -1
  24. package/build/esm/conversion/toMarketplace/convertDatasourceDefinition.js +17 -6
  25. package/build/esm/conversion/toMarketplace/convertDatasourceDefinition.js.map +1 -1
  26. package/build/types/api/defineFunction.d.ts +19 -0
  27. package/build/types/api/defineFunction.d.ts.map +1 -0
  28. package/build/types/api/object/ObjectTypeDatasourceDefinition.d.ts +10 -3
  29. package/build/types/api/object/ObjectTypeDatasourceDefinition.d.ts.map +1 -1
  30. package/build/types/cli/main.d.ts.map +1 -1
  31. package/build/types/conversion/toMarketplace/convertDatasourceDefinition.d.ts.map +1 -1
  32. package/package.json +7 -5
package/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # @osdk/maker
2
2
 
3
+ ## 0.16.0-beta.6
4
+
5
+ ### Minor Changes
6
+
7
+ - 963626f: Add function discovery support (TypeScript and Python) and generate intermediate OSDK from CLI for use by function definitions
8
+ - 972bda6: Support assumed markings for oac PSGs
9
+
10
+ ### Patch Changes
11
+
12
+ - @osdk/api@2.8.0-beta.10
13
+ - @osdk/generator-converters.ontologyir@2.8.0-beta.10
14
+
15
+ ## 0.16.0-beta.5
16
+
17
+ ### Minor Changes
18
+
19
+ - 034081a: oac direct datasources
20
+
21
+ ### Patch Changes
22
+
23
+ - @osdk/api@2.8.0-beta.7
24
+
3
25
  ## 0.16.0-beta.4
4
26
 
5
27
  ### Minor Changes
package/README.md CHANGED
@@ -521,9 +521,12 @@ const object = defineObject({
521
521
  },
522
522
  ],
523
523
  },
524
- additionalMandatoryMarkings: {
524
+ appliedMarkings: {
525
525
  "myCbacMarking": "CBAC",
526
526
  },
527
+ assumedMarkings: {
528
+ "myMandatoryMarking": "MANDATORY",
529
+ },
527
530
  },
528
531
  ],
529
532
  }],
@@ -0,0 +1,61 @@
1
+ /*
2
+ * Copyright 2025 Palantir Technologies, Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ import { OntologyIrToFullMetadataConverter } from "@osdk/generator-converters.ontologyir";
18
+ import { consola } from "consola";
19
+ import * as path from "node:path";
20
+
21
+ // Type definitions for optional function discovery dependencies
22
+
23
+ // Lazy-loaded function discovery module
24
+ let cachedFunctionDiscoverer = null;
25
+ async function loadFunctionDiscoverer() {
26
+ if (cachedFunctionDiscoverer != null) {
27
+ return cachedFunctionDiscoverer;
28
+ }
29
+ try {
30
+ const module = await import(/* @vite-ignore */"@foundry/functions-typescript-osdk-discovery");
31
+ cachedFunctionDiscoverer = module.FunctionDiscoverer;
32
+ return cachedFunctionDiscoverer;
33
+ } catch (e) {
34
+ consola.warn("Failed to load @foundry/functions-typescript-osdk-discovery:", e instanceof Error ? e.message : e);
35
+ return null;
36
+ }
37
+ }
38
+ function extractFunctionEntries(discoveredFunctions) {
39
+ return discoveredFunctions.map(fn => {
40
+ if (fn.locator.type !== "typescriptOsdk") {
41
+ throw new Error(`OAC functions must be TypeScript, got type: ${fn.locator.type}`);
42
+ }
43
+ const locator = fn.locator;
44
+ return [locator.typescriptOsdk.functionName, fn];
45
+ });
46
+ }
47
+ export async function generateFunctionsIr(rootDir, configPath, entityMappings) {
48
+ const functionsDiscoverer = await loadFunctionDiscoverer();
49
+ if (!functionsDiscoverer) {
50
+ throw new Error("Function discovery requires @foundry/functions-typescript-osdk-discovery to be installed");
51
+ }
52
+ const tsConfigPath = configPath ?? path.join(rootDir, "tsconfig.json");
53
+ const program = OntologyIrToFullMetadataConverter.createProgram(tsConfigPath, rootDir);
54
+ const functionsDir = path.join(rootDir, "functions");
55
+ const fd = new functionsDiscoverer(program, rootDir, functionsDir, entityMappings);
56
+ const functions = fd.discover();
57
+ return {
58
+ functionsBlockDataV1: Object.fromEntries(extractFunctionEntries(functions.discoveredFunctions))
59
+ };
60
+ }
61
+ //# sourceMappingURL=defineFunction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"defineFunction.js","names":["OntologyIrToFullMetadataConverter","consola","path","cachedFunctionDiscoverer","loadFunctionDiscoverer","module","FunctionDiscoverer","e","warn","Error","message","extractFunctionEntries","discoveredFunctions","map","fn","locator","type","typescriptOsdk","functionName","generateFunctionsIr","rootDir","configPath","entityMappings","functionsDiscoverer","tsConfigPath","join","program","createProgram","functionsDir","fd","functions","discover","functionsBlockDataV1","Object","fromEntries"],"sources":["defineFunction.ts"],"sourcesContent":["/*\n * Copyright 2025 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 */\n\nimport { OntologyIrToFullMetadataConverter } from \"@osdk/generator-converters.ontologyir\";\nimport { consola } from \"consola\";\nimport * as path from \"node:path\";\nimport type * as ts from \"typescript\";\n\nexport interface FunctionIrBlockData {\n functionsBlockDataV1: Record<string, unknown>;\n}\n\n// Type definitions for optional function discovery dependencies\ntype IFunctionDiscoverer = new(\n program: ts.Program,\n entryPointPath: string,\n fullFilePath: string,\n entityMappings?: IEntityMetadataMapping,\n) => {\n discover(): {\n discoveredFunctions: IDiscoveredFunction[];\n diagnostics?: unknown;\n };\n};\n\ninterface IDiscoveredFunction {\n locator:\n | { type: \"typescriptOsdk\"; typescriptOsdk: { functionName: string } }\n | { type: string };\n [key: string]: unknown;\n}\n\nexport interface IEntityMetadataMapping {\n ontologies: Record<\n string,\n {\n objectTypes: Record<\n string,\n {\n objectTypeId: string;\n primaryKey: { propertyId: string };\n propertyTypes: Record<string, { propertyId: string }>;\n linkTypes: Record<string, unknown>;\n }\n >;\n interfaceTypes: Record<string, unknown>;\n }\n >;\n}\n\n// Lazy-loaded function discovery module\nlet cachedFunctionDiscoverer: IFunctionDiscoverer | null = null;\n\nasync function loadFunctionDiscoverer(): Promise<IFunctionDiscoverer | null> {\n if (cachedFunctionDiscoverer != null) {\n return cachedFunctionDiscoverer;\n }\n try {\n const modulePath = \"@foundry/functions-typescript-osdk-discovery\";\n const module = await import(/* @vite-ignore */ modulePath);\n cachedFunctionDiscoverer = module.FunctionDiscoverer;\n return cachedFunctionDiscoverer;\n } catch (e: unknown) {\n consola.warn(\n \"Failed to load @foundry/functions-typescript-osdk-discovery:\",\n e instanceof Error ? e.message : e,\n );\n return null;\n }\n}\n\nfunction extractFunctionEntries(\n discoveredFunctions: IDiscoveredFunction[],\n): Array<[string, IDiscoveredFunction]> {\n return discoveredFunctions.map((fn: IDiscoveredFunction) => {\n if (fn.locator.type !== \"typescriptOsdk\") {\n throw new Error(\n `OAC functions must be TypeScript, got type: ${fn.locator.type}`,\n );\n }\n const locator = fn.locator as {\n typescriptOsdk: { functionName: string };\n };\n return [locator.typescriptOsdk.functionName, fn];\n });\n}\n\nexport async function generateFunctionsIr(\n rootDir: string,\n configPath?: string,\n entityMappings?: IEntityMetadataMapping,\n): Promise<FunctionIrBlockData> {\n const functionsDiscoverer = await loadFunctionDiscoverer();\n if (!functionsDiscoverer) {\n throw new Error(\n \"Function discovery requires @foundry/functions-typescript-osdk-discovery to be installed\",\n );\n }\n\n const tsConfigPath = configPath ?? path.join(rootDir, \"tsconfig.json\");\n const program = OntologyIrToFullMetadataConverter.createProgram(\n tsConfigPath,\n rootDir,\n );\n const functionsDir = path.join(rootDir, \"functions\");\n const fd = new functionsDiscoverer(\n program,\n rootDir,\n functionsDir,\n entityMappings,\n );\n const functions = fd.discover();\n\n return {\n functionsBlockDataV1: Object.fromEntries(\n extractFunctionEntries(functions.discoveredFunctions),\n ),\n };\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,iCAAiC,QAAQ,uCAAuC;AACzF,SAASC,OAAO,QAAQ,SAAS;AACjC,OAAO,KAAKC,IAAI,MAAM,WAAW;;AAOjC;;AAsCA;AACA,IAAIC,wBAAoD,GAAG,IAAI;AAE/D,eAAeC,sBAAsBA,CAAA,EAAwC;EAC3E,IAAID,wBAAwB,IAAI,IAAI,EAAE;IACpC,OAAOA,wBAAwB;EACjC;EACA,IAAI;IAEF,MAAME,MAAM,GAAG,MAAM,MAAM,CAAC,kBADT,8CACsC,CAAC;IAC1DF,wBAAwB,GAAGE,MAAM,CAACC,kBAAkB;IACpD,OAAOH,wBAAwB;EACjC,CAAC,CAAC,OAAOI,CAAU,EAAE;IACnBN,OAAO,CAACO,IAAI,CACV,8DAA8D,EAC9DD,CAAC,YAAYE,KAAK,GAAGF,CAAC,CAACG,OAAO,GAAGH,CACnC,CAAC;IACD,OAAO,IAAI;EACb;AACF;AAEA,SAASI,sBAAsBA,CAC7BC,mBAA0C,EACJ;EACtC,OAAOA,mBAAmB,CAACC,GAAG,CAAEC,EAAuB,IAAK;IAC1D,IAAIA,EAAE,CAACC,OAAO,CAACC,IAAI,KAAK,gBAAgB,EAAE;MACxC,MAAM,IAAIP,KAAK,CACb,+CAA+CK,EAAE,CAACC,OAAO,CAACC,IAAI,EAChE,CAAC;IACH;IACA,MAAMD,OAAO,GAAGD,EAAE,CAACC,OAElB;IACD,OAAO,CAACA,OAAO,CAACE,cAAc,CAACC,YAAY,EAAEJ,EAAE,CAAC;EAClD,CAAC,CAAC;AACJ;AAEA,OAAO,eAAeK,mBAAmBA,CACvCC,OAAe,EACfC,UAAmB,EACnBC,cAAuC,EACT;EAC9B,MAAMC,mBAAmB,GAAG,MAAMnB,sBAAsB,CAAC,CAAC;EAC1D,IAAI,CAACmB,mBAAmB,EAAE;IACxB,MAAM,IAAId,KAAK,CACb,0FACF,CAAC;EACH;EAEA,MAAMe,YAAY,GAAGH,UAAU,IAAInB,IAAI,CAACuB,IAAI,CAACL,OAAO,EAAE,eAAe,CAAC;EACtE,MAAMM,OAAO,GAAG1B,iCAAiC,CAAC2B,aAAa,CAC7DH,YAAY,EACZJ,OACF,CAAC;EACD,MAAMQ,YAAY,GAAG1B,IAAI,CAACuB,IAAI,CAACL,OAAO,EAAE,WAAW,CAAC;EACpD,MAAMS,EAAE,GAAG,IAAIN,mBAAmB,CAChCG,OAAO,EACPN,OAAO,EACPQ,YAAY,EACZN,cACF,CAAC;EACD,MAAMQ,SAAS,GAAGD,EAAE,CAACE,QAAQ,CAAC,CAAC;EAE/B,OAAO;IACLC,oBAAoB,EAAEC,MAAM,CAACC,WAAW,CACtCvB,sBAAsB,CAACmB,SAAS,CAAClB,mBAAmB,CACtD;EACF,CAAC;AACH","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"ObjectTypeDatasourceDefinition.js","names":[],"sources":["ObjectTypeDatasourceDefinition.ts"],"sourcesContent":["/*\n * Copyright 2025 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 */\n\nimport type {\n DerivedPropertyLinkTypeSide,\n MarkingType,\n ObjectTypeFieldApiName,\n} from \"@osdk/client.unstable\";\nimport type { LinkType } from \"../links/LinkType.js\";\nimport type { SecurityConditionDefinition } from \"./SecurityCondition.js\";\n\nexport type ObjectTypeDatasourceDefinition =\n | ObjectTypeDatasourceDefinition_stream\n | ObjectTypeDatasourceDefinition_dataset\n | ObjectTypeDatasourceDefinition_restrictedView\n | ObjectTypeDatasourceDefinition_derived;\n\nexport interface ObjectTypeDatasourceDefinition_dataset {\n type: \"dataset\";\n objectSecurityPolicy?: ObjectSecurityPolicy;\n propertySecurityGroups?: Array<PropertySecurityGroup>;\n}\n\nexport interface ObjectSecurityPolicy {\n name: string;\n granularPolicy?: SecurityConditionDefinition;\n additionalMandatoryMarkings?: Record<string, MarkingType>;\n}\n\nexport interface PropertySecurityGroup {\n name: string;\n properties: Array<string>;\n granularPolicy?: SecurityConditionDefinition;\n additionalMandatoryMarkings?: Record<string, MarkingType>;\n}\n\nexport interface ObjectTypeDatasourceDefinition_stream {\n type: \"stream\";\n // Retention period must be in ISO 8601 duration format\n retentionPeriod?: string;\n}\n\nexport interface ObjectTypeDatasourceDefinition_restrictedView {\n type: \"restrictedView\";\n}\n\nexport interface ObjectTypeDatasourceDefinition_derived {\n type: \"derived\";\n linkDefinition: Array<DerivedPropertiesLinkDefinition>;\n // property->property is linkedProperties, property->aggregation is aggregatedProperties\n propertyMapping:\n | Record<ObjectTypeFieldApiName, ObjectTypeFieldApiName>\n | Record<ObjectTypeFieldApiName, DerivedPropertyAggregation>;\n}\nexport interface DerivedPropertiesLinkDefinition {\n linkType: LinkType;\n side?: DerivedPropertyLinkTypeSide;\n}\n\n// if the property is null on the object, it is ignored in aggregations\nexport type DerivedPropertyAggregation =\n | { type: \"count\" } // total count of objects\n | { type: \"avg\"; property: ObjectTypeFieldApiName }\n | { type: \"sum\"; property: ObjectTypeFieldApiName }\n | { type: \"min\"; property: ObjectTypeFieldApiName }\n | { type: \"max\"; property: ObjectTypeFieldApiName }\n | { type: \"approximateCardinality\"; property: ObjectTypeFieldApiName }\n | { type: \"exactCardinality\"; property: ObjectTypeFieldApiName }\n | { type: \"collectList\"; property: ObjectTypeFieldApiName; limit: number } // max limit is 100\n | { type: \"collectSet\"; property: ObjectTypeFieldApiName; limit: number }; // max limit is 100\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"file":"ObjectTypeDatasourceDefinition.js","names":[],"sources":["ObjectTypeDatasourceDefinition.ts"],"sourcesContent":["/*\n * Copyright 2025 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 */\n\nimport type {\n DerivedPropertyLinkTypeSide,\n MarkingType,\n ObjectTypeFieldApiName,\n} from \"@osdk/client.unstable\";\nimport type { LinkType } from \"../links/LinkType.js\";\nimport type { SecurityConditionDefinition } from \"./SecurityCondition.js\";\n\nexport type ObjectTypeDatasourceDefinition =\n | ObjectTypeDatasourceDefinition_stream\n | ObjectTypeDatasourceDefinition_dataset\n | ObjectTypeDatasourceDefinition_restrictedView\n | ObjectTypeDatasourceDefinition_derived\n | ObjectTypeDatasourceDefinition_direct;\n\nexport interface ObjectTypeDatasourceDefinition_dataset {\n type: \"dataset\";\n objectSecurityPolicy?: ObjectSecurityPolicy;\n propertySecurityGroups?: Array<PropertySecurityGroup>;\n}\n\nexport interface ObjectSecurityPolicy {\n name: string;\n granularPolicy?: SecurityConditionDefinition;\n appliedMarkings?: Record<string, MarkingType>;\n assumedMarkings?: Record<string, MarkingType>;\n}\n\nexport interface PropertySecurityGroup {\n name: string;\n properties: Array<string>;\n granularPolicy?: SecurityConditionDefinition;\n appliedMarkings?: Record<string, MarkingType>;\n assumedMarkings?: Record<string, MarkingType>;\n}\n\nexport interface ObjectTypeDatasourceDefinition_stream {\n type: \"stream\";\n // Retention period must be in ISO 8601 duration format\n retentionPeriod?: string;\n}\n\nexport interface ObjectTypeDatasourceDefinition_restrictedView {\n type: \"restrictedView\";\n}\n\nexport interface ObjectTypeDatasourceDefinition_derived {\n type: \"derived\";\n linkDefinition: Array<DerivedPropertiesLinkDefinition>;\n // property->property is linkedProperties, property->aggregation is aggregatedProperties\n propertyMapping:\n | Record<ObjectTypeFieldApiName, ObjectTypeFieldApiName>\n | Record<ObjectTypeFieldApiName, DerivedPropertyAggregation>;\n}\nexport interface DerivedPropertiesLinkDefinition {\n linkType: LinkType;\n side?: DerivedPropertyLinkTypeSide;\n}\n\n// if the property is null on the object, it is ignored in aggregations\nexport type DerivedPropertyAggregation =\n | { type: \"count\" } // total count of objects\n | { type: \"avg\"; property: ObjectTypeFieldApiName }\n | { type: \"sum\"; property: ObjectTypeFieldApiName }\n | { type: \"min\"; property: ObjectTypeFieldApiName }\n | { type: \"max\"; property: ObjectTypeFieldApiName }\n | { type: \"approximateCardinality\"; property: ObjectTypeFieldApiName }\n | { type: \"exactCardinality\"; property: ObjectTypeFieldApiName }\n | { type: \"collectList\"; property: ObjectTypeFieldApiName; limit: number } // max limit is 100\n | { type: \"collectSet\"; property: ObjectTypeFieldApiName; limit: number }; // max limit is 100\n\nexport interface ObjectTypeDatasourceDefinition_direct {\n type: \"direct\";\n objectSecurityPolicy?: ObjectSecurityPolicy;\n propertySecurityGroups?: Array<PropertySecurityGroup>;\n}\n"],"mappings":"","ignoreList":[]}
@@ -3180,6 +3180,7 @@ describe("Object Types", () => {
3180
3180
  "viewPolicy": {
3181
3181
  "additionalMandatory": {
3182
3182
  "assumedMarkings": [],
3183
+ "assumedMarkingsV2": {},
3183
3184
  "markings": {},
3184
3185
  },
3185
3186
  "granularPolicyCondition": {
@@ -3207,6 +3208,7 @@ describe("Object Types", () => {
3207
3208
  "viewPolicy": {
3208
3209
  "additionalMandatory": {
3209
3210
  "assumedMarkings": [],
3211
+ "assumedMarkingsV2": {},
3210
3212
  "markings": {},
3211
3213
  },
3212
3214
  "granularPolicyCondition": {
@@ -3445,7 +3447,7 @@ describe("Object Types", () => {
3445
3447
  type: "group",
3446
3448
  name: "objectLevelGroup"
3447
3449
  },
3448
- additionalMandatoryMarkings: {
3450
+ appliedMarkings: {
3449
3451
  "objectLevelMarking": "CBAC"
3450
3452
  }
3451
3453
  },
@@ -3462,8 +3464,11 @@ describe("Object Types", () => {
3462
3464
  property: "mandatory"
3463
3465
  }]
3464
3466
  },
3465
- additionalMandatoryMarkings: {
3467
+ appliedMarkings: {
3466
3468
  "propertyLevelMarking": "MANDATORY"
3469
+ },
3470
+ assumedMarkings: {
3471
+ "propertyLevelAssumedMarking": "MANDATORY"
3467
3472
  }
3468
3473
  }]
3469
3474
  }]
@@ -3540,6 +3545,7 @@ describe("Object Types", () => {
3540
3545
  "viewPolicy": {
3541
3546
  "additionalMandatory": {
3542
3547
  "assumedMarkings": [],
3548
+ "assumedMarkingsV2": {},
3543
3549
  "markings": {
3544
3550
  "objectLevelMarking": "CBAC",
3545
3551
  },
@@ -3585,6 +3591,9 @@ describe("Object Types", () => {
3585
3591
  "viewPolicy": {
3586
3592
  "additionalMandatory": {
3587
3593
  "assumedMarkings": [],
3594
+ "assumedMarkingsV2": {
3595
+ "propertyLevelAssumedMarking": "MANDATORY",
3596
+ },
3588
3597
  "markings": {
3589
3598
  "propertyLevelMarking": "MANDATORY",
3590
3599
  },