@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
@@ -3308,6 +3308,198 @@ export type RevokeConnectorConnectionResponses = {
3308
3308
  export type RevokeConnectorConnectionResponse =
3309
3309
  RevokeConnectorConnectionResponses[keyof RevokeConnectorConnectionResponses]
3310
3310
 
3311
+ export type ListPendingConnectorConnectionRunsData = {
3312
+ body?: never
3313
+ path: {
3314
+ connectorId: string
3315
+ }
3316
+ query?: never
3317
+ url: "/api/connectors/{connectorId}/connection-runs"
3318
+ }
3319
+
3320
+ export type ListPendingConnectorConnectionRunsErrors = {
3321
+ /**
3322
+ * Response for status 400
3323
+ */
3324
+ 400: {
3325
+ error: string
3326
+ /**
3327
+ * Stable machine-readable failure code for programmatic handling.
3328
+ */
3329
+ code?: "connector.authorization_invalid" | "connector.configuration_invalid"
3330
+ }
3331
+ /**
3332
+ * Response for status 403
3333
+ */
3334
+ 403: {
3335
+ error: string
3336
+ }
3337
+ /**
3338
+ * Response for status 404
3339
+ */
3340
+ 404: {
3341
+ error: string
3342
+ /**
3343
+ * Stable machine-readable failure code for programmatic handling.
3344
+ */
3345
+ code?: "connector.not_found"
3346
+ }
3347
+ /**
3348
+ * Response for status 500
3349
+ */
3350
+ 500: {
3351
+ error: string
3352
+ /**
3353
+ * Stable machine-readable failure code for programmatic handling.
3354
+ */
3355
+ code?: "internal.unexpected"
3356
+ }
3357
+ }
3358
+
3359
+ export type ListPendingConnectorConnectionRunsError =
3360
+ ListPendingConnectorConnectionRunsErrors[keyof ListPendingConnectorConnectionRunsErrors]
3361
+
3362
+ export type ListPendingConnectorConnectionRunsResponses = {
3363
+ /**
3364
+ * Response for status 200
3365
+ */
3366
+ 200: Array<
3367
+ | {
3368
+ id: string
3369
+ connectorId: string
3370
+ kind: "connect" | "reauthorize"
3371
+ owner: {
3372
+ type: "project"
3373
+ }
3374
+ slot: string
3375
+ createdAt: string
3376
+ updatedAt: string
3377
+ status: "waiting"
3378
+ waitingFor: "provider_authorization"
3379
+ expiresAt: string
3380
+ }
3381
+ | {
3382
+ id: string
3383
+ connectorId: string
3384
+ kind: "connect" | "reauthorize"
3385
+ owner: {
3386
+ type: "project"
3387
+ }
3388
+ slot: string
3389
+ createdAt: string
3390
+ updatedAt: string
3391
+ status: "running"
3392
+ }
3393
+ | {
3394
+ id: string
3395
+ connectorId: string
3396
+ kind: "connect" | "reauthorize"
3397
+ owner: {
3398
+ type: "project"
3399
+ }
3400
+ slot: string
3401
+ createdAt: string
3402
+ updatedAt: string
3403
+ status: "waiting"
3404
+ waitingFor: "account_selection"
3405
+ accounts: Array<{
3406
+ id: string
3407
+ label: string
3408
+ description?: string
3409
+ avatarUrl?: string
3410
+ }>
3411
+ }
3412
+ | {
3413
+ id: string
3414
+ connectorId: string
3415
+ kind: "connect" | "reauthorize"
3416
+ owner: {
3417
+ type: "project"
3418
+ }
3419
+ slot: string
3420
+ createdAt: string
3421
+ updatedAt: string
3422
+ status: "succeeded"
3423
+ connections: Array<{
3424
+ id: string
3425
+ connectorId: string
3426
+ owner: {
3427
+ type: "project"
3428
+ }
3429
+ slot: string
3430
+ account: {
3431
+ id: string
3432
+ label: string
3433
+ description?: string
3434
+ avatarUrl?: string
3435
+ }
3436
+ status: "connected" | "needs_reauthorization" | "disconnected"
3437
+ }>
3438
+ finishedAt: string
3439
+ }
3440
+ | {
3441
+ id: string
3442
+ connectorId: string
3443
+ kind: "connect" | "reauthorize"
3444
+ owner: {
3445
+ type: "project"
3446
+ }
3447
+ slot: string
3448
+ createdAt: string
3449
+ updatedAt: string
3450
+ status: "failed"
3451
+ error: {
3452
+ code:
3453
+ | "internal.unexpected"
3454
+ | "connector.adapter_invalid"
3455
+ | "connector.authorization_invalid"
3456
+ | "connector.authorization_required"
3457
+ | "connector.credentials_unavailable"
3458
+ | "connector.not_found"
3459
+ | "connector.operation_conflict"
3460
+ | "connector.operation_in_progress"
3461
+ | "connector.provider_failed"
3462
+ | "connector.provider_unavailable"
3463
+ message: string
3464
+ retryable: boolean
3465
+ at: string
3466
+ /**
3467
+ * Any JSON-compatible value.
3468
+ */
3469
+ details?:
3470
+ | string
3471
+ | number
3472
+ | boolean
3473
+ | Array<unknown>
3474
+ | {
3475
+ [key: string]: unknown
3476
+ }
3477
+ | null
3478
+ httpStatus?: number
3479
+ redacted?: true
3480
+ truncated?: true
3481
+ }
3482
+ finishedAt: string
3483
+ }
3484
+ | {
3485
+ id: string
3486
+ connectorId: string
3487
+ kind: "connect" | "reauthorize"
3488
+ owner: {
3489
+ type: "project"
3490
+ }
3491
+ slot: string
3492
+ createdAt: string
3493
+ updatedAt: string
3494
+ status: "cancelled" | "expired"
3495
+ finishedAt: string
3496
+ }
3497
+ >
3498
+ }
3499
+
3500
+ export type ListPendingConnectorConnectionRunsResponse =
3501
+ ListPendingConnectorConnectionRunsResponses[keyof ListPendingConnectorConnectionRunsResponses]
3502
+
3311
3503
  export type StartConnectorConnectionRunData = {
3312
3504
  body: {
3313
3505
  slot: string
@@ -3526,7 +3718,6 @@ export type GetConnectorConnectionRunResponses = {
3526
3718
  description?: string
3527
3719
  avatarUrl?: string
3528
3720
  }>
3529
- expiresAt: string
3530
3721
  }
3531
3722
  | {
3532
3723
  id: string
@@ -3736,7 +3927,6 @@ export type AddConnectorConnectionResponses = {
3736
3927
  description?: string
3737
3928
  avatarUrl?: string
3738
3929
  }>
3739
- expiresAt: string
3740
3930
  }
3741
3931
  | {
3742
3932
  id: string
@@ -3947,7 +4137,6 @@ export type SelectConnectorConnectionRunAccountResponses = {
3947
4137
  description?: string
3948
4138
  avatarUrl?: string
3949
4139
  }>
3950
- expiresAt: string
3951
4140
  }
3952
4141
  | {
3953
4142
  id: string
@@ -6953,6 +7142,10 @@ export type GetWorkflowRunFileContentData = {
6953
7142
  runId: string
6954
7143
  }
6955
7144
  query: {
7145
+ /**
7146
+ * Session audience for file navigation without Origin; must match Origin when present
7147
+ */
7148
+ audience?: "atlas" | "app"
6956
7149
  path: string
6957
7150
  disposition?: "inline" | "attachment"
6958
7151
  /**
@@ -7005,6 +7198,10 @@ export type HeadWorkflowRunFileContentData = {
7005
7198
  runId: string
7006
7199
  }
7007
7200
  query: {
7201
+ /**
7202
+ * Session audience for file navigation without Origin; must match Origin when present
7203
+ */
7204
+ audience?: "atlas" | "app"
7008
7205
  path: string
7009
7206
  disposition?: "inline" | "attachment"
7010
7207
  /**
@@ -7055,6 +7252,10 @@ export type GetWorkflowNodeRunFileContentData = {
7055
7252
  nodeKey: string
7056
7253
  }
7057
7254
  query: {
7255
+ /**
7256
+ * Session audience for file navigation without Origin; must match Origin when present
7257
+ */
7258
+ audience?: "atlas" | "app"
7058
7259
  path: string
7059
7260
  disposition?: "inline" | "attachment"
7060
7261
  /**
@@ -7108,6 +7309,10 @@ export type HeadWorkflowNodeRunFileContentData = {
7108
7309
  nodeKey: string
7109
7310
  }
7110
7311
  query: {
7312
+ /**
7313
+ * Session audience for file navigation without Origin; must match Origin when present
7314
+ */
7315
+ audience?: "atlas" | "app"
7111
7316
  path: string
7112
7317
  disposition?: "inline" | "attachment"
7113
7318
  /**
@@ -8405,6 +8610,10 @@ export type GetObjectFileContentData = {
8405
8610
  objectId: string
8406
8611
  }
8407
8612
  query: {
8613
+ /**
8614
+ * Session audience for file navigation without Origin; must match Origin when present
8615
+ */
8616
+ audience?: "atlas" | "app"
8408
8617
  path: string
8409
8618
  disposition?: "inline" | "attachment"
8410
8619
  /**
@@ -8453,6 +8662,10 @@ export type HeadObjectFileContentData = {
8453
8662
  objectId: string
8454
8663
  }
8455
8664
  query: {
8665
+ /**
8666
+ * Session audience for file navigation without Origin; must match Origin when present
8667
+ */
8668
+ audience?: "atlas" | "app"
8456
8669
  path: string
8457
8670
  disposition?: "inline" | "attachment"
8458
8671
  /**
@@ -8823,6 +9036,7 @@ export type CreateFileUploadResponses = {
8823
9036
  }
8824
9037
  | {
8825
9038
  strategy: "multipart"
9039
+ partReceipt: "etag" | "none"
8826
9040
  uploadId: string
8827
9041
  partSizeBytes: number
8828
9042
  expiresAt: string
@@ -8943,7 +9157,7 @@ export type CompleteFileUploadData = {
8943
9157
  digest?: string
8944
9158
  parts?: Array<{
8945
9159
  partNumber: number
8946
- etag: string
9160
+ etag?: string
8947
9161
  }>
8948
9162
  }
8949
9163
  path: {
@@ -9315,6 +9529,10 @@ export type GetActionRunFileContentData = {
9315
9529
  runId: string
9316
9530
  }
9317
9531
  query: {
9532
+ /**
9533
+ * Session audience for file navigation without Origin; must match Origin when present
9534
+ */
9535
+ audience?: "atlas" | "app"
9318
9536
  path: string
9319
9537
  disposition?: "inline" | "attachment"
9320
9538
  /**
@@ -9367,6 +9585,10 @@ export type HeadActionRunFileContentData = {
9367
9585
  runId: string
9368
9586
  }
9369
9587
  query: {
9588
+ /**
9589
+ * Session audience for file navigation without Origin; must match Origin when present
9590
+ */
9591
+ audience?: "atlas" | "app"
9370
9592
  path: string
9371
9593
  disposition?: "inline" | "attachment"
9372
9594
  /**
@@ -10139,6 +10361,10 @@ export type GetAgentMessageFileContentData = {
10139
10361
  messageId: string
10140
10362
  }
10141
10363
  query: {
10364
+ /**
10365
+ * Session audience for file navigation without Origin; must match Origin when present
10366
+ */
10367
+ audience?: "atlas" | "app"
10142
10368
  path: string
10143
10369
  disposition?: "inline" | "attachment"
10144
10370
  /**
@@ -10192,6 +10418,10 @@ export type HeadAgentMessageFileContentData = {
10192
10418
  messageId: string
10193
10419
  }
10194
10420
  query: {
10421
+ /**
10422
+ * Session audience for file navigation without Origin; must match Origin when present
10423
+ */
10424
+ audience?: "atlas" | "app"
10195
10425
  path: string
10196
10426
  disposition?: "inline" | "attachment"
10197
10427
  /**
@@ -12291,6 +12521,7 @@ export type ListProjectionsResponses = {
12291
12521
  progress: {
12292
12522
  sourceRowsRead: number
12293
12523
  sourceRowsSkipped: number
12524
+ sourceChangesRead?: number
12294
12525
  }
12295
12526
  queuedAt: string
12296
12527
  startedAt?: string
@@ -12346,6 +12577,7 @@ export type ListProjectionsResponses = {
12346
12577
  progress: {
12347
12578
  sourceRowsRead: number
12348
12579
  sourceRowsSkipped: number
12580
+ sourceChangesRead?: number
12349
12581
  }
12350
12582
  queuedAt: string
12351
12583
  startedAt?: string
@@ -12402,6 +12634,7 @@ export type ListProjectionsResponses = {
12402
12634
  progress: {
12403
12635
  sourceRowsRead: number
12404
12636
  sourceRowsSkipped: number
12637
+ sourceChangesRead?: number
12405
12638
  }
12406
12639
  queuedAt: string
12407
12640
  startedAt?: string
@@ -12469,6 +12702,7 @@ export type ListProjectionsResponses = {
12469
12702
  progress: {
12470
12703
  sourceRowsRead: number
12471
12704
  sourceRowsSkipped: number
12705
+ sourceChangesRead?: number
12472
12706
  }
12473
12707
  queuedAt: string
12474
12708
  startedAt?: string
@@ -12524,6 +12758,7 @@ export type ListProjectionsResponses = {
12524
12758
  progress: {
12525
12759
  sourceRowsRead: number
12526
12760
  sourceRowsSkipped: number
12761
+ sourceChangesRead?: number
12527
12762
  }
12528
12763
  queuedAt: string
12529
12764
  startedAt?: string
@@ -12580,6 +12815,7 @@ export type ListProjectionsResponses = {
12580
12815
  progress: {
12581
12816
  sourceRowsRead: number
12582
12817
  sourceRowsSkipped: number
12818
+ sourceChangesRead?: number
12583
12819
  }
12584
12820
  queuedAt: string
12585
12821
  startedAt?: string
@@ -12651,6 +12887,7 @@ export type ListProjectionsResponses = {
12651
12887
  progress: {
12652
12888
  sourceRowsRead: number
12653
12889
  sourceRowsSkipped: number
12890
+ sourceChangesRead?: number
12654
12891
  }
12655
12892
  queuedAt: string
12656
12893
  startedAt?: string
@@ -12706,6 +12943,7 @@ export type ListProjectionsResponses = {
12706
12943
  progress: {
12707
12944
  sourceRowsRead: number
12708
12945
  sourceRowsSkipped: number
12946
+ sourceChangesRead?: number
12709
12947
  }
12710
12948
  queuedAt: string
12711
12949
  startedAt?: string
@@ -12762,6 +13000,7 @@ export type ListProjectionsResponses = {
12762
13000
  progress: {
12763
13001
  sourceRowsRead: number
12764
13002
  sourceRowsSkipped: number
13003
+ sourceChangesRead?: number
12765
13004
  }
12766
13005
  queuedAt: string
12767
13006
  startedAt?: string
@@ -12874,6 +13113,7 @@ export type GetProjectionResponses = {
12874
13113
  progress: {
12875
13114
  sourceRowsRead: number
12876
13115
  sourceRowsSkipped: number
13116
+ sourceChangesRead?: number
12877
13117
  }
12878
13118
  queuedAt: string
12879
13119
  startedAt?: string
@@ -12929,6 +13169,7 @@ export type GetProjectionResponses = {
12929
13169
  progress: {
12930
13170
  sourceRowsRead: number
12931
13171
  sourceRowsSkipped: number
13172
+ sourceChangesRead?: number
12932
13173
  }
12933
13174
  queuedAt: string
12934
13175
  startedAt?: string
@@ -12985,6 +13226,7 @@ export type GetProjectionResponses = {
12985
13226
  progress: {
12986
13227
  sourceRowsRead: number
12987
13228
  sourceRowsSkipped: number
13229
+ sourceChangesRead?: number
12988
13230
  }
12989
13231
  queuedAt: string
12990
13232
  startedAt?: string
@@ -13052,6 +13294,7 @@ export type GetProjectionResponses = {
13052
13294
  progress: {
13053
13295
  sourceRowsRead: number
13054
13296
  sourceRowsSkipped: number
13297
+ sourceChangesRead?: number
13055
13298
  }
13056
13299
  queuedAt: string
13057
13300
  startedAt?: string
@@ -13107,6 +13350,7 @@ export type GetProjectionResponses = {
13107
13350
  progress: {
13108
13351
  sourceRowsRead: number
13109
13352
  sourceRowsSkipped: number
13353
+ sourceChangesRead?: number
13110
13354
  }
13111
13355
  queuedAt: string
13112
13356
  startedAt?: string
@@ -13163,6 +13407,7 @@ export type GetProjectionResponses = {
13163
13407
  progress: {
13164
13408
  sourceRowsRead: number
13165
13409
  sourceRowsSkipped: number
13410
+ sourceChangesRead?: number
13166
13411
  }
13167
13412
  queuedAt: string
13168
13413
  startedAt?: string
@@ -13234,6 +13479,7 @@ export type GetProjectionResponses = {
13234
13479
  progress: {
13235
13480
  sourceRowsRead: number
13236
13481
  sourceRowsSkipped: number
13482
+ sourceChangesRead?: number
13237
13483
  }
13238
13484
  queuedAt: string
13239
13485
  startedAt?: string
@@ -13289,6 +13535,7 @@ export type GetProjectionResponses = {
13289
13535
  progress: {
13290
13536
  sourceRowsRead: number
13291
13537
  sourceRowsSkipped: number
13538
+ sourceChangesRead?: number
13292
13539
  }
13293
13540
  queuedAt: string
13294
13541
  startedAt?: string
@@ -13345,6 +13592,7 @@ export type GetProjectionResponses = {
13345
13592
  progress: {
13346
13593
  sourceRowsRead: number
13347
13594
  sourceRowsSkipped: number
13595
+ sourceChangesRead?: number
13348
13596
  }
13349
13597
  queuedAt: string
13350
13598
  startedAt?: string
@@ -13447,6 +13695,7 @@ export type ListProjectionRunsResponses = {
13447
13695
  progress: {
13448
13696
  sourceRowsRead: number
13449
13697
  sourceRowsSkipped: number
13698
+ sourceChangesRead?: number
13450
13699
  }
13451
13700
  queuedAt: string
13452
13701
  startedAt?: string
@@ -13502,6 +13751,7 @@ export type ListProjectionRunsResponses = {
13502
13751
  progress: {
13503
13752
  sourceRowsRead: number
13504
13753
  sourceRowsSkipped: number
13754
+ sourceChangesRead?: number
13505
13755
  }
13506
13756
  queuedAt: string
13507
13757
  startedAt?: string
@@ -13558,6 +13808,7 @@ export type ListProjectionRunsResponses = {
13558
13808
  progress: {
13559
13809
  sourceRowsRead: number
13560
13810
  sourceRowsSkipped: number
13811
+ sourceChangesRead?: number
13561
13812
  }
13562
13813
  queuedAt: string
13563
13814
  startedAt?: string
@@ -13659,6 +13910,7 @@ export type GetProjectionRunResponses = {
13659
13910
  progress: {
13660
13911
  sourceRowsRead: number
13661
13912
  sourceRowsSkipped: number
13913
+ sourceChangesRead?: number
13662
13914
  }
13663
13915
  queuedAt: string
13664
13916
  startedAt?: string
@@ -13714,6 +13966,7 @@ export type GetProjectionRunResponses = {
13714
13966
  progress: {
13715
13967
  sourceRowsRead: number
13716
13968
  sourceRowsSkipped: number
13969
+ sourceChangesRead?: number
13717
13970
  }
13718
13971
  queuedAt: string
13719
13972
  startedAt?: string
@@ -13770,6 +14023,7 @@ export type GetProjectionRunResponses = {
13770
14023
  progress: {
13771
14024
  sourceRowsRead: number
13772
14025
  sourceRowsSkipped: number
14026
+ sourceChangesRead?: number
13773
14027
  }
13774
14028
  queuedAt: string
13775
14029
  startedAt?: string