@sixb/client 0.1.20 → 0.1.22
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/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/agent-streams.d.ts +5 -3
- package/dist/agent-streams.d.ts.map +1 -1
- package/dist/browser.d.ts +2 -0
- package/dist/browser.d.ts.map +1 -1
- package/dist/browser.js +513 -11
- package/dist/browser.js.map +6 -4
- package/dist/{chunk-awbb496e.js → chunk-1v736aje.js} +1 -1
- package/dist/{chunk-g05ar78c.js → chunk-263m4e9p.js} +38 -7
- package/dist/chunk-263m4e9p.js.map +17 -0
- package/dist/{chunk-tkjkrcdt.js → chunk-59f4fbnk.js} +505 -3
- package/dist/chunk-59f4fbnk.js.map +19 -0
- package/dist/{chunk-95bnb04n.js → chunk-9gz30dxy.js} +1 -1
- package/dist/{chunk-12s8gbwj.js → chunk-k2j71x7a.js} +2 -2
- package/dist/{chunk-3aa3m9z6.js → chunk-tttfv49k.js} +51 -6
- package/dist/chunk-tttfv49k.js.map +10 -0
- package/dist/connectors/queries.d.ts.map +1 -1
- package/dist/events-builder.d.ts +12 -0
- package/dist/events-builder.d.ts.map +1 -1
- package/dist/generated/@tanstack/react-query.gen.d.ts +13887 -2984
- 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 +308 -2
- package/dist/generated/sdk.gen.d.ts.map +1 -1
- package/dist/generated/types.gen.d.ts +12014 -5652
- package/dist/generated/types.gen.d.ts.map +1 -1
- package/dist/hooks.d.ts +1 -0
- package/dist/hooks.d.ts.map +1 -1
- package/dist/hooks.js +1150 -90
- package/dist/hooks.js.map +9 -8
- package/dist/index.js +120 -6
- package/dist/index.js.map +1 -1
- package/dist/logs.js +3 -3
- package/dist/models.js +116 -2
- package/dist/models.js.map +1 -1
- package/dist/query-hooks.d.ts +1 -1
- package/dist/query-hooks.d.ts.map +1 -1
- package/dist/query.d.ts +12 -4
- package/dist/query.d.ts.map +1 -1
- package/dist/query.js +7 -5
- package/dist/query.js.map +1 -1
- package/dist/useAgentActivityStream.d.ts +3 -1
- package/dist/useAgentActivityStream.d.ts.map +1 -1
- package/dist/users-hooks.d.ts +109 -0
- package/dist/users-hooks.d.ts.map +1 -0
- package/package.json +2 -2
- package/src/activity-attribution.ts +211 -0
- package/src/activity-tracker.ts +527 -0
- package/src/agent-streams.ts +16 -5
- package/src/browser.ts +14 -1
- package/src/events-builder.ts +51 -0
- package/src/generated/@tanstack/react-query.gen.ts +2100 -30
- package/src/generated/index.ts +349 -0
- package/src/generated/sdk.gen.ts +1334 -30
- package/src/generated/types.gen.ts +10044 -2418
- package/src/hooks.ts +8 -0
- package/src/query-hooks.ts +1 -1
- package/src/query.ts +86 -5
- package/src/useAgentActivityStream.ts +10 -1
- package/src/users-hooks.ts +87 -0
- package/dist/chunk-3aa3m9z6.js.map +0 -10
- package/dist/chunk-g05ar78c.js.map +0 -17
- package/dist/chunk-tkjkrcdt.js.map +0 -19
- /package/dist/{chunk-awbb496e.js.map → chunk-1v736aje.js.map} +0 -0
- /package/dist/{chunk-95bnb04n.js.map → chunk-9gz30dxy.js.map} +0 -0
- /package/dist/{chunk-12s8gbwj.js.map → chunk-k2j71x7a.js.map} +0 -0
package/src/generated/sdk.gen.ts
CHANGED
|
@@ -11,12 +11,18 @@ import type {
|
|
|
11
11
|
AbortFileUploadData,
|
|
12
12
|
AbortFileUploadErrors,
|
|
13
13
|
AbortFileUploadResponses,
|
|
14
|
+
AddAgentThreadParticipantsData,
|
|
15
|
+
AddAgentThreadParticipantsErrors,
|
|
16
|
+
AddAgentThreadParticipantsResponses,
|
|
14
17
|
AddConnectorConnectionData,
|
|
15
18
|
AddConnectorConnectionErrors,
|
|
16
19
|
AddConnectorConnectionResponses,
|
|
17
20
|
AppendTelemetryData,
|
|
18
21
|
AppendTelemetryErrors,
|
|
19
22
|
AppendTelemetryResponses,
|
|
23
|
+
CancelAgentRunByIdData,
|
|
24
|
+
CancelAgentRunByIdErrors,
|
|
25
|
+
CancelAgentRunByIdResponses,
|
|
20
26
|
CancelAgentRunData,
|
|
21
27
|
CancelAgentRunErrors,
|
|
22
28
|
CancelAgentRunResponses,
|
|
@@ -26,6 +32,12 @@ import type {
|
|
|
26
32
|
CancelWorkflowRunData,
|
|
27
33
|
CancelWorkflowRunErrors,
|
|
28
34
|
CancelWorkflowRunResponses,
|
|
35
|
+
CaptureActivityData,
|
|
36
|
+
CaptureActivityErrors,
|
|
37
|
+
CaptureActivityResponses,
|
|
38
|
+
ClearArtifactStateData,
|
|
39
|
+
ClearArtifactStateErrors,
|
|
40
|
+
ClearArtifactStateResponses,
|
|
29
41
|
CompleteFileUploadData,
|
|
30
42
|
CompleteFileUploadErrors,
|
|
31
43
|
CompleteFileUploadResponses,
|
|
@@ -38,6 +50,12 @@ import type {
|
|
|
38
50
|
CreateAiLimitPolicyData,
|
|
39
51
|
CreateAiLimitPolicyErrors,
|
|
40
52
|
CreateAiLimitPolicyResponses,
|
|
53
|
+
CreateArtifactData,
|
|
54
|
+
CreateArtifactErrors,
|
|
55
|
+
CreateArtifactFrameData,
|
|
56
|
+
CreateArtifactFrameErrors,
|
|
57
|
+
CreateArtifactFrameResponses,
|
|
58
|
+
CreateArtifactResponses,
|
|
41
59
|
CreateAuthInvitationData,
|
|
42
60
|
CreateAuthInvitationErrors,
|
|
43
61
|
CreateAuthInvitationResponses,
|
|
@@ -56,9 +74,21 @@ import type {
|
|
|
56
74
|
CreateFileUploadData,
|
|
57
75
|
CreateFileUploadErrors,
|
|
58
76
|
CreateFileUploadResponses,
|
|
77
|
+
DecideAgentApprovalData,
|
|
78
|
+
DecideAgentApprovalErrors,
|
|
79
|
+
DecideAgentApprovalResponses,
|
|
80
|
+
DeleteAgentMemoryData,
|
|
81
|
+
DeleteAgentMemoryErrors,
|
|
82
|
+
DeleteAgentMemoryResponses,
|
|
59
83
|
DeleteAiLimitPolicyData,
|
|
60
84
|
DeleteAiLimitPolicyErrors,
|
|
61
85
|
DeleteAiLimitPolicyResponses,
|
|
86
|
+
DeleteArtifactData,
|
|
87
|
+
DeleteArtifactErrors,
|
|
88
|
+
DeleteArtifactResponses,
|
|
89
|
+
DeleteArtifactStateValueData,
|
|
90
|
+
DeleteArtifactStateValueErrors,
|
|
91
|
+
DeleteArtifactStateValueResponses,
|
|
62
92
|
DisableAuthServiceAccountData,
|
|
63
93
|
DisableAuthServiceAccountErrors,
|
|
64
94
|
DisableAuthServiceAccountResponses,
|
|
@@ -76,6 +106,18 @@ import type {
|
|
|
76
106
|
FacetObjectsData,
|
|
77
107
|
FacetObjectsErrors,
|
|
78
108
|
FacetObjectsResponses,
|
|
109
|
+
ForkAgentThreadData,
|
|
110
|
+
ForkAgentThreadErrors,
|
|
111
|
+
ForkAgentThreadResponses,
|
|
112
|
+
GenerateImagesData,
|
|
113
|
+
GenerateImagesErrors,
|
|
114
|
+
GenerateImagesResponses,
|
|
115
|
+
GenerateSpeechData,
|
|
116
|
+
GenerateSpeechErrors,
|
|
117
|
+
GenerateSpeechResponses,
|
|
118
|
+
GenerateTextData,
|
|
119
|
+
GenerateTextErrors,
|
|
120
|
+
GenerateTextResponses,
|
|
79
121
|
GetActionData,
|
|
80
122
|
GetActionErrors,
|
|
81
123
|
GetActionResponses,
|
|
@@ -85,11 +127,32 @@ import type {
|
|
|
85
127
|
GetActionRunFileContentErrors,
|
|
86
128
|
GetActionRunFileContentResponses,
|
|
87
129
|
GetActionRunResponses,
|
|
130
|
+
GetActivityCalendarData,
|
|
131
|
+
GetActivityCalendarErrors,
|
|
132
|
+
GetActivityCalendarResponses,
|
|
133
|
+
GetActivityCaptureConfigData,
|
|
134
|
+
GetActivityCaptureConfigErrors,
|
|
135
|
+
GetActivityCaptureConfigResponses,
|
|
136
|
+
GetActivitySummaryData,
|
|
137
|
+
GetActivitySummaryErrors,
|
|
138
|
+
GetActivitySummaryResponses,
|
|
139
|
+
GetActivityVisitTimelineData,
|
|
140
|
+
GetActivityVisitTimelineErrors,
|
|
141
|
+
GetActivityVisitTimelineResponses,
|
|
142
|
+
GetAgentChildFileContentData,
|
|
143
|
+
GetAgentChildFileContentErrors,
|
|
144
|
+
GetAgentChildFileContentResponses,
|
|
88
145
|
GetAgentData,
|
|
89
146
|
GetAgentErrors,
|
|
147
|
+
GetAgentMemoryData,
|
|
148
|
+
GetAgentMemoryErrors,
|
|
149
|
+
GetAgentMemoryResponses,
|
|
90
150
|
GetAgentMessageFileContentData,
|
|
91
151
|
GetAgentMessageFileContentErrors,
|
|
92
152
|
GetAgentMessageFileContentResponses,
|
|
153
|
+
GetAgentPreferencesData,
|
|
154
|
+
GetAgentPreferencesErrors,
|
|
155
|
+
GetAgentPreferencesResponses,
|
|
93
156
|
GetAgentResponses,
|
|
94
157
|
GetAgentRunData,
|
|
95
158
|
GetAgentRunErrors,
|
|
@@ -106,6 +169,27 @@ import type {
|
|
|
106
169
|
GetAiLimitSubjectOptionsData,
|
|
107
170
|
GetAiLimitSubjectOptionsErrors,
|
|
108
171
|
GetAiLimitSubjectOptionsResponses,
|
|
172
|
+
GetAiModelCallFileContentData,
|
|
173
|
+
GetAiModelCallFileContentErrors,
|
|
174
|
+
GetAiModelCallFileContentResponses,
|
|
175
|
+
GetAiModelCallFilesData,
|
|
176
|
+
GetAiModelCallFilesErrors,
|
|
177
|
+
GetAiModelCallFilesResponses,
|
|
178
|
+
GetArtifactData,
|
|
179
|
+
GetArtifactErrors,
|
|
180
|
+
GetArtifactFileContentData,
|
|
181
|
+
GetArtifactFileContentErrors,
|
|
182
|
+
GetArtifactFileContentResponses,
|
|
183
|
+
GetArtifactQueryData,
|
|
184
|
+
GetArtifactQueryErrors,
|
|
185
|
+
GetArtifactQueryResponses,
|
|
186
|
+
GetArtifactResponses,
|
|
187
|
+
GetArtifactStateData,
|
|
188
|
+
GetArtifactStateErrors,
|
|
189
|
+
GetArtifactStateResponses,
|
|
190
|
+
GetArtifactVersionData,
|
|
191
|
+
GetArtifactVersionErrors,
|
|
192
|
+
GetArtifactVersionResponses,
|
|
109
193
|
GetAuthAccessManagementOptionsData,
|
|
110
194
|
GetAuthAccessManagementOptionsErrors,
|
|
111
195
|
GetAuthAccessManagementOptionsResponses,
|
|
@@ -115,6 +199,9 @@ import type {
|
|
|
115
199
|
GetAuthMembershipOptionsData,
|
|
116
200
|
GetAuthMembershipOptionsErrors,
|
|
117
201
|
GetAuthMembershipOptionsResponses,
|
|
202
|
+
GetAuthProfileData,
|
|
203
|
+
GetAuthProfileErrors,
|
|
204
|
+
GetAuthProfileResponses,
|
|
118
205
|
GetAuthSessionData,
|
|
119
206
|
GetAuthSessionResponses,
|
|
120
207
|
GetBulkTelemetryHistoryData,
|
|
@@ -135,6 +222,9 @@ import type {
|
|
|
135
222
|
GetLatestTelemetryData,
|
|
136
223
|
GetLatestTelemetryErrors,
|
|
137
224
|
GetLatestTelemetryResponses,
|
|
225
|
+
GetObjectByUniquePropertyData,
|
|
226
|
+
GetObjectByUniquePropertyErrors,
|
|
227
|
+
GetObjectByUniquePropertyResponses,
|
|
138
228
|
GetObjectData,
|
|
139
229
|
GetObjectErrors,
|
|
140
230
|
GetObjectFileContentData,
|
|
@@ -144,6 +234,15 @@ import type {
|
|
|
144
234
|
GetObjectTypeData,
|
|
145
235
|
GetObjectTypeErrors,
|
|
146
236
|
GetObjectTypeResponses,
|
|
237
|
+
GetObservedAgentChildFileContentData,
|
|
238
|
+
GetObservedAgentChildFileContentErrors,
|
|
239
|
+
GetObservedAgentChildFileContentResponses,
|
|
240
|
+
GetObservedAgentMessageFileContentData,
|
|
241
|
+
GetObservedAgentMessageFileContentErrors,
|
|
242
|
+
GetObservedAgentMessageFileContentResponses,
|
|
243
|
+
GetObservedAgentThreadData,
|
|
244
|
+
GetObservedAgentThreadErrors,
|
|
245
|
+
GetObservedAgentThreadResponses,
|
|
147
246
|
GetPipelineData,
|
|
148
247
|
GetPipelineErrors,
|
|
149
248
|
GetPipelineResponses,
|
|
@@ -172,6 +271,9 @@ import type {
|
|
|
172
271
|
GetTelemetryHistoryData,
|
|
173
272
|
GetTelemetryHistoryErrors,
|
|
174
273
|
GetTelemetryHistoryResponses,
|
|
274
|
+
GetUserData,
|
|
275
|
+
GetUserErrors,
|
|
276
|
+
GetUserResponses,
|
|
175
277
|
GetWorkflowAgentNodeExecutionData,
|
|
176
278
|
GetWorkflowAgentNodeExecutionErrors,
|
|
177
279
|
GetWorkflowAgentNodeExecutionResponses,
|
|
@@ -193,9 +295,18 @@ import type {
|
|
|
193
295
|
HeadActionRunFileContentData,
|
|
194
296
|
HeadActionRunFileContentErrors,
|
|
195
297
|
HeadActionRunFileContentResponses,
|
|
298
|
+
HeadAgentChildFileContentData,
|
|
299
|
+
HeadAgentChildFileContentErrors,
|
|
300
|
+
HeadAgentChildFileContentResponses,
|
|
196
301
|
HeadAgentMessageFileContentData,
|
|
197
302
|
HeadAgentMessageFileContentErrors,
|
|
198
303
|
HeadAgentMessageFileContentResponses,
|
|
304
|
+
HeadAiModelCallFileContentData,
|
|
305
|
+
HeadAiModelCallFileContentErrors,
|
|
306
|
+
HeadAiModelCallFileContentResponses,
|
|
307
|
+
HeadArtifactFileContentData,
|
|
308
|
+
HeadArtifactFileContentErrors,
|
|
309
|
+
HeadArtifactFileContentResponses,
|
|
199
310
|
HeadObjectFileContentData,
|
|
200
311
|
HeadObjectFileContentErrors,
|
|
201
312
|
HeadObjectFileContentResponses,
|
|
@@ -213,6 +324,27 @@ import type {
|
|
|
213
324
|
ListActionRunsResponses,
|
|
214
325
|
ListActionsData,
|
|
215
326
|
ListActionsResponses,
|
|
327
|
+
ListActivityConnectionsData,
|
|
328
|
+
ListActivityConnectionsErrors,
|
|
329
|
+
ListActivityConnectionsResponses,
|
|
330
|
+
ListActivityUsersData,
|
|
331
|
+
ListActivityUsersErrors,
|
|
332
|
+
ListActivityUsersResponses,
|
|
333
|
+
ListActivityVisitsData,
|
|
334
|
+
ListActivityVisitsErrors,
|
|
335
|
+
ListActivityVisitsResponses,
|
|
336
|
+
ListAgentApprovalsData,
|
|
337
|
+
ListAgentApprovalsErrors,
|
|
338
|
+
ListAgentApprovalsResponses,
|
|
339
|
+
ListAgentMemoryRevisionsData,
|
|
340
|
+
ListAgentMemoryRevisionsErrors,
|
|
341
|
+
ListAgentMemoryRevisionsResponses,
|
|
342
|
+
ListAgentThreadApprovalsData,
|
|
343
|
+
ListAgentThreadApprovalsErrors,
|
|
344
|
+
ListAgentThreadApprovalsResponses,
|
|
345
|
+
ListAgentThreadChildrenData,
|
|
346
|
+
ListAgentThreadChildrenErrors,
|
|
347
|
+
ListAgentThreadChildrenResponses,
|
|
216
348
|
ListAgentThreadMessagesData,
|
|
217
349
|
ListAgentThreadMessagesErrors,
|
|
218
350
|
ListAgentThreadMessagesResponses,
|
|
@@ -231,6 +363,9 @@ import type {
|
|
|
231
363
|
ListAiModelCallsData,
|
|
232
364
|
ListAiModelCallsErrors,
|
|
233
365
|
ListAiModelCallsResponses,
|
|
366
|
+
ListArtifactsData,
|
|
367
|
+
ListArtifactsErrors,
|
|
368
|
+
ListArtifactsResponses,
|
|
234
369
|
ListAuthAccessTokensData,
|
|
235
370
|
ListAuthAccessTokensErrors,
|
|
236
371
|
ListAuthAccessTokensResponses,
|
|
@@ -276,6 +411,15 @@ import type {
|
|
|
276
411
|
ListObjectsResponses,
|
|
277
412
|
ListObjectTypesData,
|
|
278
413
|
ListObjectTypesResponses,
|
|
414
|
+
ListObservedAgentThreadChildrenData,
|
|
415
|
+
ListObservedAgentThreadChildrenErrors,
|
|
416
|
+
ListObservedAgentThreadChildrenResponses,
|
|
417
|
+
ListObservedAgentThreadMessagesData,
|
|
418
|
+
ListObservedAgentThreadMessagesErrors,
|
|
419
|
+
ListObservedAgentThreadMessagesResponses,
|
|
420
|
+
ListObservedAgentThreadRunsData,
|
|
421
|
+
ListObservedAgentThreadRunsErrors,
|
|
422
|
+
ListObservedAgentThreadRunsResponses,
|
|
279
423
|
ListPendingConnectorConnectionRunsData,
|
|
280
424
|
ListPendingConnectorConnectionRunsErrors,
|
|
281
425
|
ListPendingConnectorConnectionRunsResponses,
|
|
@@ -302,6 +446,9 @@ import type {
|
|
|
302
446
|
ListSyncRunsResponses,
|
|
303
447
|
ListSyncsData,
|
|
304
448
|
ListSyncsResponses,
|
|
449
|
+
ListUsersData,
|
|
450
|
+
ListUsersErrors,
|
|
451
|
+
ListUsersResponses,
|
|
305
452
|
ListWebhookRunsData,
|
|
306
453
|
ListWebhookRunsErrors,
|
|
307
454
|
ListWebhookRunsResponses,
|
|
@@ -316,6 +463,9 @@ import type {
|
|
|
316
463
|
PostAgentThreadMessageData,
|
|
317
464
|
PostAgentThreadMessageErrors,
|
|
318
465
|
PostAgentThreadMessageResponses,
|
|
466
|
+
PublishArtifactVersionData,
|
|
467
|
+
PublishArtifactVersionErrors,
|
|
468
|
+
PublishArtifactVersionResponses,
|
|
319
469
|
QueryObjectLinksData,
|
|
320
470
|
QueryObjectLinksErrors,
|
|
321
471
|
QueryObjectLinksResponses,
|
|
@@ -334,6 +484,9 @@ import type {
|
|
|
334
484
|
RefreshAuthSessionData,
|
|
335
485
|
RefreshAuthSessionErrors,
|
|
336
486
|
RefreshAuthSessionResponses,
|
|
487
|
+
RemoveAgentThreadParticipantData,
|
|
488
|
+
RemoveAgentThreadParticipantErrors,
|
|
489
|
+
RemoveAgentThreadParticipantResponses,
|
|
337
490
|
RemoveObjectLinkData,
|
|
338
491
|
RemoveObjectLinkErrors,
|
|
339
492
|
RemoveObjectLinkResponses,
|
|
@@ -370,12 +523,21 @@ import type {
|
|
|
370
523
|
RevokeSharedAccessGrantData,
|
|
371
524
|
RevokeSharedAccessGrantErrors,
|
|
372
525
|
RevokeSharedAccessGrantResponses,
|
|
526
|
+
SaveAgentMemoryData,
|
|
527
|
+
SaveAgentMemoryErrors,
|
|
528
|
+
SaveAgentMemoryResponses,
|
|
373
529
|
SearchObjectsData,
|
|
374
530
|
SearchObjectsErrors,
|
|
375
531
|
SearchObjectsResponses,
|
|
376
532
|
SelectConnectorConnectionRunAccountData,
|
|
377
533
|
SelectConnectorConnectionRunAccountErrors,
|
|
378
534
|
SelectConnectorConnectionRunAccountResponses,
|
|
535
|
+
SetAgentThreadApprovalModeData,
|
|
536
|
+
SetAgentThreadApprovalModeErrors,
|
|
537
|
+
SetAgentThreadApprovalModeResponses,
|
|
538
|
+
SetArtifactStateData,
|
|
539
|
+
SetArtifactStateErrors,
|
|
540
|
+
SetArtifactStateResponses,
|
|
379
541
|
SignFileUploadPartData,
|
|
380
542
|
SignFileUploadPartErrors,
|
|
381
543
|
SignFileUploadPartResponses,
|
|
@@ -397,12 +559,21 @@ import type {
|
|
|
397
559
|
SuspendAuthMemberData,
|
|
398
560
|
SuspendAuthMemberErrors,
|
|
399
561
|
SuspendAuthMemberResponses,
|
|
562
|
+
TranscribeAudioData,
|
|
563
|
+
TranscribeAudioErrors,
|
|
564
|
+
TranscribeAudioResponses,
|
|
565
|
+
UpdateAgentPreferencesData,
|
|
566
|
+
UpdateAgentPreferencesErrors,
|
|
567
|
+
UpdateAgentPreferencesResponses,
|
|
400
568
|
UpdateAiLimitPolicyData,
|
|
401
569
|
UpdateAiLimitPolicyErrors,
|
|
402
570
|
UpdateAiLimitPolicyResponses,
|
|
403
571
|
UpdateAuthMemberGroupsData,
|
|
404
572
|
UpdateAuthMemberGroupsErrors,
|
|
405
573
|
UpdateAuthMemberGroupsResponses,
|
|
574
|
+
UpdateAuthProfileData,
|
|
575
|
+
UpdateAuthProfileErrors,
|
|
576
|
+
UpdateAuthProfileResponses,
|
|
406
577
|
UploadFileContentData,
|
|
407
578
|
UploadFileContentErrors,
|
|
408
579
|
UploadFileContentResponses,
|
|
@@ -560,6 +731,43 @@ export const signOutAll = <ThrowOnError extends boolean = false>(
|
|
|
560
731
|
...options,
|
|
561
732
|
})
|
|
562
733
|
|
|
734
|
+
/**
|
|
735
|
+
* Get the current user's profile
|
|
736
|
+
*/
|
|
737
|
+
export const getAuthProfile = <ThrowOnError extends boolean = false>(
|
|
738
|
+
options?: Options<GetAuthProfileData, ThrowOnError>
|
|
739
|
+
) =>
|
|
740
|
+
(options?.client ?? client).get<GetAuthProfileResponses, GetAuthProfileErrors, ThrowOnError>({
|
|
741
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
742
|
+
url: "/api/auth/profile",
|
|
743
|
+
...options,
|
|
744
|
+
})
|
|
745
|
+
|
|
746
|
+
/**
|
|
747
|
+
* Update the current user's name or picture
|
|
748
|
+
*
|
|
749
|
+
* Fields the identity provider manages, listed in `managedFields`, are refused with 403.
|
|
750
|
+
*/
|
|
751
|
+
export const updateAuthProfile = <ThrowOnError extends boolean = false>(
|
|
752
|
+
options: Options<UpdateAuthProfileData, ThrowOnError>
|
|
753
|
+
) =>
|
|
754
|
+
(options.client ?? client).patch<
|
|
755
|
+
UpdateAuthProfileResponses,
|
|
756
|
+
UpdateAuthProfileErrors,
|
|
757
|
+
ThrowOnError
|
|
758
|
+
>({
|
|
759
|
+
security: [
|
|
760
|
+
{ name: "x-sixb-csrf", type: "apiKey" },
|
|
761
|
+
{ scheme: "bearer", type: "http" },
|
|
762
|
+
],
|
|
763
|
+
url: "/api/auth/profile",
|
|
764
|
+
...options,
|
|
765
|
+
headers: {
|
|
766
|
+
"Content-Type": "application/json",
|
|
767
|
+
...options.headers,
|
|
768
|
+
},
|
|
769
|
+
})
|
|
770
|
+
|
|
563
771
|
/**
|
|
564
772
|
* Get auth access-token management options
|
|
565
773
|
*/
|
|
@@ -1105,6 +1313,143 @@ export const listAiModelCallGroups = <ThrowOnError extends boolean = false>(
|
|
|
1105
1313
|
...options,
|
|
1106
1314
|
})
|
|
1107
1315
|
|
|
1316
|
+
/**
|
|
1317
|
+
* Get the files a model call produced
|
|
1318
|
+
*/
|
|
1319
|
+
export const getAiModelCallFiles = <ThrowOnError extends boolean = false>(
|
|
1320
|
+
options: Options<GetAiModelCallFilesData, ThrowOnError>
|
|
1321
|
+
) =>
|
|
1322
|
+
(options.client ?? client).get<
|
|
1323
|
+
GetAiModelCallFilesResponses,
|
|
1324
|
+
GetAiModelCallFilesErrors,
|
|
1325
|
+
ThrowOnError
|
|
1326
|
+
>({
|
|
1327
|
+
security: [
|
|
1328
|
+
{ scheme: "bearer", type: "http" },
|
|
1329
|
+
{ scheme: "bearer", type: "http" },
|
|
1330
|
+
],
|
|
1331
|
+
url: "/api/ai/model-calls/{callId}/files",
|
|
1332
|
+
...options,
|
|
1333
|
+
})
|
|
1334
|
+
|
|
1335
|
+
/**
|
|
1336
|
+
* Get model call file content
|
|
1337
|
+
*/
|
|
1338
|
+
export const getAiModelCallFileContent = <ThrowOnError extends boolean = false>(
|
|
1339
|
+
options: Options<GetAiModelCallFileContentData, ThrowOnError>
|
|
1340
|
+
) =>
|
|
1341
|
+
(options.client ?? client).get<
|
|
1342
|
+
GetAiModelCallFileContentResponses,
|
|
1343
|
+
GetAiModelCallFileContentErrors,
|
|
1344
|
+
ThrowOnError
|
|
1345
|
+
>({
|
|
1346
|
+
security: [
|
|
1347
|
+
{ scheme: "bearer", type: "http" },
|
|
1348
|
+
{ scheme: "bearer", type: "http" },
|
|
1349
|
+
],
|
|
1350
|
+
url: "/api/ai/model-calls/{callId}/files/content",
|
|
1351
|
+
...options,
|
|
1352
|
+
})
|
|
1353
|
+
|
|
1354
|
+
/**
|
|
1355
|
+
* Head model call file content
|
|
1356
|
+
*/
|
|
1357
|
+
export const headAiModelCallFileContent = <ThrowOnError extends boolean = false>(
|
|
1358
|
+
options: Options<HeadAiModelCallFileContentData, ThrowOnError>
|
|
1359
|
+
) =>
|
|
1360
|
+
(options.client ?? client).head<
|
|
1361
|
+
HeadAiModelCallFileContentResponses,
|
|
1362
|
+
HeadAiModelCallFileContentErrors,
|
|
1363
|
+
ThrowOnError
|
|
1364
|
+
>({
|
|
1365
|
+
security: [
|
|
1366
|
+
{ scheme: "bearer", type: "http" },
|
|
1367
|
+
{ scheme: "bearer", type: "http" },
|
|
1368
|
+
],
|
|
1369
|
+
url: "/api/ai/model-calls/{callId}/files/content",
|
|
1370
|
+
...options,
|
|
1371
|
+
})
|
|
1372
|
+
|
|
1373
|
+
/**
|
|
1374
|
+
* Generate text with a language model
|
|
1375
|
+
*/
|
|
1376
|
+
export const generateText = <ThrowOnError extends boolean = false>(
|
|
1377
|
+
options: Options<GenerateTextData, ThrowOnError>
|
|
1378
|
+
) =>
|
|
1379
|
+
(options.client ?? client).post<GenerateTextResponses, GenerateTextErrors, ThrowOnError>({
|
|
1380
|
+
security: [
|
|
1381
|
+
{ name: "x-sixb-csrf", type: "apiKey" },
|
|
1382
|
+
{ scheme: "bearer", type: "http" },
|
|
1383
|
+
{ scheme: "bearer", type: "http" },
|
|
1384
|
+
],
|
|
1385
|
+
url: "/api/models/language/generations",
|
|
1386
|
+
...options,
|
|
1387
|
+
headers: {
|
|
1388
|
+
"Content-Type": "application/json",
|
|
1389
|
+
...options.headers,
|
|
1390
|
+
},
|
|
1391
|
+
})
|
|
1392
|
+
|
|
1393
|
+
/**
|
|
1394
|
+
* Generate images with an image model
|
|
1395
|
+
*/
|
|
1396
|
+
export const generateImages = <ThrowOnError extends boolean = false>(
|
|
1397
|
+
options: Options<GenerateImagesData, ThrowOnError>
|
|
1398
|
+
) =>
|
|
1399
|
+
(options.client ?? client).post<GenerateImagesResponses, GenerateImagesErrors, ThrowOnError>({
|
|
1400
|
+
security: [
|
|
1401
|
+
{ name: "x-sixb-csrf", type: "apiKey" },
|
|
1402
|
+
{ scheme: "bearer", type: "http" },
|
|
1403
|
+
{ scheme: "bearer", type: "http" },
|
|
1404
|
+
],
|
|
1405
|
+
url: "/api/models/image/generations",
|
|
1406
|
+
...options,
|
|
1407
|
+
headers: {
|
|
1408
|
+
"Content-Type": "application/json",
|
|
1409
|
+
...options.headers,
|
|
1410
|
+
},
|
|
1411
|
+
})
|
|
1412
|
+
|
|
1413
|
+
/**
|
|
1414
|
+
* Generate speech with a speech model
|
|
1415
|
+
*/
|
|
1416
|
+
export const generateSpeech = <ThrowOnError extends boolean = false>(
|
|
1417
|
+
options: Options<GenerateSpeechData, ThrowOnError>
|
|
1418
|
+
) =>
|
|
1419
|
+
(options.client ?? client).post<GenerateSpeechResponses, GenerateSpeechErrors, ThrowOnError>({
|
|
1420
|
+
security: [
|
|
1421
|
+
{ name: "x-sixb-csrf", type: "apiKey" },
|
|
1422
|
+
{ scheme: "bearer", type: "http" },
|
|
1423
|
+
{ scheme: "bearer", type: "http" },
|
|
1424
|
+
],
|
|
1425
|
+
url: "/api/models/audio/speech",
|
|
1426
|
+
...options,
|
|
1427
|
+
headers: {
|
|
1428
|
+
"Content-Type": "application/json",
|
|
1429
|
+
...options.headers,
|
|
1430
|
+
},
|
|
1431
|
+
})
|
|
1432
|
+
|
|
1433
|
+
/**
|
|
1434
|
+
* Transcribe audio with a transcription model
|
|
1435
|
+
*/
|
|
1436
|
+
export const transcribeAudio = <ThrowOnError extends boolean = false>(
|
|
1437
|
+
options: Options<TranscribeAudioData, ThrowOnError>
|
|
1438
|
+
) =>
|
|
1439
|
+
(options.client ?? client).post<TranscribeAudioResponses, TranscribeAudioErrors, ThrowOnError>({
|
|
1440
|
+
security: [
|
|
1441
|
+
{ name: "x-sixb-csrf", type: "apiKey" },
|
|
1442
|
+
{ scheme: "bearer", type: "http" },
|
|
1443
|
+
{ scheme: "bearer", type: "http" },
|
|
1444
|
+
],
|
|
1445
|
+
url: "/api/models/audio/transcriptions",
|
|
1446
|
+
...options,
|
|
1447
|
+
headers: {
|
|
1448
|
+
"Content-Type": "application/json",
|
|
1449
|
+
...options.headers,
|
|
1450
|
+
},
|
|
1451
|
+
})
|
|
1452
|
+
|
|
1108
1453
|
/**
|
|
1109
1454
|
* Get current project metadata
|
|
1110
1455
|
*/
|
|
@@ -2194,6 +2539,33 @@ export const upsertObject = <ThrowOnError extends boolean = false>(
|
|
|
2194
2539
|
},
|
|
2195
2540
|
})
|
|
2196
2541
|
|
|
2542
|
+
/**
|
|
2543
|
+
* Get object by a unique property
|
|
2544
|
+
*
|
|
2545
|
+
* Returns the object of exactly this type that holds the value, compared as writes store it.
|
|
2546
|
+
*/
|
|
2547
|
+
export const getObjectByUniqueProperty = <ThrowOnError extends boolean = false>(
|
|
2548
|
+
options: Options<GetObjectByUniquePropertyData, ThrowOnError>
|
|
2549
|
+
) =>
|
|
2550
|
+
(options.client ?? client).post<
|
|
2551
|
+
GetObjectByUniquePropertyResponses,
|
|
2552
|
+
GetObjectByUniquePropertyErrors,
|
|
2553
|
+
ThrowOnError
|
|
2554
|
+
>({
|
|
2555
|
+
security: [
|
|
2556
|
+
{ name: "x-sixb-csrf", type: "apiKey" },
|
|
2557
|
+
{ scheme: "bearer", type: "http" },
|
|
2558
|
+
{ scheme: "bearer", type: "http" },
|
|
2559
|
+
{ name: "x-sixb-share-grant", type: "apiKey" },
|
|
2560
|
+
],
|
|
2561
|
+
url: "/api/objects/{objectTypeId}/by/{propertyId}",
|
|
2562
|
+
...options,
|
|
2563
|
+
headers: {
|
|
2564
|
+
"Content-Type": "application/json",
|
|
2565
|
+
...options.headers,
|
|
2566
|
+
},
|
|
2567
|
+
})
|
|
2568
|
+
|
|
2197
2569
|
/**
|
|
2198
2570
|
* List registered actions
|
|
2199
2571
|
*/
|
|
@@ -2496,6 +2868,67 @@ export const getAgentThread = <ThrowOnError extends boolean = false>(
|
|
|
2496
2868
|
...options,
|
|
2497
2869
|
})
|
|
2498
2870
|
|
|
2871
|
+
/**
|
|
2872
|
+
* Add participants to an agent thread
|
|
2873
|
+
*
|
|
2874
|
+
* Only the thread's owner adds participants: active users of the project, by id or by email. They read the whole conversation, its files and its live stream, and send messages that run with their own rights. Nothing checks what they may see: the conversation holds what the Agent read with the rights of whoever asked.
|
|
2875
|
+
*/
|
|
2876
|
+
export const addAgentThreadParticipants = <ThrowOnError extends boolean = false>(
|
|
2877
|
+
options: Options<AddAgentThreadParticipantsData, ThrowOnError>
|
|
2878
|
+
) =>
|
|
2879
|
+
(options.client ?? client).post<
|
|
2880
|
+
AddAgentThreadParticipantsResponses,
|
|
2881
|
+
AddAgentThreadParticipantsErrors,
|
|
2882
|
+
ThrowOnError
|
|
2883
|
+
>({
|
|
2884
|
+
security: [
|
|
2885
|
+
{ name: "x-sixb-csrf", type: "apiKey" },
|
|
2886
|
+
{ scheme: "bearer", type: "http" },
|
|
2887
|
+
],
|
|
2888
|
+
url: "/api/agent-threads/{threadId}/participants",
|
|
2889
|
+
...options,
|
|
2890
|
+
headers: {
|
|
2891
|
+
"Content-Type": "application/json",
|
|
2892
|
+
...options.headers,
|
|
2893
|
+
},
|
|
2894
|
+
})
|
|
2895
|
+
|
|
2896
|
+
/**
|
|
2897
|
+
* Remove a participant from an agent thread
|
|
2898
|
+
*
|
|
2899
|
+
* The thread's owner removes anyone; a participant removes only themself, to leave. Removing someone who does not take part changes nothing.
|
|
2900
|
+
*/
|
|
2901
|
+
export const removeAgentThreadParticipant = <ThrowOnError extends boolean = false>(
|
|
2902
|
+
options: Options<RemoveAgentThreadParticipantData, ThrowOnError>
|
|
2903
|
+
) =>
|
|
2904
|
+
(options.client ?? client).delete<
|
|
2905
|
+
RemoveAgentThreadParticipantResponses,
|
|
2906
|
+
RemoveAgentThreadParticipantErrors,
|
|
2907
|
+
ThrowOnError
|
|
2908
|
+
>({
|
|
2909
|
+
security: [
|
|
2910
|
+
{ name: "x-sixb-csrf", type: "apiKey" },
|
|
2911
|
+
{ scheme: "bearer", type: "http" },
|
|
2912
|
+
],
|
|
2913
|
+
url: "/api/agent-threads/{threadId}/participants/{userId}",
|
|
2914
|
+
...options,
|
|
2915
|
+
})
|
|
2916
|
+
|
|
2917
|
+
/**
|
|
2918
|
+
* Continue an agent thread in a new one the caller owns
|
|
2919
|
+
*/
|
|
2920
|
+
export const forkAgentThread = <ThrowOnError extends boolean = false>(
|
|
2921
|
+
options: Options<ForkAgentThreadData, ThrowOnError>
|
|
2922
|
+
) =>
|
|
2923
|
+
(options.client ?? client).post<ForkAgentThreadResponses, ForkAgentThreadErrors, ThrowOnError>({
|
|
2924
|
+
security: [
|
|
2925
|
+
{ name: "x-sixb-csrf", type: "apiKey" },
|
|
2926
|
+
{ scheme: "bearer", type: "http" },
|
|
2927
|
+
],
|
|
2928
|
+
url: "/api/agent-threads/{threadId}/fork",
|
|
2929
|
+
...options,
|
|
2930
|
+
})
|
|
2931
|
+
|
|
2499
2932
|
/**
|
|
2500
2933
|
* Explicitly recreate an unavailable or uncertain workspace without deleting its previous state
|
|
2501
2934
|
*/
|
|
@@ -2598,6 +3031,8 @@ export const headAgentMessageFileContent = <ThrowOnError extends boolean = false
|
|
|
2598
3031
|
|
|
2599
3032
|
/**
|
|
2600
3033
|
* Cancel an agent thread's active run
|
|
3034
|
+
*
|
|
3035
|
+
* Whoever asked for the run, or the thread's owner, can cancel it.
|
|
2601
3036
|
*/
|
|
2602
3037
|
export const cancelAgentRun = <ThrowOnError extends boolean = false>(
|
|
2603
3038
|
options: Options<CancelAgentRunData, ThrowOnError>
|
|
@@ -2617,6 +3052,8 @@ export const cancelAgentRun = <ThrowOnError extends boolean = false>(
|
|
|
2617
3052
|
|
|
2618
3053
|
/**
|
|
2619
3054
|
* Retry a failed or interrupted agent run
|
|
3055
|
+
*
|
|
3056
|
+
* Only whoever asked for the run can retry it: it runs again with their rights.
|
|
2620
3057
|
*/
|
|
2621
3058
|
export const retryAgentRun = <ThrowOnError extends boolean = false>(
|
|
2622
3059
|
options: Options<RetryAgentRunData, ThrowOnError>
|
|
@@ -2648,6 +3085,8 @@ export const listAgentThreadRuns = <ThrowOnError extends boolean = false>(
|
|
|
2648
3085
|
|
|
2649
3086
|
/**
|
|
2650
3087
|
* Get agent run
|
|
3088
|
+
*
|
|
3089
|
+
* A conversation's turn, or a sub-agent's run (`kind: "subagent"`), read through its thread: a sub-agent's run is visible exactly when its conversation is.
|
|
2651
3090
|
*/
|
|
2652
3091
|
export const getAgentRun = <ThrowOnError extends boolean = false>(
|
|
2653
3092
|
options: Options<GetAgentRunData, ThrowOnError>
|
|
@@ -2659,70 +3098,118 @@ export const getAgentRun = <ThrowOnError extends boolean = false>(
|
|
|
2659
3098
|
})
|
|
2660
3099
|
|
|
2661
3100
|
/**
|
|
2662
|
-
*
|
|
3101
|
+
* Stop an agent run
|
|
3102
|
+
*
|
|
3103
|
+
* A turn, or a sub-agent's run. Whoever asked for the turn, or the conversation's owner, can stop it, and a sub-agent's run as its turn. A queued run is cancelled at once; a running one is still running in the response, with the stop signal sent. A sub-agent's parent reads that it was stopped.
|
|
2663
3104
|
*/
|
|
2664
|
-
export const
|
|
2665
|
-
options
|
|
3105
|
+
export const cancelAgentRunById = <ThrowOnError extends boolean = false>(
|
|
3106
|
+
options: Options<CancelAgentRunByIdData, ThrowOnError>
|
|
2666
3107
|
) =>
|
|
2667
|
-
(options
|
|
3108
|
+
(options.client ?? client).post<
|
|
3109
|
+
CancelAgentRunByIdResponses,
|
|
3110
|
+
CancelAgentRunByIdErrors,
|
|
3111
|
+
ThrowOnError
|
|
3112
|
+
>({
|
|
3113
|
+
security: [
|
|
3114
|
+
{ name: "x-sixb-csrf", type: "apiKey" },
|
|
3115
|
+
{ scheme: "bearer", type: "http" },
|
|
3116
|
+
],
|
|
3117
|
+
url: "/api/agent-runs/{runId}/cancel",
|
|
3118
|
+
...options,
|
|
3119
|
+
})
|
|
3120
|
+
|
|
3121
|
+
/**
|
|
3122
|
+
* List the sub-agents of an agent conversation
|
|
3123
|
+
*
|
|
3124
|
+
* A sub-agent is visible exactly when its conversation is: to the thread's owner and participants; observers read it through the observed routes. What it did is its thread's messages, at `GET /api/agent-threads/:threadId/messages` with its `threadId`. `runId` keeps those one turn spawned. Each lists every run it took, the one at work by `activeRunId`.
|
|
3125
|
+
*/
|
|
3126
|
+
export const listAgentThreadChildren = <ThrowOnError extends boolean = false>(
|
|
3127
|
+
options: Options<ListAgentThreadChildrenData, ThrowOnError>
|
|
3128
|
+
) =>
|
|
3129
|
+
(options.client ?? client).get<
|
|
3130
|
+
ListAgentThreadChildrenResponses,
|
|
3131
|
+
ListAgentThreadChildrenErrors,
|
|
3132
|
+
ThrowOnError
|
|
3133
|
+
>({
|
|
2668
3134
|
security: [{ scheme: "bearer", type: "http" }],
|
|
2669
|
-
url: "/api/
|
|
3135
|
+
url: "/api/agent-threads/{threadId}/children",
|
|
2670
3136
|
...options,
|
|
2671
3137
|
})
|
|
2672
3138
|
|
|
2673
3139
|
/**
|
|
2674
|
-
*
|
|
3140
|
+
* Get a file of a sub-agent
|
|
3141
|
+
*
|
|
3142
|
+
* A sub-agent is visible exactly when its conversation is: to the thread's owner and participants; observers read it through the observed routes. What it did is its thread's messages, at `GET /api/agent-threads/:threadId/messages` with its `threadId`. `threadId` is the sub-agent's thread, `run` one of its runs, and `path` points into it: `/handedFiles/0/fileRef`, or `/files/0/fileRef` for what the run returned.
|
|
2675
3143
|
*/
|
|
2676
|
-
export const
|
|
2677
|
-
options: Options<
|
|
3144
|
+
export const getAgentChildFileContent = <ThrowOnError extends boolean = false>(
|
|
3145
|
+
options: Options<GetAgentChildFileContentData, ThrowOnError>
|
|
2678
3146
|
) =>
|
|
2679
|
-
(options.client ?? client).
|
|
2680
|
-
|
|
2681
|
-
|
|
3147
|
+
(options.client ?? client).get<
|
|
3148
|
+
GetAgentChildFileContentResponses,
|
|
3149
|
+
GetAgentChildFileContentErrors,
|
|
2682
3150
|
ThrowOnError
|
|
2683
3151
|
>({
|
|
2684
3152
|
security: [
|
|
2685
|
-
{ name: "x-sixb-csrf", type: "apiKey" },
|
|
2686
3153
|
{ scheme: "bearer", type: "http" },
|
|
2687
3154
|
{ scheme: "bearer", type: "http" },
|
|
2688
3155
|
],
|
|
2689
|
-
url: "/api/
|
|
3156
|
+
url: "/api/agent-threads/{threadId}/child-files/content",
|
|
2690
3157
|
...options,
|
|
2691
3158
|
})
|
|
2692
3159
|
|
|
2693
3160
|
/**
|
|
2694
|
-
*
|
|
3161
|
+
* Head a file of a sub-agent
|
|
2695
3162
|
*/
|
|
2696
|
-
export const
|
|
2697
|
-
options: Options<
|
|
3163
|
+
export const headAgentChildFileContent = <ThrowOnError extends boolean = false>(
|
|
3164
|
+
options: Options<HeadAgentChildFileContentData, ThrowOnError>
|
|
2698
3165
|
) =>
|
|
2699
|
-
(options.client ?? client).
|
|
3166
|
+
(options.client ?? client).head<
|
|
3167
|
+
HeadAgentChildFileContentResponses,
|
|
3168
|
+
HeadAgentChildFileContentErrors,
|
|
3169
|
+
ThrowOnError
|
|
3170
|
+
>({
|
|
2700
3171
|
security: [
|
|
2701
|
-
{ name: "x-sixb-csrf", type: "apiKey" },
|
|
2702
3172
|
{ scheme: "bearer", type: "http" },
|
|
2703
3173
|
{ scheme: "bearer", type: "http" },
|
|
2704
3174
|
],
|
|
2705
|
-
url: "/api/
|
|
3175
|
+
url: "/api/agent-threads/{threadId}/child-files/content",
|
|
2706
3176
|
...options,
|
|
2707
|
-
headers: {
|
|
2708
|
-
"Content-Type": "application/json",
|
|
2709
|
-
...options.headers,
|
|
2710
|
-
},
|
|
2711
3177
|
})
|
|
2712
3178
|
|
|
2713
3179
|
/**
|
|
2714
|
-
*
|
|
3180
|
+
* Get your Agent preferences
|
|
2715
3181
|
*/
|
|
2716
|
-
export const
|
|
2717
|
-
options
|
|
3182
|
+
export const getAgentPreferences = <ThrowOnError extends boolean = false>(
|
|
3183
|
+
options?: Options<GetAgentPreferencesData, ThrowOnError>
|
|
2718
3184
|
) =>
|
|
2719
|
-
(options
|
|
3185
|
+
(options?.client ?? client).get<
|
|
3186
|
+
GetAgentPreferencesResponses,
|
|
3187
|
+
GetAgentPreferencesErrors,
|
|
3188
|
+
ThrowOnError
|
|
3189
|
+
>({
|
|
3190
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3191
|
+
url: "/api/agent/preferences",
|
|
3192
|
+
...options,
|
|
3193
|
+
})
|
|
3194
|
+
|
|
3195
|
+
/**
|
|
3196
|
+
* Update your Agent preferences
|
|
3197
|
+
*
|
|
3198
|
+
* `approvalMode` is your default in the threads where you chose none: `manual` asks before every action and workflow, `accept-edits` runs the actions that only change Sixb, `auto` runs everything.
|
|
3199
|
+
*/
|
|
3200
|
+
export const updateAgentPreferences = <ThrowOnError extends boolean = false>(
|
|
3201
|
+
options: Options<UpdateAgentPreferencesData, ThrowOnError>
|
|
3202
|
+
) =>
|
|
3203
|
+
(options.client ?? client).put<
|
|
3204
|
+
UpdateAgentPreferencesResponses,
|
|
3205
|
+
UpdateAgentPreferencesErrors,
|
|
3206
|
+
ThrowOnError
|
|
3207
|
+
>({
|
|
2720
3208
|
security: [
|
|
2721
3209
|
{ name: "x-sixb-csrf", type: "apiKey" },
|
|
2722
3210
|
{ scheme: "bearer", type: "http" },
|
|
2723
|
-
{ scheme: "bearer", type: "http" },
|
|
2724
3211
|
],
|
|
2725
|
-
url: "/api/
|
|
3212
|
+
url: "/api/agent/preferences",
|
|
2726
3213
|
...options,
|
|
2727
3214
|
headers: {
|
|
2728
3215
|
"Content-Type": "application/json",
|
|
@@ -2731,7 +3218,635 @@ export const appendTelemetry = <ThrowOnError extends boolean = false>(
|
|
|
2731
3218
|
})
|
|
2732
3219
|
|
|
2733
3220
|
/**
|
|
2734
|
-
*
|
|
3221
|
+
* Choose your approval mode in an agent thread
|
|
3222
|
+
*
|
|
3223
|
+
* Applies to your next turns in the thread; other participants keep theirs. `null` follows your default again. A message can still pass its own `approvalMode`.
|
|
3224
|
+
*/
|
|
3225
|
+
export const setAgentThreadApprovalMode = <ThrowOnError extends boolean = false>(
|
|
3226
|
+
options: Options<SetAgentThreadApprovalModeData, ThrowOnError>
|
|
3227
|
+
) =>
|
|
3228
|
+
(options.client ?? client).put<
|
|
3229
|
+
SetAgentThreadApprovalModeResponses,
|
|
3230
|
+
SetAgentThreadApprovalModeErrors,
|
|
3231
|
+
ThrowOnError
|
|
3232
|
+
>({
|
|
3233
|
+
security: [
|
|
3234
|
+
{ name: "x-sixb-csrf", type: "apiKey" },
|
|
3235
|
+
{ scheme: "bearer", type: "http" },
|
|
3236
|
+
],
|
|
3237
|
+
url: "/api/agent-threads/{threadId}/approval-mode",
|
|
3238
|
+
...options,
|
|
3239
|
+
headers: {
|
|
3240
|
+
"Content-Type": "application/json",
|
|
3241
|
+
...options.headers,
|
|
3242
|
+
},
|
|
3243
|
+
})
|
|
3244
|
+
|
|
3245
|
+
/**
|
|
3246
|
+
* List an agent thread's held calls
|
|
3247
|
+
*
|
|
3248
|
+
* Oldest first. Whoever reads the thread reads its approvals.
|
|
3249
|
+
*/
|
|
3250
|
+
export const listAgentThreadApprovals = <ThrowOnError extends boolean = false>(
|
|
3251
|
+
options: Options<ListAgentThreadApprovalsData, ThrowOnError>
|
|
3252
|
+
) =>
|
|
3253
|
+
(options.client ?? client).get<
|
|
3254
|
+
ListAgentThreadApprovalsResponses,
|
|
3255
|
+
ListAgentThreadApprovalsErrors,
|
|
3256
|
+
ThrowOnError
|
|
3257
|
+
>({
|
|
3258
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3259
|
+
url: "/api/agent-threads/{threadId}/approvals",
|
|
3260
|
+
...options,
|
|
3261
|
+
})
|
|
3262
|
+
|
|
3263
|
+
/**
|
|
3264
|
+
* Approve or deny a held agent call
|
|
3265
|
+
*
|
|
3266
|
+
* Only whoever asked for the turn decides: an approved call runs now, as the turn, with the rights their request carries, and the approval comes back with its outcome. A turn paused on its calls resumes once all of them are decided: `run` is the turn that continues it, and the Agent reads how each call ended. Once the call ran, the decision never fails: when the turn cannot resume, `resume` says why, and whether Sixb tries again, as it does once an AI limit resets. A new message sets the calls still waiting aside. None of these routes is reachable from the Agent's sandbox.
|
|
3267
|
+
*/
|
|
3268
|
+
export const decideAgentApproval = <ThrowOnError extends boolean = false>(
|
|
3269
|
+
options: Options<DecideAgentApprovalData, ThrowOnError>
|
|
3270
|
+
) =>
|
|
3271
|
+
(options.client ?? client).post<
|
|
3272
|
+
DecideAgentApprovalResponses,
|
|
3273
|
+
DecideAgentApprovalErrors,
|
|
3274
|
+
ThrowOnError
|
|
3275
|
+
>({
|
|
3276
|
+
security: [
|
|
3277
|
+
{ name: "x-sixb-csrf", type: "apiKey" },
|
|
3278
|
+
{ scheme: "bearer", type: "http" },
|
|
3279
|
+
],
|
|
3280
|
+
url: "/api/agent-threads/{threadId}/approvals/{approvalId}/decision",
|
|
3281
|
+
...options,
|
|
3282
|
+
headers: {
|
|
3283
|
+
"Content-Type": "application/json",
|
|
3284
|
+
...options.headers,
|
|
3285
|
+
},
|
|
3286
|
+
})
|
|
3287
|
+
|
|
3288
|
+
/**
|
|
3289
|
+
* List the calls held for your decision
|
|
3290
|
+
*
|
|
3291
|
+
* Your own, across threads, oldest first.
|
|
3292
|
+
*/
|
|
3293
|
+
export const listAgentApprovals = <ThrowOnError extends boolean = false>(
|
|
3294
|
+
options?: Options<ListAgentApprovalsData, ThrowOnError>
|
|
3295
|
+
) =>
|
|
3296
|
+
(options?.client ?? client).get<
|
|
3297
|
+
ListAgentApprovalsResponses,
|
|
3298
|
+
ListAgentApprovalsErrors,
|
|
3299
|
+
ThrowOnError
|
|
3300
|
+
>({
|
|
3301
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3302
|
+
url: "/api/agent-approvals",
|
|
3303
|
+
...options,
|
|
3304
|
+
})
|
|
3305
|
+
|
|
3306
|
+
/**
|
|
3307
|
+
* Read another user's agent thread
|
|
3308
|
+
*
|
|
3309
|
+
* Read-only, whoever owns the thread. Takes can.observe(agent.threads); the response matches the owner's route.
|
|
3310
|
+
*/
|
|
3311
|
+
export const getObservedAgentThread = <ThrowOnError extends boolean = false>(
|
|
3312
|
+
options: Options<GetObservedAgentThreadData, ThrowOnError>
|
|
3313
|
+
) =>
|
|
3314
|
+
(options.client ?? client).get<
|
|
3315
|
+
GetObservedAgentThreadResponses,
|
|
3316
|
+
GetObservedAgentThreadErrors,
|
|
3317
|
+
ThrowOnError
|
|
3318
|
+
>({
|
|
3319
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3320
|
+
url: "/api/observed-agent-threads/{threadId}",
|
|
3321
|
+
...options,
|
|
3322
|
+
})
|
|
3323
|
+
|
|
3324
|
+
/**
|
|
3325
|
+
* List another user's agent thread messages
|
|
3326
|
+
*
|
|
3327
|
+
* Read-only, whoever owns the thread. Takes can.observe(agent.threads); the response matches the owner's route. `authors` names who wrote the page's messages.
|
|
3328
|
+
*/
|
|
3329
|
+
export const listObservedAgentThreadMessages = <ThrowOnError extends boolean = false>(
|
|
3330
|
+
options: Options<ListObservedAgentThreadMessagesData, ThrowOnError>
|
|
3331
|
+
) =>
|
|
3332
|
+
(options.client ?? client).get<
|
|
3333
|
+
ListObservedAgentThreadMessagesResponses,
|
|
3334
|
+
ListObservedAgentThreadMessagesErrors,
|
|
3335
|
+
ThrowOnError
|
|
3336
|
+
>({
|
|
3337
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3338
|
+
url: "/api/observed-agent-threads/{threadId}/messages",
|
|
3339
|
+
...options,
|
|
3340
|
+
})
|
|
3341
|
+
|
|
3342
|
+
/**
|
|
3343
|
+
* Get a file of another user's agent message
|
|
3344
|
+
*
|
|
3345
|
+
* Read-only, whoever owns the thread. Takes can.observe(agent.threads); the response matches the owner's route.
|
|
3346
|
+
*/
|
|
3347
|
+
export const getObservedAgentMessageFileContent = <ThrowOnError extends boolean = false>(
|
|
3348
|
+
options: Options<GetObservedAgentMessageFileContentData, ThrowOnError>
|
|
3349
|
+
) =>
|
|
3350
|
+
(options.client ?? client).get<
|
|
3351
|
+
GetObservedAgentMessageFileContentResponses,
|
|
3352
|
+
GetObservedAgentMessageFileContentErrors,
|
|
3353
|
+
ThrowOnError
|
|
3354
|
+
>({
|
|
3355
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3356
|
+
url: "/api/observed-agent-threads/{threadId}/messages/{messageId}/files/content",
|
|
3357
|
+
...options,
|
|
3358
|
+
})
|
|
3359
|
+
|
|
3360
|
+
/**
|
|
3361
|
+
* List another user's agent thread runs
|
|
3362
|
+
*
|
|
3363
|
+
* Read-only, whoever owns the thread. Takes can.observe(agent.threads); the response matches the owner's route.
|
|
3364
|
+
*/
|
|
3365
|
+
export const listObservedAgentThreadRuns = <ThrowOnError extends boolean = false>(
|
|
3366
|
+
options: Options<ListObservedAgentThreadRunsData, ThrowOnError>
|
|
3367
|
+
) =>
|
|
3368
|
+
(options.client ?? client).get<
|
|
3369
|
+
ListObservedAgentThreadRunsResponses,
|
|
3370
|
+
ListObservedAgentThreadRunsErrors,
|
|
3371
|
+
ThrowOnError
|
|
3372
|
+
>({
|
|
3373
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3374
|
+
url: "/api/observed-agent-threads/{threadId}/runs",
|
|
3375
|
+
...options,
|
|
3376
|
+
})
|
|
3377
|
+
|
|
3378
|
+
/**
|
|
3379
|
+
* List the sub-agents of another user's agent conversation
|
|
3380
|
+
*
|
|
3381
|
+
* Read-only, whoever owns the thread. Takes can.observe(agent.threads); the response matches the owner's route.
|
|
3382
|
+
*/
|
|
3383
|
+
export const listObservedAgentThreadChildren = <ThrowOnError extends boolean = false>(
|
|
3384
|
+
options: Options<ListObservedAgentThreadChildrenData, ThrowOnError>
|
|
3385
|
+
) =>
|
|
3386
|
+
(options.client ?? client).get<
|
|
3387
|
+
ListObservedAgentThreadChildrenResponses,
|
|
3388
|
+
ListObservedAgentThreadChildrenErrors,
|
|
3389
|
+
ThrowOnError
|
|
3390
|
+
>({
|
|
3391
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3392
|
+
url: "/api/observed-agent-threads/{threadId}/children",
|
|
3393
|
+
...options,
|
|
3394
|
+
})
|
|
3395
|
+
|
|
3396
|
+
/**
|
|
3397
|
+
* Get a file of another user's sub-agent
|
|
3398
|
+
*
|
|
3399
|
+
* Read-only, whoever owns the thread. Takes can.observe(agent.threads); the response matches the owner's route.
|
|
3400
|
+
*/
|
|
3401
|
+
export const getObservedAgentChildFileContent = <ThrowOnError extends boolean = false>(
|
|
3402
|
+
options: Options<GetObservedAgentChildFileContentData, ThrowOnError>
|
|
3403
|
+
) =>
|
|
3404
|
+
(options.client ?? client).get<
|
|
3405
|
+
GetObservedAgentChildFileContentResponses,
|
|
3406
|
+
GetObservedAgentChildFileContentErrors,
|
|
3407
|
+
ThrowOnError
|
|
3408
|
+
>({
|
|
3409
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3410
|
+
url: "/api/observed-agent-threads/{threadId}/child-files/content",
|
|
3411
|
+
...options,
|
|
3412
|
+
})
|
|
3413
|
+
|
|
3414
|
+
/**
|
|
3415
|
+
* Delete an Agent memory repo
|
|
3416
|
+
*
|
|
3417
|
+
* Deletes the repo with its history.
|
|
3418
|
+
*/
|
|
3419
|
+
export const deleteAgentMemory = <ThrowOnError extends boolean = false>(
|
|
3420
|
+
options: Options<DeleteAgentMemoryData, ThrowOnError>
|
|
3421
|
+
) =>
|
|
3422
|
+
(options.client ?? client).delete<
|
|
3423
|
+
DeleteAgentMemoryResponses,
|
|
3424
|
+
DeleteAgentMemoryErrors,
|
|
3425
|
+
ThrowOnError
|
|
3426
|
+
>({
|
|
3427
|
+
security: [
|
|
3428
|
+
{ name: "x-sixb-csrf", type: "apiKey" },
|
|
3429
|
+
{ scheme: "bearer", type: "http" },
|
|
3430
|
+
{ scheme: "bearer", type: "http" },
|
|
3431
|
+
],
|
|
3432
|
+
url: "/api/agent-memory/{repo}",
|
|
3433
|
+
...options,
|
|
3434
|
+
})
|
|
3435
|
+
|
|
3436
|
+
/**
|
|
3437
|
+
* Get an Agent memory repo
|
|
3438
|
+
*
|
|
3439
|
+
* Every file of the repo as of its latest revision, or as an earlier revision left it.
|
|
3440
|
+
*/
|
|
3441
|
+
export const getAgentMemory = <ThrowOnError extends boolean = false>(
|
|
3442
|
+
options: Options<GetAgentMemoryData, ThrowOnError>
|
|
3443
|
+
) =>
|
|
3444
|
+
(options.client ?? client).get<GetAgentMemoryResponses, GetAgentMemoryErrors, ThrowOnError>({
|
|
3445
|
+
security: [
|
|
3446
|
+
{ scheme: "bearer", type: "http" },
|
|
3447
|
+
{ scheme: "bearer", type: "http" },
|
|
3448
|
+
],
|
|
3449
|
+
url: "/api/agent-memory/{repo}",
|
|
3450
|
+
...options,
|
|
3451
|
+
})
|
|
3452
|
+
|
|
3453
|
+
/**
|
|
3454
|
+
* List an Agent memory repo's revisions
|
|
3455
|
+
*
|
|
3456
|
+
* Each save is one revision, newest first.
|
|
3457
|
+
*/
|
|
3458
|
+
export const listAgentMemoryRevisions = <ThrowOnError extends boolean = false>(
|
|
3459
|
+
options: Options<ListAgentMemoryRevisionsData, ThrowOnError>
|
|
3460
|
+
) =>
|
|
3461
|
+
(options.client ?? client).get<
|
|
3462
|
+
ListAgentMemoryRevisionsResponses,
|
|
3463
|
+
ListAgentMemoryRevisionsErrors,
|
|
3464
|
+
ThrowOnError
|
|
3465
|
+
>({
|
|
3466
|
+
security: [
|
|
3467
|
+
{ scheme: "bearer", type: "http" },
|
|
3468
|
+
{ scheme: "bearer", type: "http" },
|
|
3469
|
+
],
|
|
3470
|
+
url: "/api/agent-memory/{repo}/revisions",
|
|
3471
|
+
...options,
|
|
3472
|
+
})
|
|
3473
|
+
|
|
3474
|
+
/**
|
|
3475
|
+
* Save changes to an Agent memory repo
|
|
3476
|
+
*
|
|
3477
|
+
* Stores the changes as the repo's next revision. When another save changed one of the files after baseRevision, nothing is saved and the response holds those files as they are now.
|
|
3478
|
+
*/
|
|
3479
|
+
export const saveAgentMemory = <ThrowOnError extends boolean = false>(
|
|
3480
|
+
options: Options<SaveAgentMemoryData, ThrowOnError>
|
|
3481
|
+
) =>
|
|
3482
|
+
(options.client ?? client).post<SaveAgentMemoryResponses, SaveAgentMemoryErrors, ThrowOnError>({
|
|
3483
|
+
security: [
|
|
3484
|
+
{ name: "x-sixb-csrf", type: "apiKey" },
|
|
3485
|
+
{ scheme: "bearer", type: "http" },
|
|
3486
|
+
{ scheme: "bearer", type: "http" },
|
|
3487
|
+
],
|
|
3488
|
+
url: "/api/agent-memory/{repo}/revisions",
|
|
3489
|
+
...options,
|
|
3490
|
+
headers: {
|
|
3491
|
+
"Content-Type": "application/json",
|
|
3492
|
+
...options.headers,
|
|
3493
|
+
},
|
|
3494
|
+
})
|
|
3495
|
+
|
|
3496
|
+
/**
|
|
3497
|
+
* List artifacts
|
|
3498
|
+
*
|
|
3499
|
+
* The caller's artifacts, most recently updated first. With thread, every artifact the conversation shares, for whoever reads it.
|
|
3500
|
+
*/
|
|
3501
|
+
export const listArtifacts = <ThrowOnError extends boolean = false>(
|
|
3502
|
+
options?: Options<ListArtifactsData, ThrowOnError>
|
|
3503
|
+
) =>
|
|
3504
|
+
(options?.client ?? client).get<ListArtifactsResponses, ListArtifactsErrors, ThrowOnError>({
|
|
3505
|
+
security: [
|
|
3506
|
+
{ scheme: "bearer", type: "http" },
|
|
3507
|
+
{ scheme: "bearer", type: "http" },
|
|
3508
|
+
],
|
|
3509
|
+
url: "/api/artifacts",
|
|
3510
|
+
...options,
|
|
3511
|
+
})
|
|
3512
|
+
|
|
3513
|
+
/**
|
|
3514
|
+
* Create an artifact
|
|
3515
|
+
*
|
|
3516
|
+
* Creates an artifact owned by the caller, with its first version. Store each file with POST /api/files first.
|
|
3517
|
+
*/
|
|
3518
|
+
export const createArtifact = <ThrowOnError extends boolean = false>(
|
|
3519
|
+
options: Options<CreateArtifactData, ThrowOnError>
|
|
3520
|
+
) =>
|
|
3521
|
+
(options.client ?? client).post<CreateArtifactResponses, CreateArtifactErrors, ThrowOnError>({
|
|
3522
|
+
security: [
|
|
3523
|
+
{ name: "x-sixb-csrf", type: "apiKey" },
|
|
3524
|
+
{ scheme: "bearer", type: "http" },
|
|
3525
|
+
{ scheme: "bearer", type: "http" },
|
|
3526
|
+
],
|
|
3527
|
+
url: "/api/artifacts",
|
|
3528
|
+
...options,
|
|
3529
|
+
headers: {
|
|
3530
|
+
"Content-Type": "application/json",
|
|
3531
|
+
...options.headers,
|
|
3532
|
+
},
|
|
3533
|
+
})
|
|
3534
|
+
|
|
3535
|
+
/**
|
|
3536
|
+
* Delete an artifact
|
|
3537
|
+
*
|
|
3538
|
+
* Deletes the artifact with every version, from every conversation that shares it. Only its owner can.
|
|
3539
|
+
*/
|
|
3540
|
+
export const deleteArtifact = <ThrowOnError extends boolean = false>(
|
|
3541
|
+
options: Options<DeleteArtifactData, ThrowOnError>
|
|
3542
|
+
) =>
|
|
3543
|
+
(options.client ?? client).delete<DeleteArtifactResponses, DeleteArtifactErrors, ThrowOnError>({
|
|
3544
|
+
security: [
|
|
3545
|
+
{ name: "x-sixb-csrf", type: "apiKey" },
|
|
3546
|
+
{ scheme: "bearer", type: "http" },
|
|
3547
|
+
{ scheme: "bearer", type: "http" },
|
|
3548
|
+
],
|
|
3549
|
+
url: "/api/artifacts/{artifactId}",
|
|
3550
|
+
...options,
|
|
3551
|
+
})
|
|
3552
|
+
|
|
3553
|
+
/**
|
|
3554
|
+
* Get an artifact and its versions
|
|
3555
|
+
*/
|
|
3556
|
+
export const getArtifact = <ThrowOnError extends boolean = false>(
|
|
3557
|
+
options: Options<GetArtifactData, ThrowOnError>
|
|
3558
|
+
) =>
|
|
3559
|
+
(options.client ?? client).get<GetArtifactResponses, GetArtifactErrors, ThrowOnError>({
|
|
3560
|
+
security: [
|
|
3561
|
+
{ scheme: "bearer", type: "http" },
|
|
3562
|
+
{ scheme: "bearer", type: "http" },
|
|
3563
|
+
],
|
|
3564
|
+
url: "/api/artifacts/{artifactId}",
|
|
3565
|
+
...options,
|
|
3566
|
+
})
|
|
3567
|
+
|
|
3568
|
+
/**
|
|
3569
|
+
* Reset what a page keeps
|
|
3570
|
+
*
|
|
3571
|
+
* Deletes every value the artifact keeps for the caller.
|
|
3572
|
+
*/
|
|
3573
|
+
export const clearArtifactState = <ThrowOnError extends boolean = false>(
|
|
3574
|
+
options: Options<ClearArtifactStateData, ThrowOnError>
|
|
3575
|
+
) =>
|
|
3576
|
+
(options.client ?? client).delete<
|
|
3577
|
+
ClearArtifactStateResponses,
|
|
3578
|
+
ClearArtifactStateErrors,
|
|
3579
|
+
ThrowOnError
|
|
3580
|
+
>({
|
|
3581
|
+
security: [
|
|
3582
|
+
{ name: "x-sixb-csrf", type: "apiKey" },
|
|
3583
|
+
{ scheme: "bearer", type: "http" },
|
|
3584
|
+
{ scheme: "bearer", type: "http" },
|
|
3585
|
+
],
|
|
3586
|
+
url: "/api/artifacts/{artifactId}/state",
|
|
3587
|
+
...options,
|
|
3588
|
+
})
|
|
3589
|
+
|
|
3590
|
+
/**
|
|
3591
|
+
* Read what a page keeps
|
|
3592
|
+
*
|
|
3593
|
+
* Every value the artifact keeps for the caller as its reader, as a page keeps it with sixb.state, across its versions.
|
|
3594
|
+
*/
|
|
3595
|
+
export const getArtifactState = <ThrowOnError extends boolean = false>(
|
|
3596
|
+
options: Options<GetArtifactStateData, ThrowOnError>
|
|
3597
|
+
) =>
|
|
3598
|
+
(options.client ?? client).get<GetArtifactStateResponses, GetArtifactStateErrors, ThrowOnError>({
|
|
3599
|
+
security: [
|
|
3600
|
+
{ scheme: "bearer", type: "http" },
|
|
3601
|
+
{ scheme: "bearer", type: "http" },
|
|
3602
|
+
],
|
|
3603
|
+
url: "/api/artifacts/{artifactId}/state",
|
|
3604
|
+
...options,
|
|
3605
|
+
})
|
|
3606
|
+
|
|
3607
|
+
/**
|
|
3608
|
+
* Delete a value a page keeps
|
|
3609
|
+
*/
|
|
3610
|
+
export const deleteArtifactStateValue = <ThrowOnError extends boolean = false>(
|
|
3611
|
+
options: Options<DeleteArtifactStateValueData, ThrowOnError>
|
|
3612
|
+
) =>
|
|
3613
|
+
(options.client ?? client).delete<
|
|
3614
|
+
DeleteArtifactStateValueResponses,
|
|
3615
|
+
DeleteArtifactStateValueErrors,
|
|
3616
|
+
ThrowOnError
|
|
3617
|
+
>({
|
|
3618
|
+
security: [
|
|
3619
|
+
{ name: "x-sixb-csrf", type: "apiKey" },
|
|
3620
|
+
{ scheme: "bearer", type: "http" },
|
|
3621
|
+
{ scheme: "bearer", type: "http" },
|
|
3622
|
+
],
|
|
3623
|
+
url: "/api/artifacts/{artifactId}/state/{key}",
|
|
3624
|
+
...options,
|
|
3625
|
+
})
|
|
3626
|
+
|
|
3627
|
+
/**
|
|
3628
|
+
* Keep a value for a page
|
|
3629
|
+
*
|
|
3630
|
+
* Keeps a JSON value under the key for the caller, replacing one there. Refused with 413 state_full past the limits.
|
|
3631
|
+
*/
|
|
3632
|
+
export const setArtifactState = <ThrowOnError extends boolean = false>(
|
|
3633
|
+
options: Options<SetArtifactStateData, ThrowOnError>
|
|
3634
|
+
) =>
|
|
3635
|
+
(options.client ?? client).put<SetArtifactStateResponses, SetArtifactStateErrors, ThrowOnError>({
|
|
3636
|
+
security: [
|
|
3637
|
+
{ name: "x-sixb-csrf", type: "apiKey" },
|
|
3638
|
+
{ scheme: "bearer", type: "http" },
|
|
3639
|
+
{ scheme: "bearer", type: "http" },
|
|
3640
|
+
],
|
|
3641
|
+
url: "/api/artifacts/{artifactId}/state/{key}",
|
|
3642
|
+
...options,
|
|
3643
|
+
headers: {
|
|
3644
|
+
"Content-Type": "application/json",
|
|
3645
|
+
...options.headers,
|
|
3646
|
+
},
|
|
3647
|
+
})
|
|
3648
|
+
|
|
3649
|
+
/**
|
|
3650
|
+
* Publish an artifact's next version
|
|
3651
|
+
*
|
|
3652
|
+
* The kind must be the artifact's. The new version becomes the latest. With baseVersion, it is refused with 409 artifact_moved when another version was published since.
|
|
3653
|
+
*/
|
|
3654
|
+
export const publishArtifactVersion = <ThrowOnError extends boolean = false>(
|
|
3655
|
+
options: Options<PublishArtifactVersionData, ThrowOnError>
|
|
3656
|
+
) =>
|
|
3657
|
+
(options.client ?? client).post<
|
|
3658
|
+
PublishArtifactVersionResponses,
|
|
3659
|
+
PublishArtifactVersionErrors,
|
|
3660
|
+
ThrowOnError
|
|
3661
|
+
>({
|
|
3662
|
+
security: [
|
|
3663
|
+
{ name: "x-sixb-csrf", type: "apiKey" },
|
|
3664
|
+
{ scheme: "bearer", type: "http" },
|
|
3665
|
+
{ scheme: "bearer", type: "http" },
|
|
3666
|
+
],
|
|
3667
|
+
url: "/api/artifacts/{artifactId}/versions",
|
|
3668
|
+
...options,
|
|
3669
|
+
headers: {
|
|
3670
|
+
"Content-Type": "application/json",
|
|
3671
|
+
...options.headers,
|
|
3672
|
+
},
|
|
3673
|
+
})
|
|
3674
|
+
|
|
3675
|
+
/**
|
|
3676
|
+
* Open a version in a frame
|
|
3677
|
+
*
|
|
3678
|
+
* A short-lived path that serves the files of a version that opens in a sandboxed frame, as slides do. It expires within an hour. A kind that does not open in a frame is refused with 409 artifact_kind_mismatch.
|
|
3679
|
+
*/
|
|
3680
|
+
export const createArtifactFrame = <ThrowOnError extends boolean = false>(
|
|
3681
|
+
options: Options<CreateArtifactFrameData, ThrowOnError>
|
|
3682
|
+
) =>
|
|
3683
|
+
(options.client ?? client).post<
|
|
3684
|
+
CreateArtifactFrameResponses,
|
|
3685
|
+
CreateArtifactFrameErrors,
|
|
3686
|
+
ThrowOnError
|
|
3687
|
+
>({
|
|
3688
|
+
security: [
|
|
3689
|
+
{ name: "x-sixb-csrf", type: "apiKey" },
|
|
3690
|
+
{ scheme: "bearer", type: "http" },
|
|
3691
|
+
{ scheme: "bearer", type: "http" },
|
|
3692
|
+
],
|
|
3693
|
+
url: "/api/artifacts/{artifactId}/versions/{version}/frame",
|
|
3694
|
+
...options,
|
|
3695
|
+
})
|
|
3696
|
+
|
|
3697
|
+
/**
|
|
3698
|
+
* Get an artifact version
|
|
3699
|
+
*
|
|
3700
|
+
* Its files, outline, and references. Use "latest" for the newest version.
|
|
3701
|
+
*/
|
|
3702
|
+
export const getArtifactVersion = <ThrowOnError extends boolean = false>(
|
|
3703
|
+
options: Options<GetArtifactVersionData, ThrowOnError>
|
|
3704
|
+
) =>
|
|
3705
|
+
(options.client ?? client).get<
|
|
3706
|
+
GetArtifactVersionResponses,
|
|
3707
|
+
GetArtifactVersionErrors,
|
|
3708
|
+
ThrowOnError
|
|
3709
|
+
>({
|
|
3710
|
+
security: [
|
|
3711
|
+
{ scheme: "bearer", type: "http" },
|
|
3712
|
+
{ scheme: "bearer", type: "http" },
|
|
3713
|
+
],
|
|
3714
|
+
url: "/api/artifacts/{artifactId}/versions/{version}",
|
|
3715
|
+
...options,
|
|
3716
|
+
})
|
|
3717
|
+
|
|
3718
|
+
/**
|
|
3719
|
+
* Run an artifact's query
|
|
3720
|
+
*
|
|
3721
|
+
* Runs the version's queries/<name>.json as the caller, with their rights: a type they cannot view is refused with 403, and a marked property they are not cleared for is left out of each row. Rows are serialized as POST /api/objects/query returns them, beside the schema of what they hold as the caller may view it. Use "latest" for the newest version. A query the ontology no longer admits is refused with 409 query_invalid.
|
|
3722
|
+
*/
|
|
3723
|
+
export const getArtifactQuery = <ThrowOnError extends boolean = false>(
|
|
3724
|
+
options: Options<GetArtifactQueryData, ThrowOnError>
|
|
3725
|
+
) =>
|
|
3726
|
+
(options.client ?? client).get<GetArtifactQueryResponses, GetArtifactQueryErrors, ThrowOnError>({
|
|
3727
|
+
security: [
|
|
3728
|
+
{ scheme: "bearer", type: "http" },
|
|
3729
|
+
{ scheme: "bearer", type: "http" },
|
|
3730
|
+
],
|
|
3731
|
+
url: "/api/artifacts/{artifactId}/versions/{version}/queries/{name}",
|
|
3732
|
+
...options,
|
|
3733
|
+
})
|
|
3734
|
+
|
|
3735
|
+
/**
|
|
3736
|
+
* Get a file of an artifact version
|
|
3737
|
+
*/
|
|
3738
|
+
export const getArtifactFileContent = <ThrowOnError extends boolean = false>(
|
|
3739
|
+
options: Options<GetArtifactFileContentData, ThrowOnError>
|
|
3740
|
+
) =>
|
|
3741
|
+
(options.client ?? client).get<
|
|
3742
|
+
GetArtifactFileContentResponses,
|
|
3743
|
+
GetArtifactFileContentErrors,
|
|
3744
|
+
ThrowOnError
|
|
3745
|
+
>({
|
|
3746
|
+
security: [
|
|
3747
|
+
{ scheme: "bearer", type: "http" },
|
|
3748
|
+
{ scheme: "bearer", type: "http" },
|
|
3749
|
+
],
|
|
3750
|
+
url: "/api/artifacts/{artifactId}/versions/{version}/content",
|
|
3751
|
+
...options,
|
|
3752
|
+
})
|
|
3753
|
+
|
|
3754
|
+
/**
|
|
3755
|
+
* Head a file of an artifact version
|
|
3756
|
+
*/
|
|
3757
|
+
export const headArtifactFileContent = <ThrowOnError extends boolean = false>(
|
|
3758
|
+
options: Options<HeadArtifactFileContentData, ThrowOnError>
|
|
3759
|
+
) =>
|
|
3760
|
+
(options.client ?? client).head<
|
|
3761
|
+
HeadArtifactFileContentResponses,
|
|
3762
|
+
HeadArtifactFileContentErrors,
|
|
3763
|
+
ThrowOnError
|
|
3764
|
+
>({
|
|
3765
|
+
security: [
|
|
3766
|
+
{ scheme: "bearer", type: "http" },
|
|
3767
|
+
{ scheme: "bearer", type: "http" },
|
|
3768
|
+
],
|
|
3769
|
+
url: "/api/artifacts/{artifactId}/versions/{version}/content",
|
|
3770
|
+
...options,
|
|
3771
|
+
})
|
|
3772
|
+
|
|
3773
|
+
/**
|
|
3774
|
+
* List the project's models of every kind, with their options and prices
|
|
3775
|
+
*/
|
|
3776
|
+
export const listModels = <ThrowOnError extends boolean = false>(
|
|
3777
|
+
options?: Options<ListModelsData, ThrowOnError>
|
|
3778
|
+
) =>
|
|
3779
|
+
(options?.client ?? client).get<ListModelsResponses, unknown, ThrowOnError>({
|
|
3780
|
+
security: [
|
|
3781
|
+
{ scheme: "bearer", type: "http" },
|
|
3782
|
+
{ scheme: "bearer", type: "http" },
|
|
3783
|
+
],
|
|
3784
|
+
url: "/api/models",
|
|
3785
|
+
...options,
|
|
3786
|
+
})
|
|
3787
|
+
|
|
3788
|
+
/**
|
|
3789
|
+
* Remove object link
|
|
3790
|
+
*/
|
|
3791
|
+
export const removeObjectLink = <ThrowOnError extends boolean = false>(
|
|
3792
|
+
options: Options<RemoveObjectLinkData, ThrowOnError>
|
|
3793
|
+
) =>
|
|
3794
|
+
(options.client ?? client).delete<
|
|
3795
|
+
RemoveObjectLinkResponses,
|
|
3796
|
+
RemoveObjectLinkErrors,
|
|
3797
|
+
ThrowOnError
|
|
3798
|
+
>({
|
|
3799
|
+
security: [
|
|
3800
|
+
{ name: "x-sixb-csrf", type: "apiKey" },
|
|
3801
|
+
{ scheme: "bearer", type: "http" },
|
|
3802
|
+
{ scheme: "bearer", type: "http" },
|
|
3803
|
+
],
|
|
3804
|
+
url: "/api/objects/{objectTypeId}/{objectId}/links/{linkId}",
|
|
3805
|
+
...options,
|
|
3806
|
+
})
|
|
3807
|
+
|
|
3808
|
+
/**
|
|
3809
|
+
* Create or update object link
|
|
3810
|
+
*/
|
|
3811
|
+
export const upsertObjectLink = <ThrowOnError extends boolean = false>(
|
|
3812
|
+
options: Options<UpsertObjectLinkData, ThrowOnError>
|
|
3813
|
+
) =>
|
|
3814
|
+
(options.client ?? client).put<UpsertObjectLinkResponses, UpsertObjectLinkErrors, ThrowOnError>({
|
|
3815
|
+
security: [
|
|
3816
|
+
{ name: "x-sixb-csrf", type: "apiKey" },
|
|
3817
|
+
{ scheme: "bearer", type: "http" },
|
|
3818
|
+
{ scheme: "bearer", type: "http" },
|
|
3819
|
+
],
|
|
3820
|
+
url: "/api/objects/{objectTypeId}/{objectId}/links/{linkId}",
|
|
3821
|
+
...options,
|
|
3822
|
+
headers: {
|
|
3823
|
+
"Content-Type": "application/json",
|
|
3824
|
+
...options.headers,
|
|
3825
|
+
},
|
|
3826
|
+
})
|
|
3827
|
+
|
|
3828
|
+
/**
|
|
3829
|
+
* Append telemetry point
|
|
3830
|
+
*/
|
|
3831
|
+
export const appendTelemetry = <ThrowOnError extends boolean = false>(
|
|
3832
|
+
options: Options<AppendTelemetryData, ThrowOnError>
|
|
3833
|
+
) =>
|
|
3834
|
+
(options.client ?? client).post<AppendTelemetryResponses, AppendTelemetryErrors, ThrowOnError>({
|
|
3835
|
+
security: [
|
|
3836
|
+
{ name: "x-sixb-csrf", type: "apiKey" },
|
|
3837
|
+
{ scheme: "bearer", type: "http" },
|
|
3838
|
+
{ scheme: "bearer", type: "http" },
|
|
3839
|
+
],
|
|
3840
|
+
url: "/api/objects/{objectTypeId}/{objectId}/telemetry/{propertyId}",
|
|
3841
|
+
...options,
|
|
3842
|
+
headers: {
|
|
3843
|
+
"Content-Type": "application/json",
|
|
3844
|
+
...options.headers,
|
|
3845
|
+
},
|
|
3846
|
+
})
|
|
3847
|
+
|
|
3848
|
+
/**
|
|
3849
|
+
* Get bulk telemetry history
|
|
2735
3850
|
*/
|
|
2736
3851
|
export const getBulkTelemetryHistory = <ThrowOnError extends boolean = false>(
|
|
2737
3852
|
options: Options<GetBulkTelemetryHistoryData, ThrowOnError>
|
|
@@ -2825,6 +3940,195 @@ export const listLogs = <ThrowOnError extends boolean = false>(
|
|
|
2825
3940
|
...options,
|
|
2826
3941
|
})
|
|
2827
3942
|
|
|
3943
|
+
/**
|
|
3944
|
+
* Read whether this browser session records activity
|
|
3945
|
+
*
|
|
3946
|
+
* A browser or shared-link session only; a native client's session gets 403.
|
|
3947
|
+
*/
|
|
3948
|
+
export const getActivityCaptureConfig = <ThrowOnError extends boolean = false>(
|
|
3949
|
+
options?: Options<GetActivityCaptureConfigData, ThrowOnError>
|
|
3950
|
+
) =>
|
|
3951
|
+
(options?.client ?? client).get<
|
|
3952
|
+
GetActivityCaptureConfigResponses,
|
|
3953
|
+
GetActivityCaptureConfigErrors,
|
|
3954
|
+
ThrowOnError
|
|
3955
|
+
>({
|
|
3956
|
+
security: [
|
|
3957
|
+
{ scheme: "bearer", type: "http" },
|
|
3958
|
+
{ name: "x-sixb-share-grant", type: "apiKey" },
|
|
3959
|
+
],
|
|
3960
|
+
url: "/api/activity/capture-config",
|
|
3961
|
+
...options,
|
|
3962
|
+
})
|
|
3963
|
+
|
|
3964
|
+
/**
|
|
3965
|
+
* Record page views, activity and interactions for this browser session
|
|
3966
|
+
*
|
|
3967
|
+
* A browser or shared-link session only; a native client's session gets 403. The visit belongs to the calling session.
|
|
3968
|
+
*/
|
|
3969
|
+
export const captureActivity = <ThrowOnError extends boolean = false>(
|
|
3970
|
+
options: Options<CaptureActivityData, ThrowOnError>
|
|
3971
|
+
) =>
|
|
3972
|
+
(options.client ?? client).post<CaptureActivityResponses, CaptureActivityErrors, ThrowOnError>({
|
|
3973
|
+
security: [
|
|
3974
|
+
{ name: "x-sixb-csrf", type: "apiKey" },
|
|
3975
|
+
{ scheme: "bearer", type: "http" },
|
|
3976
|
+
{ name: "x-sixb-share-grant", type: "apiKey" },
|
|
3977
|
+
],
|
|
3978
|
+
url: "/api/activity/events",
|
|
3979
|
+
...options,
|
|
3980
|
+
headers: {
|
|
3981
|
+
"Content-Type": "application/json",
|
|
3982
|
+
...options.headers,
|
|
3983
|
+
},
|
|
3984
|
+
})
|
|
3985
|
+
|
|
3986
|
+
/**
|
|
3987
|
+
* List the visits active in a period
|
|
3988
|
+
*/
|
|
3989
|
+
export const listActivityVisits = <ThrowOnError extends boolean = false>(
|
|
3990
|
+
options: Options<ListActivityVisitsData, ThrowOnError>
|
|
3991
|
+
) =>
|
|
3992
|
+
(options.client ?? client).get<
|
|
3993
|
+
ListActivityVisitsResponses,
|
|
3994
|
+
ListActivityVisitsErrors,
|
|
3995
|
+
ThrowOnError
|
|
3996
|
+
>({
|
|
3997
|
+
security: [
|
|
3998
|
+
{ scheme: "bearer", type: "http" },
|
|
3999
|
+
{ scheme: "bearer", type: "http" },
|
|
4000
|
+
],
|
|
4001
|
+
url: "/api/activity/visits",
|
|
4002
|
+
...options,
|
|
4003
|
+
})
|
|
4004
|
+
|
|
4005
|
+
/**
|
|
4006
|
+
* List the signed-in users active in a period
|
|
4007
|
+
*/
|
|
4008
|
+
export const listActivityUsers = <ThrowOnError extends boolean = false>(
|
|
4009
|
+
options: Options<ListActivityUsersData, ThrowOnError>
|
|
4010
|
+
) =>
|
|
4011
|
+
(options.client ?? client).get<ListActivityUsersResponses, ListActivityUsersErrors, ThrowOnError>(
|
|
4012
|
+
{
|
|
4013
|
+
security: [
|
|
4014
|
+
{ scheme: "bearer", type: "http" },
|
|
4015
|
+
{ scheme: "bearer", type: "http" },
|
|
4016
|
+
],
|
|
4017
|
+
url: "/api/activity/users",
|
|
4018
|
+
...options,
|
|
4019
|
+
}
|
|
4020
|
+
)
|
|
4021
|
+
|
|
4022
|
+
/**
|
|
4023
|
+
* Count the users, visits and page views of a period
|
|
4024
|
+
*/
|
|
4025
|
+
export const getActivitySummary = <ThrowOnError extends boolean = false>(
|
|
4026
|
+
options: Options<GetActivitySummaryData, ThrowOnError>
|
|
4027
|
+
) =>
|
|
4028
|
+
(options.client ?? client).get<
|
|
4029
|
+
GetActivitySummaryResponses,
|
|
4030
|
+
GetActivitySummaryErrors,
|
|
4031
|
+
ThrowOnError
|
|
4032
|
+
>({
|
|
4033
|
+
security: [
|
|
4034
|
+
{ scheme: "bearer", type: "http" },
|
|
4035
|
+
{ scheme: "bearer", type: "http" },
|
|
4036
|
+
],
|
|
4037
|
+
url: "/api/activity/summary",
|
|
4038
|
+
...options,
|
|
4039
|
+
})
|
|
4040
|
+
|
|
4041
|
+
/**
|
|
4042
|
+
* Read a user's active days in a UTC year
|
|
4043
|
+
*/
|
|
4044
|
+
export const getActivityCalendar = <ThrowOnError extends boolean = false>(
|
|
4045
|
+
options: Options<GetActivityCalendarData, ThrowOnError>
|
|
4046
|
+
) =>
|
|
4047
|
+
(options.client ?? client).get<
|
|
4048
|
+
GetActivityCalendarResponses,
|
|
4049
|
+
GetActivityCalendarErrors,
|
|
4050
|
+
ThrowOnError
|
|
4051
|
+
>({
|
|
4052
|
+
security: [
|
|
4053
|
+
{ scheme: "bearer", type: "http" },
|
|
4054
|
+
{ scheme: "bearer", type: "http" },
|
|
4055
|
+
],
|
|
4056
|
+
url: "/api/activity/calendar",
|
|
4057
|
+
...options,
|
|
4058
|
+
})
|
|
4059
|
+
|
|
4060
|
+
/**
|
|
4061
|
+
* Read what one visit did
|
|
4062
|
+
*
|
|
4063
|
+
* Its page views and interactions, with the actions, workflows and Agent runs its session started, and the connection it came through. At most 200 page views and interactions, and 200 recorded executions: see truncated.
|
|
4064
|
+
*/
|
|
4065
|
+
export const getActivityVisitTimeline = <ThrowOnError extends boolean = false>(
|
|
4066
|
+
options: Options<GetActivityVisitTimelineData, ThrowOnError>
|
|
4067
|
+
) =>
|
|
4068
|
+
(options.client ?? client).get<
|
|
4069
|
+
GetActivityVisitTimelineResponses,
|
|
4070
|
+
GetActivityVisitTimelineErrors,
|
|
4071
|
+
ThrowOnError
|
|
4072
|
+
>({
|
|
4073
|
+
security: [
|
|
4074
|
+
{ scheme: "bearer", type: "http" },
|
|
4075
|
+
{ scheme: "bearer", type: "http" },
|
|
4076
|
+
],
|
|
4077
|
+
url: "/api/activity/visits/{visitId}/timeline",
|
|
4078
|
+
...options,
|
|
4079
|
+
})
|
|
4080
|
+
|
|
4081
|
+
/**
|
|
4082
|
+
* List a user's sign-ins with the visits each opened
|
|
4083
|
+
*
|
|
4084
|
+
* Newest first, revoked and expired sessions included.
|
|
4085
|
+
*/
|
|
4086
|
+
export const listActivityConnections = <ThrowOnError extends boolean = false>(
|
|
4087
|
+
options: Options<ListActivityConnectionsData, ThrowOnError>
|
|
4088
|
+
) =>
|
|
4089
|
+
(options.client ?? client).get<
|
|
4090
|
+
ListActivityConnectionsResponses,
|
|
4091
|
+
ListActivityConnectionsErrors,
|
|
4092
|
+
ThrowOnError
|
|
4093
|
+
>({
|
|
4094
|
+
security: [
|
|
4095
|
+
{ scheme: "bearer", type: "http" },
|
|
4096
|
+
{ scheme: "bearer", type: "http" },
|
|
4097
|
+
],
|
|
4098
|
+
url: "/api/activity/connections",
|
|
4099
|
+
...options,
|
|
4100
|
+
})
|
|
4101
|
+
|
|
4102
|
+
/**
|
|
4103
|
+
* List project members
|
|
4104
|
+
*/
|
|
4105
|
+
export const listUsers = <ThrowOnError extends boolean = false>(
|
|
4106
|
+
options?: Options<ListUsersData, ThrowOnError>
|
|
4107
|
+
) =>
|
|
4108
|
+
(options?.client ?? client).get<ListUsersResponses, ListUsersErrors, ThrowOnError>({
|
|
4109
|
+
security: [
|
|
4110
|
+
{ scheme: "bearer", type: "http" },
|
|
4111
|
+
{ scheme: "bearer", type: "http" },
|
|
4112
|
+
],
|
|
4113
|
+
url: "/api/users",
|
|
4114
|
+
...options,
|
|
4115
|
+
})
|
|
4116
|
+
|
|
4117
|
+
/**
|
|
4118
|
+
* Get a project member
|
|
4119
|
+
*/
|
|
4120
|
+
export const getUser = <ThrowOnError extends boolean = false>(
|
|
4121
|
+
options: Options<GetUserData, ThrowOnError>
|
|
4122
|
+
) =>
|
|
4123
|
+
(options.client ?? client).get<GetUserResponses, GetUserErrors, ThrowOnError>({
|
|
4124
|
+
security: [
|
|
4125
|
+
{ scheme: "bearer", type: "http" },
|
|
4126
|
+
{ scheme: "bearer", type: "http" },
|
|
4127
|
+
],
|
|
4128
|
+
url: "/api/users/{userId}",
|
|
4129
|
+
...options,
|
|
4130
|
+
})
|
|
4131
|
+
|
|
2828
4132
|
/**
|
|
2829
4133
|
* List all projection definitions
|
|
2830
4134
|
*/
|