@stack-spot/portal-network 0.223.0 → 0.224.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.
@@ -14,21 +14,29 @@ const oazapfts = Oazapfts.runtime(defaults);
14
14
  export const servers = {
15
15
  generatedServerUrl: "https://account-account-api.dev.stackspot.com"
16
16
  };
17
- export type RateLimitValue = {
18
- "type": "ACCOUNT" | "SERVICE_CREDENTIAL";
19
- value: number;
20
- };
21
- export type ServiceCredentialRateLimitResponse = {
22
- /** Service credential ID */
17
+ export type ServiceCredentialActionResponse = {
18
+ /** Action id */
23
19
  id: string;
24
- /** Service credential name */
20
+ /** Action name */
25
21
  name: string;
26
- scMaxPerMin: RateLimitValue;
27
- scMaxPerDay: RateLimitValue;
28
22
  };
29
- export type PageResponseServiceCredentialRateLimitResponse = {
23
+ export type ServiceCredentialPermissionResponse = {
24
+ /** Resource id */
25
+ resourceId: string;
26
+ /** Resource slug */
27
+ resourceSlug: string;
28
+ /** Resource id */
29
+ resourceName: string;
30
+ /** Resource type ID */
31
+ resourceTypeId?: string;
32
+ /** Resource type name */
33
+ resourceTypeName?: string;
34
+ /** Action's list */
35
+ actions: ServiceCredentialActionResponse[];
36
+ };
37
+ export type PageResponseServiceCredentialPermissionResponse = {
30
38
  /** Current page content */
31
- items?: ServiceCredentialRateLimitResponse[];
39
+ items?: ServiceCredentialPermissionResponse[];
32
40
  /** Total elements found */
33
41
  totalElements: number;
34
42
  /** Current page number */
@@ -50,6 +58,39 @@ export type ErrorResponse = {
50
58
  details: string;
51
59
  validationDetails?: ValidationDetails[];
52
60
  };
61
+ export type PermissionStatement = {
62
+ /** Resource ID */
63
+ resourceId: string;
64
+ actions: string[];
65
+ };
66
+ export type ServiceCredentialPermissionRequestV3 = {
67
+ /** List of permissions */
68
+ permissions: PermissionStatement[];
69
+ };
70
+ export type RateLimitValue = {
71
+ "type": "ACCOUNT" | "SERVICE_CREDENTIAL";
72
+ value: number;
73
+ };
74
+ export type ServiceCredentialRateLimitResponse = {
75
+ /** Service credential ID */
76
+ id: string;
77
+ /** Service credential name */
78
+ name: string;
79
+ scMaxPerMin: RateLimitValue;
80
+ scMaxPerDay: RateLimitValue;
81
+ };
82
+ export type PageResponseServiceCredentialRateLimitResponse = {
83
+ /** Current page content */
84
+ items?: ServiceCredentialRateLimitResponse[];
85
+ /** Total elements found */
86
+ totalElements: number;
87
+ /** Current page number */
88
+ page: number;
89
+ /** Length of current page items */
90
+ size: number;
91
+ /** Total pages found */
92
+ totalPages: number;
93
+ };
53
94
  export type ServiceCredentialRateLimitRequest = {
54
95
  /** Maximum number of executions allowed per minute. Use -1 for no limit. */
55
96
  scMaxPerMin?: number;
@@ -162,9 +203,7 @@ export type UserScmInfoResponse = {
162
203
  /** Secrets name */
163
204
  secretName: string;
164
205
  /** Provider type */
165
- provider: "GITHUB" | "GITLAB" | "BITBUCKET" | "AZURE" | "GITLAB_ONPRM";
166
- /** User email */
167
- email: string;
206
+ provider: "GITHUB" | "GITLAB" | "BITBUCKET" | "AZURE" | "GITLAB_ONPRM" | "ITAU_BACKEND";
168
207
  };
169
208
  export type UserScmInfoRequest = {
170
209
  /** Repository Username */
@@ -272,9 +311,9 @@ export type AccountScmInfoResponse = {
272
311
  /** SCM Workflow repository URL */
273
312
  workflowUrl?: string;
274
313
  /** SCM Type */
275
- "type"?: "PAT" | "GITHUBAPP";
314
+ "type"?: "PAT" | "GITHUBAPP" | "CLIENT_CREDENTIAL";
276
315
  /** SCM repository provider */
277
- provider: "GITHUB" | "GITLAB" | "BITBUCKET" | "AZURE" | "GITLAB_ONPRM";
316
+ provider: "GITHUB" | "GITLAB" | "BITBUCKET" | "AZURE" | "GITLAB_ONPRM" | "ITAU_BACKEND";
278
317
  /** Flag used to indicate if the SCM repository account credential configuration is mandated */
279
318
  mandate: boolean;
280
319
  /** Flag used to indicate if the user credentials to access the account SCM repository already has configured by User */
@@ -289,6 +328,16 @@ export type Basic = Value & {
289
328
  /** PAT repository password */
290
329
  pass: string;
291
330
  };
331
+ export type ClientCredentials = Value & {
332
+ /** Client Id */
333
+ clientId: string;
334
+ /** Client Secret */
335
+ clientSecret: string;
336
+ /** Client Secret */
337
+ certificate: string;
338
+ /** Private Key */
339
+ privateKey: string;
340
+ };
292
341
  export type GithubApp = Value & {
293
342
  /** GithubApp App Id */
294
343
  appId: string;
@@ -303,28 +352,32 @@ export type GithubApp = Value & {
303
352
  };
304
353
  export type AccountScmInfoUpdateRequest = {
305
354
  /** SCM Type */
306
- "type"?: "PAT" | "GITHUBAPP";
355
+ "type"?: "PAT" | "GITHUBAPP" | "CLIENT_CREDENTIAL";
307
356
  /** SCM repository provider */
308
- provider?: "GITHUB" | "GITLAB" | "BITBUCKET" | "AZURE" | "GITLAB_ONPRM";
309
- value?: Basic | GithubApp;
357
+ provider?: "GITHUB" | "GITLAB" | "BITBUCKET" | "AZURE" | "GITLAB_ONPRM" | "ITAU_BACKEND";
358
+ value?: Basic | ClientCredentials | GithubApp;
310
359
  /** SCM Workflow repository URL */
311
360
  workflowUrl?: string;
312
361
  /** Flag used when SCM repository account credential configuration is mandated */
313
362
  mandate?: boolean;
314
363
  urlProvider?: string;
364
+ /** Authentication endpoint */
365
+ authorizationEndpoint?: string;
315
366
  };
316
367
  export type AccountScmInfoSaveRequest = {
317
368
  /** SCM Type */
318
- "type": "PAT" | "GITHUBAPP";
369
+ "type": "PAT" | "GITHUBAPP" | "CLIENT_CREDENTIAL";
319
370
  /** SCM repository provider */
320
- provider: "GITHUB" | "GITLAB" | "BITBUCKET" | "AZURE" | "GITLAB_ONPRM";
321
- value: Basic | GithubApp;
371
+ provider: "GITHUB" | "GITLAB" | "BITBUCKET" | "AZURE" | "GITLAB_ONPRM" | "ITAU_BACKEND";
372
+ value: Basic | ClientCredentials | GithubApp;
322
373
  /** Connection URL for on-premises provider */
323
374
  urlProvider?: string;
324
375
  /** SCM Workflow repository URL */
325
376
  workflowUrl: string;
326
377
  /** Flag used when SCM repository account credential configuration is mandated */
327
378
  mandate: boolean;
379
+ /** Authentication endpoint */
380
+ authorizationEndpoint?: string;
328
381
  };
329
382
  export type UpdateAccountRoleRequest = {
330
383
  /** Account Role new name. */
@@ -374,6 +427,10 @@ export type UpdateResourceActionsRequest = {
374
427
  /** The updated list of actions. */
375
428
  actions: string[];
376
429
  };
430
+ export type UpdatePermissionResourceActionRequest = {
431
+ /** Action id to be updated. */
432
+ actionIds: string[];
433
+ };
377
434
  export type AccountMemberStackspotIamDto = {
378
435
  /** Unique identifier of the account member. */
379
436
  id: string;
@@ -589,6 +646,73 @@ export type AccountGroupMappingUpdateRequest = {
589
646
  /** Group Mapping name */
590
647
  name: string;
591
648
  };
649
+ export type ServiceCredentialResponseV3 = {
650
+ id: string;
651
+ name: string;
652
+ status: "ACTIVE" | "DISABLED" | "REVOKED" | "EXPIRED";
653
+ description?: string;
654
+ expirationDays?: number;
655
+ tokenExpirationMinutes?: number;
656
+ createdBy: string;
657
+ createdAt: string;
658
+ expirationDate?: string;
659
+ };
660
+ export type PageResponseServiceCredentialResponseV3 = {
661
+ /** Current page content */
662
+ items?: ServiceCredentialResponseV3[];
663
+ /** Total elements found */
664
+ totalElements: number;
665
+ /** Current page number */
666
+ page: number;
667
+ /** Length of current page items */
668
+ size: number;
669
+ /** Total pages found */
670
+ totalPages: number;
671
+ };
672
+ export type Permissions = {
673
+ /** Resource ID */
674
+ resourceId: string;
675
+ /** Action ID */
676
+ actions: string[];
677
+ };
678
+ export type ServiceCredentialCreateRequestV3 = {
679
+ /** Service credential name */
680
+ name: string;
681
+ /** Service credential expiration days */
682
+ description: string;
683
+ /** Service credential expiration days */
684
+ expirationDays?: number;
685
+ /** Service credential token expiration minutes */
686
+ tokenExpirationMinutes?: number;
687
+ /** GroupId's */
688
+ groups: string[];
689
+ /** List of permissions */
690
+ permissions: Permissions[];
691
+ };
692
+ export type ServiceCredentialIdResponseV3 = {
693
+ /** Service Credential Id */
694
+ id: string;
695
+ /** Service Credential secret */
696
+ secret: string;
697
+ /** Service Credential name */
698
+ name: string;
699
+ /** Service Credential tenant */
700
+ tenant: string;
701
+ /** Service Credential status */
702
+ status: "ACTIVE" | "DISABLED" | "REVOKED" | "EXPIRED";
703
+ /** Service Credential description */
704
+ description?: string | null;
705
+ /** Expiration days from creation */
706
+ expirationDays?: number | null;
707
+ /** Token expiration in minutes */
708
+ tokenExpirationMinutes?: number | null;
709
+ /** User who created the credential */
710
+ createdBy: string;
711
+ /** Creation timestamp */
712
+ createdAt: string;
713
+ /** Expiration date */
714
+ expirationDate?: string | null;
715
+ };
592
716
  export type ServiceCredentialResponse = {
593
717
  /** Service credential id */
594
718
  id: string;
@@ -645,7 +769,7 @@ export type ServiceCredentialCreateResponseV2 = {
645
769
  /** Account tenant */
646
770
  tenant: string;
647
771
  };
648
- export type ResourceTypeDto = {
772
+ export type ResourceTypeResponse = {
649
773
  /** Id of resource type. */
650
774
  id: string;
651
775
  /** Name of resource type. */
@@ -664,7 +788,7 @@ export type ResourceResponse = {
664
788
  name: string;
665
789
  /** Description of resource. */
666
790
  description?: string;
667
- "type"?: ResourceTypeDto;
791
+ "type"?: ResourceTypeResponse;
668
792
  /** Name of resource. */
669
793
  slug: string;
670
794
  };
@@ -1763,16 +1887,51 @@ export type AddPrivilegeToGroupRequest = {
1763
1887
  /** Whether the privilege is inheritable by child resources. */
1764
1888
  inheritable: boolean;
1765
1889
  };
1766
- export type RotateServiceCredentialSecretRequest = {
1767
- /** Service credential secret */
1768
- secret: string;
1890
+ export type ServiceCredentialUpdateRequestV3 = {
1891
+ /** Name of the service credential. */
1892
+ name?: string;
1893
+ /** Status of the service credential. */
1894
+ status?: "ACTIVE" | "DISABLED" | "REVOKED" | "EXPIRED";
1895
+ /** Description of the service credential. */
1896
+ description?: string;
1897
+ /** Number of days until the service credential expires. */
1898
+ expirationDays?: number;
1899
+ /** Token expiration time in minutes. */
1900
+ tokenExpirationMinutes?: number;
1769
1901
  };
1770
- export type RotateServiceCredentialSecretResponse = {
1771
- secret?: string;
1902
+ export type ServiceCredentialUpdateResponseV3 = {
1903
+ /** Name of the service credential. */
1904
+ name?: string;
1905
+ /** Status of the service credential. */
1906
+ status?: "ACTIVE" | "DISABLED" | "REVOKED" | "EXPIRED";
1907
+ /** Description of the service credential. */
1908
+ description?: string;
1909
+ /** Number of days until the service credential expires. */
1910
+ expirationDays?: number;
1911
+ /** Token expiration time in minutes. */
1912
+ tokenExpirationMinutes?: number;
1772
1913
  };
1773
- export type UpdateServiceCredentialScopesRequest = {
1774
- /** Service credential statements */
1775
- scopes: string[];
1914
+ export type ServiceCredentialGroupResponse = {
1915
+ /** Group Id */
1916
+ id: string;
1917
+ /** Group name */
1918
+ name: string;
1919
+ };
1920
+ export type PageResponseServiceCredentialGroupResponse = {
1921
+ /** Current page content */
1922
+ items?: ServiceCredentialGroupResponse[];
1923
+ /** Total elements found */
1924
+ totalElements: number;
1925
+ /** Current page number */
1926
+ page: number;
1927
+ /** Length of current page items */
1928
+ size: number;
1929
+ /** Total pages found */
1930
+ totalPages: number;
1931
+ };
1932
+ export type GroupsRequest = {
1933
+ /** Group Id's list */
1934
+ groups: string[];
1776
1935
  };
1777
1936
  export type DeleteMemberPermissionsRequest = {
1778
1937
  /** Permission Action */
@@ -1806,6 +1965,17 @@ export type UpdateGroupPermissionsRequest = {
1806
1965
  /** Slug from resource */
1807
1966
  resourceSlug: string;
1808
1967
  };
1968
+ export type RotateServiceCredentialSecretRequest = {
1969
+ /** Service credential secret */
1970
+ secret: string;
1971
+ };
1972
+ export type RotateServiceCredentialSecretResponse = {
1973
+ secret?: string;
1974
+ };
1975
+ export type UpdateServiceCredentialScopesRequest = {
1976
+ /** Service credential statements */
1977
+ scopes: string[];
1978
+ };
1809
1979
  export type ServiceCredentialAssociateGroupRequest = {
1810
1980
  /** Service credential groups ids */
1811
1981
  teams: string[];
@@ -1976,6 +2146,38 @@ export type AccountPartnerAdminDataUpdateRequest = {
1976
2146
  /** Admin email */
1977
2147
  email: string;
1978
2148
  };
2149
+ export type ResourceTypeActionResponse = {
2150
+ /** Unique identifier of the action. */
2151
+ id: string;
2152
+ /** Name of the action. */
2153
+ name: string;
2154
+ };
2155
+ export type ResourceTypeResponseV3 = {
2156
+ /** Unique identifier of the resource type. */
2157
+ id: string;
2158
+ /** Name of the resource type. */
2159
+ name: string;
2160
+ /** Slug of the resource type. */
2161
+ slug: string;
2162
+ /** Description of the resource type. */
2163
+ description: string;
2164
+ /** Creation date and time of the resource type. */
2165
+ createdAt: string;
2166
+ /** List of actions available for this resource type. */
2167
+ actions: ResourceTypeActionResponse[];
2168
+ };
2169
+ export type PageResponseResourceTypeResponseV3 = {
2170
+ /** Current page content */
2171
+ items?: ResourceTypeResponseV3[];
2172
+ /** Total elements found */
2173
+ totalElements: number;
2174
+ /** Current page number */
2175
+ page: number;
2176
+ /** Length of current page items */
2177
+ size: number;
2178
+ /** Total pages found */
2179
+ totalPages: number;
2180
+ };
1979
2181
  export type PageResponseGroupReadResponse = {
1980
2182
  /** Current page content */
1981
2183
  items?: GroupReadResponse[];
@@ -2086,13 +2288,6 @@ export type PageResponseGroupsFromResourceResponse = {
2086
2288
  /** Total pages found */
2087
2289
  totalPages: number;
2088
2290
  };
2089
- export type ResourceTypeResponse = {
2090
- id: string;
2091
- name: string;
2092
- slug: string;
2093
- description: string;
2094
- createdAt: string;
2095
- };
2096
2291
  export type PageResponseResourceTypeResponse = {
2097
2292
  /** Current page content */
2098
2293
  items?: ResourceTypeResponse[];
@@ -2244,7 +2439,7 @@ export type PageResponseResourceAssociationResponse = {
2244
2439
  };
2245
2440
  export type AccountScmProviderResponse = {
2246
2441
  /** SCM repository provider */
2247
- provider: "GITHUB" | "GITLAB" | "BITBUCKET" | "AZURE" | "GITLAB_ONPRM";
2442
+ provider: "GITHUB" | "GITLAB" | "BITBUCKET" | "AZURE" | "GITLAB_ONPRM" | "ITAU_BACKEND";
2248
2443
  };
2249
2444
  export type AccountScmStatusResponse = {
2250
2445
  /** Flag used to indicate if the SCM repository account credential configuration is mandated */
@@ -2255,17 +2450,6 @@ export type AccountScmStatusResponse = {
2255
2450
  export type RolePermissionResponse = {
2256
2451
  status?: boolean;
2257
2452
  };
2258
- export type ResourceDto = {
2259
- /** Unique identifier of the resource. */
2260
- id: string;
2261
- /** Name of the resource. */
2262
- name: string;
2263
- /** Slug version of the resource name. */
2264
- slug: string;
2265
- /** Optional description of the resource. */
2266
- description?: string;
2267
- "type"?: ResourceTypeDto;
2268
- };
2269
2453
  export type FeatureFlagsResponse = {
2270
2454
  /** The feature flag id */
2271
2455
  id: number;
@@ -2424,7 +2608,7 @@ export type DeleteResourceResponseV3 = {
2424
2608
  slug: string;
2425
2609
  /** Optional description of the resource. */
2426
2610
  description?: string;
2427
- "type"?: ResourceTypeDto;
2611
+ "type"?: ResourceTypeResponse;
2428
2612
  };
2429
2613
  export type PageDtoDeleteResourceResponseV3 = {
2430
2614
  items: DeleteResourceResponseV3[];
@@ -2434,119 +2618,231 @@ export type PageDtoDeleteResourceResponseV3 = {
2434
2618
  totalPages: number;
2435
2619
  };
2436
2620
  /**
2437
- * Retrieves a list of rate limit with the associated service credential.
2621
+ * Get service credential permissions
2438
2622
  */
2439
- export function getAllServiceCredentialRateLimit({ size, page, sort, direction, search }: {
2440
- size?: number;
2441
- page?: number;
2623
+ export function getPermissions({ id, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
2624
+ id: string;
2625
+ size?: any;
2626
+ page?: any;
2442
2627
  sort?: string;
2443
- direction: "ASC" | "DESC";
2628
+ direction?: "ASC" | "DESC";
2444
2629
  search?: string;
2630
+ filterMode?: "MATCH" | "CONTAINS" | "IN";
2631
+ filterBy?: string;
2632
+ filterValue?: string;
2633
+ multiFilterMode?: string;
2634
+ filterIn?: any;
2445
2635
  }, opts?: Oazapfts.RequestOpts) {
2446
2636
  return oazapfts.ok(oazapfts.fetchJson<{
2447
2637
  status: 200;
2448
- data: PageResponseServiceCredentialRateLimitResponse;
2638
+ data: PageResponseServiceCredentialPermissionResponse;
2449
2639
  } | {
2450
2640
  status: 403;
2451
2641
  data: ErrorResponse;
2642
+ } | {
2643
+ status: 404;
2644
+ data: ErrorResponse;
2452
2645
  } | {
2453
2646
  status: 500;
2454
2647
  data: ErrorResponse;
2455
- }>(`/v2/service-credentials/rate-limit${QS.query(QS.explode({
2648
+ }>(`/v3/service-credentials/${encodeURIComponent(id)}/permissions${QS.query(QS.explode({
2456
2649
  size,
2457
2650
  page,
2458
2651
  sort,
2459
2652
  direction,
2460
- search
2653
+ search,
2654
+ filterMode,
2655
+ filterBy,
2656
+ filterValue,
2657
+ multiFilterMode,
2658
+ filterIn
2461
2659
  }))}`, {
2462
2660
  ...opts
2463
2661
  }));
2464
2662
  }
2465
2663
  /**
2466
- * Updates the rate limit of a service credential.
2664
+ * Replace permission from service credential
2467
2665
  */
2468
- export function updateServiceCredentialRateLimit({ serviceCredentialRateLimitRequest }: {
2469
- serviceCredentialRateLimitRequest: ServiceCredentialRateLimitRequest;
2666
+ export function replacePermissions({ id, serviceCredentialPermissionRequestV3 }: {
2667
+ id: string;
2668
+ serviceCredentialPermissionRequestV3: ServiceCredentialPermissionRequestV3;
2470
2669
  }, opts?: Oazapfts.RequestOpts) {
2471
2670
  return oazapfts.ok(oazapfts.fetchJson<{
2472
- status: 200;
2671
+ status: 204;
2473
2672
  } | {
2474
2673
  status: 403;
2475
2674
  data: ErrorResponse;
2476
2675
  } | {
2477
- status: 422;
2676
+ status: 404;
2478
2677
  data: ErrorResponse;
2479
2678
  } | {
2480
2679
  status: 500;
2481
2680
  data: ErrorResponse;
2482
- }>("/v2/service-credentials/rate-limit", oazapfts.json({
2681
+ }>(`/v3/service-credentials/${encodeURIComponent(id)}/permissions`, oazapfts.json({
2483
2682
  ...opts,
2484
2683
  method: "PUT",
2485
- body: serviceCredentialRateLimitRequest
2684
+ body: serviceCredentialPermissionRequestV3
2486
2685
  })));
2487
2686
  }
2488
2687
  /**
2489
- * Returns the Feature Flag.
2688
+ * Remove permission from service credential
2490
2689
  */
2491
- export function getFeatureFlag({ id }: {
2492
- id: number;
2690
+ export function removePermissions({ id, serviceCredentialPermissionRequestV3 }: {
2691
+ id: string;
2692
+ serviceCredentialPermissionRequestV3: ServiceCredentialPermissionRequestV3;
2493
2693
  }, opts?: Oazapfts.RequestOpts) {
2494
2694
  return oazapfts.ok(oazapfts.fetchJson<{
2495
- status: 200;
2496
- data: FeatureFlagsAccountResponse;
2695
+ status: 204;
2497
2696
  } | {
2498
- status: 422;
2697
+ status: 403;
2499
2698
  data: ErrorResponse;
2500
2699
  } | {
2501
2700
  status: 500;
2502
- data: FeatureFlagsAccountResponse;
2503
- }>(`/v2/feature-flags/${encodeURIComponent(id)}`, {
2504
- ...opts
2505
- }));
2701
+ data: ErrorResponse;
2702
+ }>(`/v3/service-credentials/${encodeURIComponent(id)}/permissions`, oazapfts.json({
2703
+ ...opts,
2704
+ method: "DELETE",
2705
+ body: serviceCredentialPermissionRequestV3
2706
+ })));
2506
2707
  }
2507
2708
  /**
2508
- * Update a feature flag by id directly assigned to an account holder
2709
+ * Add permissions to Service Credential
2509
2710
  */
2510
- export function updateFeatureFlag({ id, updateFeatureFlagAccountRequest }: {
2511
- id: number;
2512
- updateFeatureFlagAccountRequest: UpdateFeatureFlagAccountRequest;
2711
+ export function addPermission({ id, serviceCredentialPermissionRequestV3 }: {
2712
+ id: string;
2713
+ serviceCredentialPermissionRequestV3: ServiceCredentialPermissionRequestV3;
2513
2714
  }, opts?: Oazapfts.RequestOpts) {
2514
2715
  return oazapfts.ok(oazapfts.fetchJson<{
2515
2716
  status: 204;
2516
2717
  } | {
2517
- status: 400;
2718
+ status: 403;
2518
2719
  data: ErrorResponse;
2519
2720
  } | {
2520
- status: 422;
2721
+ status: 404;
2521
2722
  data: ErrorResponse;
2522
2723
  } | {
2523
2724
  status: 500;
2524
- }>(`/v2/feature-flags/${encodeURIComponent(id)}`, oazapfts.json({
2725
+ data: ErrorResponse;
2726
+ }>(`/v3/service-credentials/${encodeURIComponent(id)}/permissions`, oazapfts.json({
2525
2727
  ...opts,
2526
- method: "PUT",
2527
- body: updateFeatureFlagAccountRequest
2728
+ method: "PATCH",
2729
+ body: serviceCredentialPermissionRequestV3
2528
2730
  })));
2529
2731
  }
2530
2732
  /**
2531
- * Returns the Feature Flag.
2733
+ * Retrieves a list of rate limit with the associated service credential.
2532
2734
  */
2533
- export function getFeatureFlag1({ id }: {
2534
- id: number;
2735
+ export function getAllServiceCredentialRateLimit({ size, page, sort, direction, search }: {
2736
+ size?: number;
2737
+ page?: number;
2738
+ sort?: string;
2739
+ direction: "ASC" | "DESC";
2740
+ search?: string;
2535
2741
  }, opts?: Oazapfts.RequestOpts) {
2536
2742
  return oazapfts.ok(oazapfts.fetchJson<{
2537
2743
  status: 200;
2538
- data: FeatureFlagsResponseV2;
2744
+ data: PageResponseServiceCredentialRateLimitResponse;
2539
2745
  } | {
2540
- status: 422;
2746
+ status: 403;
2541
2747
  data: ErrorResponse;
2542
2748
  } | {
2543
2749
  status: 500;
2544
- data: FeatureFlagsResponseV2;
2545
- }>(`/v2/admin/feature-flags/${encodeURIComponent(id)}`, {
2546
- ...opts
2547
- }));
2548
- }
2549
- /**
2750
+ data: ErrorResponse;
2751
+ }>(`/v2/service-credentials/rate-limit${QS.query(QS.explode({
2752
+ size,
2753
+ page,
2754
+ sort,
2755
+ direction,
2756
+ search
2757
+ }))}`, {
2758
+ ...opts
2759
+ }));
2760
+ }
2761
+ /**
2762
+ * Updates the rate limit of a service credential.
2763
+ */
2764
+ export function updateServiceCredentialRateLimit({ serviceCredentialRateLimitRequest }: {
2765
+ serviceCredentialRateLimitRequest: ServiceCredentialRateLimitRequest;
2766
+ }, opts?: Oazapfts.RequestOpts) {
2767
+ return oazapfts.ok(oazapfts.fetchJson<{
2768
+ status: 200;
2769
+ } | {
2770
+ status: 403;
2771
+ data: ErrorResponse;
2772
+ } | {
2773
+ status: 422;
2774
+ data: ErrorResponse;
2775
+ } | {
2776
+ status: 500;
2777
+ data: ErrorResponse;
2778
+ }>("/v2/service-credentials/rate-limit", oazapfts.json({
2779
+ ...opts,
2780
+ method: "PUT",
2781
+ body: serviceCredentialRateLimitRequest
2782
+ })));
2783
+ }
2784
+ /**
2785
+ * Returns the Feature Flag.
2786
+ */
2787
+ export function getFeatureFlag({ id }: {
2788
+ id: number;
2789
+ }, opts?: Oazapfts.RequestOpts) {
2790
+ return oazapfts.ok(oazapfts.fetchJson<{
2791
+ status: 200;
2792
+ data: FeatureFlagsAccountResponse;
2793
+ } | {
2794
+ status: 422;
2795
+ data: ErrorResponse;
2796
+ } | {
2797
+ status: 500;
2798
+ data: FeatureFlagsAccountResponse;
2799
+ }>(`/v2/feature-flags/${encodeURIComponent(id)}`, {
2800
+ ...opts
2801
+ }));
2802
+ }
2803
+ /**
2804
+ * Update a feature flag by id directly assigned to an account holder
2805
+ */
2806
+ export function updateFeatureFlag({ id, updateFeatureFlagAccountRequest }: {
2807
+ id: number;
2808
+ updateFeatureFlagAccountRequest: UpdateFeatureFlagAccountRequest;
2809
+ }, opts?: Oazapfts.RequestOpts) {
2810
+ return oazapfts.ok(oazapfts.fetchJson<{
2811
+ status: 204;
2812
+ } | {
2813
+ status: 400;
2814
+ data: ErrorResponse;
2815
+ } | {
2816
+ status: 422;
2817
+ data: ErrorResponse;
2818
+ } | {
2819
+ status: 500;
2820
+ }>(`/v2/feature-flags/${encodeURIComponent(id)}`, oazapfts.json({
2821
+ ...opts,
2822
+ method: "PUT",
2823
+ body: updateFeatureFlagAccountRequest
2824
+ })));
2825
+ }
2826
+ /**
2827
+ * Returns the Feature Flag.
2828
+ */
2829
+ export function getFeatureFlag1({ id }: {
2830
+ id: number;
2831
+ }, opts?: Oazapfts.RequestOpts) {
2832
+ return oazapfts.ok(oazapfts.fetchJson<{
2833
+ status: 200;
2834
+ data: FeatureFlagsResponseV2;
2835
+ } | {
2836
+ status: 422;
2837
+ data: ErrorResponse;
2838
+ } | {
2839
+ status: 500;
2840
+ data: FeatureFlagsResponseV2;
2841
+ }>(`/v2/admin/feature-flags/${encodeURIComponent(id)}`, {
2842
+ ...opts
2843
+ }));
2844
+ }
2845
+ /**
2550
2846
  * Updates an existing Feature Flag with the provided details.
2551
2847
  */
2552
2848
  export function update({ id, updateFeatureFlagRequest }: {
@@ -2796,6 +3092,32 @@ export function deleteSecret({ immediate, secretId }: {
2796
3092
  method: "DELETE"
2797
3093
  }));
2798
3094
  }
3095
+ /**
3096
+ * Associate a secret with a resource
3097
+ */
3098
+ export function associateResource({ secretId, resourceSlug, resourceTypeSlug }: {
3099
+ secretId: string;
3100
+ resourceSlug: string;
3101
+ resourceTypeSlug: string;
3102
+ }, opts?: Oazapfts.RequestOpts) {
3103
+ return oazapfts.ok(oazapfts.fetchText(`/v1/secrets/${encodeURIComponent(secretId)}/associations/resources/${encodeURIComponent(resourceSlug)}/resource-type/${encodeURIComponent(resourceTypeSlug)}`, {
3104
+ ...opts,
3105
+ method: "PUT"
3106
+ }));
3107
+ }
3108
+ /**
3109
+ * Disassociate a secret with a resource
3110
+ */
3111
+ export function disassociateResource({ secretId, resourceSlug, resourceTypeSlug }: {
3112
+ secretId: string;
3113
+ resourceSlug: string;
3114
+ resourceTypeSlug: string;
3115
+ }, opts?: Oazapfts.RequestOpts) {
3116
+ return oazapfts.ok(oazapfts.fetchText(`/v1/secrets/${encodeURIComponent(secretId)}/associations/resources/${encodeURIComponent(resourceSlug)}/resource-type/${encodeURIComponent(resourceTypeSlug)}`, {
3117
+ ...opts,
3118
+ method: "DELETE"
3119
+ }));
3120
+ }
2799
3121
  /**
2800
3122
  * Retrieves a specific scope by its ID for the current user's tenant and returns it.
2801
3123
  */
@@ -3068,6 +3390,31 @@ export function updateResourceActions({ roleId, resourceId, updateResourceAction
3068
3390
  body: updateResourceActionsRequest
3069
3391
  })));
3070
3392
  }
3393
+ /**
3394
+ * Update permission resource action
3395
+ */
3396
+ export function updatePermissionResourceAction({ permissionId, resourceId, updatePermissionResourceActionRequest }: {
3397
+ permissionId: string;
3398
+ resourceId: string;
3399
+ updatePermissionResourceActionRequest: UpdatePermissionResourceActionRequest;
3400
+ }, opts?: Oazapfts.RequestOpts) {
3401
+ return oazapfts.ok(oazapfts.fetchJson<{
3402
+ status: 204;
3403
+ } | {
3404
+ status: 400;
3405
+ data: ErrorResponse;
3406
+ } | {
3407
+ status: 404;
3408
+ data: ErrorResponse;
3409
+ } | {
3410
+ status: 500;
3411
+ data: ErrorResponse;
3412
+ }>(`/v1/permissions/${encodeURIComponent(permissionId)}/resource/${encodeURIComponent(resourceId)}/action`, oazapfts.json({
3413
+ ...opts,
3414
+ method: "PUT",
3415
+ body: updatePermissionResourceActionRequest
3416
+ })));
3417
+ }
3071
3418
  /**
3072
3419
  * Retrieves account member details by their unique identifier.
3073
3420
  */
@@ -3358,6 +3705,74 @@ export function deleteGroupMapping({ id, attributeImporterId }: {
3358
3705
  method: "DELETE"
3359
3706
  }));
3360
3707
  }
3708
+ /**
3709
+ * TODO: Description
3710
+ */
3711
+ export function getAll({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn, status }: {
3712
+ size?: any;
3713
+ page?: any;
3714
+ sort?: string;
3715
+ direction?: "ASC" | "DESC";
3716
+ search?: string;
3717
+ filterMode?: "MATCH" | "CONTAINS" | "IN";
3718
+ filterBy?: string;
3719
+ filterValue?: string;
3720
+ multiFilterMode?: string;
3721
+ filterIn?: any;
3722
+ status?: string;
3723
+ }, opts?: Oazapfts.RequestOpts) {
3724
+ return oazapfts.ok(oazapfts.fetchJson<{
3725
+ status: 200;
3726
+ data: PageResponseServiceCredentialResponseV3;
3727
+ } | {
3728
+ status: 403;
3729
+ data: ErrorResponse;
3730
+ } | {
3731
+ status: 500;
3732
+ data: ErrorResponse;
3733
+ }>(`/v3/service-credentials${QS.query(QS.explode({
3734
+ size,
3735
+ page,
3736
+ sort,
3737
+ direction,
3738
+ search,
3739
+ filterMode,
3740
+ filterBy,
3741
+ filterValue,
3742
+ multiFilterMode,
3743
+ filterIn,
3744
+ status
3745
+ }))}`, {
3746
+ ...opts
3747
+ }));
3748
+ }
3749
+ /**
3750
+ * Create a new Service Credential
3751
+ */
3752
+ export function create({ serviceCredentialCreateRequestV3 }: {
3753
+ serviceCredentialCreateRequestV3: ServiceCredentialCreateRequestV3;
3754
+ }, opts?: Oazapfts.RequestOpts) {
3755
+ return oazapfts.ok(oazapfts.fetchJson<{
3756
+ status: 201;
3757
+ data: ServiceCredentialIdResponseV3;
3758
+ } | {
3759
+ status: 400;
3760
+ data: ErrorResponse;
3761
+ } | {
3762
+ status: 403;
3763
+ data: ErrorResponse;
3764
+ } | {
3765
+ status: 409;
3766
+ data: ErrorResponse;
3767
+ } | {
3768
+ status: 500;
3769
+ data: ErrorResponse;
3770
+ }>("/v3/service-credentials", oazapfts.json({
3771
+ ...opts,
3772
+ method: "POST",
3773
+ body: serviceCredentialCreateRequestV3
3774
+ })));
3775
+ }
3361
3776
  /**
3362
3777
  * Retrieves a list of service credentials associated with the current user
3363
3778
  */
@@ -3599,7 +4014,7 @@ export function getFeatures1(opts?: Oazapfts.RequestOpts) {
3599
4014
  /**
3600
4015
  * Creates a new Feature Flag and returns its unique identifier.
3601
4016
  */
3602
- export function create({ createFeatureFlagRequest }: {
4017
+ export function create1({ createFeatureFlagRequest }: {
3603
4018
  createFeatureFlagRequest: CreateFeatureFlagRequest;
3604
4019
  }, opts?: Oazapfts.RequestOpts) {
3605
4020
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -3852,32 +4267,6 @@ export function createSecret({ createSecretRequest }: {
3852
4267
  body: createSecretRequest
3853
4268
  })));
3854
4269
  }
3855
- /**
3856
- * Associate a secret with a resource
3857
- */
3858
- export function associateResource({ secretId, resourceSlug, resourceTypeSlug }: {
3859
- secretId: string;
3860
- resourceSlug: string;
3861
- resourceTypeSlug: string;
3862
- }, opts?: Oazapfts.RequestOpts) {
3863
- return oazapfts.ok(oazapfts.fetchText(`/v1/secrets/${encodeURIComponent(secretId)}/associations/resources/${encodeURIComponent(resourceSlug)}/resource-type/${encodeURIComponent(resourceTypeSlug)}`, {
3864
- ...opts,
3865
- method: "POST"
3866
- }));
3867
- }
3868
- /**
3869
- * Disassociate a secret with a resource
3870
- */
3871
- export function disassociateResource({ secretId, resourceSlug, resourceTypeSlug }: {
3872
- secretId: string;
3873
- resourceSlug: string;
3874
- resourceTypeSlug: string;
3875
- }, opts?: Oazapfts.RequestOpts) {
3876
- return oazapfts.ok(oazapfts.fetchText(`/v1/secrets/${encodeURIComponent(secretId)}/associations/resources/${encodeURIComponent(resourceSlug)}/resource-type/${encodeURIComponent(resourceTypeSlug)}`, {
3877
- ...opts,
3878
- method: "DELETE"
3879
- }));
3880
- }
3881
4270
  /**
3882
4271
  * Check if user has access to secret
3883
4272
  */
@@ -5530,7 +5919,7 @@ export function getAccounts({ size, page, sort, direction, search, filterMode, f
5530
5919
  /**
5531
5920
  * Creates a new account order and returns the associated account ID.
5532
5921
  */
5533
- export function create1({ createAccountOrderRequest }: {
5922
+ export function create2({ createAccountOrderRequest }: {
5534
5923
  createAccountOrderRequest: CreateAccountOrderRequest;
5535
5924
  }, opts?: Oazapfts.RequestOpts) {
5536
5925
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -5754,11 +6143,11 @@ export function validateNewPartnerData({ validateAccountPartnerDataRequest }: {
5754
6143
  /**
5755
6144
  * Removes privileges to group's default role.
5756
6145
  */
5757
- export function removePermissions({ groupId, body }: {
6146
+ export function removePermissions1({ groupId, body }: {
5758
6147
  groupId: string;
5759
6148
  body: RemovePrivilegeToGroupRequest[];
5760
6149
  }, opts?: Oazapfts.RequestOpts) {
5761
- return oazapfts.ok(oazapfts.fetchText(`/v3/groups/${encodeURIComponent(groupId)}/permissions`, oazapfts.json({
6150
+ return oazapfts.ok(oazapfts.fetchText(`/v4/groups/${encodeURIComponent(groupId)}/permissions`, oazapfts.json({
5762
6151
  ...opts,
5763
6152
  method: "DELETE",
5764
6153
  body
@@ -5778,6 +6167,266 @@ export function addPrivilegesToGroup({ groupId, body }: {
5778
6167
  data: ErrorResponse;
5779
6168
  } | {
5780
6169
  status: 500;
6170
+ }>(`/v4/groups/${encodeURIComponent(groupId)}/permissions`, oazapfts.json({
6171
+ ...opts,
6172
+ method: "PATCH",
6173
+ body
6174
+ })));
6175
+ }
6176
+ /**
6177
+ * TODO: Description
6178
+ */
6179
+ export function getById2({ id }: {
6180
+ id: string;
6181
+ }, opts?: Oazapfts.RequestOpts) {
6182
+ return oazapfts.ok(oazapfts.fetchJson<{
6183
+ status: 200;
6184
+ data: ServiceCredentialResponseV3;
6185
+ } | {
6186
+ status: 403;
6187
+ data: ErrorResponse;
6188
+ } | {
6189
+ status: 500;
6190
+ data: ErrorResponse;
6191
+ }>(`/v3/service-credentials/${encodeURIComponent(id)}`, {
6192
+ ...opts
6193
+ }));
6194
+ }
6195
+ /**
6196
+ * Revoke Service Credential
6197
+ */
6198
+ export function revoke({ id }: {
6199
+ id: string;
6200
+ }, opts?: Oazapfts.RequestOpts) {
6201
+ return oazapfts.ok(oazapfts.fetchJson<{
6202
+ status: 204;
6203
+ data: ErrorResponse;
6204
+ } | {
6205
+ status: 403;
6206
+ data: ErrorResponse;
6207
+ } | {
6208
+ status: 404;
6209
+ data: ErrorResponse;
6210
+ } | {
6211
+ status: 500;
6212
+ data: ErrorResponse;
6213
+ }>(`/v3/service-credentials/${encodeURIComponent(id)}`, {
6214
+ ...opts,
6215
+ method: "DELETE"
6216
+ }));
6217
+ }
6218
+ /**
6219
+ * Updates Service Credential Metadata
6220
+ */
6221
+ export function updateMetadata({ id, serviceCredentialUpdateRequestV3 }: {
6222
+ id: string;
6223
+ serviceCredentialUpdateRequestV3: ServiceCredentialUpdateRequestV3;
6224
+ }, opts?: Oazapfts.RequestOpts) {
6225
+ return oazapfts.ok(oazapfts.fetchJson<{
6226
+ status: 200;
6227
+ data: ServiceCredentialUpdateResponseV3;
6228
+ } | {
6229
+ status: 403;
6230
+ data: ErrorResponse;
6231
+ } | {
6232
+ status: 404;
6233
+ data: ErrorResponse;
6234
+ } | {
6235
+ status: 422;
6236
+ data: ErrorResponse;
6237
+ } | {
6238
+ status: 500;
6239
+ data: ErrorResponse;
6240
+ }>(`/v3/service-credentials/${encodeURIComponent(id)}`, oazapfts.json({
6241
+ ...opts,
6242
+ method: "PATCH",
6243
+ body: serviceCredentialUpdateRequestV3
6244
+ })));
6245
+ }
6246
+ /**
6247
+ * Get service credential groups
6248
+ */
6249
+ export function getGroups1({ id, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
6250
+ id: string;
6251
+ size?: any;
6252
+ page?: any;
6253
+ sort?: string;
6254
+ direction?: "ASC" | "DESC";
6255
+ search?: string;
6256
+ filterMode?: "MATCH" | "CONTAINS" | "IN";
6257
+ filterBy?: string;
6258
+ filterValue?: string;
6259
+ multiFilterMode?: string;
6260
+ filterIn?: any;
6261
+ }, opts?: Oazapfts.RequestOpts) {
6262
+ return oazapfts.ok(oazapfts.fetchJson<{
6263
+ status: 200;
6264
+ data: PageResponseServiceCredentialGroupResponse;
6265
+ } | {
6266
+ status: 403;
6267
+ data: ErrorResponse;
6268
+ } | {
6269
+ status: 404;
6270
+ data: ErrorResponse;
6271
+ } | {
6272
+ status: 500;
6273
+ data: ErrorResponse;
6274
+ }>(`/v3/service-credentials/${encodeURIComponent(id)}/groups${QS.query(QS.explode({
6275
+ size,
6276
+ page,
6277
+ sort,
6278
+ direction,
6279
+ search,
6280
+ filterMode,
6281
+ filterBy,
6282
+ filterValue,
6283
+ multiFilterMode,
6284
+ filterIn
6285
+ }))}`, {
6286
+ ...opts
6287
+ }));
6288
+ }
6289
+ /**
6290
+ * Remove Group(s) from Service Credential
6291
+ */
6292
+ export function removeGroup({ id, groupsRequest }: {
6293
+ id: string;
6294
+ groupsRequest: GroupsRequest;
6295
+ }, opts?: Oazapfts.RequestOpts) {
6296
+ return oazapfts.ok(oazapfts.fetchJson<{
6297
+ status: 200;
6298
+ } | {
6299
+ status: 400;
6300
+ data: ErrorResponse;
6301
+ } | {
6302
+ status: 403;
6303
+ data: ErrorResponse;
6304
+ } | {
6305
+ status: 404;
6306
+ data: ErrorResponse;
6307
+ } | {
6308
+ status: 500;
6309
+ data: ErrorResponse;
6310
+ }>(`/v3/service-credentials/${encodeURIComponent(id)}/groups`, oazapfts.json({
6311
+ ...opts,
6312
+ method: "DELETE",
6313
+ body: groupsRequest
6314
+ })));
6315
+ }
6316
+ /**
6317
+ * Add group to service credential
6318
+ */
6319
+ export function addGroup({ id, groupsRequest }: {
6320
+ id: string;
6321
+ groupsRequest: GroupsRequest;
6322
+ }, opts?: Oazapfts.RequestOpts) {
6323
+ return oazapfts.ok(oazapfts.fetchJson<{
6324
+ status: 200;
6325
+ } | {
6326
+ status: 400;
6327
+ data: ErrorResponse;
6328
+ } | {
6329
+ status: 403;
6330
+ data: ErrorResponse;
6331
+ } | {
6332
+ status: 500;
6333
+ data: ErrorResponse;
6334
+ }>(`/v3/service-credentials/${encodeURIComponent(id)}/groups`, oazapfts.json({
6335
+ ...opts,
6336
+ method: "PATCH",
6337
+ body: groupsRequest
6338
+ })));
6339
+ }
6340
+ /**
6341
+ * Delete a member permissions
6342
+ */
6343
+ export function deleteMemberPermissions({ memberId, body }: {
6344
+ memberId: string;
6345
+ body: DeleteMemberPermissionsRequest[];
6346
+ }, opts?: Oazapfts.RequestOpts) {
6347
+ return oazapfts.ok(oazapfts.fetchJson<{
6348
+ status: 200;
6349
+ } | {
6350
+ status: 403;
6351
+ data: ErrorResponse;
6352
+ } | {
6353
+ status: 404;
6354
+ data: ErrorResponse;
6355
+ } | {
6356
+ status: 500;
6357
+ data: ErrorResponse;
6358
+ }>(`/v3/members/${encodeURIComponent(memberId)}/permissions`, oazapfts.json({
6359
+ ...opts,
6360
+ method: "DELETE",
6361
+ body
6362
+ })));
6363
+ }
6364
+ /**
6365
+ * Update a member's permissions by assigning resources and actions, creating a default role if necessary.
6366
+ */
6367
+ export function updateMemberPermissions({ memberId, body }: {
6368
+ memberId: string;
6369
+ body: UpdateMemberPermissionsRequest[];
6370
+ }, opts?: Oazapfts.RequestOpts) {
6371
+ return oazapfts.ok(oazapfts.fetchJson<{
6372
+ status: 200;
6373
+ } | {
6374
+ status: 403;
6375
+ data: ErrorResponse;
6376
+ } | {
6377
+ status: 404;
6378
+ data: ErrorResponse;
6379
+ } | {
6380
+ status: 500;
6381
+ data: ErrorResponse;
6382
+ }>(`/v3/members/${encodeURIComponent(memberId)}/permissions`, oazapfts.json({
6383
+ ...opts,
6384
+ method: "PATCH",
6385
+ body
6386
+ })));
6387
+ }
6388
+ /**
6389
+ * Delete Group permissions
6390
+ */
6391
+ export function deleteGroupPermissions({ groupId, body }: {
6392
+ groupId: string;
6393
+ body: DeleteGroupPermissionsRequest[];
6394
+ }, opts?: Oazapfts.RequestOpts) {
6395
+ return oazapfts.ok(oazapfts.fetchJson<{
6396
+ status: 200;
6397
+ } | {
6398
+ status: 403;
6399
+ data: ErrorResponse;
6400
+ } | {
6401
+ status: 404;
6402
+ data: ErrorResponse;
6403
+ } | {
6404
+ status: 500;
6405
+ data: ErrorResponse;
6406
+ }>(`/v3/groups/${encodeURIComponent(groupId)}/permissions`, oazapfts.json({
6407
+ ...opts,
6408
+ method: "DELETE",
6409
+ body
6410
+ })));
6411
+ }
6412
+ /**
6413
+ * Update a group's permissions by assigning resources and actions
6414
+ */
6415
+ export function addGroupPermissions({ groupId, body }: {
6416
+ groupId: string;
6417
+ body: UpdateGroupPermissionsRequest[];
6418
+ }, opts?: Oazapfts.RequestOpts) {
6419
+ return oazapfts.ok(oazapfts.fetchJson<{
6420
+ status: 200;
6421
+ } | {
6422
+ status: 403;
6423
+ data: ErrorResponse;
6424
+ } | {
6425
+ status: 404;
6426
+ data: ErrorResponse;
6427
+ } | {
6428
+ status: 500;
6429
+ data: ErrorResponse;
5781
6430
  }>(`/v3/groups/${encodeURIComponent(groupId)}/permissions`, oazapfts.json({
5782
6431
  ...opts,
5783
6432
  method: "PATCH",
@@ -5858,9 +6507,9 @@ export function revokeServiceCredential({ id }: {
5858
6507
  }));
5859
6508
  }
5860
6509
  /**
5861
- * Delete a member permissions
6510
+ * Delete a member permission of the entire resources if any action matches with existing permission.
5862
6511
  */
5863
- export function deleteMemberPermissions({ memberId, body }: {
6512
+ export function deleteMemberPermissions1({ memberId, body }: {
5864
6513
  memberId: string;
5865
6514
  body: DeleteMemberPermissionsRequest[];
5866
6515
  }, opts?: Oazapfts.RequestOpts) {
@@ -5882,9 +6531,9 @@ export function deleteMemberPermissions({ memberId, body }: {
5882
6531
  })));
5883
6532
  }
5884
6533
  /**
5885
- * Update a member's permissions by assigning resources and actions, creating a default role if necessary.
6534
+ * Update a member's permissions by assigning resources and REPLACING actions, creating a default role if necessary.
5886
6535
  */
5887
- export function updateMemberPermissions({ memberId, body }: {
6536
+ export function updateMemberPermissions1({ memberId, body }: {
5888
6537
  memberId: string;
5889
6538
  body: UpdateMemberPermissionsRequest[];
5890
6539
  }, opts?: Oazapfts.RequestOpts) {
@@ -5906,9 +6555,9 @@ export function updateMemberPermissions({ memberId, body }: {
5906
6555
  })));
5907
6556
  }
5908
6557
  /**
5909
- * Delete Group permissions
6558
+ * Delete a group permission of the entire resources if any action matches with existing permission.
5910
6559
  */
5911
- export function deleteGroupPermissions({ groupId, body }: {
6560
+ export function deleteGroupPermissions1({ groupId, body }: {
5912
6561
  groupId: string;
5913
6562
  body: DeleteGroupPermissionsRequest[];
5914
6563
  }, opts?: Oazapfts.RequestOpts) {
@@ -6229,9 +6878,9 @@ export function updateMemberPreferences({ memberId, updateMemberPreferencesReque
6229
6878
  })));
6230
6879
  }
6231
6880
  /**
6232
- * Deletes specific permissions from a member's role.
6881
+ * Delete a member permission of the entire resources if any action matches with existing permission.
6233
6882
  */
6234
- export function deleteMemberPermissions1({ memberId, deleteMemberPermissionsRequest }: {
6883
+ export function deleteMemberPermissions2({ memberId, deleteMemberPermissionsRequest }: {
6235
6884
  memberId: string;
6236
6885
  deleteMemberPermissionsRequest: DeleteMemberPermissionsRequest;
6237
6886
  }, opts?: Oazapfts.RequestOpts) {
@@ -6253,9 +6902,9 @@ export function deleteMemberPermissions1({ memberId, deleteMemberPermissionsRequ
6253
6902
  })));
6254
6903
  }
6255
6904
  /**
6256
- * Update a member's permissions by assigning resources and actions, creating a default role if necessary.
6905
+ * Update a member's permissions by assigning resources and REPLACING actions, creating a default role if necessary.
6257
6906
  */
6258
- export function updateMemberPermissions1({ memberId, updateMemberPermissionsRequest }: {
6907
+ export function updateMemberPermissions2({ memberId, updateMemberPermissionsRequest }: {
6259
6908
  memberId: string;
6260
6909
  updateMemberPermissionsRequest: UpdateMemberPermissionsRequest;
6261
6910
  }, opts?: Oazapfts.RequestOpts) {
@@ -6436,9 +7085,9 @@ export function update1({ groupId, updateGroupRequest }: {
6436
7085
  })));
6437
7086
  }
6438
7087
  /**
6439
- * Delete Group permissions
7088
+ * Delete a group permission of the entire resources if any action matches with existing permission.
6440
7089
  */
6441
- export function deleteGroupPermissions1({ groupId, deleteGroupPermissionsRequest }: {
7090
+ export function deleteGroupPermissions2({ groupId, deleteGroupPermissionsRequest }: {
6442
7091
  groupId: string;
6443
7092
  deleteGroupPermissionsRequest: DeleteGroupPermissionsRequest;
6444
7093
  }, opts?: Oazapfts.RequestOpts) {
@@ -6826,6 +7475,45 @@ export function updatePartnerAccountAdminData({ id, accountPartnerAdminDataUpdat
6826
7475
  body: accountPartnerAdminDataUpdateRequest
6827
7476
  })));
6828
7477
  }
7478
+ /**
7479
+ * Get Resource Types
7480
+ */
7481
+ export function getResourceTypes({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
7482
+ size?: any;
7483
+ page?: any;
7484
+ sort?: string;
7485
+ direction?: "ASC" | "DESC";
7486
+ search?: string;
7487
+ filterMode?: "MATCH" | "CONTAINS" | "IN";
7488
+ filterBy?: string;
7489
+ filterValue?: string;
7490
+ multiFilterMode?: string;
7491
+ filterIn?: any;
7492
+ }, opts?: Oazapfts.RequestOpts) {
7493
+ return oazapfts.ok(oazapfts.fetchJson<{
7494
+ status: 200;
7495
+ data: PageResponseResourceTypeResponseV3;
7496
+ } | {
7497
+ status: 403;
7498
+ data: ErrorResponse;
7499
+ } | {
7500
+ status: 500;
7501
+ data: ErrorResponse;
7502
+ }>(`/v3/resource-types${QS.query(QS.explode({
7503
+ size,
7504
+ page,
7505
+ sort,
7506
+ direction,
7507
+ search,
7508
+ filterMode,
7509
+ filterBy,
7510
+ filterValue,
7511
+ multiFilterMode,
7512
+ filterIn
7513
+ }))}`, {
7514
+ ...opts
7515
+ }));
7516
+ }
6829
7517
  /**
6830
7518
  * Retrieves a list of SCM credentials associated with the current user's account, including secret names and provider details.
6831
7519
  */
@@ -7125,7 +7813,7 @@ export function getResourceGroups({ resourceId, size, page, sort, direction, sea
7125
7813
  /**
7126
7814
  * Get Resource Types
7127
7815
  */
7128
- export function getResourceTypes({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
7816
+ export function getResourceTypes1({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
7129
7817
  size?: any;
7130
7818
  page?: any;
7131
7819
  sort?: string;
@@ -7283,7 +7971,7 @@ export function getMemberGroups1({ memberId, size, page, sort, direction, search
7283
7971
  /**
7284
7972
  * Get Groups
7285
7973
  */
7286
- export function getGroups1({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn, includeDefaultGroup }: {
7974
+ export function getGroups2({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn, includeDefaultGroup }: {
7287
7975
  size?: any;
7288
7976
  page?: any;
7289
7977
  sort?: string;
@@ -7853,7 +8541,7 @@ export function getResourceGroups1({ resourceId, size, page, sort, direction, se
7853
8541
  /**
7854
8542
  * Get Resource Types
7855
8543
  */
7856
- export function getResourceTypes1({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
8544
+ export function getResourceTypes2({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
7857
8545
  size?: any;
7858
8546
  page?: any;
7859
8547
  sort?: string;
@@ -7921,7 +8609,7 @@ export function getResources2({ memberId }: {
7921
8609
  }, opts?: Oazapfts.RequestOpts) {
7922
8610
  return oazapfts.ok(oazapfts.fetchJson<{
7923
8611
  status: 200;
7924
- data: ResourceDto[];
8612
+ data: ResourceResponse[];
7925
8613
  } | {
7926
8614
  status: 403;
7927
8615
  data: ErrorResponse;