@sixb/client 0.1.9 → 0.1.11

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 (45) hide show
  1. package/README.md +26 -0
  2. package/dist/browser.js +2 -2
  3. package/dist/{chunk-dp68jpeq.js → chunk-65bdf9vw.js} +2 -2
  4. package/dist/{chunk-6pmyt76w.js → chunk-65mmaq7r.js} +8 -6
  5. package/dist/{chunk-6pmyt76w.js.map → chunk-65mmaq7r.js.map} +3 -3
  6. package/dist/{chunk-62nthgkf.js → chunk-7bv57jcq.js} +3 -2
  7. package/dist/chunk-7bv57jcq.js.map +19 -0
  8. package/dist/{chunk-rvaq39w5.js → chunk-f4qeqxz2.js} +1 -1
  9. package/dist/{chunk-cs98dfbc.js → chunk-qaacaq2e.js} +2 -2
  10. package/dist/{chunk-d0m9gz29.js → chunk-y4g6jrvs.js} +1 -1
  11. package/dist/connectors/connection.d.ts.map +1 -1
  12. package/dist/connectors/mutations.d.ts.map +1 -1
  13. package/dist/connectors/queries.d.ts +0 -4
  14. package/dist/connectors/queries.d.ts.map +1 -1
  15. package/dist/file.d.ts +3 -1
  16. package/dist/file.d.ts.map +1 -1
  17. package/dist/generated/@tanstack/react-query.gen.d.ts +597 -54
  18. package/dist/generated/@tanstack/react-query.gen.d.ts.map +1 -1
  19. package/dist/generated/index.d.ts +2 -2
  20. package/dist/generated/index.d.ts.map +1 -1
  21. package/dist/generated/sdk.gen.d.ts +5 -1
  22. package/dist/generated/sdk.gen.d.ts.map +1 -1
  23. package/dist/generated/types.gen.d.ts +228 -4
  24. package/dist/generated/types.gen.d.ts.map +1 -1
  25. package/dist/hooks.js +77 -32
  26. package/dist/hooks.js.map +6 -6
  27. package/dist/index.js +8 -6
  28. package/dist/index.js.map +1 -1
  29. package/dist/logs.js +3 -3
  30. package/dist/models.js +4 -2
  31. package/dist/models.js.map +1 -1
  32. package/dist/query.js +3 -3
  33. package/package.json +2 -2
  34. package/src/connectors/connection.ts +45 -7
  35. package/src/connectors/mutations.ts +9 -4
  36. package/src/file.ts +11 -6
  37. package/src/generated/@tanstack/react-query.gen.ts +32 -0
  38. package/src/generated/index.ts +6 -0
  39. package/src/generated/sdk.gen.ts +15 -0
  40. package/src/generated/types.gen.ts +258 -4
  41. package/dist/chunk-62nthgkf.js.map +0 -19
  42. /package/dist/{chunk-dp68jpeq.js.map → chunk-65bdf9vw.js.map} +0 -0
  43. /package/dist/{chunk-rvaq39w5.js.map → chunk-f4qeqxz2.js.map} +0 -0
  44. /package/dist/{chunk-cs98dfbc.js.map → chunk-qaacaq2e.js.map} +0 -0
  45. /package/dist/{chunk-d0m9gz29.js.map → chunk-y4g6jrvs.js.map} +0 -0
@@ -2846,6 +2846,168 @@ export type RevokeConnectorConnectionResponses = {
2846
2846
  };
2847
2847
  };
2848
2848
  export type RevokeConnectorConnectionResponse = RevokeConnectorConnectionResponses[keyof RevokeConnectorConnectionResponses];
2849
+ export type ListPendingConnectorConnectionRunsData = {
2850
+ body?: never;
2851
+ path: {
2852
+ connectorId: string;
2853
+ };
2854
+ query?: never;
2855
+ url: "/api/connectors/{connectorId}/connection-runs";
2856
+ };
2857
+ export type ListPendingConnectorConnectionRunsErrors = {
2858
+ /**
2859
+ * Response for status 400
2860
+ */
2861
+ 400: {
2862
+ error: string;
2863
+ /**
2864
+ * Stable machine-readable failure code for programmatic handling.
2865
+ */
2866
+ code?: "connector.authorization_invalid" | "connector.configuration_invalid";
2867
+ };
2868
+ /**
2869
+ * Response for status 403
2870
+ */
2871
+ 403: {
2872
+ error: string;
2873
+ };
2874
+ /**
2875
+ * Response for status 404
2876
+ */
2877
+ 404: {
2878
+ error: string;
2879
+ /**
2880
+ * Stable machine-readable failure code for programmatic handling.
2881
+ */
2882
+ code?: "connector.not_found";
2883
+ };
2884
+ /**
2885
+ * Response for status 500
2886
+ */
2887
+ 500: {
2888
+ error: string;
2889
+ /**
2890
+ * Stable machine-readable failure code for programmatic handling.
2891
+ */
2892
+ code?: "internal.unexpected";
2893
+ };
2894
+ };
2895
+ export type ListPendingConnectorConnectionRunsError = ListPendingConnectorConnectionRunsErrors[keyof ListPendingConnectorConnectionRunsErrors];
2896
+ export type ListPendingConnectorConnectionRunsResponses = {
2897
+ /**
2898
+ * Response for status 200
2899
+ */
2900
+ 200: Array<{
2901
+ id: string;
2902
+ connectorId: string;
2903
+ kind: "connect" | "reauthorize";
2904
+ owner: {
2905
+ type: "project";
2906
+ };
2907
+ slot: string;
2908
+ createdAt: string;
2909
+ updatedAt: string;
2910
+ status: "waiting";
2911
+ waitingFor: "provider_authorization";
2912
+ expiresAt: string;
2913
+ } | {
2914
+ id: string;
2915
+ connectorId: string;
2916
+ kind: "connect" | "reauthorize";
2917
+ owner: {
2918
+ type: "project";
2919
+ };
2920
+ slot: string;
2921
+ createdAt: string;
2922
+ updatedAt: string;
2923
+ status: "running";
2924
+ } | {
2925
+ id: string;
2926
+ connectorId: string;
2927
+ kind: "connect" | "reauthorize";
2928
+ owner: {
2929
+ type: "project";
2930
+ };
2931
+ slot: string;
2932
+ createdAt: string;
2933
+ updatedAt: string;
2934
+ status: "waiting";
2935
+ waitingFor: "account_selection";
2936
+ accounts: Array<{
2937
+ id: string;
2938
+ label: string;
2939
+ description?: string;
2940
+ avatarUrl?: string;
2941
+ }>;
2942
+ } | {
2943
+ id: string;
2944
+ connectorId: string;
2945
+ kind: "connect" | "reauthorize";
2946
+ owner: {
2947
+ type: "project";
2948
+ };
2949
+ slot: string;
2950
+ createdAt: string;
2951
+ updatedAt: string;
2952
+ status: "succeeded";
2953
+ connections: Array<{
2954
+ id: string;
2955
+ connectorId: string;
2956
+ owner: {
2957
+ type: "project";
2958
+ };
2959
+ slot: string;
2960
+ account: {
2961
+ id: string;
2962
+ label: string;
2963
+ description?: string;
2964
+ avatarUrl?: string;
2965
+ };
2966
+ status: "connected" | "needs_reauthorization" | "disconnected";
2967
+ }>;
2968
+ finishedAt: string;
2969
+ } | {
2970
+ id: string;
2971
+ connectorId: string;
2972
+ kind: "connect" | "reauthorize";
2973
+ owner: {
2974
+ type: "project";
2975
+ };
2976
+ slot: string;
2977
+ createdAt: string;
2978
+ updatedAt: string;
2979
+ status: "failed";
2980
+ error: {
2981
+ code: "internal.unexpected" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable";
2982
+ message: string;
2983
+ retryable: boolean;
2984
+ at: string;
2985
+ /**
2986
+ * Any JSON-compatible value.
2987
+ */
2988
+ details?: string | number | boolean | Array<unknown> | {
2989
+ [key: string]: unknown;
2990
+ } | null;
2991
+ httpStatus?: number;
2992
+ redacted?: true;
2993
+ truncated?: true;
2994
+ };
2995
+ finishedAt: string;
2996
+ } | {
2997
+ id: string;
2998
+ connectorId: string;
2999
+ kind: "connect" | "reauthorize";
3000
+ owner: {
3001
+ type: "project";
3002
+ };
3003
+ slot: string;
3004
+ createdAt: string;
3005
+ updatedAt: string;
3006
+ status: "cancelled" | "expired";
3007
+ finishedAt: string;
3008
+ }>;
3009
+ };
3010
+ export type ListPendingConnectorConnectionRunsResponse = ListPendingConnectorConnectionRunsResponses[keyof ListPendingConnectorConnectionRunsResponses];
2849
3011
  export type StartConnectorConnectionRunData = {
2850
3012
  body: {
2851
3013
  slot: string;
@@ -3045,7 +3207,6 @@ export type GetConnectorConnectionRunResponses = {
3045
3207
  description?: string;
3046
3208
  avatarUrl?: string;
3047
3209
  }>;
3048
- expiresAt: string;
3049
3210
  } | {
3050
3211
  id: string;
3051
3212
  connectorId: string;
@@ -3221,7 +3382,6 @@ export type AddConnectorConnectionResponses = {
3221
3382
  description?: string;
3222
3383
  avatarUrl?: string;
3223
3384
  }>;
3224
- expiresAt: string;
3225
3385
  } | {
3226
3386
  id: string;
3227
3387
  connectorId: string;
@@ -3398,7 +3558,6 @@ export type SelectConnectorConnectionRunAccountResponses = {
3398
3558
  description?: string;
3399
3559
  avatarUrl?: string;
3400
3560
  }>;
3401
- expiresAt: string;
3402
3561
  } | {
3403
3562
  id: string;
3404
3563
  connectorId: string;
@@ -5663,6 +5822,10 @@ export type GetWorkflowRunFileContentData = {
5663
5822
  runId: string;
5664
5823
  };
5665
5824
  query: {
5825
+ /**
5826
+ * Session audience for file navigation without Origin; must match Origin when present
5827
+ */
5828
+ audience?: "atlas" | "app";
5666
5829
  path: string;
5667
5830
  disposition?: "inline" | "attachment";
5668
5831
  /**
@@ -5708,6 +5871,10 @@ export type HeadWorkflowRunFileContentData = {
5708
5871
  runId: string;
5709
5872
  };
5710
5873
  query: {
5874
+ /**
5875
+ * Session audience for file navigation without Origin; must match Origin when present
5876
+ */
5877
+ audience?: "atlas" | "app";
5711
5878
  path: string;
5712
5879
  disposition?: "inline" | "attachment";
5713
5880
  /**
@@ -5753,6 +5920,10 @@ export type GetWorkflowNodeRunFileContentData = {
5753
5920
  nodeKey: string;
5754
5921
  };
5755
5922
  query: {
5923
+ /**
5924
+ * Session audience for file navigation without Origin; must match Origin when present
5925
+ */
5926
+ audience?: "atlas" | "app";
5756
5927
  path: string;
5757
5928
  disposition?: "inline" | "attachment";
5758
5929
  /**
@@ -5799,6 +5970,10 @@ export type HeadWorkflowNodeRunFileContentData = {
5799
5970
  nodeKey: string;
5800
5971
  };
5801
5972
  query: {
5973
+ /**
5974
+ * Session audience for file navigation without Origin; must match Origin when present
5975
+ */
5976
+ audience?: "atlas" | "app";
5802
5977
  path: string;
5803
5978
  disposition?: "inline" | "attachment";
5804
5979
  /**
@@ -6933,6 +7108,10 @@ export type GetObjectFileContentData = {
6933
7108
  objectId: string;
6934
7109
  };
6935
7110
  query: {
7111
+ /**
7112
+ * Session audience for file navigation without Origin; must match Origin when present
7113
+ */
7114
+ audience?: "atlas" | "app";
6936
7115
  path: string;
6937
7116
  disposition?: "inline" | "attachment";
6938
7117
  /**
@@ -6975,6 +7154,10 @@ export type HeadObjectFileContentData = {
6975
7154
  objectId: string;
6976
7155
  };
6977
7156
  query: {
7157
+ /**
7158
+ * Session audience for file navigation without Origin; must match Origin when present
7159
+ */
7160
+ audience?: "atlas" | "app";
6978
7161
  path: string;
6979
7162
  disposition?: "inline" | "attachment";
6980
7163
  /**
@@ -7304,6 +7487,7 @@ export type CreateFileUploadResponses = {
7304
7487
  expiresAt: string;
7305
7488
  } | {
7306
7489
  strategy: "multipart";
7490
+ partReceipt: "etag" | "none";
7307
7491
  uploadId: string;
7308
7492
  partSizeBytes: number;
7309
7493
  expiresAt: string;
@@ -7411,7 +7595,7 @@ export type CompleteFileUploadData = {
7411
7595
  digest?: string;
7412
7596
  parts?: Array<{
7413
7597
  partNumber: number;
7414
- etag: string;
7598
+ etag?: string;
7415
7599
  }>;
7416
7600
  };
7417
7601
  path: {
@@ -7700,6 +7884,10 @@ export type GetActionRunFileContentData = {
7700
7884
  runId: string;
7701
7885
  };
7702
7886
  query: {
7887
+ /**
7888
+ * Session audience for file navigation without Origin; must match Origin when present
7889
+ */
7890
+ audience?: "atlas" | "app";
7703
7891
  path: string;
7704
7892
  disposition?: "inline" | "attachment";
7705
7893
  /**
@@ -7745,6 +7933,10 @@ export type HeadActionRunFileContentData = {
7745
7933
  runId: string;
7746
7934
  };
7747
7935
  query: {
7936
+ /**
7937
+ * Session audience for file navigation without Origin; must match Origin when present
7938
+ */
7939
+ audience?: "atlas" | "app";
7748
7940
  path: string;
7749
7941
  disposition?: "inline" | "attachment";
7750
7942
  /**
@@ -8338,6 +8530,10 @@ export type GetAgentMessageFileContentData = {
8338
8530
  messageId: string;
8339
8531
  };
8340
8532
  query: {
8533
+ /**
8534
+ * Session audience for file navigation without Origin; must match Origin when present
8535
+ */
8536
+ audience?: "atlas" | "app";
8341
8537
  path: string;
8342
8538
  disposition?: "inline" | "attachment";
8343
8539
  /**
@@ -8384,6 +8580,10 @@ export type HeadAgentMessageFileContentData = {
8384
8580
  messageId: string;
8385
8581
  };
8386
8582
  query: {
8583
+ /**
8584
+ * Session audience for file navigation without Origin; must match Origin when present
8585
+ */
8586
+ audience?: "atlas" | "app";
8387
8587
  path: string;
8388
8588
  disposition?: "inline" | "attachment";
8389
8589
  /**
@@ -9932,6 +10132,7 @@ export type ListProjectionsResponses = {
9932
10132
  progress: {
9933
10133
  sourceRowsRead: number;
9934
10134
  sourceRowsSkipped: number;
10135
+ sourceChangesRead?: number;
9935
10136
  };
9936
10137
  queuedAt: string;
9937
10138
  startedAt?: string;
@@ -9976,6 +10177,7 @@ export type ListProjectionsResponses = {
9976
10177
  progress: {
9977
10178
  sourceRowsRead: number;
9978
10179
  sourceRowsSkipped: number;
10180
+ sourceChangesRead?: number;
9979
10181
  };
9980
10182
  queuedAt: string;
9981
10183
  startedAt?: string;
@@ -10021,6 +10223,7 @@ export type ListProjectionsResponses = {
10021
10223
  progress: {
10022
10224
  sourceRowsRead: number;
10023
10225
  sourceRowsSkipped: number;
10226
+ sourceChangesRead?: number;
10024
10227
  };
10025
10228
  queuedAt: string;
10026
10229
  startedAt?: string;
@@ -10076,6 +10279,7 @@ export type ListProjectionsResponses = {
10076
10279
  progress: {
10077
10280
  sourceRowsRead: number;
10078
10281
  sourceRowsSkipped: number;
10282
+ sourceChangesRead?: number;
10079
10283
  };
10080
10284
  queuedAt: string;
10081
10285
  startedAt?: string;
@@ -10120,6 +10324,7 @@ export type ListProjectionsResponses = {
10120
10324
  progress: {
10121
10325
  sourceRowsRead: number;
10122
10326
  sourceRowsSkipped: number;
10327
+ sourceChangesRead?: number;
10123
10328
  };
10124
10329
  queuedAt: string;
10125
10330
  startedAt?: string;
@@ -10165,6 +10370,7 @@ export type ListProjectionsResponses = {
10165
10370
  progress: {
10166
10371
  sourceRowsRead: number;
10167
10372
  sourceRowsSkipped: number;
10373
+ sourceChangesRead?: number;
10168
10374
  };
10169
10375
  queuedAt: string;
10170
10376
  startedAt?: string;
@@ -10224,6 +10430,7 @@ export type ListProjectionsResponses = {
10224
10430
  progress: {
10225
10431
  sourceRowsRead: number;
10226
10432
  sourceRowsSkipped: number;
10433
+ sourceChangesRead?: number;
10227
10434
  };
10228
10435
  queuedAt: string;
10229
10436
  startedAt?: string;
@@ -10268,6 +10475,7 @@ export type ListProjectionsResponses = {
10268
10475
  progress: {
10269
10476
  sourceRowsRead: number;
10270
10477
  sourceRowsSkipped: number;
10478
+ sourceChangesRead?: number;
10271
10479
  };
10272
10480
  queuedAt: string;
10273
10481
  startedAt?: string;
@@ -10313,6 +10521,7 @@ export type ListProjectionsResponses = {
10313
10521
  progress: {
10314
10522
  sourceRowsRead: number;
10315
10523
  sourceRowsSkipped: number;
10524
+ sourceChangesRead?: number;
10316
10525
  };
10317
10526
  queuedAt: string;
10318
10527
  startedAt?: string;
@@ -10405,6 +10614,7 @@ export type GetProjectionResponses = {
10405
10614
  progress: {
10406
10615
  sourceRowsRead: number;
10407
10616
  sourceRowsSkipped: number;
10617
+ sourceChangesRead?: number;
10408
10618
  };
10409
10619
  queuedAt: string;
10410
10620
  startedAt?: string;
@@ -10449,6 +10659,7 @@ export type GetProjectionResponses = {
10449
10659
  progress: {
10450
10660
  sourceRowsRead: number;
10451
10661
  sourceRowsSkipped: number;
10662
+ sourceChangesRead?: number;
10452
10663
  };
10453
10664
  queuedAt: string;
10454
10665
  startedAt?: string;
@@ -10494,6 +10705,7 @@ export type GetProjectionResponses = {
10494
10705
  progress: {
10495
10706
  sourceRowsRead: number;
10496
10707
  sourceRowsSkipped: number;
10708
+ sourceChangesRead?: number;
10497
10709
  };
10498
10710
  queuedAt: string;
10499
10711
  startedAt?: string;
@@ -10548,6 +10760,7 @@ export type GetProjectionResponses = {
10548
10760
  progress: {
10549
10761
  sourceRowsRead: number;
10550
10762
  sourceRowsSkipped: number;
10763
+ sourceChangesRead?: number;
10551
10764
  };
10552
10765
  queuedAt: string;
10553
10766
  startedAt?: string;
@@ -10592,6 +10805,7 @@ export type GetProjectionResponses = {
10592
10805
  progress: {
10593
10806
  sourceRowsRead: number;
10594
10807
  sourceRowsSkipped: number;
10808
+ sourceChangesRead?: number;
10595
10809
  };
10596
10810
  queuedAt: string;
10597
10811
  startedAt?: string;
@@ -10637,6 +10851,7 @@ export type GetProjectionResponses = {
10637
10851
  progress: {
10638
10852
  sourceRowsRead: number;
10639
10853
  sourceRowsSkipped: number;
10854
+ sourceChangesRead?: number;
10640
10855
  };
10641
10856
  queuedAt: string;
10642
10857
  startedAt?: string;
@@ -10695,6 +10910,7 @@ export type GetProjectionResponses = {
10695
10910
  progress: {
10696
10911
  sourceRowsRead: number;
10697
10912
  sourceRowsSkipped: number;
10913
+ sourceChangesRead?: number;
10698
10914
  };
10699
10915
  queuedAt: string;
10700
10916
  startedAt?: string;
@@ -10739,6 +10955,7 @@ export type GetProjectionResponses = {
10739
10955
  progress: {
10740
10956
  sourceRowsRead: number;
10741
10957
  sourceRowsSkipped: number;
10958
+ sourceChangesRead?: number;
10742
10959
  };
10743
10960
  queuedAt: string;
10744
10961
  startedAt?: string;
@@ -10784,6 +11001,7 @@ export type GetProjectionResponses = {
10784
11001
  progress: {
10785
11002
  sourceRowsRead: number;
10786
11003
  sourceRowsSkipped: number;
11004
+ sourceChangesRead?: number;
10787
11005
  };
10788
11006
  queuedAt: string;
10789
11007
  startedAt?: string;
@@ -10869,6 +11087,7 @@ export type ListProjectionRunsResponses = {
10869
11087
  progress: {
10870
11088
  sourceRowsRead: number;
10871
11089
  sourceRowsSkipped: number;
11090
+ sourceChangesRead?: number;
10872
11091
  };
10873
11092
  queuedAt: string;
10874
11093
  startedAt?: string;
@@ -10913,6 +11132,7 @@ export type ListProjectionRunsResponses = {
10913
11132
  progress: {
10914
11133
  sourceRowsRead: number;
10915
11134
  sourceRowsSkipped: number;
11135
+ sourceChangesRead?: number;
10916
11136
  };
10917
11137
  queuedAt: string;
10918
11138
  startedAt?: string;
@@ -10958,6 +11178,7 @@ export type ListProjectionRunsResponses = {
10958
11178
  progress: {
10959
11179
  sourceRowsRead: number;
10960
11180
  sourceRowsSkipped: number;
11181
+ sourceChangesRead?: number;
10961
11182
  };
10962
11183
  queuedAt: string;
10963
11184
  startedAt?: string;
@@ -11041,6 +11262,7 @@ export type GetProjectionRunResponses = {
11041
11262
  progress: {
11042
11263
  sourceRowsRead: number;
11043
11264
  sourceRowsSkipped: number;
11265
+ sourceChangesRead?: number;
11044
11266
  };
11045
11267
  queuedAt: string;
11046
11268
  startedAt?: string;
@@ -11085,6 +11307,7 @@ export type GetProjectionRunResponses = {
11085
11307
  progress: {
11086
11308
  sourceRowsRead: number;
11087
11309
  sourceRowsSkipped: number;
11310
+ sourceChangesRead?: number;
11088
11311
  };
11089
11312
  queuedAt: string;
11090
11313
  startedAt?: string;
@@ -11130,6 +11353,7 @@ export type GetProjectionRunResponses = {
11130
11353
  progress: {
11131
11354
  sourceRowsRead: number;
11132
11355
  sourceRowsSkipped: number;
11356
+ sourceChangesRead?: number;
11133
11357
  };
11134
11358
  queuedAt: string;
11135
11359
  startedAt?: string;