@limrun/api 0.73.2 → 0.73.4

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 (46) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/index.d.mts +1 -0
  3. package/index.d.mts.map +1 -1
  4. package/index.d.ts +1 -0
  5. package/index.d.ts.map +1 -1
  6. package/index.js +4 -2
  7. package/index.js.map +1 -1
  8. package/index.mjs +1 -0
  9. package/index.mjs.map +1 -1
  10. package/ios-client.d.mts +8 -0
  11. package/ios-client.d.mts.map +1 -1
  12. package/ios-client.d.ts +8 -0
  13. package/ios-client.d.ts.map +1 -1
  14. package/ios-client.js +10 -0
  15. package/ios-client.js.map +1 -1
  16. package/ios-client.mjs +10 -0
  17. package/ios-client.mjs.map +1 -1
  18. package/package.json +11 -1
  19. package/resources/analytics.d.mts +248 -0
  20. package/resources/analytics.d.mts.map +1 -1
  21. package/resources/analytics.d.ts +248 -0
  22. package/resources/analytics.d.ts.map +1 -1
  23. package/resources/analytics.js.map +1 -1
  24. package/resources/analytics.mjs.map +1 -1
  25. package/resources/ios-instances.d.mts +8 -5
  26. package/resources/ios-instances.d.mts.map +1 -1
  27. package/resources/ios-instances.d.ts +8 -5
  28. package/resources/ios-instances.d.ts.map +1 -1
  29. package/src/index.ts +1 -0
  30. package/src/ios-client.ts +20 -0
  31. package/src/resources/analytics.ts +278 -0
  32. package/src/resources/ios-instances.ts +8 -5
  33. package/src/target-http-port.ts +13 -0
  34. package/src/version.ts +1 -1
  35. package/target-http-port.d.mts +11 -0
  36. package/target-http-port.d.mts.map +1 -0
  37. package/target-http-port.d.ts +11 -0
  38. package/target-http-port.d.ts.map +1 -0
  39. package/target-http-port.js +17 -0
  40. package/target-http-port.js.map +1 -0
  41. package/target-http-port.mjs +14 -0
  42. package/target-http-port.mjs.map +1 -0
  43. package/version.d.mts +1 -1
  44. package/version.d.ts +1 -1
  45. package/version.js +1 -1
  46. package/version.mjs +1 -1
@@ -95,6 +95,11 @@ export namespace AnalyticsInstancesResponse {
95
95
 
96
96
  billedBreakdown?: Instance.BilledBreakdown;
97
97
 
98
+ /**
99
+ * Exact decimal credit amount. Prefer this field over billedMinutes.
100
+ */
101
+ billedCredits?: string;
102
+
98
103
  /**
99
104
  * Cost breakdown by billing source in dollars
100
105
  */
@@ -109,6 +114,13 @@ export namespace AnalyticsInstancesResponse {
109
114
  * Region where the instance ran
110
115
  */
111
116
  region?: string;
117
+
118
+ /**
119
+ * Instance lifetime in minutes, before idle discounting. For build platforms
120
+ * (Xcode, Gradle), runtimeMinutes reflects phase rates and can be above or
121
+ * below this lifetime. Zero for instances billed before the field existed.
122
+ */
123
+ wallclockMinutes?: number;
112
124
  }
113
125
 
114
126
  export namespace Instance {
@@ -117,11 +129,26 @@ export namespace AnalyticsInstancesResponse {
117
129
 
118
130
  onDemandBilledMinutes: number;
119
131
 
132
+ /**
133
+ * Exact decimal credit amount. Prefer this field over creditsBilledMinutes.
134
+ */
135
+ creditsBilled?: string;
136
+
137
+ /**
138
+ * Exact decimal credit amount. Prefer this field over onDemandBilledMinutes.
139
+ */
140
+ onDemandBilledCredits?: string;
141
+
120
142
  /**
121
143
  * Map of plan ID to billed minutes
122
144
  */
123
145
  planBilledMinutes?: { [key: string]: number };
124
146
 
147
+ /**
148
+ * Exact decimal credits allocated to each subscription.
149
+ */
150
+ subscriptionBilledCredits?: { [key: string]: string };
151
+
125
152
  /**
126
153
  * Map of subscription ID to billed minutes
127
154
  */
@@ -265,6 +292,26 @@ export namespace AnalyticsResponse {
265
292
  */
266
293
  runtimeMinutes: number;
267
294
 
295
+ /**
296
+ * Exact decimal credit amount. Prefer this field over billedMinutes.
297
+ */
298
+ billedCredits?: string;
299
+
300
+ /**
301
+ * Exact decimal credit amount. Prefer this field over creditsBilledMinutes.
302
+ */
303
+ creditsBilled?: string;
304
+
305
+ /**
306
+ * Exact decimal credit amount. Prefer this field over onDemandBilledMinutes.
307
+ */
308
+ onDemandBilledCredits?: string;
309
+
310
+ /**
311
+ * Exact decimal credits allocated to each subscription.
312
+ */
313
+ subscriptionBilledCredits?: { [key: string]: string };
314
+
268
315
  /**
269
316
  * Map of subscription ID to billed minutes
270
317
  */
@@ -274,6 +321,14 @@ export namespace AnalyticsResponse {
274
321
  * Map of subscription ID to cost in dollars
275
322
  */
276
323
  subscriptionCost?: { [key: string]: number };
324
+
325
+ /**
326
+ * Total instance lifetime in minutes, before idle discounting. For build
327
+ * platforms (Xcode, Gradle), runtimeMinutes reflects phase rates and can be
328
+ * above or below this lifetime. Zero for entries billed before the field
329
+ * existed.
330
+ */
331
+ wallclockMinutes?: number;
277
332
  }
278
333
 
279
334
  /**
@@ -325,6 +380,26 @@ export namespace AnalyticsResponse {
325
380
  */
326
381
  runtimeMinutes: number;
327
382
 
383
+ /**
384
+ * Exact decimal credit amount. Prefer this field over billedMinutes.
385
+ */
386
+ billedCredits?: string;
387
+
388
+ /**
389
+ * Exact decimal credit amount. Prefer this field over creditsBilledMinutes.
390
+ */
391
+ creditsBilled?: string;
392
+
393
+ /**
394
+ * Exact decimal credit amount. Prefer this field over onDemandBilledMinutes.
395
+ */
396
+ onDemandBilledCredits?: string;
397
+
398
+ /**
399
+ * Exact decimal credits allocated to each subscription.
400
+ */
401
+ subscriptionBilledCredits?: { [key: string]: string };
402
+
328
403
  /**
329
404
  * Map of subscription ID to billed minutes
330
405
  */
@@ -334,6 +409,14 @@ export namespace AnalyticsResponse {
334
409
  * Map of subscription ID to cost in dollars
335
410
  */
336
411
  subscriptionCost?: { [key: string]: number };
412
+
413
+ /**
414
+ * Total instance lifetime in minutes, before idle discounting. For build
415
+ * platforms (Xcode, Gradle), runtimeMinutes reflects phase rates and can be
416
+ * above or below this lifetime. Zero for entries billed before the field
417
+ * existed.
418
+ */
419
+ wallclockMinutes?: number;
337
420
  }
338
421
 
339
422
  /**
@@ -385,6 +468,26 @@ export namespace AnalyticsResponse {
385
468
  */
386
469
  runtimeMinutes: number;
387
470
 
471
+ /**
472
+ * Exact decimal credit amount. Prefer this field over billedMinutes.
473
+ */
474
+ billedCredits?: string;
475
+
476
+ /**
477
+ * Exact decimal credit amount. Prefer this field over creditsBilledMinutes.
478
+ */
479
+ creditsBilled?: string;
480
+
481
+ /**
482
+ * Exact decimal credit amount. Prefer this field over onDemandBilledMinutes.
483
+ */
484
+ onDemandBilledCredits?: string;
485
+
486
+ /**
487
+ * Exact decimal credits allocated to each subscription.
488
+ */
489
+ subscriptionBilledCredits?: { [key: string]: string };
490
+
388
491
  /**
389
492
  * Map of subscription ID to billed minutes
390
493
  */
@@ -394,6 +497,14 @@ export namespace AnalyticsResponse {
394
497
  * Map of subscription ID to cost in dollars
395
498
  */
396
499
  subscriptionCost?: { [key: string]: number };
500
+
501
+ /**
502
+ * Total instance lifetime in minutes, before idle discounting. For build
503
+ * platforms (Xcode, Gradle), runtimeMinutes reflects phase rates and can be
504
+ * above or below this lifetime. Zero for entries billed before the field
505
+ * existed.
506
+ */
507
+ wallclockMinutes?: number;
397
508
  }
398
509
 
399
510
  /**
@@ -445,6 +556,26 @@ export namespace AnalyticsResponse {
445
556
  */
446
557
  runtimeMinutes: number;
447
558
 
559
+ /**
560
+ * Exact decimal credit amount. Prefer this field over billedMinutes.
561
+ */
562
+ billedCredits?: string;
563
+
564
+ /**
565
+ * Exact decimal credit amount. Prefer this field over creditsBilledMinutes.
566
+ */
567
+ creditsBilled?: string;
568
+
569
+ /**
570
+ * Exact decimal credit amount. Prefer this field over onDemandBilledMinutes.
571
+ */
572
+ onDemandBilledCredits?: string;
573
+
574
+ /**
575
+ * Exact decimal credits allocated to each subscription.
576
+ */
577
+ subscriptionBilledCredits?: { [key: string]: string };
578
+
448
579
  /**
449
580
  * Map of subscription ID to billed minutes
450
581
  */
@@ -454,6 +585,14 @@ export namespace AnalyticsResponse {
454
585
  * Map of subscription ID to cost in dollars
455
586
  */
456
587
  subscriptionCost?: { [key: string]: number };
588
+
589
+ /**
590
+ * Total instance lifetime in minutes, before idle discounting. For build
591
+ * platforms (Xcode, Gradle), runtimeMinutes reflects phase rates and can be
592
+ * above or below this lifetime. Zero for entries billed before the field
593
+ * existed.
594
+ */
595
+ wallclockMinutes?: number;
457
596
  }
458
597
 
459
598
  /**
@@ -487,6 +626,11 @@ export namespace AnalyticsResponse {
487
626
 
488
627
  billedBreakdown?: Instance.BilledBreakdown;
489
628
 
629
+ /**
630
+ * Exact decimal credit amount. Prefer this field over billedMinutes.
631
+ */
632
+ billedCredits?: string;
633
+
490
634
  /**
491
635
  * Cost breakdown by billing source in dollars
492
636
  */
@@ -501,6 +645,13 @@ export namespace AnalyticsResponse {
501
645
  * Region where the instance ran
502
646
  */
503
647
  region?: string;
648
+
649
+ /**
650
+ * Instance lifetime in minutes, before idle discounting. For build platforms
651
+ * (Xcode, Gradle), runtimeMinutes reflects phase rates and can be above or
652
+ * below this lifetime. Zero for instances billed before the field existed.
653
+ */
654
+ wallclockMinutes?: number;
504
655
  }
505
656
 
506
657
  export namespace Instance {
@@ -509,11 +660,26 @@ export namespace AnalyticsResponse {
509
660
 
510
661
  onDemandBilledMinutes: number;
511
662
 
663
+ /**
664
+ * Exact decimal credit amount. Prefer this field over creditsBilledMinutes.
665
+ */
666
+ creditsBilled?: string;
667
+
668
+ /**
669
+ * Exact decimal credit amount. Prefer this field over onDemandBilledMinutes.
670
+ */
671
+ onDemandBilledCredits?: string;
672
+
512
673
  /**
513
674
  * Map of plan ID to billed minutes
514
675
  */
515
676
  planBilledMinutes?: { [key: string]: number };
516
677
 
678
+ /**
679
+ * Exact decimal credits allocated to each subscription.
680
+ */
681
+ subscriptionBilledCredits?: { [key: string]: string };
682
+
517
683
  /**
518
684
  * Map of subscription ID to billed minutes
519
685
  */
@@ -622,6 +788,26 @@ export namespace AnalyticsResponse {
622
788
  */
623
789
  runtimeMinutes: number;
624
790
 
791
+ /**
792
+ * Exact decimal credit amount. Prefer this field over billedMinutes.
793
+ */
794
+ billedCredits?: string;
795
+
796
+ /**
797
+ * Exact decimal credit amount. Prefer this field over creditsBilledMinutes.
798
+ */
799
+ creditsBilled?: string;
800
+
801
+ /**
802
+ * Exact decimal credit amount. Prefer this field over onDemandBilledMinutes.
803
+ */
804
+ onDemandBilledCredits?: string;
805
+
806
+ /**
807
+ * Exact decimal credits allocated to each subscription.
808
+ */
809
+ subscriptionBilledCredits?: { [key: string]: string };
810
+
625
811
  /**
626
812
  * Map of subscription ID to billed minutes
627
813
  */
@@ -631,6 +817,14 @@ export namespace AnalyticsResponse {
631
817
  * Map of subscription ID to cost in dollars
632
818
  */
633
819
  subscriptionCost?: { [key: string]: number };
820
+
821
+ /**
822
+ * Total instance lifetime in minutes, before idle discounting. For build
823
+ * platforms (Xcode, Gradle), runtimeMinutes reflects phase rates and can be
824
+ * above or below this lifetime. Zero for entries billed before the field
825
+ * existed.
826
+ */
827
+ wallclockMinutes?: number;
634
828
  }
635
829
 
636
830
  /**
@@ -682,6 +876,26 @@ export namespace AnalyticsResponse {
682
876
  */
683
877
  runtimeMinutes: number;
684
878
 
879
+ /**
880
+ * Exact decimal credit amount. Prefer this field over billedMinutes.
881
+ */
882
+ billedCredits?: string;
883
+
884
+ /**
885
+ * Exact decimal credit amount. Prefer this field over creditsBilledMinutes.
886
+ */
887
+ creditsBilled?: string;
888
+
889
+ /**
890
+ * Exact decimal credit amount. Prefer this field over onDemandBilledMinutes.
891
+ */
892
+ onDemandBilledCredits?: string;
893
+
894
+ /**
895
+ * Exact decimal credits allocated to each subscription.
896
+ */
897
+ subscriptionBilledCredits?: { [key: string]: string };
898
+
685
899
  /**
686
900
  * Map of subscription ID to billed minutes
687
901
  */
@@ -691,6 +905,14 @@ export namespace AnalyticsResponse {
691
905
  * Map of subscription ID to cost in dollars
692
906
  */
693
907
  subscriptionCost?: { [key: string]: number };
908
+
909
+ /**
910
+ * Total instance lifetime in minutes, before idle discounting. For build
911
+ * platforms (Xcode, Gradle), runtimeMinutes reflects phase rates and can be
912
+ * above or below this lifetime. Zero for entries billed before the field
913
+ * existed.
914
+ */
915
+ wallclockMinutes?: number;
694
916
  }
695
917
 
696
918
  /**
@@ -742,6 +964,26 @@ export namespace AnalyticsResponse {
742
964
  */
743
965
  runtimeMinutes: number;
744
966
 
967
+ /**
968
+ * Exact decimal credit amount. Prefer this field over billedMinutes.
969
+ */
970
+ billedCredits?: string;
971
+
972
+ /**
973
+ * Exact decimal credit amount. Prefer this field over creditsBilledMinutes.
974
+ */
975
+ creditsBilled?: string;
976
+
977
+ /**
978
+ * Exact decimal credit amount. Prefer this field over onDemandBilledMinutes.
979
+ */
980
+ onDemandBilledCredits?: string;
981
+
982
+ /**
983
+ * Exact decimal credits allocated to each subscription.
984
+ */
985
+ subscriptionBilledCredits?: { [key: string]: string };
986
+
745
987
  /**
746
988
  * Map of subscription ID to billed minutes
747
989
  */
@@ -751,6 +993,14 @@ export namespace AnalyticsResponse {
751
993
  * Map of subscription ID to cost in dollars
752
994
  */
753
995
  subscriptionCost?: { [key: string]: number };
996
+
997
+ /**
998
+ * Total instance lifetime in minutes, before idle discounting. For build
999
+ * platforms (Xcode, Gradle), runtimeMinutes reflects phase rates and can be
1000
+ * above or below this lifetime. Zero for entries billed before the field
1001
+ * existed.
1002
+ */
1003
+ wallclockMinutes?: number;
754
1004
  }
755
1005
 
756
1006
  /**
@@ -802,6 +1052,26 @@ export namespace AnalyticsResponse {
802
1052
  */
803
1053
  runtimeMinutes: number;
804
1054
 
1055
+ /**
1056
+ * Exact decimal credit amount. Prefer this field over billedMinutes.
1057
+ */
1058
+ billedCredits?: string;
1059
+
1060
+ /**
1061
+ * Exact decimal credit amount. Prefer this field over creditsBilledMinutes.
1062
+ */
1063
+ creditsBilled?: string;
1064
+
1065
+ /**
1066
+ * Exact decimal credit amount. Prefer this field over onDemandBilledMinutes.
1067
+ */
1068
+ onDemandBilledCredits?: string;
1069
+
1070
+ /**
1071
+ * Exact decimal credits allocated to each subscription.
1072
+ */
1073
+ subscriptionBilledCredits?: { [key: string]: string };
1074
+
805
1075
  /**
806
1076
  * Map of subscription ID to billed minutes
807
1077
  */
@@ -811,6 +1081,14 @@ export namespace AnalyticsResponse {
811
1081
  * Map of subscription ID to cost in dollars
812
1082
  */
813
1083
  subscriptionCost?: { [key: string]: number };
1084
+
1085
+ /**
1086
+ * Total instance lifetime in minutes, before idle discounting. For build
1087
+ * platforms (Xcode, Gradle), runtimeMinutes reflects phase rates and can be
1088
+ * above or below this lifetime. Zero for entries billed before the field
1089
+ * existed.
1090
+ */
1091
+ wallclockMinutes?: number;
814
1092
  }
815
1093
  }
816
1094
  }
@@ -259,10 +259,12 @@ export namespace IosInstanceCreateParams {
259
259
  jurisdiction?: 'us' | 'eu' | 'as';
260
260
 
261
261
  /**
262
- * The Apple Simulator model. iPhone Duo requires Xcode 27.1 and runs iOS 27, see
263
- * the OSVersion clue. Default is iphone.
262
+ * The Apple Simulator model. iphone-se is an iPhone SE (3rd generation) and
263
+ * iphone-17e an iPhone 17e, for testing smaller screens. iPhone Duo requires
264
+ * Xcode 27.1. See the OSVersion clue for the iOS versions each model runs.
265
+ * Default is iphone.
264
266
  */
265
- model?: 'iphone' | 'iphone-duo' | 'ipad' | 'watch';
267
+ model?: 'iphone' | 'iphone-se' | 'iphone-17e' | 'iphone-duo' | 'ipad' | 'watch';
266
268
 
267
269
  /**
268
270
  * Where the instance will be created. If not given, the region is decided based on
@@ -315,8 +317,9 @@ export namespace IosInstanceCreateParams {
315
317
  clientLocation?: Clue.ClientLocation;
316
318
 
317
319
  /**
318
- * The major version of iOS, "26" or "27". iphone runs both, iphone-duo runs 27,
319
- * ipad and watch run 26. Default is 26, or 27 on iphone-duo.
320
+ * The major version of iOS, "26" or "27". iphone and ipad run both; iphone-se,
321
+ * iphone-17e and iphone-duo run 27; watch runs 26. Default is 26, or 27 on the
322
+ * models that run only 27.
320
323
  */
321
324
  osVersion?: string;
322
325
  }
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Derives an iOS instance's HTTP port URL prefix (status.targetHttpPortUrlPrefix)
3
+ * from its API URL: the two share the instance path and differ only in the last
4
+ * segment, `/api` versus `/targetHttpPort`. Appending a port number to the prefix
5
+ * gives the URL of the HTTP service on that port inside the instance, so a caller
6
+ * holding only apiUrl and token can reach it.
7
+ *
8
+ * Returns undefined when the URL does not end in `/api`.
9
+ */
10
+ export function deriveTargetHttpPortUrlPrefix(apiUrl: string): string | undefined {
11
+ const match = /^(.*)\/api\/?$/.exec(apiUrl);
12
+ return match ? `${match[1]}/targetHttpPort` : undefined;
13
+ }
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.73.2'; // x-release-please-version
1
+ export const VERSION = '0.73.4'; // x-release-please-version
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Derives an iOS instance's HTTP port URL prefix (status.targetHttpPortUrlPrefix)
3
+ * from its API URL: the two share the instance path and differ only in the last
4
+ * segment, `/api` versus `/targetHttpPort`. Appending a port number to the prefix
5
+ * gives the URL of the HTTP service on that port inside the instance, so a caller
6
+ * holding only apiUrl and token can reach it.
7
+ *
8
+ * Returns undefined when the URL does not end in `/api`.
9
+ */
10
+ export declare function deriveTargetHttpPortUrlPrefix(apiUrl: string): string | undefined;
11
+ //# sourceMappingURL=target-http-port.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"target-http-port.d.mts","sourceRoot":"","sources":["src/target-http-port.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,wBAAgB,6BAA6B,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAGhF"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Derives an iOS instance's HTTP port URL prefix (status.targetHttpPortUrlPrefix)
3
+ * from its API URL: the two share the instance path and differ only in the last
4
+ * segment, `/api` versus `/targetHttpPort`. Appending a port number to the prefix
5
+ * gives the URL of the HTTP service on that port inside the instance, so a caller
6
+ * holding only apiUrl and token can reach it.
7
+ *
8
+ * Returns undefined when the URL does not end in `/api`.
9
+ */
10
+ export declare function deriveTargetHttpPortUrlPrefix(apiUrl: string): string | undefined;
11
+ //# sourceMappingURL=target-http-port.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"target-http-port.d.ts","sourceRoot":"","sources":["src/target-http-port.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,wBAAgB,6BAA6B,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAGhF"}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.deriveTargetHttpPortUrlPrefix = deriveTargetHttpPortUrlPrefix;
4
+ /**
5
+ * Derives an iOS instance's HTTP port URL prefix (status.targetHttpPortUrlPrefix)
6
+ * from its API URL: the two share the instance path and differ only in the last
7
+ * segment, `/api` versus `/targetHttpPort`. Appending a port number to the prefix
8
+ * gives the URL of the HTTP service on that port inside the instance, so a caller
9
+ * holding only apiUrl and token can reach it.
10
+ *
11
+ * Returns undefined when the URL does not end in `/api`.
12
+ */
13
+ function deriveTargetHttpPortUrlPrefix(apiUrl) {
14
+ const match = /^(.*)\/api\/?$/.exec(apiUrl);
15
+ return match ? `${match[1]}/targetHttpPort` : undefined;
16
+ }
17
+ //# sourceMappingURL=target-http-port.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"target-http-port.js","sourceRoot":"","sources":["src/target-http-port.ts"],"names":[],"mappings":";;AASA,sEAGC;AAZD;;;;;;;;GAQG;AACH,SAAgB,6BAA6B,CAAC,MAAc;IAC1D,MAAM,KAAK,GAAG,gBAAgB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAC5C,OAAO,KAAK,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,SAAS,CAAC;AAC1D,CAAC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Derives an iOS instance's HTTP port URL prefix (status.targetHttpPortUrlPrefix)
3
+ * from its API URL: the two share the instance path and differ only in the last
4
+ * segment, `/api` versus `/targetHttpPort`. Appending a port number to the prefix
5
+ * gives the URL of the HTTP service on that port inside the instance, so a caller
6
+ * holding only apiUrl and token can reach it.
7
+ *
8
+ * Returns undefined when the URL does not end in `/api`.
9
+ */
10
+ export function deriveTargetHttpPortUrlPrefix(apiUrl) {
11
+ const match = /^(.*)\/api\/?$/.exec(apiUrl);
12
+ return match ? `${match[1]}/targetHttpPort` : undefined;
13
+ }
14
+ //# sourceMappingURL=target-http-port.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"target-http-port.mjs","sourceRoot":"","sources":["src/target-http-port.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,MAAM,UAAU,6BAA6B,CAAC,MAAc;IAC1D,MAAM,KAAK,GAAG,gBAAgB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAC5C,OAAO,KAAK,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,SAAS,CAAC;AAC1D,CAAC"}
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.73.2";
1
+ export declare const VERSION = "0.73.4";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.73.2";
1
+ export declare const VERSION = "0.73.4";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.73.2'; // x-release-please-version
4
+ exports.VERSION = '0.73.4'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.73.2'; // x-release-please-version
1
+ export const VERSION = '0.73.4'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map