@confighub/rtk-query 0.8.11 → 0.8.13

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
@@ -1556,6 +1556,30 @@ var injectedRtkApi = confighubApi.enhanceEndpoints({
1556
1556
  }),
1557
1557
  invalidatesTags: ["ServiceAccount"]
1558
1558
  }),
1559
+ listServiceAccountTokens: build.query({
1560
+ query: (queryArg) => ({
1561
+ url: `/service_account/${queryArg.serviceAccountId}/token`
1562
+ }),
1563
+ providesTags: ["ServiceAccount"]
1564
+ }),
1565
+ createServiceAccountToken: build.mutation({
1566
+ query: (queryArg) => ({
1567
+ url: `/service_account/${queryArg.serviceAccountId}/token`,
1568
+ method: "POST",
1569
+ body: queryArg.createUserTokenRequest,
1570
+ params: {
1571
+ dry_run: queryArg.dryRun
1572
+ }
1573
+ }),
1574
+ invalidatesTags: ["ServiceAccount"]
1575
+ }),
1576
+ revokeServiceAccountToken: build.mutation({
1577
+ query: (queryArg) => ({
1578
+ url: `/service_account/${queryArg.serviceAccountId}/token/${queryArg.jti}`,
1579
+ method: "DELETE"
1580
+ }),
1581
+ invalidatesTags: ["ServiceAccount"]
1582
+ }),
1559
1583
  listSpaces: build.query({
1560
1584
  query: (queryArg) => ({
1561
1585
  url: `/space`,
@@ -4084,6 +4108,10 @@ var {
4084
4108
  useLazyListServiceAccountKeysQuery,
4085
4109
  useCreateServiceAccountKeyMutation,
4086
4110
  useDeleteServiceAccountKeyMutation,
4111
+ useListServiceAccountTokensQuery,
4112
+ useLazyListServiceAccountTokensQuery,
4113
+ useCreateServiceAccountTokenMutation,
4114
+ useRevokeServiceAccountTokenMutation,
4087
4115
  useListSpacesQuery,
4088
4116
  useLazyListSpacesQuery,
4089
4117
  useCreateSpaceMutation,
@@ -4425,6 +4453,7 @@ exports.useCreateOrganizationMutation = useCreateOrganizationMutation;
4425
4453
  exports.useCreateReviewCommentMutation = useCreateReviewCommentMutation;
4426
4454
  exports.useCreateServiceAccountKeyMutation = useCreateServiceAccountKeyMutation;
4427
4455
  exports.useCreateServiceAccountMutation = useCreateServiceAccountMutation;
4456
+ exports.useCreateServiceAccountTokenMutation = useCreateServiceAccountTokenMutation;
4428
4457
  exports.useCreateSpaceMutation = useCreateSpaceMutation;
4429
4458
  exports.useCreateTagMutation = useCreateTagMutation;
4430
4459
  exports.useCreateTargetMutation = useCreateTargetMutation;
@@ -4600,6 +4629,7 @@ exports.useLazyListOrganizationsQuery = useLazyListOrganizationsQuery;
4600
4629
  exports.useLazyListQueuedOperationsQuery = useLazyListQueuedOperationsQuery;
4601
4630
  exports.useLazyListReviewCommentsQuery = useLazyListReviewCommentsQuery;
4602
4631
  exports.useLazyListServiceAccountKeysQuery = useLazyListServiceAccountKeysQuery;
4632
+ exports.useLazyListServiceAccountTokensQuery = useLazyListServiceAccountTokensQuery;
4603
4633
  exports.useLazyListServiceAccountsQuery = useLazyListServiceAccountsQuery;
4604
4634
  exports.useLazyListSpacesQuery = useLazyListSpacesQuery;
4605
4635
  exports.useLazyListTagsQuery = useLazyListTagsQuery;
@@ -4661,6 +4691,7 @@ exports.useListOrganizationsQuery = useListOrganizationsQuery;
4661
4691
  exports.useListQueuedOperationsQuery = useListQueuedOperationsQuery;
4662
4692
  exports.useListReviewCommentsQuery = useListReviewCommentsQuery;
4663
4693
  exports.useListServiceAccountKeysQuery = useListServiceAccountKeysQuery;
4694
+ exports.useListServiceAccountTokensQuery = useListServiceAccountTokensQuery;
4664
4695
  exports.useListServiceAccountsQuery = useListServiceAccountsQuery;
4665
4696
  exports.useListSpacesQuery = useListSpacesQuery;
4666
4697
  exports.useListTagsQuery = useListTagsQuery;
@@ -4694,6 +4725,7 @@ exports.usePromoteMutation = usePromoteMutation;
4694
4725
  exports.usePublishReleaseMutation = usePublishReleaseMutation;
4695
4726
  exports.useRemoveGroupBotUserMutation = useRemoveGroupBotUserMutation;
4696
4727
  exports.useResolveUnitConflictsMutation = useResolveUnitConflictsMutation;
4728
+ exports.useRevokeServiceAccountTokenMutation = useRevokeServiceAccountTokenMutation;
4697
4729
  exports.useSearchListLinksQuery = useSearchListLinksQuery;
4698
4730
  exports.useSearchRevisionDataQuery = useSearchRevisionDataQuery;
4699
4731
  exports.useSearchRevisionMutationSourcesQuery = useSearchRevisionMutationSourcesQuery;