@stack-spot/portal-network 0.222.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.
@@ -9,21 +9,29 @@ export declare const defaults: Oazapfts.Defaults<Oazapfts.CustomHeaders>;
9
9
  export declare const servers: {
10
10
  generatedServerUrl: string;
11
11
  };
12
- export type RateLimitValue = {
13
- "type": "ACCOUNT" | "SERVICE_CREDENTIAL";
14
- value: number;
15
- };
16
- export type ServiceCredentialRateLimitResponse = {
17
- /** Service credential ID */
12
+ export type ServiceCredentialActionResponse = {
13
+ /** Action id */
18
14
  id: string;
19
- /** Service credential name */
15
+ /** Action name */
20
16
  name: string;
21
- scMaxPerMin: RateLimitValue;
22
- scMaxPerDay: RateLimitValue;
23
17
  };
24
- export type PageResponseServiceCredentialRateLimitResponse = {
18
+ export type ServiceCredentialPermissionResponse = {
19
+ /** Resource id */
20
+ resourceId: string;
21
+ /** Resource slug */
22
+ resourceSlug: string;
23
+ /** Resource id */
24
+ resourceName: string;
25
+ /** Resource type ID */
26
+ resourceTypeId?: string;
27
+ /** Resource type name */
28
+ resourceTypeName?: string;
29
+ /** Action's list */
30
+ actions: ServiceCredentialActionResponse[];
31
+ };
32
+ export type PageResponseServiceCredentialPermissionResponse = {
25
33
  /** Current page content */
26
- items?: ServiceCredentialRateLimitResponse[];
34
+ items?: ServiceCredentialPermissionResponse[];
27
35
  /** Total elements found */
28
36
  totalElements: number;
29
37
  /** Current page number */
@@ -45,6 +53,39 @@ export type ErrorResponse = {
45
53
  details: string;
46
54
  validationDetails?: ValidationDetails[];
47
55
  };
56
+ export type PermissionStatement = {
57
+ /** Resource ID */
58
+ resourceId: string;
59
+ actions: string[];
60
+ };
61
+ export type ServiceCredentialPermissionRequestV3 = {
62
+ /** List of permissions */
63
+ permissions: PermissionStatement[];
64
+ };
65
+ export type RateLimitValue = {
66
+ "type": "ACCOUNT" | "SERVICE_CREDENTIAL";
67
+ value: number;
68
+ };
69
+ export type ServiceCredentialRateLimitResponse = {
70
+ /** Service credential ID */
71
+ id: string;
72
+ /** Service credential name */
73
+ name: string;
74
+ scMaxPerMin: RateLimitValue;
75
+ scMaxPerDay: RateLimitValue;
76
+ };
77
+ export type PageResponseServiceCredentialRateLimitResponse = {
78
+ /** Current page content */
79
+ items?: ServiceCredentialRateLimitResponse[];
80
+ /** Total elements found */
81
+ totalElements: number;
82
+ /** Current page number */
83
+ page: number;
84
+ /** Length of current page items */
85
+ size: number;
86
+ /** Total pages found */
87
+ totalPages: number;
88
+ };
48
89
  export type ServiceCredentialRateLimitRequest = {
49
90
  /** Maximum number of executions allowed per minute. Use -1 for no limit. */
50
91
  scMaxPerMin?: number;
@@ -157,9 +198,7 @@ export type UserScmInfoResponse = {
157
198
  /** Secrets name */
158
199
  secretName: string;
159
200
  /** Provider type */
160
- provider: "GITHUB" | "GITLAB" | "BITBUCKET" | "AZURE" | "GITLAB_ONPRM";
161
- /** User email */
162
- email: string;
201
+ provider: "GITHUB" | "GITLAB" | "BITBUCKET" | "AZURE" | "GITLAB_ONPRM" | "ITAU_BACKEND";
163
202
  };
164
203
  export type UserScmInfoRequest = {
165
204
  /** Repository Username */
@@ -267,9 +306,9 @@ export type AccountScmInfoResponse = {
267
306
  /** SCM Workflow repository URL */
268
307
  workflowUrl?: string;
269
308
  /** SCM Type */
270
- "type"?: "PAT" | "GITHUBAPP";
309
+ "type"?: "PAT" | "GITHUBAPP" | "CLIENT_CREDENTIAL";
271
310
  /** SCM repository provider */
272
- provider: "GITHUB" | "GITLAB" | "BITBUCKET" | "AZURE" | "GITLAB_ONPRM";
311
+ provider: "GITHUB" | "GITLAB" | "BITBUCKET" | "AZURE" | "GITLAB_ONPRM" | "ITAU_BACKEND";
273
312
  /** Flag used to indicate if the SCM repository account credential configuration is mandated */
274
313
  mandate: boolean;
275
314
  /** Flag used to indicate if the user credentials to access the account SCM repository already has configured by User */
@@ -284,6 +323,16 @@ export type Basic = Value & {
284
323
  /** PAT repository password */
285
324
  pass: string;
286
325
  };
326
+ export type ClientCredentials = Value & {
327
+ /** Client Id */
328
+ clientId: string;
329
+ /** Client Secret */
330
+ clientSecret: string;
331
+ /** Client Secret */
332
+ certificate: string;
333
+ /** Private Key */
334
+ privateKey: string;
335
+ };
287
336
  export type GithubApp = Value & {
288
337
  /** GithubApp App Id */
289
338
  appId: string;
@@ -298,28 +347,32 @@ export type GithubApp = Value & {
298
347
  };
299
348
  export type AccountScmInfoUpdateRequest = {
300
349
  /** SCM Type */
301
- "type"?: "PAT" | "GITHUBAPP";
350
+ "type"?: "PAT" | "GITHUBAPP" | "CLIENT_CREDENTIAL";
302
351
  /** SCM repository provider */
303
- provider?: "GITHUB" | "GITLAB" | "BITBUCKET" | "AZURE" | "GITLAB_ONPRM";
304
- value?: Basic | GithubApp;
352
+ provider?: "GITHUB" | "GITLAB" | "BITBUCKET" | "AZURE" | "GITLAB_ONPRM" | "ITAU_BACKEND";
353
+ value?: Basic | ClientCredentials | GithubApp;
305
354
  /** SCM Workflow repository URL */
306
355
  workflowUrl?: string;
307
356
  /** Flag used when SCM repository account credential configuration is mandated */
308
357
  mandate?: boolean;
309
358
  urlProvider?: string;
359
+ /** Authentication endpoint */
360
+ authorizationEndpoint?: string;
310
361
  };
311
362
  export type AccountScmInfoSaveRequest = {
312
363
  /** SCM Type */
313
- "type": "PAT" | "GITHUBAPP";
364
+ "type": "PAT" | "GITHUBAPP" | "CLIENT_CREDENTIAL";
314
365
  /** SCM repository provider */
315
- provider: "GITHUB" | "GITLAB" | "BITBUCKET" | "AZURE" | "GITLAB_ONPRM";
316
- value: Basic | GithubApp;
366
+ provider: "GITHUB" | "GITLAB" | "BITBUCKET" | "AZURE" | "GITLAB_ONPRM" | "ITAU_BACKEND";
367
+ value: Basic | ClientCredentials | GithubApp;
317
368
  /** Connection URL for on-premises provider */
318
369
  urlProvider?: string;
319
370
  /** SCM Workflow repository URL */
320
371
  workflowUrl: string;
321
372
  /** Flag used when SCM repository account credential configuration is mandated */
322
373
  mandate: boolean;
374
+ /** Authentication endpoint */
375
+ authorizationEndpoint?: string;
323
376
  };
324
377
  export type UpdateAccountRoleRequest = {
325
378
  /** Account Role new name. */
@@ -369,6 +422,10 @@ export type UpdateResourceActionsRequest = {
369
422
  /** The updated list of actions. */
370
423
  actions: string[];
371
424
  };
425
+ export type UpdatePermissionResourceActionRequest = {
426
+ /** Action id to be updated. */
427
+ actionIds: string[];
428
+ };
372
429
  export type AccountMemberStackspotIamDto = {
373
430
  /** Unique identifier of the account member. */
374
431
  id: string;
@@ -584,6 +641,73 @@ export type AccountGroupMappingUpdateRequest = {
584
641
  /** Group Mapping name */
585
642
  name: string;
586
643
  };
644
+ export type ServiceCredentialResponseV3 = {
645
+ id: string;
646
+ name: string;
647
+ status: "ACTIVE" | "DISABLED" | "REVOKED" | "EXPIRED";
648
+ description?: string;
649
+ expirationDays?: number;
650
+ tokenExpirationMinutes?: number;
651
+ createdBy: string;
652
+ createdAt: string;
653
+ expirationDate?: string;
654
+ };
655
+ export type PageResponseServiceCredentialResponseV3 = {
656
+ /** Current page content */
657
+ items?: ServiceCredentialResponseV3[];
658
+ /** Total elements found */
659
+ totalElements: number;
660
+ /** Current page number */
661
+ page: number;
662
+ /** Length of current page items */
663
+ size: number;
664
+ /** Total pages found */
665
+ totalPages: number;
666
+ };
667
+ export type Permissions = {
668
+ /** Resource ID */
669
+ resourceId: string;
670
+ /** Action ID */
671
+ actions: string[];
672
+ };
673
+ export type ServiceCredentialCreateRequestV3 = {
674
+ /** Service credential name */
675
+ name: string;
676
+ /** Service credential expiration days */
677
+ description: string;
678
+ /** Service credential expiration days */
679
+ expirationDays?: number;
680
+ /** Service credential token expiration minutes */
681
+ tokenExpirationMinutes?: number;
682
+ /** GroupId's */
683
+ groups: string[];
684
+ /** List of permissions */
685
+ permissions: Permissions[];
686
+ };
687
+ export type ServiceCredentialIdResponseV3 = {
688
+ /** Service Credential Id */
689
+ id: string;
690
+ /** Service Credential secret */
691
+ secret: string;
692
+ /** Service Credential name */
693
+ name: string;
694
+ /** Service Credential tenant */
695
+ tenant: string;
696
+ /** Service Credential status */
697
+ status: "ACTIVE" | "DISABLED" | "REVOKED" | "EXPIRED";
698
+ /** Service Credential description */
699
+ description?: string | null;
700
+ /** Expiration days from creation */
701
+ expirationDays?: number | null;
702
+ /** Token expiration in minutes */
703
+ tokenExpirationMinutes?: number | null;
704
+ /** User who created the credential */
705
+ createdBy: string;
706
+ /** Creation timestamp */
707
+ createdAt: string;
708
+ /** Expiration date */
709
+ expirationDate?: string | null;
710
+ };
587
711
  export type ServiceCredentialResponse = {
588
712
  /** Service credential id */
589
713
  id: string;
@@ -640,7 +764,7 @@ export type ServiceCredentialCreateResponseV2 = {
640
764
  /** Account tenant */
641
765
  tenant: string;
642
766
  };
643
- export type ResourceTypeDto = {
767
+ export type ResourceTypeResponse = {
644
768
  /** Id of resource type. */
645
769
  id: string;
646
770
  /** Name of resource type. */
@@ -659,7 +783,7 @@ export type ResourceResponse = {
659
783
  name: string;
660
784
  /** Description of resource. */
661
785
  description?: string;
662
- "type"?: ResourceTypeDto;
786
+ "type"?: ResourceTypeResponse;
663
787
  /** Name of resource. */
664
788
  slug: string;
665
789
  };
@@ -1758,16 +1882,51 @@ export type AddPrivilegeToGroupRequest = {
1758
1882
  /** Whether the privilege is inheritable by child resources. */
1759
1883
  inheritable: boolean;
1760
1884
  };
1761
- export type RotateServiceCredentialSecretRequest = {
1762
- /** Service credential secret */
1763
- secret: string;
1885
+ export type ServiceCredentialUpdateRequestV3 = {
1886
+ /** Name of the service credential. */
1887
+ name?: string;
1888
+ /** Status of the service credential. */
1889
+ status?: "ACTIVE" | "DISABLED" | "REVOKED" | "EXPIRED";
1890
+ /** Description of the service credential. */
1891
+ description?: string;
1892
+ /** Number of days until the service credential expires. */
1893
+ expirationDays?: number;
1894
+ /** Token expiration time in minutes. */
1895
+ tokenExpirationMinutes?: number;
1764
1896
  };
1765
- export type RotateServiceCredentialSecretResponse = {
1766
- secret?: string;
1897
+ export type ServiceCredentialUpdateResponseV3 = {
1898
+ /** Name of the service credential. */
1899
+ name?: string;
1900
+ /** Status of the service credential. */
1901
+ status?: "ACTIVE" | "DISABLED" | "REVOKED" | "EXPIRED";
1902
+ /** Description of the service credential. */
1903
+ description?: string;
1904
+ /** Number of days until the service credential expires. */
1905
+ expirationDays?: number;
1906
+ /** Token expiration time in minutes. */
1907
+ tokenExpirationMinutes?: number;
1767
1908
  };
1768
- export type UpdateServiceCredentialScopesRequest = {
1769
- /** Service credential statements */
1770
- scopes: string[];
1909
+ export type ServiceCredentialGroupResponse = {
1910
+ /** Group Id */
1911
+ id: string;
1912
+ /** Group name */
1913
+ name: string;
1914
+ };
1915
+ export type PageResponseServiceCredentialGroupResponse = {
1916
+ /** Current page content */
1917
+ items?: ServiceCredentialGroupResponse[];
1918
+ /** Total elements found */
1919
+ totalElements: number;
1920
+ /** Current page number */
1921
+ page: number;
1922
+ /** Length of current page items */
1923
+ size: number;
1924
+ /** Total pages found */
1925
+ totalPages: number;
1926
+ };
1927
+ export type GroupsRequest = {
1928
+ /** Group Id's list */
1929
+ groups: string[];
1771
1930
  };
1772
1931
  export type DeleteMemberPermissionsRequest = {
1773
1932
  /** Permission Action */
@@ -1801,6 +1960,17 @@ export type UpdateGroupPermissionsRequest = {
1801
1960
  /** Slug from resource */
1802
1961
  resourceSlug: string;
1803
1962
  };
1963
+ export type RotateServiceCredentialSecretRequest = {
1964
+ /** Service credential secret */
1965
+ secret: string;
1966
+ };
1967
+ export type RotateServiceCredentialSecretResponse = {
1968
+ secret?: string;
1969
+ };
1970
+ export type UpdateServiceCredentialScopesRequest = {
1971
+ /** Service credential statements */
1972
+ scopes: string[];
1973
+ };
1804
1974
  export type ServiceCredentialAssociateGroupRequest = {
1805
1975
  /** Service credential groups ids */
1806
1976
  teams: string[];
@@ -1971,6 +2141,38 @@ export type AccountPartnerAdminDataUpdateRequest = {
1971
2141
  /** Admin email */
1972
2142
  email: string;
1973
2143
  };
2144
+ export type ResourceTypeActionResponse = {
2145
+ /** Unique identifier of the action. */
2146
+ id: string;
2147
+ /** Name of the action. */
2148
+ name: string;
2149
+ };
2150
+ export type ResourceTypeResponseV3 = {
2151
+ /** Unique identifier of the resource type. */
2152
+ id: string;
2153
+ /** Name of the resource type. */
2154
+ name: string;
2155
+ /** Slug of the resource type. */
2156
+ slug: string;
2157
+ /** Description of the resource type. */
2158
+ description: string;
2159
+ /** Creation date and time of the resource type. */
2160
+ createdAt: string;
2161
+ /** List of actions available for this resource type. */
2162
+ actions: ResourceTypeActionResponse[];
2163
+ };
2164
+ export type PageResponseResourceTypeResponseV3 = {
2165
+ /** Current page content */
2166
+ items?: ResourceTypeResponseV3[];
2167
+ /** Total elements found */
2168
+ totalElements: number;
2169
+ /** Current page number */
2170
+ page: number;
2171
+ /** Length of current page items */
2172
+ size: number;
2173
+ /** Total pages found */
2174
+ totalPages: number;
2175
+ };
1974
2176
  export type PageResponseGroupReadResponse = {
1975
2177
  /** Current page content */
1976
2178
  items?: GroupReadResponse[];
@@ -2081,13 +2283,6 @@ export type PageResponseGroupsFromResourceResponse = {
2081
2283
  /** Total pages found */
2082
2284
  totalPages: number;
2083
2285
  };
2084
- export type ResourceTypeResponse = {
2085
- id: string;
2086
- name: string;
2087
- slug: string;
2088
- description: string;
2089
- createdAt: string;
2090
- };
2091
2286
  export type PageResponseResourceTypeResponse = {
2092
2287
  /** Current page content */
2093
2288
  items?: ResourceTypeResponse[];
@@ -2239,7 +2434,7 @@ export type PageResponseResourceAssociationResponse = {
2239
2434
  };
2240
2435
  export type AccountScmProviderResponse = {
2241
2436
  /** SCM repository provider */
2242
- provider: "GITHUB" | "GITLAB" | "BITBUCKET" | "AZURE" | "GITLAB_ONPRM";
2437
+ provider: "GITHUB" | "GITLAB" | "BITBUCKET" | "AZURE" | "GITLAB_ONPRM" | "ITAU_BACKEND";
2243
2438
  };
2244
2439
  export type AccountScmStatusResponse = {
2245
2440
  /** Flag used to indicate if the SCM repository account credential configuration is mandated */
@@ -2250,17 +2445,6 @@ export type AccountScmStatusResponse = {
2250
2445
  export type RolePermissionResponse = {
2251
2446
  status?: boolean;
2252
2447
  };
2253
- export type ResourceDto = {
2254
- /** Unique identifier of the resource. */
2255
- id: string;
2256
- /** Name of the resource. */
2257
- name: string;
2258
- /** Slug version of the resource name. */
2259
- slug: string;
2260
- /** Optional description of the resource. */
2261
- description?: string;
2262
- "type"?: ResourceTypeDto;
2263
- };
2264
2448
  export type FeatureFlagsResponse = {
2265
2449
  /** The feature flag id */
2266
2450
  id: number;
@@ -2419,7 +2603,7 @@ export type DeleteResourceResponseV3 = {
2419
2603
  slug: string;
2420
2604
  /** Optional description of the resource. */
2421
2605
  description?: string;
2422
- "type"?: ResourceTypeDto;
2606
+ "type"?: ResourceTypeResponse;
2423
2607
  };
2424
2608
  export type PageDtoDeleteResourceResponseV3 = {
2425
2609
  items: DeleteResourceResponseV3[];
@@ -2428,6 +2612,43 @@ export type PageDtoDeleteResourceResponseV3 = {
2428
2612
  page: number;
2429
2613
  totalPages: number;
2430
2614
  };
2615
+ /**
2616
+ * Get service credential permissions
2617
+ */
2618
+ export declare function getPermissions({ id, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
2619
+ id: string;
2620
+ size?: any;
2621
+ page?: any;
2622
+ sort?: string;
2623
+ direction?: "ASC" | "DESC";
2624
+ search?: string;
2625
+ filterMode?: "MATCH" | "CONTAINS" | "IN";
2626
+ filterBy?: string;
2627
+ filterValue?: string;
2628
+ multiFilterMode?: string;
2629
+ filterIn?: any;
2630
+ }, opts?: Oazapfts.RequestOpts): Promise<PageResponseServiceCredentialPermissionResponse>;
2631
+ /**
2632
+ * Replace permission from service credential
2633
+ */
2634
+ export declare function replacePermissions({ id, serviceCredentialPermissionRequestV3 }: {
2635
+ id: string;
2636
+ serviceCredentialPermissionRequestV3: ServiceCredentialPermissionRequestV3;
2637
+ }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
2638
+ /**
2639
+ * Remove permission from service credential
2640
+ */
2641
+ export declare function removePermissions({ id, serviceCredentialPermissionRequestV3 }: {
2642
+ id: string;
2643
+ serviceCredentialPermissionRequestV3: ServiceCredentialPermissionRequestV3;
2644
+ }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
2645
+ /**
2646
+ * Add permissions to Service Credential
2647
+ */
2648
+ export declare function addPermission({ id, serviceCredentialPermissionRequestV3 }: {
2649
+ id: string;
2650
+ serviceCredentialPermissionRequestV3: ServiceCredentialPermissionRequestV3;
2651
+ }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
2431
2652
  /**
2432
2653
  * Retrieves a list of rate limit with the associated service credential.
2433
2654
  */
@@ -2539,6 +2760,22 @@ export declare function deleteSecret({ immediate, secretId }: {
2539
2760
  immediate?: boolean;
2540
2761
  secretId: string;
2541
2762
  }, opts?: Oazapfts.RequestOpts): Promise<never>;
2763
+ /**
2764
+ * Associate a secret with a resource
2765
+ */
2766
+ export declare function associateResource({ secretId, resourceSlug, resourceTypeSlug }: {
2767
+ secretId: string;
2768
+ resourceSlug: string;
2769
+ resourceTypeSlug: string;
2770
+ }, opts?: Oazapfts.RequestOpts): Promise<never>;
2771
+ /**
2772
+ * Disassociate a secret with a resource
2773
+ */
2774
+ export declare function disassociateResource({ secretId, resourceSlug, resourceTypeSlug }: {
2775
+ secretId: string;
2776
+ resourceSlug: string;
2777
+ resourceTypeSlug: string;
2778
+ }, opts?: Oazapfts.RequestOpts): Promise<never>;
2542
2779
  /**
2543
2780
  * Retrieves a specific scope by its ID for the current user's tenant and returns it.
2544
2781
  */
@@ -2618,6 +2855,14 @@ export declare function updateResourceActions({ roleId, resourceId, updateResour
2618
2855
  resourceId: string;
2619
2856
  updateResourceActionsRequest: UpdateResourceActionsRequest;
2620
2857
  }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
2858
+ /**
2859
+ * Update permission resource action
2860
+ */
2861
+ export declare function updatePermissionResourceAction({ permissionId, resourceId, updatePermissionResourceActionRequest }: {
2862
+ permissionId: string;
2863
+ resourceId: string;
2864
+ updatePermissionResourceActionRequest: UpdatePermissionResourceActionRequest;
2865
+ }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
2621
2866
  /**
2622
2867
  * Retrieves account member details by their unique identifier.
2623
2868
  */
@@ -2707,6 +2952,28 @@ export declare function deleteGroupMapping({ id, attributeImporterId }: {
2707
2952
  id: string;
2708
2953
  attributeImporterId: string;
2709
2954
  }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
2955
+ /**
2956
+ * TODO: Description
2957
+ */
2958
+ export declare function getAll({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn, status }: {
2959
+ size?: any;
2960
+ page?: any;
2961
+ sort?: string;
2962
+ direction?: "ASC" | "DESC";
2963
+ search?: string;
2964
+ filterMode?: "MATCH" | "CONTAINS" | "IN";
2965
+ filterBy?: string;
2966
+ filterValue?: string;
2967
+ multiFilterMode?: string;
2968
+ filterIn?: any;
2969
+ status?: string;
2970
+ }, opts?: Oazapfts.RequestOpts): Promise<PageResponseServiceCredentialResponseV3>;
2971
+ /**
2972
+ * Create a new Service Credential
2973
+ */
2974
+ export declare function create({ serviceCredentialCreateRequestV3 }: {
2975
+ serviceCredentialCreateRequestV3: ServiceCredentialCreateRequestV3;
2976
+ }, opts?: Oazapfts.RequestOpts): Promise<ServiceCredentialIdResponseV3>;
2710
2977
  /**
2711
2978
  * Retrieves a list of service credentials associated with the current user
2712
2979
  */
@@ -2787,7 +3054,7 @@ export declare function getFeatures1(opts?: Oazapfts.RequestOpts): Promise<Featu
2787
3054
  /**
2788
3055
  * Creates a new Feature Flag and returns its unique identifier.
2789
3056
  */
2790
- export declare function create({ createFeatureFlagRequest }: {
3057
+ export declare function create1({ createFeatureFlagRequest }: {
2791
3058
  createFeatureFlagRequest: CreateFeatureFlagRequest;
2792
3059
  }, opts?: Oazapfts.RequestOpts): Promise<CreateFeatureFlagsResponse>;
2793
3060
  /**
@@ -2862,22 +3129,6 @@ export declare function findSecrets({ size, page, sort, direction, search, filte
2862
3129
  export declare function createSecret({ createSecretRequest }: {
2863
3130
  createSecretRequest: CreateSecretRequest;
2864
3131
  }, opts?: Oazapfts.RequestOpts): Promise<SecretResponse>;
2865
- /**
2866
- * Associate a secret with a resource
2867
- */
2868
- export declare function associateResource({ secretId, resourceSlug, resourceTypeSlug }: {
2869
- secretId: string;
2870
- resourceSlug: string;
2871
- resourceTypeSlug: string;
2872
- }, opts?: Oazapfts.RequestOpts): Promise<never>;
2873
- /**
2874
- * Disassociate a secret with a resource
2875
- */
2876
- export declare function disassociateResource({ secretId, resourceSlug, resourceTypeSlug }: {
2877
- secretId: string;
2878
- resourceSlug: string;
2879
- resourceTypeSlug: string;
2880
- }, opts?: Oazapfts.RequestOpts): Promise<never>;
2881
3132
  /**
2882
3133
  * Check if user has access to secret
2883
3134
  */
@@ -3387,7 +3638,7 @@ export declare function getAccounts({ size, page, sort, direction, search, filte
3387
3638
  /**
3388
3639
  * Creates a new account order and returns the associated account ID.
3389
3640
  */
3390
- export declare function create1({ createAccountOrderRequest }: {
3641
+ export declare function create2({ createAccountOrderRequest }: {
3391
3642
  createAccountOrderRequest: CreateAccountOrderRequest;
3392
3643
  }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
3393
3644
  /**
@@ -3456,7 +3707,7 @@ export declare function validateNewPartnerData({ validateAccountPartnerDataReque
3456
3707
  /**
3457
3708
  * Removes privileges to group's default role.
3458
3709
  */
3459
- export declare function removePermissions({ groupId, body }: {
3710
+ export declare function removePermissions1({ groupId, body }: {
3460
3711
  groupId: string;
3461
3712
  body: RemovePrivilegeToGroupRequest[];
3462
3713
  }, opts?: Oazapfts.RequestOpts): Promise<never>;
@@ -3467,6 +3718,83 @@ export declare function addPrivilegesToGroup({ groupId, body }: {
3467
3718
  groupId: string;
3468
3719
  body: AddPrivilegeToGroupRequest[];
3469
3720
  }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
3721
+ /**
3722
+ * TODO: Description
3723
+ */
3724
+ export declare function getById2({ id }: {
3725
+ id: string;
3726
+ }, opts?: Oazapfts.RequestOpts): Promise<ServiceCredentialResponseV3>;
3727
+ /**
3728
+ * Revoke Service Credential
3729
+ */
3730
+ export declare function revoke({ id }: {
3731
+ id: string;
3732
+ }, opts?: Oazapfts.RequestOpts): Promise<ErrorResponse>;
3733
+ /**
3734
+ * Updates Service Credential Metadata
3735
+ */
3736
+ export declare function updateMetadata({ id, serviceCredentialUpdateRequestV3 }: {
3737
+ id: string;
3738
+ serviceCredentialUpdateRequestV3: ServiceCredentialUpdateRequestV3;
3739
+ }, opts?: Oazapfts.RequestOpts): Promise<ServiceCredentialUpdateResponseV3>;
3740
+ /**
3741
+ * Get service credential groups
3742
+ */
3743
+ export declare function getGroups1({ id, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
3744
+ id: string;
3745
+ size?: any;
3746
+ page?: any;
3747
+ sort?: string;
3748
+ direction?: "ASC" | "DESC";
3749
+ search?: string;
3750
+ filterMode?: "MATCH" | "CONTAINS" | "IN";
3751
+ filterBy?: string;
3752
+ filterValue?: string;
3753
+ multiFilterMode?: string;
3754
+ filterIn?: any;
3755
+ }, opts?: Oazapfts.RequestOpts): Promise<PageResponseServiceCredentialGroupResponse>;
3756
+ /**
3757
+ * Remove Group(s) from Service Credential
3758
+ */
3759
+ export declare function removeGroup({ id, groupsRequest }: {
3760
+ id: string;
3761
+ groupsRequest: GroupsRequest;
3762
+ }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
3763
+ /**
3764
+ * Add group to service credential
3765
+ */
3766
+ export declare function addGroup({ id, groupsRequest }: {
3767
+ id: string;
3768
+ groupsRequest: GroupsRequest;
3769
+ }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
3770
+ /**
3771
+ * Delete a member permissions
3772
+ */
3773
+ export declare function deleteMemberPermissions({ memberId, body }: {
3774
+ memberId: string;
3775
+ body: DeleteMemberPermissionsRequest[];
3776
+ }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
3777
+ /**
3778
+ * Update a member's permissions by assigning resources and actions, creating a default role if necessary.
3779
+ */
3780
+ export declare function updateMemberPermissions({ memberId, body }: {
3781
+ memberId: string;
3782
+ body: UpdateMemberPermissionsRequest[];
3783
+ }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
3784
+ /**
3785
+ * Delete Group permissions
3786
+ */
3787
+ export declare function deleteGroupPermissions({ groupId, body }: {
3788
+ groupId: string;
3789
+ body: DeleteGroupPermissionsRequest[];
3790
+ }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
3791
+ /**
3792
+ * Update a group's permissions by assigning resources and actions
3793
+ */
3794
+ export declare function addGroupPermissions({ groupId, body }: {
3795
+ groupId: string;
3796
+ body: UpdateGroupPermissionsRequest[];
3797
+ }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
3470
3798
  /**
3471
3799
  * Rotates the secret of a service credential.
3472
3800
  */
@@ -3488,23 +3816,23 @@ export declare function revokeServiceCredential({ id }: {
3488
3816
  id: string;
3489
3817
  }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
3490
3818
  /**
3491
- * Delete a member permissions
3819
+ * Delete a member permission of the entire resources if any action matches with existing permission.
3492
3820
  */
3493
- export declare function deleteMemberPermissions({ memberId, body }: {
3821
+ export declare function deleteMemberPermissions1({ memberId, body }: {
3494
3822
  memberId: string;
3495
3823
  body: DeleteMemberPermissionsRequest[];
3496
3824
  }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
3497
3825
  /**
3498
- * Update a member's permissions by assigning resources and actions, creating a default role if necessary.
3826
+ * Update a member's permissions by assigning resources and REPLACING actions, creating a default role if necessary.
3499
3827
  */
3500
- export declare function updateMemberPermissions({ memberId, body }: {
3828
+ export declare function updateMemberPermissions1({ memberId, body }: {
3501
3829
  memberId: string;
3502
3830
  body: UpdateMemberPermissionsRequest[];
3503
3831
  }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
3504
3832
  /**
3505
- * Delete Group permissions
3833
+ * Delete a group permission of the entire resources if any action matches with existing permission.
3506
3834
  */
3507
- export declare function deleteGroupPermissions({ groupId, body }: {
3835
+ export declare function deleteGroupPermissions1({ groupId, body }: {
3508
3836
  groupId: string;
3509
3837
  body: DeleteGroupPermissionsRequest[];
3510
3838
  }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
@@ -3618,16 +3946,16 @@ export declare function updateMemberPreferences({ memberId, updateMemberPreferen
3618
3946
  updateMemberPreferencesRequest: UpdateMemberPreferencesRequest;
3619
3947
  }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
3620
3948
  /**
3621
- * Deletes specific permissions from a member's role.
3949
+ * Delete a member permission of the entire resources if any action matches with existing permission.
3622
3950
  */
3623
- export declare function deleteMemberPermissions1({ memberId, deleteMemberPermissionsRequest }: {
3951
+ export declare function deleteMemberPermissions2({ memberId, deleteMemberPermissionsRequest }: {
3624
3952
  memberId: string;
3625
3953
  deleteMemberPermissionsRequest: DeleteMemberPermissionsRequest;
3626
3954
  }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
3627
3955
  /**
3628
- * Update a member's permissions by assigning resources and actions, creating a default role if necessary.
3956
+ * Update a member's permissions by assigning resources and REPLACING actions, creating a default role if necessary.
3629
3957
  */
3630
- export declare function updateMemberPermissions1({ memberId, updateMemberPermissionsRequest }: {
3958
+ export declare function updateMemberPermissions2({ memberId, updateMemberPermissionsRequest }: {
3631
3959
  memberId: string;
3632
3960
  updateMemberPermissionsRequest: UpdateMemberPermissionsRequest;
3633
3961
  }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
@@ -3679,9 +4007,9 @@ export declare function update1({ groupId, updateGroupRequest }: {
3679
4007
  updateGroupRequest: UpdateGroupRequest;
3680
4008
  }, opts?: Oazapfts.RequestOpts): Promise<IamIdResponse>;
3681
4009
  /**
3682
- * Delete Group permissions
4010
+ * Delete a group permission of the entire resources if any action matches with existing permission.
3683
4011
  */
3684
- export declare function deleteGroupPermissions1({ groupId, deleteGroupPermissionsRequest }: {
4012
+ export declare function deleteGroupPermissions2({ groupId, deleteGroupPermissionsRequest }: {
3685
4013
  groupId: string;
3686
4014
  deleteGroupPermissionsRequest: DeleteGroupPermissionsRequest;
3687
4015
  }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
@@ -3785,6 +4113,21 @@ export declare function updatePartnerAccountAdminData({ id, accountPartnerAdminD
3785
4113
  id: string;
3786
4114
  accountPartnerAdminDataUpdateRequest: AccountPartnerAdminDataUpdateRequest;
3787
4115
  }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
4116
+ /**
4117
+ * Get Resource Types
4118
+ */
4119
+ export declare function getResourceTypes({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
4120
+ size?: any;
4121
+ page?: any;
4122
+ sort?: string;
4123
+ direction?: "ASC" | "DESC";
4124
+ search?: string;
4125
+ filterMode?: "MATCH" | "CONTAINS" | "IN";
4126
+ filterBy?: string;
4127
+ filterValue?: string;
4128
+ multiFilterMode?: string;
4129
+ filterIn?: any;
4130
+ }, opts?: Oazapfts.RequestOpts): Promise<PageResponseResourceTypeResponseV3>;
3788
4131
  /**
3789
4132
  * Retrieves a list of SCM credentials associated with the current user's account, including secret names and provider details.
3790
4133
  */
@@ -3901,7 +4244,7 @@ export declare function getResourceGroups({ resourceId, size, page, sort, direct
3901
4244
  /**
3902
4245
  * Get Resource Types
3903
4246
  */
3904
- export declare function getResourceTypes({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
4247
+ export declare function getResourceTypes1({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
3905
4248
  size?: any;
3906
4249
  page?: any;
3907
4250
  sort?: string;
@@ -3963,7 +4306,7 @@ export declare function getMemberGroups1({ memberId, size, page, sort, direction
3963
4306
  /**
3964
4307
  * Get Groups
3965
4308
  */
3966
- export declare function getGroups1({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn, includeDefaultGroup }: {
4309
+ export declare function getGroups2({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn, includeDefaultGroup }: {
3967
4310
  size?: any;
3968
4311
  page?: any;
3969
4312
  sort?: string;
@@ -4159,7 +4502,7 @@ export declare function getResourceGroups1({ resourceId, size, page, sort, direc
4159
4502
  /**
4160
4503
  * Get Resource Types
4161
4504
  */
4162
- export declare function getResourceTypes1({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
4505
+ export declare function getResourceTypes2({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
4163
4506
  size?: any;
4164
4507
  page?: any;
4165
4508
  sort?: string;
@@ -4185,7 +4528,7 @@ export declare function getAccess({ resourceType, resource, action, attribute }:
4185
4528
  */
4186
4529
  export declare function getResources2({ memberId }: {
4187
4530
  memberId: string;
4188
- }, opts?: Oazapfts.RequestOpts): Promise<ResourceDto[]>;
4531
+ }, opts?: Oazapfts.RequestOpts): Promise<ResourceResponse[]>;
4189
4532
  /**
4190
4533
  * Get member favorite resources by type
4191
4534
  */