@axivoy/api 2.46.0 → 2.49.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.area.estimate": {
13141
+ parameters: {
13142
+ query?: never;
13143
+ header?: never;
13144
+ path?: never;
13145
+ cookie?: never;
13146
+ };
13147
+ get?: never;
13148
+ put?: never;
13149
+ /**
13150
+ * Estimate who an area reaches
13151
+ * @description Estimates how many people an area would reach on each platform, against the ad group's area today, and says what each platform gets: the circles Facebook gets or the places TikTok gets.
13152
+ *
13153
+ * Kind: `read`. Errors use the envelope `{error: {code, reason, message, fields}}`.
13154
+ */
13155
+ post: operations["ops.recruiting.advertising.ad_sets.area.estimate"];
13156
+ delete?: never;
13157
+ options?: never;
13158
+ head?: never;
13159
+ patch?: never;
13160
+ trace?: never;
13161
+ };
13162
+ "/ops/recruiting.advertising.ad_sets.area.update": {
13163
+ parameters: {
13164
+ query?: never;
13165
+ header?: never;
13166
+ path?: never;
13167
+ cookie?: never;
13168
+ };
13169
+ get?: never;
13170
+ put?: never;
13171
+ /**
13172
+ * Change where an ad group's ads show
13173
+ * @description Changes where one ad group's ads show: miles around places, whole states, or anywhere in the US.
13174
+ *
13175
+ * Kind: `mutate`. Errors use the envelope `{error: {code, reason, message, fields}}`.
13176
+ */
13177
+ post: operations["ops.recruiting.advertising.ad_sets.area.update"];
13178
+ delete?: never;
13179
+ options?: never;
13180
+ head?: never;
13181
+ patch?: never;
13182
+ trace?: never;
13183
+ };
13140
13184
  "/ops/recruiting.advertising.ad_sets.budget": {
13141
13185
  parameters: {
13142
13186
  query?: never;
@@ -119517,6 +119561,347 @@ export interface operations {
119517
119561
  };
119518
119562
  };
119519
119563
  };
119564
+ "ops.recruiting.advertising.ad_sets.area.estimate": {
119565
+ parameters: {
119566
+ query?: never;
119567
+ header?: {
119568
+ /** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
119569
+ "Idempotency-Key"?: string;
119570
+ /** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
119571
+ "Axivoy-Dry-Run"?: "true" | "false";
119572
+ };
119573
+ path?: never;
119574
+ cookie?: never;
119575
+ };
119576
+ requestBody?: {
119577
+ content: {
119578
+ "application/json": {
119579
+ /** @description Where the ads would show: places with miles around each, whole states, or country US alone */
119580
+ area: {
119581
+ /** @description Places with miles around each (up to 10) */
119582
+ places?: {
119583
+ /** @description Where a dropped pin is (with longitude) */
119584
+ latitude?: number;
119585
+ /** @description Where a dropped pin is (with latitude) */
119586
+ longitude?: number;
119587
+ /** @description A typed place, such as "Houston, TX"; with coordinates it is only the name */
119588
+ place_query?: string;
119589
+ /** @description Miles around the place, 15 to 250 in steps of 5 */
119590
+ radius_miles: number;
119591
+ }[];
119592
+ /** @description Whole US states by two-letter code ("TX") */
119593
+ states?: string[];
119594
+ /**
119595
+ * @description "US" for anywhere in the US, alone
119596
+ * @enum {string|null}
119597
+ */
119598
+ country?: "US" | null;
119599
+ };
119600
+ /** @description The ad group; required unless job_posting_id and platforms are given */
119601
+ ad_set_id?: number;
119602
+ /** @description With ad_set_id: also every other running group of the campaign */
119603
+ same_for_campaign?: boolean;
119604
+ /** @description Before any group exists (the wizard, settings): the job whose place to use */
119605
+ job_posting_id?: number;
119606
+ /**
119607
+ * @description With job_posting_id: meta_ads, tiktok_ads, both
119608
+ * @enum {string}
119609
+ */
119610
+ platforms?: "meta_ads" | "tiktok_ads" | "both";
119611
+ };
119612
+ };
119613
+ };
119614
+ responses: {
119615
+ /** @description The operation ran. */
119616
+ 200: {
119617
+ headers: {
119618
+ [name: string]: unknown;
119619
+ };
119620
+ content: {
119621
+ "application/json": {
119622
+ result: {
119623
+ /** @description The area in words */
119624
+ area_sentence: string;
119625
+ /** @description The places, each with its name */
119626
+ places: {
119627
+ /** @description The place's name */
119628
+ label: string;
119629
+ latitude: number;
119630
+ longitude: number;
119631
+ /** @description Miles around it */
119632
+ radius_miles: number;
119633
+ }[];
119634
+ /** @description Whole states, by two-letter code */
119635
+ states: unknown[];
119636
+ /** @description What each platform gets for the area */
119637
+ platform_areas: {
119638
+ /** @description meta_ads or tiktok_ads */
119639
+ provider: string;
119640
+ /** @description The platform's name */
119641
+ platform: string;
119642
+ /** @description What the platform gets, in words */
119643
+ areas: unknown[];
119644
+ }[];
119645
+ /** @description Per platform */
119646
+ platforms: {
119647
+ /** @description meta_ads or tiktok_ads */
119648
+ provider: string;
119649
+ /** @description The platform's name */
119650
+ platform: string;
119651
+ /** @description Fewest people the area reaches, by the platform's estimate */
119652
+ people_low?: number | null;
119653
+ /** @description Most people the area reaches */
119654
+ people_high?: number | null;
119655
+ /** @description The same for the group's area today */
119656
+ current_people_low?: number | null;
119657
+ current_people_high?: number | null;
119658
+ /** @description The circles the platform gets (Facebook's 50-mile circles) */
119659
+ platform_pins: {
119660
+ latitude: number;
119661
+ longitude: number;
119662
+ radius_miles: number;
119663
+ }[];
119664
+ /** @description What the platform gets, in words */
119665
+ platform_areas: unknown[];
119666
+ /** @description Why there is no estimate, in plain words */
119667
+ note?: string | null;
119668
+ /** @description True when the note is the platform refusing this area (it can't be saved as it is) */
119669
+ refused: boolean;
119670
+ }[];
119671
+ /** @description One-tap areas from the job's place */
119672
+ quick_picks: {
119673
+ /** @description The pick in words */
119674
+ label: string;
119675
+ /** @description The area to send back as `area` */
119676
+ area: {
119677
+ places: {
119678
+ label?: string | null;
119679
+ latitude: number;
119680
+ longitude: number;
119681
+ radius_miles: number;
119682
+ }[];
119683
+ states: unknown[];
119684
+ country?: string | null;
119685
+ };
119686
+ }[];
119687
+ };
119688
+ };
119689
+ };
119690
+ };
119691
+ 202: components["responses"]["Proposal"];
119692
+ /** @description Refused: credits_exhausted. */
119693
+ 402: {
119694
+ headers: {
119695
+ [name: string]: unknown;
119696
+ };
119697
+ content: {
119698
+ "application/json": components["schemas"]["OperationError"];
119699
+ };
119700
+ };
119701
+ /** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
119702
+ 403: {
119703
+ headers: {
119704
+ [name: string]: unknown;
119705
+ };
119706
+ content: {
119707
+ "application/json": components["schemas"]["OperationError"];
119708
+ };
119709
+ };
119710
+ /** @description Refused: not_found. */
119711
+ 404: {
119712
+ headers: {
119713
+ [name: string]: unknown;
119714
+ };
119715
+ content: {
119716
+ "application/json": components["schemas"]["OperationError"];
119717
+ };
119718
+ };
119719
+ /** @description Refused: idempotency_conflict, stale_state. */
119720
+ 409: {
119721
+ headers: {
119722
+ [name: string]: unknown;
119723
+ };
119724
+ content: {
119725
+ "application/json": components["schemas"]["OperationError"];
119726
+ };
119727
+ };
119728
+ /** @description Refused: operation_retired. */
119729
+ 410: {
119730
+ headers: {
119731
+ [name: string]: unknown;
119732
+ };
119733
+ content: {
119734
+ "application/json": components["schemas"]["OperationError"];
119735
+ };
119736
+ };
119737
+ /** @description Refused: invalid_input, domain_rule. */
119738
+ 422: {
119739
+ headers: {
119740
+ [name: string]: unknown;
119741
+ };
119742
+ content: {
119743
+ "application/json": components["schemas"]["OperationError"];
119744
+ };
119745
+ };
119746
+ /** @description Refused: rate_limited. */
119747
+ 429: {
119748
+ headers: {
119749
+ [name: string]: unknown;
119750
+ };
119751
+ content: {
119752
+ "application/json": components["schemas"]["OperationError"];
119753
+ };
119754
+ };
119755
+ };
119756
+ };
119757
+ "ops.recruiting.advertising.ad_sets.area.update": {
119758
+ parameters: {
119759
+ query?: never;
119760
+ header?: {
119761
+ /** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
119762
+ "Idempotency-Key"?: string;
119763
+ /** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
119764
+ "Axivoy-Dry-Run"?: "true" | "false";
119765
+ };
119766
+ path?: never;
119767
+ cookie?: never;
119768
+ };
119769
+ requestBody?: {
119770
+ content: {
119771
+ "application/json": {
119772
+ /** @description The ad group */
119773
+ ad_set_id: number;
119774
+ /** @description Where the ads show: places with miles around each, whole states, or country US alone */
119775
+ area: {
119776
+ /** @description Places with miles around each (up to 10) */
119777
+ places?: {
119778
+ /** @description Where a dropped pin is (with longitude) */
119779
+ latitude?: number;
119780
+ /** @description Where a dropped pin is (with latitude) */
119781
+ longitude?: number;
119782
+ /** @description A typed place, such as "Houston, TX"; with coordinates it is only the name */
119783
+ place_query?: string;
119784
+ /** @description Miles around the place, 15 to 250 in steps of 5 */
119785
+ radius_miles: number;
119786
+ }[];
119787
+ /** @description Whole US states by two-letter code ("TX") */
119788
+ states?: string[];
119789
+ /**
119790
+ * @description "US" for anywhere in the US, alone
119791
+ * @enum {string|null}
119792
+ */
119793
+ country?: "US" | null;
119794
+ };
119795
+ /** @description Also every other running group of the campaign, in one change */
119796
+ same_for_campaign?: boolean;
119797
+ };
119798
+ };
119799
+ };
119800
+ responses: {
119801
+ /** @description The operation ran. */
119802
+ 200: {
119803
+ headers: {
119804
+ [name: string]: unknown;
119805
+ };
119806
+ content: {
119807
+ "application/json": {
119808
+ result: {
119809
+ /** @description What happened, in the operator's words */
119810
+ message: string;
119811
+ /** @description The area in words */
119812
+ area_sentence: string;
119813
+ /** @description The places, each with its name */
119814
+ places: {
119815
+ /** @description The place's name */
119816
+ label: string;
119817
+ latitude: number;
119818
+ longitude: number;
119819
+ /** @description Miles around it */
119820
+ radius_miles: number;
119821
+ }[];
119822
+ /** @description Whole states, by two-letter code */
119823
+ states: unknown[];
119824
+ /** @description What each platform gets for the area */
119825
+ platform_areas: {
119826
+ /** @description meta_ads or tiktok_ads */
119827
+ provider: string;
119828
+ /** @description The platform's name */
119829
+ platform: string;
119830
+ /** @description What the platform gets, in words */
119831
+ areas: unknown[];
119832
+ }[];
119833
+ /** @description The ad groups changed */
119834
+ ad_set_ids: unknown[];
119835
+ };
119836
+ };
119837
+ };
119838
+ };
119839
+ 202: components["responses"]["Proposal"];
119840
+ /** @description Refused: credits_exhausted. */
119841
+ 402: {
119842
+ headers: {
119843
+ [name: string]: unknown;
119844
+ };
119845
+ content: {
119846
+ "application/json": components["schemas"]["OperationError"];
119847
+ };
119848
+ };
119849
+ /** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
119850
+ 403: {
119851
+ headers: {
119852
+ [name: string]: unknown;
119853
+ };
119854
+ content: {
119855
+ "application/json": components["schemas"]["OperationError"];
119856
+ };
119857
+ };
119858
+ /** @description Refused: not_found. */
119859
+ 404: {
119860
+ headers: {
119861
+ [name: string]: unknown;
119862
+ };
119863
+ content: {
119864
+ "application/json": components["schemas"]["OperationError"];
119865
+ };
119866
+ };
119867
+ /** @description Refused: idempotency_conflict, stale_state. */
119868
+ 409: {
119869
+ headers: {
119870
+ [name: string]: unknown;
119871
+ };
119872
+ content: {
119873
+ "application/json": components["schemas"]["OperationError"];
119874
+ };
119875
+ };
119876
+ /** @description Refused: operation_retired. */
119877
+ 410: {
119878
+ headers: {
119879
+ [name: string]: unknown;
119880
+ };
119881
+ content: {
119882
+ "application/json": components["schemas"]["OperationError"];
119883
+ };
119884
+ };
119885
+ /** @description Refused: invalid_input, domain_rule. */
119886
+ 422: {
119887
+ headers: {
119888
+ [name: string]: unknown;
119889
+ };
119890
+ content: {
119891
+ "application/json": components["schemas"]["OperationError"];
119892
+ };
119893
+ };
119894
+ /** @description Refused: rate_limited. */
119895
+ 429: {
119896
+ headers: {
119897
+ [name: string]: unknown;
119898
+ };
119899
+ content: {
119900
+ "application/json": components["schemas"]["OperationError"];
119901
+ };
119902
+ };
119903
+ };
119904
+ };
119520
119905
  "ops.recruiting.advertising.ad_sets.budget": {
119521
119906
  parameters: {
119522
119907
  query?: never;
@@ -120018,6 +120403,8 @@ export interface operations {
120018
120403
  "application/json": {
120019
120404
  /** @description The campaign draft (composer run) */
120020
120405
  run_id: number;
120406
+ /** @description Put the campaign on the ad platforms paused: nothing is spent until it is resumed (default false) */
120407
+ start_paused?: boolean;
120021
120408
  };
120022
120409
  };
120023
120410
  };
@@ -120143,10 +120530,31 @@ export interface operations {
120143
120530
  job_posting_id: number | string | null;
120144
120531
  /** @description Whole dollars a month (1 to 1,000,000) */
120145
120532
  amount: number | string | null;
120146
- /** @description Miles around the location (1 to 500) */
120147
- radius_miles: number | string | null;
120148
- /** @description City, ZIP or address to center the ads on */
120149
- location_query: string | null;
120533
+ /** @description Miles around the location (1 to 500); needed without area */
120534
+ radius_miles?: number | string | null;
120535
+ /** @description City, ZIP or address to center the ads on; needed without area */
120536
+ location_query?: string | null;
120537
+ /** @description Where the ads show: places with miles, whole states, or country US alone; wins over radius_miles and location_query */
120538
+ area?: {
120539
+ /** @description Places with miles around each (up to 10) */
120540
+ places?: {
120541
+ /** @description Where a dropped pin is (with longitude) */
120542
+ latitude?: number;
120543
+ /** @description Where a dropped pin is (with latitude) */
120544
+ longitude?: number;
120545
+ /** @description A typed place, such as "Houston, TX"; with coordinates it is only the name */
120546
+ place_query?: string;
120547
+ /** @description Miles around the place, 15 to 250 in steps of 5 */
120548
+ radius_miles: number;
120549
+ }[];
120550
+ /** @description Whole US states by two-letter code ("TX") */
120551
+ states?: string[];
120552
+ /**
120553
+ * @description "US" for anywhere in the US, alone
120554
+ * @enum {string|null}
120555
+ */
120556
+ country?: "US" | null;
120557
+ } | null;
120150
120558
  /** @description 30, 60 or 90 days */
120151
120559
  duration_days?: number | string | null;
120152
120560
  /** @description Campaign name (140 characters at most) */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axivoy/api",
3
- "version": "2.46.0",
3
+ "version": "2.49.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",