@stack-spot/portal-network 0.203.0 → 0.204.0-beta.1

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.
Files changed (141) hide show
  1. package/CHANGELOG.md +259 -0
  2. package/dist/api/account.d.ts +344 -91
  3. package/dist/api/account.d.ts.map +1 -1
  4. package/dist/api/account.js +203 -46
  5. package/dist/api/account.js.map +1 -1
  6. package/dist/api/accountAssetManager.d.ts +309 -0
  7. package/dist/api/accountAssetManager.d.ts.map +1 -0
  8. package/dist/api/accountAssetManager.js +169 -0
  9. package/dist/api/accountAssetManager.js.map +1 -0
  10. package/dist/api/agent-tools.d.ts +623 -141
  11. package/dist/api/agent-tools.d.ts.map +1 -1
  12. package/dist/api/agent-tools.js +168 -45
  13. package/dist/api/agent-tools.js.map +1 -1
  14. package/dist/api/ai.d.ts +135 -24
  15. package/dist/api/ai.d.ts.map +1 -1
  16. package/dist/api/ai.js +79 -26
  17. package/dist/api/ai.js.map +1 -1
  18. package/dist/api/codeShift.d.ts +140 -10
  19. package/dist/api/codeShift.d.ts.map +1 -1
  20. package/dist/api/codeShift.js +73 -6
  21. package/dist/api/codeShift.js.map +1 -1
  22. package/dist/api/discover.d.ts +9 -6
  23. package/dist/api/discover.d.ts.map +1 -1
  24. package/dist/api/discover.js +5 -5
  25. package/dist/api/discover.js.map +1 -1
  26. package/dist/api/edpBfa.d.ts +215 -0
  27. package/dist/api/edpBfa.d.ts.map +1 -0
  28. package/dist/api/edpBfa.js +87 -0
  29. package/dist/api/edpBfa.js.map +1 -0
  30. package/dist/api/genAiInference.d.ts +49 -2
  31. package/dist/api/genAiInference.d.ts.map +1 -1
  32. package/dist/api/genAiInference.js +55 -2
  33. package/dist/api/genAiInference.js.map +1 -1
  34. package/dist/api/workspace-ai.d.ts +41 -0
  35. package/dist/api/workspace-ai.d.ts.map +1 -1
  36. package/dist/api/workspace-ai.js +34 -0
  37. package/dist/api/workspace-ai.js.map +1 -1
  38. package/dist/api-addresses.d.ts +13 -20
  39. package/dist/api-addresses.d.ts.map +1 -1
  40. package/dist/api-addresses.js +60 -17
  41. package/dist/api-addresses.js.map +1 -1
  42. package/dist/apis-itau.json +16 -0
  43. package/dist/apis.json +16 -0
  44. package/dist/client/account-asset-manager.d.ts +112 -0
  45. package/dist/client/account-asset-manager.d.ts.map +1 -0
  46. package/dist/client/account-asset-manager.js +160 -0
  47. package/dist/client/account-asset-manager.js.map +1 -0
  48. package/dist/client/account.d.ts +11 -9
  49. package/dist/client/account.d.ts.map +1 -1
  50. package/dist/client/account.js +11 -8
  51. package/dist/client/account.js.map +1 -1
  52. package/dist/client/agent-tools.d.ts +122 -3
  53. package/dist/client/agent-tools.d.ts.map +1 -1
  54. package/dist/client/agent-tools.js +105 -10
  55. package/dist/client/agent-tools.js.map +1 -1
  56. package/dist/client/ai.d.ts +149 -4
  57. package/dist/client/ai.d.ts.map +1 -1
  58. package/dist/client/ai.js +93 -208
  59. package/dist/client/ai.js.map +1 -1
  60. package/dist/client/code-shift.d.ts +54 -3
  61. package/dist/client/code-shift.d.ts.map +1 -1
  62. package/dist/client/code-shift.js +46 -1
  63. package/dist/client/code-shift.js.map +1 -1
  64. package/dist/client/data-integration.d.ts.map +1 -1
  65. package/dist/client/data-integration.js +8 -1
  66. package/dist/client/data-integration.js.map +1 -1
  67. package/dist/client/discover.d.ts +3 -3
  68. package/dist/client/discover.d.ts.map +1 -1
  69. package/dist/client/discover.js +4 -3
  70. package/dist/client/discover.js.map +1 -1
  71. package/dist/client/edp-bfa.d.ts +16 -0
  72. package/dist/client/edp-bfa.d.ts.map +1 -0
  73. package/dist/client/edp-bfa.js +24 -0
  74. package/dist/client/edp-bfa.js.map +1 -0
  75. package/dist/client/gen-ai-inference.d.ts +4 -0
  76. package/dist/client/gen-ai-inference.d.ts.map +1 -1
  77. package/dist/client/gen-ai-inference.js +267 -0
  78. package/dist/client/gen-ai-inference.js.map +1 -1
  79. package/dist/client/notification.d.ts +7 -0
  80. package/dist/client/notification.d.ts.map +1 -1
  81. package/dist/client/notification.js +10 -1
  82. package/dist/client/notification.js.map +1 -1
  83. package/dist/client/types.d.ts +24 -17
  84. package/dist/client/types.d.ts.map +1 -1
  85. package/dist/client/workspace-ai.d.ts +13 -3
  86. package/dist/client/workspace-ai.d.ts.map +1 -1
  87. package/dist/client/workspace-ai.js +17 -3
  88. package/dist/client/workspace-ai.js.map +1 -1
  89. package/dist/client/workspace-manager.d.ts +24 -0
  90. package/dist/client/workspace-manager.d.ts.map +1 -1
  91. package/dist/client/workspace-manager.js +28 -1
  92. package/dist/client/workspace-manager.js.map +1 -1
  93. package/dist/error/dictionary/accountAssetManager.d.ts +11 -0
  94. package/dist/error/dictionary/accountAssetManager.d.ts.map +1 -0
  95. package/dist/error/dictionary/accountAssetManager.js +11 -0
  96. package/dist/error/dictionary/accountAssetManager.js.map +1 -0
  97. package/dist/index.d.ts +3 -1
  98. package/dist/index.d.ts.map +1 -1
  99. package/dist/index.js +3 -1
  100. package/dist/index.js.map +1 -1
  101. package/dist/network/NetworkClient.d.ts.map +1 -1
  102. package/dist/network/NetworkClient.js +12 -2
  103. package/dist/network/NetworkClient.js.map +1 -1
  104. package/dist/network/types.d.ts +1 -0
  105. package/dist/network/types.d.ts.map +1 -1
  106. package/dist/utils/StreamedJson.d.ts +9 -1
  107. package/dist/utils/StreamedJson.d.ts.map +1 -1
  108. package/dist/utils/StreamedJson.js +22 -2
  109. package/dist/utils/StreamedJson.js.map +1 -1
  110. package/package.json +2 -2
  111. package/readme.md +39 -1
  112. package/src/api/account.ts +592 -165
  113. package/src/api/accountAssetManager.ts +771 -0
  114. package/src/api/agent-tools.ts +824 -188
  115. package/src/api/ai.ts +206 -38
  116. package/src/api/codeShift.ts +246 -13
  117. package/src/api/discover.ts +10 -10
  118. package/src/api/edpBfa.ts +472 -0
  119. package/src/api/genAiInference.ts +119 -3
  120. package/src/api/workspace-ai.ts +83 -0
  121. package/src/api-addresses.ts +93 -37
  122. package/src/apis-itau.json +16 -0
  123. package/src/apis.json +16 -0
  124. package/src/client/account-asset-manager.ts +100 -0
  125. package/src/client/account.ts +11 -7
  126. package/src/client/agent-tools.ts +69 -16
  127. package/src/client/ai.ts +60 -213
  128. package/src/client/code-shift.ts +29 -0
  129. package/src/client/data-integration.ts +9 -2
  130. package/src/client/discover.ts +8 -7
  131. package/src/client/edp-bfa.ts +24 -0
  132. package/src/client/gen-ai-inference.ts +281 -0
  133. package/src/client/notification.ts +6 -1
  134. package/src/client/types.ts +26 -17
  135. package/src/client/workspace-ai.ts +21 -6
  136. package/src/client/workspace-manager.ts +18 -0
  137. package/src/error/dictionary/accountAssetManager.ts +12 -0
  138. package/src/index.ts +4 -1
  139. package/src/network/NetworkClient.ts +13 -4
  140. package/src/network/types.ts +1 -0
  141. package/src/utils/StreamedJson.tsx +19 -2
@@ -163,6 +163,8 @@ export type UserScmInfoResponse = {
163
163
  secretName: string;
164
164
  /** Provider type */
165
165
  provider: "GITHUB" | "GITLAB" | "BITBUCKET" | "AZURE" | "GITLAB_ONPRM";
166
+ /** User email */
167
+ email: string;
166
168
  };
167
169
  export type UserScmInfoRequest = {
168
170
  /** Repository Username */
@@ -283,21 +285,21 @@ export type AccountScmInfoResponse = {
283
285
  export type Value = object;
284
286
  export type Basic = Value & {
285
287
  /** PAT repository Username */
286
- user?: string;
288
+ user: string;
287
289
  /** PAT repository password */
288
- pass?: string;
290
+ pass: string;
289
291
  };
290
292
  export type GithubApp = Value & {
291
293
  /** GithubApp App Id */
292
- appId?: string;
294
+ appId: string;
293
295
  /** GithubApp Client Id */
294
- clientId?: string;
296
+ clientId: string;
295
297
  /** GithubApp Client Secret */
296
- clientSecret?: string;
298
+ clientSecret: string;
297
299
  /** GithubApp Installer Id */
298
- installationId?: string;
300
+ installationId: string;
299
301
  /** GithubApp private key */
300
- privateKey?: string;
302
+ privateKey: string;
301
303
  };
302
304
  export type AccountScmInfoUpdateRequest = {
303
305
  /** SCM Type */
@@ -405,8 +407,6 @@ export type AccountMemberStackspotIamDto = {
405
407
  export type UpdateUserRequest = {
406
408
  /** User username */
407
409
  username?: string;
408
- /** User email */
409
- email?: string;
410
410
  /** User first name */
411
411
  firstName?: string;
412
412
  /** User last name */
@@ -454,14 +454,14 @@ export type UpdatePasswordRequest = {
454
454
  /** New password */
455
455
  password: string;
456
456
  };
457
- export type UpdateSalesRepresentativesRequest = {
458
- /** List of emails from sales representatives responsible for the account. */
459
- salesRepresentatives: string[];
460
- };
461
457
  export type AccountStatusRequest = {
462
458
  /** Account enabled */
463
459
  enabled: boolean;
464
460
  };
461
+ export type UpdateSalesRepresentativesRequest = {
462
+ /** List of emails from sales representatives responsible for the account. */
463
+ salesRepresentatives: string[];
464
+ };
465
465
  export type AttributeImporter = {
466
466
  /** External user attribute */
467
467
  externalUserAttribute?: string;
@@ -645,6 +645,66 @@ export type ServiceCredentialCreateResponseV2 = {
645
645
  /** Account tenant */
646
646
  tenant: string;
647
647
  };
648
+ export type ResourceTypeDto = {
649
+ /** Id of resource type. */
650
+ id: string;
651
+ /** Name of resource type. */
652
+ name: string;
653
+ /** Slug of resource type. */
654
+ slug: string;
655
+ /** Description of resource type. */
656
+ description: string;
657
+ /** Creation date of resource type. */
658
+ createdAt: string;
659
+ };
660
+ export type ResourceResponse = {
661
+ /** Id of resource. */
662
+ id: string;
663
+ /** Name of resource. */
664
+ name: string;
665
+ /** Description of resource. */
666
+ description?: string;
667
+ "type"?: ResourceTypeDto;
668
+ /** Name of resource. */
669
+ slug: string;
670
+ };
671
+ export type PageResponseResourceResponse = {
672
+ /** Current page content */
673
+ items?: ResourceResponse[];
674
+ /** Total elements found */
675
+ totalElements: number;
676
+ /** Current page number */
677
+ page: number;
678
+ /** Length of current page items */
679
+ size: number;
680
+ /** Total pages found */
681
+ totalPages: number;
682
+ };
683
+ export type ResourceTypeRequest = {
684
+ id?: string;
685
+ slug?: string;
686
+ };
687
+ export type CreateResourceV2Request = {
688
+ /** Resource name */
689
+ name: string;
690
+ /** Resource slug */
691
+ slug: string;
692
+ "type": ResourceTypeRequest;
693
+ /** Resource description */
694
+ description: string;
695
+ /** Resource Parent ID */
696
+ parentId?: string;
697
+ };
698
+ export type IdResponse = {
699
+ /** Id response. */
700
+ id: string;
701
+ };
702
+ export type AddResourceToGroupBySlugAndTypeRequest = {
703
+ /** Resource slug. */
704
+ slug: string;
705
+ /** Resource Type. */
706
+ "type": string;
707
+ };
648
708
  export type FeatureFlagPageRequest = {
649
709
  size?: number;
650
710
  page: number;
@@ -933,10 +993,6 @@ export type CreateAccountRoleRequest = {
933
993
  /** Account Role description */
934
994
  description?: string;
935
995
  };
936
- export type IdResponse = {
937
- /** Id response. */
938
- id: string;
939
- };
940
996
  export type RoleMemberResponse = {
941
997
  /** Member ID */
942
998
  id: string;
@@ -972,29 +1028,6 @@ export type RoleGroupIdsRequest = {
972
1028
  /** List of group IDs to be bound to the role. */
973
1029
  ids: string[];
974
1030
  };
975
- export type ResourceTypeDto = {
976
- /** Id of resource type. */
977
- id: string;
978
- /** Name of resource type. */
979
- name: string;
980
- /** Slug of resource type. */
981
- slug: string;
982
- /** Description of resource type. */
983
- description: string;
984
- /** Creation date of resource type. */
985
- createdAt: string;
986
- };
987
- export type ResourceResponse = {
988
- /** Id of resource. */
989
- id: string;
990
- /** Name of resource. */
991
- name: string;
992
- /** Description of resource. */
993
- description?: string;
994
- "type"?: ResourceTypeDto;
995
- /** Name of resource. */
996
- slug: string;
997
- };
998
1031
  export type CreateResourceRequest = {
999
1032
  /** Account resource name */
1000
1033
  name: string;
@@ -1005,6 +1038,46 @@ export type CreateResourceRequest = {
1005
1038
  /** Account resource description */
1006
1039
  description?: string;
1007
1040
  };
1041
+ export type ResourceReviewAnswerDto = {
1042
+ id: string;
1043
+ memberId: string;
1044
+ comment: string;
1045
+ createdAt: string;
1046
+ updatedAt?: string;
1047
+ };
1048
+ export type ViewResourceReviewResponse = {
1049
+ id: string;
1050
+ memberId: string;
1051
+ rating: number;
1052
+ comment?: string;
1053
+ resourceType: string;
1054
+ resourceSlug: string;
1055
+ createdAt: string;
1056
+ updatedAt?: string;
1057
+ reviewAnswers?: ResourceReviewAnswerDto[];
1058
+ };
1059
+ export type PageResponseViewResourceReviewResponse = {
1060
+ /** Current page content */
1061
+ items?: ViewResourceReviewResponse[];
1062
+ /** Total elements found */
1063
+ totalElements: number;
1064
+ /** Current page number */
1065
+ page: number;
1066
+ /** Length of current page items */
1067
+ size: number;
1068
+ /** Total pages found */
1069
+ totalPages: number;
1070
+ };
1071
+ export type CreateResourceReviewRequest = {
1072
+ /** Evaluation grade, represented by an integer between 1 and 5. */
1073
+ rating: number;
1074
+ /** Evaluation comment */
1075
+ comment?: string;
1076
+ };
1077
+ export type CreateReviewAnswerRequest = {
1078
+ /** Comment of the review. */
1079
+ answer: string;
1080
+ };
1008
1081
  export type AccountMemberResponse = {
1009
1082
  /** Account member id */
1010
1083
  id: string;
@@ -1516,6 +1589,14 @@ export type AccountTrialCreateRequest = {
1516
1589
  reachedBy?: ("GOOGLE_SEARCH" | "REFERRAL" | "SOCIAL_MEDIA" | "ONLINE_AD" | "EVENT_CONFERENCE" | "EMAIL_CAMPAIGN" | "FRIEND_COLLEAGUE" | "BLOG_ARTICLE" | "YOUTUBE_VIDEO_CONTENT" | "ZUP_OFFICIAL_CHANNELS" | "OTHER")[];
1517
1590
  /** The custom channel used for the trial user to reach Stackspot */
1518
1591
  customReachedBy?: string;
1592
+ /** Identify the source of the access (LinkedIn, Facebook, Instagram, etc.) */
1593
+ utmSource?: string;
1594
+ /** Identifies the campaign medium */
1595
+ utmMedium?: string;
1596
+ /** Identifies the campaign name, specific promotion, or slogan. */
1597
+ utmCampaign?: string;
1598
+ /** Identifies the paid term in paid search campaigns (keyword). */
1599
+ utmTerm?: string;
1519
1600
  };
1520
1601
  export type PersonalAccountExpirationDataResponse = {
1521
1602
  /** Account id */
@@ -1645,6 +1726,43 @@ export type ValidateAccountPartnerDataRequest = {
1645
1726
  /** Email domains list that account users will use to login into StackSpot. Example: zup.com.br */
1646
1727
  domains?: string[];
1647
1728
  };
1729
+ export type PrivilegeResourceTypeIdentificationRequest = {
1730
+ /** Slug of the resource type. */
1731
+ slug?: string;
1732
+ /** ID of the resource type. */
1733
+ id?: string;
1734
+ };
1735
+ export type PrivilegeResourceIdentificationRequest = {
1736
+ "type": PrivilegeResourceTypeIdentificationRequest;
1737
+ /** Slug of the resource. */
1738
+ slug: string;
1739
+ };
1740
+ export type PrivilegeActionIdentificationRequest = {
1741
+ /** ID of the action. */
1742
+ id?: string;
1743
+ /** Slug of the action. */
1744
+ slug?: string;
1745
+ };
1746
+ export type RemovePrivilegeToGroupRequest = {
1747
+ /** List of resources to which the privilege applies. */
1748
+ resources: PrivilegeResourceIdentificationRequest[];
1749
+ /** List of resource types to which the privilege applies. */
1750
+ resource_types: PrivilegeResourceTypeIdentificationRequest[];
1751
+ /** List of actions to which the privilege applies. */
1752
+ actions: PrivilegeActionIdentificationRequest[];
1753
+ /** Whether the privilege is inheritable by child resources. */
1754
+ inheritable: boolean;
1755
+ };
1756
+ export type AddPrivilegeToGroupRequest = {
1757
+ /** List of resources to which the privilege applies. */
1758
+ resources: PrivilegeResourceIdentificationRequest[];
1759
+ /** List of resource types to which the privilege applies. */
1760
+ resource_types: PrivilegeResourceTypeIdentificationRequest[];
1761
+ /** List of actions to which the privilege applies. */
1762
+ actions: PrivilegeActionIdentificationRequest[];
1763
+ /** Whether the privilege is inheritable by child resources. */
1764
+ inheritable: boolean;
1765
+ };
1648
1766
  export type RotateServiceCredentialSecretRequest = {
1649
1767
  /** Service credential secret */
1650
1768
  secret: string;
@@ -1692,6 +1810,16 @@ export type ServiceCredentialAssociateGroupRequest = {
1692
1810
  /** Service credential groups ids */
1693
1811
  teams: string[];
1694
1812
  };
1813
+ export type UpdateResourceReviewRequest = {
1814
+ /** Evaluation grade, represented by an integer between 1 and 5. */
1815
+ rating?: number;
1816
+ /** Evaluation comment */
1817
+ comment?: string;
1818
+ };
1819
+ export type UpdateReviewAnswerRequest = {
1820
+ /** Comment of the review. */
1821
+ answer: string;
1822
+ };
1695
1823
  export type ReadPreferencesResponse = {
1696
1824
  /** Dashboard widgets preferences */
1697
1825
  dashboardWidgets?: string[];
@@ -1908,18 +2036,6 @@ export type PageResponseRoleGroupResponse = {
1908
2036
  /** Total pages found */
1909
2037
  totalPages: number;
1910
2038
  };
1911
- export type PageResponseResourceResponse = {
1912
- /** Current page content */
1913
- items?: ResourceResponse[];
1914
- /** Total elements found */
1915
- totalElements: number;
1916
- /** Current page number */
1917
- page: number;
1918
- /** Length of current page items */
1919
- size: number;
1920
- /** Total pages found */
1921
- totalPages: number;
1922
- };
1923
2039
  export type MembersFromResourceResponse = {
1924
2040
  /** Member ID */
1925
2041
  id: string;
@@ -2237,7 +2353,7 @@ export type PersonalAccountDetailsResponse = {
2237
2353
  /** Custom position of the account owner in the company, if not listed. */
2238
2354
  otherPosition?: string | null;
2239
2355
  /** How the account owner was reached. */
2240
- reachedBy?: (("GOOGLE_SEARCH" | "REFERRAL" | "SOCIAL_MEDIA" | "ONLINE_AD" | "EVENT_CONFERENCE" | "EMAIL_CAMPAIGN" | "FRIEND_COLLEAGUE" | "BLOG_ARTICLE" | "YOUTUBE_VIDEO_CONTENT" | "ZUP_OFFICIAL_CHANNELS" | "OTHER") | null)[] | null;
2356
+ reachedBy?: ("GOOGLE_SEARCH" | "REFERRAL" | "SOCIAL_MEDIA" | "ONLINE_AD" | "EVENT_CONFERENCE" | "EMAIL_CAMPAIGN" | "FRIEND_COLLEAGUE" | "BLOG_ARTICLE" | "YOUTUBE_VIDEO_CONTENT" | "ZUP_OFFICIAL_CHANNELS" | "OTHER")[] | null;
2241
2357
  /** Custom description of how the account owner was reached, if not listed. */
2242
2358
  customReachedBy?: string | null;
2243
2359
  };
@@ -2288,6 +2404,35 @@ export type AccountPartnerResponse = {
2288
2404
  /** Account current status */
2289
2405
  isActive: boolean;
2290
2406
  };
2407
+ export type ResourceTypeIdentifierRequest = {
2408
+ /** Slug of the resource type. */
2409
+ slug?: string;
2410
+ /** ID of the resource type. */
2411
+ id?: string;
2412
+ };
2413
+ export type DeleteResourceRequestV3 = {
2414
+ "type": ResourceTypeIdentifierRequest;
2415
+ /** Slug of the resource to be deleted */
2416
+ slug: string;
2417
+ };
2418
+ export type DeleteResourceResponseV3 = {
2419
+ /** Unique identifier of the resource. */
2420
+ id: string;
2421
+ /** Name of the resource. */
2422
+ name: string;
2423
+ /** Slug version of the resource name. */
2424
+ slug: string;
2425
+ /** Optional description of the resource. */
2426
+ description?: string;
2427
+ "type"?: ResourceTypeDto;
2428
+ };
2429
+ export type PageDtoDeleteResourceResponseV3 = {
2430
+ items: DeleteResourceResponseV3[];
2431
+ size: number;
2432
+ totalElements: number;
2433
+ page: number;
2434
+ totalPages: number;
2435
+ };
2291
2436
  /**
2292
2437
  * Retrieves a list of rate limit with the associated service credential.
2293
2438
  */
@@ -2996,6 +3141,32 @@ export function updateUserPassword({ memberId, updatePasswordRequest }: {
2996
3141
  body: updatePasswordRequest
2997
3142
  })));
2998
3143
  }
3144
+ /**
3145
+ * Updates an account status based on the provided account ID.
3146
+ */
3147
+ export function updateAccountStatus({ accountId, accountStatusRequest }: {
3148
+ accountId: string;
3149
+ accountStatusRequest: AccountStatusRequest;
3150
+ }, opts?: Oazapfts.RequestOpts) {
3151
+ return oazapfts.ok(oazapfts.fetchJson<{
3152
+ status: 200;
3153
+ } | {
3154
+ status: 204;
3155
+ } | {
3156
+ status: 400;
3157
+ data: ErrorResponse;
3158
+ } | {
3159
+ status: 404;
3160
+ data: ErrorResponse;
3161
+ } | {
3162
+ status: 500;
3163
+ data: ErrorResponse;
3164
+ }>(`/v1/admin/accounts/${encodeURIComponent(accountId)}/status`, oazapfts.json({
3165
+ ...opts,
3166
+ method: "PUT",
3167
+ body: accountStatusRequest
3168
+ })));
3169
+ }
2999
3170
  /**
3000
3171
  * Updates the sales representatives associated with an active account.
3001
3172
  */
@@ -3020,7 +3191,7 @@ export function updateSalesRepresentatives({ accountId, updateSalesRepresentativ
3020
3191
  /**
3021
3192
  * Enables an account by updating its status.
3022
3193
  */
3023
- export function updateAccountStatus({ accountId, accountStatusRequest }: {
3194
+ export function updateAccountStatus1({ accountId, accountStatusRequest }: {
3024
3195
  accountId: string;
3025
3196
  accountStatusRequest: AccountStatusRequest;
3026
3197
  }, opts?: Oazapfts.RequestOpts) {
@@ -3032,6 +3203,8 @@ export function updateAccountStatus({ accountId, accountStatusRequest }: {
3032
3203
  } | {
3033
3204
  status: 404;
3034
3205
  data: ErrorResponse;
3206
+ } | {
3207
+ status: 410;
3035
3208
  } | {
3036
3209
  status: 500;
3037
3210
  data: ErrorResponse;
@@ -3175,20 +3348,160 @@ export function deleteGroupMapping({ id, attributeImporterId }: {
3175
3348
  return oazapfts.ok(oazapfts.fetchJson<{
3176
3349
  status: 204;
3177
3350
  } | {
3178
- status: 404;
3351
+ status: 404;
3352
+ data: ErrorResponse;
3353
+ } | {
3354
+ status: 500;
3355
+ data: ErrorResponse;
3356
+ }>(`/v1/accounts/sso/${encodeURIComponent(id)}/group-mapping/${encodeURIComponent(attributeImporterId)}`, {
3357
+ ...opts,
3358
+ method: "DELETE"
3359
+ }));
3360
+ }
3361
+ /**
3362
+ * Retrieves a list of service credentials associated with the current user
3363
+ */
3364
+ export function getServiceCredentials({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn, name, status }: {
3365
+ size?: any;
3366
+ page?: any;
3367
+ sort?: string;
3368
+ direction?: "ASC" | "DESC";
3369
+ search?: string;
3370
+ filterMode?: "MATCH" | "CONTAINS" | "IN";
3371
+ filterBy?: string;
3372
+ filterValue?: string;
3373
+ multiFilterMode?: string;
3374
+ filterIn?: any;
3375
+ name?: string;
3376
+ status?: "ACTIVE" | "DISABLED" | "REVOKED" | "EXPIRED";
3377
+ }, opts?: Oazapfts.RequestOpts) {
3378
+ return oazapfts.ok(oazapfts.fetchJson<{
3379
+ status: 200;
3380
+ data: PageResponseServiceCredentialResponse;
3381
+ } | {
3382
+ status: 403;
3383
+ data: ErrorResponse;
3384
+ } | {
3385
+ status: 500;
3386
+ data: ErrorResponse;
3387
+ }>(`/v2/service-credentials${QS.query(QS.explode({
3388
+ size,
3389
+ page,
3390
+ sort,
3391
+ direction,
3392
+ search,
3393
+ filterMode,
3394
+ filterBy,
3395
+ filterValue,
3396
+ multiFilterMode,
3397
+ filterIn,
3398
+ name,
3399
+ status
3400
+ }))}`, {
3401
+ ...opts
3402
+ }));
3403
+ }
3404
+ /**
3405
+ * Creates a new service credential for the current user.
3406
+ */
3407
+ export function createServiceCredential({ serviceCredentialCreateRequestV2 }: {
3408
+ serviceCredentialCreateRequestV2: ServiceCredentialCreateRequestV2;
3409
+ }, opts?: Oazapfts.RequestOpts) {
3410
+ return oazapfts.ok(oazapfts.fetchJson<{
3411
+ status: 200;
3412
+ data: ServiceCredentialCreateResponseV2;
3413
+ } | {
3414
+ status: 400;
3415
+ data: ErrorResponse;
3416
+ } | {
3417
+ status: 403;
3418
+ data: ErrorResponse;
3419
+ } | {
3420
+ status: 422;
3421
+ data: ErrorResponse;
3422
+ } | {
3423
+ status: 500;
3424
+ data: ErrorResponse;
3425
+ }>("/v2/service-credentials", oazapfts.json({
3426
+ ...opts,
3427
+ method: "POST",
3428
+ body: serviceCredentialCreateRequestV2
3429
+ })));
3430
+ }
3431
+ /**
3432
+ * Retrieves a list of resources.
3433
+ */
3434
+ export function getResources({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
3435
+ size?: any;
3436
+ page?: any;
3437
+ sort?: string;
3438
+ direction?: "ASC" | "DESC";
3439
+ search?: string;
3440
+ filterMode?: "MATCH" | "CONTAINS" | "IN";
3441
+ filterBy?: string;
3442
+ filterValue?: string;
3443
+ multiFilterMode?: string;
3444
+ filterIn?: any;
3445
+ }, opts?: Oazapfts.RequestOpts) {
3446
+ return oazapfts.ok(oazapfts.fetchJson<{
3447
+ status: 200;
3448
+ data: PageResponseResourceResponse;
3449
+ } | {
3450
+ status: 403;
3451
+ data: ErrorResponse;
3452
+ } | {
3453
+ status: 500;
3454
+ data: ErrorResponse;
3455
+ }>(`/v2/resources${QS.query(QS.explode({
3456
+ size,
3457
+ page,
3458
+ sort,
3459
+ direction,
3460
+ search,
3461
+ filterMode,
3462
+ filterBy,
3463
+ filterValue,
3464
+ multiFilterMode,
3465
+ filterIn
3466
+ }))}`, {
3467
+ ...opts
3468
+ }));
3469
+ }
3470
+ /**
3471
+ * Creates a new resource for the account.
3472
+ */
3473
+ export function createResource({ createResourceV2Request }: {
3474
+ createResourceV2Request: CreateResourceV2Request;
3475
+ }, opts?: Oazapfts.RequestOpts) {
3476
+ return oazapfts.ok(oazapfts.fetchJson<{
3477
+ status: 201;
3478
+ data: IdResponse;
3479
+ } | {
3480
+ status: 400;
3481
+ data: ErrorResponse;
3482
+ } | {
3483
+ status: 403;
3484
+ data: ErrorResponse;
3485
+ } | {
3486
+ status: 404;
3487
+ data: ErrorResponse;
3488
+ } | {
3489
+ status: 409;
3179
3490
  data: ErrorResponse;
3180
3491
  } | {
3181
3492
  status: 500;
3182
3493
  data: ErrorResponse;
3183
- }>(`/v1/accounts/sso/${encodeURIComponent(id)}/group-mapping/${encodeURIComponent(attributeImporterId)}`, {
3494
+ }>("/v2/resources", oazapfts.json({
3184
3495
  ...opts,
3185
- method: "DELETE"
3186
- }));
3496
+ method: "POST",
3497
+ body: createResourceV2Request
3498
+ })));
3187
3499
  }
3188
3500
  /**
3189
- * Retrieves a list of service credentials associated with the current user
3501
+ * Get Group Resources
3190
3502
  */
3191
- export function getServiceCredentials({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn, name, status }: {
3503
+ export function getGroupResources({ groupId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
3504
+ groupId: string;
3192
3505
  size?: any;
3193
3506
  page?: any;
3194
3507
  sort?: string;
@@ -3199,19 +3512,17 @@ export function getServiceCredentials({ size, page, sort, direction, search, fil
3199
3512
  filterValue?: string;
3200
3513
  multiFilterMode?: string;
3201
3514
  filterIn?: any;
3202
- name?: string;
3203
- status?: "ACTIVE" | "DISABLED" | "REVOKED" | "EXPIRED";
3204
3515
  }, opts?: Oazapfts.RequestOpts) {
3205
3516
  return oazapfts.ok(oazapfts.fetchJson<{
3206
3517
  status: 200;
3207
- data: PageResponseServiceCredentialResponse;
3518
+ data: PageResponseResourceResponse;
3208
3519
  } | {
3209
3520
  status: 403;
3210
3521
  data: ErrorResponse;
3211
3522
  } | {
3212
3523
  status: 500;
3213
3524
  data: ErrorResponse;
3214
- }>(`/v2/service-credentials${QS.query(QS.explode({
3525
+ }>(`/v2/groups/${encodeURIComponent(groupId)}/resources${QS.query(QS.explode({
3215
3526
  size,
3216
3527
  page,
3217
3528
  sort,
@@ -3221,38 +3532,30 @@ export function getServiceCredentials({ size, page, sort, direction, search, fil
3221
3532
  filterBy,
3222
3533
  filterValue,
3223
3534
  multiFilterMode,
3224
- filterIn,
3225
- name,
3226
- status
3535
+ filterIn
3227
3536
  }))}`, {
3228
3537
  ...opts
3229
3538
  }));
3230
3539
  }
3231
3540
  /**
3232
- * Creates a new service credential for the current user.
3541
+ * Add Multiple Resources to Group
3233
3542
  */
3234
- export function createServiceCredential({ serviceCredentialCreateRequestV2 }: {
3235
- serviceCredentialCreateRequestV2: ServiceCredentialCreateRequestV2;
3543
+ export function addResourcesToGroupBySlugAndType({ groupId, body }: {
3544
+ groupId: string;
3545
+ body: AddResourceToGroupBySlugAndTypeRequest[];
3236
3546
  }, opts?: Oazapfts.RequestOpts) {
3237
3547
  return oazapfts.ok(oazapfts.fetchJson<{
3238
3548
  status: 200;
3239
- data: ServiceCredentialCreateResponseV2;
3240
- } | {
3241
- status: 400;
3242
- data: ErrorResponse;
3243
3549
  } | {
3244
3550
  status: 403;
3245
3551
  data: ErrorResponse;
3246
- } | {
3247
- status: 422;
3248
- data: ErrorResponse;
3249
3552
  } | {
3250
3553
  status: 500;
3251
3554
  data: ErrorResponse;
3252
- }>("/v2/service-credentials", oazapfts.json({
3555
+ }>(`/v2/groups/${encodeURIComponent(groupId)}/resources`, oazapfts.json({
3253
3556
  ...opts,
3254
3557
  method: "POST",
3255
- body: serviceCredentialCreateRequestV2
3558
+ body
3256
3559
  })));
3257
3560
  }
3258
3561
  /**
@@ -3849,7 +4152,7 @@ export function bindRoleGroups({ roleId, roleGroupIdsRequest }: {
3849
4152
  /**
3850
4153
  * Retrieves a list of resources.
3851
4154
  */
3852
- export function getResources({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
4155
+ export function getResources1({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
3853
4156
  size?: any;
3854
4157
  page?: any;
3855
4158
  sort?: string;
@@ -3888,7 +4191,7 @@ export function getResources({ size, page, sort, direction, search, filterMode,
3888
4191
  /**
3889
4192
  * Creates a new resource for the account.
3890
4193
  */
3891
- export function createResource({ createResourceRequest }: {
4194
+ export function createResource1({ createResourceRequest }: {
3892
4195
  createResourceRequest: CreateResourceRequest;
3893
4196
  }, opts?: Oazapfts.RequestOpts) {
3894
4197
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -3909,6 +4212,82 @@ export function createResource({ createResourceRequest }: {
3909
4212
  body: createResourceRequest
3910
4213
  })));
3911
4214
  }
4215
+ /**
4216
+ * Get all resources reviews
4217
+ */
4218
+ export function getReviews({ resourceSlug, resourceTypeSlug, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
4219
+ resourceSlug: string;
4220
+ resourceTypeSlug: string;
4221
+ size?: any;
4222
+ page?: any;
4223
+ sort?: string;
4224
+ direction?: "ASC" | "DESC";
4225
+ search?: string;
4226
+ filterMode?: "MATCH" | "CONTAINS" | "IN";
4227
+ filterBy?: string;
4228
+ filterValue?: string;
4229
+ multiFilterMode?: string;
4230
+ filterIn?: any;
4231
+ }, opts?: Oazapfts.RequestOpts) {
4232
+ return oazapfts.ok(oazapfts.fetchJson<{
4233
+ status: 200;
4234
+ data: PageResponseViewResourceReviewResponse;
4235
+ } | {
4236
+ status: 400;
4237
+ data: PageResponseViewResourceReviewResponse;
4238
+ } | {
4239
+ status: 500;
4240
+ data: PageResponseViewResourceReviewResponse;
4241
+ }>(`/v1/resources/${encodeURIComponent(resourceSlug)}/resource-type/${encodeURIComponent(resourceTypeSlug)}/reviews${QS.query(QS.explode({
4242
+ size,
4243
+ page,
4244
+ sort,
4245
+ direction,
4246
+ search,
4247
+ filterMode,
4248
+ filterBy,
4249
+ filterValue,
4250
+ multiFilterMode,
4251
+ filterIn
4252
+ }))}`, {
4253
+ ...opts
4254
+ }));
4255
+ }
4256
+ /**
4257
+ * Create a resource review
4258
+ */
4259
+ export function createReview({ resourceSlug, resourceTypeSlug, xMemberId, createResourceReviewRequest }: {
4260
+ resourceSlug: string;
4261
+ resourceTypeSlug: string;
4262
+ xMemberId: string;
4263
+ createResourceReviewRequest: CreateResourceReviewRequest;
4264
+ }, opts?: Oazapfts.RequestOpts) {
4265
+ return oazapfts.ok(oazapfts.fetchText(`/v1/resources/${encodeURIComponent(resourceSlug)}/resource-type/${encodeURIComponent(resourceTypeSlug)}/reviews`, oazapfts.json({
4266
+ ...opts,
4267
+ method: "POST",
4268
+ body: createResourceReviewRequest,
4269
+ headers: oazapfts.mergeHeaders(opts?.headers, {
4270
+ "x-member-id": xMemberId
4271
+ })
4272
+ })));
4273
+ }
4274
+ /**
4275
+ * Create an answer to a review
4276
+ */
4277
+ export function createReviewAnswer({ reviewId, xMemberId, createReviewAnswerRequest }: {
4278
+ reviewId: string;
4279
+ xMemberId: string;
4280
+ createReviewAnswerRequest: CreateReviewAnswerRequest;
4281
+ }, opts?: Oazapfts.RequestOpts) {
4282
+ return oazapfts.ok(oazapfts.fetchText(`/v1/resources/reviews/${encodeURIComponent(reviewId)}/answers`, oazapfts.json({
4283
+ ...opts,
4284
+ method: "POST",
4285
+ body: createReviewAnswerRequest,
4286
+ headers: oazapfts.mergeHeaders(opts?.headers, {
4287
+ "x-member-id": xMemberId
4288
+ })
4289
+ })));
4290
+ }
3912
4291
  /**
3913
4292
  * Retrieves a list of account members for a specified account.
3914
4293
  */
@@ -4401,7 +4780,7 @@ export function bindRoles({ groupId, groupRoleIdsRequest }: {
4401
4780
  /**
4402
4781
  * Get Group Resources
4403
4782
  */
4404
- export function getGroupResources({ groupId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
4783
+ export function getGroupResources1({ groupId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
4405
4784
  groupId: string;
4406
4785
  size?: any;
4407
4786
  page?: any;
@@ -4526,9 +4905,11 @@ export function bindGroupMembers({ groupId, groupMemberIdsRequest }: {
4526
4905
  })));
4527
4906
  }
4528
4907
  /**
4529
- * List all Account Extensions
4908
+ * List extensions that user is allowed to manage
4530
4909
  */
4531
- export function listExtensions(opts?: Oazapfts.RequestOpts) {
4910
+ export function listManageableExtensions({ actions }: {
4911
+ actions?: string[];
4912
+ }, opts?: Oazapfts.RequestOpts) {
4532
4913
  return oazapfts.ok(oazapfts.fetchJson<{
4533
4914
  status: 200;
4534
4915
  data: ExtensionReadResponse[];
@@ -4544,7 +4925,9 @@ export function listExtensions(opts?: Oazapfts.RequestOpts) {
4544
4925
  } | {
4545
4926
  status: 500;
4546
4927
  data: ErrorResponse;
4547
- }>("/v1/extensions", {
4928
+ }>(`/v1/extensions${QS.query(QS.explode({
4929
+ actions
4930
+ }))}`, {
4548
4931
  ...opts
4549
4932
  }));
4550
4933
  }
@@ -5368,6 +5751,39 @@ export function validateNewPartnerData({ validateAccountPartnerDataRequest }: {
5368
5751
  body: validateAccountPartnerDataRequest
5369
5752
  })));
5370
5753
  }
5754
+ /**
5755
+ * Removes privileges to group's default role.
5756
+ */
5757
+ export function removePermissions({ groupId, body }: {
5758
+ groupId: string;
5759
+ body: RemovePrivilegeToGroupRequest[];
5760
+ }, opts?: Oazapfts.RequestOpts) {
5761
+ return oazapfts.ok(oazapfts.fetchText(`/v3/groups/${encodeURIComponent(groupId)}/permissions`, oazapfts.json({
5762
+ ...opts,
5763
+ method: "DELETE",
5764
+ body
5765
+ })));
5766
+ }
5767
+ /**
5768
+ * Add privileges to group's default role.
5769
+ */
5770
+ export function addPrivilegesToGroup({ groupId, body }: {
5771
+ groupId: string;
5772
+ body: AddPrivilegeToGroupRequest[];
5773
+ }, opts?: Oazapfts.RequestOpts) {
5774
+ return oazapfts.ok(oazapfts.fetchJson<{
5775
+ status: 201;
5776
+ } | {
5777
+ status: 422;
5778
+ data: ErrorResponse;
5779
+ } | {
5780
+ status: 500;
5781
+ }>(`/v3/groups/${encodeURIComponent(groupId)}/permissions`, oazapfts.json({
5782
+ ...opts,
5783
+ method: "PATCH",
5784
+ body
5785
+ })));
5786
+ }
5371
5787
  /**
5372
5788
  * Rotates the secret of a service credential.
5373
5789
  */
@@ -5697,6 +6113,72 @@ export function migrateApiKeySecretsToV2(opts?: Oazapfts.RequestOpts) {
5697
6113
  method: "PATCH"
5698
6114
  }));
5699
6115
  }
6116
+ /**
6117
+ * Delete a resources review
6118
+ */
6119
+ export function deleteReview({ reviewId, xMemberId }: {
6120
+ reviewId: string;
6121
+ xMemberId: string;
6122
+ }, opts?: Oazapfts.RequestOpts) {
6123
+ return oazapfts.ok(oazapfts.fetchText(`/v1/resources/reviews/${encodeURIComponent(reviewId)}`, {
6124
+ ...opts,
6125
+ method: "DELETE",
6126
+ headers: oazapfts.mergeHeaders(opts?.headers, {
6127
+ "x-member-id": xMemberId
6128
+ })
6129
+ }));
6130
+ }
6131
+ /**
6132
+ * Update a resources review
6133
+ */
6134
+ export function updateReview({ reviewId, xMemberId, updateResourceReviewRequest }: {
6135
+ reviewId: string;
6136
+ xMemberId: string;
6137
+ updateResourceReviewRequest: UpdateResourceReviewRequest;
6138
+ }, opts?: Oazapfts.RequestOpts) {
6139
+ return oazapfts.ok(oazapfts.fetchText(`/v1/resources/reviews/${encodeURIComponent(reviewId)}`, oazapfts.json({
6140
+ ...opts,
6141
+ method: "PATCH",
6142
+ body: updateResourceReviewRequest,
6143
+ headers: oazapfts.mergeHeaders(opts?.headers, {
6144
+ "x-member-id": xMemberId
6145
+ })
6146
+ })));
6147
+ }
6148
+ /**
6149
+ * Delete an answer to a review
6150
+ */
6151
+ export function deleteReviewAnswer({ answerId, reviewId, xMemberId }: {
6152
+ answerId: string;
6153
+ reviewId: string;
6154
+ xMemberId: string;
6155
+ }, opts?: Oazapfts.RequestOpts) {
6156
+ return oazapfts.ok(oazapfts.fetchText(`/v1/resources/reviews/${encodeURIComponent(reviewId)}/answers/${encodeURIComponent(answerId)}`, {
6157
+ ...opts,
6158
+ method: "DELETE",
6159
+ headers: oazapfts.mergeHeaders(opts?.headers, {
6160
+ "x-member-id": xMemberId
6161
+ })
6162
+ }));
6163
+ }
6164
+ /**
6165
+ * Edit an evaluation comment
6166
+ */
6167
+ export function editReviewAnswer({ reviewId, answerId, xMemberId, updateReviewAnswerRequest }: {
6168
+ reviewId: string;
6169
+ answerId: string;
6170
+ xMemberId: string;
6171
+ updateReviewAnswerRequest: UpdateReviewAnswerRequest;
6172
+ }, opts?: Oazapfts.RequestOpts) {
6173
+ return oazapfts.ok(oazapfts.fetchText(`/v1/resources/reviews/${encodeURIComponent(reviewId)}/answers/${encodeURIComponent(answerId)}`, oazapfts.json({
6174
+ ...opts,
6175
+ method: "PATCH",
6176
+ body: updateReviewAnswerRequest,
6177
+ headers: oazapfts.mergeHeaders(opts?.headers, {
6178
+ "x-member-id": xMemberId
6179
+ })
6180
+ })));
6181
+ }
5700
6182
  /**
5701
6183
  * Retrieves the preferences of a specific member.
5702
6184
  */
@@ -6560,45 +7042,6 @@ export function getRoleGroups1({ roleId, size, page, sort, direction, search, fi
6560
7042
  ...opts
6561
7043
  }));
6562
7044
  }
6563
- /**
6564
- * Retrieves a list of resources.
6565
- */
6566
- export function getResources1({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
6567
- size?: any;
6568
- page?: any;
6569
- sort?: string;
6570
- direction?: "ASC" | "DESC";
6571
- search?: string;
6572
- filterMode?: "MATCH" | "CONTAINS" | "IN";
6573
- filterBy?: string;
6574
- filterValue?: string;
6575
- multiFilterMode?: string;
6576
- filterIn?: any;
6577
- }, opts?: Oazapfts.RequestOpts) {
6578
- return oazapfts.ok(oazapfts.fetchJson<{
6579
- status: 200;
6580
- data: PageResponseResourceResponse;
6581
- } | {
6582
- status: 403;
6583
- data: ErrorResponse;
6584
- } | {
6585
- status: 500;
6586
- data: ErrorResponse;
6587
- }>(`/v2/resources${QS.query(QS.explode({
6588
- size,
6589
- page,
6590
- sort,
6591
- direction,
6592
- search,
6593
- filterMode,
6594
- filterBy,
6595
- filterValue,
6596
- multiFilterMode,
6597
- filterIn
6598
- }))}`, {
6599
- ...opts
6600
- }));
6601
- }
6602
7045
  /**
6603
7046
  * Retrieves a list of members for a specified resource.
6604
7047
  */
@@ -6918,46 +7361,6 @@ export function getRoles5({ groupId, size, page, sort, direction, search, filter
6918
7361
  ...opts
6919
7362
  }));
6920
7363
  }
6921
- /**
6922
- * Get Group Resources
6923
- */
6924
- export function getGroupResources1({ groupId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
6925
- groupId: string;
6926
- size?: any;
6927
- page?: any;
6928
- sort?: string;
6929
- direction?: "ASC" | "DESC";
6930
- search?: string;
6931
- filterMode?: "MATCH" | "CONTAINS" | "IN";
6932
- filterBy?: string;
6933
- filterValue?: string;
6934
- multiFilterMode?: string;
6935
- filterIn?: any;
6936
- }, opts?: Oazapfts.RequestOpts) {
6937
- return oazapfts.ok(oazapfts.fetchJson<{
6938
- status: 200;
6939
- data: PageResponseResourceResponse;
6940
- } | {
6941
- status: 403;
6942
- data: ErrorResponse;
6943
- } | {
6944
- status: 500;
6945
- data: ErrorResponse;
6946
- }>(`/v2/groups/${encodeURIComponent(groupId)}/resources${QS.query(QS.explode({
6947
- size,
6948
- page,
6949
- sort,
6950
- direction,
6951
- search,
6952
- filterMode,
6953
- filterBy,
6954
- filterValue,
6955
- multiFilterMode,
6956
- filterIn
6957
- }))}`, {
6958
- ...opts
6959
- }));
6960
- }
6961
7364
  /**
6962
7365
  * Get Group members
6963
7366
  */
@@ -7897,6 +8300,30 @@ export function validatePartnerAssociationLimit(opts?: Oazapfts.RequestOpts) {
7897
8300
  ...opts
7898
8301
  }));
7899
8302
  }
8303
+ /**
8304
+ * Deletes a resource from the account by resource type and resource slug.
8305
+ */
8306
+ export function deleteResource({ deleteResourceRequestV3 }: {
8307
+ deleteResourceRequestV3: DeleteResourceRequestV3;
8308
+ }, opts?: Oazapfts.RequestOpts) {
8309
+ return oazapfts.ok(oazapfts.fetchJson<{
8310
+ status: 200;
8311
+ data: PageDtoDeleteResourceResponseV3;
8312
+ } | {
8313
+ status: 403;
8314
+ data: ErrorResponse;
8315
+ } | {
8316
+ status: 422;
8317
+ data: ErrorResponse;
8318
+ } | {
8319
+ status: 500;
8320
+ data: ErrorResponse;
8321
+ }>("/v3/resources", oazapfts.json({
8322
+ ...opts,
8323
+ method: "DELETE",
8324
+ body: deleteResourceRequestV3
8325
+ })));
8326
+ }
7900
8327
  /**
7901
8328
  * Disassociate Group to Service Credential
7902
8329
  */
@@ -7948,7 +8375,7 @@ export function removeRoleFromMember({ roleId, memberId }: {
7948
8375
  /**
7949
8376
  * Deletes a resource from the account.
7950
8377
  */
7951
- export function deleteResource({ resourceId }: {
8378
+ export function deleteResource1({ resourceId }: {
7952
8379
  resourceId: string;
7953
8380
  }, opts?: Oazapfts.RequestOpts) {
7954
8381
  return oazapfts.ok(oazapfts.fetchJson<{