@stack-spot/portal-network 0.119.1 → 0.121.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.
@@ -58,6 +58,58 @@ export type ServiceCredentialRateLimitRequest = {
58
58
  /** List of service credential IDs */
59
59
  serviceCredentialIds: string[];
60
60
  };
61
+ export type UpdateResourcesTypeRequest = {
62
+ /** The resource type */
63
+ resourceType: string;
64
+ /** The feature flag mode */
65
+ mode: "ALL" | "NONE" | "SPECIFIC";
66
+ /** The resource slugs */
67
+ slugs?: string[];
68
+ };
69
+ export type UpdateFeatureFlagAccountRequest = {
70
+ resources: UpdateResourcesTypeRequest;
71
+ /** The feature flag is enabled */
72
+ enabled: boolean;
73
+ };
74
+ export type UpdateFeatureFlagRequest = {
75
+ /** The feature flag name */
76
+ name: string;
77
+ /** The feature flag slug */
78
+ slug: string;
79
+ /** The feature flag description */
80
+ description: string;
81
+ /** The feature flag auto create */
82
+ autoCreate: boolean;
83
+ /** The feature flag system */
84
+ system: boolean;
85
+ };
86
+ export type UpdateFeatureFlagsResponse = {
87
+ /** The feature flag id */
88
+ id: number;
89
+ /** The feature flag name */
90
+ name: string;
91
+ /** The feature flag slug */
92
+ slug: string;
93
+ /** The feature flag description */
94
+ description: string;
95
+ /** If the feature flag is autoCreate or not in the current account */
96
+ autoCreate: boolean;
97
+ /** If the feature flag is system or not in the current account */
98
+ system: boolean;
99
+ };
100
+ export type ResourcesTypeRequest = {
101
+ /** The resource type */
102
+ resourceType: string;
103
+ /** The feature flag mode */
104
+ mode: "ALL" | "NONE" | "SPECIFIC";
105
+ /** The resource slugs */
106
+ slugs?: string[];
107
+ };
108
+ export type CreateFeatureFlagAccountRequest = {
109
+ resources: ResourcesTypeRequest;
110
+ /** The feature flag is enabled */
111
+ enabled: boolean;
112
+ };
61
113
  export type UserScmInfoResponse = {
62
114
  /** Secrets name */
63
115
  secretName: string;
@@ -355,14 +407,6 @@ export type UserInvitationResponse = {
355
407
  /** Current status of the invitation */
356
408
  status: "ACCEPTED" | "PENDING" | "CANCELLED";
357
409
  };
358
- export type UpdateFeatureFlagRequest = {
359
- /** The feature flag name */
360
- name: string;
361
- /** The feature flag slug */
362
- slug: string;
363
- /** The feature flag description */
364
- description: string;
365
- };
366
410
  export type UpdateSalesRepresentativesRequest = {
367
411
  /** List of emails from sales representatives responsible for the account. */
368
412
  salesRepresentatives: string[];
@@ -554,6 +598,58 @@ export type ServiceCredentialCreateResponseV2 = {
554
598
  /** Account tenant */
555
599
  tenant: string;
556
600
  };
601
+ export type FeatureFlagsResourceCountResponse = {
602
+ /** The Feature Flag Resource Mode */
603
+ mode?: "ALL" | "NONE" | "SPECIFIC";
604
+ /** The Resource's Slug */
605
+ slug?: string;
606
+ /** The Quantity of Resources in The Feature FLag */
607
+ resourceCount: number;
608
+ };
609
+ export type FeatureFlagsResponseV2 = {
610
+ /** The feature flag id */
611
+ id: number;
612
+ /** The feature flag name */
613
+ name: string;
614
+ /** The feature flag slug */
615
+ slug: string;
616
+ /** The feature flag description */
617
+ description: string;
618
+ /** If the feature flag is auto create or not in the current account */
619
+ autoCreate: boolean;
620
+ /** If the feature flag is enabled or not in the current account */
621
+ status?: boolean;
622
+ /** If the feature flag is system or not in the current account */
623
+ system: boolean;
624
+ /** The count of the resources in the feature flag */
625
+ resourceType?: FeatureFlagsResourceCountResponse[];
626
+ };
627
+ export type CreateFeatureFlagRequest = {
628
+ /** The feature flag name */
629
+ name: string;
630
+ /** The feature flag slug */
631
+ slug: string;
632
+ /** The feature flag description */
633
+ description: string;
634
+ /** The feature flag auto create */
635
+ autoCreate: boolean;
636
+ /** The feature flag system */
637
+ system: boolean;
638
+ };
639
+ export type CreateFeatureFlagsResponse = {
640
+ /** The feature flag id */
641
+ id: number;
642
+ /** The feature flag name */
643
+ name: string;
644
+ /** The feature flag slug */
645
+ slug: string;
646
+ /** The feature flag description */
647
+ description: string;
648
+ /** If the feature flag is autoCreate or not in the current account */
649
+ autoCreate: boolean;
650
+ /** If the feature flag is system or not in the current account */
651
+ system: boolean;
652
+ };
557
653
  export type StatementRequest = {
558
654
  /** Resource id */
559
655
  resource: string;
@@ -1034,24 +1130,6 @@ export type ReadGroupMembersResponse = {
1034
1130
  export type GroupMemberIdsRequest = {
1035
1131
  ids: string[];
1036
1132
  };
1037
- export type FeatureFlagsResponse = {
1038
- /** The feature flag id */
1039
- id: number;
1040
- /** The feature flag name */
1041
- name: string;
1042
- /** The feature flag slug */
1043
- slug: string;
1044
- /** If the feature flag is enabled or not in the current account */
1045
- enabled: boolean;
1046
- };
1047
- export type CreateFeatureFlagRequest = {
1048
- /** The feature flag name */
1049
- name: string;
1050
- /** The feature flag slug */
1051
- slug: string;
1052
- /** The feature flag description */
1053
- description: string;
1054
- };
1055
1133
  export type ExtensionInfoByLanguageResponse = {
1056
1134
  pt?: string;
1057
1135
  en?: string;
@@ -1163,6 +1241,10 @@ export type ContactEmailRequest = {
1163
1241
  /** Telephone of the contact requester */
1164
1242
  telephone?: string;
1165
1243
  };
1244
+ export type CampaignAvailableResponse = {
1245
+ /** Campaign Status */
1246
+ isAvailable: boolean;
1247
+ };
1166
1248
  export type SwitchAccountRequest = {
1167
1249
  /** Account slug to switch to */
1168
1250
  accountId: string;
@@ -1300,6 +1382,8 @@ export type AccountTrialCreateRequest = {
1300
1382
  reachedBy?: ("GOOGLE_SEARCH" | "REFERRAL" | "SOCIAL_MEDIA" | "ONLINE_AD" | "EVENT_CONFERENCE" | "EMAIL_CAMPAIGN" | "FRIEND_COLLEAGUE" | "BLOG_ARTICLE" | "YOUTUBE_VIDEO_CONTENT" | "ZUP_OFFICIAL_CHANNELS" | "OTHER")[];
1301
1383
  /** The custom channel used for the trial user to reach Stackspot */
1302
1384
  customReachedBy?: string;
1385
+ /** The campaign code */
1386
+ campaignCode?: string;
1303
1387
  };
1304
1388
  export type PersonalAccountExpirationDataResponse = {
1305
1389
  /** Account id */
@@ -1813,6 +1897,32 @@ export type PageResponseReadGroupMembersResponse = {
1813
1897
  /** Total pages found */
1814
1898
  totalPages: number;
1815
1899
  };
1900
+ export type PageResponseFeatureFlagsResponseV2 = {
1901
+ /** Current page content */
1902
+ items?: FeatureFlagsResponseV2[];
1903
+ /** Total elements found */
1904
+ totalElements: number;
1905
+ /** Current page number */
1906
+ page: number;
1907
+ /** Length of current page items */
1908
+ size: number;
1909
+ /** Total pages found */
1910
+ totalPages: number;
1911
+ };
1912
+ export type FeatureFlagReadResourceResponse = {
1913
+ /** Enum representing the mode of a feature flag */
1914
+ mode: "ALL" | "NONE" | "SPECIFIC";
1915
+ /** A list of resource slugs the feature flag applies to */
1916
+ slugs: string[];
1917
+ };
1918
+ export type FeatureFlagReadResponse = {
1919
+ /** The slug of the feature flag */
1920
+ slug: string;
1921
+ /** A map of resources associated with the feature flag */
1922
+ resources: {
1923
+ [key: string]: FeatureFlagReadResourceResponse;
1924
+ };
1925
+ };
1816
1926
  export type AccountCollaborationInfoResponse = {
1817
1927
  /** Account ID */
1818
1928
  id: string;
@@ -1922,6 +2032,16 @@ export type ResourceDto = {
1922
2032
  description?: string;
1923
2033
  "type"?: ResourceTypeDto;
1924
2034
  };
2035
+ export type FeatureFlagsResponse = {
2036
+ /** The feature flag id */
2037
+ id: number;
2038
+ /** The feature flag name */
2039
+ name: string;
2040
+ /** The feature flag slug */
2041
+ slug: string;
2042
+ /** If the feature flag is enabled or not in the current account */
2043
+ enabled: boolean;
2044
+ };
1925
2045
  export type ExtensionVersionInfoByLanguageResponse = {
1926
2046
  pt?: string;
1927
2047
  en?: string;
@@ -2092,10 +2212,151 @@ export function updateServiceCredentialRateLimit({ serviceCredentialRateLimitReq
2092
2212
  body: serviceCredentialRateLimitRequest
2093
2213
  })));
2094
2214
  }
2215
+ /**
2216
+ * Update a feature flag by id directly assigned to an account holder
2217
+ */
2218
+ export function updateFeatureFlag({ id, updateFeatureFlagAccountRequest }: {
2219
+ id: number;
2220
+ updateFeatureFlagAccountRequest: UpdateFeatureFlagAccountRequest;
2221
+ }, opts?: Oazapfts.RequestOpts) {
2222
+ return oazapfts.ok(oazapfts.fetchJson<{
2223
+ status: 204;
2224
+ } | {
2225
+ status: 400;
2226
+ data: ErrorResponse;
2227
+ } | {
2228
+ status: 422;
2229
+ data: ErrorResponse;
2230
+ } | {
2231
+ status: 500;
2232
+ }>(`/v2/feature-flags/${encodeURIComponent(id)}`, oazapfts.json({
2233
+ ...opts,
2234
+ method: "PUT",
2235
+ body: updateFeatureFlagAccountRequest
2236
+ })));
2237
+ }
2238
+ /**
2239
+ * Updates an existing Feature Flag with the provided details.
2240
+ */
2241
+ export function update({ id, updateFeatureFlagRequest }: {
2242
+ id: number;
2243
+ updateFeatureFlagRequest: UpdateFeatureFlagRequest;
2244
+ }, opts?: Oazapfts.RequestOpts) {
2245
+ return oazapfts.ok(oazapfts.fetchJson<{
2246
+ status: 202;
2247
+ data: UpdateFeatureFlagsResponse;
2248
+ } | {
2249
+ status: 400;
2250
+ data: ErrorResponse;
2251
+ } | {
2252
+ status: 422;
2253
+ data: ErrorResponse;
2254
+ } | {
2255
+ status: 500;
2256
+ data: UpdateFeatureFlagsResponse;
2257
+ }>(`/v2/admin/feature-flags/${encodeURIComponent(id)}`, oazapfts.json({
2258
+ ...opts,
2259
+ method: "PUT",
2260
+ body: updateFeatureFlagRequest
2261
+ })));
2262
+ }
2263
+ /**
2264
+ * Deletes an existing Feature Flag with the provided id.
2265
+ */
2266
+ export function deleteV2AdminFeatureFlagsById({ id }: {
2267
+ id: number;
2268
+ }, opts?: Oazapfts.RequestOpts) {
2269
+ return oazapfts.ok(oazapfts.fetchJson<{
2270
+ status: 204;
2271
+ } | {
2272
+ status: 403;
2273
+ data: ErrorResponse;
2274
+ } | {
2275
+ status: 404;
2276
+ data: ErrorResponse;
2277
+ } | {
2278
+ status: 500;
2279
+ data: ErrorResponse;
2280
+ }>(`/v2/admin/feature-flags/${encodeURIComponent(id)}`, {
2281
+ ...opts,
2282
+ method: "DELETE"
2283
+ }));
2284
+ }
2285
+ /**
2286
+ * Updates an existing Feature Flag resources with the provided details.
2287
+ */
2288
+ export function updateAccountAssociation({ featureFlagId, accountId, updateFeatureFlagAccountRequest }: {
2289
+ featureFlagId: number;
2290
+ accountId: number;
2291
+ updateFeatureFlagAccountRequest: UpdateFeatureFlagAccountRequest;
2292
+ }, opts?: Oazapfts.RequestOpts) {
2293
+ return oazapfts.ok(oazapfts.fetchJson<{
2294
+ status: 202;
2295
+ } | {
2296
+ status: 400;
2297
+ data: ErrorResponse;
2298
+ } | {
2299
+ status: 422;
2300
+ data: ErrorResponse;
2301
+ } | {
2302
+ status: 500;
2303
+ }>(`/v2/admin/feature-flags/${encodeURIComponent(featureFlagId)}/account/${encodeURIComponent(accountId)}`, oazapfts.json({
2304
+ ...opts,
2305
+ method: "PUT",
2306
+ body: updateFeatureFlagAccountRequest
2307
+ })));
2308
+ }
2309
+ /**
2310
+ * Creates a new Feature Flag resource for the given account.
2311
+ */
2312
+ export function createAccountAssociation({ featureFlagId, accountId, createFeatureFlagAccountRequest }: {
2313
+ featureFlagId: number;
2314
+ accountId: number;
2315
+ createFeatureFlagAccountRequest: CreateFeatureFlagAccountRequest;
2316
+ }, opts?: Oazapfts.RequestOpts) {
2317
+ return oazapfts.ok(oazapfts.fetchJson<{
2318
+ status: 201;
2319
+ } | {
2320
+ status: 400;
2321
+ data: ErrorResponse;
2322
+ } | {
2323
+ status: 422;
2324
+ data: ErrorResponse;
2325
+ } | {
2326
+ status: 500;
2327
+ }>(`/v2/admin/feature-flags/${encodeURIComponent(featureFlagId)}/account/${encodeURIComponent(accountId)}`, oazapfts.json({
2328
+ ...opts,
2329
+ method: "POST",
2330
+ body: createFeatureFlagAccountRequest
2331
+ })));
2332
+ }
2333
+ /**
2334
+ * Deletes Feature Flag resource for the given account.
2335
+ */
2336
+ export function deleteAccountAssociation({ featureFlagId, accountId }: {
2337
+ featureFlagId: number;
2338
+ accountId: number;
2339
+ }, opts?: Oazapfts.RequestOpts) {
2340
+ return oazapfts.ok(oazapfts.fetchJson<{
2341
+ status: 204;
2342
+ } | {
2343
+ status: 403;
2344
+ data: ErrorResponse;
2345
+ } | {
2346
+ status: 404;
2347
+ data: ErrorResponse;
2348
+ } | {
2349
+ status: 500;
2350
+ data: ErrorResponse;
2351
+ }>(`/v2/admin/feature-flags/${encodeURIComponent(featureFlagId)}/account/${encodeURIComponent(accountId)}`, {
2352
+ ...opts,
2353
+ method: "DELETE"
2354
+ }));
2355
+ }
2095
2356
  /**
2096
2357
  * Retrieves a list of SCM credentials associated with the current user's account, including secret names and provider details.
2097
2358
  */
2098
- export function listScmCredentials(opts?: Oazapfts.RequestOpts) {
2359
+ export function listScmCredentials1(opts?: Oazapfts.RequestOpts) {
2099
2360
  return oazapfts.ok(oazapfts.fetchJson<{
2100
2361
  status: 200;
2101
2362
  data: UserScmInfoResponse[];
@@ -2292,7 +2553,7 @@ export function deleteScope({ scopeId }: {
2292
2553
  /**
2293
2554
  * Retrieves a list of SCM credentials associated with the current user's account.
2294
2555
  */
2295
- export function listScmCredentials1(opts?: Oazapfts.RequestOpts) {
2556
+ export function listScmCredentials2(opts?: Oazapfts.RequestOpts) {
2296
2557
  return oazapfts.ok(oazapfts.fetchJson<{
2297
2558
  status: 200;
2298
2559
  data: AccountScmInfoResponse[];
@@ -2595,29 +2856,6 @@ export function accept({ id }: {
2595
2856
  method: "PUT"
2596
2857
  }));
2597
2858
  }
2598
- /**
2599
- * Updates an existing Feature Flag with the provided details.
2600
- */
2601
- export function update({ id, updateFeatureFlagRequest }: {
2602
- id: number;
2603
- updateFeatureFlagRequest: UpdateFeatureFlagRequest;
2604
- }, opts?: Oazapfts.RequestOpts) {
2605
- return oazapfts.ok(oazapfts.fetchJson<{
2606
- status: 202;
2607
- } | {
2608
- status: 400;
2609
- data: ErrorResponse;
2610
- } | {
2611
- status: 422;
2612
- data: ErrorResponse;
2613
- } | {
2614
- status: 500;
2615
- }>(`/v1/feature-flags/${encodeURIComponent(id)}`, oazapfts.json({
2616
- ...opts,
2617
- method: "PUT",
2618
- body: updateFeatureFlagRequest
2619
- })));
2620
- }
2621
2859
  /**
2622
2860
  * Updates the sales representatives associated with an active account.
2623
2861
  */
@@ -2877,6 +3115,47 @@ export function createServiceCredential({ serviceCredentialCreateRequestV2 }: {
2877
3115
  body: serviceCredentialCreateRequestV2
2878
3116
  })));
2879
3117
  }
3118
+ /**
3119
+ * Returns a list of Feature Flags associated with the current user's account.
3120
+ */
3121
+ export function getFeatures1(opts?: Oazapfts.RequestOpts) {
3122
+ return oazapfts.ok(oazapfts.fetchJson<{
3123
+ status: 200;
3124
+ data: FeatureFlagsResponseV2[];
3125
+ } | {
3126
+ status: 422;
3127
+ data: ErrorResponse;
3128
+ } | {
3129
+ status: 500;
3130
+ data: FeatureFlagsResponseV2[];
3131
+ }>("/v2/admin/feature-flags", {
3132
+ ...opts
3133
+ }));
3134
+ }
3135
+ /**
3136
+ * Creates a new Feature Flag and returns its unique identifier.
3137
+ */
3138
+ export function create({ createFeatureFlagRequest }: {
3139
+ createFeatureFlagRequest: CreateFeatureFlagRequest;
3140
+ }, opts?: Oazapfts.RequestOpts) {
3141
+ return oazapfts.ok(oazapfts.fetchJson<{
3142
+ status: 201;
3143
+ data: CreateFeatureFlagsResponse;
3144
+ } | {
3145
+ status: 400;
3146
+ data: ErrorResponse;
3147
+ } | {
3148
+ status: 422;
3149
+ data: ErrorResponse;
3150
+ } | {
3151
+ status: 500;
3152
+ data: CreateFeatureFlagsResponse;
3153
+ }>("/v2/admin/feature-flags", oazapfts.json({
3154
+ ...opts,
3155
+ method: "POST",
3156
+ body: createFeatureFlagRequest
3157
+ })));
3158
+ }
2880
3159
  /**
2881
3160
  * Retrieves a list of service credentials with their associated owner information if available.
2882
3161
  */
@@ -4020,45 +4299,6 @@ export function bindGroupMembers({ groupId, groupMemberIdsRequest }: {
4020
4299
  body: groupMemberIdsRequest
4021
4300
  })));
4022
4301
  }
4023
- /**
4024
- * Returns a list of Feature Flags associated with the current user's account.
4025
- */
4026
- export function getFeatures(opts?: Oazapfts.RequestOpts) {
4027
- return oazapfts.ok(oazapfts.fetchJson<{
4028
- status: 200;
4029
- data: FeatureFlagsResponse[];
4030
- } | {
4031
- status: 422;
4032
- data: ErrorResponse;
4033
- } | {
4034
- status: 500;
4035
- data: FeatureFlagsResponse[];
4036
- }>("/v1/feature-flags", {
4037
- ...opts
4038
- }));
4039
- }
4040
- /**
4041
- * Creates a new Feature Flag and returns its unique identifier.
4042
- */
4043
- export function create({ createFeatureFlagRequest }: {
4044
- createFeatureFlagRequest: CreateFeatureFlagRequest;
4045
- }, opts?: Oazapfts.RequestOpts) {
4046
- return oazapfts.ok(oazapfts.fetchJson<{
4047
- status: 201;
4048
- } | {
4049
- status: 400;
4050
- data: ErrorResponse;
4051
- } | {
4052
- status: 422;
4053
- data: ErrorResponse;
4054
- } | {
4055
- status: 500;
4056
- }>("/v1/feature-flags", oazapfts.json({
4057
- ...opts,
4058
- method: "POST",
4059
- body: createFeatureFlagRequest
4060
- })));
4061
- }
4062
4302
  /**
4063
4303
  * Retrieves a list of extensions associated with the current user's account.
4064
4304
  */
@@ -4286,6 +4526,23 @@ export function sendContactEmail({ contactEmailRequest }: {
4286
4526
  body: contactEmailRequest
4287
4527
  })));
4288
4528
  }
4529
+ /**
4530
+ * Validates a campaign code and returns true if exists and its enabled
4531
+ */
4532
+ export function validateCampaignCode({ code }: {
4533
+ code: string;
4534
+ }, opts?: Oazapfts.RequestOpts) {
4535
+ return oazapfts.ok(oazapfts.fetchJson<{
4536
+ status: 200;
4537
+ data: CampaignAvailableResponse;
4538
+ } | {
4539
+ status: 500;
4540
+ data: CampaignAvailableResponse;
4541
+ }>(`/v1/campaigns/${encodeURIComponent(code)}/available`, {
4542
+ ...opts,
4543
+ method: "POST"
4544
+ }));
4545
+ }
4289
4546
  /**
4290
4547
  * Switches the user to the account specified in the body.
4291
4548
  */
@@ -5283,7 +5540,7 @@ export function getGroupById({ groupId }: {
5283
5540
  /**
5284
5541
  * Deletes a group by its ID.
5285
5542
  */
5286
- export function deleteV1GroupsByGroupId({ groupId }: {
5543
+ export function delete1({ groupId }: {
5287
5544
  groupId: string;
5288
5545
  }, opts?: Oazapfts.RequestOpts) {
5289
5546
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -5378,48 +5635,6 @@ export function updateGroupPermissions1({ groupId, updateGroupPermissionsRequest
5378
5635
  body: updateGroupPermissionsRequest
5379
5636
  })));
5380
5637
  }
5381
- /**
5382
- * Enables a Feature Flag in an account.
5383
- */
5384
- export function enable({ id }: {
5385
- id: number;
5386
- }, opts?: Oazapfts.RequestOpts) {
5387
- return oazapfts.ok(oazapfts.fetchJson<{
5388
- status: 200;
5389
- } | {
5390
- status: 400;
5391
- data: ErrorResponse;
5392
- } | {
5393
- status: 422;
5394
- data: ErrorResponse;
5395
- } | {
5396
- status: 500;
5397
- }>(`/v1/feature-flags/${encodeURIComponent(id)}/enable`, {
5398
- ...opts,
5399
- method: "PATCH"
5400
- }));
5401
- }
5402
- /**
5403
- * Disables a Feature Flag in an account.
5404
- */
5405
- export function disable({ id }: {
5406
- id: number;
5407
- }, opts?: Oazapfts.RequestOpts) {
5408
- return oazapfts.ok(oazapfts.fetchJson<{
5409
- status: 200;
5410
- } | {
5411
- status: 400;
5412
- data: ErrorResponse;
5413
- } | {
5414
- status: 422;
5415
- data: ErrorResponse;
5416
- } | {
5417
- status: 500;
5418
- }>(`/v1/feature-flags/${encodeURIComponent(id)}/disable`, {
5419
- ...opts,
5420
- method: "PATCH"
5421
- }));
5422
- }
5423
5638
  /**
5424
5639
  * Deletes an account's extension.
5425
5640
  */
@@ -5743,6 +5958,25 @@ export function updatePartnerAccountAdminData({ id, accountPartnerAdminDataUpdat
5743
5958
  body: accountPartnerAdminDataUpdateRequest
5744
5959
  })));
5745
5960
  }
5961
+ /**
5962
+ * Retrieves a list of SCM credentials associated with the current user's account, including secret names and provider details.
5963
+ */
5964
+ export function listScmCredentials({ userId }: {
5965
+ userId: string;
5966
+ }, opts?: Oazapfts.RequestOpts) {
5967
+ return oazapfts.ok(oazapfts.fetchJson<{
5968
+ status: 200;
5969
+ data: UserScmInfoResponse[];
5970
+ } | {
5971
+ status: 403;
5972
+ data: ErrorResponse;
5973
+ } | {
5974
+ status: 500;
5975
+ data: ErrorResponse;
5976
+ }>(`/v2/users/${encodeURIComponent(userId)}/scm-credentials`, {
5977
+ ...opts
5978
+ }));
5979
+ }
5746
5980
  /**
5747
5981
  * Retrieves a paginated list of groups associated with a service credential for a given client ID.
5748
5982
  */
@@ -6378,6 +6612,64 @@ export function getMembers({ groupId, size, page, sort, direction, search, filte
6378
6612
  ...opts
6379
6613
  }));
6380
6614
  }
6615
+ /**
6616
+ * Returns a paged list of Feature Flags associated with the current user's account.
6617
+ */
6618
+ export function getFeatures({ size, page, sort, direction, search, filterByName, filterByStatus, filterByWorkspace }: {
6619
+ size?: any;
6620
+ page?: any;
6621
+ sort?: string;
6622
+ direction?: "ASC" | "DESC";
6623
+ search?: string;
6624
+ filterByName?: string;
6625
+ filterByStatus?: boolean;
6626
+ filterByWorkspace?: string;
6627
+ }, opts?: Oazapfts.RequestOpts) {
6628
+ return oazapfts.ok(oazapfts.fetchJson<{
6629
+ status: 200;
6630
+ data: PageResponseFeatureFlagsResponseV2;
6631
+ } | {
6632
+ status: 422;
6633
+ data: ErrorResponse;
6634
+ } | {
6635
+ status: 500;
6636
+ data: PageResponseFeatureFlagsResponseV2;
6637
+ }>(`/v2/feature-flags${QS.query(QS.explode({
6638
+ size,
6639
+ page,
6640
+ sort,
6641
+ direction,
6642
+ search,
6643
+ filterByName,
6644
+ filterByStatus,
6645
+ filterByWorkspace
6646
+ }))}`, {
6647
+ ...opts
6648
+ }));
6649
+ }
6650
+ /**
6651
+ * Get enabled feature flags for an account
6652
+ */
6653
+ export function getEnabledFeatureFlagsForAccount({ queryParams }: {
6654
+ queryParams: {
6655
+ [key: string]: string;
6656
+ };
6657
+ }, opts?: Oazapfts.RequestOpts) {
6658
+ return oazapfts.ok(oazapfts.fetchJson<{
6659
+ status: 200;
6660
+ data: FeatureFlagReadResponse[];
6661
+ } | {
6662
+ status: 400;
6663
+ data: ErrorResponse;
6664
+ } | {
6665
+ status: 500;
6666
+ data: ErrorResponse;
6667
+ }>(`/v2/feature-flags/available${QS.query(QS.explode({
6668
+ queryParams
6669
+ }))}`, {
6670
+ ...opts
6671
+ }));
6672
+ }
6381
6673
  /**
6382
6674
  * Verifies if SCM credentials exist for the current user's account and email, throwing an error if not found.
6383
6675
  */
@@ -6909,6 +7201,23 @@ export function getAccountMembersToCollaborators({ size, page, sort, direction,
6909
7201
  ...opts
6910
7202
  }));
6911
7203
  }
7204
+ /**
7205
+ * Returns a list of Feature Flags associated with the current user's account.
7206
+ */
7207
+ export function getFeatures2(opts?: Oazapfts.RequestOpts) {
7208
+ return oazapfts.ok(oazapfts.fetchJson<{
7209
+ status: 200;
7210
+ data: FeatureFlagsResponse[];
7211
+ } | {
7212
+ status: 422;
7213
+ data: ErrorResponse;
7214
+ } | {
7215
+ status: 500;
7216
+ data: FeatureFlagsResponse[];
7217
+ }>("/v1/feature-flags", {
7218
+ ...opts
7219
+ }));
7220
+ }
6912
7221
  /**
6913
7222
  * Retrieves the details of a specific extension version.
6914
7223
  */