@sixb/client 0.1.10 → 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 +486 -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 +204 -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 +234 -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
  /**