@connectedxm/admin 7.0.1 → 7.0.5
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/index.cjs +185 -23
- package/dist/index.d.cts +45 -14
- package/dist/index.d.ts +45 -14
- package/dist/index.js +172 -23
- package/openapi.json +329 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -622,8 +622,14 @@ var VideoSource = /* @__PURE__ */ ((VideoSource2) => {
|
|
|
622
622
|
VideoSource2["admin"] = "admin";
|
|
623
623
|
VideoSource2["activity"] = "activity";
|
|
624
624
|
VideoSource2["content"] = "content";
|
|
625
|
+
VideoSource2["thread"] = "thread";
|
|
625
626
|
return VideoSource2;
|
|
626
627
|
})(VideoSource || {});
|
|
628
|
+
var ThreadType = /* @__PURE__ */ ((ThreadType2) => {
|
|
629
|
+
ThreadType2["direct"] = "direct";
|
|
630
|
+
ThreadType2["default"] = "default";
|
|
631
|
+
return ThreadType2;
|
|
632
|
+
})(ThreadType || {});
|
|
627
633
|
var ThreadMessageType = /* @__PURE__ */ ((ThreadMessageType2) => {
|
|
628
634
|
ThreadMessageType2["user"] = "user";
|
|
629
635
|
ThreadMessageType2["bot"] = "bot";
|
|
@@ -19409,7 +19415,7 @@ var useGetVideos = (source, params = {}, options = {}) => {
|
|
|
19409
19415
|
|
|
19410
19416
|
// src/queries/storage/videos/useGetVideo.ts
|
|
19411
19417
|
var VIDEO_QUERY_KEY = (videoId) => [
|
|
19412
|
-
...VIDEOS_QUERY_KEY(
|
|
19418
|
+
...VIDEOS_QUERY_KEY(),
|
|
19413
19419
|
videoId
|
|
19414
19420
|
];
|
|
19415
19421
|
var SET_VIDEO_QUERY_DATA = (client, keyParams, response) => {
|
|
@@ -19475,7 +19481,7 @@ var useGetVideoCaptions = (videoId = "", params = {}, options = {}) => {
|
|
|
19475
19481
|
|
|
19476
19482
|
// src/queries/storage/videos/useGetVideoDownloadStatus.ts
|
|
19477
19483
|
var VIDEO_DOWNLOAD_STATUS_QUERY_KEY = (videoId) => [
|
|
19478
|
-
...VIDEOS_QUERY_KEY(
|
|
19484
|
+
...VIDEOS_QUERY_KEY(),
|
|
19479
19485
|
videoId,
|
|
19480
19486
|
"download-status"
|
|
19481
19487
|
];
|
|
@@ -21119,8 +21125,10 @@ var useGetSurveySessions = (surveyId = "", params = {}, options = {}) => {
|
|
|
21119
21125
|
};
|
|
21120
21126
|
|
|
21121
21127
|
// src/queries/threads/useGetThreads.ts
|
|
21122
|
-
var THREADS_QUERY_KEY = () => {
|
|
21123
|
-
|
|
21128
|
+
var THREADS_QUERY_KEY = (type) => {
|
|
21129
|
+
const keys = ["THREADS"];
|
|
21130
|
+
if (type) keys.push(type);
|
|
21131
|
+
return keys;
|
|
21124
21132
|
};
|
|
21125
21133
|
var SET_THREADS_QUERY_DATA = (client, keyParams, response) => {
|
|
21126
21134
|
client.setQueryData(THREADS_QUERY_KEY(...keyParams), response);
|
|
@@ -21130,6 +21138,7 @@ var GetThreads = async ({
|
|
|
21130
21138
|
pageSize,
|
|
21131
21139
|
orderBy,
|
|
21132
21140
|
search,
|
|
21141
|
+
type,
|
|
21133
21142
|
adminApiParams
|
|
21134
21143
|
}) => {
|
|
21135
21144
|
const adminApi = await GetAdminAPI(adminApiParams);
|
|
@@ -21138,15 +21147,16 @@ var GetThreads = async ({
|
|
|
21138
21147
|
page: pageParam || void 0,
|
|
21139
21148
|
pageSize: pageSize || void 0,
|
|
21140
21149
|
orderBy: orderBy || void 0,
|
|
21141
|
-
search: search || void 0
|
|
21150
|
+
search: search || void 0,
|
|
21151
|
+
type: type || void 0
|
|
21142
21152
|
}
|
|
21143
21153
|
});
|
|
21144
21154
|
return data;
|
|
21145
21155
|
};
|
|
21146
|
-
var useGetThreads = (params = {}, options = {}) => {
|
|
21156
|
+
var useGetThreads = (type, params = {}, options = {}) => {
|
|
21147
21157
|
return useConnectedInfiniteQuery(
|
|
21148
|
-
THREADS_QUERY_KEY(),
|
|
21149
|
-
(params2) => GetThreads({ ...params2 }),
|
|
21158
|
+
THREADS_QUERY_KEY(type),
|
|
21159
|
+
(params2) => GetThreads({ ...params2, type }),
|
|
21150
21160
|
params,
|
|
21151
21161
|
options
|
|
21152
21162
|
);
|
|
@@ -21526,6 +21536,132 @@ var useGetThreadMessageVideos = (threadId, messageId, params = {}, options = {})
|
|
|
21526
21536
|
);
|
|
21527
21537
|
};
|
|
21528
21538
|
|
|
21539
|
+
// src/queries/threads/storage/useGetThreadStorageFiles.ts
|
|
21540
|
+
var THREAD_STORAGE_FILES_QUERY_KEY = (threadId) => {
|
|
21541
|
+
return [...THREAD_QUERY_KEY(threadId), "STORAGE", "FILES"];
|
|
21542
|
+
};
|
|
21543
|
+
var SET_THREAD_STORAGE_FILES_QUERY_DATA = (client, keyParams, response, options) => {
|
|
21544
|
+
client.setQueryData(
|
|
21545
|
+
THREAD_STORAGE_FILES_QUERY_KEY(...keyParams),
|
|
21546
|
+
response,
|
|
21547
|
+
options
|
|
21548
|
+
);
|
|
21549
|
+
};
|
|
21550
|
+
var GetThreadStorageFiles = async ({
|
|
21551
|
+
threadId,
|
|
21552
|
+
pageParam,
|
|
21553
|
+
pageSize,
|
|
21554
|
+
orderBy,
|
|
21555
|
+
search,
|
|
21556
|
+
adminApiParams
|
|
21557
|
+
}) => {
|
|
21558
|
+
const adminApi = await GetAdminAPI(adminApiParams);
|
|
21559
|
+
const { data } = await adminApi.get(`/threads/${threadId}/storage/files`, {
|
|
21560
|
+
params: {
|
|
21561
|
+
page: pageParam || void 0,
|
|
21562
|
+
pageSize: pageSize || void 0,
|
|
21563
|
+
orderBy: orderBy || void 0,
|
|
21564
|
+
search: search || void 0
|
|
21565
|
+
}
|
|
21566
|
+
});
|
|
21567
|
+
return data;
|
|
21568
|
+
};
|
|
21569
|
+
var useGetThreadStorageFiles = (threadId, params = {}, options = {}) => {
|
|
21570
|
+
return useConnectedInfiniteQuery(
|
|
21571
|
+
THREAD_STORAGE_FILES_QUERY_KEY(threadId),
|
|
21572
|
+
(params2) => GetThreadStorageFiles({ threadId, ...params2 }),
|
|
21573
|
+
params,
|
|
21574
|
+
{
|
|
21575
|
+
...options,
|
|
21576
|
+
enabled: !!threadId && (options?.enabled ?? true)
|
|
21577
|
+
}
|
|
21578
|
+
);
|
|
21579
|
+
};
|
|
21580
|
+
|
|
21581
|
+
// src/queries/threads/storage/useGetThreadStorageImages.ts
|
|
21582
|
+
var THREAD_STORAGE_IMAGES_QUERY_KEY = (threadId) => {
|
|
21583
|
+
return [...THREAD_QUERY_KEY(threadId), "STORAGE", "IMAGES"];
|
|
21584
|
+
};
|
|
21585
|
+
var SET_THREAD_STORAGE_IMAGES_QUERY_DATA = (client, keyParams, response, options) => {
|
|
21586
|
+
client.setQueryData(
|
|
21587
|
+
THREAD_STORAGE_IMAGES_QUERY_KEY(...keyParams),
|
|
21588
|
+
response,
|
|
21589
|
+
options
|
|
21590
|
+
);
|
|
21591
|
+
};
|
|
21592
|
+
var GetThreadStorageImages = async ({
|
|
21593
|
+
threadId,
|
|
21594
|
+
pageParam,
|
|
21595
|
+
pageSize,
|
|
21596
|
+
orderBy,
|
|
21597
|
+
search,
|
|
21598
|
+
adminApiParams
|
|
21599
|
+
}) => {
|
|
21600
|
+
const adminApi = await GetAdminAPI(adminApiParams);
|
|
21601
|
+
const { data } = await adminApi.get(`/threads/${threadId}/storage/images`, {
|
|
21602
|
+
params: {
|
|
21603
|
+
page: pageParam || void 0,
|
|
21604
|
+
pageSize: pageSize || void 0,
|
|
21605
|
+
orderBy: orderBy || void 0,
|
|
21606
|
+
search: search || void 0
|
|
21607
|
+
}
|
|
21608
|
+
});
|
|
21609
|
+
return data;
|
|
21610
|
+
};
|
|
21611
|
+
var useGetThreadStorageImages = (threadId, params = {}, options = {}) => {
|
|
21612
|
+
return useConnectedInfiniteQuery(
|
|
21613
|
+
THREAD_STORAGE_IMAGES_QUERY_KEY(threadId),
|
|
21614
|
+
(params2) => GetThreadStorageImages({ threadId, ...params2 }),
|
|
21615
|
+
params,
|
|
21616
|
+
{
|
|
21617
|
+
...options,
|
|
21618
|
+
enabled: !!threadId && (options?.enabled ?? true)
|
|
21619
|
+
}
|
|
21620
|
+
);
|
|
21621
|
+
};
|
|
21622
|
+
|
|
21623
|
+
// src/queries/threads/storage/useGetThreadStorageVideos.ts
|
|
21624
|
+
var THREAD_STORAGE_VIDEOS_QUERY_KEY = (threadId) => {
|
|
21625
|
+
return [...THREAD_QUERY_KEY(threadId), "STORAGE", "VIDEOS"];
|
|
21626
|
+
};
|
|
21627
|
+
var SET_THREAD_STORAGE_VIDEOS_QUERY_DATA = (client, keyParams, response, options) => {
|
|
21628
|
+
client.setQueryData(
|
|
21629
|
+
THREAD_STORAGE_VIDEOS_QUERY_KEY(...keyParams),
|
|
21630
|
+
response,
|
|
21631
|
+
options
|
|
21632
|
+
);
|
|
21633
|
+
};
|
|
21634
|
+
var GetThreadStorageVideos = async ({
|
|
21635
|
+
threadId,
|
|
21636
|
+
pageParam,
|
|
21637
|
+
pageSize,
|
|
21638
|
+
orderBy,
|
|
21639
|
+
search,
|
|
21640
|
+
adminApiParams
|
|
21641
|
+
}) => {
|
|
21642
|
+
const adminApi = await GetAdminAPI(adminApiParams);
|
|
21643
|
+
const { data } = await adminApi.get(`/threads/${threadId}/storage/videos`, {
|
|
21644
|
+
params: {
|
|
21645
|
+
page: pageParam || void 0,
|
|
21646
|
+
pageSize: pageSize || void 0,
|
|
21647
|
+
orderBy: orderBy || void 0,
|
|
21648
|
+
search: search || void 0
|
|
21649
|
+
}
|
|
21650
|
+
});
|
|
21651
|
+
return data;
|
|
21652
|
+
};
|
|
21653
|
+
var useGetThreadStorageVideos = (threadId, params = {}, options = {}) => {
|
|
21654
|
+
return useConnectedInfiniteQuery(
|
|
21655
|
+
THREAD_STORAGE_VIDEOS_QUERY_KEY(threadId),
|
|
21656
|
+
(params2) => GetThreadStorageVideos({ threadId, ...params2 }),
|
|
21657
|
+
params,
|
|
21658
|
+
{
|
|
21659
|
+
...options,
|
|
21660
|
+
enabled: !!threadId && (options?.enabled ?? true)
|
|
21661
|
+
}
|
|
21662
|
+
);
|
|
21663
|
+
};
|
|
21664
|
+
|
|
21529
21665
|
// src/queries/tiers/useGetTiers.ts
|
|
21530
21666
|
var TIERS_QUERY_KEY = (type) => {
|
|
21531
21667
|
const keys = ["TIERS"];
|
|
@@ -24612,15 +24748,18 @@ var useAddEventActivationSession = (options = {}) => {
|
|
|
24612
24748
|
return useConnectedMutation(AddEventActivationSession, options);
|
|
24613
24749
|
};
|
|
24614
24750
|
|
|
24615
|
-
// src/mutations/events/activations/sessions/
|
|
24616
|
-
var
|
|
24751
|
+
// src/mutations/events/activations/sessions/useRemoveEventActivationSession.ts
|
|
24752
|
+
var RemoveEventActivationSession = async ({
|
|
24617
24753
|
eventId,
|
|
24618
24754
|
activationId,
|
|
24755
|
+
sessionId,
|
|
24619
24756
|
adminApiParams,
|
|
24620
24757
|
queryClient
|
|
24621
24758
|
}) => {
|
|
24622
24759
|
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
24623
|
-
const { data } = await connectedXM.delete(
|
|
24760
|
+
const { data } = await connectedXM.delete(
|
|
24761
|
+
`/events/${eventId}/activations/${activationId}/sessions/${sessionId}`
|
|
24762
|
+
);
|
|
24624
24763
|
if (queryClient && data.status === "ok") {
|
|
24625
24764
|
queryClient.invalidateQueries({
|
|
24626
24765
|
queryKey: EVENT_ACTIVATION_SESSIONS_QUERY_KEY(eventId, activationId)
|
|
@@ -24629,22 +24768,19 @@ var RemoveEventActivationSessions = async ({
|
|
|
24629
24768
|
}
|
|
24630
24769
|
return data;
|
|
24631
24770
|
};
|
|
24632
|
-
var
|
|
24633
|
-
return useConnectedMutation(
|
|
24771
|
+
var useRemoveEventActivationSession = (options = {}) => {
|
|
24772
|
+
return useConnectedMutation(RemoveEventActivationSession, options);
|
|
24634
24773
|
};
|
|
24635
24774
|
|
|
24636
|
-
// src/mutations/events/activations/sessions/
|
|
24637
|
-
var
|
|
24775
|
+
// src/mutations/events/activations/sessions/useRemoveEventActivationSessions.ts
|
|
24776
|
+
var RemoveEventActivationSessions = async ({
|
|
24638
24777
|
eventId,
|
|
24639
24778
|
activationId,
|
|
24640
|
-
sessionId,
|
|
24641
24779
|
adminApiParams,
|
|
24642
24780
|
queryClient
|
|
24643
24781
|
}) => {
|
|
24644
24782
|
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
24645
|
-
const { data } = await connectedXM.delete(
|
|
24646
|
-
`/events/${eventId}/activations/${activationId}/sessions/${sessionId}`
|
|
24647
|
-
);
|
|
24783
|
+
const { data } = await connectedXM.delete(`/events/${eventId}/activations/${activationId}/sessions`);
|
|
24648
24784
|
if (queryClient && data.status === "ok") {
|
|
24649
24785
|
queryClient.invalidateQueries({
|
|
24650
24786
|
queryKey: EVENT_ACTIVATION_SESSIONS_QUERY_KEY(eventId, activationId)
|
|
@@ -24653,8 +24789,8 @@ var RemoveEventActivationSession = async ({
|
|
|
24653
24789
|
}
|
|
24654
24790
|
return data;
|
|
24655
24791
|
};
|
|
24656
|
-
var
|
|
24657
|
-
return useConnectedMutation(
|
|
24792
|
+
var useRemoveEventActivationSessions = (options = {}) => {
|
|
24793
|
+
return useConnectedMutation(RemoveEventActivationSessions, options);
|
|
24658
24794
|
};
|
|
24659
24795
|
|
|
24660
24796
|
// src/mutations/events/activations/translations/useDeleteEventActivationTranslation.ts
|
|
@@ -37591,7 +37727,7 @@ var DeleteManyVideos = async ({
|
|
|
37591
37727
|
videos
|
|
37592
37728
|
);
|
|
37593
37729
|
if (queryClient && data.status === "ok") {
|
|
37594
|
-
queryClient.invalidateQueries({ queryKey: VIDEOS_QUERY_KEY(
|
|
37730
|
+
queryClient.invalidateQueries({ queryKey: VIDEOS_QUERY_KEY() });
|
|
37595
37731
|
}
|
|
37596
37732
|
return data;
|
|
37597
37733
|
};
|
|
@@ -37630,7 +37766,7 @@ var InitiateVideoDownload = async ({
|
|
|
37630
37766
|
if (queryClient && data.status === "ok") {
|
|
37631
37767
|
queryClient.invalidateQueries({ queryKey: VIDEOS_QUERY_KEY() });
|
|
37632
37768
|
if (data.data?.default?.url) {
|
|
37633
|
-
queryClient.invalidateQueries({ queryKey: VIDEOS_QUERY_KEY(
|
|
37769
|
+
queryClient.invalidateQueries({ queryKey: VIDEOS_QUERY_KEY() });
|
|
37634
37770
|
}
|
|
37635
37771
|
}
|
|
37636
37772
|
return data;
|
|
@@ -40841,6 +40977,9 @@ export {
|
|
|
40841
40977
|
GetThreadMessageVideos,
|
|
40842
40978
|
GetThreadMessages,
|
|
40843
40979
|
GetThreadMessagesPoll,
|
|
40980
|
+
GetThreadStorageFiles,
|
|
40981
|
+
GetThreadStorageImages,
|
|
40982
|
+
GetThreadStorageVideos,
|
|
40844
40983
|
GetThreads,
|
|
40845
40984
|
GetTier,
|
|
40846
40985
|
GetTierAccounts,
|
|
@@ -41594,6 +41733,9 @@ export {
|
|
|
41594
41733
|
SET_THREAD_MESSAGE_REACTIONS_QUERY_DATA,
|
|
41595
41734
|
SET_THREAD_MESSAGE_VIDEOS_QUERY_DATA,
|
|
41596
41735
|
SET_THREAD_QUERY_DATA,
|
|
41736
|
+
SET_THREAD_STORAGE_FILES_QUERY_DATA,
|
|
41737
|
+
SET_THREAD_STORAGE_IMAGES_QUERY_DATA,
|
|
41738
|
+
SET_THREAD_STORAGE_VIDEOS_QUERY_DATA,
|
|
41597
41739
|
SET_TIERS_QUERY_DATA,
|
|
41598
41740
|
SET_TIER_ACCOUNTS_QUERY_DATA,
|
|
41599
41741
|
SET_TIER_IMPORT_QUERY_DATA,
|
|
@@ -41679,6 +41821,9 @@ export {
|
|
|
41679
41821
|
THREAD_MESSAGE_REACTIONS_QUERY_KEY,
|
|
41680
41822
|
THREAD_MESSAGE_VIDEOS_QUERY_KEY,
|
|
41681
41823
|
THREAD_QUERY_KEY,
|
|
41824
|
+
THREAD_STORAGE_FILES_QUERY_KEY,
|
|
41825
|
+
THREAD_STORAGE_IMAGES_QUERY_KEY,
|
|
41826
|
+
THREAD_STORAGE_VIDEOS_QUERY_KEY,
|
|
41682
41827
|
TIERS_QUERY_KEY,
|
|
41683
41828
|
TIER_ACCOUNTS_QUERY_KEY,
|
|
41684
41829
|
TIER_IMPORTS_QUERY_KEY,
|
|
@@ -41690,6 +41835,7 @@ export {
|
|
|
41690
41835
|
TaxLocationType,
|
|
41691
41836
|
TestTaxIntegration,
|
|
41692
41837
|
ThreadMessageType,
|
|
41838
|
+
ThreadType,
|
|
41693
41839
|
ToggleOrganizationPaymentIntegration,
|
|
41694
41840
|
ToggleTaxIntegration,
|
|
41695
41841
|
TransferEventPass,
|
|
@@ -42785,6 +42931,9 @@ export {
|
|
|
42785
42931
|
useGetThreadMessageVideos,
|
|
42786
42932
|
useGetThreadMessages,
|
|
42787
42933
|
useGetThreadMessagesPoll,
|
|
42934
|
+
useGetThreadStorageFiles,
|
|
42935
|
+
useGetThreadStorageImages,
|
|
42936
|
+
useGetThreadStorageVideos,
|
|
42788
42937
|
useGetThreads,
|
|
42789
42938
|
useGetTier,
|
|
42790
42939
|
useGetTierAccounts,
|
package/openapi.json
CHANGED
|
@@ -780,6 +780,10 @@
|
|
|
780
780
|
"name": "Threads::Messages::Videos",
|
|
781
781
|
"description": "Attach and manage videos within thread messages, sharing video content in conversation threads"
|
|
782
782
|
},
|
|
783
|
+
{
|
|
784
|
+
"name": "Threads::Storage",
|
|
785
|
+
"description": "List images, videos, and files shared across all messages in a thread, surfacing every attachment in one consolidated view"
|
|
786
|
+
},
|
|
783
787
|
{
|
|
784
788
|
"name": "Tiers",
|
|
785
789
|
"description": "Operations for managing membership tiers"
|
|
@@ -88689,6 +88693,15 @@
|
|
|
88689
88693
|
"summary": "Get Threads",
|
|
88690
88694
|
"description": "Get Threads endpoint",
|
|
88691
88695
|
"parameters": [
|
|
88696
|
+
{
|
|
88697
|
+
"in": "query",
|
|
88698
|
+
"name": "type",
|
|
88699
|
+
"schema": {
|
|
88700
|
+
"$ref": "#/components/schemas/ThreadType"
|
|
88701
|
+
},
|
|
88702
|
+
"description": "Filter by type",
|
|
88703
|
+
"required": false
|
|
88704
|
+
},
|
|
88692
88705
|
{
|
|
88693
88706
|
"in": "query",
|
|
88694
88707
|
"name": "page",
|
|
@@ -90426,6 +90439,309 @@
|
|
|
90426
90439
|
]
|
|
90427
90440
|
}
|
|
90428
90441
|
},
|
|
90442
|
+
"/threads/{threadId}/storage/files": {
|
|
90443
|
+
"get": {
|
|
90444
|
+
"operationId": "GetThreadStorageFiles",
|
|
90445
|
+
"summary": "Get Thread Storage Files",
|
|
90446
|
+
"description": "Get Thread Storage Files endpoint",
|
|
90447
|
+
"parameters": [
|
|
90448
|
+
{
|
|
90449
|
+
"in": "path",
|
|
90450
|
+
"name": "threadId",
|
|
90451
|
+
"schema": {
|
|
90452
|
+
"type": "string"
|
|
90453
|
+
},
|
|
90454
|
+
"description": "The thread identifier",
|
|
90455
|
+
"required": true
|
|
90456
|
+
},
|
|
90457
|
+
{
|
|
90458
|
+
"in": "query",
|
|
90459
|
+
"name": "page",
|
|
90460
|
+
"schema": {
|
|
90461
|
+
"type": "integer",
|
|
90462
|
+
"minimum": 1,
|
|
90463
|
+
"default": 1
|
|
90464
|
+
},
|
|
90465
|
+
"description": "Page number",
|
|
90466
|
+
"required": false
|
|
90467
|
+
},
|
|
90468
|
+
{
|
|
90469
|
+
"in": "query",
|
|
90470
|
+
"name": "pageSize",
|
|
90471
|
+
"schema": {
|
|
90472
|
+
"type": "integer",
|
|
90473
|
+
"minimum": 1,
|
|
90474
|
+
"maximum": 100,
|
|
90475
|
+
"default": 25
|
|
90476
|
+
},
|
|
90477
|
+
"description": "Number of items per page",
|
|
90478
|
+
"required": false
|
|
90479
|
+
},
|
|
90480
|
+
{
|
|
90481
|
+
"in": "query",
|
|
90482
|
+
"name": "orderBy",
|
|
90483
|
+
"schema": {
|
|
90484
|
+
"type": "string"
|
|
90485
|
+
},
|
|
90486
|
+
"description": "Field to order by",
|
|
90487
|
+
"required": false
|
|
90488
|
+
},
|
|
90489
|
+
{
|
|
90490
|
+
"in": "query",
|
|
90491
|
+
"name": "search",
|
|
90492
|
+
"schema": {
|
|
90493
|
+
"type": "string"
|
|
90494
|
+
},
|
|
90495
|
+
"description": "Search query",
|
|
90496
|
+
"required": false
|
|
90497
|
+
}
|
|
90498
|
+
],
|
|
90499
|
+
"responses": {
|
|
90500
|
+
"200": {
|
|
90501
|
+
"description": "Successful response",
|
|
90502
|
+
"content": {
|
|
90503
|
+
"application/json": {
|
|
90504
|
+
"schema": {
|
|
90505
|
+
"type": "object",
|
|
90506
|
+
"properties": {
|
|
90507
|
+
"status": {
|
|
90508
|
+
"type": "string",
|
|
90509
|
+
"enum": [
|
|
90510
|
+
"ok"
|
|
90511
|
+
]
|
|
90512
|
+
},
|
|
90513
|
+
"message": {
|
|
90514
|
+
"type": "string",
|
|
90515
|
+
"example": "Success message."
|
|
90516
|
+
},
|
|
90517
|
+
"data": {
|
|
90518
|
+
"type": "array",
|
|
90519
|
+
"items": {
|
|
90520
|
+
"$ref": "#/components/schemas/File"
|
|
90521
|
+
}
|
|
90522
|
+
},
|
|
90523
|
+
"count": {
|
|
90524
|
+
"type": "integer",
|
|
90525
|
+
"example": 100
|
|
90526
|
+
}
|
|
90527
|
+
},
|
|
90528
|
+
"required": [
|
|
90529
|
+
"status",
|
|
90530
|
+
"message",
|
|
90531
|
+
"data"
|
|
90532
|
+
]
|
|
90533
|
+
}
|
|
90534
|
+
}
|
|
90535
|
+
}
|
|
90536
|
+
}
|
|
90537
|
+
},
|
|
90538
|
+
"tags": [
|
|
90539
|
+
"Threads::Storage"
|
|
90540
|
+
]
|
|
90541
|
+
}
|
|
90542
|
+
},
|
|
90543
|
+
"/threads/{threadId}/storage/images": {
|
|
90544
|
+
"get": {
|
|
90545
|
+
"operationId": "GetThreadStorageImages",
|
|
90546
|
+
"summary": "Get Thread Storage Images",
|
|
90547
|
+
"description": "Get Thread Storage Images endpoint",
|
|
90548
|
+
"parameters": [
|
|
90549
|
+
{
|
|
90550
|
+
"in": "path",
|
|
90551
|
+
"name": "threadId",
|
|
90552
|
+
"schema": {
|
|
90553
|
+
"type": "string"
|
|
90554
|
+
},
|
|
90555
|
+
"description": "The thread identifier",
|
|
90556
|
+
"required": true
|
|
90557
|
+
},
|
|
90558
|
+
{
|
|
90559
|
+
"in": "query",
|
|
90560
|
+
"name": "page",
|
|
90561
|
+
"schema": {
|
|
90562
|
+
"type": "integer",
|
|
90563
|
+
"minimum": 1,
|
|
90564
|
+
"default": 1
|
|
90565
|
+
},
|
|
90566
|
+
"description": "Page number",
|
|
90567
|
+
"required": false
|
|
90568
|
+
},
|
|
90569
|
+
{
|
|
90570
|
+
"in": "query",
|
|
90571
|
+
"name": "pageSize",
|
|
90572
|
+
"schema": {
|
|
90573
|
+
"type": "integer",
|
|
90574
|
+
"minimum": 1,
|
|
90575
|
+
"maximum": 100,
|
|
90576
|
+
"default": 25
|
|
90577
|
+
},
|
|
90578
|
+
"description": "Number of items per page",
|
|
90579
|
+
"required": false
|
|
90580
|
+
},
|
|
90581
|
+
{
|
|
90582
|
+
"in": "query",
|
|
90583
|
+
"name": "orderBy",
|
|
90584
|
+
"schema": {
|
|
90585
|
+
"type": "string"
|
|
90586
|
+
},
|
|
90587
|
+
"description": "Field to order by",
|
|
90588
|
+
"required": false
|
|
90589
|
+
},
|
|
90590
|
+
{
|
|
90591
|
+
"in": "query",
|
|
90592
|
+
"name": "search",
|
|
90593
|
+
"schema": {
|
|
90594
|
+
"type": "string"
|
|
90595
|
+
},
|
|
90596
|
+
"description": "Search query",
|
|
90597
|
+
"required": false
|
|
90598
|
+
}
|
|
90599
|
+
],
|
|
90600
|
+
"responses": {
|
|
90601
|
+
"200": {
|
|
90602
|
+
"description": "Successful response",
|
|
90603
|
+
"content": {
|
|
90604
|
+
"application/json": {
|
|
90605
|
+
"schema": {
|
|
90606
|
+
"type": "object",
|
|
90607
|
+
"properties": {
|
|
90608
|
+
"status": {
|
|
90609
|
+
"type": "string",
|
|
90610
|
+
"enum": [
|
|
90611
|
+
"ok"
|
|
90612
|
+
]
|
|
90613
|
+
},
|
|
90614
|
+
"message": {
|
|
90615
|
+
"type": "string",
|
|
90616
|
+
"example": "Success message."
|
|
90617
|
+
},
|
|
90618
|
+
"data": {
|
|
90619
|
+
"type": "array",
|
|
90620
|
+
"items": {
|
|
90621
|
+
"$ref": "#/components/schemas/Image"
|
|
90622
|
+
}
|
|
90623
|
+
},
|
|
90624
|
+
"count": {
|
|
90625
|
+
"type": "integer",
|
|
90626
|
+
"example": 100
|
|
90627
|
+
}
|
|
90628
|
+
},
|
|
90629
|
+
"required": [
|
|
90630
|
+
"status",
|
|
90631
|
+
"message",
|
|
90632
|
+
"data"
|
|
90633
|
+
]
|
|
90634
|
+
}
|
|
90635
|
+
}
|
|
90636
|
+
}
|
|
90637
|
+
}
|
|
90638
|
+
},
|
|
90639
|
+
"tags": [
|
|
90640
|
+
"Threads::Storage"
|
|
90641
|
+
]
|
|
90642
|
+
}
|
|
90643
|
+
},
|
|
90644
|
+
"/threads/{threadId}/storage/videos": {
|
|
90645
|
+
"get": {
|
|
90646
|
+
"operationId": "GetThreadStorageVideos",
|
|
90647
|
+
"summary": "Get Thread Storage Videos",
|
|
90648
|
+
"description": "Get Thread Storage Videos endpoint",
|
|
90649
|
+
"parameters": [
|
|
90650
|
+
{
|
|
90651
|
+
"in": "path",
|
|
90652
|
+
"name": "threadId",
|
|
90653
|
+
"schema": {
|
|
90654
|
+
"type": "string"
|
|
90655
|
+
},
|
|
90656
|
+
"description": "The thread identifier",
|
|
90657
|
+
"required": true
|
|
90658
|
+
},
|
|
90659
|
+
{
|
|
90660
|
+
"in": "query",
|
|
90661
|
+
"name": "page",
|
|
90662
|
+
"schema": {
|
|
90663
|
+
"type": "integer",
|
|
90664
|
+
"minimum": 1,
|
|
90665
|
+
"default": 1
|
|
90666
|
+
},
|
|
90667
|
+
"description": "Page number",
|
|
90668
|
+
"required": false
|
|
90669
|
+
},
|
|
90670
|
+
{
|
|
90671
|
+
"in": "query",
|
|
90672
|
+
"name": "pageSize",
|
|
90673
|
+
"schema": {
|
|
90674
|
+
"type": "integer",
|
|
90675
|
+
"minimum": 1,
|
|
90676
|
+
"maximum": 100,
|
|
90677
|
+
"default": 25
|
|
90678
|
+
},
|
|
90679
|
+
"description": "Number of items per page",
|
|
90680
|
+
"required": false
|
|
90681
|
+
},
|
|
90682
|
+
{
|
|
90683
|
+
"in": "query",
|
|
90684
|
+
"name": "orderBy",
|
|
90685
|
+
"schema": {
|
|
90686
|
+
"type": "string"
|
|
90687
|
+
},
|
|
90688
|
+
"description": "Field to order by",
|
|
90689
|
+
"required": false
|
|
90690
|
+
},
|
|
90691
|
+
{
|
|
90692
|
+
"in": "query",
|
|
90693
|
+
"name": "search",
|
|
90694
|
+
"schema": {
|
|
90695
|
+
"type": "string"
|
|
90696
|
+
},
|
|
90697
|
+
"description": "Search query",
|
|
90698
|
+
"required": false
|
|
90699
|
+
}
|
|
90700
|
+
],
|
|
90701
|
+
"responses": {
|
|
90702
|
+
"200": {
|
|
90703
|
+
"description": "Successful response",
|
|
90704
|
+
"content": {
|
|
90705
|
+
"application/json": {
|
|
90706
|
+
"schema": {
|
|
90707
|
+
"type": "object",
|
|
90708
|
+
"properties": {
|
|
90709
|
+
"status": {
|
|
90710
|
+
"type": "string",
|
|
90711
|
+
"enum": [
|
|
90712
|
+
"ok"
|
|
90713
|
+
]
|
|
90714
|
+
},
|
|
90715
|
+
"message": {
|
|
90716
|
+
"type": "string",
|
|
90717
|
+
"example": "Success message."
|
|
90718
|
+
},
|
|
90719
|
+
"data": {
|
|
90720
|
+
"type": "array",
|
|
90721
|
+
"items": {
|
|
90722
|
+
"$ref": "#/components/schemas/Video"
|
|
90723
|
+
}
|
|
90724
|
+
},
|
|
90725
|
+
"count": {
|
|
90726
|
+
"type": "integer",
|
|
90727
|
+
"example": 100
|
|
90728
|
+
}
|
|
90729
|
+
},
|
|
90730
|
+
"required": [
|
|
90731
|
+
"status",
|
|
90732
|
+
"message",
|
|
90733
|
+
"data"
|
|
90734
|
+
]
|
|
90735
|
+
}
|
|
90736
|
+
}
|
|
90737
|
+
}
|
|
90738
|
+
}
|
|
90739
|
+
},
|
|
90740
|
+
"tags": [
|
|
90741
|
+
"Threads::Storage"
|
|
90742
|
+
]
|
|
90743
|
+
}
|
|
90744
|
+
},
|
|
90429
90745
|
"/tiers": {
|
|
90430
90746
|
"get": {
|
|
90431
90747
|
"operationId": "GetTiers",
|
|
@@ -105676,7 +105992,8 @@
|
|
|
105676
105992
|
"enum": [
|
|
105677
105993
|
"admin",
|
|
105678
105994
|
"activity",
|
|
105679
|
-
"content"
|
|
105995
|
+
"content",
|
|
105996
|
+
"thread"
|
|
105680
105997
|
]
|
|
105681
105998
|
},
|
|
105682
105999
|
"BaseVideo": {
|
|
@@ -105989,12 +106306,22 @@
|
|
|
105989
106306
|
}
|
|
105990
106307
|
]
|
|
105991
106308
|
},
|
|
106309
|
+
"ThreadType": {
|
|
106310
|
+
"type": "string",
|
|
106311
|
+
"enum": [
|
|
106312
|
+
"direct",
|
|
106313
|
+
"default"
|
|
106314
|
+
]
|
|
106315
|
+
},
|
|
105992
106316
|
"BaseThread": {
|
|
105993
106317
|
"type": "object",
|
|
105994
106318
|
"properties": {
|
|
105995
106319
|
"id": {
|
|
105996
106320
|
"type": "string"
|
|
105997
106321
|
},
|
|
106322
|
+
"type": {
|
|
106323
|
+
"$ref": "#/components/schemas/ThreadType"
|
|
106324
|
+
},
|
|
105998
106325
|
"subject": {
|
|
105999
106326
|
"type": "string"
|
|
106000
106327
|
},
|
|
@@ -106024,6 +106351,7 @@
|
|
|
106024
106351
|
},
|
|
106025
106352
|
"required": [
|
|
106026
106353
|
"id",
|
|
106354
|
+
"type",
|
|
106027
106355
|
"subject",
|
|
106028
106356
|
"imageId",
|
|
106029
106357
|
"image",
|