@axivoy/api 2.49.0 → 2.52.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.
@@ -13137,6 +13137,50 @@ export interface paths {
13137
13137
  patch?: never;
13138
13138
  trace?: never;
13139
13139
  };
13140
+ "/ops/recruiting.advertising.ad_sets.ads.draft": {
13141
+ parameters: {
13142
+ query?: never;
13143
+ header?: never;
13144
+ path?: never;
13145
+ cookie?: never;
13146
+ };
13147
+ get?: never;
13148
+ put?: never;
13149
+ /**
13150
+ * Write new ads for a running ad group
13151
+ * @description Writes 1 to 3 new ads for a running ad group as drafts, optionally built on an ad that already works, for a person to check before they go live.
13152
+ *
13153
+ * Kind: `mutate`. Errors use the envelope `{error: {code, reason, message, fields}}`.
13154
+ */
13155
+ post: operations["ops.recruiting.advertising.ad_sets.ads.draft"];
13156
+ delete?: never;
13157
+ options?: never;
13158
+ head?: never;
13159
+ patch?: never;
13160
+ trace?: never;
13161
+ };
13162
+ "/ops/recruiting.advertising.ad_sets.ads.launch": {
13163
+ parameters: {
13164
+ query?: never;
13165
+ header?: never;
13166
+ path?: never;
13167
+ cookie?: never;
13168
+ };
13169
+ get?: never;
13170
+ put?: never;
13171
+ /**
13172
+ * Put new ads live
13173
+ * @description Puts a running ad group's ready new ads live and pauses the ads named in the same change, so the group re-learns once.
13174
+ *
13175
+ * Kind: `mutate`. Errors use the envelope `{error: {code, reason, message, fields}}`.
13176
+ */
13177
+ post: operations["ops.recruiting.advertising.ad_sets.ads.launch"];
13178
+ delete?: never;
13179
+ options?: never;
13180
+ head?: never;
13181
+ patch?: never;
13182
+ trace?: never;
13183
+ };
13140
13184
  "/ops/recruiting.advertising.ad_sets.area.estimate": {
13141
13185
  parameters: {
13142
13186
  query?: never;
@@ -13643,6 +13687,28 @@ export interface paths {
13643
13687
  patch?: never;
13644
13688
  trace?: never;
13645
13689
  };
13690
+ "/ops/recruiting.advertising.campaigns.combine": {
13691
+ parameters: {
13692
+ query?: never;
13693
+ header?: never;
13694
+ path?: never;
13695
+ cookie?: never;
13696
+ };
13697
+ get?: never;
13698
+ put?: never;
13699
+ /**
13700
+ * Combine two campaigns
13701
+ * @description Combines two running campaigns of the same job on the same platform: copies the chosen ads into the kept campaign, pauses the other campaign, and can move its monthly budget over.
13702
+ *
13703
+ * Kind: `mutate`. Errors use the envelope `{error: {code, reason, message, fields}}`.
13704
+ */
13705
+ post: operations["ops.recruiting.advertising.campaigns.combine"];
13706
+ delete?: never;
13707
+ options?: never;
13708
+ head?: never;
13709
+ patch?: never;
13710
+ trace?: never;
13711
+ };
13646
13712
  "/ops/recruiting.advertising.campaigns.drift.adopt": {
13647
13713
  parameters: {
13648
13714
  query?: never;
@@ -119561,6 +119627,237 @@ export interface operations {
119561
119627
  };
119562
119628
  };
119563
119629
  };
119630
+ "ops.recruiting.advertising.ad_sets.ads.draft": {
119631
+ parameters: {
119632
+ query?: never;
119633
+ header?: {
119634
+ /** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
119635
+ "Idempotency-Key"?: string;
119636
+ /** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
119637
+ "Axivoy-Dry-Run"?: "true" | "false";
119638
+ };
119639
+ path?: never;
119640
+ cookie?: never;
119641
+ };
119642
+ requestBody?: {
119643
+ content: {
119644
+ "application/json": {
119645
+ /** @description The ad group */
119646
+ ad_set_id: number;
119647
+ /** @description 1 to 3 ads (2 when left out) */
119648
+ count?: number;
119649
+ /**
119650
+ * @description photo, slideshow (TikTok only) or video; the kind of the ad built on when left out
119651
+ * @enum {string}
119652
+ */
119653
+ format?: "photo" | "slideshow" | "video";
119654
+ /** @description An ad of the same job in any campaign to build on */
119655
+ build_on_ad_id?: number;
119656
+ /** @description Up to 600 characters on what should be different */
119657
+ brief?: string;
119658
+ };
119659
+ };
119660
+ };
119661
+ responses: {
119662
+ /** @description The operation ran. */
119663
+ 200: {
119664
+ headers: {
119665
+ [name: string]: unknown;
119666
+ };
119667
+ content: {
119668
+ "application/json": {
119669
+ result: {
119670
+ /** @description What happened, in the operator's words */
119671
+ message: string;
119672
+ /** @description The ad group */
119673
+ ad_set_id: number;
119674
+ /** @description The campaign it belongs to */
119675
+ campaign_id: number;
119676
+ /** @description The new draft ads */
119677
+ ad_ids: unknown[];
119678
+ };
119679
+ };
119680
+ };
119681
+ };
119682
+ 202: components["responses"]["Proposal"];
119683
+ /** @description Refused: credits_exhausted. */
119684
+ 402: {
119685
+ headers: {
119686
+ [name: string]: unknown;
119687
+ };
119688
+ content: {
119689
+ "application/json": components["schemas"]["OperationError"];
119690
+ };
119691
+ };
119692
+ /** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
119693
+ 403: {
119694
+ headers: {
119695
+ [name: string]: unknown;
119696
+ };
119697
+ content: {
119698
+ "application/json": components["schemas"]["OperationError"];
119699
+ };
119700
+ };
119701
+ /** @description Refused: not_found. */
119702
+ 404: {
119703
+ headers: {
119704
+ [name: string]: unknown;
119705
+ };
119706
+ content: {
119707
+ "application/json": components["schemas"]["OperationError"];
119708
+ };
119709
+ };
119710
+ /** @description Refused: idempotency_conflict, stale_state. */
119711
+ 409: {
119712
+ headers: {
119713
+ [name: string]: unknown;
119714
+ };
119715
+ content: {
119716
+ "application/json": components["schemas"]["OperationError"];
119717
+ };
119718
+ };
119719
+ /** @description Refused: operation_retired. */
119720
+ 410: {
119721
+ headers: {
119722
+ [name: string]: unknown;
119723
+ };
119724
+ content: {
119725
+ "application/json": components["schemas"]["OperationError"];
119726
+ };
119727
+ };
119728
+ /** @description Refused: invalid_input, domain_rule. */
119729
+ 422: {
119730
+ headers: {
119731
+ [name: string]: unknown;
119732
+ };
119733
+ content: {
119734
+ "application/json": components["schemas"]["OperationError"];
119735
+ };
119736
+ };
119737
+ /** @description Refused: rate_limited. */
119738
+ 429: {
119739
+ headers: {
119740
+ [name: string]: unknown;
119741
+ };
119742
+ content: {
119743
+ "application/json": components["schemas"]["OperationError"];
119744
+ };
119745
+ };
119746
+ };
119747
+ };
119748
+ "ops.recruiting.advertising.ad_sets.ads.launch": {
119749
+ parameters: {
119750
+ query?: never;
119751
+ header?: {
119752
+ /** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
119753
+ "Idempotency-Key"?: string;
119754
+ /** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
119755
+ "Axivoy-Dry-Run"?: "true" | "false";
119756
+ };
119757
+ path?: never;
119758
+ cookie?: never;
119759
+ };
119760
+ requestBody?: {
119761
+ content: {
119762
+ "application/json": {
119763
+ /** @description The ad group */
119764
+ ad_set_id: number;
119765
+ /** @description Ready new ads of the group to put live */
119766
+ ad_ids: number[];
119767
+ /** @description Live ads of the group to pause in the same change */
119768
+ pause_ad_ids?: number[];
119769
+ };
119770
+ };
119771
+ };
119772
+ responses: {
119773
+ /** @description The operation ran. */
119774
+ 200: {
119775
+ headers: {
119776
+ [name: string]: unknown;
119777
+ };
119778
+ content: {
119779
+ "application/json": {
119780
+ result: {
119781
+ /** @description What happened, in the operator's words */
119782
+ message: string;
119783
+ /** @description The ad group */
119784
+ ad_set_id: number;
119785
+ /** @description The campaign it belongs to */
119786
+ campaign_id: number;
119787
+ /** @description The ads put live */
119788
+ launched_ad_ids: unknown[];
119789
+ /** @description The ads paused to make room */
119790
+ paused_ad_ids: unknown[];
119791
+ };
119792
+ };
119793
+ };
119794
+ };
119795
+ 202: components["responses"]["Proposal"];
119796
+ /** @description Refused: credits_exhausted. */
119797
+ 402: {
119798
+ headers: {
119799
+ [name: string]: unknown;
119800
+ };
119801
+ content: {
119802
+ "application/json": components["schemas"]["OperationError"];
119803
+ };
119804
+ };
119805
+ /** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
119806
+ 403: {
119807
+ headers: {
119808
+ [name: string]: unknown;
119809
+ };
119810
+ content: {
119811
+ "application/json": components["schemas"]["OperationError"];
119812
+ };
119813
+ };
119814
+ /** @description Refused: not_found. */
119815
+ 404: {
119816
+ headers: {
119817
+ [name: string]: unknown;
119818
+ };
119819
+ content: {
119820
+ "application/json": components["schemas"]["OperationError"];
119821
+ };
119822
+ };
119823
+ /** @description Refused: idempotency_conflict, stale_state. */
119824
+ 409: {
119825
+ headers: {
119826
+ [name: string]: unknown;
119827
+ };
119828
+ content: {
119829
+ "application/json": components["schemas"]["OperationError"];
119830
+ };
119831
+ };
119832
+ /** @description Refused: operation_retired. */
119833
+ 410: {
119834
+ headers: {
119835
+ [name: string]: unknown;
119836
+ };
119837
+ content: {
119838
+ "application/json": components["schemas"]["OperationError"];
119839
+ };
119840
+ };
119841
+ /** @description Refused: invalid_input, domain_rule. */
119842
+ 422: {
119843
+ headers: {
119844
+ [name: string]: unknown;
119845
+ };
119846
+ content: {
119847
+ "application/json": components["schemas"]["OperationError"];
119848
+ };
119849
+ };
119850
+ /** @description Refused: rate_limited. */
119851
+ 429: {
119852
+ headers: {
119853
+ [name: string]: unknown;
119854
+ };
119855
+ content: {
119856
+ "application/json": components["schemas"]["OperationError"];
119857
+ };
119858
+ };
119859
+ };
119860
+ };
119564
119861
  "ops.recruiting.advertising.ad_sets.area.estimate": {
119565
119862
  parameters: {
119566
119863
  query?: never;
@@ -121294,7 +121591,9 @@ export interface operations {
121294
121591
  */
121295
121592
  "application/json": {
121296
121593
  /** @description The campaign draft (composer run) */
121297
- run_id: number;
121594
+ run_id?: number;
121595
+ /** @description The ad group, for a new ad on a running campaign (instead of run_id) */
121596
+ ad_set_id?: number;
121298
121597
  /** @description The draft ad */
121299
121598
  creative_id: number;
121300
121599
  };
@@ -121320,10 +121619,12 @@ export interface operations {
121320
121619
  result: {
121321
121620
  /** @description What happened, in the operator's words */
121322
121621
  message: string;
121323
- /** @description The campaign draft */
121622
+ /** @description The campaign draft; 0 for a new ad on a running campaign */
121324
121623
  run_id: number;
121325
121624
  /** @description The draft ad */
121326
121625
  creative_id: number;
121626
+ /** @description The ad group, when the ad is a new ad on a running campaign */
121627
+ ad_set_id?: number | null;
121327
121628
  };
121328
121629
  };
121329
121630
  };
@@ -121416,7 +121717,9 @@ export interface operations {
121416
121717
  */
121417
121718
  "application/json": {
121418
121719
  /** @description The campaign draft (composer run) */
121419
- run_id: number;
121720
+ run_id?: number;
121721
+ /** @description The ad group, for a new ad on a running campaign (instead of run_id) */
121722
+ ad_set_id?: number;
121420
121723
  /** @description The draft ad */
121421
121724
  creative_id: number;
121422
121725
  };
@@ -121442,10 +121745,12 @@ export interface operations {
121442
121745
  result: {
121443
121746
  /** @description What happened, in the operator's words */
121444
121747
  message: string;
121445
- /** @description The campaign draft */
121748
+ /** @description The campaign draft; 0 for a new ad on a running campaign */
121446
121749
  run_id: number;
121447
121750
  /** @description The draft ad */
121448
121751
  creative_id: number;
121752
+ /** @description The ad group, when the ad is a new ad on a running campaign */
121753
+ ad_set_id?: number | null;
121449
121754
  };
121450
121755
  };
121451
121756
  };
@@ -121915,7 +122220,9 @@ export interface operations {
121915
122220
  */
121916
122221
  "application/json": {
121917
122222
  /** @description The campaign draft (composer run) */
121918
- run_id: number;
122223
+ run_id?: number;
122224
+ /** @description The ad group, for a new ad on a running campaign (instead of run_id) */
122225
+ ad_set_id?: number;
121919
122226
  /** @description The draft ad */
121920
122227
  creative_id: number;
121921
122228
  /** @description Headline (40 characters at most) */
@@ -121947,10 +122254,12 @@ export interface operations {
121947
122254
  result: {
121948
122255
  /** @description What happened, in the operator's words */
121949
122256
  message: string;
121950
- /** @description The campaign draft */
122257
+ /** @description The campaign draft; 0 for a new ad on a running campaign */
121951
122258
  run_id: number;
121952
122259
  /** @description The draft ad */
121953
122260
  creative_id: number;
122261
+ /** @description The ad group, when the ad is a new ad on a running campaign */
122262
+ ad_set_id?: number | null;
121954
122263
  };
121955
122264
  };
121956
122265
  };
@@ -122504,6 +122813,123 @@ export interface operations {
122504
122813
  };
122505
122814
  };
122506
122815
  };
122816
+ "ops.recruiting.advertising.campaigns.combine": {
122817
+ parameters: {
122818
+ query?: never;
122819
+ header?: {
122820
+ /** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
122821
+ "Idempotency-Key"?: string;
122822
+ /** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
122823
+ "Axivoy-Dry-Run"?: "true" | "false";
122824
+ };
122825
+ path?: never;
122826
+ cookie?: never;
122827
+ };
122828
+ requestBody?: {
122829
+ content: {
122830
+ "application/json": {
122831
+ /** @description The campaign to keep */
122832
+ campaign_id: number;
122833
+ /** @description A running campaign of the same job with a group on the same platform */
122834
+ from_campaign_id: number;
122835
+ /** @description Ads of the other campaign to bring, not rejected */
122836
+ ad_ids: number[];
122837
+ /** @description Ads of the kept group to pause */
122838
+ pause_ad_ids?: number[];
122839
+ /** @description Add the other campaign's monthly budget to the kept one */
122840
+ move_budget?: boolean | string | number | null;
122841
+ };
122842
+ };
122843
+ };
122844
+ responses: {
122845
+ /** @description The operation ran. */
122846
+ 200: {
122847
+ headers: {
122848
+ [name: string]: unknown;
122849
+ };
122850
+ content: {
122851
+ "application/json": {
122852
+ result: {
122853
+ /** @description What happened, in the operator's words */
122854
+ message: string;
122855
+ /** @description The copies now live in the kept campaign */
122856
+ copied_ad_ids: unknown[];
122857
+ /** @description The kept campaign's ads paused to make room */
122858
+ paused_ad_ids: unknown[];
122859
+ /** @description The campaign that paused */
122860
+ paused_campaign_id: number;
122861
+ /** @description The kept campaign's monthly budget afterwards, in US dollars */
122862
+ monthly_budget?: string | null;
122863
+ };
122864
+ };
122865
+ };
122866
+ };
122867
+ 202: components["responses"]["Proposal"];
122868
+ /** @description Refused: credits_exhausted. */
122869
+ 402: {
122870
+ headers: {
122871
+ [name: string]: unknown;
122872
+ };
122873
+ content: {
122874
+ "application/json": components["schemas"]["OperationError"];
122875
+ };
122876
+ };
122877
+ /** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
122878
+ 403: {
122879
+ headers: {
122880
+ [name: string]: unknown;
122881
+ };
122882
+ content: {
122883
+ "application/json": components["schemas"]["OperationError"];
122884
+ };
122885
+ };
122886
+ /** @description Refused: not_found. */
122887
+ 404: {
122888
+ headers: {
122889
+ [name: string]: unknown;
122890
+ };
122891
+ content: {
122892
+ "application/json": components["schemas"]["OperationError"];
122893
+ };
122894
+ };
122895
+ /** @description Refused: idempotency_conflict, stale_state. */
122896
+ 409: {
122897
+ headers: {
122898
+ [name: string]: unknown;
122899
+ };
122900
+ content: {
122901
+ "application/json": components["schemas"]["OperationError"];
122902
+ };
122903
+ };
122904
+ /** @description Refused: operation_retired. */
122905
+ 410: {
122906
+ headers: {
122907
+ [name: string]: unknown;
122908
+ };
122909
+ content: {
122910
+ "application/json": components["schemas"]["OperationError"];
122911
+ };
122912
+ };
122913
+ /** @description Refused: invalid_input, domain_rule. */
122914
+ 422: {
122915
+ headers: {
122916
+ [name: string]: unknown;
122917
+ };
122918
+ content: {
122919
+ "application/json": components["schemas"]["OperationError"];
122920
+ };
122921
+ };
122922
+ /** @description Refused: rate_limited. */
122923
+ 429: {
122924
+ headers: {
122925
+ [name: string]: unknown;
122926
+ };
122927
+ content: {
122928
+ "application/json": components["schemas"]["OperationError"];
122929
+ };
122930
+ };
122931
+ };
122932
+ };
122507
122933
  "ops.recruiting.advertising.campaigns.drift.adopt": {
122508
122934
  parameters: {
122509
122935
  query?: never;
@@ -129774,6 +130200,8 @@ export interface operations {
129774
130200
  location?: string | null;
129775
130201
  /** @description The pay range as candidates read it */
129776
130202
  pay_range?: string | null;
130203
+ /** @description The full pay terms printed in the offer letter; leave out to keep the stored terms, blank to fall back to the pay range */
130204
+ offer_compensation?: string | null;
129777
130205
  /** @description The job description */
129778
130206
  description?: string | null;
129779
130207
  /** @description Posting status: open, closed */
@@ -130273,6 +130701,8 @@ export interface operations {
130273
130701
  location?: string | null;
130274
130702
  /** @description The pay range as candidates read it */
130275
130703
  pay_range?: string | null;
130704
+ /** @description The full pay terms printed in the offer letter; leave out to keep the stored terms, blank to fall back to the pay range */
130705
+ offer_compensation?: string | null;
130276
130706
  /** @description The job description */
130277
130707
  description?: string | null;
130278
130708
  /** @description Posting status: open, closed */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axivoy/api",
3
- "version": "2.49.0",
3
+ "version": "2.52.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",