@sixb/client 0.1.0 → 0.1.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/hooks.js CHANGED
@@ -17,20 +17,20 @@ import {
17
17
  telemetryUpdateFromEvent,
18
18
  telemetryUpdateKey,
19
19
  uploadFile
20
- } from "./chunk-2d7239yx.js";
21
- import"./chunk-3g6ad4jc.js";
20
+ } from "./chunk-dkd2wgva.js";
21
+ import"./chunk-2vsyqn32.js";
22
22
  import {
23
23
  decodeObjectId,
24
24
  encodeObjectId,
25
25
  toObjectDetail,
26
26
  toObjectSummary,
27
27
  toTelemetryHistoryWithRange
28
- } from "./chunk-05yz32g0.js";
28
+ } from "./chunk-w527w02k.js";
29
29
  import"./chunk-trpg18dp.js";
30
30
  import {
31
31
  createHttpQueryExecutor
32
- } from "./chunk-pey7nh0d.js";
33
- import"./chunk-aw8rcsq3.js";
32
+ } from "./chunk-hkrfakyt.js";
33
+ import"./chunk-6w5w9e75.js";
34
34
  import {
35
35
  abortFileUpload,
36
36
  appendTelemetry,
@@ -140,7 +140,7 @@ import {
140
140
  uploadFileRaw,
141
141
  upsertObject,
142
142
  upsertObjectLink
143
- } from "./chunk-ctsdm59b.js";
143
+ } from "./chunk-h8bd95xf.js";
144
144
 
145
145
  // src/hooks.ts
146
146
  import { infiniteQueryOptions as infiniteQueryOptions3, queryOptions as queryOptions3 } from "@tanstack/react-query";
package/dist/index.js CHANGED
@@ -21,7 +21,7 @@ import {
21
21
  telemetryUpdateKey,
22
22
  uploadFile,
23
23
  waitForActionRun
24
- } from "./chunk-2d7239yx.js";
24
+ } from "./chunk-dkd2wgva.js";
25
25
  import {
26
26
  createLogSocket,
27
27
  createSixbLogsWebSocketUrl,
@@ -29,8 +29,8 @@ import {
29
29
  isStoredLogLine1 as isStoredLogLine2,
30
30
  logs,
31
31
  parseLogStreamMessage
32
- } from "./chunk-fxrh83wy.js";
33
- import"./chunk-3g6ad4jc.js";
32
+ } from "./chunk-1mnf48s9.js";
33
+ import"./chunk-2vsyqn32.js";
34
34
  import {
35
35
  decodeObjectId,
36
36
  encodeObjectId,
@@ -40,7 +40,7 @@ import {
40
40
  toObjectSummary,
41
41
  toProjectInfo,
42
42
  toTelemetryHistoryWithRange
43
- } from "./chunk-05yz32g0.js";
43
+ } from "./chunk-w527w02k.js";
44
44
  import"./chunk-trpg18dp.js";
45
45
  import {
46
46
  SIXB_CSRF_HEADER_NAME,
@@ -51,7 +51,7 @@ import {
51
51
  createSixbClientConfig,
52
52
  isSixbApiError,
53
53
  normalizeSixbApiBaseUrl
54
- } from "./chunk-aw8rcsq3.js";
54
+ } from "./chunk-6w5w9e75.js";
55
55
  import {
56
56
  abortFileUpload,
57
57
  appendTelemetry,
@@ -166,7 +166,7 @@ import {
166
166
  uploadFileRaw,
167
167
  upsertObject,
168
168
  upsertObjectLink
169
- } from "./chunk-ctsdm59b.js";
169
+ } from "./chunk-h8bd95xf.js";
170
170
  export {
171
171
  waitForActionRun,
172
172
  upsertObjectLink,
package/dist/logs.js CHANGED
@@ -6,10 +6,10 @@ import {
6
6
  isStoredLogLine1 as isStoredLogLine2,
7
7
  logs,
8
8
  parseLogStreamMessage
9
- } from "./chunk-fxrh83wy.js";
10
- import"./chunk-3g6ad4jc.js";
9
+ } from "./chunk-1mnf48s9.js";
10
+ import"./chunk-2vsyqn32.js";
11
11
  import"./chunk-trpg18dp.js";
12
- import"./chunk-ctsdm59b.js";
12
+ import"./chunk-h8bd95xf.js";
13
13
  export {
14
14
  parseLogStreamMessage,
15
15
  logs,
package/dist/models.js CHANGED
@@ -8,7 +8,7 @@ import {
8
8
  toObjectSummary,
9
9
  toProjectInfo,
10
10
  toTelemetryHistoryWithRange
11
- } from "./chunk-05yz32g0.js";
11
+ } from "./chunk-w527w02k.js";
12
12
  import"./chunk-trpg18dp.js";
13
13
  import {
14
14
  abortFileUpload,
@@ -124,7 +124,7 @@ import {
124
124
  uploadFileRaw,
125
125
  upsertObject,
126
126
  upsertObjectLink
127
- } from "./chunk-ctsdm59b.js";
127
+ } from "./chunk-h8bd95xf.js";
128
128
  export {
129
129
  upsertObjectLink,
130
130
  upsertObject,
package/dist/query.js CHANGED
@@ -3,9 +3,9 @@ import {
3
3
  SixbQueryError,
4
4
  createHttpQueryExecutor,
5
5
  objects
6
- } from "./chunk-pey7nh0d.js";
7
- import"./chunk-aw8rcsq3.js";
8
- import"./chunk-ctsdm59b.js";
6
+ } from "./chunk-hkrfakyt.js";
7
+ import"./chunk-6w5w9e75.js";
8
+ import"./chunk-h8bd95xf.js";
9
9
  export {
10
10
  objects,
11
11
  createHttpQueryExecutor,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sixb/client",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Type-safe SDK for Sixb API with TanStack Query hooks",
5
5
  "keywords": [
6
6
  "sixb",
@@ -67,7 +67,7 @@
67
67
  "prepack": "bun run build"
68
68
  },
69
69
  "dependencies": {
70
- "@sixb/core": "0.1.0"
70
+ "@sixb/core": "^0.1.1"
71
71
  },
72
72
  "peerDependencies": {
73
73
  "@tanstack/react-query": "^5.0.0",
@@ -1042,6 +1042,7 @@ export const listWorkflowRuns = <ThrowOnError extends boolean = false>(
1042
1042
  options?: Options<ListWorkflowRunsData, ThrowOnError>
1043
1043
  ) =>
1044
1044
  (options?.client ?? client).get<ListWorkflowRunsResponses, ListWorkflowRunsErrors, ThrowOnError>({
1045
+ security: [{ scheme: "bearer", type: "http" }],
1045
1046
  url: "/api/workflow-runs",
1046
1047
  ...options,
1047
1048
  })
@@ -1053,6 +1054,7 @@ export const getWorkflowRun = <ThrowOnError extends boolean = false>(
1053
1054
  options: Options<GetWorkflowRunData, ThrowOnError>
1054
1055
  ) =>
1055
1056
  (options.client ?? client).get<GetWorkflowRunResponses, GetWorkflowRunErrors, ThrowOnError>({
1057
+ security: [{ scheme: "bearer", type: "http" }],
1056
1058
  url: "/api/workflow-runs/{runId}",
1057
1059
  ...options,
1058
1060
  })
@@ -1454,7 +1456,10 @@ export const uploadFileRaw = <ThrowOnError extends boolean = false>(
1454
1456
  ) =>
1455
1457
  (options.client ?? client).post<UploadFileRawResponses, UploadFileRawErrors, ThrowOnError>({
1456
1458
  ...formDataBodySerializer,
1457
- security: [{ name: "x-sixb-csrf", type: "apiKey" }],
1459
+ security: [
1460
+ { name: "x-sixb-csrf", type: "apiKey" },
1461
+ { scheme: "bearer", type: "http" },
1462
+ ],
1458
1463
  url: "/api/files",
1459
1464
  ...options,
1460
1465
  headers: {
@@ -1553,6 +1558,7 @@ export const listActionRuns = <ThrowOnError extends boolean = false>(
1553
1558
  options?: Options<ListActionRunsData, ThrowOnError>
1554
1559
  ) =>
1555
1560
  (options?.client ?? client).get<ListActionRunsResponses, ListActionRunsErrors, ThrowOnError>({
1561
+ security: [{ scheme: "bearer", type: "http" }],
1556
1562
  url: "/api/action-runs",
1557
1563
  ...options,
1558
1564
  })
@@ -1787,6 +1793,7 @@ export const listObjectLinks = <ThrowOnError extends boolean = false>(
1787
1793
  options: Options<ListObjectLinksData, ThrowOnError>
1788
1794
  ) =>
1789
1795
  (options.client ?? client).get<ListObjectLinksResponses, ListObjectLinksErrors, ThrowOnError>({
1796
+ security: [{ scheme: "bearer", type: "http" }],
1790
1797
  url: "/api/objects/{objectTypeId}/{objectId}/links",
1791
1798
  ...options,
1792
1799
  })