@sixb/client 0.1.2 → 0.1.3

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 (36) hide show
  1. package/dist/browser.js +2 -2
  2. package/dist/{chunk-5vp5zr0d.js → chunk-6esh0dxx.js} +1 -1
  3. package/dist/{chunk-tsdnw994.js → chunk-7ts981a8.js} +2 -2
  4. package/dist/{chunk-skkt217g.js → chunk-eyd61e4t.js} +7 -2
  5. package/dist/chunk-eyd61e4t.js.map +19 -0
  6. package/dist/{chunk-ctf97s25.js → chunk-heqezbjc.js} +2 -2
  7. package/dist/{chunk-v4jdc1nb.js → chunk-hfk246y4.js} +3 -3
  8. package/dist/{chunk-zfne7wxr.js → chunk-yjank04c.js} +1 -1
  9. package/dist/connectors/queries.d.ts.map +1 -1
  10. package/dist/generated/@tanstack/react-query.gen.d.ts +2123 -26
  11. package/dist/generated/@tanstack/react-query.gen.d.ts.map +1 -1
  12. package/dist/generated/index.d.ts +2 -2
  13. package/dist/generated/index.d.ts.map +1 -1
  14. package/dist/generated/sdk.gen.d.ts +9 -1
  15. package/dist/generated/sdk.gen.d.ts.map +1 -1
  16. package/dist/generated/types.gen.d.ts +498 -7
  17. package/dist/generated/types.gen.d.ts.map +1 -1
  18. package/dist/hooks.js +59 -6
  19. package/dist/hooks.js.map +3 -3
  20. package/dist/index.js +10 -6
  21. package/dist/index.js.map +1 -1
  22. package/dist/logs.js +3 -3
  23. package/dist/models.js +6 -2
  24. package/dist/models.js.map +1 -1
  25. package/dist/query.js +3 -3
  26. package/package.json +2 -2
  27. package/src/generated/@tanstack/react-query.gen.ts +101 -0
  28. package/src/generated/index.ts +12 -0
  29. package/src/generated/sdk.gen.ts +29 -0
  30. package/src/generated/types.gen.ts +609 -2
  31. package/dist/chunk-skkt217g.js.map +0 -19
  32. /package/dist/{chunk-5vp5zr0d.js.map → chunk-6esh0dxx.js.map} +0 -0
  33. /package/dist/{chunk-tsdnw994.js.map → chunk-7ts981a8.js.map} +0 -0
  34. /package/dist/{chunk-ctf97s25.js.map → chunk-heqezbjc.js.map} +0 -0
  35. /package/dist/{chunk-v4jdc1nb.js.map → chunk-hfk246y4.js.map} +0 -0
  36. /package/dist/{chunk-zfne7wxr.js.map → chunk-yjank04c.js.map} +0 -0
package/dist/hooks.js CHANGED
@@ -18,8 +18,8 @@ import {
18
18
  telemetryUpdateFromEvent,
19
19
  telemetryUpdateKey,
20
20
  uploadFile
21
- } from "./chunk-v4jdc1nb.js";
22
- import"./chunk-5vp5zr0d.js";
21
+ } from "./chunk-hfk246y4.js";
22
+ import"./chunk-6esh0dxx.js";
23
23
  import {
24
24
  decodeObjectId,
25
25
  encodeObjectId,
@@ -30,10 +30,10 @@ import {
30
30
  import"./chunk-trpg18dp.js";
31
31
  import {
32
32
  createHttpQueryExecutor
33
- } from "./chunk-tsdnw994.js";
33
+ } from "./chunk-7ts981a8.js";
34
34
  import {
35
35
  isSixbApiError
36
- } from "./chunk-zfne7wxr.js";
36
+ } from "./chunk-yjank04c.js";
37
37
  import {
38
38
  abortFileUpload,
39
39
  addConnectorConnection,
@@ -61,6 +61,7 @@ import {
61
61
  getAgentMessageFileContent,
62
62
  getAgentRun,
63
63
  getAgentThread,
64
+ getAiAccountingOverview,
64
65
  getAuthAccessManagementOptions,
65
66
  getAuthInvitationOptions,
66
67
  getAuthMembershipOptions,
@@ -95,6 +96,7 @@ import {
95
96
  listAgentThreadRuns,
96
97
  listAgentThreads,
97
98
  listAgents,
99
+ listAiModelCalls,
98
100
  listAuthAccessTokens,
99
101
  listAuthInvitations,
100
102
  listAuthMembers,
@@ -151,7 +153,7 @@ import {
151
153
  uploadFileRaw,
152
154
  upsertObject,
153
155
  upsertObjectLink
154
- } from "./chunk-skkt217g.js";
156
+ } from "./chunk-eyd61e4t.js";
155
157
 
156
158
  // src/hooks.ts
157
159
  import { infiniteQueryOptions as infiniteQueryOptions3, queryOptions as queryOptions4 } from "@tanstack/react-query";
@@ -582,6 +584,51 @@ var reactivateAuthMemberMutation = (options) => {
582
584
  };
583
585
  return mutationOptions;
584
586
  };
587
+ var getAiAccountingOverviewQueryKey = (options) => createQueryKey("getAiAccountingOverview", options);
588
+ var getAiAccountingOverviewOptions = (options) => queryOptions({
589
+ queryFn: async ({ queryKey, signal }) => {
590
+ const { data } = await getAiAccountingOverview({
591
+ ...options,
592
+ ...queryKey[0],
593
+ signal,
594
+ throwOnError: true
595
+ });
596
+ return data;
597
+ },
598
+ queryKey: getAiAccountingOverviewQueryKey(options)
599
+ });
600
+ var listAiModelCallsQueryKey = (options) => createQueryKey("listAiModelCalls", options);
601
+ var listAiModelCallsOptions = (options) => queryOptions({
602
+ queryFn: async ({ queryKey, signal }) => {
603
+ const { data } = await listAiModelCalls({
604
+ ...options,
605
+ ...queryKey[0],
606
+ signal,
607
+ throwOnError: true
608
+ });
609
+ return data;
610
+ },
611
+ queryKey: listAiModelCallsQueryKey(options)
612
+ });
613
+ var listAiModelCallsInfiniteQueryKey = (options) => createQueryKey("listAiModelCalls", options, true);
614
+ var listAiModelCallsInfiniteOptions = (options) => infiniteQueryOptions({
615
+ queryFn: async ({ pageParam, queryKey, signal }) => {
616
+ const page = typeof pageParam === "object" ? pageParam : {
617
+ query: {
618
+ offset: pageParam
619
+ }
620
+ };
621
+ const params = createInfiniteParams(queryKey, page);
622
+ const { data } = await listAiModelCalls({
623
+ ...options,
624
+ ...params,
625
+ signal,
626
+ throwOnError: true
627
+ });
628
+ return data;
629
+ },
630
+ queryKey: listAiModelCallsInfiniteQueryKey(options)
631
+ });
585
632
  var getProjectInfoQueryKey = (options) => createQueryKey("getProjectInfo", options);
586
633
  var getProjectInfoOptions = (options) => queryOptions({
587
634
  queryFn: async ({ queryKey, signal }) => {
@@ -3807,6 +3854,10 @@ export {
3807
3854
  listAuthInvitationsInfiniteOptions,
3808
3855
  listAuthAccessTokensQueryKey,
3809
3856
  listAuthAccessTokensOptions,
3857
+ listAiModelCallsQueryKey,
3858
+ listAiModelCallsOptions,
3859
+ listAiModelCallsInfiniteQueryKey,
3860
+ listAiModelCallsInfiniteOptions,
3810
3861
  listAgentsQueryKey,
3811
3862
  listAgentsOptions,
3812
3863
  listAgentThreadsQueryKey,
@@ -3890,6 +3941,8 @@ export {
3890
3941
  getAuthInvitationOptionsOptions,
3891
3942
  getAuthAccessManagementOptionsQueryKey,
3892
3943
  getAuthAccessManagementOptionsOptions,
3944
+ getAiAccountingOverviewQueryKey,
3945
+ getAiAccountingOverviewOptions,
3893
3946
  getAgentThreadQueryKey,
3894
3947
  getAgentThreadOptions,
3895
3948
  getAgentRunQueryKey,
@@ -3943,4 +3996,4 @@ export {
3943
3996
  SixbEventsProvider
3944
3997
  };
3945
3998
 
3946
- //# debugId=25F06D830AC4D47664756E2164756E21
3999
+ //# debugId=9FF2BF8CCA95916A64756E2164756E21