@confighub/rtk-query 0.8.39 → 0.9.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.
package/dist/index.cjs CHANGED
@@ -855,6 +855,8 @@ var injectedRtkApi = confighubApi.enhanceEndpoints({
855
855
  include: queryArg.include,
856
856
  select: queryArg.select,
857
857
  where_permission: queryArg.wherePermission,
858
+ include_hidden: queryArg.includeHidden,
859
+ view: queryArg.view,
858
860
  limit: queryArg.limit,
859
861
  order_by: queryArg.orderBy,
860
862
  continue: queryArg["continue"]
@@ -1701,15 +1703,24 @@ var injectedRtkApi = confighubApi.enhanceEndpoints({
1701
1703
  }),
1702
1704
  invalidatesTags: ["ServiceAccount"]
1703
1705
  }),
1704
- listServiceAccountKeys: build.query({
1706
+ listServiceAccountUserKeys: build.query({
1705
1707
  query: (queryArg) => ({
1706
- url: `/service_account/${queryArg.serviceAccountId}/key`
1708
+ url: `/service_account/${queryArg.serviceAccountId}/user_key`,
1709
+ params: {
1710
+ where: queryArg.where,
1711
+ contains: queryArg.contains,
1712
+ select: queryArg.select,
1713
+ include_hidden: queryArg.includeHidden,
1714
+ limit: queryArg.limit,
1715
+ order_by: queryArg.orderBy,
1716
+ continue: queryArg["continue"]
1717
+ }
1707
1718
  }),
1708
1719
  providesTags: ["ServiceAccount"]
1709
1720
  }),
1710
- createServiceAccountKey: build.mutation({
1721
+ createServiceAccountUserKey: build.mutation({
1711
1722
  query: (queryArg) => ({
1712
- url: `/service_account/${queryArg.serviceAccountId}/key`,
1723
+ url: `/service_account/${queryArg.serviceAccountId}/user_key`,
1713
1724
  method: "POST",
1714
1725
  body: queryArg.createUserKeyRequest,
1715
1726
  params: {
@@ -1718,22 +1729,40 @@ var injectedRtkApi = confighubApi.enhanceEndpoints({
1718
1729
  }),
1719
1730
  invalidatesTags: ["ServiceAccount"]
1720
1731
  }),
1721
- deleteServiceAccountKey: build.mutation({
1732
+ deleteServiceAccountUserKey: build.mutation({
1722
1733
  query: (queryArg) => ({
1723
- url: `/service_account/${queryArg.serviceAccountId}/key/${queryArg.kid}`,
1734
+ url: `/service_account/${queryArg.serviceAccountId}/user_key/${queryArg.userKeyId}`,
1724
1735
  method: "DELETE"
1725
1736
  }),
1726
1737
  invalidatesTags: ["ServiceAccount"]
1727
1738
  }),
1728
- listServiceAccountTokens: build.query({
1739
+ getServiceAccountUserKey: build.query({
1729
1740
  query: (queryArg) => ({
1730
- url: `/service_account/${queryArg.serviceAccountId}/token`
1741
+ url: `/service_account/${queryArg.serviceAccountId}/user_key/${queryArg.userKeyId}`,
1742
+ params: {
1743
+ select: queryArg.select
1744
+ }
1745
+ }),
1746
+ providesTags: ["ServiceAccount"]
1747
+ }),
1748
+ listServiceAccountUserTokens: build.query({
1749
+ query: (queryArg) => ({
1750
+ url: `/service_account/${queryArg.serviceAccountId}/user_token`,
1751
+ params: {
1752
+ where: queryArg.where,
1753
+ contains: queryArg.contains,
1754
+ select: queryArg.select,
1755
+ include_hidden: queryArg.includeHidden,
1756
+ limit: queryArg.limit,
1757
+ order_by: queryArg.orderBy,
1758
+ continue: queryArg["continue"]
1759
+ }
1731
1760
  }),
1732
1761
  providesTags: ["ServiceAccount"]
1733
1762
  }),
1734
- createServiceAccountToken: build.mutation({
1763
+ createServiceAccountUserToken: build.mutation({
1735
1764
  query: (queryArg) => ({
1736
- url: `/service_account/${queryArg.serviceAccountId}/token`,
1765
+ url: `/service_account/${queryArg.serviceAccountId}/user_token`,
1737
1766
  method: "POST",
1738
1767
  body: queryArg.createUserTokenRequest,
1739
1768
  params: {
@@ -1742,13 +1771,29 @@ var injectedRtkApi = confighubApi.enhanceEndpoints({
1742
1771
  }),
1743
1772
  invalidatesTags: ["ServiceAccount"]
1744
1773
  }),
1745
- revokeServiceAccountToken: build.mutation({
1774
+ deleteServiceAccountUserToken: build.mutation({
1746
1775
  query: (queryArg) => ({
1747
- url: `/service_account/${queryArg.serviceAccountId}/token/${queryArg.jti}`,
1776
+ url: `/service_account/${queryArg.serviceAccountId}/user_token/${queryArg.userTokenId}`,
1748
1777
  method: "DELETE"
1749
1778
  }),
1750
1779
  invalidatesTags: ["ServiceAccount"]
1751
1780
  }),
1781
+ getServiceAccountUserToken: build.query({
1782
+ query: (queryArg) => ({
1783
+ url: `/service_account/${queryArg.serviceAccountId}/user_token/${queryArg.userTokenId}`,
1784
+ params: {
1785
+ select: queryArg.select
1786
+ }
1787
+ }),
1788
+ providesTags: ["ServiceAccount"]
1789
+ }),
1790
+ revokeServiceAccountUserToken: build.mutation({
1791
+ query: (queryArg) => ({
1792
+ url: `/service_account/${queryArg.serviceAccountId}/user_token/${queryArg.userTokenId}/revoke`,
1793
+ method: "POST"
1794
+ }),
1795
+ invalidatesTags: ["ServiceAccount"]
1796
+ }),
1752
1797
  listSpaces: build.query({
1753
1798
  query: (queryArg) => ({
1754
1799
  url: `/space`,
@@ -2427,6 +2472,8 @@ var injectedRtkApi = confighubApi.enhanceEndpoints({
2427
2472
  include: queryArg.include,
2428
2473
  select: queryArg.select,
2429
2474
  where_permission: queryArg.wherePermission,
2475
+ include_hidden: queryArg.includeHidden,
2476
+ view: queryArg.view,
2430
2477
  limit: queryArg.limit,
2431
2478
  order_by: queryArg.orderBy,
2432
2479
  continue: queryArg["continue"]
@@ -2451,6 +2498,7 @@ var injectedRtkApi = confighubApi.enhanceEndpoints({
2451
2498
  url: `/space/${queryArg.spaceId}/command_run/${queryArg.commandRunId}`,
2452
2499
  params: {
2453
2500
  wait: queryArg.wait,
2501
+ include: queryArg.include,
2454
2502
  select: queryArg.select
2455
2503
  }
2456
2504
  }),
@@ -4525,14 +4573,19 @@ var {
4525
4573
  useLazyGetServiceAccountQuery,
4526
4574
  usePatchServiceAccountMutation,
4527
4575
  useUpdateServiceAccountMutation,
4528
- useListServiceAccountKeysQuery,
4529
- useLazyListServiceAccountKeysQuery,
4530
- useCreateServiceAccountKeyMutation,
4531
- useDeleteServiceAccountKeyMutation,
4532
- useListServiceAccountTokensQuery,
4533
- useLazyListServiceAccountTokensQuery,
4534
- useCreateServiceAccountTokenMutation,
4535
- useRevokeServiceAccountTokenMutation,
4576
+ useListServiceAccountUserKeysQuery,
4577
+ useLazyListServiceAccountUserKeysQuery,
4578
+ useCreateServiceAccountUserKeyMutation,
4579
+ useDeleteServiceAccountUserKeyMutation,
4580
+ useGetServiceAccountUserKeyQuery,
4581
+ useLazyGetServiceAccountUserKeyQuery,
4582
+ useListServiceAccountUserTokensQuery,
4583
+ useLazyListServiceAccountUserTokensQuery,
4584
+ useCreateServiceAccountUserTokenMutation,
4585
+ useDeleteServiceAccountUserTokenMutation,
4586
+ useGetServiceAccountUserTokenQuery,
4587
+ useLazyGetServiceAccountUserTokenQuery,
4588
+ useRevokeServiceAccountUserTokenMutation,
4536
4589
  useListSpacesQuery,
4537
4590
  useLazyListSpacesQuery,
4538
4591
  useCreateSpaceMutation,
@@ -4903,9 +4956,9 @@ exports.useCreateOAuthClientMutation = useCreateOAuthClientMutation;
4903
4956
  exports.useCreateOrganizationMemberMutation = useCreateOrganizationMemberMutation;
4904
4957
  exports.useCreateOrganizationMutation = useCreateOrganizationMutation;
4905
4958
  exports.useCreateReviewCommentMutation = useCreateReviewCommentMutation;
4906
- exports.useCreateServiceAccountKeyMutation = useCreateServiceAccountKeyMutation;
4907
4959
  exports.useCreateServiceAccountMutation = useCreateServiceAccountMutation;
4908
- exports.useCreateServiceAccountTokenMutation = useCreateServiceAccountTokenMutation;
4960
+ exports.useCreateServiceAccountUserKeyMutation = useCreateServiceAccountUserKeyMutation;
4961
+ exports.useCreateServiceAccountUserTokenMutation = useCreateServiceAccountUserTokenMutation;
4909
4962
  exports.useCreateSpaceMutation = useCreateSpaceMutation;
4910
4963
  exports.useCreateTagMutation = useCreateTagMutation;
4911
4964
  exports.useCreateTargetMutation = useCreateTargetMutation;
@@ -4928,8 +4981,9 @@ exports.useDeleteOrganizationMemberMutation = useDeleteOrganizationMemberMutatio
4928
4981
  exports.useDeleteOrganizationMutation = useDeleteOrganizationMutation;
4929
4982
  exports.useDeleteReleaseMutation = useDeleteReleaseMutation;
4930
4983
  exports.useDeleteReviewCommentMutation = useDeleteReviewCommentMutation;
4931
- exports.useDeleteServiceAccountKeyMutation = useDeleteServiceAccountKeyMutation;
4932
4984
  exports.useDeleteServiceAccountMutation = useDeleteServiceAccountMutation;
4985
+ exports.useDeleteServiceAccountUserKeyMutation = useDeleteServiceAccountUserKeyMutation;
4986
+ exports.useDeleteServiceAccountUserTokenMutation = useDeleteServiceAccountUserTokenMutation;
4933
4987
  exports.useDeleteSpaceMutation = useDeleteSpaceMutation;
4934
4988
  exports.useDeleteTagMutation = useDeleteTagMutation;
4935
4989
  exports.useDeleteTargetMutation = useDeleteTargetMutation;
@@ -4975,6 +5029,8 @@ exports.useGetQueuedOperationQuery = useGetQueuedOperationQuery;
4975
5029
  exports.useGetReviewCommentQuery = useGetReviewCommentQuery;
4976
5030
  exports.useGetRevisionMutationSourcesQuery = useGetRevisionMutationSourcesQuery;
4977
5031
  exports.useGetServiceAccountQuery = useGetServiceAccountQuery;
5032
+ exports.useGetServiceAccountUserKeyQuery = useGetServiceAccountUserKeyQuery;
5033
+ exports.useGetServiceAccountUserTokenQuery = useGetServiceAccountUserTokenQuery;
4978
5034
  exports.useGetSpaceDocumentQuery = useGetSpaceDocumentQuery;
4979
5035
  exports.useGetSpaceQuery = useGetSpaceQuery;
4980
5036
  exports.useGetTagQuery = useGetTagQuery;
@@ -5029,6 +5085,8 @@ exports.useLazyGetQueuedOperationQuery = useLazyGetQueuedOperationQuery;
5029
5085
  exports.useLazyGetReviewCommentQuery = useLazyGetReviewCommentQuery;
5030
5086
  exports.useLazyGetRevisionMutationSourcesQuery = useLazyGetRevisionMutationSourcesQuery;
5031
5087
  exports.useLazyGetServiceAccountQuery = useLazyGetServiceAccountQuery;
5088
+ exports.useLazyGetServiceAccountUserKeyQuery = useLazyGetServiceAccountUserKeyQuery;
5089
+ exports.useLazyGetServiceAccountUserTokenQuery = useLazyGetServiceAccountUserTokenQuery;
5032
5090
  exports.useLazyGetSpaceDocumentQuery = useLazyGetSpaceDocumentQuery;
5033
5091
  exports.useLazyGetSpaceQuery = useLazyGetSpaceQuery;
5034
5092
  exports.useLazyGetTagQuery = useLazyGetTagQuery;
@@ -5093,8 +5151,8 @@ exports.useLazyListOrganizationMembersQuery = useLazyListOrganizationMembersQuer
5093
5151
  exports.useLazyListOrganizationsQuery = useLazyListOrganizationsQuery;
5094
5152
  exports.useLazyListQueuedOperationsQuery = useLazyListQueuedOperationsQuery;
5095
5153
  exports.useLazyListReviewCommentsQuery = useLazyListReviewCommentsQuery;
5096
- exports.useLazyListServiceAccountKeysQuery = useLazyListServiceAccountKeysQuery;
5097
- exports.useLazyListServiceAccountTokensQuery = useLazyListServiceAccountTokensQuery;
5154
+ exports.useLazyListServiceAccountUserKeysQuery = useLazyListServiceAccountUserKeysQuery;
5155
+ exports.useLazyListServiceAccountUserTokensQuery = useLazyListServiceAccountUserTokensQuery;
5098
5156
  exports.useLazyListServiceAccountsQuery = useLazyListServiceAccountsQuery;
5099
5157
  exports.useLazyListSpacesQuery = useLazyListSpacesQuery;
5100
5158
  exports.useLazyListTagsQuery = useLazyListTagsQuery;
@@ -5161,8 +5219,8 @@ exports.useListOrganizationMembersQuery = useListOrganizationMembersQuery;
5161
5219
  exports.useListOrganizationsQuery = useListOrganizationsQuery;
5162
5220
  exports.useListQueuedOperationsQuery = useListQueuedOperationsQuery;
5163
5221
  exports.useListReviewCommentsQuery = useListReviewCommentsQuery;
5164
- exports.useListServiceAccountKeysQuery = useListServiceAccountKeysQuery;
5165
- exports.useListServiceAccountTokensQuery = useListServiceAccountTokensQuery;
5222
+ exports.useListServiceAccountUserKeysQuery = useListServiceAccountUserKeysQuery;
5223
+ exports.useListServiceAccountUserTokensQuery = useListServiceAccountUserTokensQuery;
5166
5224
  exports.useListServiceAccountsQuery = useListServiceAccountsQuery;
5167
5225
  exports.useListSpacesQuery = useListSpacesQuery;
5168
5226
  exports.useListTagsQuery = useListTagsQuery;
@@ -5200,7 +5258,7 @@ exports.useReleaseChannelLeaseMutation = useReleaseChannelLeaseMutation;
5200
5258
  exports.useRemoveGroupBotUserMutation = useRemoveGroupBotUserMutation;
5201
5259
  exports.useReportCommandRunResultMutation = useReportCommandRunResultMutation;
5202
5260
  exports.useResolveUnitConflictsMutation = useResolveUnitConflictsMutation;
5203
- exports.useRevokeServiceAccountTokenMutation = useRevokeServiceAccountTokenMutation;
5261
+ exports.useRevokeServiceAccountUserTokenMutation = useRevokeServiceAccountUserTokenMutation;
5204
5262
  exports.useSearchListLinksQuery = useSearchListLinksQuery;
5205
5263
  exports.useSearchRevisionDataQuery = useSearchRevisionDataQuery;
5206
5264
  exports.useSearchRevisionMutationSourcesQuery = useSearchRevisionMutationSourcesQuery;