@axivoy/api 2.38.0 → 2.40.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.
@@ -13203,6 +13203,28 @@ export interface paths {
13203
13203
  patch?: never;
13204
13204
  trace?: never;
13205
13205
  };
13206
+ "/ops/recruiting.advertising.ads.copy": {
13207
+ parameters: {
13208
+ query?: never;
13209
+ header?: never;
13210
+ path?: never;
13211
+ cookie?: never;
13212
+ };
13213
+ get?: never;
13214
+ put?: never;
13215
+ /**
13216
+ * Run an ended ad again
13217
+ * @description Runs an ended ad again as a new ad in the same ad group, with the same text and media.
13218
+ *
13219
+ * Kind: `mutate`. Errors use the envelope `{error: {code, reason, message, fields}}`.
13220
+ */
13221
+ post: operations["ops.recruiting.advertising.ads.copy"];
13222
+ delete?: never;
13223
+ options?: never;
13224
+ head?: never;
13225
+ patch?: never;
13226
+ trace?: never;
13227
+ };
13206
13228
  "/ops/recruiting.advertising.advertise.approve": {
13207
13229
  parameters: {
13208
13230
  query?: never;
@@ -13830,7 +13852,7 @@ export interface paths {
13830
13852
  put?: never;
13831
13853
  /**
13832
13854
  * Run an advertising test
13833
- * @description Starts a test on a campaign: rotating ads, a different budget or a different landing page.
13855
+ * @description Starts a test on a campaign: a different monthly budget for a few weeks, or a different job page.
13834
13856
  *
13835
13857
  * Kind: `mutate`. Errors use the envelope `{error: {code, reason, message, fields}}`.
13836
13858
  */
@@ -119789,6 +119811,125 @@ export interface operations {
119789
119811
  };
119790
119812
  };
119791
119813
  };
119814
+ "ops.recruiting.advertising.ads.copy": {
119815
+ parameters: {
119816
+ query?: never;
119817
+ header?: {
119818
+ /** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
119819
+ "Idempotency-Key"?: string;
119820
+ /** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
119821
+ "Axivoy-Dry-Run"?: "true" | "false";
119822
+ };
119823
+ path?: never;
119824
+ cookie?: never;
119825
+ };
119826
+ requestBody?: {
119827
+ content: {
119828
+ /**
119829
+ * @example {
119830
+ * "ad_id": 2
119831
+ * }
119832
+ */
119833
+ "application/json": {
119834
+ /** @description The ended ad to run again */
119835
+ ad_id: number;
119836
+ };
119837
+ };
119838
+ };
119839
+ responses: {
119840
+ /** @description The operation ran. */
119841
+ 200: {
119842
+ headers: {
119843
+ [name: string]: unknown;
119844
+ };
119845
+ content: {
119846
+ /**
119847
+ * @example {
119848
+ * "result": {
119849
+ * "message": "The ad is running again.",
119850
+ * "ad_id": 8,
119851
+ * "copied_from_ad_id": 2
119852
+ * }
119853
+ * }
119854
+ */
119855
+ "application/json": {
119856
+ result: {
119857
+ /** @description What happened, in the operator's words */
119858
+ message: string;
119859
+ /** @description The new ad */
119860
+ ad_id: number;
119861
+ /** @description The ended ad it copies */
119862
+ copied_from_ad_id: number;
119863
+ };
119864
+ };
119865
+ };
119866
+ };
119867
+ 202: components["responses"]["Proposal"];
119868
+ /** @description Refused: credits_exhausted. */
119869
+ 402: {
119870
+ headers: {
119871
+ [name: string]: unknown;
119872
+ };
119873
+ content: {
119874
+ "application/json": components["schemas"]["OperationError"];
119875
+ };
119876
+ };
119877
+ /** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
119878
+ 403: {
119879
+ headers: {
119880
+ [name: string]: unknown;
119881
+ };
119882
+ content: {
119883
+ "application/json": components["schemas"]["OperationError"];
119884
+ };
119885
+ };
119886
+ /** @description Refused: not_found. */
119887
+ 404: {
119888
+ headers: {
119889
+ [name: string]: unknown;
119890
+ };
119891
+ content: {
119892
+ "application/json": components["schemas"]["OperationError"];
119893
+ };
119894
+ };
119895
+ /** @description Refused: idempotency_conflict, stale_state. */
119896
+ 409: {
119897
+ headers: {
119898
+ [name: string]: unknown;
119899
+ };
119900
+ content: {
119901
+ "application/json": components["schemas"]["OperationError"];
119902
+ };
119903
+ };
119904
+ /** @description Refused: operation_retired. */
119905
+ 410: {
119906
+ headers: {
119907
+ [name: string]: unknown;
119908
+ };
119909
+ content: {
119910
+ "application/json": components["schemas"]["OperationError"];
119911
+ };
119912
+ };
119913
+ /** @description Refused: invalid_input, domain_rule. */
119914
+ 422: {
119915
+ headers: {
119916
+ [name: string]: unknown;
119917
+ };
119918
+ content: {
119919
+ "application/json": components["schemas"]["OperationError"];
119920
+ };
119921
+ };
119922
+ /** @description Refused: rate_limited. */
119923
+ 429: {
119924
+ headers: {
119925
+ [name: string]: unknown;
119926
+ };
119927
+ content: {
119928
+ "application/json": components["schemas"]["OperationError"];
119929
+ };
119930
+ };
119931
+ };
119932
+ };
119792
119933
  "ops.recruiting.advertising.advertise.approve": {
119793
119934
  parameters: {
119794
119935
  query?: never;
@@ -119954,6 +120095,8 @@ export interface operations {
119954
120095
  videos_per_group?: number | string | null;
119955
120096
  /** @description Video length: 6, 10, 15, 20, 30 seconds */
119956
120097
  video_length_seconds?: number | string | null;
120098
+ /** @description An ended campaign whose ads to reuse instead of writing new ones */
120099
+ copy_ads_from_campaign_id?: number | string | null;
119957
120100
  };
119958
120101
  };
119959
120102
  };
@@ -123205,22 +123348,20 @@ export interface operations {
123205
123348
  /**
123206
123349
  * @example {
123207
123350
  * "campaign_id": 1,
123208
- * "kind": "creative_rotation",
123209
- * "ad_set_id": 2
123351
+ * "kind": "budget_structure",
123352
+ * "challenger_budget_cents": 600000
123210
123353
  * }
123211
123354
  */
123212
123355
  "application/json": {
123213
123356
  /** @description The advertised campaign */
123214
123357
  campaign_id: number;
123215
- /** @description One of creative_rotation, budget_structure, landing_page */
123358
+ /** @description One of budget_structure, landing_page */
123216
123359
  kind: string | null;
123217
123360
  /** @description What the test should answer (300 characters at most); left empty uses a plain default */
123218
123361
  hypothesis?: string | null;
123219
- /** @description The ad group to test in */
123220
- ad_set_id?: number | string | null;
123221
123362
  /** @description Budget test: the challenger's monthly budget in cents */
123222
123363
  challenger_budget_cents?: number | string | null;
123223
- /** @description Ad test: the ad versions that challenge the current ones */
123364
+ /** @description Job page test: the page versions that challenge the live one */
123224
123365
  challenger_version_ids?: (string | number | boolean | null)[] | null;
123225
123366
  /** @description Fewest days before deciding (1 to 90) */
123226
123367
  min_runtime_days?: number | string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axivoy/api",
3
- "version": "2.38.0",
3
+ "version": "2.40.0",
4
4
  "description": "Typed client for the Axivoy API: operations, webhooks and errors.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://app.axivoy.ai/developers",