@trillboards/cli 0.1.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/README.md +1288 -0
- package/bin/dev.cmd +3 -0
- package/bin/dev.js +5 -0
- package/bin/run.cmd +3 -0
- package/bin/run.js +5 -0
- package/dist/base-command.d.ts +20 -0
- package/dist/base-command.js +60 -0
- package/dist/commands/api.d.ts +14 -0
- package/dist/commands/api.js +80 -0
- package/dist/commands/audience/live.d.ts +14 -0
- package/dist/commands/audience/live.js +117 -0
- package/dist/commands/billing/usage.d.ts +10 -0
- package/dist/commands/billing/usage.js +92 -0
- package/dist/commands/billing.d.ts +6 -0
- package/dist/commands/billing.js +49 -0
- package/dist/commands/debug.d.ts +10 -0
- package/dist/commands/debug.js +156 -0
- package/dist/commands/doctor.d.ts +6 -0
- package/dist/commands/doctor.js +145 -0
- package/dist/commands/earnings.d.ts +15 -0
- package/dist/commands/earnings.js +182 -0
- package/dist/commands/endpoints/index.d.ts +9 -0
- package/dist/commands/endpoints/index.js +35 -0
- package/dist/commands/errors/index.d.ts +9 -0
- package/dist/commands/errors/index.js +34 -0
- package/dist/commands/fill-rate.d.ts +12 -0
- package/dist/commands/fill-rate.js +141 -0
- package/dist/commands/generated/generated-changelog-query.d.ts +14 -0
- package/dist/commands/generated/generated-changelog-query.js +35 -0
- package/dist/commands/generated/generated-data-api-aggregate.d.ts +15 -0
- package/dist/commands/generated/generated-data-api-aggregate.js +38 -0
- package/dist/commands/generated/generated-data-api-list-screens.d.ts +16 -0
- package/dist/commands/generated/generated-data-api-list-screens.js +41 -0
- package/dist/commands/generated/generated-data-api-lookalike-screens.d.ts +15 -0
- package/dist/commands/generated/generated-data-api-lookalike-screens.js +38 -0
- package/dist/commands/generated/generated-data-api-query-dsl.d.ts +13 -0
- package/dist/commands/generated/generated-data-api-query-dsl.js +32 -0
- package/dist/commands/generated/generated-data-api-screen-audience-history.d.ts +17 -0
- package/dist/commands/generated/generated-data-api-screen-audience-history.js +41 -0
- package/dist/commands/generated/generated-data-api-screen-audience-live.d.ts +14 -0
- package/dist/commands/generated/generated-data-api-screen-audience-live.js +32 -0
- package/dist/commands/generated/generated-data-api-semantic-search.d.ts +16 -0
- package/dist/commands/generated/generated-data-api-semantic-search.js +41 -0
- package/dist/commands/generated/generated-data-api-stats.d.ts +12 -0
- package/dist/commands/generated/generated-data-api-stats.js +26 -0
- package/dist/commands/generated/generated-data-api-stream.d.ts +14 -0
- package/dist/commands/generated/generated-data-api-stream.js +35 -0
- package/dist/commands/generated/generated-data-api-usage.d.ts +13 -0
- package/dist/commands/generated/generated-data-api-usage.js +32 -0
- package/dist/commands/generated/generated-device-ota-manifest.d.ts +13 -0
- package/dist/commands/generated/generated-device-ota-manifest.js +32 -0
- package/dist/commands/generated/generated-example-healthcheck.d.ts +13 -0
- package/dist/commands/generated/generated-example-healthcheck.js +32 -0
- package/dist/commands/generated/generated-playground-dry-run.d.ts +14 -0
- package/dist/commands/generated/generated-playground-dry-run.js +32 -0
- package/dist/commands/generated/generated-request-metadata-get.d.ts +14 -0
- package/dist/commands/generated/generated-request-metadata-get.js +32 -0
- package/dist/commands/generated/generated-sdk-enrich.d.ts +13 -0
- package/dist/commands/generated/generated-sdk-enrich.js +32 -0
- package/dist/commands/generated/generated-sdk-impression.d.ts +13 -0
- package/dist/commands/generated/generated-sdk-impression.js +32 -0
- package/dist/commands/generated/generated-sdk-qr-beacon.d.ts +13 -0
- package/dist/commands/generated/generated-sdk-qr-beacon.js +32 -0
- package/dist/commands/generated/generated-sdk-qr-scan.d.ts +13 -0
- package/dist/commands/generated/generated-sdk-qr-scan.js +32 -0
- package/dist/commands/generated/generated-sensing-paired-training-upload.d.ts +13 -0
- package/dist/commands/generated/generated-sensing-paired-training-upload.js +32 -0
- package/dist/commands/listen.d.ts +39 -0
- package/dist/commands/listen.js +245 -0
- package/dist/commands/login.d.ts +7 -0
- package/dist/commands/login.js +68 -0
- package/dist/commands/logs/tail.d.ts +47 -0
- package/dist/commands/logs/tail.js +240 -0
- package/dist/commands/reconcile.d.ts +9 -0
- package/dist/commands/reconcile.js +58 -0
- package/dist/commands/sandbox/create.d.ts +6 -0
- package/dist/commands/sandbox/create.js +35 -0
- package/dist/commands/sandbox/emit.d.ts +12 -0
- package/dist/commands/sandbox/emit.js +57 -0
- package/dist/commands/sandbox/reset.d.ts +6 -0
- package/dist/commands/sandbox/reset.js +34 -0
- package/dist/commands/sandbox/status.d.ts +6 -0
- package/dist/commands/sandbox/status.js +58 -0
- package/dist/commands/screens/watch.d.ts +14 -0
- package/dist/commands/screens/watch.js +158 -0
- package/dist/commands/trigger.d.ts +9 -0
- package/dist/commands/trigger.js +53 -0
- package/dist/commands/validate.d.ts +12 -0
- package/dist/commands/validate.js +93 -0
- package/dist/commands/whoami.d.ts +6 -0
- package/dist/commands/whoami.js +39 -0
- package/dist/config.d.ts +10 -0
- package/dist/config.js +32 -0
- package/dist/format-helpers.d.ts +46 -0
- package/dist/format-helpers.js +96 -0
- package/dist/http.d.ts +13 -0
- package/dist/http.js +51 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/output.d.ts +2 -0
- package/dist/output.js +78 -0
- package/oclif.manifest.json +2697 -0
- package/package.json +94 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// AUTO-GENERATED from OpenAPI spec (data-api) -- do not edit manually
|
|
2
|
+
// Regenerate with: npm run generate
|
|
3
|
+
import { Flags } from '@oclif/core';
|
|
4
|
+
import { BaseCommand } from '../../base-command.js';
|
|
5
|
+
import { apiRequest } from '../../http.js';
|
|
6
|
+
import { formatOutput } from '../../output.js';
|
|
7
|
+
export default class Dataapiaggregate extends BaseCommand {
|
|
8
|
+
static description = "Aggregate audience analytics for a time window.";
|
|
9
|
+
static examples = [`$ trillboards generated data-api-aggregate`];
|
|
10
|
+
static args = {};
|
|
11
|
+
static flags = {
|
|
12
|
+
...BaseCommand.baseFlags,
|
|
13
|
+
'group_by': Flags.string({ description: 'Dimension to group aggregations by.' }),
|
|
14
|
+
'metric': Flags.string({ description: 'Metric to aggregate on.' }),
|
|
15
|
+
'since': Flags.string({ description: 'Relative time window (e.g. "24h", "7d").' }),
|
|
16
|
+
};
|
|
17
|
+
async run() {
|
|
18
|
+
const { args, flags } = await this.parse(Dataapiaggregate);
|
|
19
|
+
this.setParsedFlags(flags);
|
|
20
|
+
const apiKey = this.getApiKey();
|
|
21
|
+
if (!apiKey)
|
|
22
|
+
this.error('Not logged in. Run: trillboards login');
|
|
23
|
+
let urlPath = '/v1/data/aggregate';
|
|
24
|
+
const params = {};
|
|
25
|
+
if (flags['group_by'])
|
|
26
|
+
params['group_by'] = flags['group_by'];
|
|
27
|
+
if (flags['metric'])
|
|
28
|
+
params['metric'] = flags['metric'];
|
|
29
|
+
if (flags['since'])
|
|
30
|
+
params['since'] = flags['since'];
|
|
31
|
+
const result = await apiRequest('GET', urlPath, {
|
|
32
|
+
apiKey,
|
|
33
|
+
baseUrl: flags['base-url'] ?? 'https://api.trillboards.com',
|
|
34
|
+
params: Object.keys(params).length > 0 ? params : undefined,
|
|
35
|
+
});
|
|
36
|
+
this.log(formatOutput(result, this.getFormat()));
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BaseCommand } from '../../base-command.js';
|
|
2
|
+
export default class Dataapilistscreens extends BaseCommand {
|
|
3
|
+
static description: string;
|
|
4
|
+
static examples: string[];
|
|
5
|
+
static args: {};
|
|
6
|
+
static flags: {
|
|
7
|
+
limit: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
8
|
+
offset: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
9
|
+
venue_type: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
|
+
country: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
11
|
+
'api-key': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
12
|
+
'base-url': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
13
|
+
format: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
14
|
+
};
|
|
15
|
+
run(): Promise<void>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
// AUTO-GENERATED from OpenAPI spec (data-api) -- do not edit manually
|
|
2
|
+
// Regenerate with: npm run generate
|
|
3
|
+
import { Flags } from '@oclif/core';
|
|
4
|
+
import { BaseCommand } from '../../base-command.js';
|
|
5
|
+
import { apiRequest } from '../../http.js';
|
|
6
|
+
import { formatOutput } from '../../output.js';
|
|
7
|
+
export default class Dataapilistscreens extends BaseCommand {
|
|
8
|
+
static description = "List screens visible to the caller.";
|
|
9
|
+
static examples = [`$ trillboards generated data-api-list-screens`];
|
|
10
|
+
static args = {};
|
|
11
|
+
static flags = {
|
|
12
|
+
...BaseCommand.baseFlags,
|
|
13
|
+
'limit': Flags.string({ description: 'limit' }),
|
|
14
|
+
'offset': Flags.string({ description: 'offset' }),
|
|
15
|
+
'venue_type': Flags.string({ description: 'Filter by venue taxonomy type (e.g. bar, restaurant).' }),
|
|
16
|
+
'country': Flags.string({ description: 'ISO-3166 alpha-2 country code.' }),
|
|
17
|
+
};
|
|
18
|
+
async run() {
|
|
19
|
+
const { args, flags } = await this.parse(Dataapilistscreens);
|
|
20
|
+
this.setParsedFlags(flags);
|
|
21
|
+
const apiKey = this.getApiKey();
|
|
22
|
+
if (!apiKey)
|
|
23
|
+
this.error('Not logged in. Run: trillboards login');
|
|
24
|
+
let urlPath = '/v1/data/screens';
|
|
25
|
+
const params = {};
|
|
26
|
+
if (flags['limit'])
|
|
27
|
+
params['limit'] = flags['limit'];
|
|
28
|
+
if (flags['offset'])
|
|
29
|
+
params['offset'] = flags['offset'];
|
|
30
|
+
if (flags['venue_type'])
|
|
31
|
+
params['venue_type'] = flags['venue_type'];
|
|
32
|
+
if (flags['country'])
|
|
33
|
+
params['country'] = flags['country'];
|
|
34
|
+
const result = await apiRequest('GET', urlPath, {
|
|
35
|
+
apiKey,
|
|
36
|
+
baseUrl: flags['base-url'] ?? 'https://api.trillboards.com',
|
|
37
|
+
params: Object.keys(params).length > 0 ? params : undefined,
|
|
38
|
+
});
|
|
39
|
+
this.log(formatOutput(result, this.getFormat()));
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BaseCommand } from '../../base-command.js';
|
|
2
|
+
export default class Dataapilookalikescreens extends BaseCommand {
|
|
3
|
+
static description: string;
|
|
4
|
+
static examples: string[];
|
|
5
|
+
static args: {};
|
|
6
|
+
static flags: {
|
|
7
|
+
screen_id: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
8
|
+
limit: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
9
|
+
min_similarity: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
|
+
'api-key': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
11
|
+
'base-url': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
12
|
+
format: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
13
|
+
};
|
|
14
|
+
run(): Promise<void>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// AUTO-GENERATED from OpenAPI spec (data-api) -- do not edit manually
|
|
2
|
+
// Regenerate with: npm run generate
|
|
3
|
+
import { Flags } from '@oclif/core';
|
|
4
|
+
import { BaseCommand } from '../../base-command.js';
|
|
5
|
+
import { apiRequest } from '../../http.js';
|
|
6
|
+
import { formatOutput } from '../../output.js';
|
|
7
|
+
export default class Dataapilookalikescreens extends BaseCommand {
|
|
8
|
+
static description = "Find screens with similar audience profiles.";
|
|
9
|
+
static examples = [`$ trillboards generated data-api-lookalike-screens`];
|
|
10
|
+
static args = {};
|
|
11
|
+
static flags = {
|
|
12
|
+
...BaseCommand.baseFlags,
|
|
13
|
+
'screen_id': Flags.string({ description: 'Internal screen identifier.' }),
|
|
14
|
+
'limit': Flags.string({ description: 'limit' }),
|
|
15
|
+
'min_similarity': Flags.string({ description: 'min_similarity' }),
|
|
16
|
+
};
|
|
17
|
+
async run() {
|
|
18
|
+
const { args, flags } = await this.parse(Dataapilookalikescreens);
|
|
19
|
+
this.setParsedFlags(flags);
|
|
20
|
+
const apiKey = this.getApiKey();
|
|
21
|
+
if (!apiKey)
|
|
22
|
+
this.error('Not logged in. Run: trillboards login');
|
|
23
|
+
let urlPath = '/v1/data/lookalike';
|
|
24
|
+
const params = {};
|
|
25
|
+
if (flags['screen_id'])
|
|
26
|
+
params['screen_id'] = flags['screen_id'];
|
|
27
|
+
if (flags['limit'])
|
|
28
|
+
params['limit'] = flags['limit'];
|
|
29
|
+
if (flags['min_similarity'])
|
|
30
|
+
params['min_similarity'] = flags['min_similarity'];
|
|
31
|
+
const result = await apiRequest('GET', urlPath, {
|
|
32
|
+
apiKey,
|
|
33
|
+
baseUrl: flags['base-url'] ?? 'https://api.trillboards.com',
|
|
34
|
+
params: Object.keys(params).length > 0 ? params : undefined,
|
|
35
|
+
});
|
|
36
|
+
this.log(formatOutput(result, this.getFormat()));
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BaseCommand } from '../../base-command.js';
|
|
2
|
+
export default class Dataapiquerydsl extends BaseCommand {
|
|
3
|
+
static description: string;
|
|
4
|
+
static examples: string[];
|
|
5
|
+
static args: {};
|
|
6
|
+
static flags: {
|
|
7
|
+
data: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
8
|
+
'api-key': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
9
|
+
'base-url': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
|
+
format: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
11
|
+
};
|
|
12
|
+
run(): Promise<void>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// AUTO-GENERATED from OpenAPI spec (data-api) -- do not edit manually
|
|
2
|
+
// Regenerate with: npm run generate
|
|
3
|
+
import { Flags } from '@oclif/core';
|
|
4
|
+
import { BaseCommand } from '../../base-command.js';
|
|
5
|
+
import { apiRequest } from '../../http.js';
|
|
6
|
+
import { formatOutput } from '../../output.js';
|
|
7
|
+
export default class Dataapiquerydsl extends BaseCommand {
|
|
8
|
+
static description = "Composable query DSL over approved datasets.";
|
|
9
|
+
static examples = [`$ trillboards generated data-api-query-dsl`];
|
|
10
|
+
static args = {};
|
|
11
|
+
static flags = {
|
|
12
|
+
...BaseCommand.baseFlags,
|
|
13
|
+
data: Flags.string({ description: 'JSON request body' }),
|
|
14
|
+
};
|
|
15
|
+
async run() {
|
|
16
|
+
const { args, flags } = await this.parse(Dataapiquerydsl);
|
|
17
|
+
this.setParsedFlags(flags);
|
|
18
|
+
const apiKey = this.getApiKey();
|
|
19
|
+
if (!apiKey)
|
|
20
|
+
this.error('Not logged in. Run: trillboards login');
|
|
21
|
+
let urlPath = '/v1/data/query';
|
|
22
|
+
const params = {};
|
|
23
|
+
const body = flags.data ? JSON.parse(flags.data) : undefined;
|
|
24
|
+
const result = await apiRequest('POST', urlPath, {
|
|
25
|
+
apiKey,
|
|
26
|
+
baseUrl: flags['base-url'] ?? 'https://api.trillboards.com',
|
|
27
|
+
params: Object.keys(params).length > 0 ? params : undefined,
|
|
28
|
+
body,
|
|
29
|
+
});
|
|
30
|
+
this.log(formatOutput(result, this.getFormat()));
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BaseCommand } from '../../base-command.js';
|
|
2
|
+
export default class Dataapiscreenaudiencehistory extends BaseCommand {
|
|
3
|
+
static description: string;
|
|
4
|
+
static examples: string[];
|
|
5
|
+
static args: {
|
|
6
|
+
screenId: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
7
|
+
};
|
|
8
|
+
static flags: {
|
|
9
|
+
since: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
|
+
until: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
11
|
+
limit: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
12
|
+
'api-key': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
13
|
+
'base-url': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
14
|
+
format: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
15
|
+
};
|
|
16
|
+
run(): Promise<void>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
// AUTO-GENERATED from OpenAPI spec (data-api) -- do not edit manually
|
|
2
|
+
// Regenerate with: npm run generate
|
|
3
|
+
import { Args, Flags } from '@oclif/core';
|
|
4
|
+
import { BaseCommand } from '../../base-command.js';
|
|
5
|
+
import { apiRequest } from '../../http.js';
|
|
6
|
+
import { formatOutput } from '../../output.js';
|
|
7
|
+
export default class Dataapiscreenaudiencehistory extends BaseCommand {
|
|
8
|
+
static description = "Historical audience_metrics rows for a screen.";
|
|
9
|
+
static examples = [`$ trillboards generated data-api-screen-audience-history`];
|
|
10
|
+
static args = {
|
|
11
|
+
screenId: Args.string({ description: 'Internal screen identifier.', required: true }),
|
|
12
|
+
};
|
|
13
|
+
static flags = {
|
|
14
|
+
...BaseCommand.baseFlags,
|
|
15
|
+
'since': Flags.string({ description: 'ISO-8601 start timestamp.' }),
|
|
16
|
+
'until': Flags.string({ description: 'ISO-8601 end timestamp.' }),
|
|
17
|
+
'limit': Flags.string({ description: 'limit' }),
|
|
18
|
+
};
|
|
19
|
+
async run() {
|
|
20
|
+
const { args, flags } = await this.parse(Dataapiscreenaudiencehistory);
|
|
21
|
+
this.setParsedFlags(flags);
|
|
22
|
+
const apiKey = this.getApiKey();
|
|
23
|
+
if (!apiKey)
|
|
24
|
+
this.error('Not logged in. Run: trillboards login');
|
|
25
|
+
let urlPath = '/v1/data/screens/{screenId}/history';
|
|
26
|
+
urlPath = urlPath.replace('{screenId}', args['screenId']);
|
|
27
|
+
const params = {};
|
|
28
|
+
if (flags['since'])
|
|
29
|
+
params['since'] = flags['since'];
|
|
30
|
+
if (flags['until'])
|
|
31
|
+
params['until'] = flags['until'];
|
|
32
|
+
if (flags['limit'])
|
|
33
|
+
params['limit'] = flags['limit'];
|
|
34
|
+
const result = await apiRequest('GET', urlPath, {
|
|
35
|
+
apiKey,
|
|
36
|
+
baseUrl: flags['base-url'] ?? 'https://api.trillboards.com',
|
|
37
|
+
params: Object.keys(params).length > 0 ? params : undefined,
|
|
38
|
+
});
|
|
39
|
+
this.log(formatOutput(result, this.getFormat()));
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BaseCommand } from '../../base-command.js';
|
|
2
|
+
export default class Dataapiscreenaudiencelive extends BaseCommand {
|
|
3
|
+
static description: string;
|
|
4
|
+
static examples: string[];
|
|
5
|
+
static args: {
|
|
6
|
+
screenId: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
7
|
+
};
|
|
8
|
+
static flags: {
|
|
9
|
+
'api-key': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
|
+
'base-url': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
11
|
+
format: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
12
|
+
};
|
|
13
|
+
run(): Promise<void>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// AUTO-GENERATED from OpenAPI spec (data-api) -- do not edit manually
|
|
2
|
+
// Regenerate with: npm run generate
|
|
3
|
+
import { Args } from '@oclif/core';
|
|
4
|
+
import { BaseCommand } from '../../base-command.js';
|
|
5
|
+
import { apiRequest } from '../../http.js';
|
|
6
|
+
import { formatOutput } from '../../output.js';
|
|
7
|
+
export default class Dataapiscreenaudiencelive extends BaseCommand {
|
|
8
|
+
static description = "Real-time audience snapshot for a screen.";
|
|
9
|
+
static examples = [`$ trillboards generated data-api-screen-audience-live`];
|
|
10
|
+
static args = {
|
|
11
|
+
screenId: Args.string({ description: 'Internal screen identifier.', required: true }),
|
|
12
|
+
};
|
|
13
|
+
static flags = {
|
|
14
|
+
...BaseCommand.baseFlags,
|
|
15
|
+
};
|
|
16
|
+
async run() {
|
|
17
|
+
const { args, flags } = await this.parse(Dataapiscreenaudiencelive);
|
|
18
|
+
this.setParsedFlags(flags);
|
|
19
|
+
const apiKey = this.getApiKey();
|
|
20
|
+
if (!apiKey)
|
|
21
|
+
this.error('Not logged in. Run: trillboards login');
|
|
22
|
+
let urlPath = '/v1/data/screens/{screenId}/audience';
|
|
23
|
+
urlPath = urlPath.replace('{screenId}', args['screenId']);
|
|
24
|
+
const params = {};
|
|
25
|
+
const result = await apiRequest('GET', urlPath, {
|
|
26
|
+
apiKey,
|
|
27
|
+
baseUrl: flags['base-url'] ?? 'https://api.trillboards.com',
|
|
28
|
+
params: Object.keys(params).length > 0 ? params : undefined,
|
|
29
|
+
});
|
|
30
|
+
this.log(formatOutput(result, this.getFormat()));
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BaseCommand } from '../../base-command.js';
|
|
2
|
+
export default class Dataapisemanticsearch extends BaseCommand {
|
|
3
|
+
static description: string;
|
|
4
|
+
static examples: string[];
|
|
5
|
+
static args: {};
|
|
6
|
+
static flags: {
|
|
7
|
+
q: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
8
|
+
limit: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
9
|
+
since: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
|
+
min_similarity: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
11
|
+
'api-key': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
12
|
+
'base-url': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
13
|
+
format: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
14
|
+
};
|
|
15
|
+
run(): Promise<void>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
// AUTO-GENERATED from OpenAPI spec (data-api) -- do not edit manually
|
|
2
|
+
// Regenerate with: npm run generate
|
|
3
|
+
import { Flags } from '@oclif/core';
|
|
4
|
+
import { BaseCommand } from '../../base-command.js';
|
|
5
|
+
import { apiRequest } from '../../http.js';
|
|
6
|
+
import { formatOutput } from '../../output.js';
|
|
7
|
+
export default class Dataapisemanticsearch extends BaseCommand {
|
|
8
|
+
static description = "Similarity search over scene embeddings.";
|
|
9
|
+
static examples = [`$ trillboards generated data-api-semantic-search`];
|
|
10
|
+
static args = {};
|
|
11
|
+
static flags = {
|
|
12
|
+
...BaseCommand.baseFlags,
|
|
13
|
+
'q': Flags.string({ description: 'q' }),
|
|
14
|
+
'limit': Flags.string({ description: 'limit' }),
|
|
15
|
+
'since': Flags.string({ description: 'Relative time window (e.g. "24h", "7d").' }),
|
|
16
|
+
'min_similarity': Flags.string({ description: 'min_similarity' }),
|
|
17
|
+
};
|
|
18
|
+
async run() {
|
|
19
|
+
const { args, flags } = await this.parse(Dataapisemanticsearch);
|
|
20
|
+
this.setParsedFlags(flags);
|
|
21
|
+
const apiKey = this.getApiKey();
|
|
22
|
+
if (!apiKey)
|
|
23
|
+
this.error('Not logged in. Run: trillboards login');
|
|
24
|
+
let urlPath = '/v1/data/semantic-search';
|
|
25
|
+
const params = {};
|
|
26
|
+
if (flags['q'])
|
|
27
|
+
params['q'] = flags['q'];
|
|
28
|
+
if (flags['limit'])
|
|
29
|
+
params['limit'] = flags['limit'];
|
|
30
|
+
if (flags['since'])
|
|
31
|
+
params['since'] = flags['since'];
|
|
32
|
+
if (flags['min_similarity'])
|
|
33
|
+
params['min_similarity'] = flags['min_similarity'];
|
|
34
|
+
const result = await apiRequest('GET', urlPath, {
|
|
35
|
+
apiKey,
|
|
36
|
+
baseUrl: flags['base-url'] ?? 'https://api.trillboards.com',
|
|
37
|
+
params: Object.keys(params).length > 0 ? params : undefined,
|
|
38
|
+
});
|
|
39
|
+
this.log(formatOutput(result, this.getFormat()));
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BaseCommand } from '../../base-command.js';
|
|
2
|
+
export default class Dataapistats extends BaseCommand {
|
|
3
|
+
static description: string;
|
|
4
|
+
static examples: string[];
|
|
5
|
+
static args: {};
|
|
6
|
+
static flags: {
|
|
7
|
+
'api-key': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
8
|
+
'base-url': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
9
|
+
format: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
|
+
};
|
|
11
|
+
run(): Promise<void>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { BaseCommand } from '../../base-command.js';
|
|
2
|
+
import { apiRequest } from '../../http.js';
|
|
3
|
+
import { formatOutput } from '../../output.js';
|
|
4
|
+
export default class Dataapistats extends BaseCommand {
|
|
5
|
+
static description = "Platform-wide counters.";
|
|
6
|
+
static examples = [`$ trillboards generated data-api-stats`];
|
|
7
|
+
static args = {};
|
|
8
|
+
static flags = {
|
|
9
|
+
...BaseCommand.baseFlags,
|
|
10
|
+
};
|
|
11
|
+
async run() {
|
|
12
|
+
const { args, flags } = await this.parse(Dataapistats);
|
|
13
|
+
this.setParsedFlags(flags);
|
|
14
|
+
const apiKey = this.getApiKey();
|
|
15
|
+
if (!apiKey)
|
|
16
|
+
this.error('Not logged in. Run: trillboards login');
|
|
17
|
+
let urlPath = '/v1/data/stats';
|
|
18
|
+
const params = {};
|
|
19
|
+
const result = await apiRequest('GET', urlPath, {
|
|
20
|
+
apiKey,
|
|
21
|
+
baseUrl: flags['base-url'] ?? 'https://api.trillboards.com',
|
|
22
|
+
params: Object.keys(params).length > 0 ? params : undefined,
|
|
23
|
+
});
|
|
24
|
+
this.log(formatOutput(result, this.getFormat()));
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BaseCommand } from '../../base-command.js';
|
|
2
|
+
export default class Dataapistream extends BaseCommand {
|
|
3
|
+
static description: string;
|
|
4
|
+
static examples: string[];
|
|
5
|
+
static args: {};
|
|
6
|
+
static flags: {
|
|
7
|
+
observation_family: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
8
|
+
venue_type: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
9
|
+
'api-key': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
|
+
'base-url': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
11
|
+
format: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
12
|
+
};
|
|
13
|
+
run(): Promise<void>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// AUTO-GENERATED from OpenAPI spec (data-api) -- do not edit manually
|
|
2
|
+
// Regenerate with: npm run generate
|
|
3
|
+
import { Flags } from '@oclif/core';
|
|
4
|
+
import { BaseCommand } from '../../base-command.js';
|
|
5
|
+
import { apiRequest } from '../../http.js';
|
|
6
|
+
import { formatOutput } from '../../output.js';
|
|
7
|
+
export default class Dataapistream extends BaseCommand {
|
|
8
|
+
static description = "Server-Sent Events stream of live audience/observation events.";
|
|
9
|
+
static examples = [`$ trillboards generated data-api-stream`];
|
|
10
|
+
static args = {};
|
|
11
|
+
static flags = {
|
|
12
|
+
...BaseCommand.baseFlags,
|
|
13
|
+
'observation_family': Flags.string({ description: 'observation_family' }),
|
|
14
|
+
'venue_type': Flags.string({ description: 'venue_type' }),
|
|
15
|
+
};
|
|
16
|
+
async run() {
|
|
17
|
+
const { args, flags } = await this.parse(Dataapistream);
|
|
18
|
+
this.setParsedFlags(flags);
|
|
19
|
+
const apiKey = this.getApiKey();
|
|
20
|
+
if (!apiKey)
|
|
21
|
+
this.error('Not logged in. Run: trillboards login');
|
|
22
|
+
let urlPath = '/v1/data/stream';
|
|
23
|
+
const params = {};
|
|
24
|
+
if (flags['observation_family'])
|
|
25
|
+
params['observation_family'] = flags['observation_family'];
|
|
26
|
+
if (flags['venue_type'])
|
|
27
|
+
params['venue_type'] = flags['venue_type'];
|
|
28
|
+
const result = await apiRequest('GET', urlPath, {
|
|
29
|
+
apiKey,
|
|
30
|
+
baseUrl: flags['base-url'] ?? 'https://api.trillboards.com',
|
|
31
|
+
params: Object.keys(params).length > 0 ? params : undefined,
|
|
32
|
+
});
|
|
33
|
+
this.log(formatOutput(result, this.getFormat()));
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BaseCommand } from '../../base-command.js';
|
|
2
|
+
export default class Dataapiusage extends BaseCommand {
|
|
3
|
+
static description: string;
|
|
4
|
+
static examples: string[];
|
|
5
|
+
static args: {};
|
|
6
|
+
static flags: {
|
|
7
|
+
days: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
8
|
+
'api-key': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
9
|
+
'base-url': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
|
+
format: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
11
|
+
};
|
|
12
|
+
run(): Promise<void>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// AUTO-GENERATED from OpenAPI spec (data-api) -- do not edit manually
|
|
2
|
+
// Regenerate with: npm run generate
|
|
3
|
+
import { Flags } from '@oclif/core';
|
|
4
|
+
import { BaseCommand } from '../../base-command.js';
|
|
5
|
+
import { apiRequest } from '../../http.js';
|
|
6
|
+
import { formatOutput } from '../../output.js';
|
|
7
|
+
export default class Dataapiusage extends BaseCommand {
|
|
8
|
+
static description = "API usage for the authenticated key (billing dashboard).";
|
|
9
|
+
static examples = [`$ trillboards generated data-api-usage`];
|
|
10
|
+
static args = {};
|
|
11
|
+
static flags = {
|
|
12
|
+
...BaseCommand.baseFlags,
|
|
13
|
+
'days': Flags.string({ description: 'days' }),
|
|
14
|
+
};
|
|
15
|
+
async run() {
|
|
16
|
+
const { args, flags } = await this.parse(Dataapiusage);
|
|
17
|
+
this.setParsedFlags(flags);
|
|
18
|
+
const apiKey = this.getApiKey();
|
|
19
|
+
if (!apiKey)
|
|
20
|
+
this.error('Not logged in. Run: trillboards login');
|
|
21
|
+
let urlPath = '/v1/data/usage';
|
|
22
|
+
const params = {};
|
|
23
|
+
if (flags['days'])
|
|
24
|
+
params['days'] = flags['days'];
|
|
25
|
+
const result = await apiRequest('GET', urlPath, {
|
|
26
|
+
apiKey,
|
|
27
|
+
baseUrl: flags['base-url'] ?? 'https://api.trillboards.com',
|
|
28
|
+
params: Object.keys(params).length > 0 ? params : undefined,
|
|
29
|
+
});
|
|
30
|
+
this.log(formatOutput(result, this.getFormat()));
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BaseCommand } from '../../base-command.js';
|
|
2
|
+
export default class Deviceotamanifest extends BaseCommand {
|
|
3
|
+
static description: string;
|
|
4
|
+
static examples: string[];
|
|
5
|
+
static args: {};
|
|
6
|
+
static flags: {
|
|
7
|
+
agent: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
8
|
+
'api-key': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
9
|
+
'base-url': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
|
+
format: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
11
|
+
};
|
|
12
|
+
run(): Promise<void>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// AUTO-GENERATED from OpenAPI spec (device-api) -- do not edit manually
|
|
2
|
+
// Regenerate with: npm run generate
|
|
3
|
+
import { Flags } from '@oclif/core';
|
|
4
|
+
import { BaseCommand } from '../../base-command.js';
|
|
5
|
+
import { apiRequest } from '../../http.js';
|
|
6
|
+
import { formatOutput } from '../../output.js';
|
|
7
|
+
export default class Deviceotamanifest extends BaseCommand {
|
|
8
|
+
static description = "Signed OTA manifest for managed-device update clients.";
|
|
9
|
+
static examples = [`$ trillboards generated device-ota-manifest`];
|
|
10
|
+
static args = {};
|
|
11
|
+
static flags = {
|
|
12
|
+
...BaseCommand.baseFlags,
|
|
13
|
+
'agent': Flags.string({ description: 'Optional agent type filter (`agent-core`, `agent-core-lite`, etc.). When omitted the caller receives the default manifest bundle.' }),
|
|
14
|
+
};
|
|
15
|
+
async run() {
|
|
16
|
+
const { args, flags } = await this.parse(Deviceotamanifest);
|
|
17
|
+
this.setParsedFlags(flags);
|
|
18
|
+
const apiKey = this.getApiKey();
|
|
19
|
+
if (!apiKey)
|
|
20
|
+
this.error('Not logged in. Run: trillboards login');
|
|
21
|
+
let urlPath = '/v2/device/ota/manifest';
|
|
22
|
+
const params = {};
|
|
23
|
+
if (flags['agent'])
|
|
24
|
+
params['agent'] = flags['agent'];
|
|
25
|
+
const result = await apiRequest('GET', urlPath, {
|
|
26
|
+
apiKey,
|
|
27
|
+
baseUrl: flags['base-url'] ?? 'https://api.trillboards.com',
|
|
28
|
+
params: Object.keys(params).length > 0 ? params : undefined,
|
|
29
|
+
});
|
|
30
|
+
this.log(formatOutput(result, this.getFormat()));
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BaseCommand } from '../../base-command.js';
|
|
2
|
+
export default class Examplehealthcheck extends BaseCommand {
|
|
3
|
+
static description: string;
|
|
4
|
+
static examples: string[];
|
|
5
|
+
static args: {};
|
|
6
|
+
static flags: {
|
|
7
|
+
verbose: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
8
|
+
'api-key': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
9
|
+
'base-url': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
|
+
format: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
11
|
+
};
|
|
12
|
+
run(): Promise<void>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// AUTO-GENERATED from OpenAPI spec (data-api) -- do not edit manually
|
|
2
|
+
// Regenerate with: npm run generate
|
|
3
|
+
import { Flags } from '@oclif/core';
|
|
4
|
+
import { BaseCommand } from '../../base-command.js';
|
|
5
|
+
import { apiRequest } from '../../http.js';
|
|
6
|
+
import { formatOutput } from '../../output.js';
|
|
7
|
+
export default class Examplehealthcheck extends BaseCommand {
|
|
8
|
+
static description = "Example healthcheck (Phase 3 pipeline proof)";
|
|
9
|
+
static examples = [`$ trillboards generated example-healthcheck`];
|
|
10
|
+
static args = {};
|
|
11
|
+
static flags = {
|
|
12
|
+
...BaseCommand.baseFlags,
|
|
13
|
+
'verbose': Flags.string({ description: 'When `true`, include diagnostic fields in the response.' }),
|
|
14
|
+
};
|
|
15
|
+
async run() {
|
|
16
|
+
const { args, flags } = await this.parse(Examplehealthcheck);
|
|
17
|
+
this.setParsedFlags(flags);
|
|
18
|
+
const apiKey = this.getApiKey();
|
|
19
|
+
if (!apiKey)
|
|
20
|
+
this.error('Not logged in. Run: trillboards login');
|
|
21
|
+
let urlPath = '/v1/example/healthcheck';
|
|
22
|
+
const params = {};
|
|
23
|
+
if (flags['verbose'])
|
|
24
|
+
params['verbose'] = flags['verbose'];
|
|
25
|
+
const result = await apiRequest('GET', urlPath, {
|
|
26
|
+
apiKey,
|
|
27
|
+
baseUrl: flags['base-url'] ?? 'https://api.trillboards.com',
|
|
28
|
+
params: Object.keys(params).length > 0 ? params : undefined,
|
|
29
|
+
});
|
|
30
|
+
this.log(formatOutput(result, this.getFormat()));
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BaseCommand } from '../../base-command.js';
|
|
2
|
+
export default class Playgrounddryrun extends BaseCommand {
|
|
3
|
+
static description: string;
|
|
4
|
+
static examples: string[];
|
|
5
|
+
static args: {
|
|
6
|
+
operation_id: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
7
|
+
};
|
|
8
|
+
static flags: {
|
|
9
|
+
'api-key': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
|
+
'base-url': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
11
|
+
format: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
12
|
+
};
|
|
13
|
+
run(): Promise<void>;
|
|
14
|
+
}
|