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