sf-plugin-data 0.0.0-stage → 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 (256) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +589 -2
  3. package/bin/run.js +4 -0
  4. package/docs/artifact-format.md +527 -0
  5. package/docs/capabilities.md +1208 -0
  6. package/docs/git-workflow.md +160 -0
  7. package/docs/handover.md +10446 -0
  8. package/lib/api.d.ts +7 -0
  9. package/lib/api.js +7 -0
  10. package/lib/artifacts/code-fields.d.ts +49 -0
  11. package/lib/artifacts/code-fields.js +142 -0
  12. package/lib/artifacts/data-graph-document.d.ts +29 -0
  13. package/lib/artifacts/data-graph-document.js +52 -0
  14. package/lib/artifacts/data-space-field.d.ts +65 -0
  15. package/lib/artifacts/data-space-field.js +98 -0
  16. package/lib/artifacts/data-stream-document.d.ts +264 -0
  17. package/lib/artifacts/data-stream-document.js +680 -0
  18. package/lib/artifacts/data-transform-document.d.ts +152 -0
  19. package/lib/artifacts/data-transform-document.js +560 -0
  20. package/lib/artifacts/dependency-selection.d.ts +51 -0
  21. package/lib/artifacts/dependency-selection.js +154 -0
  22. package/lib/artifacts/dlo-document.d.ts +93 -0
  23. package/lib/artifacts/dlo-document.js +253 -0
  24. package/lib/artifacts/enum-case.d.ts +39 -0
  25. package/lib/artifacts/enum-case.js +67 -0
  26. package/lib/artifacts/git-deploy-selection.d.ts +68 -0
  27. package/lib/artifacts/git-deploy-selection.js +474 -0
  28. package/lib/artifacts/identity-resolution-document.d.ts +133 -0
  29. package/lib/artifacts/identity-resolution-document.js +625 -0
  30. package/lib/artifacts/mapping-document.d.ts +1 -0
  31. package/lib/artifacts/mapping-document.js +1 -0
  32. package/lib/artifacts/native-calculated-insight-document.d.ts +142 -0
  33. package/lib/artifacts/native-calculated-insight-document.js +321 -0
  34. package/lib/artifacts/native-data-graph-document.d.ts +124 -0
  35. package/lib/artifacts/native-data-graph-document.js +780 -0
  36. package/lib/artifacts/native-dmo-document.d.ts +151 -0
  37. package/lib/artifacts/native-dmo-document.js +313 -0
  38. package/lib/artifacts/native-mapping-document.d.ts +67 -0
  39. package/lib/artifacts/native-mapping-document.js +187 -0
  40. package/lib/artifacts/native-relationship-document.d.ts +76 -0
  41. package/lib/artifacts/native-relationship-document.js +232 -0
  42. package/lib/artifacts/path-selector.d.ts +55 -0
  43. package/lib/artifacts/path-selector.js +167 -0
  44. package/lib/artifacts/read-deploy-input.d.ts +239 -0
  45. package/lib/artifacts/read-deploy-input.js +1359 -0
  46. package/lib/artifacts/segment-document.d.ts +183 -0
  47. package/lib/artifacts/segment-document.js +570 -0
  48. package/lib/artifacts/verbatim-document.d.ts +203 -0
  49. package/lib/artifacts/verbatim-document.js +339 -0
  50. package/lib/artifacts/write-data-graph.d.ts +17 -0
  51. package/lib/artifacts/write-data-graph.js +162 -0
  52. package/lib/artifacts/write-data-stream.d.ts +11 -0
  53. package/lib/artifacts/write-data-stream.js +175 -0
  54. package/lib/artifacts/write-data-transform.d.ts +11 -0
  55. package/lib/artifacts/write-data-transform.js +180 -0
  56. package/lib/artifacts/write-dlo.d.ts +11 -0
  57. package/lib/artifacts/write-dlo.js +158 -0
  58. package/lib/artifacts/write-identity-resolution.d.ts +18 -0
  59. package/lib/artifacts/write-identity-resolution.js +165 -0
  60. package/lib/artifacts/write-mapping-definition.d.ts +17 -0
  61. package/lib/artifacts/write-mapping-definition.js +127 -0
  62. package/lib/artifacts/write-member-export.d.ts +88 -0
  63. package/lib/artifacts/write-member-export.js +199 -0
  64. package/lib/artifacts/write-native-calculated-insight.d.ts +21 -0
  65. package/lib/artifacts/write-native-calculated-insight.js +176 -0
  66. package/lib/artifacts/write-native-dmo.d.ts +11 -0
  67. package/lib/artifacts/write-native-dmo.js +158 -0
  68. package/lib/artifacts/write-native-mapping.d.ts +11 -0
  69. package/lib/artifacts/write-native-mapping.js +157 -0
  70. package/lib/artifacts/write-native-relationship.d.ts +11 -0
  71. package/lib/artifacts/write-native-relationship.js +157 -0
  72. package/lib/artifacts/write-segment.d.ts +26 -0
  73. package/lib/artifacts/write-segment.js +212 -0
  74. package/lib/commands/data360/delete.d.ts +280 -0
  75. package/lib/commands/data360/delete.js +2297 -0
  76. package/lib/commands/data360/deploy.d.ts +303 -0
  77. package/lib/commands/data360/deploy.js +2400 -0
  78. package/lib/commands/data360/publish.d.ts +93 -0
  79. package/lib/commands/data360/publish.js +292 -0
  80. package/lib/commands/data360/retrieve.d.ts +322 -0
  81. package/lib/commands/data360/retrieve.js +1963 -0
  82. package/lib/commands/data360/segment/members/export.d.ts +101 -0
  83. package/lib/commands/data360/segment/members/export.js +318 -0
  84. package/lib/errors/codes/calculated-insight.d.ts +2 -0
  85. package/lib/errors/codes/calculated-insight.js +25 -0
  86. package/lib/errors/codes/data-graph.d.ts +2 -0
  87. package/lib/errors/codes/data-graph.js +22 -0
  88. package/lib/errors/codes/data-stream.d.ts +2 -0
  89. package/lib/errors/codes/data-stream.js +70 -0
  90. package/lib/errors/codes/data-transform.d.ts +2 -0
  91. package/lib/errors/codes/data-transform.js +35 -0
  92. package/lib/errors/codes/dependency.d.ts +2 -0
  93. package/lib/errors/codes/dependency.js +11 -0
  94. package/lib/errors/codes/dlo.d.ts +2 -0
  95. package/lib/errors/codes/dlo.js +31 -0
  96. package/lib/errors/codes/dmo.d.ts +2 -0
  97. package/lib/errors/codes/dmo.js +28 -0
  98. package/lib/errors/codes/general.d.ts +2 -0
  99. package/lib/errors/codes/general.js +57 -0
  100. package/lib/errors/codes/identity-resolution.d.ts +2 -0
  101. package/lib/errors/codes/identity-resolution.js +24 -0
  102. package/lib/errors/codes/mapping.d.ts +2 -0
  103. package/lib/errors/codes/mapping.js +42 -0
  104. package/lib/errors/codes/relationship.d.ts +2 -0
  105. package/lib/errors/codes/relationship.js +21 -0
  106. package/lib/errors/codes/segment.d.ts +2 -0
  107. package/lib/errors/codes/segment.js +49 -0
  108. package/lib/errors/registry.d.ts +60 -0
  109. package/lib/errors/registry.js +123 -0
  110. package/lib/plugin.d.ts +5 -0
  111. package/lib/plugin.js +5 -0
  112. package/lib/services/acquire-retrieve-selection.d.ts +43 -0
  113. package/lib/services/acquire-retrieve-selection.js +145 -0
  114. package/lib/services/bind-identity-resolution-dependencies.d.ts +53 -0
  115. package/lib/services/bind-identity-resolution-dependencies.js +238 -0
  116. package/lib/services/bind-segment-dependencies.d.ts +49 -0
  117. package/lib/services/bind-segment-dependencies.js +115 -0
  118. package/lib/services/bounded-reads.d.ts +17 -0
  119. package/lib/services/bounded-reads.js +42 -0
  120. package/lib/services/calculated-insight-sql-checks.d.ts +33 -0
  121. package/lib/services/calculated-insight-sql-checks.js +193 -0
  122. package/lib/services/command-dlo.d.ts +48 -0
  123. package/lib/services/command-dlo.js +103 -0
  124. package/lib/services/command-native-data-graph.d.ts +54 -0
  125. package/lib/services/command-native-data-graph.js +485 -0
  126. package/lib/services/command-native-data-stream.d.ts +104 -0
  127. package/lib/services/command-native-data-stream.js +257 -0
  128. package/lib/services/command-native-dmo.d.ts +124 -0
  129. package/lib/services/command-native-dmo.js +338 -0
  130. package/lib/services/command-native-mapping.d.ts +65 -0
  131. package/lib/services/command-native-mapping.js +129 -0
  132. package/lib/services/command-native-relationship.d.ts +46 -0
  133. package/lib/services/command-native-relationship.js +103 -0
  134. package/lib/services/cross-dataspace-deploy.d.ts +111 -0
  135. package/lib/services/cross-dataspace-deploy.js +493 -0
  136. package/lib/services/cross-dataspace-rename.d.ts +74 -0
  137. package/lib/services/cross-dataspace-rename.js +1314 -0
  138. package/lib/services/cross-dataspace-sql.d.ts +109 -0
  139. package/lib/services/cross-dataspace-sql.js +1301 -0
  140. package/lib/services/cross-space-context.d.ts +23 -0
  141. package/lib/services/cross-space-context.js +36 -0
  142. package/lib/services/crud-plan.d.ts +137 -0
  143. package/lib/services/crud-plan.js +408 -0
  144. package/lib/services/data-space-check.d.ts +89 -0
  145. package/lib/services/data-space-check.js +162 -0
  146. package/lib/services/data-space-prefix.d.ts +77 -0
  147. package/lib/services/data-space-prefix.js +127 -0
  148. package/lib/services/data-transform-space.d.ts +31 -0
  149. package/lib/services/data-transform-space.js +79 -0
  150. package/lib/services/delete-calculated-insight.d.ts +44 -0
  151. package/lib/services/delete-calculated-insight.js +101 -0
  152. package/lib/services/delete-data-transform.d.ts +52 -0
  153. package/lib/services/delete-data-transform.js +222 -0
  154. package/lib/services/delete-dmo-field.d.ts +211 -0
  155. package/lib/services/delete-dmo-field.js +472 -0
  156. package/lib/services/delete-identity-resolution.d.ts +43 -0
  157. package/lib/services/delete-identity-resolution.js +295 -0
  158. package/lib/services/delete-segment.d.ts +42 -0
  159. package/lib/services/delete-segment.js +248 -0
  160. package/lib/services/deploy-result.d.ts +54 -0
  161. package/lib/services/deploy-result.js +60 -0
  162. package/lib/services/escaped-copy.d.ts +23 -0
  163. package/lib/services/escaped-copy.js +88 -0
  164. package/lib/services/execute-calculated-insight-deploy.d.ts +42 -0
  165. package/lib/services/execute-calculated-insight-deploy.js +96 -0
  166. package/lib/services/execute-data-transform-deploy.d.ts +56 -0
  167. package/lib/services/execute-data-transform-deploy.js +168 -0
  168. package/lib/services/execute-native-identity-resolution-deploy.d.ts +48 -0
  169. package/lib/services/execute-native-identity-resolution-deploy.js +360 -0
  170. package/lib/services/execute-segment-deploy.d.ts +45 -0
  171. package/lib/services/execute-segment-deploy.js +393 -0
  172. package/lib/services/local-file-removal.d.ts +36 -0
  173. package/lib/services/local-file-removal.js +103 -0
  174. package/lib/services/native-calculated-insight.d.ts +87 -0
  175. package/lib/services/native-calculated-insight.js +164 -0
  176. package/lib/services/native-crm-data-stream.d.ts +91 -0
  177. package/lib/services/native-crm-data-stream.js +272 -0
  178. package/lib/services/native-data-graph-context.d.ts +12 -0
  179. package/lib/services/native-data-graph-context.js +139 -0
  180. package/lib/services/native-data-graph-crd.d.ts +261 -0
  181. package/lib/services/native-data-graph-crd.js +866 -0
  182. package/lib/services/native-data-stream.d.ts +329 -0
  183. package/lib/services/native-data-stream.js +1830 -0
  184. package/lib/services/native-dlo.d.ts +163 -0
  185. package/lib/services/native-dlo.js +402 -0
  186. package/lib/services/native-dmo.d.ts +191 -0
  187. package/lib/services/native-dmo.js +614 -0
  188. package/lib/services/native-mapping.d.ts +255 -0
  189. package/lib/services/native-mapping.js +1226 -0
  190. package/lib/services/native-relationship.d.ts +132 -0
  191. package/lib/services/native-relationship.js +512 -0
  192. package/lib/services/operation-diagnostic.d.ts +83 -0
  193. package/lib/services/operation-diagnostic.js +272 -0
  194. package/lib/services/preflight-calculated-insight-deploy.d.ts +58 -0
  195. package/lib/services/preflight-calculated-insight-deploy.js +95 -0
  196. package/lib/services/preflight-data-transform-deploy.d.ts +33 -0
  197. package/lib/services/preflight-data-transform-deploy.js +104 -0
  198. package/lib/services/preflight-identity-resolution-deploy.d.ts +107 -0
  199. package/lib/services/preflight-identity-resolution-deploy.js +281 -0
  200. package/lib/services/preflight-segment-deploy.d.ts +31 -0
  201. package/lib/services/preflight-segment-deploy.js +109 -0
  202. package/lib/services/publish-calculated-insight.d.ts +40 -0
  203. package/lib/services/publish-calculated-insight.js +95 -0
  204. package/lib/services/publish-segment.d.ts +65 -0
  205. package/lib/services/publish-segment.js +194 -0
  206. package/lib/services/readback-pace.d.ts +16 -0
  207. package/lib/services/readback-pace.js +23 -0
  208. package/lib/services/retrieve-data-transform.d.ts +26 -0
  209. package/lib/services/retrieve-data-transform.js +65 -0
  210. package/lib/services/retrieve-identity-resolution.d.ts +40 -0
  211. package/lib/services/retrieve-identity-resolution.js +87 -0
  212. package/lib/services/retrieve-inventory.d.ts +32 -0
  213. package/lib/services/retrieve-inventory.js +151 -0
  214. package/lib/services/retrieve-segment.d.ts +120 -0
  215. package/lib/services/retrieve-segment.js +502 -0
  216. package/lib/services/segment-lookup.d.ts +46 -0
  217. package/lib/services/segment-lookup.js +108 -0
  218. package/lib/services/segment-members.d.ts +144 -0
  219. package/lib/services/segment-members.js +402 -0
  220. package/lib/services/select-native-retrieve.d.ts +60 -0
  221. package/lib/services/select-native-retrieve.js +226 -0
  222. package/lib/services/settle-calculated-insight.d.ts +22 -0
  223. package/lib/services/settle-calculated-insight.js +53 -0
  224. package/lib/services/sql-tokens.d.ts +58 -0
  225. package/lib/services/sql-tokens.js +147 -0
  226. package/lib/transport/api-version.d.ts +36 -0
  227. package/lib/transport/api-version.js +89 -0
  228. package/lib/transport/bound-ssot.d.ts +27 -0
  229. package/lib/transport/bound-ssot.js +116 -0
  230. package/lib/transport/calculated-insight-rest.d.ts +28 -0
  231. package/lib/transport/calculated-insight-rest.js +62 -0
  232. package/lib/transport/connect-client.d.ts +129 -0
  233. package/lib/transport/connect-client.js +446 -0
  234. package/lib/transport/connect-diagnostic.d.ts +89 -0
  235. package/lib/transport/connect-diagnostic.js +331 -0
  236. package/lib/transport/data-graph-rest.d.ts +27 -0
  237. package/lib/transport/data-graph-rest.js +76 -0
  238. package/lib/transport/data-stream-rest.d.ts +62 -0
  239. package/lib/transport/data-stream-rest.js +348 -0
  240. package/lib/transport/data-transform-rest.d.ts +25 -0
  241. package/lib/transport/data-transform-rest.js +100 -0
  242. package/lib/transport/dlo-native-rest.d.ts +22 -0
  243. package/lib/transport/dlo-native-rest.js +89 -0
  244. package/lib/transport/dlo-rest.d.ts +23 -0
  245. package/lib/transport/dlo-rest.js +135 -0
  246. package/lib/transport/dmo-native-rest.d.ts +18 -0
  247. package/lib/transport/dmo-native-rest.js +55 -0
  248. package/lib/transport/dmo-rest.d.ts +30 -0
  249. package/lib/transport/dmo-rest.js +163 -0
  250. package/lib/transport/mapping-rest.d.ts +63 -0
  251. package/lib/transport/mapping-rest.js +341 -0
  252. package/lib/transport/project-metadata.d.ts +36 -0
  253. package/lib/transport/project-metadata.js +118 -0
  254. package/lib/transport/relationship-rest.d.ts +43 -0
  255. package/lib/transport/relationship-rest.js +201 -0
  256. package/package.json +96 -4
@@ -0,0 +1,303 @@
1
+ import { createDataTransformClient } from '../../transport/data-transform-rest.js';
2
+ import { preflightDataTransformDeploy } from '../../services/preflight-data-transform-deploy.js';
3
+ import { executeDataTransformDeploy } from '../../services/execute-data-transform-deploy.js';
4
+ import { resolveDataTransformTargetId } from '../../services/delete-data-transform.js';
5
+ import { verifyDataTransformInputDigest } from '../../artifacts/read-deploy-input.js';
6
+ import { operateNativeDataGraph } from '../../services/command-native-data-graph.js';
7
+ import { nativeDataGraphReadContext } from '../../services/native-data-graph-context.js';
8
+ import { createDataGraphClient } from '../../transport/data-graph-rest.js';
9
+ import { verifyNativeDataGraphInputDigest } from '../../artifacts/read-deploy-input.js';
10
+ import { bindSegmentChildren } from '../../services/bind-segment-dependencies.js';
11
+ import { preflightDataStream, executeDataStream } from '../../services/command-native-data-stream.js';
12
+ import { verifyDataStreamInputDigest } from '../../artifacts/read-deploy-input.js';
13
+ import { preflightMapping, executeMapping } from '../../services/command-native-mapping.js';
14
+ import { createMappingClient } from '../../transport/mapping-rest.js';
15
+ import type { BoundSsot } from '../../transport/bound-ssot.js';
16
+ import { preflightRelationship, executeRelationship } from '../../services/command-native-relationship.js';
17
+ import { createRelationshipClient } from '../../transport/relationship-rest.js';
18
+ import { preflightDmo, executeDmo, admitDmoFieldRemoval } from '../../services/command-native-dmo.js';
19
+ import type { MappedField } from '../../services/command-native-dmo.js';
20
+ import { createDmoClient } from '../../transport/dmo-rest.js';
21
+ import { preflightDloDeploy, executeDloDeploy } from '../../services/command-dlo.js';
22
+ import { createDloClient } from '../../transport/dlo-rest.js';
23
+ import type { PrefixType } from '../../services/data-space-prefix.js';
24
+ import type { CopyOutcome, CrossSpaceFile } from '../../services/cross-dataspace-deploy.js';
25
+ import { verifyDloInputDigest } from '../../artifacts/read-deploy-input.js';
26
+ import { calculatedInsightReadContext } from '../../services/native-calculated-insight.js';
27
+ import { preflightCalculatedInsightDeploy } from '../../services/preflight-calculated-insight-deploy.js';
28
+ import type { CalculatedInsightPreview } from '../../services/preflight-calculated-insight-deploy.js';
29
+ import { executeCalculatedInsightDeploy } from '../../services/execute-calculated-insight-deploy.js';
30
+ import type { CalculatedInsightExecution } from '../../services/execute-calculated-insight-deploy.js';
31
+ import { verifyCalculatedInsightInputDigest } from '../../artifacts/read-deploy-input.js';
32
+ import { SfCommand } from '@salesforce/sf-plugins-core';
33
+ import { Connection, Org } from '@salesforce/core';
34
+ import { preflightNativeIdentityResolutionDeploy } from '../../services/preflight-identity-resolution-deploy.js';
35
+ import type { NativeIdentityResolutionPreview as IdentityResolutionDeployPreview } from '../../services/preflight-identity-resolution-deploy.js';
36
+ import { executeNativeIdentityResolutionDeploy } from '../../services/execute-native-identity-resolution-deploy.js';
37
+ import type { NativeIdentityResolutionDeployExecution as IdentityResolutionDeployExecution } from '../../services/execute-native-identity-resolution-deploy.js';
38
+ import type { IdentityResolutionDeployInput } from '../../artifacts/read-deploy-input.js';
39
+ import { verifyIdentityResolutionInputDigest } from '../../artifacts/read-deploy-input.js';
40
+ import type { ApiVersionSelection } from '../../transport/api-version.js';
41
+ import { captureDeployInputDigest, readDeployInputs } from '../../artifacts/read-deploy-input.js';
42
+ import { executeSegmentDeploy } from '../../services/execute-segment-deploy.js';
43
+ import type { SegmentDeployExecution } from '../../services/execute-segment-deploy.js';
44
+ import { preflightSegmentDeploy } from '../../services/preflight-segment-deploy.js';
45
+ import type { SegmentDeployPreview } from '../../services/preflight-segment-deploy.js';
46
+ import { verifySegmentInputDigest } from '../../artifacts/read-deploy-input.js';
47
+ import type { DeployExecutionResult, DeployPreviewResult } from '../../services/deploy-result.js';
48
+ import { selectGitDeployInputs } from '../../artifacts/git-deploy-selection.js';
49
+ import type { GitDeploySelection } from '../../artifacts/git-deploy-selection.js';
50
+ type NativeDmoPreview = Omit<Awaited<ReturnType<typeof preflightDmo>>, 'diagnostics'> & {
51
+ diagnostics: Array<{
52
+ code: string;
53
+ message: string;
54
+ }>;
55
+ };
56
+ type PlannedDependencyFamily = 'identity-resolution' | 'calculated-insight' | 'segment' | 'dlo' | 'dmo' | 'data-transform' | 'data-graph';
57
+ type ExecutionItem = Omit<DeployExecutionResult, 'outcome'> & {
58
+ family?: SegmentDeployExecution['family'] | IdentityResolutionDeployExecution['family'] | CalculatedInsightExecution['family'] | 'data-graph' | 'dlo' | 'dmo' | 'mapping' | 'relationship' | 'data-stream' | 'data-transform';
59
+ serverProcessing?: true;
60
+ /** Native DMO fields removed through the Metadata API in this execution. */
61
+ removedFields?: string[];
62
+ targetApiName?: string;
63
+ targetDloName?: string;
64
+ route?: SegmentDeployExecution['route'] | IdentityResolutionDeployExecution['route'] | CalculatedInsightExecution['route'];
65
+ requiredEffects?: SegmentDeployPreview['requiredEffects'] | IdentityResolutionDeployPreview['requiredEffects'];
66
+ routes?: Array<{
67
+ operation: string;
68
+ apiVersion: string;
69
+ transport: 'native' | 'metadata';
70
+ }>;
71
+ outcome: DeployExecutionResult['outcome'] | 'not-attempted';
72
+ identity: {
73
+ dataSpace: string;
74
+ apiName: string;
75
+ };
76
+ operation: 'execute';
77
+ path: string;
78
+ };
79
+ export type DeployEnvelope = {
80
+ contract: 'sf-data360-deploy';
81
+ contractVersion: '1.1.0';
82
+ status: 'success' | 'blocked' | 'failed';
83
+ metadata: {
84
+ operation: 'deploy';
85
+ preview: boolean;
86
+ plugin: {
87
+ name: string;
88
+ version: string;
89
+ };
90
+ apiVersion: string;
91
+ soapApiVersion?: string;
92
+ };
93
+ diagnostics: {
94
+ warnings: string[];
95
+ errors: Array<{
96
+ code: string;
97
+ message: string;
98
+ retryable: false;
99
+ /** Mapped fields a refused removal names, each with the mappings holding its pair. */
100
+ mappedFields?: MappedField[];
101
+ }>;
102
+ };
103
+ provenance: {
104
+ producer: string;
105
+ targetOrgId: string | null;
106
+ pluginVersion: string;
107
+ command: string;
108
+ generatedAt: string;
109
+ git?: GitDeploySelection['provenance'];
110
+ };
111
+ result: {
112
+ scope: {
113
+ dataSpace: string;
114
+ };
115
+ /**
116
+ * With --allow-cross-dataspace: every file of another data space translated into the run's
117
+ * one (each rewrite and each name that cannot be placed), the copy files planned before any
118
+ * write, and after the deploy what happened to each copy file.
119
+ */
120
+ crossDataSpace?: {
121
+ files: CrossSpaceFile[];
122
+ plannedCopies: string[];
123
+ copies?: CopyOutcome[];
124
+ };
125
+ selection: {
126
+ sourceDir: string[];
127
+ metadata: string[];
128
+ changedSince?: string;
129
+ /** Files deleted in the Git range: reported, never deleted by deploy. */
130
+ deletions?: Array<{
131
+ family: string;
132
+ apiName: string;
133
+ path: string;
134
+ }>;
135
+ };
136
+ items: Array<(({
137
+ family: 'data-transform';
138
+ outcome: 'create' | 'update' | 'unchanged';
139
+ diagnostics: Array<{
140
+ code: string;
141
+ message: string;
142
+ }>;
143
+ } | DeployPreviewResult | SegmentDeployPreview | IdentityResolutionDeployPreview | CalculatedInsightPreview | {
144
+ family: 'data-graph';
145
+ outcome: 'create' | 'update' | 'unchanged' | 'blocked';
146
+ target: 'absent' | 'present' | 'unknown';
147
+ absenceProof: 'none';
148
+ diagnostics: Array<{
149
+ code: string;
150
+ message: string;
151
+ }>;
152
+ } | Awaited<ReturnType<typeof preflightDataStream>> | {
153
+ family: 'data-stream';
154
+ outcome: 'blocked';
155
+ target: 'unknown';
156
+ absenceProof: 'none';
157
+ requiredEffects: string[];
158
+ diagnostics: Array<{
159
+ code: string;
160
+ message: string;
161
+ }>;
162
+ } | NativeDmoPreview | Awaited<ReturnType<typeof preflightMapping>> | Awaited<ReturnType<typeof preflightRelationship>> | {
163
+ family: 'relationship';
164
+ outcome: 'planned-dependencies';
165
+ target: string;
166
+ absenceProof: string;
167
+ diagnostics: Array<{
168
+ code: string;
169
+ message: string;
170
+ }>;
171
+ } | {
172
+ family: PlannedDependencyFamily;
173
+ outcome: 'planned-dependencies';
174
+ target: string;
175
+ absenceProof: string;
176
+ diagnostics: Array<{
177
+ code: string;
178
+ message: string;
179
+ }>;
180
+ } | {
181
+ family: 'mapping';
182
+ outcome: 'planned-dependencies';
183
+ target: string;
184
+ absenceProof: string;
185
+ diagnostics: Array<{
186
+ code: string;
187
+ message: string;
188
+ }>;
189
+ } | import('../../services/command-dlo.js').DloPreview) & {
190
+ routes?: ExecutionItem['routes'];
191
+ identity: {
192
+ dataSpace: string;
193
+ apiName: string;
194
+ };
195
+ operation: 'preview';
196
+ path: string;
197
+ }) | ExecutionItem>;
198
+ };
199
+ };
200
+ /** Preview or sequential guarded deployment of explicitly selected authored configuration. */
201
+ export default class Deploy extends SfCommand<DeployEnvelope> {
202
+ static readonly aliases: string[];
203
+ static readonly summary = "Deploy explicit authored Data360 configuration or preview without writes.";
204
+ static readonly description = "Data transforms (data-transform:Name, data360/dataTransforms/Name.dataTransform.json, auto/API68, in the run data space: c__dataSpace must name it and equal definition.dataSpaceName when the definition names one; TRANSFORM_DATASPACE_MISMATCH otherwise, also for an org transform of that name in another data space, resolved from its dataSpaceName or, without one, from its MktDataTransform record read with SOQL (one without any data space is handled in default only); a create outside default needs definition.dataSpaceName) deploy by name: the complete transform list is read, no match creates, one match updates or is unchanged (the file equals the transform as retrieve writes it), a match that differs only in letter case is refused (TRANSFORM_IDENTITY_MISMATCH), two or more are refused (TRANSFORM_TARGET_NOT_RESOLVED). The file is sent as written and Salesforce decides, for a transform of any owner (Salesforce refuses writes to system transforms; a 4xx answer to the first write is reported as rejected); --allow-processing is not needed. Create is validated by Salesforce first; preview is GET-only. The optional schedule key of the file is the desired schedule: absent leaves the schedule alone; otherwise, when it differs from the org schedule as retrieve projects it, it is sent with one schedule PUT after the definition and read back, and an explicit {\"frequency\":\"None\"} turns it off (retrieve leaves the key out for a transform without a schedule). A deployed schedule makes the transform run in the target org (TRANSFORM_SCHEDULE_CHANGE in preview and deploy). No run writes. Several transforms deploy one after another in their phase, selected by member, file, directory or --changed-since. Exact data-stream:ApiName deploys canonical data360/data-stream/ApiName.data-stream-meta.json using auto/API68 in the run data space: its c__dataSpace list must name it and, for an existing stream, equal the data spaces of its DLO (a new stream lists the run data space alone, sent as the DLO dataspaceInfo of the create); data spaces change only through the DLO file (STREAM_DATASPACE_MISMATCH). An Ingestion API stream file is sent as written and Salesforce decides: create carries the primary key, the additive and formula mappings and the refresh mode (Salesforce creates UPSERT only); update sends new, changed and removed additive and formula mappings in one PATCH, a removed one as an empty formula (Salesforce refuses changing or removing an existing mapping; reported as rejected). Refused before any write: an additive mapping whose source label names no event field, or several (UNSUPPORTED_STREAM_MAPPING_SOURCE; Salesforce would store a mapping that never carries data), and a change of the refresh mode, DLO label, category, event time field or primary key (UNSUPPORTED_STREAM_SETTINGS_CHANGE; Salesforce answers 200 and keeps the old value). Create/update requires --allow-processing. A stream file of any other connector (connectorInfo.connectorType, for example SalesforceDotCom; only Salesforce CRM is tested live) is translated into the create input (GET spellings renamed, plain field mappings left out) and sent as written: absent (404) creates, otherwise one PATCH of datastreamType and the changed parts, or unchanged; Salesforce decides and its answer is reported (it refuses a CRM refresh mode change); a plain mapping change cannot be sent (UNSUPPORTED_STREAM_SETTINGS_CHANGE). A stream label change (CRM and Ingestion API) is sent as one Metadata API updateMetadata of the DataStreamDefinition of the stream (refusal STREAM_LABEL_UPDATE_REJECTED; a failed read of the record before it STREAM_LABEL_READ_FAILED, with nothing sent; a label still unchanged is STREAM_CHANGE_NOT_APPLIED). Generated target identities are independently resolved; mismatching label intent blocks. Requires explicit files/directories OR exact family:ApiName selectors OR --changed-since Git selection (every family; files deleted in the range are reported in result.selection.deletions and never deleted by deploy (sf data360 delete --changed-since deletes them)). Canonical native DLO/DMO/mapping/relationship JSON defaults to API68 (auto); numeric pins >=61 are retained without upgrade. Any mix of families runs in phases: data streams, then native DLO/DMO/mapping/relationship, then data transforms, then IR/CI/Segment, then data graphs; a phase starts only after every item of the previous phase settled, and the first blocked or failed item stops the run. A DLO file named like the landing DLO of a stream this deploy creates is refused after the read-only comparison of that stream and before any write (DATA_STREAM_DLO_COLLISION); beside an existing stream it deploys and Salesforce decides. Native mixed selections execute DLO then DMO then mapping then relationship, independently settling parents before mapping and relationship dependency checks. A selection with a mapping or relationship may also hold IR, CI and Segment inputs: they run afterwards in the ordered batch, only once every native item settled; preview reports items whose parent an earlier phase creates as planned-dependencies (DEPENDENCIES_PLANNED; MAPPING_DEPENDENCIES_PLANNED for a mapping): a mapping or transform on the landing DLO of a stream preview creates, items on a DLO or DMO the native phase creates, and a graph on a DMO or IR output created earlier. An IR runs before a CI or Segment that uses its unified or link DMO (name derived from the ruleset file), and those start only after the IR is PUBLISHED. A relationship (relationship:Name, data360/relationship/Name.relationship-meta.json) is matched to the org by the name in the file, otherwise by its binding (source DMO and field, target object and field; the target may be a DMO or a CRM object with owner SObject): absent is created with one POST and read back until ACTIVE (a stated label is then set), present with the values of the file (and stated label) is unchanged, and other values are sent as one Metadata API updateMetadata of the whole FieldSrcTrgtRelationship record over the connection of the command and read back (updated); Salesforce decides, and its refusal is RELATIONSHIP_UPDATE_REJECTED (it accepts label, cardinality, source and target field, not target object or owner); after an UNKNOWN_EXCEPTION answer the relationship is read again and, if unchanged, the update is sent once more. Deploy never deletes relationships. The source DMO and a target DMO must be mapped; otherwise Salesforce answers 400 and that answer is reported. Mapping uses exact mapping:ApiName from data360/mapping/ApiName.mapping-meta.json, unique target binding lookup and server-generated target names; create and unchanged repeats are supported; desired-state updates at native API 61 and up remove the authored pairs the file drops, one at a time, then add the new pairs in one batch; any data type, same-name or not, and one source onto several targets are sent as listed and Salesforce decides (preview names pairs of different data types with MAPPING_FIELD_TYPES_DIFFER). The key pair, its key-qualifier pair and the system pairs are never removed (MAPPING_PROTECTED_PAIR_REQUIRED when a file drops one; MAPPING_PROTECTED_LAYOUT_UNPROVEN when the key pair cannot be identified). Generated/key pairs and retained selectors are protected. A pair is removed even when another mapping of the same DMO targets the same field; the field stays mapped until the last such pair is gone. The optional label of a mapping file (spec.label; absent leaves the org label alone) is compared with the org label read through the Metadata API; when it differs, one Metadata API updateMetadata of the ObjectSourceTargetMap record is sent after the create or pair writes settled, carrying the new label and every pair the mapping currently has and no other (a pair left out is kept, a pair sent is added), and the label and pairs are read back; preview shows the planned change (labelChange). A refusal is MAPPING_LABEL_UPDATE_REJECTED (rejected when the label is the only change, unknown after other writes); a failed read MAPPING_LABEL_READ_FAILED. Any DMO may be the mapping target and Salesforce decides (it refuses platform-generated DMOs; that answer is reported). On a target other than an unprefixed custom DMO the generated system and key qualifier pairs are recognised from the target read and never sent, and the first mapping onto a standard DMO (creationType Standard) that is not yet enabled activates it permanently: preview and create carry the notice MAPPING_ACTIVATES_STANDARD_DMO without changing outcome or exit status. Qualification is limited to empty custom fixtures; populated-data behavior is not established. Preview never writes and reports planned dependencies without claiming nonexistent parents are ready. A native DMO changed since a Git reference or selected beside Segment/CI/IR inputs joins the ordered batch on the native route. Prerequisites are checked, never pulled in: each must be selected explicitly or already exist in the target. Native DMO target-name lookup selects confirmed-404 POST or existing-name PATCH with independent GET confirmation. A custom DMO field missing from the file blocks the update unless --allow-field-removal is set; then one Metadata API destructive change for CustomField removes those fields after the PATCH, and readback confirms their absence. A mapped field is removed only when the same selection contains every mapping holding its pair and each mapping file omits that pair; all-native selections check this before the first write (DMO_FIELD_REMOVAL_MAPPED otherwise), then remove the field in the DMO position with one Metadata API destructive change. Salesforce drops the mapping pairs of the field with it; reads before and after confirm that exactly those pairs went and nothing else changed (DMO_FIELD_REMOVAL_SIDE_EFFECT otherwise), and the mappings deployed afterwards find the pairs already gone. A deploy never removes the primary key or a standard, system or generated field: retrieve leaves generated fields out of the file, so a field missing from the file is kept. Platform-owned fields are removed only with sf data360 delete --field. An existing DMO other than an unprefixed custom one (a standard DMO, a platform-generated one such as Derived, Bridge or Adg, or a namespaced custom DMO) takes custom-field additions, label edits and removals plus object label and description changes only: its standard, system and generated fields are never sent or removed by a deploy, may be absent from the file and must match the target when listed (UNSUPPORTED_DMO_FIELD_CHANGE); a new field must be a plain custom field (UNSUPPORTED_DMO_FIELD_ADDITION); its category is ignored and its label is sent only when it differs. A new namespaced name is refused (UNSUPPORTED_DMO_TARGET); Salesforce answers for the rest. Native DLOs use dlo:Name__dll from data360/dlo/Name__dll.dlo-meta.json, whose top-level c__dataSpace list names every data space of the DLO and must hold the run data space (DLO_DATASPACE_MISMATCH); before any read or write the run data space and every listed name are checked against the org (one GET /ssot/data-spaces; UNKNOWN_DATASPACE). A new DLO is created in the run data space, then added to the other listed ones; an existing one is added to listed data spaces it is not in (one PUT naming only this DLO, which keeps every other member, then the DLO is read until it lists them) and removed from unlisted ones only with --allow-dataspace-removal (DLO_DATASPACE_REMOVAL_NOT_ALLOWED otherwise). Target lookup selects PATCH by target ID, or POST only on confirmed HTTP404; auth/permission/lookup failures stop. Preview is read-only; native DLO deploy does not require --allow-processing. Inventory is unavailable. Graph artifacts (*.native-dataGraph.json) use native API68 (auto or explicit 68.0; other versions are rejected) in the run data space (c__dataSpace; definition.dataspaceName, when present, must equal it, and the create sends it; a file of another data space, or an org graph of that name in another one, is DATA_GRAPH_DATASPACE_MISMATCH before any write; a root DMO the read names in another data space is DATA_GRAPH_DEPENDENCY_OTHER_DATASPACE): confirmed absence creates with --allow-processing; an existing graph is updated with one PUT of the file as written, confirmed by independent ready reads; Salesforce decides and a 4xx answer is reported as rejected (it refuses removed fields and related objects, a root change and another related object in place of an existing one). Key-qualifier fields Salesforce added are kept when the file leaves them out. A join change of an existing related object is refused before any write (DATA_GRAPH_JOIN_CHANGE), because Salesforce accepts it but keeps the old join; a graph read back with another join than sent is DATA_GRAPH_CHANGE_NOT_APPLIED. Settings the file leaves out keep their org values; clearing one needs an explicit value. Name and data space identify the graph: a file with another name creates or addresses another graph, and the old graph is not renamed. Identical ready configuration is unchanged without acknowledgement. --wait-timeout sets the native Graph invocation budget in integer seconds (default 1800); readiness retries wait at least 20 seconds with stderr progress. Processing can take seconds to many minutes, up to 30 minutes depending on objects, fields, data volume and service load. In a mixed deploy graphs run last; a graph whose root or related object is the unified or link DMO of a selected IR starts only after that IR is PUBLISHED. --wait-timeout applies to every graph and needs at least one graph in the selection. Calculated insights (calculated-insight:Name__cio, data360/calculatedInsights/Name__cio.calculatedInsight-meta.json joined with its .calculatedInsight-meta.sql) use auto or 68.0 in the run data space, which c__dataSpace in the JSON must name (CI_DATASPACE_MISMATCH); c__dataSpace is sent as dataSpaceName in every create and update. The insight is read by name: absent (HTTP 404) creates it with one POST, present is unchanged when the org holds every key of the file and is updated with one PATCH otherwise; afterwards it is read until it holds the file. The file is sent as written and Salesforce decides (a 4xx answer is reported as rejected); only what the create/update input names differently is translated: dataSpace as dataSpaceName, isFromPackage as createdFromPackage, sourceCiDevName as sourceDeveloperName, UPPER_SNAKE values of definitionType, publishScheduleInterval, historyPublishScheduleInterval and queryDialect as PascalCase, null values are left out, and a PATCH leaves out a definitionType equal to the org value (Salesforce refuses any definitionType on PATCH). The insight runs after the selected DMOs, IRs and insights its SQL names. --draft creates a draft and sends draft: true on update; an update of a DRAFT insight stays a draft. Publication is never implicit (sf data360 publish). --allow-processing is not needed. Repeated selections coalesce. Bare types and implicit deploy-all are forbidden. Preview is strictly read-only. Each phase stage preflights all of its own items before its first write: a batch of Segment, CI or IR inputs (with DLO/DMO beside them when no mapping or relationship is selected) is preflighted as a whole, and an IR dependent stage only after the IR is PUBLISHED; all-native DLO/DMO/mapping execution admits each ordered item only after earlier parents settle. In a selection that also holds a mapping or relationship, only the local checks of the IR/CI/Segment inputs (version, data space, file shape, dependency identities and order) run before the native writes; their Git snapshot, prerequisite and target checks run in their later stage, so a blocker there can follow earlier native writes, which stay reported. Preview runs every stage read-only, also after a blocked one. Segment (segment:Name, the portable Name.segment.json joined with one Name.segment.<model>.sql per model; a missing or extra SQL file or SQL left in the JSON is INVALID_SOURCE) uses auto or 68.0 in the run data space, which c__dataSpace must name (SEGMENT_DATASPACE_MISMATCH); its segmentOn DMO and Waterfall children are in the same data space (SEGMENT_DEPENDENCY_OTHER_DATASPACE). The file carries the name Salesforce stores (<prefix>_<Name> in a non-default data space; a name without the prefix is SEGMENT_NAME_NOT_STORED), sent unchanged; the create names the data space (?dataspace=). Other versions are refused (INVALID_SCOPE). It is read by its exact name: absent (HTTP 404 ITEM_NOT_FOUND) creates it with one POST, present updates it with one PATCH or is unchanged. The authored definition (label, description, segmentOn DMO, DBT SQL models, UI criteria or another segment type, lookback) is sent as written and Salesforce decides; its error is reported. The optional schedule key of the file is the desired refresh schedule: absent leaves the schedule alone; otherwise, when it differs from the org schedule as retrieve projects it, the POST or PATCH carries it, and an explicit {\"frequency\":\"None\"} turns it off (Salesforce refuses that for DBT segments; retrieve leaves the key out for a segment without a schedule). A deployed schedule makes the segment publish in the target org (SEGMENT_SCHEDULE_CHANGE in preview and deploy). The segmentOn DMO must exist (one native read binds its ID for the readback). A Waterfall file lists its child segments by API name (childSegments): each is read in the target and sent by its ID there, a selected child is deployed first (preview: planned-dependencies), and the children the selection does not hold are read before the first write of the run, so a child neither in the target nor selected stops it before any write (SEGMENT_CHILD_NOT_FOUND); a file without childSegments keeps the children of the org segment. Create and update require --allow-processing; identical configuration is unchanged without acknowledgement. Parameters have no write in the API, so a segment with parameters is retrieved as-is (UNSUPPORTED_SEGMENT_VARIANT). Segment XML is unsupported input. Segment deletion is separate: sf data360 delete -m segment:Name reads the segment from the org by name and runs fresh checks. Native IR uses auto or numeric68 in the run data space (c__dataSpace; every DMO, field, DLO source and output it names is in that data space, named as stored there, ds2_Individual__dlm with FirstName__c outside default; the ruleset name is <prefix>_<type>_<rulesetId> outside default, IDENTITY_RESOLUTION_NAME_NOT_STORED before any write otherwise; a ruleset or component of another data space is IDENTITY_RESOLUTION_DATASPACE_MISMATCH or IDENTITY_RESOLUTION_DEPENDENCY_OTHER_DATASPACE): confirmed exact absence supports CREATE with --allow-processing acknowledging processing and generated-output provisioning; existing settled owners support complete matching and reconciliation PATCH with --allow-processing or read-only identical no-op without acknowledgement. Ordered source priorities, object defaults and explicit field overrides are preserved; fields:[] restores inheritance. Automatic run, explicit run and delete are unsupported; no API67 fallback is attempted. --async (IR only) returns as soon as Salesforce accepts an IR create or update (creation-processing / update-processing, mutation acknowledged-processing) instead of waiting minutes for PUBLISHED: publish, settings and generated outputs are not confirmed; rerun the same deploy to check (IDENTITY_RESOLUTION_NOT_SETTLED while in flight, unchanged once settled). --async is refused when the selection holds a graph, CI or Segment on the unified DMO of that IR (IDENTITY_RESOLUTION_ASYNC_DEPENDENTS). Selections mixing IR with other non-native families require auto. Other changes block before writes. Stops on first blocked or failed item; no retry or rollback. No local report/artifact writes.";
205
+ static readonly flags: {
206
+ 'target-org': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
207
+ 'api-version': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
208
+ dataspace: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
209
+ 'source-dir': import("@oclif/core/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/interfaces").CustomOptions>;
210
+ metadata: import("@oclif/core/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/interfaces").CustomOptions>;
211
+ 'changed-since': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
212
+ 'allow-processing': import("@oclif/core/interfaces").BooleanFlag<boolean>;
213
+ 'allow-field-removal': import("@oclif/core/interfaces").BooleanFlag<boolean>;
214
+ 'allow-cross-dataspace': import("@oclif/core/interfaces").BooleanFlag<boolean>;
215
+ 'allow-dataspace-removal': import("@oclif/core/interfaces").BooleanFlag<boolean>;
216
+ async: import("@oclif/core/interfaces").BooleanFlag<boolean>;
217
+ 'wait-timeout': import("@oclif/core/interfaces").OptionFlag<number | undefined, import("@oclif/core/interfaces").CustomOptions>;
218
+ draft: import("@oclif/core/interfaces").BooleanFlag<boolean>;
219
+ preview: import("@oclif/core/interfaces").BooleanFlag<boolean>;
220
+ };
221
+ protected createDataTransformClient: typeof createDataTransformClient;
222
+ protected preflightDataTransform: typeof preflightDataTransformDeploy;
223
+ protected executeDataTransform: typeof executeDataTransformDeploy;
224
+ protected resolveDataTransformTarget: typeof resolveDataTransformTargetId;
225
+ protected verifyDataTransformInput: typeof verifyDataTransformInputDigest;
226
+ protected nativeGraphContext: typeof nativeDataGraphReadContext;
227
+ protected nativeGraphClient: typeof createDataGraphClient;
228
+ protected operateNativeGraph: typeof operateNativeDataGraph;
229
+ protected verifyNativeDataGraphInput: typeof verifyNativeDataGraphInputDigest;
230
+ protected preflightDataStream: typeof preflightDataStream;
231
+ protected executeDataStream: typeof executeDataStream;
232
+ protected verifyDataStreamInput: typeof verifyDataStreamInputDigest;
233
+ protected createDataStreamClients: (connection: Connection, target: string, version: string) => Parameters<typeof executeDataStream>[1];
234
+ protected createMappingClient: typeof createMappingClient;
235
+ protected preflightMapping: typeof preflightMapping;
236
+ protected executeMapping: typeof executeMapping;
237
+ protected createRelationshipClient: typeof createRelationshipClient;
238
+ protected preflightRelationship: typeof preflightRelationship;
239
+ protected executeRelationship: typeof executeRelationship;
240
+ protected resolveTargetOrg: (aliasOrUsername?: string) => Promise<Pick<Org, "getConnection" | "getOrgId" | "getUsername"> | undefined>;
241
+ /** Read-only binding of the Waterfall child segments a deploy does not select. */
242
+ protected bindChildSegments: typeof bindSegmentChildren;
243
+ protected createDmoClient: typeof createDmoClient;
244
+ protected preflightNativeDmo: typeof preflightDmo;
245
+ protected executeNativeDmo: typeof executeDmo;
246
+ protected admitNativeDmoRemoval: typeof admitDmoFieldRemoval;
247
+ protected preflightDlo: typeof preflightDloDeploy;
248
+ protected executeDlo: typeof executeDloDeploy;
249
+ protected verifyDloInput: typeof verifyDloInputDigest;
250
+ protected createDloClient: typeof createDloClient;
251
+ protected createSsotSender: (target: string, version: string) => BoundSsot;
252
+ private ssotSenders?;
253
+ /**
254
+ * One shared bound sender per org and API version.
255
+ * @param {string} target Resolved username.
256
+ * @param {string} version Numeric API version.
257
+ * @returns {BoundSsot} Lazily opened sender.
258
+ */
259
+ protected ssotSender(target: string, version: string): BoundSsot;
260
+ protected calculatedInsightContext: typeof calculatedInsightReadContext;
261
+ protected preflightCalculatedInsight: typeof preflightCalculatedInsightDeploy;
262
+ protected executeCalculatedInsight: typeof executeCalculatedInsightDeploy;
263
+ protected verifyCalculatedInsightInput: typeof verifyCalculatedInsightInputDigest;
264
+ protected resolveInputs: typeof readDeployInputs;
265
+ protected selectGitInputs: typeof selectGitDeployInputs;
266
+ protected preflightSegment: typeof preflightSegmentDeploy;
267
+ protected verifySegmentInput: typeof verifySegmentInputDigest;
268
+ protected captureInput: typeof captureDeployInputDigest;
269
+ protected executeSegment: typeof executeSegmentDeploy;
270
+ protected preflightIdentityResolution: typeof preflightNativeIdentityResolutionDeploy;
271
+ protected executeIdentityResolution: typeof executeNativeIdentityResolutionDeploy;
272
+ protected verifyIdentityResolutionInput: typeof verifyIdentityResolutionInputDigest;
273
+ /**
274
+ * Bind exact CREATE absence or independently settled owner/outputs before batch mutation.
275
+ * @param {IdentityResolutionDeployInput} input Immutable authored IR input.
276
+ * @param {Connection} connection Fixed API68 operation receiver.
277
+ * @param {ApiVersionSelection} selection Fixed per-operation selection.
278
+ * @returns {Promise<string>} Private stable target fingerprint.
279
+ */
280
+ protected bindIdentityResolution(input: IdentityResolutionDeployInput, connection: Connection, selection: ApiVersionSelection): Promise<string>;
281
+ /**
282
+ * Read one component whose name breaks the data space prefix rule, to tell a create from an
283
+ * update before the first write of the run, the way each type's own stage tells them apart: a
284
+ * DMO's GET 404, an insight's 404 with a Salesforce error code, a transform's name missing from
285
+ * the complete inventory (ignoring case), a graph's exact not-found answer. Any other failure
286
+ * stops the run.
287
+ * @param {PrefixType} type Kind of component.
288
+ * @param {string} name Its name.
289
+ * @param {string} space The run's data space.
290
+ * @param {unknown} targetOrg The --target-org flag value.
291
+ * @returns {Promise<{native: unknown} | undefined>} The raw read, or undefined when absent.
292
+ */
293
+ protected readPrefixTarget(type: PrefixType, name: string, space: string, targetOrg: unknown): Promise<{
294
+ native: unknown;
295
+ } | undefined>;
296
+ /**
297
+ * Validate inputs, then admit native items in dependency order or preflight the whole remaining
298
+ * selection before sequential execution.
299
+ * @returns {Promise<DeployEnvelope>} Versioned preview or execution outcomes with mutation evidence.
300
+ */
301
+ run(): Promise<DeployEnvelope>;
302
+ }
303
+ export {};