@trillboards/cli 0.1.4 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/README.md +315 -108
  2. package/dist/commands/generated/generated-configure-creative-feedback-brand.d.ts +15 -0
  3. package/dist/commands/generated/generated-configure-creative-feedback-brand.js +35 -0
  4. package/dist/commands/generated/generated-creative-feedback-experiment-create.d.ts +13 -0
  5. package/dist/commands/generated/generated-creative-feedback-experiment-create.js +32 -0
  6. package/dist/commands/generated/generated-creative-feedback-experiment-get.d.ts +14 -0
  7. package/dist/commands/generated/generated-creative-feedback-experiment-get.js +32 -0
  8. package/dist/commands/generated/generated-creative-feedback-policy-update.d.ts +15 -0
  9. package/dist/commands/generated/generated-creative-feedback-policy-update.js +35 -0
  10. package/dist/commands/generated/generated-creative-feedback-rewards-get.d.ts +19 -0
  11. package/dist/commands/generated/generated-creative-feedback-rewards-get.js +47 -0
  12. package/dist/commands/generated/generated-creative-feedback-variants-register.d.ts +15 -0
  13. package/dist/commands/generated/generated-creative-feedback-variants-register.js +35 -0
  14. package/dist/commands/generated/generated-error-code-get.d.ts +14 -0
  15. package/dist/commands/generated/generated-error-code-get.js +32 -0
  16. package/dist/commands/generated/generated-error-codes-list.d.ts +12 -0
  17. package/dist/commands/generated/generated-error-codes-list.js +26 -0
  18. package/dist/commands/generated/generated-generate-creative-feedback-creative.d.ts +15 -0
  19. package/dist/commands/generated/generated-generate-creative-feedback-creative.js +35 -0
  20. package/dist/commands/generated/generated-import-creative-feedback-creative.d.ts +15 -0
  21. package/dist/commands/generated/generated-import-creative-feedback-creative.js +35 -0
  22. package/dist/commands/generated/generated-review-creative-feedback-creative.d.ts +15 -0
  23. package/dist/commands/generated/generated-review-creative-feedback-creative.js +35 -0
  24. package/dist/commands/generated/generated-stop-creative-feedback-experiment.d.ts +15 -0
  25. package/dist/commands/generated/generated-stop-creative-feedback-experiment.js +35 -0
  26. package/oclif.manifest.json +806 -19
  27. package/package.json +2 -4
@@ -0,0 +1,15 @@
1
+ import { BaseCommand } from '../../base-command.js';
2
+ export default class Configurecreativefeedbackbrand extends BaseCommand {
3
+ static description: string;
4
+ static examples: string[];
5
+ static args: {
6
+ experiment_id: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
7
+ };
8
+ static flags: {
9
+ data: 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,35 @@
1
+ // AUTO-GENERATED from OpenAPI spec (partner-api-generated) -- 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 Configurecreativefeedbackbrand extends BaseCommand {
8
+ static description = "Configure your native brand profile and enable its booked reactive campaign";
9
+ static examples = [`$ trillboards generated configure-creative-feedback-brand`];
10
+ static args = {
11
+ experiment_id: Args.string({ description: 'Native experiment ID returned by create_creative_experiment.', required: true }),
12
+ };
13
+ static flags = {
14
+ ...BaseCommand.baseFlags,
15
+ data: Flags.string({ description: 'JSON request body' }),
16
+ };
17
+ async run() {
18
+ const { args, flags } = await this.parse(Configurecreativefeedbackbrand);
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/partner/creative-experiments/{experiment_id}/brand';
24
+ urlPath = urlPath.replace('{experiment_id}', args['experiment_id']);
25
+ const params = {};
26
+ const body = flags.data ? JSON.parse(flags.data) : undefined;
27
+ const result = await apiRequest('POST', urlPath, {
28
+ apiKey,
29
+ baseUrl: flags['base-url'] ?? 'https://api.trillboards.com',
30
+ params: Object.keys(params).length > 0 ? params : undefined,
31
+ body,
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 Createcreativefeedbackexperiment 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 (partner-api-generated) -- 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 Createcreativefeedbackexperiment extends BaseCommand {
8
+ static description = "Create an experiment on a funded native media-buy placement";
9
+ static examples = [`$ trillboards generated creative-feedback-experiment create`];
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(Createcreativefeedbackexperiment);
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/partner/creative-experiments';
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,14 @@
1
+ import { BaseCommand } from '../../base-command.js';
2
+ export default class Getcreativefeedbackexperiment extends BaseCommand {
3
+ static description: string;
4
+ static examples: string[];
5
+ static args: {
6
+ experiment_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
+ }
@@ -0,0 +1,32 @@
1
+ // AUTO-GENERATED from OpenAPI spec (partner-api-generated) -- 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 Getcreativefeedbackexperiment extends BaseCommand {
8
+ static description = "Read your native experiment, policy and latest 500 owned creative recovery records";
9
+ static examples = [`$ trillboards generated creative-feedback-experiment get`];
10
+ static args = {
11
+ experiment_id: Args.string({ description: 'Native experiment ID returned by create_creative_experiment.', required: true }),
12
+ };
13
+ static flags = {
14
+ ...BaseCommand.baseFlags,
15
+ };
16
+ async run() {
17
+ const { args, flags } = await this.parse(Getcreativefeedbackexperiment);
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/partner/creative-experiments/{experiment_id}';
23
+ urlPath = urlPath.replace('{experiment_id}', args['experiment_id']);
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,15 @@
1
+ import { BaseCommand } from '../../base-command.js';
2
+ export default class Updatecreativefeedbackpolicy extends BaseCommand {
3
+ static description: string;
4
+ static examples: string[];
5
+ static args: {
6
+ experiment_id: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
7
+ };
8
+ static flags: {
9
+ data: 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,35 @@
1
+ // AUTO-GENERATED from OpenAPI spec (partner-api-generated) -- 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 Updatecreativefeedbackpolicy extends BaseCommand {
8
+ static description = "Replace native creative weights at the expected policy version";
9
+ static examples = [`$ trillboards generated creative-feedback-policy update`];
10
+ static args = {
11
+ experiment_id: Args.string({ description: 'Native experiment ID returned by create_creative_experiment.', required: true }),
12
+ };
13
+ static flags = {
14
+ ...BaseCommand.baseFlags,
15
+ data: Flags.string({ description: 'JSON request body' }),
16
+ };
17
+ async run() {
18
+ const { args, flags } = await this.parse(Updatecreativefeedbackpolicy);
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/partner/creative-experiments/{experiment_id}/policy';
24
+ urlPath = urlPath.replace('{experiment_id}', args['experiment_id']);
25
+ const params = {};
26
+ const body = flags.data ? JSON.parse(flags.data) : undefined;
27
+ const result = await apiRequest('PUT', urlPath, {
28
+ apiKey,
29
+ baseUrl: flags['base-url'] ?? 'https://api.trillboards.com',
30
+ params: Object.keys(params).length > 0 ? params : undefined,
31
+ body,
32
+ });
33
+ this.log(formatOutput(result, this.getFormat()));
34
+ }
35
+ }
@@ -0,0 +1,19 @@
1
+ import { BaseCommand } from '../../base-command.js';
2
+ export default class Getcreativefeedbackrewards extends BaseCommand {
3
+ static description: string;
4
+ static examples: string[];
5
+ static args: {
6
+ experiment_id: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
7
+ };
8
+ static flags: {
9
+ from: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
10
+ to: 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
+ cursor: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
13
+ idempotency_key: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
14
+ 'api-key': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
15
+ 'base-url': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
16
+ format: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
17
+ };
18
+ run(): Promise<void>;
19
+ }
@@ -0,0 +1,47 @@
1
+ // AUTO-GENERATED from OpenAPI spec (partner-api-generated) -- 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 Getcreativefeedbackrewards extends BaseCommand {
8
+ static description = "Read a metered page of latest measured native play states";
9
+ static examples = [`$ trillboards generated creative-feedback-rewards get`];
10
+ static args = {
11
+ experiment_id: Args.string({ description: 'Native experiment ID returned by create_creative_experiment.', required: true }),
12
+ };
13
+ static flags = {
14
+ ...BaseCommand.baseFlags,
15
+ 'from': Flags.string({ description: 'Inclusive first play date, YYYY-MM-DD; date range is at most 31 days.' }),
16
+ 'to': Flags.string({ description: 'Inclusive last play date, YYYY-MM-DD; date range is at most 31 days.' }),
17
+ 'limit': Flags.string({ description: 'Maximum native play states returned on this metered page.' }),
18
+ 'cursor': Flags.string({ description: 'Opaque next_cursor from this same date scope; rewind after scan_complete.' }),
19
+ 'idempotency_key': Flags.string({ description: 'Unique caller-owned billing key for this page; committed retries return the receipt, not another read.' }),
20
+ };
21
+ async run() {
22
+ const { args, flags } = await this.parse(Getcreativefeedbackrewards);
23
+ this.setParsedFlags(flags);
24
+ const apiKey = this.getApiKey();
25
+ if (!apiKey)
26
+ this.error('Not logged in. Run: trillboards login');
27
+ let urlPath = '/v1/partner/creative-experiments/{experiment_id}/rewards';
28
+ urlPath = urlPath.replace('{experiment_id}', args['experiment_id']);
29
+ const params = {};
30
+ if (flags['from'])
31
+ params['from'] = flags['from'];
32
+ if (flags['to'])
33
+ params['to'] = flags['to'];
34
+ if (flags['limit'])
35
+ params['limit'] = flags['limit'];
36
+ if (flags['cursor'])
37
+ params['cursor'] = flags['cursor'];
38
+ if (flags['idempotency_key'])
39
+ params['idempotency_key'] = flags['idempotency_key'];
40
+ const result = await apiRequest('GET', urlPath, {
41
+ apiKey,
42
+ baseUrl: flags['base-url'] ?? 'https://api.trillboards.com',
43
+ params: Object.keys(params).length > 0 ? params : undefined,
44
+ });
45
+ this.log(formatOutput(result, this.getFormat()));
46
+ }
47
+ }
@@ -0,0 +1,15 @@
1
+ import { BaseCommand } from '../../base-command.js';
2
+ export default class Registercreativefeedbackvariants extends BaseCommand {
3
+ static description: string;
4
+ static examples: string[];
5
+ static args: {
6
+ experiment_id: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
7
+ };
8
+ static flags: {
9
+ data: 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,35 @@
1
+ // AUTO-GENERATED from OpenAPI spec (partner-api-generated) -- 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 Registercreativefeedbackvariants extends BaseCommand {
8
+ static description = "Register approved native generated creative variants";
9
+ static examples = [`$ trillboards generated creative-feedback-variants register`];
10
+ static args = {
11
+ experiment_id: Args.string({ description: 'Native experiment ID returned by create_creative_experiment.', required: true }),
12
+ };
13
+ static flags = {
14
+ ...BaseCommand.baseFlags,
15
+ data: Flags.string({ description: 'JSON request body' }),
16
+ };
17
+ async run() {
18
+ const { args, flags } = await this.parse(Registercreativefeedbackvariants);
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/partner/creative-experiments/{experiment_id}/variants';
24
+ urlPath = urlPath.replace('{experiment_id}', args['experiment_id']);
25
+ const params = {};
26
+ const body = flags.data ? JSON.parse(flags.data) : undefined;
27
+ const result = await apiRequest('POST', urlPath, {
28
+ apiKey,
29
+ baseUrl: flags['base-url'] ?? 'https://api.trillboards.com',
30
+ params: Object.keys(params).length > 0 ? params : undefined,
31
+ body,
32
+ });
33
+ this.log(formatOutput(result, this.getFormat()));
34
+ }
35
+ }
@@ -0,0 +1,14 @@
1
+ import { BaseCommand } from '../../base-command.js';
2
+ export default class Geterrorcode extends BaseCommand {
3
+ static description: string;
4
+ static examples: string[];
5
+ static args: {
6
+ code: 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 (partner-api-generated) -- 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 Geterrorcode extends BaseCommand {
8
+ static description = "Look up a single error code";
9
+ static examples = [`$ trillboards generated error-code get`];
10
+ static args = {
11
+ code: Args.string({ description: 'A stable error code from the catalog. See GET /v1/errors for the full list.', required: true }),
12
+ };
13
+ static flags = {
14
+ ...BaseCommand.baseFlags,
15
+ };
16
+ async run() {
17
+ const { args, flags } = await this.parse(Geterrorcode);
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/errors/{code}';
23
+ urlPath = urlPath.replace('{code}', args['code']);
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,12 @@
1
+ import { BaseCommand } from '../../base-command.js';
2
+ export default class Listerrorcodes 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 Listerrorcodes extends BaseCommand {
5
+ static description = "List all error codes";
6
+ static examples = [`$ trillboards generated error-codes list`];
7
+ static args = {};
8
+ static flags = {
9
+ ...BaseCommand.baseFlags,
10
+ };
11
+ async run() {
12
+ const { args, flags } = await this.parse(Listerrorcodes);
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/errors';
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,15 @@
1
+ import { BaseCommand } from '../../base-command.js';
2
+ export default class Generatecreativefeedbackcreative extends BaseCommand {
3
+ static description: string;
4
+ static examples: string[];
5
+ static args: {
6
+ experiment_id: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
7
+ };
8
+ static flags: {
9
+ data: 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,35 @@
1
+ // AUTO-GENERATED from OpenAPI spec (partner-api-generated) -- 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 Generatecreativefeedbackcreative extends BaseCommand {
8
+ static description = "Generate a native brand creative for explicit review and moderation";
9
+ static examples = [`$ trillboards generated generate-creative-feedback-creative`];
10
+ static args = {
11
+ experiment_id: Args.string({ description: 'Native experiment ID returned by create_creative_experiment.', required: true }),
12
+ };
13
+ static flags = {
14
+ ...BaseCommand.baseFlags,
15
+ data: Flags.string({ description: 'JSON request body' }),
16
+ };
17
+ async run() {
18
+ const { args, flags } = await this.parse(Generatecreativefeedbackcreative);
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/partner/creative-experiments/{experiment_id}/creatives/generate';
24
+ urlPath = urlPath.replace('{experiment_id}', args['experiment_id']);
25
+ const params = {};
26
+ const body = flags.data ? JSON.parse(flags.data) : undefined;
27
+ const result = await apiRequest('POST', urlPath, {
28
+ apiKey,
29
+ baseUrl: flags['base-url'] ?? 'https://api.trillboards.com',
30
+ params: Object.keys(params).length > 0 ? params : undefined,
31
+ body,
32
+ });
33
+ this.log(formatOutput(result, this.getFormat()));
34
+ }
35
+ }
@@ -0,0 +1,15 @@
1
+ import { BaseCommand } from '../../base-command.js';
2
+ export default class Importcreativefeedbackcreative extends BaseCommand {
3
+ static description: string;
4
+ static examples: string[];
5
+ static args: {
6
+ experiment_id: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
7
+ };
8
+ static flags: {
9
+ data: 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,35 @@
1
+ // AUTO-GENERATED from OpenAPI spec (partner-api-generated) -- 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 Importcreativefeedbackcreative extends BaseCommand {
8
+ static description = "Import an AI model’s image through native bytes, moderation and brand review";
9
+ static examples = [`$ trillboards generated import-creative-feedback-creative`];
10
+ static args = {
11
+ experiment_id: Args.string({ description: 'Native experiment ID returned by create_creative_experiment.', required: true }),
12
+ };
13
+ static flags = {
14
+ ...BaseCommand.baseFlags,
15
+ data: Flags.string({ description: 'JSON request body' }),
16
+ };
17
+ async run() {
18
+ const { args, flags } = await this.parse(Importcreativefeedbackcreative);
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/partner/creative-experiments/{experiment_id}/creatives/import';
24
+ urlPath = urlPath.replace('{experiment_id}', args['experiment_id']);
25
+ const params = {};
26
+ const body = flags.data ? JSON.parse(flags.data) : undefined;
27
+ const result = await apiRequest('POST', urlPath, {
28
+ apiKey,
29
+ baseUrl: flags['base-url'] ?? 'https://api.trillboards.com',
30
+ params: Object.keys(params).length > 0 ? params : undefined,
31
+ body,
32
+ });
33
+ this.log(formatOutput(result, this.getFormat()));
34
+ }
35
+ }
@@ -0,0 +1,15 @@
1
+ import { BaseCommand } from '../../base-command.js';
2
+ export default class Reviewcreativefeedbackcreative extends BaseCommand {
3
+ static description: string;
4
+ static examples: string[];
5
+ static args: {
6
+ experiment_id: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
7
+ };
8
+ static flags: {
9
+ data: 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,35 @@
1
+ // AUTO-GENERATED from OpenAPI spec (partner-api-generated) -- 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 Reviewcreativefeedbackcreative extends BaseCommand {
8
+ static description = "Approve or reject your generated creative using native brand review";
9
+ static examples = [`$ trillboards generated review-creative-feedback-creative`];
10
+ static args = {
11
+ experiment_id: Args.string({ description: 'Native experiment ID returned by create_creative_experiment.', required: true }),
12
+ };
13
+ static flags = {
14
+ ...BaseCommand.baseFlags,
15
+ data: Flags.string({ description: 'JSON request body' }),
16
+ };
17
+ async run() {
18
+ const { args, flags } = await this.parse(Reviewcreativefeedbackcreative);
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/partner/creative-experiments/{experiment_id}/creatives/review';
24
+ urlPath = urlPath.replace('{experiment_id}', args['experiment_id']);
25
+ const params = {};
26
+ const body = flags.data ? JSON.parse(flags.data) : undefined;
27
+ const result = await apiRequest('POST', urlPath, {
28
+ apiKey,
29
+ baseUrl: flags['base-url'] ?? 'https://api.trillboards.com',
30
+ params: Object.keys(params).length > 0 ? params : undefined,
31
+ body,
32
+ });
33
+ this.log(formatOutput(result, this.getFormat()));
34
+ }
35
+ }
@@ -0,0 +1,15 @@
1
+ import { BaseCommand } from '../../base-command.js';
2
+ export default class Stopcreativefeedbackexperiment extends BaseCommand {
3
+ static description: string;
4
+ static examples: string[];
5
+ static args: {
6
+ experiment_id: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
7
+ };
8
+ static flags: {
9
+ data: 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,35 @@
1
+ // AUTO-GENERATED from OpenAPI spec (partner-api-generated) -- 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 Stopcreativefeedbackexperiment extends BaseCommand {
8
+ static description = "Stop the native experiment at the expected policy version";
9
+ static examples = [`$ trillboards generated stop-creative-feedback-experiment`];
10
+ static args = {
11
+ experiment_id: Args.string({ description: 'Native experiment ID returned by create_creative_experiment.', required: true }),
12
+ };
13
+ static flags = {
14
+ ...BaseCommand.baseFlags,
15
+ data: Flags.string({ description: 'JSON request body' }),
16
+ };
17
+ async run() {
18
+ const { args, flags } = await this.parse(Stopcreativefeedbackexperiment);
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/partner/creative-experiments/{experiment_id}/stop';
24
+ urlPath = urlPath.replace('{experiment_id}', args['experiment_id']);
25
+ const params = {};
26
+ const body = flags.data ? JSON.parse(flags.data) : undefined;
27
+ const result = await apiRequest('POST', urlPath, {
28
+ apiKey,
29
+ baseUrl: flags['base-url'] ?? 'https://api.trillboards.com',
30
+ params: Object.keys(params).length > 0 ? params : undefined,
31
+ body,
32
+ });
33
+ this.log(formatOutput(result, this.getFormat()));
34
+ }
35
+ }