@norbix.ai/cli 1.1.0 → 1.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@norbix.ai/cli",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "Norbix CLI — manage your Norbix projects from the terminal. Built on the official TypeScript SDK.",
5
5
  "author": "UAB Isidos",
6
6
  "license": "MIT",
@@ -1,34 +0,0 @@
1
- import { Flags } from '@oclif/core';
2
- import { BaseCommand } from '../../../base.js';
3
- export default class PushIntegrationAppRequest extends BaseCommand {
4
- static description = `Register a Norbix app push integration request (managed service)
5
-
6
- This is one step of the managed-app pairing flow: the Norbix mobile app shows
7
- a request ID, a PIN and a public key, and this call registers them for the
8
- account. It is account-scoped, so an account ID must be configured or passed
9
- with --account.`;
10
- static examples = [
11
- '<%= config.bin %> push integration app-request --user usr_1 --request-id req_1 --pin 123456 --valid-till 2026-09-20T12:00:00Z --public-key MIIB...',
12
- ];
13
- static flags = {
14
- user: Flags.string({ required: true, description: 'User ID the app is paired to' }),
15
- 'request-id': Flags.string({ required: true, description: 'Request ID shown by the app' }),
16
- pin: Flags.integer({ required: true, description: 'PIN shown by the app' }),
17
- 'valid-till': Flags.string({ required: true, description: 'When the request expires (ISO 8601)' }),
18
- 'public-key': Flags.string({ required: true, description: "The app's public key" }),
19
- };
20
- async run() {
21
- const { flags } = await this.parse(PushIntegrationAppRequest);
22
- const client = this.client(flags);
23
- const res = await client.hub.notifications.registerCodeMashAppPushIntegration({
24
- accountId: this.resolveContext(flags).accountId,
25
- userId: flags.user,
26
- requestId: flags['request-id'],
27
- pin: flags.pin,
28
- validTill: flags['valid-till'],
29
- publicKey: flags['public-key'],
30
- });
31
- this.print('App push integration request registered.');
32
- return res;
33
- }
34
- }