@sixb/client 0.1.19 → 0.1.21
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 +5 -8
- package/dist/activity-attribution.d.ts +29 -0
- package/dist/activity-attribution.d.ts.map +1 -0
- package/dist/activity-tracker.d.ts +105 -0
- package/dist/activity-tracker.d.ts.map +1 -0
- package/dist/browser.d.ts +3 -4
- package/dist/browser.d.ts.map +1 -1
- package/dist/browser.js +514 -14
- package/dist/browser.js.map +6 -4
- package/dist/{chunk-j512cs3e.js → chunk-3b154p8n.js} +5 -6
- package/dist/{chunk-j512cs3e.js.map → chunk-3b154p8n.js.map} +4 -4
- package/dist/{chunk-tkjkrcdt.js → chunk-3f2pjdzk.js} +155 -2
- package/dist/chunk-3f2pjdzk.js.map +19 -0
- package/dist/{chunk-awbb496e.js → chunk-9wd8x2em.js} +1 -1
- package/dist/{chunk-3aa3m9z6.js → chunk-ana8rtgb.js} +2 -2
- 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-95bnb04n.js → chunk-qdq5gfqx.js} +1 -1
- package/dist/{chunk-12s8gbwj.js → chunk-s5zamywm.js} +2 -2
- package/dist/connectors/queries.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 +2250 -572
- package/dist/generated/@tanstack/react-query.gen.d.ts.map +1 -1
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.d.ts.map +1 -1
- package/dist/generated/sdk.gen.d.ts +89 -1
- package/dist/generated/sdk.gen.d.ts.map +1 -1
- package/dist/generated/types.gen.d.ts +1910 -734
- package/dist/generated/types.gen.d.ts.map +1 -1
- package/dist/hooks.js +300 -7
- package/dist/hooks.js.map +3 -3
- package/dist/index.js +41 -7
- package/dist/index.js.map +1 -1
- package/dist/logs.js +3 -3
- package/dist/models.d.ts.map +1 -1
- package/dist/models.js +37 -3
- package/dist/models.js.map +1 -1
- package/dist/query.js +3 -3
- package/package.json +2 -2
- package/src/activity-attribution.ts +211 -0
- package/src/activity-tracker.ts +527 -0
- package/src/agent-streams.ts +1 -1
- package/src/browser.ts +15 -7
- package/src/file.ts +1 -4
- package/src/generated/@tanstack/react-query.gen.ts +580 -0
- package/src/generated/index.ts +101 -0
- package/src/generated/sdk.gen.ts +389 -0
- package/src/generated/types.gen.ts +1947 -677
- package/src/models.ts +5 -3
- package/dist/chunk-tkjkrcdt.js.map +0 -19
- /package/dist/{chunk-awbb496e.js.map → chunk-9wd8x2em.js.map} +0 -0
- /package/dist/{chunk-3aa3m9z6.js.map → chunk-ana8rtgb.js.map} +0 -0
- /package/dist/{chunk-95bnb04n.js.map → chunk-qdq5gfqx.js.map} +0 -0
- /package/dist/{chunk-12s8gbwj.js.map → chunk-s5zamywm.js.map} +0 -0
|
@@ -349,10 +349,6 @@ export type GetAuthSessionResponses = {
|
|
|
349
349
|
} | {
|
|
350
350
|
authenticated: true;
|
|
351
351
|
csrfToken?: string;
|
|
352
|
-
applicationAccess: {
|
|
353
|
-
allowed: boolean;
|
|
354
|
-
audience: "atlas" | "app";
|
|
355
|
-
};
|
|
356
352
|
user: {
|
|
357
353
|
id: string;
|
|
358
354
|
email: string;
|
|
@@ -413,7 +409,6 @@ export type ListAuthSessionsResponses = {
|
|
|
413
409
|
200: {
|
|
414
410
|
sessions: Array<{
|
|
415
411
|
id: string;
|
|
416
|
-
audience?: "atlas" | "app";
|
|
417
412
|
current: boolean;
|
|
418
413
|
createdAt: string;
|
|
419
414
|
expiresAt: string;
|
|
@@ -1116,7 +1111,6 @@ export type CreateAuthInvitationData = {
|
|
|
1116
1111
|
body: {
|
|
1117
1112
|
email: string;
|
|
1118
1113
|
groupIds?: Array<string>;
|
|
1119
|
-
destinationId?: "atlas" | "app";
|
|
1120
1114
|
expiresAt?: string;
|
|
1121
1115
|
returnTo?: string;
|
|
1122
1116
|
revealLink?: boolean;
|
|
@@ -1221,11 +1215,6 @@ export type GetAuthInvitationOptionsResponses = {
|
|
|
1221
1215
|
label?: string;
|
|
1222
1216
|
description?: string;
|
|
1223
1217
|
}>;
|
|
1224
|
-
destinations: Array<{
|
|
1225
|
-
id: "atlas" | "app";
|
|
1226
|
-
label: string;
|
|
1227
|
-
}>;
|
|
1228
|
-
defaultDestinationId?: "atlas" | "app";
|
|
1229
1218
|
canInviteWithoutGroups: boolean;
|
|
1230
1219
|
capabilities: {
|
|
1231
1220
|
createInvitation: {
|
|
@@ -1329,10 +1318,16 @@ export type GetAuthMembershipOptionsResponses = {
|
|
|
1329
1318
|
label?: string;
|
|
1330
1319
|
description?: string;
|
|
1331
1320
|
}>;
|
|
1321
|
+
serviceAccountGroups: Array<{
|
|
1322
|
+
id: string;
|
|
1323
|
+
label?: string;
|
|
1324
|
+
description?: string;
|
|
1325
|
+
}>;
|
|
1332
1326
|
capabilities: {
|
|
1333
1327
|
invite: boolean;
|
|
1334
1328
|
assignGroups: boolean;
|
|
1335
1329
|
suspend: boolean;
|
|
1330
|
+
serviceAccounts: boolean;
|
|
1336
1331
|
};
|
|
1337
1332
|
};
|
|
1338
1333
|
};
|
|
@@ -6060,10 +6055,6 @@ export type GetWorkflowRunFileContentData = {
|
|
|
6060
6055
|
runId: string;
|
|
6061
6056
|
};
|
|
6062
6057
|
query: {
|
|
6063
|
-
/**
|
|
6064
|
-
* Session audience for file navigation without Origin; must match Origin when present
|
|
6065
|
-
*/
|
|
6066
|
-
audience?: "atlas" | "app";
|
|
6067
6058
|
path: string;
|
|
6068
6059
|
disposition?: "inline" | "attachment";
|
|
6069
6060
|
/**
|
|
@@ -6109,10 +6100,6 @@ export type HeadWorkflowRunFileContentData = {
|
|
|
6109
6100
|
runId: string;
|
|
6110
6101
|
};
|
|
6111
6102
|
query: {
|
|
6112
|
-
/**
|
|
6113
|
-
* Session audience for file navigation without Origin; must match Origin when present
|
|
6114
|
-
*/
|
|
6115
|
-
audience?: "atlas" | "app";
|
|
6116
6103
|
path: string;
|
|
6117
6104
|
disposition?: "inline" | "attachment";
|
|
6118
6105
|
/**
|
|
@@ -6158,10 +6145,6 @@ export type GetWorkflowNodeRunFileContentData = {
|
|
|
6158
6145
|
nodeKey: string;
|
|
6159
6146
|
};
|
|
6160
6147
|
query: {
|
|
6161
|
-
/**
|
|
6162
|
-
* Session audience for file navigation without Origin; must match Origin when present
|
|
6163
|
-
*/
|
|
6164
|
-
audience?: "atlas" | "app";
|
|
6165
6148
|
path: string;
|
|
6166
6149
|
disposition?: "inline" | "attachment";
|
|
6167
6150
|
/**
|
|
@@ -6208,10 +6191,6 @@ export type HeadWorkflowNodeRunFileContentData = {
|
|
|
6208
6191
|
nodeKey: string;
|
|
6209
6192
|
};
|
|
6210
6193
|
query: {
|
|
6211
|
-
/**
|
|
6212
|
-
* Session audience for file navigation without Origin; must match Origin when present
|
|
6213
|
-
*/
|
|
6214
|
-
audience?: "atlas" | "app";
|
|
6215
6194
|
path: string;
|
|
6216
6195
|
disposition?: "inline" | "attachment";
|
|
6217
6196
|
/**
|
|
@@ -7400,10 +7379,6 @@ export type GetObjectFileContentData = {
|
|
|
7400
7379
|
objectId: string;
|
|
7401
7380
|
};
|
|
7402
7381
|
query: {
|
|
7403
|
-
/**
|
|
7404
|
-
* Session audience for file navigation without Origin; must match Origin when present
|
|
7405
|
-
*/
|
|
7406
|
-
audience?: "atlas" | "app";
|
|
7407
7382
|
path: string;
|
|
7408
7383
|
disposition?: "inline" | "attachment";
|
|
7409
7384
|
/**
|
|
@@ -7450,10 +7425,6 @@ export type HeadObjectFileContentData = {
|
|
|
7450
7425
|
objectId: string;
|
|
7451
7426
|
};
|
|
7452
7427
|
query: {
|
|
7453
|
-
/**
|
|
7454
|
-
* Session audience for file navigation without Origin; must match Origin when present
|
|
7455
|
-
*/
|
|
7456
|
-
audience?: "atlas" | "app";
|
|
7457
7428
|
path: string;
|
|
7458
7429
|
disposition?: "inline" | "attachment";
|
|
7459
7430
|
/**
|
|
@@ -8335,10 +8306,6 @@ export type GetActionRunFileContentData = {
|
|
|
8335
8306
|
runId: string;
|
|
8336
8307
|
};
|
|
8337
8308
|
query: {
|
|
8338
|
-
/**
|
|
8339
|
-
* Session audience for file navigation without Origin; must match Origin when present
|
|
8340
|
-
*/
|
|
8341
|
-
audience?: "atlas" | "app";
|
|
8342
8309
|
path: string;
|
|
8343
8310
|
disposition?: "inline" | "attachment";
|
|
8344
8311
|
/**
|
|
@@ -8384,10 +8351,6 @@ export type HeadActionRunFileContentData = {
|
|
|
8384
8351
|
runId: string;
|
|
8385
8352
|
};
|
|
8386
8353
|
query: {
|
|
8387
|
-
/**
|
|
8388
|
-
* Session audience for file navigation without Origin; must match Origin when present
|
|
8389
|
-
*/
|
|
8390
|
-
audience?: "atlas" | "app";
|
|
8391
8354
|
path: string;
|
|
8392
8355
|
disposition?: "inline" | "attachment";
|
|
8393
8356
|
/**
|
|
@@ -8880,10 +8843,9 @@ export type ListAgentThreadMessagesResponses = {
|
|
|
8880
8843
|
errorText: string;
|
|
8881
8844
|
}>;
|
|
8882
8845
|
annotations: Array<{
|
|
8883
|
-
code: "
|
|
8846
|
+
code: "step_limit_reached";
|
|
8884
8847
|
severity: "warning" | "error";
|
|
8885
|
-
scope: "
|
|
8886
|
-
path?: string;
|
|
8848
|
+
scope: "run";
|
|
8887
8849
|
message: string;
|
|
8888
8850
|
}>;
|
|
8889
8851
|
compaction?: {
|
|
@@ -9059,10 +9021,9 @@ export type PostAgentThreadMessageResponses = {
|
|
|
9059
9021
|
unvaluedCallCount: number;
|
|
9060
9022
|
};
|
|
9061
9023
|
diagnostics?: Array<{
|
|
9062
|
-
code: "
|
|
9024
|
+
code: "step_limit_reached";
|
|
9063
9025
|
severity: "warning" | "error";
|
|
9064
|
-
scope: "
|
|
9065
|
-
path?: string;
|
|
9026
|
+
scope: "run";
|
|
9066
9027
|
message: string;
|
|
9067
9028
|
}>;
|
|
9068
9029
|
error?: {
|
|
@@ -9096,10 +9057,6 @@ export type GetAgentMessageFileContentData = {
|
|
|
9096
9057
|
messageId: string;
|
|
9097
9058
|
};
|
|
9098
9059
|
query: {
|
|
9099
|
-
/**
|
|
9100
|
-
* Session audience for file navigation without Origin; must match Origin when present
|
|
9101
|
-
*/
|
|
9102
|
-
audience?: "atlas" | "app";
|
|
9103
9060
|
path: string;
|
|
9104
9061
|
disposition?: "inline" | "attachment";
|
|
9105
9062
|
/**
|
|
@@ -9146,10 +9103,6 @@ export type HeadAgentMessageFileContentData = {
|
|
|
9146
9103
|
messageId: string;
|
|
9147
9104
|
};
|
|
9148
9105
|
query: {
|
|
9149
|
-
/**
|
|
9150
|
-
* Session audience for file navigation without Origin; must match Origin when present
|
|
9151
|
-
*/
|
|
9152
|
-
audience?: "atlas" | "app";
|
|
9153
9106
|
path: string;
|
|
9154
9107
|
disposition?: "inline" | "attachment";
|
|
9155
9108
|
/**
|
|
@@ -9274,10 +9227,9 @@ export type CancelAgentRunResponses = {
|
|
|
9274
9227
|
unvaluedCallCount: number;
|
|
9275
9228
|
};
|
|
9276
9229
|
diagnostics?: Array<{
|
|
9277
|
-
code: "
|
|
9230
|
+
code: "step_limit_reached";
|
|
9278
9231
|
severity: "warning" | "error";
|
|
9279
|
-
scope: "
|
|
9280
|
-
path?: string;
|
|
9232
|
+
scope: "run";
|
|
9281
9233
|
message: string;
|
|
9282
9234
|
}>;
|
|
9283
9235
|
error?: {
|
|
@@ -9405,10 +9357,9 @@ export type RetryAgentRunResponses = {
|
|
|
9405
9357
|
unvaluedCallCount: number;
|
|
9406
9358
|
};
|
|
9407
9359
|
diagnostics?: Array<{
|
|
9408
|
-
code: "
|
|
9360
|
+
code: "step_limit_reached";
|
|
9409
9361
|
severity: "warning" | "error";
|
|
9410
|
-
scope: "
|
|
9411
|
-
path?: string;
|
|
9362
|
+
scope: "run";
|
|
9412
9363
|
message: string;
|
|
9413
9364
|
}>;
|
|
9414
9365
|
error?: {
|
|
@@ -9518,10 +9469,9 @@ export type ListAgentThreadRunsResponses = {
|
|
|
9518
9469
|
unvaluedCallCount: number;
|
|
9519
9470
|
};
|
|
9520
9471
|
diagnostics?: Array<{
|
|
9521
|
-
code: "
|
|
9472
|
+
code: "step_limit_reached";
|
|
9522
9473
|
severity: "warning" | "error";
|
|
9523
|
-
scope: "
|
|
9524
|
-
path?: string;
|
|
9474
|
+
scope: "run";
|
|
9525
9475
|
message: string;
|
|
9526
9476
|
}>;
|
|
9527
9477
|
error?: {
|
|
@@ -9627,10 +9577,9 @@ export type GetAgentRunResponses = {
|
|
|
9627
9577
|
unvaluedCallCount: number;
|
|
9628
9578
|
};
|
|
9629
9579
|
diagnostics?: Array<{
|
|
9630
|
-
code: "
|
|
9580
|
+
code: "step_limit_reached";
|
|
9631
9581
|
severity: "warning" | "error";
|
|
9632
|
-
scope: "
|
|
9633
|
-
path?: string;
|
|
9582
|
+
scope: "run";
|
|
9634
9583
|
message: string;
|
|
9635
9584
|
}>;
|
|
9636
9585
|
error?: {
|
|
@@ -9656,594 +9605,1353 @@ export type GetAgentRunResponses = {
|
|
|
9656
9605
|
};
|
|
9657
9606
|
};
|
|
9658
9607
|
export type GetAgentRunResponse = GetAgentRunResponses[keyof GetAgentRunResponses];
|
|
9659
|
-
export type
|
|
9608
|
+
export type ListArtifactsData = {
|
|
9660
9609
|
body?: never;
|
|
9661
9610
|
path?: never;
|
|
9662
|
-
query?:
|
|
9663
|
-
|
|
9611
|
+
query?: {
|
|
9612
|
+
/**
|
|
9613
|
+
* Only artifacts with a version the Agent published in this thread
|
|
9614
|
+
*/
|
|
9615
|
+
thread?: string;
|
|
9616
|
+
/**
|
|
9617
|
+
* Only artifacts of this kind
|
|
9618
|
+
*/
|
|
9619
|
+
kind?: "document" | "sheet" | "slides" | "file";
|
|
9620
|
+
limit?: string;
|
|
9621
|
+
offset?: string;
|
|
9622
|
+
};
|
|
9623
|
+
url: "/api/artifacts";
|
|
9664
9624
|
};
|
|
9665
|
-
export type
|
|
9625
|
+
export type ListArtifactsErrors = {
|
|
9626
|
+
/**
|
|
9627
|
+
* Response for status 400
|
|
9628
|
+
*/
|
|
9629
|
+
400: {
|
|
9630
|
+
error: string;
|
|
9631
|
+
/**
|
|
9632
|
+
* Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, invalid_artifact, not_allowed, or storage_unavailable.
|
|
9633
|
+
*/
|
|
9634
|
+
code?: string;
|
|
9635
|
+
};
|
|
9636
|
+
/**
|
|
9637
|
+
* Response for status 501
|
|
9638
|
+
*/
|
|
9639
|
+
501: {
|
|
9640
|
+
error: string;
|
|
9641
|
+
/**
|
|
9642
|
+
* Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, invalid_artifact, not_allowed, or storage_unavailable.
|
|
9643
|
+
*/
|
|
9644
|
+
code?: string;
|
|
9645
|
+
};
|
|
9646
|
+
};
|
|
9647
|
+
export type ListArtifactsError = ListArtifactsErrors[keyof ListArtifactsErrors];
|
|
9648
|
+
export type ListArtifactsResponses = {
|
|
9666
9649
|
/**
|
|
9667
9650
|
* Response for status 200
|
|
9668
9651
|
*/
|
|
9669
9652
|
200: {
|
|
9670
|
-
|
|
9671
|
-
|
|
9672
|
-
|
|
9673
|
-
|
|
9674
|
-
|
|
9675
|
-
|
|
9676
|
-
|
|
9653
|
+
artifacts: Array<{
|
|
9654
|
+
id: string;
|
|
9655
|
+
projectId: string;
|
|
9656
|
+
kind: "document" | "sheet" | "slides" | "file";
|
|
9657
|
+
title: string;
|
|
9658
|
+
owner: {
|
|
9659
|
+
type: "user" | "serviceAccount" | "system";
|
|
9677
9660
|
id: string;
|
|
9678
|
-
name: string;
|
|
9679
|
-
};
|
|
9680
|
-
via?: string;
|
|
9681
|
-
capabilities: {
|
|
9682
|
-
input: Array<"text" | "image" | "audio" | "video" | "pdf">;
|
|
9683
|
-
output: Array<"text" | "image" | "audio" | "video" | "pdf">;
|
|
9684
|
-
attachments?: boolean;
|
|
9685
|
-
reasoning?: boolean;
|
|
9686
|
-
tools?: boolean;
|
|
9687
|
-
structuredOutput?: boolean;
|
|
9688
|
-
contextWindowTokens?: number;
|
|
9689
9661
|
};
|
|
9690
|
-
|
|
9691
|
-
|
|
9662
|
+
latestVersion: number;
|
|
9663
|
+
createdAt: string;
|
|
9664
|
+
updatedAt: string;
|
|
9692
9665
|
}>;
|
|
9666
|
+
hasMore: boolean;
|
|
9667
|
+
total: number;
|
|
9693
9668
|
};
|
|
9694
9669
|
};
|
|
9695
|
-
export type
|
|
9696
|
-
export type
|
|
9697
|
-
body
|
|
9698
|
-
|
|
9699
|
-
|
|
9700
|
-
|
|
9701
|
-
|
|
9702
|
-
|
|
9703
|
-
|
|
9704
|
-
|
|
9705
|
-
|
|
9670
|
+
export type ListArtifactsResponse = ListArtifactsResponses[keyof ListArtifactsResponses];
|
|
9671
|
+
export type CreateArtifactData = {
|
|
9672
|
+
body: {
|
|
9673
|
+
kind: "document" | "sheet" | "slides" | "file";
|
|
9674
|
+
title: string;
|
|
9675
|
+
/**
|
|
9676
|
+
* Files stored with POST /api/files, at their paths in the artifact
|
|
9677
|
+
*/
|
|
9678
|
+
files: Array<{
|
|
9679
|
+
/**
|
|
9680
|
+
* The file's path inside the artifact, such as figures/revenue.svg
|
|
9681
|
+
*/
|
|
9682
|
+
path: string;
|
|
9683
|
+
file: {
|
|
9684
|
+
blobId: string;
|
|
9685
|
+
digest: string;
|
|
9686
|
+
sizeBytes: number;
|
|
9687
|
+
fileName?: string;
|
|
9688
|
+
mediaType?: string;
|
|
9689
|
+
logicalPath?: string;
|
|
9690
|
+
};
|
|
9691
|
+
}>;
|
|
9706
9692
|
};
|
|
9707
|
-
|
|
9693
|
+
path?: never;
|
|
9694
|
+
query?: never;
|
|
9695
|
+
url: "/api/artifacts";
|
|
9708
9696
|
};
|
|
9709
|
-
export type
|
|
9697
|
+
export type CreateArtifactErrors = {
|
|
9710
9698
|
/**
|
|
9711
9699
|
* Response for status 400
|
|
9712
9700
|
*/
|
|
9713
9701
|
400: {
|
|
9714
9702
|
error: string;
|
|
9703
|
+
/**
|
|
9704
|
+
* Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, invalid_artifact, not_allowed, or storage_unavailable.
|
|
9705
|
+
*/
|
|
9706
|
+
code?: string;
|
|
9715
9707
|
};
|
|
9716
9708
|
/**
|
|
9717
9709
|
* Response for status 403
|
|
9718
9710
|
*/
|
|
9719
9711
|
403: {
|
|
9720
9712
|
error: string;
|
|
9713
|
+
/**
|
|
9714
|
+
* Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, invalid_artifact, not_allowed, or storage_unavailable.
|
|
9715
|
+
*/
|
|
9716
|
+
code?: string;
|
|
9721
9717
|
};
|
|
9722
9718
|
/**
|
|
9723
9719
|
* Response for status 404
|
|
9724
9720
|
*/
|
|
9725
9721
|
404: {
|
|
9726
9722
|
error: string;
|
|
9723
|
+
/**
|
|
9724
|
+
* Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, invalid_artifact, not_allowed, or storage_unavailable.
|
|
9725
|
+
*/
|
|
9726
|
+
code?: string;
|
|
9727
9727
|
};
|
|
9728
|
-
};
|
|
9729
|
-
export type RemoveObjectLinkError = RemoveObjectLinkErrors[keyof RemoveObjectLinkErrors];
|
|
9730
|
-
export type RemoveObjectLinkResponses = {
|
|
9731
9728
|
/**
|
|
9732
|
-
* Response for status
|
|
9729
|
+
* Response for status 409
|
|
9733
9730
|
*/
|
|
9734
|
-
|
|
9735
|
-
|
|
9731
|
+
409: {
|
|
9732
|
+
error: string;
|
|
9733
|
+
/**
|
|
9734
|
+
* Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, invalid_artifact, not_allowed, or storage_unavailable.
|
|
9735
|
+
*/
|
|
9736
|
+
code?: string;
|
|
9737
|
+
};
|
|
9738
|
+
/**
|
|
9739
|
+
* Response for status 501
|
|
9740
|
+
*/
|
|
9741
|
+
501: {
|
|
9742
|
+
error: string;
|
|
9743
|
+
/**
|
|
9744
|
+
* Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, invalid_artifact, not_allowed, or storage_unavailable.
|
|
9745
|
+
*/
|
|
9746
|
+
code?: string;
|
|
9736
9747
|
};
|
|
9737
9748
|
};
|
|
9738
|
-
export type
|
|
9739
|
-
export type
|
|
9740
|
-
|
|
9741
|
-
|
|
9742
|
-
|
|
9743
|
-
|
|
9744
|
-
|
|
9749
|
+
export type CreateArtifactError = CreateArtifactErrors[keyof CreateArtifactErrors];
|
|
9750
|
+
export type CreateArtifactResponses = {
|
|
9751
|
+
/**
|
|
9752
|
+
* Response for status 201
|
|
9753
|
+
*/
|
|
9754
|
+
201: {
|
|
9755
|
+
artifact: {
|
|
9756
|
+
id: string;
|
|
9757
|
+
projectId: string;
|
|
9758
|
+
kind: "document" | "sheet" | "slides" | "file";
|
|
9759
|
+
title: string;
|
|
9760
|
+
owner: {
|
|
9761
|
+
type: "user" | "serviceAccount" | "system";
|
|
9762
|
+
id: string;
|
|
9763
|
+
};
|
|
9764
|
+
latestVersion: number;
|
|
9765
|
+
createdAt: string;
|
|
9766
|
+
updatedAt: string;
|
|
9767
|
+
};
|
|
9768
|
+
version: {
|
|
9769
|
+
artifactId: string;
|
|
9770
|
+
version: number;
|
|
9771
|
+
title: string;
|
|
9772
|
+
entry: string;
|
|
9773
|
+
files: Array<{
|
|
9774
|
+
/**
|
|
9775
|
+
* The file's path inside the artifact, such as figures/revenue.svg
|
|
9776
|
+
*/
|
|
9777
|
+
path: string;
|
|
9778
|
+
file: {
|
|
9779
|
+
blobId: string;
|
|
9780
|
+
digest: string;
|
|
9781
|
+
sizeBytes: number;
|
|
9782
|
+
fileName?: string;
|
|
9783
|
+
mediaType?: string;
|
|
9784
|
+
logicalPath?: string;
|
|
9785
|
+
};
|
|
9786
|
+
}>;
|
|
9787
|
+
outline: {
|
|
9788
|
+
kind: "document";
|
|
9789
|
+
headings: Array<{
|
|
9790
|
+
depth: number;
|
|
9791
|
+
text: string;
|
|
9792
|
+
slug: string;
|
|
9793
|
+
}>;
|
|
9794
|
+
} | {
|
|
9795
|
+
kind: "sheet";
|
|
9796
|
+
sheets: Array<{
|
|
9797
|
+
name: string;
|
|
9798
|
+
rows: number;
|
|
9799
|
+
columns: Array<string>;
|
|
9800
|
+
}>;
|
|
9801
|
+
charts: Array<string>;
|
|
9802
|
+
} | {
|
|
9803
|
+
kind: "slides";
|
|
9804
|
+
slides: Array<{
|
|
9805
|
+
title?: string;
|
|
9806
|
+
}>;
|
|
9807
|
+
} | {
|
|
9808
|
+
kind: "file";
|
|
9809
|
+
mediaType: string;
|
|
9810
|
+
};
|
|
9811
|
+
references: Array<{
|
|
9812
|
+
address: string;
|
|
9813
|
+
as: "embed" | "link";
|
|
9814
|
+
at: string;
|
|
9815
|
+
resolvedVersion: number;
|
|
9816
|
+
}>;
|
|
9817
|
+
author: {
|
|
9818
|
+
type: "user" | "serviceAccount" | "system";
|
|
9819
|
+
id: string;
|
|
9820
|
+
};
|
|
9821
|
+
origin?: {
|
|
9822
|
+
threadId: string;
|
|
9823
|
+
runId: string;
|
|
9824
|
+
};
|
|
9825
|
+
createdAt: string;
|
|
9745
9826
|
};
|
|
9827
|
+
warnings: Array<{
|
|
9828
|
+
code: string;
|
|
9829
|
+
message: string;
|
|
9830
|
+
part?: string;
|
|
9831
|
+
}>;
|
|
9746
9832
|
};
|
|
9833
|
+
};
|
|
9834
|
+
export type CreateArtifactResponse = CreateArtifactResponses[keyof CreateArtifactResponses];
|
|
9835
|
+
export type DeleteArtifactData = {
|
|
9836
|
+
body?: never;
|
|
9747
9837
|
path: {
|
|
9748
|
-
|
|
9749
|
-
objectId: string;
|
|
9750
|
-
linkId: string;
|
|
9838
|
+
artifactId: string;
|
|
9751
9839
|
};
|
|
9752
9840
|
query?: never;
|
|
9753
|
-
url: "/api/
|
|
9841
|
+
url: "/api/artifacts/{artifactId}";
|
|
9754
9842
|
};
|
|
9755
|
-
export type
|
|
9756
|
-
/**
|
|
9757
|
-
* Response for status 400
|
|
9758
|
-
*/
|
|
9759
|
-
400: {
|
|
9760
|
-
error: string;
|
|
9761
|
-
};
|
|
9843
|
+
export type DeleteArtifactErrors = {
|
|
9762
9844
|
/**
|
|
9763
|
-
* Response for status
|
|
9845
|
+
* Response for status 404
|
|
9764
9846
|
*/
|
|
9765
|
-
|
|
9847
|
+
404: {
|
|
9766
9848
|
error: string;
|
|
9849
|
+
/**
|
|
9850
|
+
* Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, invalid_artifact, not_allowed, or storage_unavailable.
|
|
9851
|
+
*/
|
|
9852
|
+
code?: string;
|
|
9767
9853
|
};
|
|
9768
9854
|
/**
|
|
9769
|
-
* Response for status
|
|
9855
|
+
* Response for status 501
|
|
9770
9856
|
*/
|
|
9771
|
-
|
|
9857
|
+
501: {
|
|
9772
9858
|
error: string;
|
|
9859
|
+
/**
|
|
9860
|
+
* Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, invalid_artifact, not_allowed, or storage_unavailable.
|
|
9861
|
+
*/
|
|
9862
|
+
code?: string;
|
|
9773
9863
|
};
|
|
9774
9864
|
};
|
|
9775
|
-
export type
|
|
9776
|
-
export type
|
|
9865
|
+
export type DeleteArtifactError = DeleteArtifactErrors[keyof DeleteArtifactErrors];
|
|
9866
|
+
export type DeleteArtifactResponses = {
|
|
9777
9867
|
/**
|
|
9778
9868
|
* Response for status 200
|
|
9779
9869
|
*/
|
|
9780
9870
|
200: {
|
|
9781
|
-
|
|
9871
|
+
deleted: true;
|
|
9782
9872
|
};
|
|
9783
9873
|
};
|
|
9784
|
-
export type
|
|
9785
|
-
export type
|
|
9786
|
-
body
|
|
9787
|
-
value?: unknown;
|
|
9788
|
-
unit?: string;
|
|
9789
|
-
at?: string;
|
|
9790
|
-
};
|
|
9874
|
+
export type DeleteArtifactResponse = DeleteArtifactResponses[keyof DeleteArtifactResponses];
|
|
9875
|
+
export type GetArtifactData = {
|
|
9876
|
+
body?: never;
|
|
9791
9877
|
path: {
|
|
9792
|
-
|
|
9793
|
-
objectId: string;
|
|
9794
|
-
propertyId: string;
|
|
9878
|
+
artifactId: string;
|
|
9795
9879
|
};
|
|
9796
9880
|
query?: never;
|
|
9797
|
-
url: "/api/
|
|
9881
|
+
url: "/api/artifacts/{artifactId}";
|
|
9798
9882
|
};
|
|
9799
|
-
export type
|
|
9883
|
+
export type GetArtifactErrors = {
|
|
9800
9884
|
/**
|
|
9801
|
-
* Response for status
|
|
9885
|
+
* Response for status 404
|
|
9802
9886
|
*/
|
|
9803
|
-
|
|
9887
|
+
404: {
|
|
9804
9888
|
error: string;
|
|
9889
|
+
/**
|
|
9890
|
+
* Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, invalid_artifact, not_allowed, or storage_unavailable.
|
|
9891
|
+
*/
|
|
9892
|
+
code?: string;
|
|
9805
9893
|
};
|
|
9806
9894
|
/**
|
|
9807
|
-
* Response for status
|
|
9895
|
+
* Response for status 501
|
|
9808
9896
|
*/
|
|
9809
|
-
|
|
9897
|
+
501: {
|
|
9810
9898
|
error: string;
|
|
9899
|
+
/**
|
|
9900
|
+
* Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, invalid_artifact, not_allowed, or storage_unavailable.
|
|
9901
|
+
*/
|
|
9902
|
+
code?: string;
|
|
9811
9903
|
};
|
|
9904
|
+
};
|
|
9905
|
+
export type GetArtifactError = GetArtifactErrors[keyof GetArtifactErrors];
|
|
9906
|
+
export type GetArtifactResponses = {
|
|
9812
9907
|
/**
|
|
9813
|
-
* Response for status
|
|
9814
|
-
*/
|
|
9815
|
-
404: {
|
|
9816
|
-
error: string;
|
|
9817
|
-
};
|
|
9818
|
-
};
|
|
9819
|
-
export type AppendTelemetryError = AppendTelemetryErrors[keyof AppendTelemetryErrors];
|
|
9820
|
-
export type AppendTelemetryResponses = {
|
|
9821
|
-
/**
|
|
9822
|
-
* Response for status 200
|
|
9908
|
+
* Response for status 200
|
|
9823
9909
|
*/
|
|
9824
9910
|
200: {
|
|
9825
|
-
|
|
9911
|
+
artifact: {
|
|
9912
|
+
id: string;
|
|
9913
|
+
projectId: string;
|
|
9914
|
+
kind: "document" | "sheet" | "slides" | "file";
|
|
9915
|
+
title: string;
|
|
9916
|
+
owner: {
|
|
9917
|
+
type: "user" | "serviceAccount" | "system";
|
|
9918
|
+
id: string;
|
|
9919
|
+
};
|
|
9920
|
+
latestVersion: number;
|
|
9921
|
+
createdAt: string;
|
|
9922
|
+
updatedAt: string;
|
|
9923
|
+
};
|
|
9924
|
+
/**
|
|
9925
|
+
* Newest first
|
|
9926
|
+
*/
|
|
9927
|
+
versions: Array<{
|
|
9928
|
+
version: number;
|
|
9929
|
+
title: string;
|
|
9930
|
+
author: {
|
|
9931
|
+
type: "user" | "serviceAccount" | "system";
|
|
9932
|
+
id: string;
|
|
9933
|
+
};
|
|
9934
|
+
origin?: {
|
|
9935
|
+
threadId: string;
|
|
9936
|
+
runId: string;
|
|
9937
|
+
};
|
|
9938
|
+
createdAt: string;
|
|
9939
|
+
}>;
|
|
9826
9940
|
};
|
|
9827
9941
|
};
|
|
9828
|
-
export type
|
|
9829
|
-
export type
|
|
9942
|
+
export type GetArtifactResponse = GetArtifactResponses[keyof GetArtifactResponses];
|
|
9943
|
+
export type PublishArtifactVersionData = {
|
|
9830
9944
|
body: {
|
|
9831
|
-
|
|
9832
|
-
|
|
9833
|
-
|
|
9834
|
-
|
|
9945
|
+
kind: "document" | "sheet" | "slides" | "file";
|
|
9946
|
+
title: string;
|
|
9947
|
+
/**
|
|
9948
|
+
* Files stored with POST /api/files, at their paths in the artifact
|
|
9949
|
+
*/
|
|
9950
|
+
files: Array<{
|
|
9951
|
+
/**
|
|
9952
|
+
* The file's path inside the artifact, such as figures/revenue.svg
|
|
9953
|
+
*/
|
|
9954
|
+
path: string;
|
|
9955
|
+
file: {
|
|
9956
|
+
blobId: string;
|
|
9957
|
+
digest: string;
|
|
9958
|
+
sizeBytes: number;
|
|
9959
|
+
fileName?: string;
|
|
9960
|
+
mediaType?: string;
|
|
9961
|
+
logicalPath?: string;
|
|
9962
|
+
};
|
|
9835
9963
|
}>;
|
|
9836
|
-
from?: string;
|
|
9837
|
-
to?: string;
|
|
9838
|
-
limitPerSeries?: number;
|
|
9839
|
-
order?: "asc" | "desc";
|
|
9840
9964
|
};
|
|
9841
|
-
path
|
|
9965
|
+
path: {
|
|
9966
|
+
artifactId: string;
|
|
9967
|
+
};
|
|
9842
9968
|
query?: never;
|
|
9843
|
-
url: "/api/
|
|
9969
|
+
url: "/api/artifacts/{artifactId}/versions";
|
|
9844
9970
|
};
|
|
9845
|
-
export type
|
|
9971
|
+
export type PublishArtifactVersionErrors = {
|
|
9846
9972
|
/**
|
|
9847
9973
|
* Response for status 400
|
|
9848
9974
|
*/
|
|
9849
9975
|
400: {
|
|
9850
9976
|
error: string;
|
|
9977
|
+
/**
|
|
9978
|
+
* Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, invalid_artifact, not_allowed, or storage_unavailable.
|
|
9979
|
+
*/
|
|
9980
|
+
code?: string;
|
|
9851
9981
|
};
|
|
9852
9982
|
/**
|
|
9853
9983
|
* Response for status 403
|
|
9854
9984
|
*/
|
|
9855
9985
|
403: {
|
|
9856
9986
|
error: string;
|
|
9987
|
+
/**
|
|
9988
|
+
* Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, invalid_artifact, not_allowed, or storage_unavailable.
|
|
9989
|
+
*/
|
|
9990
|
+
code?: string;
|
|
9857
9991
|
};
|
|
9858
|
-
};
|
|
9859
|
-
export type GetBulkTelemetryHistoryError = GetBulkTelemetryHistoryErrors[keyof GetBulkTelemetryHistoryErrors];
|
|
9860
|
-
export type GetBulkTelemetryHistoryResponses = {
|
|
9861
9992
|
/**
|
|
9862
|
-
* Response for status
|
|
9993
|
+
* Response for status 404
|
|
9863
9994
|
*/
|
|
9864
|
-
|
|
9865
|
-
|
|
9866
|
-
|
|
9867
|
-
|
|
9868
|
-
|
|
9869
|
-
|
|
9870
|
-
projectId: string;
|
|
9871
|
-
objectTypeId: string;
|
|
9872
|
-
objectId: string;
|
|
9873
|
-
propertyId: string;
|
|
9874
|
-
value?: unknown;
|
|
9875
|
-
unit?: string;
|
|
9876
|
-
at: string;
|
|
9877
|
-
}>;
|
|
9878
|
-
}>;
|
|
9879
|
-
};
|
|
9880
|
-
};
|
|
9881
|
-
export type GetBulkTelemetryHistoryResponse = GetBulkTelemetryHistoryResponses[keyof GetBulkTelemetryHistoryResponses];
|
|
9882
|
-
export type GetTelemetryHistoryData = {
|
|
9883
|
-
body?: never;
|
|
9884
|
-
path: {
|
|
9885
|
-
objectTypeId: string;
|
|
9886
|
-
objectId: string;
|
|
9887
|
-
propertyId: string;
|
|
9888
|
-
};
|
|
9889
|
-
query?: {
|
|
9890
|
-
from?: string;
|
|
9891
|
-
to?: string;
|
|
9892
|
-
limit?: string;
|
|
9893
|
-
order?: "asc" | "desc";
|
|
9995
|
+
404: {
|
|
9996
|
+
error: string;
|
|
9997
|
+
/**
|
|
9998
|
+
* Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, invalid_artifact, not_allowed, or storage_unavailable.
|
|
9999
|
+
*/
|
|
10000
|
+
code?: string;
|
|
9894
10001
|
};
|
|
9895
|
-
url: "/api/objects/{objectTypeId}/{objectId}/telemetry/{propertyId}/history";
|
|
9896
|
-
};
|
|
9897
|
-
export type GetTelemetryHistoryErrors = {
|
|
9898
10002
|
/**
|
|
9899
|
-
* Response for status
|
|
10003
|
+
* Response for status 409
|
|
9900
10004
|
*/
|
|
9901
|
-
|
|
10005
|
+
409: {
|
|
9902
10006
|
error: string;
|
|
10007
|
+
/**
|
|
10008
|
+
* Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, invalid_artifact, not_allowed, or storage_unavailable.
|
|
10009
|
+
*/
|
|
10010
|
+
code?: string;
|
|
9903
10011
|
};
|
|
9904
10012
|
/**
|
|
9905
|
-
* Response for status
|
|
10013
|
+
* Response for status 501
|
|
9906
10014
|
*/
|
|
9907
|
-
|
|
10015
|
+
501: {
|
|
9908
10016
|
error: string;
|
|
10017
|
+
/**
|
|
10018
|
+
* Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, invalid_artifact, not_allowed, or storage_unavailable.
|
|
10019
|
+
*/
|
|
10020
|
+
code?: string;
|
|
9909
10021
|
};
|
|
9910
10022
|
};
|
|
9911
|
-
export type
|
|
9912
|
-
export type
|
|
10023
|
+
export type PublishArtifactVersionError = PublishArtifactVersionErrors[keyof PublishArtifactVersionErrors];
|
|
10024
|
+
export type PublishArtifactVersionResponses = {
|
|
9913
10025
|
/**
|
|
9914
|
-
* Response for status
|
|
10026
|
+
* Response for status 201
|
|
9915
10027
|
*/
|
|
9916
|
-
|
|
9917
|
-
|
|
9918
|
-
|
|
9919
|
-
|
|
9920
|
-
|
|
9921
|
-
|
|
9922
|
-
|
|
9923
|
-
|
|
9924
|
-
|
|
10028
|
+
201: {
|
|
10029
|
+
artifact: {
|
|
10030
|
+
id: string;
|
|
10031
|
+
projectId: string;
|
|
10032
|
+
kind: "document" | "sheet" | "slides" | "file";
|
|
10033
|
+
title: string;
|
|
10034
|
+
owner: {
|
|
10035
|
+
type: "user" | "serviceAccount" | "system";
|
|
10036
|
+
id: string;
|
|
10037
|
+
};
|
|
10038
|
+
latestVersion: number;
|
|
10039
|
+
createdAt: string;
|
|
10040
|
+
updatedAt: string;
|
|
10041
|
+
};
|
|
10042
|
+
version: {
|
|
10043
|
+
artifactId: string;
|
|
10044
|
+
version: number;
|
|
10045
|
+
title: string;
|
|
10046
|
+
entry: string;
|
|
10047
|
+
files: Array<{
|
|
10048
|
+
/**
|
|
10049
|
+
* The file's path inside the artifact, such as figures/revenue.svg
|
|
10050
|
+
*/
|
|
10051
|
+
path: string;
|
|
10052
|
+
file: {
|
|
10053
|
+
blobId: string;
|
|
10054
|
+
digest: string;
|
|
10055
|
+
sizeBytes: number;
|
|
10056
|
+
fileName?: string;
|
|
10057
|
+
mediaType?: string;
|
|
10058
|
+
logicalPath?: string;
|
|
10059
|
+
};
|
|
10060
|
+
}>;
|
|
10061
|
+
outline: {
|
|
10062
|
+
kind: "document";
|
|
10063
|
+
headings: Array<{
|
|
10064
|
+
depth: number;
|
|
10065
|
+
text: string;
|
|
10066
|
+
slug: string;
|
|
10067
|
+
}>;
|
|
10068
|
+
} | {
|
|
10069
|
+
kind: "sheet";
|
|
10070
|
+
sheets: Array<{
|
|
10071
|
+
name: string;
|
|
10072
|
+
rows: number;
|
|
10073
|
+
columns: Array<string>;
|
|
10074
|
+
}>;
|
|
10075
|
+
charts: Array<string>;
|
|
10076
|
+
} | {
|
|
10077
|
+
kind: "slides";
|
|
10078
|
+
slides: Array<{
|
|
10079
|
+
title?: string;
|
|
10080
|
+
}>;
|
|
10081
|
+
} | {
|
|
10082
|
+
kind: "file";
|
|
10083
|
+
mediaType: string;
|
|
10084
|
+
};
|
|
10085
|
+
references: Array<{
|
|
10086
|
+
address: string;
|
|
10087
|
+
as: "embed" | "link";
|
|
10088
|
+
at: string;
|
|
10089
|
+
resolvedVersion: number;
|
|
10090
|
+
}>;
|
|
10091
|
+
author: {
|
|
10092
|
+
type: "user" | "serviceAccount" | "system";
|
|
10093
|
+
id: string;
|
|
10094
|
+
};
|
|
10095
|
+
origin?: {
|
|
10096
|
+
threadId: string;
|
|
10097
|
+
runId: string;
|
|
10098
|
+
};
|
|
10099
|
+
createdAt: string;
|
|
10100
|
+
};
|
|
10101
|
+
warnings: Array<{
|
|
10102
|
+
code: string;
|
|
10103
|
+
message: string;
|
|
10104
|
+
part?: string;
|
|
10105
|
+
}>;
|
|
10106
|
+
};
|
|
9925
10107
|
};
|
|
9926
|
-
export type
|
|
9927
|
-
export type
|
|
10108
|
+
export type PublishArtifactVersionResponse = PublishArtifactVersionResponses[keyof PublishArtifactVersionResponses];
|
|
10109
|
+
export type CreateArtifactFrameData = {
|
|
9928
10110
|
body?: never;
|
|
9929
10111
|
path: {
|
|
9930
|
-
|
|
9931
|
-
|
|
9932
|
-
|
|
10112
|
+
artifactId: string;
|
|
10113
|
+
/**
|
|
10114
|
+
* A version number, or "latest"
|
|
10115
|
+
*/
|
|
10116
|
+
version: string;
|
|
9933
10117
|
};
|
|
9934
10118
|
query?: never;
|
|
9935
|
-
url: "/api/
|
|
10119
|
+
url: "/api/artifacts/{artifactId}/versions/{version}/frame";
|
|
9936
10120
|
};
|
|
9937
|
-
export type
|
|
10121
|
+
export type CreateArtifactFrameErrors = {
|
|
9938
10122
|
/**
|
|
9939
|
-
* Response for status
|
|
10123
|
+
* Response for status 404
|
|
9940
10124
|
*/
|
|
9941
|
-
|
|
10125
|
+
404: {
|
|
9942
10126
|
error: string;
|
|
10127
|
+
/**
|
|
10128
|
+
* Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, invalid_artifact, not_allowed, or storage_unavailable.
|
|
10129
|
+
*/
|
|
10130
|
+
code?: string;
|
|
9943
10131
|
};
|
|
9944
10132
|
/**
|
|
9945
|
-
* Response for status
|
|
10133
|
+
* Response for status 409
|
|
9946
10134
|
*/
|
|
9947
|
-
|
|
10135
|
+
409: {
|
|
10136
|
+
error: string;
|
|
10137
|
+
/**
|
|
10138
|
+
* Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, invalid_artifact, not_allowed, or storage_unavailable.
|
|
10139
|
+
*/
|
|
10140
|
+
code?: string;
|
|
10141
|
+
};
|
|
10142
|
+
/**
|
|
10143
|
+
* Response for status 501
|
|
10144
|
+
*/
|
|
10145
|
+
501: {
|
|
9948
10146
|
error: string;
|
|
10147
|
+
/**
|
|
10148
|
+
* Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, invalid_artifact, not_allowed, or storage_unavailable.
|
|
10149
|
+
*/
|
|
10150
|
+
code?: string;
|
|
9949
10151
|
};
|
|
9950
10152
|
};
|
|
9951
|
-
export type
|
|
9952
|
-
export type
|
|
10153
|
+
export type CreateArtifactFrameError = CreateArtifactFrameErrors[keyof CreateArtifactFrameErrors];
|
|
10154
|
+
export type CreateArtifactFrameResponses = {
|
|
9953
10155
|
/**
|
|
9954
10156
|
* Response for status 200
|
|
9955
10157
|
*/
|
|
9956
10158
|
200: {
|
|
9957
|
-
|
|
9958
|
-
|
|
9959
|
-
|
|
9960
|
-
|
|
9961
|
-
|
|
9962
|
-
|
|
9963
|
-
|
|
10159
|
+
/**
|
|
10160
|
+
* The frame's base path on this API, ending in /; the deck's entry is served under it
|
|
10161
|
+
*/
|
|
10162
|
+
path: string;
|
|
10163
|
+
/**
|
|
10164
|
+
* When the frame stops serving; ask for a new one before then
|
|
10165
|
+
*/
|
|
10166
|
+
expiresAt: string;
|
|
9964
10167
|
};
|
|
9965
10168
|
};
|
|
9966
|
-
export type
|
|
9967
|
-
export type
|
|
10169
|
+
export type CreateArtifactFrameResponse = CreateArtifactFrameResponses[keyof CreateArtifactFrameResponses];
|
|
10170
|
+
export type GetArtifactVersionData = {
|
|
9968
10171
|
body?: never;
|
|
9969
|
-
path
|
|
9970
|
-
|
|
9971
|
-
|
|
9972
|
-
|
|
9973
|
-
|
|
9974
|
-
|
|
10172
|
+
path: {
|
|
10173
|
+
artifactId: string;
|
|
10174
|
+
/**
|
|
10175
|
+
* A version number, or "latest"
|
|
10176
|
+
*/
|
|
10177
|
+
version: string;
|
|
9975
10178
|
};
|
|
9976
|
-
|
|
10179
|
+
query?: never;
|
|
10180
|
+
url: "/api/artifacts/{artifactId}/versions/{version}";
|
|
9977
10181
|
};
|
|
9978
|
-
export type
|
|
10182
|
+
export type GetArtifactVersionErrors = {
|
|
9979
10183
|
/**
|
|
9980
|
-
* Response for status
|
|
10184
|
+
* Response for status 404
|
|
9981
10185
|
*/
|
|
9982
|
-
|
|
10186
|
+
404: {
|
|
9983
10187
|
error: string;
|
|
10188
|
+
/**
|
|
10189
|
+
* Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, invalid_artifact, not_allowed, or storage_unavailable.
|
|
10190
|
+
*/
|
|
10191
|
+
code?: string;
|
|
9984
10192
|
};
|
|
9985
10193
|
/**
|
|
9986
|
-
* Response for status
|
|
10194
|
+
* Response for status 501
|
|
9987
10195
|
*/
|
|
9988
|
-
|
|
10196
|
+
501: {
|
|
9989
10197
|
error: string;
|
|
10198
|
+
/**
|
|
10199
|
+
* Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, invalid_artifact, not_allowed, or storage_unavailable.
|
|
10200
|
+
*/
|
|
10201
|
+
code?: string;
|
|
9990
10202
|
};
|
|
9991
10203
|
};
|
|
9992
|
-
export type
|
|
9993
|
-
export type
|
|
10204
|
+
export type GetArtifactVersionError = GetArtifactVersionErrors[keyof GetArtifactVersionErrors];
|
|
10205
|
+
export type GetArtifactVersionResponses = {
|
|
9994
10206
|
/**
|
|
9995
10207
|
* Response for status 200
|
|
9996
10208
|
*/
|
|
9997
10209
|
200: {
|
|
9998
|
-
|
|
9999
|
-
|
|
10000
|
-
|
|
10001
|
-
|
|
10002
|
-
|
|
10003
|
-
projectId: string;
|
|
10004
|
-
occurredAt: string;
|
|
10005
|
-
partitionKey: string;
|
|
10006
|
-
origin: {
|
|
10007
|
-
kind: "action";
|
|
10008
|
-
actionId: string;
|
|
10009
|
-
runId: string;
|
|
10010
|
-
} | {
|
|
10011
|
-
kind: "runtime";
|
|
10012
|
-
requestId: string;
|
|
10013
|
-
} | {
|
|
10014
|
-
kind: "projection";
|
|
10015
|
-
projectionId: string;
|
|
10016
|
-
projectionRunId: string;
|
|
10017
|
-
datasetId: string;
|
|
10018
|
-
datasetVersionId: string;
|
|
10019
|
-
} | {
|
|
10020
|
-
kind: "telemetry";
|
|
10021
|
-
source: {
|
|
10022
|
-
kind: "runtime";
|
|
10023
|
-
requestId: string;
|
|
10024
|
-
} | {
|
|
10025
|
-
kind: "projection";
|
|
10026
|
-
projectionId: string;
|
|
10027
|
-
projectionRunId: string;
|
|
10028
|
-
datasetId: string;
|
|
10029
|
-
datasetVersionId: string;
|
|
10030
|
-
batchOrdinal: number;
|
|
10031
|
-
};
|
|
10032
|
-
};
|
|
10210
|
+
artifactId: string;
|
|
10211
|
+
version: number;
|
|
10212
|
+
title: string;
|
|
10213
|
+
entry: string;
|
|
10214
|
+
files: Array<{
|
|
10033
10215
|
/**
|
|
10034
|
-
*
|
|
10216
|
+
* The file's path inside the artifact, such as figures/revenue.svg
|
|
10035
10217
|
*/
|
|
10036
|
-
|
|
10037
|
-
|
|
10038
|
-
|
|
10039
|
-
|
|
10040
|
-
|
|
10041
|
-
|
|
10042
|
-
|
|
10043
|
-
|
|
10044
|
-
type: "primitive";
|
|
10045
|
-
kind: "action" | "pipeline" | "projection" | "rule" | "sync" | "webhook" | "workflow";
|
|
10046
|
-
id: string;
|
|
10047
|
-
runId: string;
|
|
10048
|
-
} | {
|
|
10049
|
-
type: "agent";
|
|
10050
|
-
runId: string;
|
|
10051
|
-
} | {
|
|
10052
|
-
type: "kernel";
|
|
10053
|
-
operation: {
|
|
10054
|
-
type: "ontology.recover";
|
|
10055
|
-
recoveryId: string;
|
|
10056
|
-
} | {
|
|
10057
|
-
type: "ontology.indexVectors";
|
|
10058
|
-
indexingId: string;
|
|
10059
|
-
};
|
|
10060
|
-
};
|
|
10061
|
-
commitId: string;
|
|
10062
|
-
commitOrdinal: number;
|
|
10063
|
-
type: "object.created";
|
|
10064
|
-
topic: "objects";
|
|
10065
|
-
payload: {
|
|
10066
|
-
objectTypeId: string;
|
|
10067
|
-
primaryId: string;
|
|
10068
|
-
properties: {
|
|
10069
|
-
[key: string]: string | number | boolean | Array<unknown> | {
|
|
10070
|
-
[key: string]: unknown;
|
|
10071
|
-
} | null;
|
|
10072
|
-
};
|
|
10073
|
-
propertyChanges: {
|
|
10074
|
-
[key: string]: {
|
|
10075
|
-
operation: "created";
|
|
10076
|
-
/**
|
|
10077
|
-
* Any JSON-compatible value.
|
|
10078
|
-
*/
|
|
10079
|
-
after: string | number | boolean | Array<unknown> | {
|
|
10080
|
-
[key: string]: unknown;
|
|
10081
|
-
} | null;
|
|
10082
|
-
} | {
|
|
10083
|
-
operation: "updated";
|
|
10084
|
-
/**
|
|
10085
|
-
* Any JSON-compatible value.
|
|
10086
|
-
*/
|
|
10087
|
-
before: string | number | boolean | Array<unknown> | {
|
|
10088
|
-
[key: string]: unknown;
|
|
10089
|
-
} | null;
|
|
10090
|
-
/**
|
|
10091
|
-
* Any JSON-compatible value.
|
|
10092
|
-
*/
|
|
10093
|
-
after: string | number | boolean | Array<unknown> | {
|
|
10094
|
-
[key: string]: unknown;
|
|
10095
|
-
} | null;
|
|
10096
|
-
} | {
|
|
10097
|
-
operation: "cleared";
|
|
10098
|
-
/**
|
|
10099
|
-
* Any JSON-compatible value.
|
|
10100
|
-
*/
|
|
10101
|
-
before: string | number | boolean | Array<unknown> | {
|
|
10102
|
-
[key: string]: unknown;
|
|
10103
|
-
} | null;
|
|
10104
|
-
after: null;
|
|
10105
|
-
};
|
|
10106
|
-
};
|
|
10107
|
-
redactions?: {
|
|
10108
|
-
[key: string]: {
|
|
10109
|
-
reason: "missing_clearance";
|
|
10110
|
-
};
|
|
10111
|
-
};
|
|
10218
|
+
path: string;
|
|
10219
|
+
file: {
|
|
10220
|
+
blobId: string;
|
|
10221
|
+
digest: string;
|
|
10222
|
+
sizeBytes: number;
|
|
10223
|
+
fileName?: string;
|
|
10224
|
+
mediaType?: string;
|
|
10225
|
+
logicalPath?: string;
|
|
10112
10226
|
};
|
|
10227
|
+
}>;
|
|
10228
|
+
outline: {
|
|
10229
|
+
kind: "document";
|
|
10230
|
+
headings: Array<{
|
|
10231
|
+
depth: number;
|
|
10232
|
+
text: string;
|
|
10233
|
+
slug: string;
|
|
10234
|
+
}>;
|
|
10113
10235
|
} | {
|
|
10114
|
-
|
|
10115
|
-
|
|
10116
|
-
|
|
10117
|
-
|
|
10118
|
-
|
|
10119
|
-
|
|
10120
|
-
|
|
10121
|
-
kind: "action";
|
|
10122
|
-
actionId: string;
|
|
10123
|
-
runId: string;
|
|
10124
|
-
} | {
|
|
10125
|
-
kind: "runtime";
|
|
10126
|
-
requestId: string;
|
|
10127
|
-
} | {
|
|
10128
|
-
kind: "projection";
|
|
10129
|
-
projectionId: string;
|
|
10130
|
-
projectionRunId: string;
|
|
10131
|
-
datasetId: string;
|
|
10132
|
-
datasetVersionId: string;
|
|
10133
|
-
} | {
|
|
10134
|
-
kind: "telemetry";
|
|
10135
|
-
source: {
|
|
10136
|
-
kind: "runtime";
|
|
10137
|
-
requestId: string;
|
|
10138
|
-
} | {
|
|
10139
|
-
kind: "projection";
|
|
10140
|
-
projectionId: string;
|
|
10141
|
-
projectionRunId: string;
|
|
10142
|
-
datasetId: string;
|
|
10143
|
-
datasetVersionId: string;
|
|
10144
|
-
batchOrdinal: number;
|
|
10145
|
-
};
|
|
10146
|
-
};
|
|
10147
|
-
/**
|
|
10148
|
-
* Principal on whose behalf the write ran; absent for automatic or anonymous work.
|
|
10149
|
-
*/
|
|
10150
|
-
requestedBy?: {
|
|
10151
|
-
type: "user" | "serviceAccount";
|
|
10152
|
-
id: string;
|
|
10153
|
-
};
|
|
10154
|
-
executor: {
|
|
10155
|
-
type: "request";
|
|
10156
|
-
requestId: string;
|
|
10157
|
-
} | {
|
|
10158
|
-
type: "primitive";
|
|
10159
|
-
kind: "action" | "pipeline" | "projection" | "rule" | "sync" | "webhook" | "workflow";
|
|
10160
|
-
id: string;
|
|
10161
|
-
runId: string;
|
|
10162
|
-
} | {
|
|
10163
|
-
type: "agent";
|
|
10164
|
-
runId: string;
|
|
10165
|
-
} | {
|
|
10166
|
-
type: "kernel";
|
|
10167
|
-
operation: {
|
|
10168
|
-
type: "ontology.recover";
|
|
10169
|
-
recoveryId: string;
|
|
10170
|
-
} | {
|
|
10171
|
-
type: "ontology.indexVectors";
|
|
10172
|
-
indexingId: string;
|
|
10173
|
-
};
|
|
10174
|
-
};
|
|
10175
|
-
commitId: string;
|
|
10176
|
-
commitOrdinal: number;
|
|
10177
|
-
type: "object.updated";
|
|
10178
|
-
topic: "objects";
|
|
10179
|
-
payload: {
|
|
10180
|
-
objectTypeId: string;
|
|
10181
|
-
primaryId: string;
|
|
10182
|
-
properties: {
|
|
10183
|
-
[key: string]: string | number | boolean | Array<unknown> | {
|
|
10184
|
-
[key: string]: unknown;
|
|
10185
|
-
} | null;
|
|
10186
|
-
};
|
|
10187
|
-
propertyChanges: {
|
|
10188
|
-
[key: string]: {
|
|
10189
|
-
operation: "created";
|
|
10190
|
-
/**
|
|
10191
|
-
* Any JSON-compatible value.
|
|
10192
|
-
*/
|
|
10193
|
-
after: string | number | boolean | Array<unknown> | {
|
|
10194
|
-
[key: string]: unknown;
|
|
10195
|
-
} | null;
|
|
10196
|
-
} | {
|
|
10197
|
-
operation: "updated";
|
|
10198
|
-
/**
|
|
10199
|
-
* Any JSON-compatible value.
|
|
10200
|
-
*/
|
|
10201
|
-
before: string | number | boolean | Array<unknown> | {
|
|
10202
|
-
[key: string]: unknown;
|
|
10203
|
-
} | null;
|
|
10204
|
-
/**
|
|
10205
|
-
* Any JSON-compatible value.
|
|
10206
|
-
*/
|
|
10207
|
-
after: string | number | boolean | Array<unknown> | {
|
|
10208
|
-
[key: string]: unknown;
|
|
10209
|
-
} | null;
|
|
10210
|
-
} | {
|
|
10211
|
-
operation: "cleared";
|
|
10212
|
-
/**
|
|
10213
|
-
* Any JSON-compatible value.
|
|
10214
|
-
*/
|
|
10215
|
-
before: string | number | boolean | Array<unknown> | {
|
|
10216
|
-
[key: string]: unknown;
|
|
10217
|
-
} | null;
|
|
10218
|
-
after: null;
|
|
10219
|
-
};
|
|
10220
|
-
};
|
|
10221
|
-
redactions?: {
|
|
10222
|
-
[key: string]: {
|
|
10223
|
-
reason: "missing_clearance";
|
|
10224
|
-
};
|
|
10225
|
-
};
|
|
10226
|
-
};
|
|
10236
|
+
kind: "sheet";
|
|
10237
|
+
sheets: Array<{
|
|
10238
|
+
name: string;
|
|
10239
|
+
rows: number;
|
|
10240
|
+
columns: Array<string>;
|
|
10241
|
+
}>;
|
|
10242
|
+
charts: Array<string>;
|
|
10227
10243
|
} | {
|
|
10244
|
+
kind: "slides";
|
|
10245
|
+
slides: Array<{
|
|
10246
|
+
title?: string;
|
|
10247
|
+
}>;
|
|
10248
|
+
} | {
|
|
10249
|
+
kind: "file";
|
|
10250
|
+
mediaType: string;
|
|
10251
|
+
};
|
|
10252
|
+
references: Array<{
|
|
10253
|
+
address: string;
|
|
10254
|
+
as: "embed" | "link";
|
|
10255
|
+
at: string;
|
|
10256
|
+
resolvedVersion: number;
|
|
10257
|
+
}>;
|
|
10258
|
+
author: {
|
|
10259
|
+
type: "user" | "serviceAccount" | "system";
|
|
10228
10260
|
id: string;
|
|
10229
|
-
|
|
10230
|
-
|
|
10231
|
-
|
|
10232
|
-
|
|
10233
|
-
|
|
10234
|
-
|
|
10235
|
-
|
|
10236
|
-
|
|
10237
|
-
|
|
10238
|
-
|
|
10239
|
-
|
|
10240
|
-
|
|
10241
|
-
|
|
10242
|
-
|
|
10243
|
-
|
|
10244
|
-
|
|
10245
|
-
|
|
10246
|
-
|
|
10261
|
+
};
|
|
10262
|
+
origin?: {
|
|
10263
|
+
threadId: string;
|
|
10264
|
+
runId: string;
|
|
10265
|
+
};
|
|
10266
|
+
createdAt: string;
|
|
10267
|
+
};
|
|
10268
|
+
};
|
|
10269
|
+
export type GetArtifactVersionResponse = GetArtifactVersionResponses[keyof GetArtifactVersionResponses];
|
|
10270
|
+
export type GetArtifactFileContentData = {
|
|
10271
|
+
body?: never;
|
|
10272
|
+
path: {
|
|
10273
|
+
artifactId: string;
|
|
10274
|
+
/**
|
|
10275
|
+
* A version number, or "latest"
|
|
10276
|
+
*/
|
|
10277
|
+
version: string;
|
|
10278
|
+
};
|
|
10279
|
+
query: {
|
|
10280
|
+
path: string;
|
|
10281
|
+
disposition?: "inline" | "attachment";
|
|
10282
|
+
/**
|
|
10283
|
+
* Client cache key; the route still resolves the current file
|
|
10284
|
+
*/
|
|
10285
|
+
v?: string;
|
|
10286
|
+
};
|
|
10287
|
+
url: "/api/artifacts/{artifactId}/versions/{version}/content";
|
|
10288
|
+
};
|
|
10289
|
+
export type GetArtifactFileContentErrors = {
|
|
10290
|
+
/**
|
|
10291
|
+
* Response for status 400
|
|
10292
|
+
*/
|
|
10293
|
+
400: ErrorResponse;
|
|
10294
|
+
/**
|
|
10295
|
+
* Response for status 404
|
|
10296
|
+
*/
|
|
10297
|
+
404: ErrorResponse;
|
|
10298
|
+
/**
|
|
10299
|
+
* Requested byte range is not satisfiable
|
|
10300
|
+
*/
|
|
10301
|
+
416: unknown;
|
|
10302
|
+
/**
|
|
10303
|
+
* The storage role backing this content is not configured
|
|
10304
|
+
*/
|
|
10305
|
+
501: ErrorResponse;
|
|
10306
|
+
};
|
|
10307
|
+
export type GetArtifactFileContentError = GetArtifactFileContentErrors[keyof GetArtifactFileContentErrors];
|
|
10308
|
+
export type GetArtifactFileContentResponses = {
|
|
10309
|
+
/**
|
|
10310
|
+
* File content
|
|
10311
|
+
*/
|
|
10312
|
+
200: Blob | File;
|
|
10313
|
+
/**
|
|
10314
|
+
* Partial file content
|
|
10315
|
+
*/
|
|
10316
|
+
206: Blob | File;
|
|
10317
|
+
};
|
|
10318
|
+
export type GetArtifactFileContentResponse = GetArtifactFileContentResponses[keyof GetArtifactFileContentResponses];
|
|
10319
|
+
export type HeadArtifactFileContentData = {
|
|
10320
|
+
body?: never;
|
|
10321
|
+
path: {
|
|
10322
|
+
artifactId: string;
|
|
10323
|
+
/**
|
|
10324
|
+
* A version number, or "latest"
|
|
10325
|
+
*/
|
|
10326
|
+
version: string;
|
|
10327
|
+
};
|
|
10328
|
+
query: {
|
|
10329
|
+
path: string;
|
|
10330
|
+
disposition?: "inline" | "attachment";
|
|
10331
|
+
/**
|
|
10332
|
+
* Client cache key; the route still resolves the current file
|
|
10333
|
+
*/
|
|
10334
|
+
v?: string;
|
|
10335
|
+
};
|
|
10336
|
+
url: "/api/artifacts/{artifactId}/versions/{version}/content";
|
|
10337
|
+
};
|
|
10338
|
+
export type HeadArtifactFileContentErrors = {
|
|
10339
|
+
/**
|
|
10340
|
+
* Response for status 400
|
|
10341
|
+
*/
|
|
10342
|
+
400: ErrorResponse;
|
|
10343
|
+
/**
|
|
10344
|
+
* Response for status 404
|
|
10345
|
+
*/
|
|
10346
|
+
404: ErrorResponse;
|
|
10347
|
+
/**
|
|
10348
|
+
* Requested byte range is not satisfiable
|
|
10349
|
+
*/
|
|
10350
|
+
416: unknown;
|
|
10351
|
+
/**
|
|
10352
|
+
* The storage role backing this content is not configured
|
|
10353
|
+
*/
|
|
10354
|
+
501: ErrorResponse;
|
|
10355
|
+
};
|
|
10356
|
+
export type HeadArtifactFileContentError = HeadArtifactFileContentErrors[keyof HeadArtifactFileContentErrors];
|
|
10357
|
+
export type HeadArtifactFileContentResponses = {
|
|
10358
|
+
/**
|
|
10359
|
+
* File content headers
|
|
10360
|
+
*/
|
|
10361
|
+
200: unknown;
|
|
10362
|
+
/**
|
|
10363
|
+
* Partial file content headers
|
|
10364
|
+
*/
|
|
10365
|
+
206: unknown;
|
|
10366
|
+
};
|
|
10367
|
+
export type ListModelsData = {
|
|
10368
|
+
body?: never;
|
|
10369
|
+
path?: never;
|
|
10370
|
+
query?: never;
|
|
10371
|
+
url: "/api/models";
|
|
10372
|
+
};
|
|
10373
|
+
export type ListModelsResponses = {
|
|
10374
|
+
/**
|
|
10375
|
+
* Response for status 200
|
|
10376
|
+
*/
|
|
10377
|
+
200: {
|
|
10378
|
+
language: Array<{
|
|
10379
|
+
provider: string;
|
|
10380
|
+
modelId: string;
|
|
10381
|
+
isDefault: boolean;
|
|
10382
|
+
name: string;
|
|
10383
|
+
description?: string;
|
|
10384
|
+
publisher: {
|
|
10385
|
+
id: string;
|
|
10386
|
+
name: string;
|
|
10387
|
+
};
|
|
10388
|
+
via?: string;
|
|
10389
|
+
capabilities: {
|
|
10390
|
+
input: Array<"text" | "image" | "audio" | "video" | "pdf">;
|
|
10391
|
+
output: Array<"text" | "image" | "audio" | "video" | "pdf">;
|
|
10392
|
+
attachments?: boolean;
|
|
10393
|
+
reasoning?: boolean;
|
|
10394
|
+
tools?: boolean;
|
|
10395
|
+
structuredOutput?: boolean;
|
|
10396
|
+
contextWindowTokens?: number;
|
|
10397
|
+
};
|
|
10398
|
+
reasoningLevels: Array<"provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max">;
|
|
10399
|
+
defaultReasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
|
|
10400
|
+
}>;
|
|
10401
|
+
};
|
|
10402
|
+
};
|
|
10403
|
+
export type ListModelsResponse = ListModelsResponses[keyof ListModelsResponses];
|
|
10404
|
+
export type RemoveObjectLinkData = {
|
|
10405
|
+
body?: never;
|
|
10406
|
+
path: {
|
|
10407
|
+
objectTypeId: string;
|
|
10408
|
+
objectId: string;
|
|
10409
|
+
linkId: string;
|
|
10410
|
+
};
|
|
10411
|
+
query: {
|
|
10412
|
+
targetTypeId: string;
|
|
10413
|
+
targetId: string;
|
|
10414
|
+
};
|
|
10415
|
+
url: "/api/objects/{objectTypeId}/{objectId}/links/{linkId}";
|
|
10416
|
+
};
|
|
10417
|
+
export type RemoveObjectLinkErrors = {
|
|
10418
|
+
/**
|
|
10419
|
+
* Response for status 400
|
|
10420
|
+
*/
|
|
10421
|
+
400: {
|
|
10422
|
+
error: string;
|
|
10423
|
+
};
|
|
10424
|
+
/**
|
|
10425
|
+
* Response for status 403
|
|
10426
|
+
*/
|
|
10427
|
+
403: {
|
|
10428
|
+
error: string;
|
|
10429
|
+
};
|
|
10430
|
+
/**
|
|
10431
|
+
* Response for status 404
|
|
10432
|
+
*/
|
|
10433
|
+
404: {
|
|
10434
|
+
error: string;
|
|
10435
|
+
};
|
|
10436
|
+
};
|
|
10437
|
+
export type RemoveObjectLinkError = RemoveObjectLinkErrors[keyof RemoveObjectLinkErrors];
|
|
10438
|
+
export type RemoveObjectLinkResponses = {
|
|
10439
|
+
/**
|
|
10440
|
+
* Response for status 200
|
|
10441
|
+
*/
|
|
10442
|
+
200: {
|
|
10443
|
+
success: boolean;
|
|
10444
|
+
};
|
|
10445
|
+
};
|
|
10446
|
+
export type RemoveObjectLinkResponse = RemoveObjectLinkResponses[keyof RemoveObjectLinkResponses];
|
|
10447
|
+
export type UpsertObjectLinkData = {
|
|
10448
|
+
body: {
|
|
10449
|
+
targetTypeId: string;
|
|
10450
|
+
targetId: string;
|
|
10451
|
+
properties?: {
|
|
10452
|
+
[key: string]: unknown;
|
|
10453
|
+
};
|
|
10454
|
+
};
|
|
10455
|
+
path: {
|
|
10456
|
+
objectTypeId: string;
|
|
10457
|
+
objectId: string;
|
|
10458
|
+
linkId: string;
|
|
10459
|
+
};
|
|
10460
|
+
query?: never;
|
|
10461
|
+
url: "/api/objects/{objectTypeId}/{objectId}/links/{linkId}";
|
|
10462
|
+
};
|
|
10463
|
+
export type UpsertObjectLinkErrors = {
|
|
10464
|
+
/**
|
|
10465
|
+
* Response for status 400
|
|
10466
|
+
*/
|
|
10467
|
+
400: {
|
|
10468
|
+
error: string;
|
|
10469
|
+
};
|
|
10470
|
+
/**
|
|
10471
|
+
* Response for status 403
|
|
10472
|
+
*/
|
|
10473
|
+
403: {
|
|
10474
|
+
error: string;
|
|
10475
|
+
};
|
|
10476
|
+
/**
|
|
10477
|
+
* Response for status 404
|
|
10478
|
+
*/
|
|
10479
|
+
404: {
|
|
10480
|
+
error: string;
|
|
10481
|
+
};
|
|
10482
|
+
};
|
|
10483
|
+
export type UpsertObjectLinkError = UpsertObjectLinkErrors[keyof UpsertObjectLinkErrors];
|
|
10484
|
+
export type UpsertObjectLinkResponses = {
|
|
10485
|
+
/**
|
|
10486
|
+
* Response for status 200
|
|
10487
|
+
*/
|
|
10488
|
+
200: {
|
|
10489
|
+
success: boolean;
|
|
10490
|
+
};
|
|
10491
|
+
};
|
|
10492
|
+
export type UpsertObjectLinkResponse = UpsertObjectLinkResponses[keyof UpsertObjectLinkResponses];
|
|
10493
|
+
export type AppendTelemetryData = {
|
|
10494
|
+
body: {
|
|
10495
|
+
value?: unknown;
|
|
10496
|
+
unit?: string;
|
|
10497
|
+
at?: string;
|
|
10498
|
+
};
|
|
10499
|
+
path: {
|
|
10500
|
+
objectTypeId: string;
|
|
10501
|
+
objectId: string;
|
|
10502
|
+
propertyId: string;
|
|
10503
|
+
};
|
|
10504
|
+
query?: never;
|
|
10505
|
+
url: "/api/objects/{objectTypeId}/{objectId}/telemetry/{propertyId}";
|
|
10506
|
+
};
|
|
10507
|
+
export type AppendTelemetryErrors = {
|
|
10508
|
+
/**
|
|
10509
|
+
* Response for status 400
|
|
10510
|
+
*/
|
|
10511
|
+
400: {
|
|
10512
|
+
error: string;
|
|
10513
|
+
};
|
|
10514
|
+
/**
|
|
10515
|
+
* Response for status 403
|
|
10516
|
+
*/
|
|
10517
|
+
403: {
|
|
10518
|
+
error: string;
|
|
10519
|
+
};
|
|
10520
|
+
/**
|
|
10521
|
+
* Response for status 404
|
|
10522
|
+
*/
|
|
10523
|
+
404: {
|
|
10524
|
+
error: string;
|
|
10525
|
+
};
|
|
10526
|
+
};
|
|
10527
|
+
export type AppendTelemetryError = AppendTelemetryErrors[keyof AppendTelemetryErrors];
|
|
10528
|
+
export type AppendTelemetryResponses = {
|
|
10529
|
+
/**
|
|
10530
|
+
* Response for status 200
|
|
10531
|
+
*/
|
|
10532
|
+
200: {
|
|
10533
|
+
success: boolean;
|
|
10534
|
+
};
|
|
10535
|
+
};
|
|
10536
|
+
export type AppendTelemetryResponse = AppendTelemetryResponses[keyof AppendTelemetryResponses];
|
|
10537
|
+
export type GetBulkTelemetryHistoryData = {
|
|
10538
|
+
body: {
|
|
10539
|
+
series: Array<{
|
|
10540
|
+
objectTypeId: string;
|
|
10541
|
+
objectId: string;
|
|
10542
|
+
propertyId: string;
|
|
10543
|
+
}>;
|
|
10544
|
+
from?: string;
|
|
10545
|
+
to?: string;
|
|
10546
|
+
limitPerSeries?: number;
|
|
10547
|
+
order?: "asc" | "desc";
|
|
10548
|
+
};
|
|
10549
|
+
path?: never;
|
|
10550
|
+
query?: never;
|
|
10551
|
+
url: "/api/telemetry/history";
|
|
10552
|
+
};
|
|
10553
|
+
export type GetBulkTelemetryHistoryErrors = {
|
|
10554
|
+
/**
|
|
10555
|
+
* Response for status 400
|
|
10556
|
+
*/
|
|
10557
|
+
400: {
|
|
10558
|
+
error: string;
|
|
10559
|
+
};
|
|
10560
|
+
/**
|
|
10561
|
+
* Response for status 403
|
|
10562
|
+
*/
|
|
10563
|
+
403: {
|
|
10564
|
+
error: string;
|
|
10565
|
+
};
|
|
10566
|
+
};
|
|
10567
|
+
export type GetBulkTelemetryHistoryError = GetBulkTelemetryHistoryErrors[keyof GetBulkTelemetryHistoryErrors];
|
|
10568
|
+
export type GetBulkTelemetryHistoryResponses = {
|
|
10569
|
+
/**
|
|
10570
|
+
* Response for status 200
|
|
10571
|
+
*/
|
|
10572
|
+
200: {
|
|
10573
|
+
series: Array<{
|
|
10574
|
+
objectTypeId: string;
|
|
10575
|
+
objectId: string;
|
|
10576
|
+
propertyId: string;
|
|
10577
|
+
points: Array<{
|
|
10578
|
+
projectId: string;
|
|
10579
|
+
objectTypeId: string;
|
|
10580
|
+
objectId: string;
|
|
10581
|
+
propertyId: string;
|
|
10582
|
+
value?: unknown;
|
|
10583
|
+
unit?: string;
|
|
10584
|
+
at: string;
|
|
10585
|
+
}>;
|
|
10586
|
+
}>;
|
|
10587
|
+
};
|
|
10588
|
+
};
|
|
10589
|
+
export type GetBulkTelemetryHistoryResponse = GetBulkTelemetryHistoryResponses[keyof GetBulkTelemetryHistoryResponses];
|
|
10590
|
+
export type GetTelemetryHistoryData = {
|
|
10591
|
+
body?: never;
|
|
10592
|
+
path: {
|
|
10593
|
+
objectTypeId: string;
|
|
10594
|
+
objectId: string;
|
|
10595
|
+
propertyId: string;
|
|
10596
|
+
};
|
|
10597
|
+
query?: {
|
|
10598
|
+
from?: string;
|
|
10599
|
+
to?: string;
|
|
10600
|
+
limit?: string;
|
|
10601
|
+
order?: "asc" | "desc";
|
|
10602
|
+
};
|
|
10603
|
+
url: "/api/objects/{objectTypeId}/{objectId}/telemetry/{propertyId}/history";
|
|
10604
|
+
};
|
|
10605
|
+
export type GetTelemetryHistoryErrors = {
|
|
10606
|
+
/**
|
|
10607
|
+
* Response for status 400
|
|
10608
|
+
*/
|
|
10609
|
+
400: {
|
|
10610
|
+
error: string;
|
|
10611
|
+
};
|
|
10612
|
+
/**
|
|
10613
|
+
* Response for status 404
|
|
10614
|
+
*/
|
|
10615
|
+
404: {
|
|
10616
|
+
error: string;
|
|
10617
|
+
};
|
|
10618
|
+
};
|
|
10619
|
+
export type GetTelemetryHistoryError = GetTelemetryHistoryErrors[keyof GetTelemetryHistoryErrors];
|
|
10620
|
+
export type GetTelemetryHistoryResponses = {
|
|
10621
|
+
/**
|
|
10622
|
+
* Response for status 200
|
|
10623
|
+
*/
|
|
10624
|
+
200: Array<{
|
|
10625
|
+
projectId: string;
|
|
10626
|
+
objectTypeId: string;
|
|
10627
|
+
objectId: string;
|
|
10628
|
+
propertyId: string;
|
|
10629
|
+
value?: unknown;
|
|
10630
|
+
unit?: string;
|
|
10631
|
+
at: string;
|
|
10632
|
+
}>;
|
|
10633
|
+
};
|
|
10634
|
+
export type GetTelemetryHistoryResponse = GetTelemetryHistoryResponses[keyof GetTelemetryHistoryResponses];
|
|
10635
|
+
export type GetLatestTelemetryData = {
|
|
10636
|
+
body?: never;
|
|
10637
|
+
path: {
|
|
10638
|
+
objectTypeId: string;
|
|
10639
|
+
objectId: string;
|
|
10640
|
+
propertyId: string;
|
|
10641
|
+
};
|
|
10642
|
+
query?: never;
|
|
10643
|
+
url: "/api/objects/{objectTypeId}/{objectId}/telemetry/{propertyId}/latest";
|
|
10644
|
+
};
|
|
10645
|
+
export type GetLatestTelemetryErrors = {
|
|
10646
|
+
/**
|
|
10647
|
+
* Response for status 400
|
|
10648
|
+
*/
|
|
10649
|
+
400: {
|
|
10650
|
+
error: string;
|
|
10651
|
+
};
|
|
10652
|
+
/**
|
|
10653
|
+
* Response for status 404
|
|
10654
|
+
*/
|
|
10655
|
+
404: {
|
|
10656
|
+
error: string;
|
|
10657
|
+
};
|
|
10658
|
+
};
|
|
10659
|
+
export type GetLatestTelemetryError = GetLatestTelemetryErrors[keyof GetLatestTelemetryErrors];
|
|
10660
|
+
export type GetLatestTelemetryResponses = {
|
|
10661
|
+
/**
|
|
10662
|
+
* Response for status 200
|
|
10663
|
+
*/
|
|
10664
|
+
200: {
|
|
10665
|
+
projectId: string;
|
|
10666
|
+
objectTypeId: string;
|
|
10667
|
+
objectId: string;
|
|
10668
|
+
propertyId: string;
|
|
10669
|
+
value?: unknown;
|
|
10670
|
+
unit?: string;
|
|
10671
|
+
at: string;
|
|
10672
|
+
};
|
|
10673
|
+
};
|
|
10674
|
+
export type GetLatestTelemetryResponse = GetLatestTelemetryResponses[keyof GetLatestTelemetryResponses];
|
|
10675
|
+
export type ListEventsData = {
|
|
10676
|
+
body?: never;
|
|
10677
|
+
path?: never;
|
|
10678
|
+
query?: {
|
|
10679
|
+
topic?: "objects" | "telemetry" | "links" | "schedules" | "syncs" | "pipelines" | "workflows" | "datasets" | "rules";
|
|
10680
|
+
type?: "object.created" | "object.updated" | "object.deleted" | "telemetry.appended" | "link.created" | "link.updated" | "link.deleted" | "schedule.triggered" | "sync.run.started" | "sync.run.finished" | "pipeline.run.started" | "pipeline.run.step.started" | "pipeline.run.step.finished" | "pipeline.run.finished" | "workflow.run.queued" | "workflow.run.started" | "workflow.run.node.started" | "workflow.run.waiting" | "workflow.run.node.waiting" | "workflow.run.node.finished" | "workflow.run.finished" | "workflow.intervention.requested" | "workflow.intervention.submitted" | "workflow.intervention.cancelled" | "workflow.intervention.expired" | "dataset.version.committed" | "rule.triggered" | "rule.resolved";
|
|
10681
|
+
afterCursor?: string;
|
|
10682
|
+
limit?: string;
|
|
10683
|
+
};
|
|
10684
|
+
url: "/api/events";
|
|
10685
|
+
};
|
|
10686
|
+
export type ListEventsErrors = {
|
|
10687
|
+
/**
|
|
10688
|
+
* Response for status 400
|
|
10689
|
+
*/
|
|
10690
|
+
400: {
|
|
10691
|
+
error: string;
|
|
10692
|
+
};
|
|
10693
|
+
/**
|
|
10694
|
+
* Response for status 403
|
|
10695
|
+
*/
|
|
10696
|
+
403: {
|
|
10697
|
+
error: string;
|
|
10698
|
+
};
|
|
10699
|
+
};
|
|
10700
|
+
export type ListEventsError = ListEventsErrors[keyof ListEventsErrors];
|
|
10701
|
+
export type ListEventsResponses = {
|
|
10702
|
+
/**
|
|
10703
|
+
* Response for status 200
|
|
10704
|
+
*/
|
|
10705
|
+
200: {
|
|
10706
|
+
count: number;
|
|
10707
|
+
events: Array<{
|
|
10708
|
+
id: string;
|
|
10709
|
+
cursor: string;
|
|
10710
|
+
schemaVersion: 1;
|
|
10711
|
+
projectId: string;
|
|
10712
|
+
occurredAt: string;
|
|
10713
|
+
partitionKey: string;
|
|
10714
|
+
origin: {
|
|
10715
|
+
kind: "action";
|
|
10716
|
+
actionId: string;
|
|
10717
|
+
runId: string;
|
|
10718
|
+
} | {
|
|
10719
|
+
kind: "runtime";
|
|
10720
|
+
requestId: string;
|
|
10721
|
+
} | {
|
|
10722
|
+
kind: "projection";
|
|
10723
|
+
projectionId: string;
|
|
10724
|
+
projectionRunId: string;
|
|
10725
|
+
datasetId: string;
|
|
10726
|
+
datasetVersionId: string;
|
|
10727
|
+
} | {
|
|
10728
|
+
kind: "telemetry";
|
|
10729
|
+
source: {
|
|
10730
|
+
kind: "runtime";
|
|
10731
|
+
requestId: string;
|
|
10732
|
+
} | {
|
|
10733
|
+
kind: "projection";
|
|
10734
|
+
projectionId: string;
|
|
10735
|
+
projectionRunId: string;
|
|
10736
|
+
datasetId: string;
|
|
10737
|
+
datasetVersionId: string;
|
|
10738
|
+
batchOrdinal: number;
|
|
10739
|
+
};
|
|
10740
|
+
};
|
|
10741
|
+
/**
|
|
10742
|
+
* Principal on whose behalf the write ran; absent for automatic or anonymous work.
|
|
10743
|
+
*/
|
|
10744
|
+
requestedBy?: {
|
|
10745
|
+
type: "user" | "serviceAccount";
|
|
10746
|
+
id: string;
|
|
10747
|
+
};
|
|
10748
|
+
executor: {
|
|
10749
|
+
type: "request";
|
|
10750
|
+
requestId: string;
|
|
10751
|
+
} | {
|
|
10752
|
+
type: "primitive";
|
|
10753
|
+
kind: "action" | "pipeline" | "projection" | "rule" | "sync" | "webhook" | "workflow";
|
|
10754
|
+
id: string;
|
|
10755
|
+
runId: string;
|
|
10756
|
+
} | {
|
|
10757
|
+
type: "agent";
|
|
10758
|
+
runId: string;
|
|
10759
|
+
} | {
|
|
10760
|
+
type: "kernel";
|
|
10761
|
+
operation: {
|
|
10762
|
+
type: "ontology.recover";
|
|
10763
|
+
recoveryId: string;
|
|
10764
|
+
} | {
|
|
10765
|
+
type: "ontology.indexVectors";
|
|
10766
|
+
indexingId: string;
|
|
10767
|
+
};
|
|
10768
|
+
};
|
|
10769
|
+
commitId: string;
|
|
10770
|
+
commitOrdinal: number;
|
|
10771
|
+
type: "object.created";
|
|
10772
|
+
topic: "objects";
|
|
10773
|
+
payload: {
|
|
10774
|
+
objectTypeId: string;
|
|
10775
|
+
primaryId: string;
|
|
10776
|
+
properties: {
|
|
10777
|
+
[key: string]: string | number | boolean | Array<unknown> | {
|
|
10778
|
+
[key: string]: unknown;
|
|
10779
|
+
} | null;
|
|
10780
|
+
};
|
|
10781
|
+
propertyChanges: {
|
|
10782
|
+
[key: string]: {
|
|
10783
|
+
operation: "created";
|
|
10784
|
+
/**
|
|
10785
|
+
* Any JSON-compatible value.
|
|
10786
|
+
*/
|
|
10787
|
+
after: string | number | boolean | Array<unknown> | {
|
|
10788
|
+
[key: string]: unknown;
|
|
10789
|
+
} | null;
|
|
10790
|
+
} | {
|
|
10791
|
+
operation: "updated";
|
|
10792
|
+
/**
|
|
10793
|
+
* Any JSON-compatible value.
|
|
10794
|
+
*/
|
|
10795
|
+
before: string | number | boolean | Array<unknown> | {
|
|
10796
|
+
[key: string]: unknown;
|
|
10797
|
+
} | null;
|
|
10798
|
+
/**
|
|
10799
|
+
* Any JSON-compatible value.
|
|
10800
|
+
*/
|
|
10801
|
+
after: string | number | boolean | Array<unknown> | {
|
|
10802
|
+
[key: string]: unknown;
|
|
10803
|
+
} | null;
|
|
10804
|
+
} | {
|
|
10805
|
+
operation: "cleared";
|
|
10806
|
+
/**
|
|
10807
|
+
* Any JSON-compatible value.
|
|
10808
|
+
*/
|
|
10809
|
+
before: string | number | boolean | Array<unknown> | {
|
|
10810
|
+
[key: string]: unknown;
|
|
10811
|
+
} | null;
|
|
10812
|
+
after: null;
|
|
10813
|
+
};
|
|
10814
|
+
};
|
|
10815
|
+
redactions?: {
|
|
10816
|
+
[key: string]: {
|
|
10817
|
+
reason: "missing_clearance";
|
|
10818
|
+
};
|
|
10819
|
+
};
|
|
10820
|
+
};
|
|
10821
|
+
} | {
|
|
10822
|
+
id: string;
|
|
10823
|
+
cursor: string;
|
|
10824
|
+
schemaVersion: 1;
|
|
10825
|
+
projectId: string;
|
|
10826
|
+
occurredAt: string;
|
|
10827
|
+
partitionKey: string;
|
|
10828
|
+
origin: {
|
|
10829
|
+
kind: "action";
|
|
10830
|
+
actionId: string;
|
|
10831
|
+
runId: string;
|
|
10832
|
+
} | {
|
|
10833
|
+
kind: "runtime";
|
|
10834
|
+
requestId: string;
|
|
10835
|
+
} | {
|
|
10836
|
+
kind: "projection";
|
|
10837
|
+
projectionId: string;
|
|
10838
|
+
projectionRunId: string;
|
|
10839
|
+
datasetId: string;
|
|
10840
|
+
datasetVersionId: string;
|
|
10841
|
+
} | {
|
|
10842
|
+
kind: "telemetry";
|
|
10843
|
+
source: {
|
|
10844
|
+
kind: "runtime";
|
|
10845
|
+
requestId: string;
|
|
10846
|
+
} | {
|
|
10847
|
+
kind: "projection";
|
|
10848
|
+
projectionId: string;
|
|
10849
|
+
projectionRunId: string;
|
|
10850
|
+
datasetId: string;
|
|
10851
|
+
datasetVersionId: string;
|
|
10852
|
+
batchOrdinal: number;
|
|
10853
|
+
};
|
|
10854
|
+
};
|
|
10855
|
+
/**
|
|
10856
|
+
* Principal on whose behalf the write ran; absent for automatic or anonymous work.
|
|
10857
|
+
*/
|
|
10858
|
+
requestedBy?: {
|
|
10859
|
+
type: "user" | "serviceAccount";
|
|
10860
|
+
id: string;
|
|
10861
|
+
};
|
|
10862
|
+
executor: {
|
|
10863
|
+
type: "request";
|
|
10864
|
+
requestId: string;
|
|
10865
|
+
} | {
|
|
10866
|
+
type: "primitive";
|
|
10867
|
+
kind: "action" | "pipeline" | "projection" | "rule" | "sync" | "webhook" | "workflow";
|
|
10868
|
+
id: string;
|
|
10869
|
+
runId: string;
|
|
10870
|
+
} | {
|
|
10871
|
+
type: "agent";
|
|
10872
|
+
runId: string;
|
|
10873
|
+
} | {
|
|
10874
|
+
type: "kernel";
|
|
10875
|
+
operation: {
|
|
10876
|
+
type: "ontology.recover";
|
|
10877
|
+
recoveryId: string;
|
|
10878
|
+
} | {
|
|
10879
|
+
type: "ontology.indexVectors";
|
|
10880
|
+
indexingId: string;
|
|
10881
|
+
};
|
|
10882
|
+
};
|
|
10883
|
+
commitId: string;
|
|
10884
|
+
commitOrdinal: number;
|
|
10885
|
+
type: "object.updated";
|
|
10886
|
+
topic: "objects";
|
|
10887
|
+
payload: {
|
|
10888
|
+
objectTypeId: string;
|
|
10889
|
+
primaryId: string;
|
|
10890
|
+
properties: {
|
|
10891
|
+
[key: string]: string | number | boolean | Array<unknown> | {
|
|
10892
|
+
[key: string]: unknown;
|
|
10893
|
+
} | null;
|
|
10894
|
+
};
|
|
10895
|
+
propertyChanges: {
|
|
10896
|
+
[key: string]: {
|
|
10897
|
+
operation: "created";
|
|
10898
|
+
/**
|
|
10899
|
+
* Any JSON-compatible value.
|
|
10900
|
+
*/
|
|
10901
|
+
after: string | number | boolean | Array<unknown> | {
|
|
10902
|
+
[key: string]: unknown;
|
|
10903
|
+
} | null;
|
|
10904
|
+
} | {
|
|
10905
|
+
operation: "updated";
|
|
10906
|
+
/**
|
|
10907
|
+
* Any JSON-compatible value.
|
|
10908
|
+
*/
|
|
10909
|
+
before: string | number | boolean | Array<unknown> | {
|
|
10910
|
+
[key: string]: unknown;
|
|
10911
|
+
} | null;
|
|
10912
|
+
/**
|
|
10913
|
+
* Any JSON-compatible value.
|
|
10914
|
+
*/
|
|
10915
|
+
after: string | number | boolean | Array<unknown> | {
|
|
10916
|
+
[key: string]: unknown;
|
|
10917
|
+
} | null;
|
|
10918
|
+
} | {
|
|
10919
|
+
operation: "cleared";
|
|
10920
|
+
/**
|
|
10921
|
+
* Any JSON-compatible value.
|
|
10922
|
+
*/
|
|
10923
|
+
before: string | number | boolean | Array<unknown> | {
|
|
10924
|
+
[key: string]: unknown;
|
|
10925
|
+
} | null;
|
|
10926
|
+
after: null;
|
|
10927
|
+
};
|
|
10928
|
+
};
|
|
10929
|
+
redactions?: {
|
|
10930
|
+
[key: string]: {
|
|
10931
|
+
reason: "missing_clearance";
|
|
10932
|
+
};
|
|
10933
|
+
};
|
|
10934
|
+
};
|
|
10935
|
+
} | {
|
|
10936
|
+
id: string;
|
|
10937
|
+
cursor: string;
|
|
10938
|
+
schemaVersion: 1;
|
|
10939
|
+
projectId: string;
|
|
10940
|
+
occurredAt: string;
|
|
10941
|
+
partitionKey: string;
|
|
10942
|
+
origin: {
|
|
10943
|
+
kind: "action";
|
|
10944
|
+
actionId: string;
|
|
10945
|
+
runId: string;
|
|
10946
|
+
} | {
|
|
10947
|
+
kind: "runtime";
|
|
10948
|
+
requestId: string;
|
|
10949
|
+
} | {
|
|
10950
|
+
kind: "projection";
|
|
10951
|
+
projectionId: string;
|
|
10952
|
+
projectionRunId: string;
|
|
10953
|
+
datasetId: string;
|
|
10954
|
+
datasetVersionId: string;
|
|
10247
10955
|
} | {
|
|
10248
10956
|
kind: "telemetry";
|
|
10249
10957
|
source: {
|
|
@@ -10586,229 +11294,683 @@ export type ListEventsResponses = {
|
|
|
10586
11294
|
indexingId: string;
|
|
10587
11295
|
};
|
|
10588
11296
|
};
|
|
10589
|
-
commitId: string;
|
|
10590
|
-
commitOrdinal: number;
|
|
10591
|
-
type: "link.updated";
|
|
10592
|
-
topic: "links";
|
|
10593
|
-
payload: {
|
|
10594
|
-
sourceTypeId: string;
|
|
10595
|
-
sourceId: string;
|
|
10596
|
-
linkId: string;
|
|
10597
|
-
targetTypeId: string;
|
|
10598
|
-
targetId: string;
|
|
10599
|
-
properties?: {
|
|
10600
|
-
[key: string]: string | number | boolean | Array<unknown> | {
|
|
10601
|
-
[key: string]: unknown;
|
|
10602
|
-
} | null;
|
|
10603
|
-
};
|
|
10604
|
-
propertyChanges: {
|
|
10605
|
-
[key: string]: {
|
|
10606
|
-
operation: "created";
|
|
10607
|
-
/**
|
|
10608
|
-
* Any JSON-compatible value.
|
|
10609
|
-
*/
|
|
10610
|
-
after: string | number | boolean | Array<unknown> | {
|
|
10611
|
-
[key: string]: unknown;
|
|
10612
|
-
} | null;
|
|
10613
|
-
} | {
|
|
10614
|
-
operation: "updated";
|
|
10615
|
-
/**
|
|
10616
|
-
* Any JSON-compatible value.
|
|
10617
|
-
*/
|
|
10618
|
-
before: string | number | boolean | Array<unknown> | {
|
|
10619
|
-
[key: string]: unknown;
|
|
10620
|
-
} | null;
|
|
10621
|
-
/**
|
|
10622
|
-
* Any JSON-compatible value.
|
|
10623
|
-
*/
|
|
10624
|
-
after: string | number | boolean | Array<unknown> | {
|
|
10625
|
-
[key: string]: unknown;
|
|
10626
|
-
} | null;
|
|
10627
|
-
} | {
|
|
10628
|
-
operation: "cleared";
|
|
10629
|
-
/**
|
|
10630
|
-
* Any JSON-compatible value.
|
|
10631
|
-
*/
|
|
10632
|
-
before: string | number | boolean | Array<unknown> | {
|
|
10633
|
-
[key: string]: unknown;
|
|
10634
|
-
} | null;
|
|
10635
|
-
after: null;
|
|
10636
|
-
};
|
|
11297
|
+
commitId: string;
|
|
11298
|
+
commitOrdinal: number;
|
|
11299
|
+
type: "link.updated";
|
|
11300
|
+
topic: "links";
|
|
11301
|
+
payload: {
|
|
11302
|
+
sourceTypeId: string;
|
|
11303
|
+
sourceId: string;
|
|
11304
|
+
linkId: string;
|
|
11305
|
+
targetTypeId: string;
|
|
11306
|
+
targetId: string;
|
|
11307
|
+
properties?: {
|
|
11308
|
+
[key: string]: string | number | boolean | Array<unknown> | {
|
|
11309
|
+
[key: string]: unknown;
|
|
11310
|
+
} | null;
|
|
11311
|
+
};
|
|
11312
|
+
propertyChanges: {
|
|
11313
|
+
[key: string]: {
|
|
11314
|
+
operation: "created";
|
|
11315
|
+
/**
|
|
11316
|
+
* Any JSON-compatible value.
|
|
11317
|
+
*/
|
|
11318
|
+
after: string | number | boolean | Array<unknown> | {
|
|
11319
|
+
[key: string]: unknown;
|
|
11320
|
+
} | null;
|
|
11321
|
+
} | {
|
|
11322
|
+
operation: "updated";
|
|
11323
|
+
/**
|
|
11324
|
+
* Any JSON-compatible value.
|
|
11325
|
+
*/
|
|
11326
|
+
before: string | number | boolean | Array<unknown> | {
|
|
11327
|
+
[key: string]: unknown;
|
|
11328
|
+
} | null;
|
|
11329
|
+
/**
|
|
11330
|
+
* Any JSON-compatible value.
|
|
11331
|
+
*/
|
|
11332
|
+
after: string | number | boolean | Array<unknown> | {
|
|
11333
|
+
[key: string]: unknown;
|
|
11334
|
+
} | null;
|
|
11335
|
+
} | {
|
|
11336
|
+
operation: "cleared";
|
|
11337
|
+
/**
|
|
11338
|
+
* Any JSON-compatible value.
|
|
11339
|
+
*/
|
|
11340
|
+
before: string | number | boolean | Array<unknown> | {
|
|
11341
|
+
[key: string]: unknown;
|
|
11342
|
+
} | null;
|
|
11343
|
+
after: null;
|
|
11344
|
+
};
|
|
11345
|
+
};
|
|
11346
|
+
};
|
|
11347
|
+
} | {
|
|
11348
|
+
id: string;
|
|
11349
|
+
cursor: string;
|
|
11350
|
+
schemaVersion: 1;
|
|
11351
|
+
projectId: string;
|
|
11352
|
+
occurredAt: string;
|
|
11353
|
+
partitionKey: string;
|
|
11354
|
+
origin: {
|
|
11355
|
+
kind: "action";
|
|
11356
|
+
actionId: string;
|
|
11357
|
+
runId: string;
|
|
11358
|
+
} | {
|
|
11359
|
+
kind: "runtime";
|
|
11360
|
+
requestId: string;
|
|
11361
|
+
} | {
|
|
11362
|
+
kind: "projection";
|
|
11363
|
+
projectionId: string;
|
|
11364
|
+
projectionRunId: string;
|
|
11365
|
+
datasetId: string;
|
|
11366
|
+
datasetVersionId: string;
|
|
11367
|
+
} | {
|
|
11368
|
+
kind: "telemetry";
|
|
11369
|
+
source: {
|
|
11370
|
+
kind: "runtime";
|
|
11371
|
+
requestId: string;
|
|
11372
|
+
} | {
|
|
11373
|
+
kind: "projection";
|
|
11374
|
+
projectionId: string;
|
|
11375
|
+
projectionRunId: string;
|
|
11376
|
+
datasetId: string;
|
|
11377
|
+
datasetVersionId: string;
|
|
11378
|
+
batchOrdinal: number;
|
|
11379
|
+
};
|
|
11380
|
+
};
|
|
11381
|
+
/**
|
|
11382
|
+
* Principal on whose behalf the write ran; absent for automatic or anonymous work.
|
|
11383
|
+
*/
|
|
11384
|
+
requestedBy?: {
|
|
11385
|
+
type: "user" | "serviceAccount";
|
|
11386
|
+
id: string;
|
|
11387
|
+
};
|
|
11388
|
+
executor: {
|
|
11389
|
+
type: "request";
|
|
11390
|
+
requestId: string;
|
|
11391
|
+
} | {
|
|
11392
|
+
type: "primitive";
|
|
11393
|
+
kind: "action" | "pipeline" | "projection" | "rule" | "sync" | "webhook" | "workflow";
|
|
11394
|
+
id: string;
|
|
11395
|
+
runId: string;
|
|
11396
|
+
} | {
|
|
11397
|
+
type: "agent";
|
|
11398
|
+
runId: string;
|
|
11399
|
+
} | {
|
|
11400
|
+
type: "kernel";
|
|
11401
|
+
operation: {
|
|
11402
|
+
type: "ontology.recover";
|
|
11403
|
+
recoveryId: string;
|
|
11404
|
+
} | {
|
|
11405
|
+
type: "ontology.indexVectors";
|
|
11406
|
+
indexingId: string;
|
|
11407
|
+
};
|
|
11408
|
+
};
|
|
11409
|
+
commitId: string;
|
|
11410
|
+
commitOrdinal: number;
|
|
11411
|
+
type: "link.deleted";
|
|
11412
|
+
topic: "links";
|
|
11413
|
+
payload: {
|
|
11414
|
+
sourceTypeId: string;
|
|
11415
|
+
sourceId: string;
|
|
11416
|
+
linkId: string;
|
|
11417
|
+
targetTypeId: string;
|
|
11418
|
+
targetId: string;
|
|
11419
|
+
propertyChanges: {
|
|
11420
|
+
[key: string]: {
|
|
11421
|
+
operation: "created";
|
|
11422
|
+
/**
|
|
11423
|
+
* Any JSON-compatible value.
|
|
11424
|
+
*/
|
|
11425
|
+
after: string | number | boolean | Array<unknown> | {
|
|
11426
|
+
[key: string]: unknown;
|
|
11427
|
+
} | null;
|
|
11428
|
+
} | {
|
|
11429
|
+
operation: "updated";
|
|
11430
|
+
/**
|
|
11431
|
+
* Any JSON-compatible value.
|
|
11432
|
+
*/
|
|
11433
|
+
before: string | number | boolean | Array<unknown> | {
|
|
11434
|
+
[key: string]: unknown;
|
|
11435
|
+
} | null;
|
|
11436
|
+
/**
|
|
11437
|
+
* Any JSON-compatible value.
|
|
11438
|
+
*/
|
|
11439
|
+
after: string | number | boolean | Array<unknown> | {
|
|
11440
|
+
[key: string]: unknown;
|
|
11441
|
+
} | null;
|
|
11442
|
+
} | {
|
|
11443
|
+
operation: "cleared";
|
|
11444
|
+
/**
|
|
11445
|
+
* Any JSON-compatible value.
|
|
11446
|
+
*/
|
|
11447
|
+
before: string | number | boolean | Array<unknown> | {
|
|
11448
|
+
[key: string]: unknown;
|
|
11449
|
+
} | null;
|
|
11450
|
+
after: null;
|
|
11451
|
+
};
|
|
11452
|
+
};
|
|
11453
|
+
};
|
|
11454
|
+
} | {
|
|
11455
|
+
id: string;
|
|
11456
|
+
cursor: string;
|
|
11457
|
+
schemaVersion: 1;
|
|
11458
|
+
projectId: string;
|
|
11459
|
+
occurredAt: string;
|
|
11460
|
+
partitionKey: string;
|
|
11461
|
+
correlationId?: string;
|
|
11462
|
+
causationId?: string;
|
|
11463
|
+
idempotencyKey?: string;
|
|
11464
|
+
origin?: {
|
|
11465
|
+
kind: "action";
|
|
11466
|
+
actionId: string;
|
|
11467
|
+
runId: string;
|
|
11468
|
+
} | {
|
|
11469
|
+
kind: "runtime";
|
|
11470
|
+
requestId: string;
|
|
11471
|
+
} | {
|
|
11472
|
+
kind: "projection";
|
|
11473
|
+
projectionId: string;
|
|
11474
|
+
projectionRunId: string;
|
|
11475
|
+
datasetId: string;
|
|
11476
|
+
datasetVersionId: string;
|
|
11477
|
+
} | {
|
|
11478
|
+
kind: "telemetry";
|
|
11479
|
+
source: {
|
|
11480
|
+
kind: "runtime";
|
|
11481
|
+
requestId: string;
|
|
11482
|
+
} | {
|
|
11483
|
+
kind: "projection";
|
|
11484
|
+
projectionId: string;
|
|
11485
|
+
projectionRunId: string;
|
|
11486
|
+
datasetId: string;
|
|
11487
|
+
datasetVersionId: string;
|
|
11488
|
+
batchOrdinal: number;
|
|
11489
|
+
};
|
|
11490
|
+
};
|
|
11491
|
+
metadata?: {
|
|
11492
|
+
[key: string]: string | number | boolean | Array<unknown> | {
|
|
11493
|
+
[key: string]: unknown;
|
|
11494
|
+
} | null;
|
|
11495
|
+
};
|
|
11496
|
+
type: "schedule.triggered" | "sync.run.started" | "sync.run.finished" | "pipeline.run.started" | "pipeline.run.step.started" | "pipeline.run.step.finished" | "pipeline.run.finished" | "workflow.run.queued" | "workflow.run.started" | "workflow.run.node.started" | "workflow.run.waiting" | "workflow.run.node.waiting" | "workflow.run.node.finished" | "workflow.run.finished" | "workflow.intervention.requested" | "workflow.intervention.submitted" | "workflow.intervention.cancelled" | "workflow.intervention.expired" | "dataset.version.committed" | "rule.triggered" | "rule.resolved";
|
|
11497
|
+
topic: "objects" | "telemetry" | "links" | "schedules" | "syncs" | "pipelines" | "workflows" | "datasets" | "rules";
|
|
11498
|
+
payload: {
|
|
11499
|
+
[key: string]: unknown;
|
|
11500
|
+
};
|
|
11501
|
+
}>;
|
|
11502
|
+
};
|
|
11503
|
+
};
|
|
11504
|
+
export type ListEventsResponse = ListEventsResponses[keyof ListEventsResponses];
|
|
11505
|
+
export type ListLogsData = {
|
|
11506
|
+
body?: never;
|
|
11507
|
+
path?: never;
|
|
11508
|
+
query?: {
|
|
11509
|
+
kind?: "action" | "agent" | "pipeline" | "projection" | "sync" | "webhook" | "workflow";
|
|
11510
|
+
runId?: string;
|
|
11511
|
+
level?: "debug" | "info" | "warn" | "error";
|
|
11512
|
+
direction?: "forward" | "backward";
|
|
11513
|
+
afterCursor?: string;
|
|
11514
|
+
beforeCursor?: string;
|
|
11515
|
+
limit?: number;
|
|
11516
|
+
};
|
|
11517
|
+
url: "/api/logs";
|
|
11518
|
+
};
|
|
11519
|
+
export type ListLogsErrors = {
|
|
11520
|
+
/**
|
|
11521
|
+
* Response for status 400
|
|
11522
|
+
*/
|
|
11523
|
+
400: {
|
|
11524
|
+
error: string;
|
|
11525
|
+
};
|
|
11526
|
+
/**
|
|
11527
|
+
* Response for status 403
|
|
11528
|
+
*/
|
|
11529
|
+
403: {
|
|
11530
|
+
error: string;
|
|
11531
|
+
};
|
|
11532
|
+
};
|
|
11533
|
+
export type ListLogsError = ListLogsErrors[keyof ListLogsErrors];
|
|
11534
|
+
export type ListLogsResponses = {
|
|
11535
|
+
/**
|
|
11536
|
+
* Response for status 200
|
|
11537
|
+
*/
|
|
11538
|
+
200: {
|
|
11539
|
+
count: number;
|
|
11540
|
+
lines: Array<{
|
|
11541
|
+
level: "debug" | "info" | "warn" | "error";
|
|
11542
|
+
message: string;
|
|
11543
|
+
fields?: {
|
|
11544
|
+
[key: string]: unknown;
|
|
11545
|
+
};
|
|
11546
|
+
at: string;
|
|
11547
|
+
context: {
|
|
11548
|
+
run: {
|
|
11549
|
+
kind: "action" | "agent" | "pipeline" | "projection" | "sync" | "webhook" | "workflow";
|
|
11550
|
+
id: string;
|
|
10637
11551
|
};
|
|
11552
|
+
stepId?: string;
|
|
11553
|
+
phase?: string;
|
|
11554
|
+
attempt?: number;
|
|
11555
|
+
};
|
|
11556
|
+
cursor: string;
|
|
11557
|
+
}>;
|
|
11558
|
+
cursor?: string;
|
|
11559
|
+
hasMore: boolean;
|
|
11560
|
+
};
|
|
11561
|
+
};
|
|
11562
|
+
export type ListLogsResponse = ListLogsResponses[keyof ListLogsResponses];
|
|
11563
|
+
export type GetActivityCaptureConfigData = {
|
|
11564
|
+
body?: never;
|
|
11565
|
+
path?: never;
|
|
11566
|
+
query?: never;
|
|
11567
|
+
url: "/api/activity/capture-config";
|
|
11568
|
+
};
|
|
11569
|
+
export type GetActivityCaptureConfigErrors = {
|
|
11570
|
+
/**
|
|
11571
|
+
* Response for status 400
|
|
11572
|
+
*/
|
|
11573
|
+
400: {
|
|
11574
|
+
error: string;
|
|
11575
|
+
};
|
|
11576
|
+
/**
|
|
11577
|
+
* Response for status 403
|
|
11578
|
+
*/
|
|
11579
|
+
403: {
|
|
11580
|
+
error: string;
|
|
11581
|
+
};
|
|
11582
|
+
};
|
|
11583
|
+
export type GetActivityCaptureConfigError = GetActivityCaptureConfigErrors[keyof GetActivityCaptureConfigErrors];
|
|
11584
|
+
export type GetActivityCaptureConfigResponses = {
|
|
11585
|
+
/**
|
|
11586
|
+
* Response for status 200
|
|
11587
|
+
*/
|
|
11588
|
+
200: {
|
|
11589
|
+
enabled: boolean;
|
|
11590
|
+
idleTimeoutMs: number;
|
|
11591
|
+
};
|
|
11592
|
+
};
|
|
11593
|
+
export type GetActivityCaptureConfigResponse = GetActivityCaptureConfigResponses[keyof GetActivityCaptureConfigResponses];
|
|
11594
|
+
export type CaptureActivityData = {
|
|
11595
|
+
body: {
|
|
11596
|
+
events: Array<{
|
|
11597
|
+
id: string;
|
|
11598
|
+
type: "page.view" | "visit.activity";
|
|
11599
|
+
route: string;
|
|
11600
|
+
attribution?: {
|
|
11601
|
+
source?: string;
|
|
11602
|
+
medium?: string;
|
|
11603
|
+
campaign?: string;
|
|
11604
|
+
referrer?: string;
|
|
10638
11605
|
};
|
|
10639
11606
|
} | {
|
|
10640
11607
|
id: string;
|
|
10641
|
-
|
|
10642
|
-
|
|
10643
|
-
|
|
10644
|
-
|
|
10645
|
-
|
|
10646
|
-
|
|
10647
|
-
|
|
10648
|
-
|
|
10649
|
-
|
|
10650
|
-
|
|
10651
|
-
|
|
10652
|
-
|
|
10653
|
-
|
|
10654
|
-
|
|
10655
|
-
|
|
10656
|
-
|
|
10657
|
-
|
|
10658
|
-
|
|
11608
|
+
type: "ui.interaction";
|
|
11609
|
+
name: string;
|
|
11610
|
+
route: string;
|
|
11611
|
+
}>;
|
|
11612
|
+
};
|
|
11613
|
+
path?: never;
|
|
11614
|
+
query?: never;
|
|
11615
|
+
url: "/api/activity/events";
|
|
11616
|
+
};
|
|
11617
|
+
export type CaptureActivityErrors = {
|
|
11618
|
+
/**
|
|
11619
|
+
* Response for status 400
|
|
11620
|
+
*/
|
|
11621
|
+
400: {
|
|
11622
|
+
error: string;
|
|
11623
|
+
};
|
|
11624
|
+
/**
|
|
11625
|
+
* Response for status 403
|
|
11626
|
+
*/
|
|
11627
|
+
403: {
|
|
11628
|
+
error: string;
|
|
11629
|
+
};
|
|
11630
|
+
/**
|
|
11631
|
+
* Response for status 429
|
|
11632
|
+
*/
|
|
11633
|
+
429: {
|
|
11634
|
+
status: "accepted" | "disabled" | "throttled";
|
|
11635
|
+
accepted: number;
|
|
11636
|
+
};
|
|
11637
|
+
};
|
|
11638
|
+
export type CaptureActivityError = CaptureActivityErrors[keyof CaptureActivityErrors];
|
|
11639
|
+
export type CaptureActivityResponses = {
|
|
11640
|
+
/**
|
|
11641
|
+
* Response for status 200
|
|
11642
|
+
*/
|
|
11643
|
+
200: {
|
|
11644
|
+
status: "accepted" | "disabled" | "throttled";
|
|
11645
|
+
accepted: number;
|
|
11646
|
+
};
|
|
11647
|
+
};
|
|
11648
|
+
export type CaptureActivityResponse = CaptureActivityResponses[keyof CaptureActivityResponses];
|
|
11649
|
+
export type ListActivityVisitsData = {
|
|
11650
|
+
body?: never;
|
|
11651
|
+
path?: never;
|
|
11652
|
+
query: {
|
|
11653
|
+
from: string;
|
|
11654
|
+
to: string;
|
|
11655
|
+
userId?: string;
|
|
11656
|
+
limit?: number;
|
|
11657
|
+
beforeAt?: string;
|
|
11658
|
+
beforeId?: string;
|
|
11659
|
+
};
|
|
11660
|
+
url: "/api/activity/visits";
|
|
11661
|
+
};
|
|
11662
|
+
export type ListActivityVisitsErrors = {
|
|
11663
|
+
/**
|
|
11664
|
+
* Response for status 400
|
|
11665
|
+
*/
|
|
11666
|
+
400: {
|
|
11667
|
+
error: string;
|
|
11668
|
+
};
|
|
11669
|
+
/**
|
|
11670
|
+
* Response for status 403
|
|
11671
|
+
*/
|
|
11672
|
+
403: {
|
|
11673
|
+
error: string;
|
|
11674
|
+
};
|
|
11675
|
+
};
|
|
11676
|
+
export type ListActivityVisitsError = ListActivityVisitsErrors[keyof ListActivityVisitsErrors];
|
|
11677
|
+
export type ListActivityVisitsResponses = {
|
|
11678
|
+
/**
|
|
11679
|
+
* Response for status 200
|
|
11680
|
+
*/
|
|
11681
|
+
200: {
|
|
11682
|
+
visits: Array<{
|
|
11683
|
+
id: string;
|
|
11684
|
+
actor: {
|
|
11685
|
+
type: "user";
|
|
11686
|
+
userId: string;
|
|
11687
|
+
} | {
|
|
11688
|
+
type: "share";
|
|
11689
|
+
grantId: string;
|
|
11690
|
+
definitionId?: string;
|
|
11691
|
+
};
|
|
11692
|
+
attribution: {
|
|
11693
|
+
source?: string;
|
|
11694
|
+
medium?: string;
|
|
11695
|
+
campaign?: string;
|
|
11696
|
+
referrer?: string;
|
|
11697
|
+
} | null;
|
|
11698
|
+
startedAt: string;
|
|
11699
|
+
lastSeenAt: string;
|
|
11700
|
+
pageViews: number;
|
|
11701
|
+
interactions: number;
|
|
11702
|
+
}>;
|
|
11703
|
+
hasMore: boolean;
|
|
11704
|
+
};
|
|
11705
|
+
};
|
|
11706
|
+
export type ListActivityVisitsResponse = ListActivityVisitsResponses[keyof ListActivityVisitsResponses];
|
|
11707
|
+
export type ListActivityUsersData = {
|
|
11708
|
+
body?: never;
|
|
11709
|
+
path?: never;
|
|
11710
|
+
query: {
|
|
11711
|
+
from: string;
|
|
11712
|
+
to: string;
|
|
11713
|
+
userId?: string;
|
|
11714
|
+
limit?: number;
|
|
11715
|
+
beforeAt?: string;
|
|
11716
|
+
beforeId?: string;
|
|
11717
|
+
};
|
|
11718
|
+
url: "/api/activity/users";
|
|
11719
|
+
};
|
|
11720
|
+
export type ListActivityUsersErrors = {
|
|
11721
|
+
/**
|
|
11722
|
+
* Response for status 400
|
|
11723
|
+
*/
|
|
11724
|
+
400: {
|
|
11725
|
+
error: string;
|
|
11726
|
+
};
|
|
11727
|
+
/**
|
|
11728
|
+
* Response for status 403
|
|
11729
|
+
*/
|
|
11730
|
+
403: {
|
|
11731
|
+
error: string;
|
|
11732
|
+
};
|
|
11733
|
+
};
|
|
11734
|
+
export type ListActivityUsersError = ListActivityUsersErrors[keyof ListActivityUsersErrors];
|
|
11735
|
+
export type ListActivityUsersResponses = {
|
|
11736
|
+
/**
|
|
11737
|
+
* Response for status 200
|
|
11738
|
+
*/
|
|
11739
|
+
200: {
|
|
11740
|
+
users: Array<{
|
|
11741
|
+
userId: string;
|
|
11742
|
+
displayName?: string;
|
|
11743
|
+
lastSeenAt: string;
|
|
11744
|
+
visits: number;
|
|
11745
|
+
pageViews: number;
|
|
11746
|
+
}>;
|
|
11747
|
+
hasMore: boolean;
|
|
11748
|
+
};
|
|
11749
|
+
};
|
|
11750
|
+
export type ListActivityUsersResponse = ListActivityUsersResponses[keyof ListActivityUsersResponses];
|
|
11751
|
+
export type GetActivitySummaryData = {
|
|
11752
|
+
body?: never;
|
|
11753
|
+
path?: never;
|
|
11754
|
+
query: {
|
|
11755
|
+
from: string;
|
|
11756
|
+
to: string;
|
|
11757
|
+
userId?: string;
|
|
11758
|
+
};
|
|
11759
|
+
url: "/api/activity/summary";
|
|
11760
|
+
};
|
|
11761
|
+
export type GetActivitySummaryErrors = {
|
|
11762
|
+
/**
|
|
11763
|
+
* Response for status 400
|
|
11764
|
+
*/
|
|
11765
|
+
400: {
|
|
11766
|
+
error: string;
|
|
11767
|
+
};
|
|
11768
|
+
/**
|
|
11769
|
+
* Response for status 403
|
|
11770
|
+
*/
|
|
11771
|
+
403: {
|
|
11772
|
+
error: string;
|
|
11773
|
+
};
|
|
11774
|
+
};
|
|
11775
|
+
export type GetActivitySummaryError = GetActivitySummaryErrors[keyof GetActivitySummaryErrors];
|
|
11776
|
+
export type GetActivitySummaryResponses = {
|
|
11777
|
+
/**
|
|
11778
|
+
* Response for status 200
|
|
11779
|
+
*/
|
|
11780
|
+
200: {
|
|
11781
|
+
users: number;
|
|
11782
|
+
visits: number;
|
|
11783
|
+
sharedVisits: number;
|
|
11784
|
+
pageViews: number;
|
|
11785
|
+
};
|
|
11786
|
+
};
|
|
11787
|
+
export type GetActivitySummaryResponse = GetActivitySummaryResponses[keyof GetActivitySummaryResponses];
|
|
11788
|
+
export type GetActivityCalendarData = {
|
|
11789
|
+
body?: never;
|
|
11790
|
+
path?: never;
|
|
11791
|
+
query: {
|
|
11792
|
+
userId: string;
|
|
11793
|
+
year: number;
|
|
11794
|
+
};
|
|
11795
|
+
url: "/api/activity/calendar";
|
|
11796
|
+
};
|
|
11797
|
+
export type GetActivityCalendarErrors = {
|
|
11798
|
+
/**
|
|
11799
|
+
* Response for status 400
|
|
11800
|
+
*/
|
|
11801
|
+
400: {
|
|
11802
|
+
error: string;
|
|
11803
|
+
};
|
|
11804
|
+
/**
|
|
11805
|
+
* Response for status 403
|
|
11806
|
+
*/
|
|
11807
|
+
403: {
|
|
11808
|
+
error: string;
|
|
11809
|
+
};
|
|
11810
|
+
};
|
|
11811
|
+
export type GetActivityCalendarError = GetActivityCalendarErrors[keyof GetActivityCalendarErrors];
|
|
11812
|
+
export type GetActivityCalendarResponses = {
|
|
11813
|
+
/**
|
|
11814
|
+
* Response for status 200
|
|
11815
|
+
*/
|
|
11816
|
+
200: {
|
|
11817
|
+
userId: string;
|
|
11818
|
+
year: number;
|
|
11819
|
+
days: Array<{
|
|
11820
|
+
day: string;
|
|
11821
|
+
visits: number;
|
|
11822
|
+
pageViews: number;
|
|
11823
|
+
}>;
|
|
11824
|
+
};
|
|
11825
|
+
};
|
|
11826
|
+
export type GetActivityCalendarResponse = GetActivityCalendarResponses[keyof GetActivityCalendarResponses];
|
|
11827
|
+
export type GetActivityVisitTimelineData = {
|
|
11828
|
+
body?: never;
|
|
11829
|
+
path: {
|
|
11830
|
+
visitId: string;
|
|
11831
|
+
};
|
|
11832
|
+
query?: never;
|
|
11833
|
+
url: "/api/activity/visits/{visitId}/timeline";
|
|
11834
|
+
};
|
|
11835
|
+
export type GetActivityVisitTimelineErrors = {
|
|
11836
|
+
/**
|
|
11837
|
+
* Response for status 400
|
|
11838
|
+
*/
|
|
11839
|
+
400: {
|
|
11840
|
+
error: string;
|
|
11841
|
+
};
|
|
11842
|
+
/**
|
|
11843
|
+
* Response for status 403
|
|
11844
|
+
*/
|
|
11845
|
+
403: {
|
|
11846
|
+
error: string;
|
|
11847
|
+
};
|
|
11848
|
+
/**
|
|
11849
|
+
* Response for status 404
|
|
11850
|
+
*/
|
|
11851
|
+
404: {
|
|
11852
|
+
error: string;
|
|
11853
|
+
};
|
|
11854
|
+
};
|
|
11855
|
+
export type GetActivityVisitTimelineError = GetActivityVisitTimelineErrors[keyof GetActivityVisitTimelineErrors];
|
|
11856
|
+
export type GetActivityVisitTimelineResponses = {
|
|
11857
|
+
/**
|
|
11858
|
+
* Response for status 200
|
|
11859
|
+
*/
|
|
11860
|
+
200: {
|
|
11861
|
+
visit: {
|
|
11862
|
+
id: string;
|
|
11863
|
+
actor: {
|
|
11864
|
+
type: "user";
|
|
11865
|
+
userId: string;
|
|
10659
11866
|
} | {
|
|
10660
|
-
|
|
10661
|
-
|
|
10662
|
-
|
|
10663
|
-
|
|
10664
|
-
|
|
10665
|
-
|
|
10666
|
-
|
|
10667
|
-
|
|
10668
|
-
|
|
10669
|
-
|
|
10670
|
-
|
|
10671
|
-
|
|
11867
|
+
type: "share";
|
|
11868
|
+
grantId: string;
|
|
11869
|
+
definitionId?: string;
|
|
11870
|
+
};
|
|
11871
|
+
attribution: {
|
|
11872
|
+
source?: string;
|
|
11873
|
+
medium?: string;
|
|
11874
|
+
campaign?: string;
|
|
11875
|
+
referrer?: string;
|
|
11876
|
+
} | null;
|
|
11877
|
+
startedAt: string;
|
|
11878
|
+
lastSeenAt: string;
|
|
11879
|
+
pageViews: number;
|
|
11880
|
+
interactions: number;
|
|
11881
|
+
};
|
|
11882
|
+
connection?: {
|
|
11883
|
+
type: "session";
|
|
11884
|
+
device: {
|
|
11885
|
+
browser?: string;
|
|
11886
|
+
os?: string;
|
|
10672
11887
|
};
|
|
11888
|
+
clientName?: string;
|
|
11889
|
+
status: "active" | "expired" | "revoked";
|
|
11890
|
+
createdAt: string;
|
|
11891
|
+
lastSeenAt?: string;
|
|
11892
|
+
revokedAt?: string;
|
|
11893
|
+
} | {
|
|
11894
|
+
type: "share";
|
|
11895
|
+
grantId: string;
|
|
11896
|
+
definitionId?: string;
|
|
11897
|
+
status: "active" | "expired" | "revoked";
|
|
11898
|
+
createdAt: string;
|
|
11899
|
+
revokedAt?: string;
|
|
11900
|
+
};
|
|
11901
|
+
entries: Array<{
|
|
11902
|
+
kind: "page";
|
|
11903
|
+
at: string;
|
|
11904
|
+
sequence: number;
|
|
11905
|
+
route: string;
|
|
11906
|
+
} | {
|
|
11907
|
+
kind: "interaction";
|
|
11908
|
+
at: string;
|
|
11909
|
+
sequence: number;
|
|
11910
|
+
name: string;
|
|
11911
|
+
route: string;
|
|
11912
|
+
} | {
|
|
11913
|
+
kind: "action";
|
|
11914
|
+
at: string;
|
|
11915
|
+
executionId: string;
|
|
11916
|
+
actionId: string;
|
|
11917
|
+
runId: string;
|
|
11918
|
+
status: "succeeded" | "failed" | "incomplete";
|
|
10673
11919
|
/**
|
|
10674
|
-
*
|
|
11920
|
+
* Whether the viewer may read the run itself.
|
|
10675
11921
|
*/
|
|
10676
|
-
|
|
10677
|
-
|
|
10678
|
-
|
|
10679
|
-
|
|
10680
|
-
executor: {
|
|
10681
|
-
type: "request";
|
|
10682
|
-
requestId: string;
|
|
10683
|
-
} | {
|
|
10684
|
-
type: "primitive";
|
|
10685
|
-
kind: "action" | "pipeline" | "projection" | "rule" | "sync" | "webhook" | "workflow";
|
|
10686
|
-
id: string;
|
|
10687
|
-
runId: string;
|
|
10688
|
-
} | {
|
|
10689
|
-
type: "agent";
|
|
10690
|
-
runId: string;
|
|
10691
|
-
} | {
|
|
10692
|
-
type: "kernel";
|
|
10693
|
-
operation: {
|
|
10694
|
-
type: "ontology.recover";
|
|
10695
|
-
recoveryId: string;
|
|
10696
|
-
} | {
|
|
10697
|
-
type: "ontology.indexVectors";
|
|
10698
|
-
indexingId: string;
|
|
10699
|
-
};
|
|
10700
|
-
};
|
|
10701
|
-
commitId: string;
|
|
10702
|
-
commitOrdinal: number;
|
|
10703
|
-
type: "link.deleted";
|
|
10704
|
-
topic: "links";
|
|
10705
|
-
payload: {
|
|
10706
|
-
sourceTypeId: string;
|
|
10707
|
-
sourceId: string;
|
|
10708
|
-
linkId: string;
|
|
10709
|
-
targetTypeId: string;
|
|
10710
|
-
targetId: string;
|
|
10711
|
-
propertyChanges: {
|
|
10712
|
-
[key: string]: {
|
|
10713
|
-
operation: "created";
|
|
10714
|
-
/**
|
|
10715
|
-
* Any JSON-compatible value.
|
|
10716
|
-
*/
|
|
10717
|
-
after: string | number | boolean | Array<unknown> | {
|
|
10718
|
-
[key: string]: unknown;
|
|
10719
|
-
} | null;
|
|
10720
|
-
} | {
|
|
10721
|
-
operation: "updated";
|
|
10722
|
-
/**
|
|
10723
|
-
* Any JSON-compatible value.
|
|
10724
|
-
*/
|
|
10725
|
-
before: string | number | boolean | Array<unknown> | {
|
|
10726
|
-
[key: string]: unknown;
|
|
10727
|
-
} | null;
|
|
10728
|
-
/**
|
|
10729
|
-
* Any JSON-compatible value.
|
|
10730
|
-
*/
|
|
10731
|
-
after: string | number | boolean | Array<unknown> | {
|
|
10732
|
-
[key: string]: unknown;
|
|
10733
|
-
} | null;
|
|
10734
|
-
} | {
|
|
10735
|
-
operation: "cleared";
|
|
10736
|
-
/**
|
|
10737
|
-
* Any JSON-compatible value.
|
|
10738
|
-
*/
|
|
10739
|
-
before: string | number | boolean | Array<unknown> | {
|
|
10740
|
-
[key: string]: unknown;
|
|
10741
|
-
} | null;
|
|
10742
|
-
after: null;
|
|
10743
|
-
};
|
|
10744
|
-
};
|
|
11922
|
+
runVisible: boolean;
|
|
11923
|
+
object?: {
|
|
11924
|
+
objectTypeId: string;
|
|
11925
|
+
primaryId: string;
|
|
10745
11926
|
};
|
|
10746
11927
|
} | {
|
|
10747
|
-
|
|
10748
|
-
|
|
10749
|
-
|
|
10750
|
-
|
|
10751
|
-
|
|
10752
|
-
|
|
10753
|
-
|
|
10754
|
-
|
|
10755
|
-
|
|
10756
|
-
|
|
10757
|
-
|
|
10758
|
-
|
|
10759
|
-
|
|
10760
|
-
|
|
10761
|
-
|
|
10762
|
-
|
|
10763
|
-
|
|
10764
|
-
|
|
10765
|
-
|
|
10766
|
-
|
|
10767
|
-
|
|
10768
|
-
|
|
10769
|
-
|
|
10770
|
-
|
|
10771
|
-
|
|
10772
|
-
|
|
10773
|
-
requestId: string;
|
|
10774
|
-
} | {
|
|
10775
|
-
kind: "projection";
|
|
10776
|
-
projectionId: string;
|
|
10777
|
-
projectionRunId: string;
|
|
10778
|
-
datasetId: string;
|
|
10779
|
-
datasetVersionId: string;
|
|
10780
|
-
batchOrdinal: number;
|
|
10781
|
-
};
|
|
10782
|
-
};
|
|
10783
|
-
metadata?: {
|
|
10784
|
-
[key: string]: string | number | boolean | Array<unknown> | {
|
|
10785
|
-
[key: string]: unknown;
|
|
10786
|
-
} | null;
|
|
10787
|
-
};
|
|
10788
|
-
type: "schedule.triggered" | "sync.run.started" | "sync.run.finished" | "pipeline.run.started" | "pipeline.run.step.started" | "pipeline.run.step.finished" | "pipeline.run.finished" | "workflow.run.queued" | "workflow.run.started" | "workflow.run.node.started" | "workflow.run.waiting" | "workflow.run.node.waiting" | "workflow.run.node.finished" | "workflow.run.finished" | "workflow.intervention.requested" | "workflow.intervention.submitted" | "workflow.intervention.cancelled" | "workflow.intervention.expired" | "dataset.version.committed" | "rule.triggered" | "rule.resolved";
|
|
10789
|
-
topic: "objects" | "telemetry" | "links" | "schedules" | "syncs" | "pipelines" | "workflows" | "datasets" | "rules";
|
|
10790
|
-
payload: {
|
|
10791
|
-
[key: string]: unknown;
|
|
11928
|
+
kind: "workflow";
|
|
11929
|
+
at: string;
|
|
11930
|
+
executionId: string;
|
|
11931
|
+
workflowId: string;
|
|
11932
|
+
runId: string;
|
|
11933
|
+
status: "queued" | "running" | "waiting" | "succeeded" | "failed" | "cancelled" | "incomplete";
|
|
11934
|
+
/**
|
|
11935
|
+
* Whether the viewer may read the run itself.
|
|
11936
|
+
*/
|
|
11937
|
+
runVisible: boolean;
|
|
11938
|
+
} | {
|
|
11939
|
+
kind: "agent";
|
|
11940
|
+
at: string;
|
|
11941
|
+
executionId: string;
|
|
11942
|
+
runId: string;
|
|
11943
|
+
threadId: string;
|
|
11944
|
+
status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
|
|
11945
|
+
messages: number;
|
|
11946
|
+
cost?: {
|
|
11947
|
+
amounts: Array<{
|
|
11948
|
+
currency: string;
|
|
11949
|
+
amountNanos: string;
|
|
11950
|
+
}>;
|
|
11951
|
+
ratedCallCount: number;
|
|
11952
|
+
unpriceableCallCount: number;
|
|
11953
|
+
unvaluedCallCount: number;
|
|
10792
11954
|
};
|
|
10793
11955
|
}>;
|
|
11956
|
+
truncated: boolean;
|
|
10794
11957
|
};
|
|
10795
11958
|
};
|
|
10796
|
-
export type
|
|
10797
|
-
export type
|
|
11959
|
+
export type GetActivityVisitTimelineResponse = GetActivityVisitTimelineResponses[keyof GetActivityVisitTimelineResponses];
|
|
11960
|
+
export type ListActivityConnectionsData = {
|
|
10798
11961
|
body?: never;
|
|
10799
11962
|
path?: never;
|
|
10800
|
-
query
|
|
10801
|
-
|
|
10802
|
-
runId?: string;
|
|
10803
|
-
level?: "debug" | "info" | "warn" | "error";
|
|
10804
|
-
direction?: "forward" | "backward";
|
|
10805
|
-
afterCursor?: string;
|
|
10806
|
-
beforeCursor?: string;
|
|
11963
|
+
query: {
|
|
11964
|
+
userId: string;
|
|
10807
11965
|
limit?: number;
|
|
11966
|
+
/**
|
|
11967
|
+
* The previous page's nextCursor.
|
|
11968
|
+
*/
|
|
11969
|
+
cursor?: string;
|
|
10808
11970
|
};
|
|
10809
|
-
url: "/api/
|
|
11971
|
+
url: "/api/activity/connections";
|
|
10810
11972
|
};
|
|
10811
|
-
export type
|
|
11973
|
+
export type ListActivityConnectionsErrors = {
|
|
10812
11974
|
/**
|
|
10813
11975
|
* Response for status 400
|
|
10814
11976
|
*/
|
|
@@ -10822,36 +11984,50 @@ export type ListLogsErrors = {
|
|
|
10822
11984
|
error: string;
|
|
10823
11985
|
};
|
|
10824
11986
|
};
|
|
10825
|
-
export type
|
|
10826
|
-
export type
|
|
11987
|
+
export type ListActivityConnectionsError = ListActivityConnectionsErrors[keyof ListActivityConnectionsErrors];
|
|
11988
|
+
export type ListActivityConnectionsResponses = {
|
|
10827
11989
|
/**
|
|
10828
11990
|
* Response for status 200
|
|
10829
11991
|
*/
|
|
10830
11992
|
200: {
|
|
10831
|
-
|
|
10832
|
-
|
|
10833
|
-
|
|
10834
|
-
|
|
10835
|
-
|
|
10836
|
-
[key: string]: unknown;
|
|
11993
|
+
connections: Array<{
|
|
11994
|
+
type: "session";
|
|
11995
|
+
device: {
|
|
11996
|
+
browser?: string;
|
|
11997
|
+
os?: string;
|
|
10837
11998
|
};
|
|
10838
|
-
|
|
10839
|
-
|
|
10840
|
-
|
|
10841
|
-
|
|
10842
|
-
|
|
11999
|
+
clientName?: string;
|
|
12000
|
+
status: "active" | "expired" | "revoked";
|
|
12001
|
+
createdAt: string;
|
|
12002
|
+
lastSeenAt?: string;
|
|
12003
|
+
revokedAt?: string;
|
|
12004
|
+
visits: number;
|
|
12005
|
+
latestVisits: Array<{
|
|
12006
|
+
id: string;
|
|
12007
|
+
actor: {
|
|
12008
|
+
type: "user";
|
|
12009
|
+
userId: string;
|
|
12010
|
+
} | {
|
|
12011
|
+
type: "share";
|
|
12012
|
+
grantId: string;
|
|
12013
|
+
definitionId?: string;
|
|
10843
12014
|
};
|
|
10844
|
-
|
|
10845
|
-
|
|
10846
|
-
|
|
10847
|
-
|
|
10848
|
-
|
|
12015
|
+
attribution: {
|
|
12016
|
+
source?: string;
|
|
12017
|
+
medium?: string;
|
|
12018
|
+
campaign?: string;
|
|
12019
|
+
referrer?: string;
|
|
12020
|
+
} | null;
|
|
12021
|
+
startedAt: string;
|
|
12022
|
+
lastSeenAt: string;
|
|
12023
|
+
pageViews: number;
|
|
12024
|
+
interactions: number;
|
|
12025
|
+
}>;
|
|
10849
12026
|
}>;
|
|
10850
|
-
|
|
10851
|
-
hasMore: boolean;
|
|
12027
|
+
nextCursor?: string;
|
|
10852
12028
|
};
|
|
10853
12029
|
};
|
|
10854
|
-
export type
|
|
12030
|
+
export type ListActivityConnectionsResponse = ListActivityConnectionsResponses[keyof ListActivityConnectionsResponses];
|
|
10855
12031
|
export type ListProjectionsData = {
|
|
10856
12032
|
body?: never;
|
|
10857
12033
|
path?: never;
|