@raystack/frontier 0.66.0 → 0.68.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.
package/dist/index.js CHANGED
@@ -94,6 +94,7 @@ var HttpClient = class {
94
94
  };
95
95
  this.contentFormatters = {
96
96
  ["application/json" /* Json */]: (input) => input !== null && (typeof input === "object" || typeof input === "string") ? JSON.stringify(input) : input,
97
+ ["application/vnd.api+json" /* JsonApi */]: (input) => input !== null && (typeof input === "object" || typeof input === "string") ? JSON.stringify(input) : input,
97
98
  ["text/plain" /* Text */]: (input) => input !== null && typeof input !== "string" ? JSON.stringify(input) : input,
98
99
  ["multipart/form-data" /* FormData */]: (input) => Object.keys(input || {}).reduce((formData, key) => {
99
100
  const property = input[key];
@@ -149,11 +150,14 @@ var HttpClient = class {
149
150
  const queryString = query && this.toQueryString(query);
150
151
  const payloadFormatter = this.contentFormatters[type || "application/json" /* Json */];
151
152
  const responseFormat = format || requestParams.format;
152
- return this.customFetch(`${baseUrl || this.baseUrl || ""}${path}${queryString ? `?${queryString}` : ""}`, __spreadProps(__spreadValues({}, requestParams), {
153
- headers: __spreadValues(__spreadValues({}, requestParams.headers || {}), type && type !== "multipart/form-data" /* FormData */ ? { "Content-Type": type } : {}),
154
- signal: (cancelToken ? this.createAbortSignal(cancelToken) : requestParams.signal) || null,
155
- body: typeof body === "undefined" || body === null ? null : payloadFormatter(body)
156
- })).then((response) => __async(this, null, function* () {
153
+ return this.customFetch(
154
+ `${baseUrl || this.baseUrl || ""}${path}${queryString ? `?${queryString}` : ""}`,
155
+ __spreadProps(__spreadValues({}, requestParams), {
156
+ headers: __spreadValues(__spreadValues({}, requestParams.headers || {}), type && type !== "multipart/form-data" /* FormData */ ? { "Content-Type": type } : {}),
157
+ signal: (cancelToken ? this.createAbortSignal(cancelToken) : requestParams.signal) || null,
158
+ body: typeof body === "undefined" || body === null ? null : payloadFormatter(body)
159
+ })
160
+ ).then((response) => __async(this, null, function* () {
157
161
  const r = response.clone();
158
162
  r.data = null;
159
163
  r.error = null;
@@ -191,8 +195,12 @@ var HttpClient = class {
191
195
  }
192
196
  toQueryString(rawQuery) {
193
197
  const query = rawQuery || {};
194
- const keys = Object.keys(query).filter((key) => "undefined" !== typeof query[key]);
195
- return keys.map((key) => Array.isArray(query[key]) ? this.addArrayQueryParam(query, key) : this.addQueryParam(query, key)).join("&");
198
+ const keys = Object.keys(query).filter(
199
+ (key) => "undefined" !== typeof query[key]
200
+ );
201
+ return keys.map(
202
+ (key) => Array.isArray(query[key]) ? this.addArrayQueryParam(query, key) : this.addQueryParam(query, key)
203
+ ).join("&");
196
204
  }
197
205
  addQueryParams(rawQuery) {
198
206
  const queryString = this.toQueryString(rawQuery);
@@ -291,6 +299,23 @@ var V1Beta1 = class extends HttpClient {
291
299
  secure: true,
292
300
  format: "json"
293
301
  }, params));
302
+ /**
303
+ * No description
304
+ *
305
+ * @tags invoice
306
+ * @name AdminServiceSearchInvoices
307
+ * @summary Search invoices across all organizations
308
+ * @request POST:/v1beta1/admin/invoices/search
309
+ * @secure
310
+ */
311
+ this.adminServiceSearchInvoices = (query, params = {}) => this.request(__spreadValues({
312
+ path: `/v1beta1/admin/invoices/search`,
313
+ method: "POST",
314
+ body: query,
315
+ secure: true,
316
+ type: "application/json" /* Json */,
317
+ format: "json"
318
+ }, params));
294
319
  /**
295
320
  * @description Lists all the organizations in a Frontier instance. It can be filtered by user and state.
296
321
  *
@@ -307,6 +332,23 @@ var V1Beta1 = class extends HttpClient {
307
332
  secure: true,
308
333
  format: "json"
309
334
  }, params));
335
+ /**
336
+ * No description
337
+ *
338
+ * @tags Organization
339
+ * @name AdminServiceAdminCreateOrganization
340
+ * @summary Create organization as superadmin
341
+ * @request POST:/v1beta1/admin/organizations
342
+ * @secure
343
+ */
344
+ this.adminServiceAdminCreateOrganization = (body, params = {}) => this.request(__spreadValues({
345
+ path: `/v1beta1/admin/organizations`,
346
+ method: "POST",
347
+ body,
348
+ secure: true,
349
+ type: "application/json" /* Json */,
350
+ format: "json"
351
+ }, params));
310
352
  /**
311
353
  * No description
312
354
  *
@@ -321,6 +363,7 @@ var V1Beta1 = class extends HttpClient {
321
363
  method: "POST",
322
364
  body: query,
323
365
  secure: true,
366
+ type: "application/json" /* Json */,
324
367
  format: "json"
325
368
  }, params));
326
369
  /**
@@ -351,6 +394,7 @@ var V1Beta1 = class extends HttpClient {
351
394
  method: "POST",
352
395
  body: query,
353
396
  secure: true,
397
+ type: "application/json" /* Json */,
354
398
  format: "json"
355
399
  }, params));
356
400
  /**
@@ -367,6 +411,24 @@ var V1Beta1 = class extends HttpClient {
367
411
  method: "POST",
368
412
  body: query,
369
413
  secure: true,
414
+ type: "application/json" /* Json */,
415
+ format: "json"
416
+ }, params));
417
+ /**
418
+ * No description
419
+ *
420
+ * @tags Organization
421
+ * @name AdminServiceSearchOrganizationServiceUsers
422
+ * @summary Search organization service users
423
+ * @request POST:/v1beta1/admin/organizations/{id}/serviceusers/search
424
+ * @secure
425
+ */
426
+ this.adminServiceSearchOrganizationServiceUsers = (id, query, params = {}) => this.request(__spreadValues({
427
+ path: `/v1beta1/admin/organizations/${id}/serviceusers/search`,
428
+ method: "POST",
429
+ body: query,
430
+ secure: true,
431
+ type: "application/json" /* Json */,
370
432
  format: "json"
371
433
  }, params));
372
434
  /**
@@ -397,6 +459,7 @@ var V1Beta1 = class extends HttpClient {
397
459
  method: "POST",
398
460
  body: query,
399
461
  secure: true,
462
+ type: "application/json" /* Json */,
400
463
  format: "json"
401
464
  }, params));
402
465
  /**
@@ -427,6 +490,7 @@ var V1Beta1 = class extends HttpClient {
427
490
  method: "POST",
428
491
  body: query,
429
492
  secure: true,
493
+ type: "application/json" /* Json */,
430
494
  format: "json"
431
495
  }, params));
432
496
  /**
@@ -463,6 +527,38 @@ var V1Beta1 = class extends HttpClient {
463
527
  type: "application/json" /* Json */,
464
528
  format: "json"
465
529
  }, params));
530
+ /**
531
+ * @description Get billing account details that can be updated.
532
+ *
533
+ * @tags Billing
534
+ * @name AdminServiceGetBillingAccountDetails
535
+ * @summary Get billing account details
536
+ * @request GET:/v1beta1/admin/organizations/{org_id}/billing/{id}/details
537
+ * @secure
538
+ */
539
+ this.adminServiceGetBillingAccountDetails = (orgId, id, params = {}) => this.request(__spreadValues({
540
+ path: `/v1beta1/admin/organizations/${orgId}/billing/${id}/details`,
541
+ method: "GET",
542
+ secure: true,
543
+ format: "json"
544
+ }, params));
545
+ /**
546
+ * @description Update billing account details.
547
+ *
548
+ * @tags Billing
549
+ * @name AdminServiceUpdateBillingAccountDetails
550
+ * @summary Update billing account details
551
+ * @request PUT:/v1beta1/admin/organizations/{org_id}/billing/{id}/details
552
+ * @secure
553
+ */
554
+ this.adminServiceUpdateBillingAccountDetails = (orgId, id, body, params = {}) => this.request(__spreadValues({
555
+ path: `/v1beta1/admin/organizations/${orgId}/billing/${id}/details`,
556
+ method: "PUT",
557
+ body,
558
+ secure: true,
559
+ type: "application/json" /* Json */,
560
+ format: "json"
561
+ }, params));
466
562
  /**
467
563
  * @description Update billing account limits.
468
564
  *
@@ -470,6 +566,7 @@ var V1Beta1 = class extends HttpClient {
470
566
  * @name AdminServiceUpdateBillingAccountLimits
471
567
  * @summary Update billing account limits
472
568
  * @request PUT:/v1beta1/admin/organizations/{org_id}/billing/{id}/limits
569
+ * @deprecated
473
570
  * @secure
474
571
  */
475
572
  this.adminServiceUpdateBillingAccountLimits = (orgId, id, body, params = {}) => this.request(__spreadValues({
@@ -557,6 +654,7 @@ var V1Beta1 = class extends HttpClient {
557
654
  method: "POST",
558
655
  body: query,
559
656
  secure: true,
657
+ type: "application/json" /* Json */,
560
658
  format: "json"
561
659
  }, params));
562
660
  /**
@@ -638,6 +736,7 @@ var V1Beta1 = class extends HttpClient {
638
736
  method: "POST",
639
737
  body: query,
640
738
  secure: true,
739
+ type: "application/json" /* Json */,
641
740
  format: "json"
642
741
  }, params));
643
742
  /**
@@ -718,6 +817,7 @@ var V1Beta1 = class extends HttpClient {
718
817
  method: "POST",
719
818
  body: query,
720
819
  secure: true,
820
+ type: "application/json" /* Json */,
721
821
  format: "json"
722
822
  }, params));
723
823
  /**
@@ -752,6 +852,21 @@ var V1Beta1 = class extends HttpClient {
752
852
  secure: true,
753
853
  format: "json"
754
854
  }, params));
855
+ /**
856
+ * @description Lists all the service users from all the organizations in a Frontier instance.
857
+ *
858
+ * @tags User
859
+ * @name AdminServiceListAllServiceUsers
860
+ * @summary List all service users
861
+ * @request GET:/v1beta1/admin/serviceusers
862
+ * @secure
863
+ */
864
+ this.adminServiceListAllServiceUsers = (params = {}) => this.request(__spreadValues({
865
+ path: `/v1beta1/admin/serviceusers`,
866
+ method: "GET",
867
+ secure: true,
868
+ format: "json"
869
+ }, params));
755
870
  /**
756
871
  * @description Lists all the users from all the organizations in a Frontier instance. It can be filtered by keyword, organization, group and state.
757
872
  *
@@ -768,6 +883,71 @@ var V1Beta1 = class extends HttpClient {
768
883
  secure: true,
769
884
  format: "json"
770
885
  }, params));
886
+ /**
887
+ * No description
888
+ *
889
+ * @tags User
890
+ * @name AdminServiceSearchUserOrganizations
891
+ * @summary Search users organizations
892
+ * @request POST:/v1beta1/admin/users/{id}/organizations/search
893
+ * @secure
894
+ */
895
+ this.adminServiceSearchUserOrganizations = (id, query, params = {}) => this.request(__spreadValues({
896
+ path: `/v1beta1/admin/users/${id}/organizations/search`,
897
+ method: "POST",
898
+ body: query,
899
+ secure: true,
900
+ type: "application/json" /* Json */,
901
+ format: "json"
902
+ }, params));
903
+ /**
904
+ * No description
905
+ *
906
+ * @tags User
907
+ * @name AdminServiceSearchUserProjects
908
+ * @summary Search projects of a user within an org
909
+ * @request POST:/v1beta1/admin/users/{user_id}/organizations/{org_id}/projects
910
+ * @secure
911
+ */
912
+ this.adminServiceSearchUserProjects = (userId, orgId, query, params = {}) => this.request(__spreadValues({
913
+ path: `/v1beta1/admin/users/${userId}/organizations/${orgId}/projects`,
914
+ method: "POST",
915
+ body: query,
916
+ secure: true,
917
+ type: "application/json" /* Json */,
918
+ format: "json"
919
+ }, params));
920
+ /**
921
+ * @description Export user with demographic properties and billing plan details
922
+ *
923
+ * @tags User
924
+ * @name AdminServiceExportUsers
925
+ * @summary Export users
926
+ * @request GET:/v1beta1/admin/users/export
927
+ * @secure
928
+ */
929
+ this.adminServiceExportUsers = (params = {}) => this.request(__spreadValues({
930
+ path: `/v1beta1/admin/users/export`,
931
+ method: "GET",
932
+ secure: true
933
+ }, params));
934
+ /**
935
+ * @description Search users based on their properties
936
+ *
937
+ * @tags User
938
+ * @name AdminServiceSearchUsers
939
+ * @summary Search users
940
+ * @request POST:/v1beta1/admin/users/search
941
+ * @secure
942
+ */
943
+ this.adminServiceSearchUsers = (query, params = {}) => this.request(__spreadValues({
944
+ path: `/v1beta1/admin/users/search`,
945
+ method: "POST",
946
+ body: query,
947
+ secure: true,
948
+ type: "application/json" /* Json */,
949
+ format: "json"
950
+ }, params));
771
951
  /**
772
952
  * @description List all webhooks.
773
953
  *
@@ -992,6 +1172,23 @@ var V1Beta1 = class extends HttpClient {
992
1172
  type: "application/json" /* Json */,
993
1173
  format: "json"
994
1174
  }, params));
1175
+ /**
1176
+ * @description Check if a billing account has enough credits to cover the amount.
1177
+ *
1178
+ * @tags Entitlement
1179
+ * @name FrontierServiceCheckCreditEntitlement
1180
+ * @summary Check credit entitlement
1181
+ * @request POST:/v1beta1/billing/check
1182
+ * @secure
1183
+ */
1184
+ this.frontierServiceCheckCreditEntitlement = (body, params = {}) => this.request(__spreadValues({
1185
+ path: `/v1beta1/billing/check`,
1186
+ method: "POST",
1187
+ body,
1188
+ secure: true,
1189
+ type: "application/json" /* Json */,
1190
+ format: "json"
1191
+ }, params));
995
1192
  /**
996
1193
  * @description List all features
997
1194
  *
@@ -1247,6 +1444,7 @@ var V1Beta1 = class extends HttpClient {
1247
1444
  method: "POST",
1248
1445
  body,
1249
1446
  secure: true,
1447
+ type: "application/json" /* Json */,
1250
1448
  format: "json"
1251
1449
  }, params));
1252
1450
  /**
@@ -1278,6 +1476,7 @@ var V1Beta1 = class extends HttpClient {
1278
1476
  method: "POST",
1279
1477
  body,
1280
1478
  secure: true,
1479
+ type: "application/json" /* Json */,
1281
1480
  format: "json"
1282
1481
  }, params));
1283
1482
  /**
@@ -1324,6 +1523,7 @@ var V1Beta1 = class extends HttpClient {
1324
1523
  method: "PUT",
1325
1524
  body,
1326
1525
  secure: true,
1526
+ type: "application/json" /* Json */,
1327
1527
  format: "json"
1328
1528
  }, params));
1329
1529
  /**
@@ -1386,6 +1586,7 @@ var V1Beta1 = class extends HttpClient {
1386
1586
  method: "POST",
1387
1587
  body,
1388
1588
  secure: true,
1589
+ type: "application/json" /* Json */,
1389
1590
  format: "json"
1390
1591
  }, params));
1391
1592
  /**
@@ -1432,6 +1633,7 @@ var V1Beta1 = class extends HttpClient {
1432
1633
  method: "PUT",
1433
1634
  body,
1434
1635
  secure: true,
1636
+ type: "application/json" /* Json */,
1435
1637
  format: "json"
1436
1638
  }, params));
1437
1639
  /**
@@ -1463,6 +1665,7 @@ var V1Beta1 = class extends HttpClient {
1463
1665
  method: "POST",
1464
1666
  body,
1465
1667
  secure: true,
1668
+ type: "application/json" /* Json */,
1466
1669
  format: "json"
1467
1670
  }, params));
1468
1671
  /**
@@ -1479,6 +1682,7 @@ var V1Beta1 = class extends HttpClient {
1479
1682
  method: "POST",
1480
1683
  body,
1481
1684
  secure: true,
1685
+ type: "application/json" /* Json */,
1482
1686
  format: "json"
1483
1687
  }, params));
1484
1688
  /**
@@ -1505,13 +1709,16 @@ var V1Beta1 = class extends HttpClient {
1505
1709
  * @request POST:/v1beta1/organizations/{id}/preferences
1506
1710
  * @secure
1507
1711
  */
1508
- this.frontierServiceCreateOrganizationPreferences = (id, body, params = {}) => this.request(__spreadValues({
1509
- path: `/v1beta1/organizations/${id}/preferences`,
1510
- method: "POST",
1511
- body,
1512
- secure: true,
1513
- format: "json"
1514
- }, params));
1712
+ this.frontierServiceCreateOrganizationPreferences = (id, body, params = {}) => this.request(
1713
+ __spreadValues({
1714
+ path: `/v1beta1/organizations/${id}/preferences`,
1715
+ method: "POST",
1716
+ body,
1717
+ secure: true,
1718
+ type: "application/json" /* Json */,
1719
+ format: "json"
1720
+ }, params)
1721
+ );
1515
1722
  /**
1516
1723
  * @description Get all projects that belong to an organization
1517
1724
  *
@@ -1975,6 +2182,7 @@ var V1Beta1 = class extends HttpClient {
1975
2182
  method: "POST",
1976
2183
  body,
1977
2184
  secure: true,
2185
+ type: "application/json" /* Json */,
1978
2186
  format: "json"
1979
2187
  }, params));
1980
2188
  /**
@@ -1991,6 +2199,7 @@ var V1Beta1 = class extends HttpClient {
1991
2199
  method: "POST",
1992
2200
  body,
1993
2201
  secure: true,
2202
+ type: "application/json" /* Json */,
1994
2203
  format: "json"
1995
2204
  }, params));
1996
2205
  /**
@@ -2022,6 +2231,7 @@ var V1Beta1 = class extends HttpClient {
2022
2231
  method: "POST",
2023
2232
  body,
2024
2233
  secure: true,
2234
+ type: "application/json" /* Json */,
2025
2235
  format: "json"
2026
2236
  }, params));
2027
2237
  /**
@@ -2281,6 +2491,7 @@ var V1Beta1 = class extends HttpClient {
2281
2491
  method: "POST",
2282
2492
  body,
2283
2493
  secure: true,
2494
+ type: "application/json" /* Json */,
2284
2495
  format: "json"
2285
2496
  }, params));
2286
2497
  /**
@@ -2313,6 +2524,7 @@ var V1Beta1 = class extends HttpClient {
2313
2524
  method: "POST",
2314
2525
  body,
2315
2526
  secure: true,
2527
+ type: "application/json" /* Json */,
2316
2528
  format: "json"
2317
2529
  }, params));
2318
2530
  /**
@@ -2360,6 +2572,7 @@ var V1Beta1 = class extends HttpClient {
2360
2572
  method: "PUT",
2361
2573
  body,
2362
2574
  secure: true,
2575
+ type: "application/json" /* Json */,
2363
2576
  format: "json"
2364
2577
  }, params));
2365
2578
  /**
@@ -2376,6 +2589,7 @@ var V1Beta1 = class extends HttpClient {
2376
2589
  method: "POST",
2377
2590
  body,
2378
2591
  secure: true,
2592
+ type: "application/json" /* Json */,
2379
2593
  format: "json"
2380
2594
  }, params));
2381
2595
  /**
@@ -2392,6 +2606,7 @@ var V1Beta1 = class extends HttpClient {
2392
2606
  method: "POST",
2393
2607
  body,
2394
2608
  secure: true,
2609
+ type: "application/json" /* Json */,
2395
2610
  format: "json"
2396
2611
  }, params));
2397
2612
  /**
@@ -2519,6 +2734,7 @@ var V1Beta1 = class extends HttpClient {
2519
2734
  method: "POST",
2520
2735
  body,
2521
2736
  secure: true,
2737
+ type: "application/json" /* Json */,
2522
2738
  format: "json"
2523
2739
  }, params));
2524
2740
  /**
@@ -2535,6 +2751,7 @@ var V1Beta1 = class extends HttpClient {
2535
2751
  method: "POST",
2536
2752
  body,
2537
2753
  secure: true,
2754
+ type: "application/json" /* Json */,
2538
2755
  format: "json"
2539
2756
  }, params));
2540
2757
  /**
@@ -2582,6 +2799,7 @@ var V1Beta1 = class extends HttpClient {
2582
2799
  method: "POST",
2583
2800
  body,
2584
2801
  secure: true,
2802
+ type: "application/json" /* Json */,
2585
2803
  format: "json"
2586
2804
  }, params));
2587
2805
  /**
@@ -2628,6 +2846,7 @@ var V1Beta1 = class extends HttpClient {
2628
2846
  method: "PUT",
2629
2847
  body,
2630
2848
  secure: true,
2849
+ type: "application/json" /* Json */,
2631
2850
  format: "json"
2632
2851
  }, params));
2633
2852
  /**
@@ -2706,6 +2925,7 @@ var V1Beta1 = class extends HttpClient {
2706
2925
  method: "POST",
2707
2926
  body,
2708
2927
  secure: true,
2928
+ type: "application/json" /* Json */,
2709
2929
  format: "json"
2710
2930
  }, params));
2711
2931
  /**
@@ -2783,6 +3003,7 @@ var V1Beta1 = class extends HttpClient {
2783
3003
  method: "POST",
2784
3004
  body,
2785
3005
  secure: true,
3006
+ type: "application/json" /* Json */,
2786
3007
  format: "json"
2787
3008
  }, params));
2788
3009
  /**
@@ -2829,6 +3050,7 @@ var V1Beta1 = class extends HttpClient {
2829
3050
  method: "POST",
2830
3051
  body,
2831
3052
  secure: true,
3053
+ type: "application/json" /* Json */,
2832
3054
  format: "json"
2833
3055
  }, params));
2834
3056
  /**
@@ -3006,6 +3228,7 @@ var V1Beta1 = class extends HttpClient {
3006
3228
  method: "POST",
3007
3229
  body,
3008
3230
  secure: true,
3231
+ type: "application/json" /* Json */,
3009
3232
  format: "json"
3010
3233
  }, params));
3011
3234
  /**
@@ -3052,6 +3275,7 @@ var V1Beta1 = class extends HttpClient {
3052
3275
  method: "PUT",
3053
3276
  body,
3054
3277
  secure: true,
3278
+ type: "application/json" /* Json */,
3055
3279
  format: "json"
3056
3280
  }, params));
3057
3281
  /**
@@ -3132,6 +3356,7 @@ var V1Beta1 = class extends HttpClient {
3132
3356
  method: "POST",
3133
3357
  body,
3134
3358
  secure: true,
3359
+ type: "application/json" /* Json */,
3135
3360
  format: "json"
3136
3361
  }, params));
3137
3362
  /**
@@ -3178,6 +3403,7 @@ var V1Beta1 = class extends HttpClient {
3178
3403
  method: "PUT",
3179
3404
  body,
3180
3405
  secure: true,
3406
+ type: "application/json" /* Json */,
3181
3407
  format: "json"
3182
3408
  }, params));
3183
3409
  /**
@@ -3209,6 +3435,7 @@ var V1Beta1 = class extends HttpClient {
3209
3435
  method: "POST",
3210
3436
  body,
3211
3437
  secure: true,
3438
+ type: "application/json" /* Json */,
3212
3439
  format: "json"
3213
3440
  }, params));
3214
3441
  /**
@@ -3225,6 +3452,7 @@ var V1Beta1 = class extends HttpClient {
3225
3452
  method: "POST",
3226
3453
  body,
3227
3454
  secure: true,
3455
+ type: "application/json" /* Json */,
3228
3456
  format: "json"
3229
3457
  }, params));
3230
3458
  /**
@@ -3272,6 +3500,7 @@ var V1Beta1 = class extends HttpClient {
3272
3500
  method: "POST",
3273
3501
  body,
3274
3502
  secure: true,
3503
+ type: "application/json" /* Json */,
3275
3504
  format: "json"
3276
3505
  }, params));
3277
3506
  /**
@@ -3337,6 +3566,7 @@ var V1Beta1 = class extends HttpClient {
3337
3566
  query,
3338
3567
  body,
3339
3568
  secure: true,
3569
+ type: "application/json" /* Json */,
3340
3570
  format: "json"
3341
3571
  }, params));
3342
3572
  /**
@@ -3383,6 +3613,7 @@ var V1Beta1 = class extends HttpClient {
3383
3613
  method: "PUT",
3384
3614
  body,
3385
3615
  secure: true,
3616
+ type: "application/json" /* Json */,
3386
3617
  format: "json"
3387
3618
  }, params));
3388
3619
  /**
@@ -3479,6 +3710,7 @@ var V1Beta1 = class extends HttpClient {
3479
3710
  method: "POST",
3480
3711
  body,
3481
3712
  secure: true,
3713
+ type: "application/json" /* Json */,
3482
3714
  format: "json"
3483
3715
  }, params));
3484
3716
  /**
@@ -3510,6 +3742,7 @@ var V1Beta1 = class extends HttpClient {
3510
3742
  method: "PUT",
3511
3743
  body,
3512
3744
  secure: true,
3745
+ type: "application/json" /* Json */,
3513
3746
  format: "json"
3514
3747
  }, params));
3515
3748
  /**
@@ -3556,6 +3789,7 @@ var V1Beta1 = class extends HttpClient {
3556
3789
  path: `/v1beta1/users`,
3557
3790
  method: "POST",
3558
3791
  body,
3792
+ type: "application/json" /* Json */,
3559
3793
  format: "json"
3560
3794
  }, params));
3561
3795
  /**
@@ -3602,6 +3836,7 @@ var V1Beta1 = class extends HttpClient {
3602
3836
  method: "PUT",
3603
3837
  body,
3604
3838
  secure: true,
3839
+ type: "application/json" /* Json */,
3605
3840
  format: "json"
3606
3841
  }, params));
3607
3842
  /**
@@ -3618,6 +3853,7 @@ var V1Beta1 = class extends HttpClient {
3618
3853
  method: "POST",
3619
3854
  body,
3620
3855
  secure: true,
3856
+ type: "application/json" /* Json */,
3621
3857
  format: "json"
3622
3858
  }, params));
3623
3859
  /**
@@ -3634,6 +3870,7 @@ var V1Beta1 = class extends HttpClient {
3634
3870
  method: "POST",
3635
3871
  body,
3636
3872
  secure: true,
3873
+ type: "application/json" /* Json */,
3637
3874
  format: "json"
3638
3875
  }, params));
3639
3876
  /**
@@ -3712,6 +3949,7 @@ var V1Beta1 = class extends HttpClient {
3712
3949
  method: "POST",
3713
3950
  body,
3714
3951
  secure: true,
3952
+ type: "application/json" /* Json */,
3715
3953
  format: "json"
3716
3954
  }, params));
3717
3955
  /**
@@ -3758,6 +3996,7 @@ var V1Beta1 = class extends HttpClient {
3758
3996
  method: "PUT",
3759
3997
  body,
3760
3998
  secure: true,
3999
+ type: "application/json" /* Json */,
3761
4000
  format: "json"
3762
4001
  }, params));
3763
4002
  /**
@@ -3859,16 +4098,16 @@ var V1Beta1 = class extends HttpClient {
3859
4098
  };
3860
4099
 
3861
4100
  // api-client/data-contracts.ts
3862
- var ProtobufNullValue = /* @__PURE__ */ ((ProtobufNullValue2) => {
3863
- ProtobufNullValue2["NULL_VALUE"] = "NULL_VALUE";
3864
- return ProtobufNullValue2;
3865
- })(ProtobufNullValue || {});
3866
4101
  var V1Beta1ProspectStatus = /* @__PURE__ */ ((V1Beta1ProspectStatus2) => {
3867
4102
  V1Beta1ProspectStatus2["STATUS_UNSPECIFIED"] = "STATUS_UNSPECIFIED";
3868
4103
  V1Beta1ProspectStatus2["STATUS_UNSUBSCRIBED"] = "STATUS_UNSUBSCRIBED";
3869
4104
  V1Beta1ProspectStatus2["STATUS_SUBSCRIBED"] = "STATUS_SUBSCRIBED";
3870
4105
  return V1Beta1ProspectStatus2;
3871
4106
  })(V1Beta1ProspectStatus || {});
4107
+ var ProtobufNullValue = /* @__PURE__ */ ((ProtobufNullValue2) => {
4108
+ ProtobufNullValue2["NULL_VALUE"] = "NULL_VALUE";
4109
+ return ProtobufNullValue2;
4110
+ })(ProtobufNullValue || {});
3872
4111
 
3873
4112
  // src/index.ts
3874
4113
  var FrontierClient = V1Beta1;