@sixb/client 0.1.18 → 0.1.20
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/README.md +13 -31
- package/dist/actions.d.ts +9 -50
- package/dist/actions.d.ts.map +1 -1
- package/dist/browser.d.ts +1 -4
- package/dist/browser.d.ts.map +1 -1
- package/dist/browser.js +2 -4
- package/dist/browser.js.map +3 -3
- package/dist/{chunk-pvmd5f18.js → chunk-g05ar78c.js} +13 -223
- package/dist/chunk-g05ar78c.js.map +17 -0
- package/dist/{chunk-jh4ts8mt.js → chunk-m2rmbshc.js} +3 -2
- package/dist/{chunk-jh4ts8mt.js.map → chunk-m2rmbshc.js.map} +3 -3
- package/dist/chunk-tkjkrcdt.js.map +2 -2
- package/dist/connectors/queries.d.ts.map +1 -1
- package/dist/events-builder.d.ts +1 -26
- package/dist/events-builder.d.ts.map +1 -1
- package/dist/events-transport.d.ts +1 -3
- package/dist/events-transport.d.ts.map +1 -1
- package/dist/file.d.ts +1 -3
- package/dist/file.d.ts.map +1 -1
- package/dist/generated/@tanstack/react-query.gen.d.ts +177 -200
- package/dist/generated/@tanstack/react-query.gen.d.ts.map +1 -1
- package/dist/generated/sdk.gen.d.ts +2 -0
- package/dist/generated/sdk.gen.d.ts.map +1 -1
- package/dist/generated/types.gen.d.ts +142 -78
- package/dist/generated/types.gen.d.ts.map +1 -1
- package/dist/hooks.js +15 -26
- package/dist/hooks.js.map +4 -4
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -12
- package/dist/index.js.map +1 -1
- package/dist/models.d.ts.map +1 -1
- package/dist/models.js +1 -1
- package/dist/query-hooks.d.ts +5 -5
- package/dist/query-hooks.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/actions.ts +9 -288
- package/src/agent-streams.ts +1 -1
- package/src/browser.ts +1 -6
- package/src/events-builder.ts +2 -78
- package/src/events-transport.ts +2 -5
- package/src/file.ts +6 -6
- package/src/generated/@tanstack/react-query.gen.ts +2 -0
- package/src/generated/sdk.gen.ts +2 -0
- package/src/generated/types.gen.ts +207 -114
- package/src/index.ts +2 -1
- package/src/models.ts +5 -3
- package/src/query-hooks.ts +29 -44
- package/dist/chunk-pvmd5f18.js.map +0 -17
|
@@ -430,10 +430,6 @@ export type GetAuthSessionResponses = {
|
|
|
430
430
|
| {
|
|
431
431
|
authenticated: true
|
|
432
432
|
csrfToken?: string
|
|
433
|
-
applicationAccess: {
|
|
434
|
-
allowed: boolean
|
|
435
|
-
audience: "atlas" | "app"
|
|
436
|
-
}
|
|
437
433
|
user: {
|
|
438
434
|
id: string
|
|
439
435
|
email: string
|
|
@@ -504,7 +500,6 @@ export type ListAuthSessionsResponses = {
|
|
|
504
500
|
200: {
|
|
505
501
|
sessions: Array<{
|
|
506
502
|
id: string
|
|
507
|
-
audience?: "atlas" | "app"
|
|
508
503
|
current: boolean
|
|
509
504
|
createdAt: string
|
|
510
505
|
expiresAt: string
|
|
@@ -1294,7 +1289,6 @@ export type CreateAuthInvitationData = {
|
|
|
1294
1289
|
body: {
|
|
1295
1290
|
email: string
|
|
1296
1291
|
groupIds?: Array<string>
|
|
1297
|
-
destinationId?: "atlas" | "app"
|
|
1298
1292
|
expiresAt?: string
|
|
1299
1293
|
returnTo?: string
|
|
1300
1294
|
revealLink?: boolean
|
|
@@ -1409,11 +1403,6 @@ export type GetAuthInvitationOptionsResponses = {
|
|
|
1409
1403
|
label?: string
|
|
1410
1404
|
description?: string
|
|
1411
1405
|
}>
|
|
1412
|
-
destinations: Array<{
|
|
1413
|
-
id: "atlas" | "app"
|
|
1414
|
-
label: string
|
|
1415
|
-
}>
|
|
1416
|
-
defaultDestinationId?: "atlas" | "app"
|
|
1417
1406
|
canInviteWithoutGroups: boolean
|
|
1418
1407
|
capabilities: {
|
|
1419
1408
|
createInvitation:
|
|
@@ -1532,10 +1521,16 @@ export type GetAuthMembershipOptionsResponses = {
|
|
|
1532
1521
|
label?: string
|
|
1533
1522
|
description?: string
|
|
1534
1523
|
}>
|
|
1524
|
+
serviceAccountGroups: Array<{
|
|
1525
|
+
id: string
|
|
1526
|
+
label?: string
|
|
1527
|
+
description?: string
|
|
1528
|
+
}>
|
|
1535
1529
|
capabilities: {
|
|
1536
1530
|
invite: boolean
|
|
1537
1531
|
assignGroups: boolean
|
|
1538
1532
|
suspend: boolean
|
|
1533
|
+
serviceAccounts: boolean
|
|
1539
1534
|
}
|
|
1540
1535
|
}
|
|
1541
1536
|
}
|
|
@@ -7409,10 +7404,6 @@ export type GetWorkflowRunFileContentData = {
|
|
|
7409
7404
|
runId: string
|
|
7410
7405
|
}
|
|
7411
7406
|
query: {
|
|
7412
|
-
/**
|
|
7413
|
-
* Session audience for file navigation without Origin; must match Origin when present
|
|
7414
|
-
*/
|
|
7415
|
-
audience?: "atlas" | "app"
|
|
7416
7407
|
path: string
|
|
7417
7408
|
disposition?: "inline" | "attachment"
|
|
7418
7409
|
/**
|
|
@@ -7465,10 +7456,6 @@ export type HeadWorkflowRunFileContentData = {
|
|
|
7465
7456
|
runId: string
|
|
7466
7457
|
}
|
|
7467
7458
|
query: {
|
|
7468
|
-
/**
|
|
7469
|
-
* Session audience for file navigation without Origin; must match Origin when present
|
|
7470
|
-
*/
|
|
7471
|
-
audience?: "atlas" | "app"
|
|
7472
7459
|
path: string
|
|
7473
7460
|
disposition?: "inline" | "attachment"
|
|
7474
7461
|
/**
|
|
@@ -7519,10 +7506,6 @@ export type GetWorkflowNodeRunFileContentData = {
|
|
|
7519
7506
|
nodeKey: string
|
|
7520
7507
|
}
|
|
7521
7508
|
query: {
|
|
7522
|
-
/**
|
|
7523
|
-
* Session audience for file navigation without Origin; must match Origin when present
|
|
7524
|
-
*/
|
|
7525
|
-
audience?: "atlas" | "app"
|
|
7526
7509
|
path: string
|
|
7527
7510
|
disposition?: "inline" | "attachment"
|
|
7528
7511
|
/**
|
|
@@ -7576,10 +7559,6 @@ export type HeadWorkflowNodeRunFileContentData = {
|
|
|
7576
7559
|
nodeKey: string
|
|
7577
7560
|
}
|
|
7578
7561
|
query: {
|
|
7579
|
-
/**
|
|
7580
|
-
* Session audience for file navigation without Origin; must match Origin when present
|
|
7581
|
-
*/
|
|
7582
|
-
audience?: "atlas" | "app"
|
|
7583
7562
|
path: string
|
|
7584
7563
|
disposition?: "inline" | "attachment"
|
|
7585
7564
|
/**
|
|
@@ -8931,10 +8910,6 @@ export type GetObjectFileContentData = {
|
|
|
8931
8910
|
objectId: string
|
|
8932
8911
|
}
|
|
8933
8912
|
query: {
|
|
8934
|
-
/**
|
|
8935
|
-
* Session audience for file navigation without Origin; must match Origin when present
|
|
8936
|
-
*/
|
|
8937
|
-
audience?: "atlas" | "app"
|
|
8938
8913
|
path: string
|
|
8939
8914
|
disposition?: "inline" | "attachment"
|
|
8940
8915
|
/**
|
|
@@ -8987,10 +8962,6 @@ export type HeadObjectFileContentData = {
|
|
|
8987
8962
|
objectId: string
|
|
8988
8963
|
}
|
|
8989
8964
|
query: {
|
|
8990
|
-
/**
|
|
8991
|
-
* Session audience for file navigation without Origin; must match Origin when present
|
|
8992
|
-
*/
|
|
8993
|
-
audience?: "atlas" | "app"
|
|
8994
8965
|
path: string
|
|
8995
8966
|
disposition?: "inline" | "attachment"
|
|
8996
8967
|
/**
|
|
@@ -9268,19 +9239,193 @@ export type RequestActionErrors = {
|
|
|
9268
9239
|
404: {
|
|
9269
9240
|
error: string
|
|
9270
9241
|
}
|
|
9242
|
+
/**
|
|
9243
|
+
* Response for status 409
|
|
9244
|
+
*/
|
|
9245
|
+
409: {
|
|
9246
|
+
error: string
|
|
9247
|
+
/**
|
|
9248
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
9249
|
+
*/
|
|
9250
|
+
code: "action.run_in_progress"
|
|
9251
|
+
}
|
|
9252
|
+
/**
|
|
9253
|
+
* Response for status 500
|
|
9254
|
+
*/
|
|
9255
|
+
500: {
|
|
9256
|
+
error: string
|
|
9257
|
+
/**
|
|
9258
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
9259
|
+
*/
|
|
9260
|
+
code:
|
|
9261
|
+
| "action.phase_failed"
|
|
9262
|
+
| "action.read_conflict"
|
|
9263
|
+
| "action.run_in_progress"
|
|
9264
|
+
| "action.timeout"
|
|
9265
|
+
| "agent.execution_failed"
|
|
9266
|
+
| "ai.usage_limit_exceeded"
|
|
9267
|
+
| "ai.usage_limit_unavailable"
|
|
9268
|
+
| "connector.adapter_invalid"
|
|
9269
|
+
| "connector.authorization_invalid"
|
|
9270
|
+
| "connector.authorization_required"
|
|
9271
|
+
| "connector.configuration_invalid"
|
|
9272
|
+
| "connector.credentials_unavailable"
|
|
9273
|
+
| "connector.not_found"
|
|
9274
|
+
| "connector.operation_conflict"
|
|
9275
|
+
| "connector.operation_in_progress"
|
|
9276
|
+
| "connector.provider_failed"
|
|
9277
|
+
| "connector.provider_unavailable"
|
|
9278
|
+
| "connector.replacement_required"
|
|
9279
|
+
| "connector.revocation_pending"
|
|
9280
|
+
| "dataset.not_found"
|
|
9281
|
+
| "dataset.version_incompatible"
|
|
9282
|
+
| "dataset.version_not_found"
|
|
9283
|
+
| "dataset.version_read_inconsistent"
|
|
9284
|
+
| "event.delivery_failed"
|
|
9285
|
+
| "internal.unexpected"
|
|
9286
|
+
| "queue.enqueue_failed"
|
|
9287
|
+
| "pipeline.step_failed"
|
|
9288
|
+
| "projection.definition_invalid"
|
|
9289
|
+
| "projection.execution_failed"
|
|
9290
|
+
| "projection.not_found"
|
|
9291
|
+
| "projection.run_already_terminal"
|
|
9292
|
+
| "projection.run_identity_mismatch"
|
|
9293
|
+
| "runtime.cancelled"
|
|
9294
|
+
| "runtime.stopping"
|
|
9295
|
+
| "vector.model_unavailable"
|
|
9296
|
+
| "vector.response_invalid"
|
|
9297
|
+
| "vector.outcome_unknown"
|
|
9298
|
+
| "storage.unavailable"
|
|
9299
|
+
| "sync.execution_failed"
|
|
9300
|
+
| "webhook.delivery_failed"
|
|
9301
|
+
| "webhook.delivery_rejected"
|
|
9302
|
+
| "workflow.node_failed"
|
|
9303
|
+
}
|
|
9304
|
+
/**
|
|
9305
|
+
* Response for status 503
|
|
9306
|
+
*/
|
|
9307
|
+
503: {
|
|
9308
|
+
error: string
|
|
9309
|
+
/**
|
|
9310
|
+
* Stable machine-readable failure code for programmatic handling.
|
|
9311
|
+
*/
|
|
9312
|
+
code: "runtime.stopping"
|
|
9313
|
+
}
|
|
9271
9314
|
}
|
|
9272
9315
|
|
|
9273
9316
|
export type RequestActionError = RequestActionErrors[keyof RequestActionErrors]
|
|
9274
9317
|
|
|
9275
9318
|
export type RequestActionResponses = {
|
|
9276
9319
|
/**
|
|
9277
|
-
* Response for status
|
|
9320
|
+
* Response for status 200
|
|
9278
9321
|
*/
|
|
9279
|
-
|
|
9280
|
-
|
|
9281
|
-
|
|
9282
|
-
|
|
9283
|
-
|
|
9322
|
+
200: {
|
|
9323
|
+
id: string
|
|
9324
|
+
projectId: string
|
|
9325
|
+
actionId: string
|
|
9326
|
+
subject:
|
|
9327
|
+
| {
|
|
9328
|
+
kind: "none"
|
|
9329
|
+
}
|
|
9330
|
+
| {
|
|
9331
|
+
kind: "object"
|
|
9332
|
+
objectTypeId: string
|
|
9333
|
+
primaryId: string
|
|
9334
|
+
}
|
|
9335
|
+
status: "succeeded" | "failed"
|
|
9336
|
+
phase: "validation" | "writeback" | "edits" | "commit" | "effects"
|
|
9337
|
+
startedAt: string
|
|
9338
|
+
finishedAt: string
|
|
9339
|
+
error?: {
|
|
9340
|
+
code:
|
|
9341
|
+
| "internal.unexpected"
|
|
9342
|
+
| "runtime.cancelled"
|
|
9343
|
+
| "action.phase_failed"
|
|
9344
|
+
| "action.read_conflict"
|
|
9345
|
+
| "action.timeout"
|
|
9346
|
+
message: string
|
|
9347
|
+
retryable: boolean
|
|
9348
|
+
at: string
|
|
9349
|
+
details: {
|
|
9350
|
+
actionId: string
|
|
9351
|
+
runId: string
|
|
9352
|
+
phase: "validation" | "writeback" | "edits" | "commit" | "effects"
|
|
9353
|
+
}
|
|
9354
|
+
httpStatus?: number
|
|
9355
|
+
redacted?: true
|
|
9356
|
+
truncated?: true
|
|
9357
|
+
}
|
|
9358
|
+
params: {
|
|
9359
|
+
[key: string]: unknown
|
|
9360
|
+
}
|
|
9361
|
+
writeback?:
|
|
9362
|
+
| {
|
|
9363
|
+
status: "succeeded"
|
|
9364
|
+
completedAt: string
|
|
9365
|
+
/**
|
|
9366
|
+
* Any JSON-compatible value.
|
|
9367
|
+
*/
|
|
9368
|
+
result:
|
|
9369
|
+
| string
|
|
9370
|
+
| number
|
|
9371
|
+
| boolean
|
|
9372
|
+
| Array<unknown>
|
|
9373
|
+
| {
|
|
9374
|
+
[key: string]: unknown
|
|
9375
|
+
}
|
|
9376
|
+
| null
|
|
9377
|
+
}
|
|
9378
|
+
| {
|
|
9379
|
+
status: "failed"
|
|
9380
|
+
completedAt: string
|
|
9381
|
+
error: {
|
|
9382
|
+
code:
|
|
9383
|
+
| "internal.unexpected"
|
|
9384
|
+
| "runtime.cancelled"
|
|
9385
|
+
| "action.phase_failed"
|
|
9386
|
+
| "action.read_conflict"
|
|
9387
|
+
| "action.timeout"
|
|
9388
|
+
message: string
|
|
9389
|
+
retryable: boolean
|
|
9390
|
+
at: string
|
|
9391
|
+
details: {
|
|
9392
|
+
actionId: string
|
|
9393
|
+
runId: string
|
|
9394
|
+
phase: "writeback"
|
|
9395
|
+
}
|
|
9396
|
+
httpStatus?: number
|
|
9397
|
+
redacted?: true
|
|
9398
|
+
truncated?: true
|
|
9399
|
+
}
|
|
9400
|
+
}
|
|
9401
|
+
effects?:
|
|
9402
|
+
| {
|
|
9403
|
+
status: "succeeded"
|
|
9404
|
+
completedAt: string
|
|
9405
|
+
}
|
|
9406
|
+
| {
|
|
9407
|
+
status: "failed"
|
|
9408
|
+
completedAt: string
|
|
9409
|
+
error: {
|
|
9410
|
+
code:
|
|
9411
|
+
| "internal.unexpected"
|
|
9412
|
+
| "runtime.cancelled"
|
|
9413
|
+
| "action.phase_failed"
|
|
9414
|
+
| "action.read_conflict"
|
|
9415
|
+
| "action.timeout"
|
|
9416
|
+
message: string
|
|
9417
|
+
retryable: boolean
|
|
9418
|
+
at: string
|
|
9419
|
+
details: {
|
|
9420
|
+
actionId: string
|
|
9421
|
+
runId: string
|
|
9422
|
+
phase: "effects"
|
|
9423
|
+
}
|
|
9424
|
+
httpStatus?: number
|
|
9425
|
+
redacted?: true
|
|
9426
|
+
truncated?: true
|
|
9427
|
+
}
|
|
9428
|
+
}
|
|
9284
9429
|
}
|
|
9285
9430
|
}
|
|
9286
9431
|
|
|
@@ -9426,6 +9571,12 @@ export type UploadFileContentErrors = {
|
|
|
9426
9571
|
410: {
|
|
9427
9572
|
error: string
|
|
9428
9573
|
}
|
|
9574
|
+
/**
|
|
9575
|
+
* Response for status 413
|
|
9576
|
+
*/
|
|
9577
|
+
413: {
|
|
9578
|
+
error: string
|
|
9579
|
+
}
|
|
9429
9580
|
/**
|
|
9430
9581
|
* Response for status 501
|
|
9431
9582
|
*/
|
|
@@ -9638,7 +9789,7 @@ export type ListActionRunsData = {
|
|
|
9638
9789
|
path?: never
|
|
9639
9790
|
query?: {
|
|
9640
9791
|
actionId?: string
|
|
9641
|
-
status?: "
|
|
9792
|
+
status?: "succeeded" | "failed"
|
|
9642
9793
|
objectTypeId?: string
|
|
9643
9794
|
primaryId?: string
|
|
9644
9795
|
startedAfter?: string
|
|
@@ -9685,41 +9836,24 @@ export type ListActionRunsResponses = {
|
|
|
9685
9836
|
objectTypeId: string
|
|
9686
9837
|
primaryId: string
|
|
9687
9838
|
}
|
|
9688
|
-
status: "
|
|
9689
|
-
phase
|
|
9690
|
-
|
|
9691
|
-
|
|
9692
|
-
| "validation"
|
|
9693
|
-
| "writeback"
|
|
9694
|
-
| "edits"
|
|
9695
|
-
| "commit"
|
|
9696
|
-
| "effects"
|
|
9697
|
-
| "cancelled"
|
|
9698
|
-
queuedAt: string
|
|
9699
|
-
startedAt?: string
|
|
9700
|
-
finishedAt?: string
|
|
9839
|
+
status: "succeeded" | "failed"
|
|
9840
|
+
phase: "validation" | "writeback" | "edits" | "commit" | "effects"
|
|
9841
|
+
startedAt: string
|
|
9842
|
+
finishedAt: string
|
|
9701
9843
|
error?: {
|
|
9702
9844
|
code:
|
|
9703
9845
|
| "internal.unexpected"
|
|
9704
9846
|
| "runtime.cancelled"
|
|
9705
|
-
| "queue.enqueue_failed"
|
|
9706
9847
|
| "action.phase_failed"
|
|
9707
9848
|
| "action.read_conflict"
|
|
9849
|
+
| "action.timeout"
|
|
9708
9850
|
message: string
|
|
9709
9851
|
retryable: boolean
|
|
9710
9852
|
at: string
|
|
9711
9853
|
details: {
|
|
9712
9854
|
actionId: string
|
|
9713
9855
|
runId: string
|
|
9714
|
-
phase:
|
|
9715
|
-
| "request"
|
|
9716
|
-
| "enqueue"
|
|
9717
|
-
| "validation"
|
|
9718
|
-
| "writeback"
|
|
9719
|
-
| "edits"
|
|
9720
|
-
| "commit"
|
|
9721
|
-
| "effects"
|
|
9722
|
-
| "cancelled"
|
|
9856
|
+
phase: "validation" | "writeback" | "edits" | "commit" | "effects"
|
|
9723
9857
|
}
|
|
9724
9858
|
httpStatus?: number
|
|
9725
9859
|
redacted?: true
|
|
@@ -9782,41 +9916,24 @@ export type GetActionRunResponses = {
|
|
|
9782
9916
|
objectTypeId: string
|
|
9783
9917
|
primaryId: string
|
|
9784
9918
|
}
|
|
9785
|
-
status: "
|
|
9786
|
-
phase
|
|
9787
|
-
|
|
9788
|
-
|
|
9789
|
-
| "validation"
|
|
9790
|
-
| "writeback"
|
|
9791
|
-
| "edits"
|
|
9792
|
-
| "commit"
|
|
9793
|
-
| "effects"
|
|
9794
|
-
| "cancelled"
|
|
9795
|
-
queuedAt: string
|
|
9796
|
-
startedAt?: string
|
|
9797
|
-
finishedAt?: string
|
|
9919
|
+
status: "succeeded" | "failed"
|
|
9920
|
+
phase: "validation" | "writeback" | "edits" | "commit" | "effects"
|
|
9921
|
+
startedAt: string
|
|
9922
|
+
finishedAt: string
|
|
9798
9923
|
error?: {
|
|
9799
9924
|
code:
|
|
9800
9925
|
| "internal.unexpected"
|
|
9801
9926
|
| "runtime.cancelled"
|
|
9802
|
-
| "queue.enqueue_failed"
|
|
9803
9927
|
| "action.phase_failed"
|
|
9804
9928
|
| "action.read_conflict"
|
|
9929
|
+
| "action.timeout"
|
|
9805
9930
|
message: string
|
|
9806
9931
|
retryable: boolean
|
|
9807
9932
|
at: string
|
|
9808
9933
|
details: {
|
|
9809
9934
|
actionId: string
|
|
9810
9935
|
runId: string
|
|
9811
|
-
phase:
|
|
9812
|
-
| "request"
|
|
9813
|
-
| "enqueue"
|
|
9814
|
-
| "validation"
|
|
9815
|
-
| "writeback"
|
|
9816
|
-
| "edits"
|
|
9817
|
-
| "commit"
|
|
9818
|
-
| "effects"
|
|
9819
|
-
| "cancelled"
|
|
9936
|
+
phase: "validation" | "writeback" | "edits" | "commit" | "effects"
|
|
9820
9937
|
}
|
|
9821
9938
|
httpStatus?: number
|
|
9822
9939
|
redacted?: true
|
|
@@ -9849,9 +9966,9 @@ export type GetActionRunResponses = {
|
|
|
9849
9966
|
code:
|
|
9850
9967
|
| "internal.unexpected"
|
|
9851
9968
|
| "runtime.cancelled"
|
|
9852
|
-
| "queue.enqueue_failed"
|
|
9853
9969
|
| "action.phase_failed"
|
|
9854
9970
|
| "action.read_conflict"
|
|
9971
|
+
| "action.timeout"
|
|
9855
9972
|
message: string
|
|
9856
9973
|
retryable: boolean
|
|
9857
9974
|
at: string
|
|
@@ -9877,9 +9994,9 @@ export type GetActionRunResponses = {
|
|
|
9877
9994
|
code:
|
|
9878
9995
|
| "internal.unexpected"
|
|
9879
9996
|
| "runtime.cancelled"
|
|
9880
|
-
| "queue.enqueue_failed"
|
|
9881
9997
|
| "action.phase_failed"
|
|
9882
9998
|
| "action.read_conflict"
|
|
9999
|
+
| "action.timeout"
|
|
9883
10000
|
message: string
|
|
9884
10001
|
retryable: boolean
|
|
9885
10002
|
at: string
|
|
@@ -9904,10 +10021,6 @@ export type GetActionRunFileContentData = {
|
|
|
9904
10021
|
runId: string
|
|
9905
10022
|
}
|
|
9906
10023
|
query: {
|
|
9907
|
-
/**
|
|
9908
|
-
* Session audience for file navigation without Origin; must match Origin when present
|
|
9909
|
-
*/
|
|
9910
|
-
audience?: "atlas" | "app"
|
|
9911
10024
|
path: string
|
|
9912
10025
|
disposition?: "inline" | "attachment"
|
|
9913
10026
|
/**
|
|
@@ -9960,10 +10073,6 @@ export type HeadActionRunFileContentData = {
|
|
|
9960
10073
|
runId: string
|
|
9961
10074
|
}
|
|
9962
10075
|
query: {
|
|
9963
|
-
/**
|
|
9964
|
-
* Session audience for file navigation without Origin; must match Origin when present
|
|
9965
|
-
*/
|
|
9966
|
-
audience?: "atlas" | "app"
|
|
9967
10076
|
path: string
|
|
9968
10077
|
disposition?: "inline" | "attachment"
|
|
9969
10078
|
/**
|
|
@@ -10892,10 +11001,6 @@ export type GetAgentMessageFileContentData = {
|
|
|
10892
11001
|
messageId: string
|
|
10893
11002
|
}
|
|
10894
11003
|
query: {
|
|
10895
|
-
/**
|
|
10896
|
-
* Session audience for file navigation without Origin; must match Origin when present
|
|
10897
|
-
*/
|
|
10898
|
-
audience?: "atlas" | "app"
|
|
10899
11004
|
path: string
|
|
10900
11005
|
disposition?: "inline" | "attachment"
|
|
10901
11006
|
/**
|
|
@@ -10949,10 +11054,6 @@ export type HeadAgentMessageFileContentData = {
|
|
|
10949
11054
|
messageId: string
|
|
10950
11055
|
}
|
|
10951
11056
|
query: {
|
|
10952
|
-
/**
|
|
10953
|
-
* Session audience for file navigation without Origin; must match Origin when present
|
|
10954
|
-
*/
|
|
10955
|
-
audience?: "atlas" | "app"
|
|
10956
11057
|
path: string
|
|
10957
11058
|
disposition?: "inline" | "attachment"
|
|
10958
11059
|
/**
|
|
@@ -11998,7 +12099,6 @@ export type ListEventsData = {
|
|
|
11998
12099
|
| "objects"
|
|
11999
12100
|
| "telemetry"
|
|
12000
12101
|
| "links"
|
|
12001
|
-
| "actions"
|
|
12002
12102
|
| "schedules"
|
|
12003
12103
|
| "syncs"
|
|
12004
12104
|
| "pipelines"
|
|
@@ -12013,9 +12113,6 @@ export type ListEventsData = {
|
|
|
12013
12113
|
| "link.created"
|
|
12014
12114
|
| "link.updated"
|
|
12015
12115
|
| "link.deleted"
|
|
12016
|
-
| "action.requested"
|
|
12017
|
-
| "action.completed"
|
|
12018
|
-
| "action.failed"
|
|
12019
12116
|
| "schedule.triggered"
|
|
12020
12117
|
| "sync.run.started"
|
|
12021
12118
|
| "sync.run.finished"
|
|
@@ -13201,9 +13298,6 @@ export type ListEventsResponses = {
|
|
|
13201
13298
|
| null
|
|
13202
13299
|
}
|
|
13203
13300
|
type:
|
|
13204
|
-
| "action.requested"
|
|
13205
|
-
| "action.completed"
|
|
13206
|
-
| "action.failed"
|
|
13207
13301
|
| "schedule.triggered"
|
|
13208
13302
|
| "sync.run.started"
|
|
13209
13303
|
| "sync.run.finished"
|
|
@@ -13229,7 +13323,6 @@ export type ListEventsResponses = {
|
|
|
13229
13323
|
| "objects"
|
|
13230
13324
|
| "telemetry"
|
|
13231
13325
|
| "links"
|
|
13232
|
-
| "actions"
|
|
13233
13326
|
| "schedules"
|
|
13234
13327
|
| "syncs"
|
|
13235
13328
|
| "pipelines"
|
package/src/index.ts
CHANGED
package/src/models.ts
CHANGED
|
@@ -263,10 +263,12 @@ export function toObjectSummary(
|
|
|
263
263
|
objectType: ObjectTypeDefinition | undefined
|
|
264
264
|
): ObjectSummary {
|
|
265
265
|
const properties = (object.properties ?? {}) as Record<string, unknown>
|
|
266
|
+
// What people call it: the property the type declares as its title, then `name`, then its id.
|
|
267
|
+
const titleProperty = objectType?.search?.title
|
|
266
268
|
const name =
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
269
|
+
[titleProperty ? properties[titleProperty] : undefined, properties.name].find(
|
|
270
|
+
(candidate): candidate is string => typeof candidate === "string" && candidate.length > 0
|
|
271
|
+
) ?? object.primaryId
|
|
270
272
|
const telemetry = mapTelemetryProperties(objectType, properties)
|
|
271
273
|
|
|
272
274
|
return {
|