@zalosai/zalos-cli 0.2.26 → 0.2.27

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.
@@ -118,5 +118,21 @@ export function registerCloseCommand(program) {
118
118
  : {}),
119
119
  }, { timeoutMs: APPLY_TIMEOUT_MS })));
120
120
  }));
121
+ registry
122
+ .command('adopt-baseline')
123
+ .description('Switch the selected team to Mesh ownership using its verified registry baseline')
124
+ .requiredOption('--team-id <ref>', 'Selected team public ID or UUID')
125
+ .requiredOption('--expected-version <number>', 'Active baseline version')
126
+ .requiredOption('--digest <sha256>', 'Verified authored baseline digest')
127
+ .action(async (o) => action(async () => {
128
+ const expectedVersion = Number(o.expectedVersion);
129
+ if (!Number.isSafeInteger(expectedVersion) || expectedVersion < 1)
130
+ throw new ValidationError('expected-version', 'Expected a positive registry version');
131
+ printJson(dataRow(await client.post('/developer/finance/registry/adopt-baseline', {
132
+ teamId: resourceId(o.teamId),
133
+ expectedVersion,
134
+ digest: o.digest,
135
+ }, { timeoutMs: APPLY_TIMEOUT_MS })));
136
+ }));
121
137
  }
122
138
  //# sourceMappingURL=close.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zalosai/zalos-cli",
3
- "version": "0.2.26",
3
+ "version": "0.2.27",
4
4
  "description": "API-only product command-line interface for Zalos",
5
5
  "repository": {
6
6
  "type": "git",