@sixb/client 0.1.20 → 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.
Files changed (45) hide show
  1. package/dist/activity-attribution.d.ts +29 -0
  2. package/dist/activity-attribution.d.ts.map +1 -0
  3. package/dist/activity-tracker.d.ts +105 -0
  4. package/dist/activity-tracker.d.ts.map +1 -0
  5. package/dist/browser.d.ts +2 -0
  6. package/dist/browser.d.ts.map +1 -1
  7. package/dist/browser.js +513 -11
  8. package/dist/browser.js.map +6 -4
  9. package/dist/{chunk-g05ar78c.js → chunk-3b154p8n.js} +3 -3
  10. package/dist/{chunk-tkjkrcdt.js → chunk-3f2pjdzk.js} +155 -2
  11. package/dist/chunk-3f2pjdzk.js.map +19 -0
  12. package/dist/{chunk-awbb496e.js → chunk-9wd8x2em.js} +1 -1
  13. package/dist/{chunk-3aa3m9z6.js → chunk-ana8rtgb.js} +2 -2
  14. package/dist/{chunk-95bnb04n.js → chunk-qdq5gfqx.js} +1 -1
  15. package/dist/{chunk-12s8gbwj.js → chunk-s5zamywm.js} +2 -2
  16. package/dist/generated/@tanstack/react-query.gen.d.ts +2281 -591
  17. package/dist/generated/@tanstack/react-query.gen.d.ts.map +1 -1
  18. package/dist/generated/index.d.ts +2 -2
  19. package/dist/generated/index.d.ts.map +1 -1
  20. package/dist/generated/sdk.gen.d.ts +89 -1
  21. package/dist/generated/sdk.gen.d.ts.map +1 -1
  22. package/dist/generated/types.gen.d.ts +1669 -448
  23. package/dist/generated/types.gen.d.ts.map +1 -1
  24. package/dist/hooks.js +299 -6
  25. package/dist/hooks.js.map +3 -3
  26. package/dist/index.js +40 -6
  27. package/dist/index.js.map +1 -1
  28. package/dist/logs.js +3 -3
  29. package/dist/models.js +36 -2
  30. package/dist/models.js.map +1 -1
  31. package/dist/query.js +3 -3
  32. package/package.json +2 -2
  33. package/src/activity-attribution.ts +211 -0
  34. package/src/activity-tracker.ts +527 -0
  35. package/src/browser.ts +14 -1
  36. package/src/generated/@tanstack/react-query.gen.ts +580 -0
  37. package/src/generated/index.ts +101 -0
  38. package/src/generated/sdk.gen.ts +389 -0
  39. package/src/generated/types.gen.ts +2405 -1090
  40. package/dist/chunk-tkjkrcdt.js.map +0 -19
  41. /package/dist/{chunk-g05ar78c.js.map → chunk-3b154p8n.js.map} +0 -0
  42. /package/dist/{chunk-awbb496e.js.map → chunk-9wd8x2em.js.map} +0 -0
  43. /package/dist/{chunk-3aa3m9z6.js.map → chunk-ana8rtgb.js.map} +0 -0
  44. /package/dist/{chunk-95bnb04n.js.map → chunk-qdq5gfqx.js.map} +0 -0
  45. /package/dist/{chunk-12s8gbwj.js.map → chunk-s5zamywm.js.map} +0 -0
@@ -7,10 +7,13 @@ export {
7
7
  cancelAgentRun,
8
8
  cancelWorkflowIntervention,
9
9
  cancelWorkflowRun,
10
+ captureActivity,
10
11
  completeFileUpload,
11
12
  countObjects,
12
13
  createAgentThread,
13
14
  createAiLimitPolicy,
15
+ createArtifact,
16
+ createArtifactFrame,
14
17
  createAuthInvitation,
15
18
  createAuthPersonalAccessToken,
16
19
  createAuthServiceAccount,
@@ -18,6 +21,7 @@ export {
18
21
  createDeviceAuthorization,
19
22
  createFileUpload,
20
23
  deleteAiLimitPolicy,
24
+ deleteArtifact,
21
25
  disableAuthServiceAccount,
22
26
  disconnectConnectorConnection,
23
27
  exchangeDeviceAuthorization,
@@ -27,6 +31,10 @@ export {
27
31
  getAction,
28
32
  getActionRun,
29
33
  getActionRunFileContent,
34
+ getActivityCalendar,
35
+ getActivityCaptureConfig,
36
+ getActivitySummary,
37
+ getActivityVisitTimeline,
30
38
  getAgent,
31
39
  getAgentMessageFileContent,
32
40
  getAgentRun,
@@ -34,6 +42,9 @@ export {
34
42
  getAiAccountingOverview,
35
43
  getAiLimitStatus,
36
44
  getAiLimitSubjectOptions,
45
+ getArtifact,
46
+ getArtifactFileContent,
47
+ getArtifactVersion,
37
48
  getAuthAccessManagementOptions,
38
49
  getAuthInvitationOptions,
39
50
  getAuthMembershipOptions,
@@ -65,18 +76,23 @@ export {
65
76
  getWorkflowRunFileContent,
66
77
  headActionRunFileContent,
67
78
  headAgentMessageFileContent,
79
+ headArtifactFileContent,
68
80
  headObjectFileContent,
69
81
  headWorkflowNodeRunFileContent,
70
82
  headWorkflowRunFileContent,
71
83
  issueSharedAccessGrant,
72
84
  listActionRuns,
73
85
  listActions,
86
+ listActivityConnections,
87
+ listActivityUsers,
88
+ listActivityVisits,
74
89
  listAgentThreadMessages,
75
90
  listAgentThreadRuns,
76
91
  listAgentThreads,
77
92
  listAiLimitPolicies,
78
93
  listAiModelCallGroups,
79
94
  listAiModelCalls,
95
+ listArtifacts,
80
96
  listAuthAccessTokens,
81
97
  listAuthInvitations,
82
98
  listAuthMembers,
@@ -109,6 +125,7 @@ export {
109
125
  listWorkflows,
110
126
  type Options,
111
127
  postAgentThreadMessage,
128
+ publishArtifactVersion,
112
129
  queryObjectLinks,
113
130
  queryObjects,
114
131
  reactivateAuthMember,
@@ -175,6 +192,11 @@ export type {
175
192
  CancelWorkflowRunErrors,
176
193
  CancelWorkflowRunResponse,
177
194
  CancelWorkflowRunResponses,
195
+ CaptureActivityData,
196
+ CaptureActivityError,
197
+ CaptureActivityErrors,
198
+ CaptureActivityResponse,
199
+ CaptureActivityResponses,
178
200
  ClientOptions,
179
201
  CompleteFileUploadData,
180
202
  CompleteFileUploadError,
@@ -196,6 +218,16 @@ export type {
196
218
  CreateAiLimitPolicyErrors,
197
219
  CreateAiLimitPolicyResponse,
198
220
  CreateAiLimitPolicyResponses,
221
+ CreateArtifactData,
222
+ CreateArtifactError,
223
+ CreateArtifactErrors,
224
+ CreateArtifactFrameData,
225
+ CreateArtifactFrameError,
226
+ CreateArtifactFrameErrors,
227
+ CreateArtifactFrameResponse,
228
+ CreateArtifactFrameResponses,
229
+ CreateArtifactResponse,
230
+ CreateArtifactResponses,
199
231
  CreateAuthInvitationData,
200
232
  CreateAuthInvitationError,
201
233
  CreateAuthInvitationErrors,
@@ -231,6 +263,11 @@ export type {
231
263
  DeleteAiLimitPolicyErrors,
232
264
  DeleteAiLimitPolicyResponse,
233
265
  DeleteAiLimitPolicyResponses,
266
+ DeleteArtifactData,
267
+ DeleteArtifactError,
268
+ DeleteArtifactErrors,
269
+ DeleteArtifactResponse,
270
+ DeleteArtifactResponses,
234
271
  DisableAuthServiceAccountData,
235
272
  DisableAuthServiceAccountError,
236
273
  DisableAuthServiceAccountErrors,
@@ -275,6 +312,26 @@ export type {
275
312
  GetActionRunFileContentResponses,
276
313
  GetActionRunResponse,
277
314
  GetActionRunResponses,
315
+ GetActivityCalendarData,
316
+ GetActivityCalendarError,
317
+ GetActivityCalendarErrors,
318
+ GetActivityCalendarResponse,
319
+ GetActivityCalendarResponses,
320
+ GetActivityCaptureConfigData,
321
+ GetActivityCaptureConfigError,
322
+ GetActivityCaptureConfigErrors,
323
+ GetActivityCaptureConfigResponse,
324
+ GetActivityCaptureConfigResponses,
325
+ GetActivitySummaryData,
326
+ GetActivitySummaryError,
327
+ GetActivitySummaryErrors,
328
+ GetActivitySummaryResponse,
329
+ GetActivitySummaryResponses,
330
+ GetActivityVisitTimelineData,
331
+ GetActivityVisitTimelineError,
332
+ GetActivityVisitTimelineErrors,
333
+ GetActivityVisitTimelineResponse,
334
+ GetActivityVisitTimelineResponses,
278
335
  GetAgentData,
279
336
  GetAgentError,
280
337
  GetAgentErrors,
@@ -310,6 +367,21 @@ export type {
310
367
  GetAiLimitSubjectOptionsErrors,
311
368
  GetAiLimitSubjectOptionsResponse,
312
369
  GetAiLimitSubjectOptionsResponses,
370
+ GetArtifactData,
371
+ GetArtifactError,
372
+ GetArtifactErrors,
373
+ GetArtifactFileContentData,
374
+ GetArtifactFileContentError,
375
+ GetArtifactFileContentErrors,
376
+ GetArtifactFileContentResponse,
377
+ GetArtifactFileContentResponses,
378
+ GetArtifactResponse,
379
+ GetArtifactResponses,
380
+ GetArtifactVersionData,
381
+ GetArtifactVersionError,
382
+ GetArtifactVersionErrors,
383
+ GetArtifactVersionResponse,
384
+ GetArtifactVersionResponses,
313
385
  GetAuthAccessManagementOptionsData,
314
386
  GetAuthAccessManagementOptionsError,
315
387
  GetAuthAccessManagementOptionsErrors,
@@ -457,6 +529,10 @@ export type {
457
529
  HeadAgentMessageFileContentError,
458
530
  HeadAgentMessageFileContentErrors,
459
531
  HeadAgentMessageFileContentResponses,
532
+ HeadArtifactFileContentData,
533
+ HeadArtifactFileContentError,
534
+ HeadArtifactFileContentErrors,
535
+ HeadArtifactFileContentResponses,
460
536
  HeadObjectFileContentData,
461
537
  HeadObjectFileContentError,
462
538
  HeadObjectFileContentErrors,
@@ -482,6 +558,21 @@ export type {
482
558
  ListActionsData,
483
559
  ListActionsResponse,
484
560
  ListActionsResponses,
561
+ ListActivityConnectionsData,
562
+ ListActivityConnectionsError,
563
+ ListActivityConnectionsErrors,
564
+ ListActivityConnectionsResponse,
565
+ ListActivityConnectionsResponses,
566
+ ListActivityUsersData,
567
+ ListActivityUsersError,
568
+ ListActivityUsersErrors,
569
+ ListActivityUsersResponse,
570
+ ListActivityUsersResponses,
571
+ ListActivityVisitsData,
572
+ ListActivityVisitsError,
573
+ ListActivityVisitsErrors,
574
+ ListActivityVisitsResponse,
575
+ ListActivityVisitsResponses,
485
576
  ListAgentThreadMessagesData,
486
577
  ListAgentThreadMessagesError,
487
578
  ListAgentThreadMessagesErrors,
@@ -512,6 +603,11 @@ export type {
512
603
  ListAiModelCallsErrors,
513
604
  ListAiModelCallsResponse,
514
605
  ListAiModelCallsResponses,
606
+ ListArtifactsData,
607
+ ListArtifactsError,
608
+ ListArtifactsErrors,
609
+ ListArtifactsResponse,
610
+ ListArtifactsResponses,
515
611
  ListAuthAccessTokensData,
516
612
  ListAuthAccessTokensError,
517
613
  ListAuthAccessTokensErrors,
@@ -675,6 +771,11 @@ export type {
675
771
  PostAgentThreadMessageErrors,
676
772
  PostAgentThreadMessageResponse,
677
773
  PostAgentThreadMessageResponses,
774
+ PublishArtifactVersionData,
775
+ PublishArtifactVersionError,
776
+ PublishArtifactVersionErrors,
777
+ PublishArtifactVersionResponse,
778
+ PublishArtifactVersionResponses,
678
779
  QueryObjectLinksData,
679
780
  QueryObjectLinksError,
680
781
  QueryObjectLinksErrors,
@@ -26,6 +26,9 @@ import type {
26
26
  CancelWorkflowRunData,
27
27
  CancelWorkflowRunErrors,
28
28
  CancelWorkflowRunResponses,
29
+ CaptureActivityData,
30
+ CaptureActivityErrors,
31
+ CaptureActivityResponses,
29
32
  CompleteFileUploadData,
30
33
  CompleteFileUploadErrors,
31
34
  CompleteFileUploadResponses,
@@ -38,6 +41,12 @@ import type {
38
41
  CreateAiLimitPolicyData,
39
42
  CreateAiLimitPolicyErrors,
40
43
  CreateAiLimitPolicyResponses,
44
+ CreateArtifactData,
45
+ CreateArtifactErrors,
46
+ CreateArtifactFrameData,
47
+ CreateArtifactFrameErrors,
48
+ CreateArtifactFrameResponses,
49
+ CreateArtifactResponses,
41
50
  CreateAuthInvitationData,
42
51
  CreateAuthInvitationErrors,
43
52
  CreateAuthInvitationResponses,
@@ -59,6 +68,9 @@ import type {
59
68
  DeleteAiLimitPolicyData,
60
69
  DeleteAiLimitPolicyErrors,
61
70
  DeleteAiLimitPolicyResponses,
71
+ DeleteArtifactData,
72
+ DeleteArtifactErrors,
73
+ DeleteArtifactResponses,
62
74
  DisableAuthServiceAccountData,
63
75
  DisableAuthServiceAccountErrors,
64
76
  DisableAuthServiceAccountResponses,
@@ -85,6 +97,18 @@ import type {
85
97
  GetActionRunFileContentErrors,
86
98
  GetActionRunFileContentResponses,
87
99
  GetActionRunResponses,
100
+ GetActivityCalendarData,
101
+ GetActivityCalendarErrors,
102
+ GetActivityCalendarResponses,
103
+ GetActivityCaptureConfigData,
104
+ GetActivityCaptureConfigErrors,
105
+ GetActivityCaptureConfigResponses,
106
+ GetActivitySummaryData,
107
+ GetActivitySummaryErrors,
108
+ GetActivitySummaryResponses,
109
+ GetActivityVisitTimelineData,
110
+ GetActivityVisitTimelineErrors,
111
+ GetActivityVisitTimelineResponses,
88
112
  GetAgentData,
89
113
  GetAgentErrors,
90
114
  GetAgentMessageFileContentData,
@@ -106,6 +130,15 @@ import type {
106
130
  GetAiLimitSubjectOptionsData,
107
131
  GetAiLimitSubjectOptionsErrors,
108
132
  GetAiLimitSubjectOptionsResponses,
133
+ GetArtifactData,
134
+ GetArtifactErrors,
135
+ GetArtifactFileContentData,
136
+ GetArtifactFileContentErrors,
137
+ GetArtifactFileContentResponses,
138
+ GetArtifactResponses,
139
+ GetArtifactVersionData,
140
+ GetArtifactVersionErrors,
141
+ GetArtifactVersionResponses,
109
142
  GetAuthAccessManagementOptionsData,
110
143
  GetAuthAccessManagementOptionsErrors,
111
144
  GetAuthAccessManagementOptionsResponses,
@@ -196,6 +229,9 @@ import type {
196
229
  HeadAgentMessageFileContentData,
197
230
  HeadAgentMessageFileContentErrors,
198
231
  HeadAgentMessageFileContentResponses,
232
+ HeadArtifactFileContentData,
233
+ HeadArtifactFileContentErrors,
234
+ HeadArtifactFileContentResponses,
199
235
  HeadObjectFileContentData,
200
236
  HeadObjectFileContentErrors,
201
237
  HeadObjectFileContentResponses,
@@ -213,6 +249,15 @@ import type {
213
249
  ListActionRunsResponses,
214
250
  ListActionsData,
215
251
  ListActionsResponses,
252
+ ListActivityConnectionsData,
253
+ ListActivityConnectionsErrors,
254
+ ListActivityConnectionsResponses,
255
+ ListActivityUsersData,
256
+ ListActivityUsersErrors,
257
+ ListActivityUsersResponses,
258
+ ListActivityVisitsData,
259
+ ListActivityVisitsErrors,
260
+ ListActivityVisitsResponses,
216
261
  ListAgentThreadMessagesData,
217
262
  ListAgentThreadMessagesErrors,
218
263
  ListAgentThreadMessagesResponses,
@@ -231,6 +276,9 @@ import type {
231
276
  ListAiModelCallsData,
232
277
  ListAiModelCallsErrors,
233
278
  ListAiModelCallsResponses,
279
+ ListArtifactsData,
280
+ ListArtifactsErrors,
281
+ ListArtifactsResponses,
234
282
  ListAuthAccessTokensData,
235
283
  ListAuthAccessTokensErrors,
236
284
  ListAuthAccessTokensResponses,
@@ -316,6 +364,9 @@ import type {
316
364
  PostAgentThreadMessageData,
317
365
  PostAgentThreadMessageErrors,
318
366
  PostAgentThreadMessageResponses,
367
+ PublishArtifactVersionData,
368
+ PublishArtifactVersionErrors,
369
+ PublishArtifactVersionResponses,
319
370
  QueryObjectLinksData,
320
371
  QueryObjectLinksErrors,
321
372
  QueryObjectLinksResponses,
@@ -2658,6 +2709,185 @@ export const getAgentRun = <ThrowOnError extends boolean = false>(
2658
2709
  ...options,
2659
2710
  })
2660
2711
 
2712
+ /**
2713
+ * List artifacts
2714
+ *
2715
+ * The caller's artifacts, most recently updated first.
2716
+ */
2717
+ export const listArtifacts = <ThrowOnError extends boolean = false>(
2718
+ options?: Options<ListArtifactsData, ThrowOnError>
2719
+ ) =>
2720
+ (options?.client ?? client).get<ListArtifactsResponses, ListArtifactsErrors, ThrowOnError>({
2721
+ security: [
2722
+ { scheme: "bearer", type: "http" },
2723
+ { scheme: "bearer", type: "http" },
2724
+ ],
2725
+ url: "/api/artifacts",
2726
+ ...options,
2727
+ })
2728
+
2729
+ /**
2730
+ * Create an artifact
2731
+ *
2732
+ * Creates an artifact owned by the caller, with its first version. Store each file with POST /api/files first.
2733
+ */
2734
+ export const createArtifact = <ThrowOnError extends boolean = false>(
2735
+ options: Options<CreateArtifactData, ThrowOnError>
2736
+ ) =>
2737
+ (options.client ?? client).post<CreateArtifactResponses, CreateArtifactErrors, ThrowOnError>({
2738
+ security: [
2739
+ { name: "x-sixb-csrf", type: "apiKey" },
2740
+ { scheme: "bearer", type: "http" },
2741
+ { scheme: "bearer", type: "http" },
2742
+ ],
2743
+ url: "/api/artifacts",
2744
+ ...options,
2745
+ headers: {
2746
+ "Content-Type": "application/json",
2747
+ ...options.headers,
2748
+ },
2749
+ })
2750
+
2751
+ /**
2752
+ * Delete an artifact
2753
+ *
2754
+ * Deletes the artifact with every version.
2755
+ */
2756
+ export const deleteArtifact = <ThrowOnError extends boolean = false>(
2757
+ options: Options<DeleteArtifactData, ThrowOnError>
2758
+ ) =>
2759
+ (options.client ?? client).delete<DeleteArtifactResponses, DeleteArtifactErrors, ThrowOnError>({
2760
+ security: [
2761
+ { name: "x-sixb-csrf", type: "apiKey" },
2762
+ { scheme: "bearer", type: "http" },
2763
+ { scheme: "bearer", type: "http" },
2764
+ ],
2765
+ url: "/api/artifacts/{artifactId}",
2766
+ ...options,
2767
+ })
2768
+
2769
+ /**
2770
+ * Get an artifact and its versions
2771
+ */
2772
+ export const getArtifact = <ThrowOnError extends boolean = false>(
2773
+ options: Options<GetArtifactData, ThrowOnError>
2774
+ ) =>
2775
+ (options.client ?? client).get<GetArtifactResponses, GetArtifactErrors, ThrowOnError>({
2776
+ security: [
2777
+ { scheme: "bearer", type: "http" },
2778
+ { scheme: "bearer", type: "http" },
2779
+ ],
2780
+ url: "/api/artifacts/{artifactId}",
2781
+ ...options,
2782
+ })
2783
+
2784
+ /**
2785
+ * Publish an artifact's next version
2786
+ *
2787
+ * The kind must be the artifact's. The new version becomes the latest.
2788
+ */
2789
+ export const publishArtifactVersion = <ThrowOnError extends boolean = false>(
2790
+ options: Options<PublishArtifactVersionData, ThrowOnError>
2791
+ ) =>
2792
+ (options.client ?? client).post<
2793
+ PublishArtifactVersionResponses,
2794
+ PublishArtifactVersionErrors,
2795
+ ThrowOnError
2796
+ >({
2797
+ security: [
2798
+ { name: "x-sixb-csrf", type: "apiKey" },
2799
+ { scheme: "bearer", type: "http" },
2800
+ { scheme: "bearer", type: "http" },
2801
+ ],
2802
+ url: "/api/artifacts/{artifactId}/versions",
2803
+ ...options,
2804
+ headers: {
2805
+ "Content-Type": "application/json",
2806
+ ...options.headers,
2807
+ },
2808
+ })
2809
+
2810
+ /**
2811
+ * Open a deck's version in a frame
2812
+ *
2813
+ * A short-lived path that serves a slides version's files to a sandboxed frame. It expires within an hour. Any other kind is refused with 409 artifact_kind_mismatch.
2814
+ */
2815
+ export const createArtifactFrame = <ThrowOnError extends boolean = false>(
2816
+ options: Options<CreateArtifactFrameData, ThrowOnError>
2817
+ ) =>
2818
+ (options.client ?? client).post<
2819
+ CreateArtifactFrameResponses,
2820
+ CreateArtifactFrameErrors,
2821
+ ThrowOnError
2822
+ >({
2823
+ security: [
2824
+ { name: "x-sixb-csrf", type: "apiKey" },
2825
+ { scheme: "bearer", type: "http" },
2826
+ { scheme: "bearer", type: "http" },
2827
+ ],
2828
+ url: "/api/artifacts/{artifactId}/versions/{version}/frame",
2829
+ ...options,
2830
+ })
2831
+
2832
+ /**
2833
+ * Get an artifact version
2834
+ *
2835
+ * Its files, outline, and references. Use "latest" for the newest version.
2836
+ */
2837
+ export const getArtifactVersion = <ThrowOnError extends boolean = false>(
2838
+ options: Options<GetArtifactVersionData, ThrowOnError>
2839
+ ) =>
2840
+ (options.client ?? client).get<
2841
+ GetArtifactVersionResponses,
2842
+ GetArtifactVersionErrors,
2843
+ ThrowOnError
2844
+ >({
2845
+ security: [
2846
+ { scheme: "bearer", type: "http" },
2847
+ { scheme: "bearer", type: "http" },
2848
+ ],
2849
+ url: "/api/artifacts/{artifactId}/versions/{version}",
2850
+ ...options,
2851
+ })
2852
+
2853
+ /**
2854
+ * Get a file of an artifact version
2855
+ */
2856
+ export const getArtifactFileContent = <ThrowOnError extends boolean = false>(
2857
+ options: Options<GetArtifactFileContentData, ThrowOnError>
2858
+ ) =>
2859
+ (options.client ?? client).get<
2860
+ GetArtifactFileContentResponses,
2861
+ GetArtifactFileContentErrors,
2862
+ ThrowOnError
2863
+ >({
2864
+ security: [
2865
+ { scheme: "bearer", type: "http" },
2866
+ { scheme: "bearer", type: "http" },
2867
+ ],
2868
+ url: "/api/artifacts/{artifactId}/versions/{version}/content",
2869
+ ...options,
2870
+ })
2871
+
2872
+ /**
2873
+ * Head a file of an artifact version
2874
+ */
2875
+ export const headArtifactFileContent = <ThrowOnError extends boolean = false>(
2876
+ options: Options<HeadArtifactFileContentData, ThrowOnError>
2877
+ ) =>
2878
+ (options.client ?? client).head<
2879
+ HeadArtifactFileContentResponses,
2880
+ HeadArtifactFileContentErrors,
2881
+ ThrowOnError
2882
+ >({
2883
+ security: [
2884
+ { scheme: "bearer", type: "http" },
2885
+ { scheme: "bearer", type: "http" },
2886
+ ],
2887
+ url: "/api/artifacts/{artifactId}/versions/{version}/content",
2888
+ ...options,
2889
+ })
2890
+
2661
2891
  /**
2662
2892
  * List the project model catalog
2663
2893
  */
@@ -2825,6 +3055,165 @@ export const listLogs = <ThrowOnError extends boolean = false>(
2825
3055
  ...options,
2826
3056
  })
2827
3057
 
3058
+ /**
3059
+ * Read whether this browser session records activity
3060
+ *
3061
+ * A browser or shared-link session only; a native client's session gets 403.
3062
+ */
3063
+ export const getActivityCaptureConfig = <ThrowOnError extends boolean = false>(
3064
+ options?: Options<GetActivityCaptureConfigData, ThrowOnError>
3065
+ ) =>
3066
+ (options?.client ?? client).get<
3067
+ GetActivityCaptureConfigResponses,
3068
+ GetActivityCaptureConfigErrors,
3069
+ ThrowOnError
3070
+ >({
3071
+ security: [
3072
+ { scheme: "bearer", type: "http" },
3073
+ { name: "x-sixb-share-grant", type: "apiKey" },
3074
+ ],
3075
+ url: "/api/activity/capture-config",
3076
+ ...options,
3077
+ })
3078
+
3079
+ /**
3080
+ * Record page views, activity and interactions for this browser session
3081
+ *
3082
+ * A browser or shared-link session only; a native client's session gets 403. The visit belongs to the calling session.
3083
+ */
3084
+ export const captureActivity = <ThrowOnError extends boolean = false>(
3085
+ options: Options<CaptureActivityData, ThrowOnError>
3086
+ ) =>
3087
+ (options.client ?? client).post<CaptureActivityResponses, CaptureActivityErrors, ThrowOnError>({
3088
+ security: [
3089
+ { name: "x-sixb-csrf", type: "apiKey" },
3090
+ { scheme: "bearer", type: "http" },
3091
+ { name: "x-sixb-share-grant", type: "apiKey" },
3092
+ ],
3093
+ url: "/api/activity/events",
3094
+ ...options,
3095
+ headers: {
3096
+ "Content-Type": "application/json",
3097
+ ...options.headers,
3098
+ },
3099
+ })
3100
+
3101
+ /**
3102
+ * List the visits active in a period
3103
+ */
3104
+ export const listActivityVisits = <ThrowOnError extends boolean = false>(
3105
+ options: Options<ListActivityVisitsData, ThrowOnError>
3106
+ ) =>
3107
+ (options.client ?? client).get<
3108
+ ListActivityVisitsResponses,
3109
+ ListActivityVisitsErrors,
3110
+ ThrowOnError
3111
+ >({
3112
+ security: [
3113
+ { scheme: "bearer", type: "http" },
3114
+ { scheme: "bearer", type: "http" },
3115
+ ],
3116
+ url: "/api/activity/visits",
3117
+ ...options,
3118
+ })
3119
+
3120
+ /**
3121
+ * List the signed-in users active in a period
3122
+ */
3123
+ export const listActivityUsers = <ThrowOnError extends boolean = false>(
3124
+ options: Options<ListActivityUsersData, ThrowOnError>
3125
+ ) =>
3126
+ (options.client ?? client).get<ListActivityUsersResponses, ListActivityUsersErrors, ThrowOnError>(
3127
+ {
3128
+ security: [
3129
+ { scheme: "bearer", type: "http" },
3130
+ { scheme: "bearer", type: "http" },
3131
+ ],
3132
+ url: "/api/activity/users",
3133
+ ...options,
3134
+ }
3135
+ )
3136
+
3137
+ /**
3138
+ * Count the users, visits and page views of a period
3139
+ */
3140
+ export const getActivitySummary = <ThrowOnError extends boolean = false>(
3141
+ options: Options<GetActivitySummaryData, ThrowOnError>
3142
+ ) =>
3143
+ (options.client ?? client).get<
3144
+ GetActivitySummaryResponses,
3145
+ GetActivitySummaryErrors,
3146
+ ThrowOnError
3147
+ >({
3148
+ security: [
3149
+ { scheme: "bearer", type: "http" },
3150
+ { scheme: "bearer", type: "http" },
3151
+ ],
3152
+ url: "/api/activity/summary",
3153
+ ...options,
3154
+ })
3155
+
3156
+ /**
3157
+ * Read a user's active days in a UTC year
3158
+ */
3159
+ export const getActivityCalendar = <ThrowOnError extends boolean = false>(
3160
+ options: Options<GetActivityCalendarData, ThrowOnError>
3161
+ ) =>
3162
+ (options.client ?? client).get<
3163
+ GetActivityCalendarResponses,
3164
+ GetActivityCalendarErrors,
3165
+ ThrowOnError
3166
+ >({
3167
+ security: [
3168
+ { scheme: "bearer", type: "http" },
3169
+ { scheme: "bearer", type: "http" },
3170
+ ],
3171
+ url: "/api/activity/calendar",
3172
+ ...options,
3173
+ })
3174
+
3175
+ /**
3176
+ * Read what one visit did
3177
+ *
3178
+ * 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.
3179
+ */
3180
+ export const getActivityVisitTimeline = <ThrowOnError extends boolean = false>(
3181
+ options: Options<GetActivityVisitTimelineData, ThrowOnError>
3182
+ ) =>
3183
+ (options.client ?? client).get<
3184
+ GetActivityVisitTimelineResponses,
3185
+ GetActivityVisitTimelineErrors,
3186
+ ThrowOnError
3187
+ >({
3188
+ security: [
3189
+ { scheme: "bearer", type: "http" },
3190
+ { scheme: "bearer", type: "http" },
3191
+ ],
3192
+ url: "/api/activity/visits/{visitId}/timeline",
3193
+ ...options,
3194
+ })
3195
+
3196
+ /**
3197
+ * List a user's sign-ins with the visits each opened
3198
+ *
3199
+ * Newest first, revoked and expired sessions included.
3200
+ */
3201
+ export const listActivityConnections = <ThrowOnError extends boolean = false>(
3202
+ options: Options<ListActivityConnectionsData, ThrowOnError>
3203
+ ) =>
3204
+ (options.client ?? client).get<
3205
+ ListActivityConnectionsResponses,
3206
+ ListActivityConnectionsErrors,
3207
+ ThrowOnError
3208
+ >({
3209
+ security: [
3210
+ { scheme: "bearer", type: "http" },
3211
+ { scheme: "bearer", type: "http" },
3212
+ ],
3213
+ url: "/api/activity/connections",
3214
+ ...options,
3215
+ })
3216
+
2828
3217
  /**
2829
3218
  * List all projection definitions
2830
3219
  */