waldur-js-client 8.0.2-dev.2 → 8.0.2-dev.3
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/sdk.gen.d.ts +53 -1
- package/dist/sdk.gen.js +365 -0
- package/dist/types.gen.d.ts +416 -17
- package/package.json +1 -1
package/dist/sdk.gen.js
CHANGED
|
@@ -5632,6 +5632,121 @@ export const celeryStatsRetrieve = (options) => {
|
|
|
5632
5632
|
...options
|
|
5633
5633
|
});
|
|
5634
5634
|
};
|
|
5635
|
+
export const chatMessagesList = (options) => {
|
|
5636
|
+
return (options?.client ?? _heyApiClient).get({
|
|
5637
|
+
security: [
|
|
5638
|
+
{
|
|
5639
|
+
name: 'Authorization',
|
|
5640
|
+
type: 'apiKey'
|
|
5641
|
+
},
|
|
5642
|
+
{
|
|
5643
|
+
scheme: 'bearer',
|
|
5644
|
+
type: 'http'
|
|
5645
|
+
}
|
|
5646
|
+
],
|
|
5647
|
+
url: '/api/chat-messages/',
|
|
5648
|
+
...options
|
|
5649
|
+
});
|
|
5650
|
+
};
|
|
5651
|
+
/**
|
|
5652
|
+
* Get number of items in the collection matching the request parameters.
|
|
5653
|
+
*/
|
|
5654
|
+
export const chatMessagesCount = (options) => {
|
|
5655
|
+
return (options?.client ?? _heyApiClient).head({
|
|
5656
|
+
security: [
|
|
5657
|
+
{
|
|
5658
|
+
name: 'Authorization',
|
|
5659
|
+
type: 'apiKey'
|
|
5660
|
+
},
|
|
5661
|
+
{
|
|
5662
|
+
scheme: 'bearer',
|
|
5663
|
+
type: 'http'
|
|
5664
|
+
}
|
|
5665
|
+
],
|
|
5666
|
+
url: '/api/chat-messages/',
|
|
5667
|
+
...options
|
|
5668
|
+
});
|
|
5669
|
+
};
|
|
5670
|
+
export const chatMessagesCreate = (options) => {
|
|
5671
|
+
return (options.client ?? _heyApiClient).post({
|
|
5672
|
+
security: [
|
|
5673
|
+
{
|
|
5674
|
+
name: 'Authorization',
|
|
5675
|
+
type: 'apiKey'
|
|
5676
|
+
},
|
|
5677
|
+
{
|
|
5678
|
+
scheme: 'bearer',
|
|
5679
|
+
type: 'http'
|
|
5680
|
+
}
|
|
5681
|
+
],
|
|
5682
|
+
url: '/api/chat-messages/',
|
|
5683
|
+
...options,
|
|
5684
|
+
headers: {
|
|
5685
|
+
'Content-Type': 'application/json',
|
|
5686
|
+
...options.headers
|
|
5687
|
+
}
|
|
5688
|
+
});
|
|
5689
|
+
};
|
|
5690
|
+
export const chatMessagesRetrieve = (options) => {
|
|
5691
|
+
return (options.client ?? _heyApiClient).get({
|
|
5692
|
+
security: [
|
|
5693
|
+
{
|
|
5694
|
+
name: 'Authorization',
|
|
5695
|
+
type: 'apiKey'
|
|
5696
|
+
},
|
|
5697
|
+
{
|
|
5698
|
+
scheme: 'bearer',
|
|
5699
|
+
type: 'http'
|
|
5700
|
+
}
|
|
5701
|
+
],
|
|
5702
|
+
url: '/api/chat-messages/{uuid}/',
|
|
5703
|
+
...options
|
|
5704
|
+
});
|
|
5705
|
+
};
|
|
5706
|
+
/**
|
|
5707
|
+
* Edit message
|
|
5708
|
+
* Edit a message (creates a new message with replaces reference). Only allows editing the last user message in a thread.
|
|
5709
|
+
*/
|
|
5710
|
+
export const chatMessagesEdit = (options) => {
|
|
5711
|
+
return (options.client ?? _heyApiClient).post({
|
|
5712
|
+
security: [
|
|
5713
|
+
{
|
|
5714
|
+
name: 'Authorization',
|
|
5715
|
+
type: 'apiKey'
|
|
5716
|
+
},
|
|
5717
|
+
{
|
|
5718
|
+
scheme: 'bearer',
|
|
5719
|
+
type: 'http'
|
|
5720
|
+
}
|
|
5721
|
+
],
|
|
5722
|
+
url: '/api/chat-messages/{uuid}/edit/',
|
|
5723
|
+
...options,
|
|
5724
|
+
headers: {
|
|
5725
|
+
'Content-Type': 'application/json',
|
|
5726
|
+
...options.headers
|
|
5727
|
+
}
|
|
5728
|
+
});
|
|
5729
|
+
};
|
|
5730
|
+
/**
|
|
5731
|
+
* Get message edit history
|
|
5732
|
+
* Get all versions of a message (edit history).
|
|
5733
|
+
*/
|
|
5734
|
+
export const chatMessagesHistoryList = (options) => {
|
|
5735
|
+
return (options.client ?? _heyApiClient).get({
|
|
5736
|
+
security: [
|
|
5737
|
+
{
|
|
5738
|
+
name: 'Authorization',
|
|
5739
|
+
type: 'apiKey'
|
|
5740
|
+
},
|
|
5741
|
+
{
|
|
5742
|
+
scheme: 'bearer',
|
|
5743
|
+
type: 'http'
|
|
5744
|
+
}
|
|
5745
|
+
],
|
|
5746
|
+
url: '/api/chat-messages/{uuid}/history/',
|
|
5747
|
+
...options
|
|
5748
|
+
});
|
|
5749
|
+
};
|
|
5635
5750
|
/**
|
|
5636
5751
|
* Set token quota for user
|
|
5637
5752
|
* Allows staff/support to set token quota limits for a specific user. Configure daily, weekly, and monthly limits:
|
|
@@ -5687,6 +5802,256 @@ export const chatQuotaUsageRetrieve = (options) => {
|
|
|
5687
5802
|
...options
|
|
5688
5803
|
});
|
|
5689
5804
|
};
|
|
5805
|
+
export const chatSessionsList = (options) => {
|
|
5806
|
+
return (options?.client ?? _heyApiClient).get({
|
|
5807
|
+
security: [
|
|
5808
|
+
{
|
|
5809
|
+
name: 'Authorization',
|
|
5810
|
+
type: 'apiKey'
|
|
5811
|
+
},
|
|
5812
|
+
{
|
|
5813
|
+
scheme: 'bearer',
|
|
5814
|
+
type: 'http'
|
|
5815
|
+
}
|
|
5816
|
+
],
|
|
5817
|
+
url: '/api/chat-sessions/',
|
|
5818
|
+
...options
|
|
5819
|
+
});
|
|
5820
|
+
};
|
|
5821
|
+
/**
|
|
5822
|
+
* Get number of items in the collection matching the request parameters.
|
|
5823
|
+
*/
|
|
5824
|
+
export const chatSessionsCount = (options) => {
|
|
5825
|
+
return (options?.client ?? _heyApiClient).head({
|
|
5826
|
+
security: [
|
|
5827
|
+
{
|
|
5828
|
+
name: 'Authorization',
|
|
5829
|
+
type: 'apiKey'
|
|
5830
|
+
},
|
|
5831
|
+
{
|
|
5832
|
+
scheme: 'bearer',
|
|
5833
|
+
type: 'http'
|
|
5834
|
+
}
|
|
5835
|
+
],
|
|
5836
|
+
url: '/api/chat-sessions/',
|
|
5837
|
+
...options
|
|
5838
|
+
});
|
|
5839
|
+
};
|
|
5840
|
+
export const chatSessionsRetrieve = (options) => {
|
|
5841
|
+
return (options.client ?? _heyApiClient).get({
|
|
5842
|
+
security: [
|
|
5843
|
+
{
|
|
5844
|
+
name: 'Authorization',
|
|
5845
|
+
type: 'apiKey'
|
|
5846
|
+
},
|
|
5847
|
+
{
|
|
5848
|
+
scheme: 'bearer',
|
|
5849
|
+
type: 'http'
|
|
5850
|
+
}
|
|
5851
|
+
],
|
|
5852
|
+
url: '/api/chat-sessions/{uuid}/',
|
|
5853
|
+
...options
|
|
5854
|
+
});
|
|
5855
|
+
};
|
|
5856
|
+
/**
|
|
5857
|
+
* Get or create current user's chat session
|
|
5858
|
+
* Returns the current user's chat session, creating it if it doesn't exist.
|
|
5859
|
+
*/
|
|
5860
|
+
export const chatSessionsCurrentRetrieve = (options) => {
|
|
5861
|
+
return (options?.client ?? _heyApiClient).get({
|
|
5862
|
+
security: [
|
|
5863
|
+
{
|
|
5864
|
+
name: 'Authorization',
|
|
5865
|
+
type: 'apiKey'
|
|
5866
|
+
},
|
|
5867
|
+
{
|
|
5868
|
+
scheme: 'bearer',
|
|
5869
|
+
type: 'http'
|
|
5870
|
+
}
|
|
5871
|
+
],
|
|
5872
|
+
url: '/api/chat-sessions/current/',
|
|
5873
|
+
...options
|
|
5874
|
+
});
|
|
5875
|
+
};
|
|
5876
|
+
/**
|
|
5877
|
+
* Get or create current user's chat session
|
|
5878
|
+
* Get number of items in the collection matching the request parameters.
|
|
5879
|
+
*/
|
|
5880
|
+
export const chatSessionsCurrentCount = (options) => {
|
|
5881
|
+
return (options?.client ?? _heyApiClient).head({
|
|
5882
|
+
security: [
|
|
5883
|
+
{
|
|
5884
|
+
name: 'Authorization',
|
|
5885
|
+
type: 'apiKey'
|
|
5886
|
+
},
|
|
5887
|
+
{
|
|
5888
|
+
scheme: 'bearer',
|
|
5889
|
+
type: 'http'
|
|
5890
|
+
}
|
|
5891
|
+
],
|
|
5892
|
+
url: '/api/chat-sessions/current/',
|
|
5893
|
+
...options
|
|
5894
|
+
});
|
|
5895
|
+
};
|
|
5896
|
+
export const chatThreadsList = (options) => {
|
|
5897
|
+
return (options?.client ?? _heyApiClient).get({
|
|
5898
|
+
security: [
|
|
5899
|
+
{
|
|
5900
|
+
name: 'Authorization',
|
|
5901
|
+
type: 'apiKey'
|
|
5902
|
+
},
|
|
5903
|
+
{
|
|
5904
|
+
scheme: 'bearer',
|
|
5905
|
+
type: 'http'
|
|
5906
|
+
}
|
|
5907
|
+
],
|
|
5908
|
+
url: '/api/chat-threads/',
|
|
5909
|
+
...options
|
|
5910
|
+
});
|
|
5911
|
+
};
|
|
5912
|
+
/**
|
|
5913
|
+
* Get number of items in the collection matching the request parameters.
|
|
5914
|
+
*/
|
|
5915
|
+
export const chatThreadsCount = (options) => {
|
|
5916
|
+
return (options?.client ?? _heyApiClient).head({
|
|
5917
|
+
security: [
|
|
5918
|
+
{
|
|
5919
|
+
name: 'Authorization',
|
|
5920
|
+
type: 'apiKey'
|
|
5921
|
+
},
|
|
5922
|
+
{
|
|
5923
|
+
scheme: 'bearer',
|
|
5924
|
+
type: 'http'
|
|
5925
|
+
}
|
|
5926
|
+
],
|
|
5927
|
+
url: '/api/chat-threads/',
|
|
5928
|
+
...options
|
|
5929
|
+
});
|
|
5930
|
+
};
|
|
5931
|
+
export const chatThreadsCreate = (options) => {
|
|
5932
|
+
return (options?.client ?? _heyApiClient).post({
|
|
5933
|
+
security: [
|
|
5934
|
+
{
|
|
5935
|
+
name: 'Authorization',
|
|
5936
|
+
type: 'apiKey'
|
|
5937
|
+
},
|
|
5938
|
+
{
|
|
5939
|
+
scheme: 'bearer',
|
|
5940
|
+
type: 'http'
|
|
5941
|
+
}
|
|
5942
|
+
],
|
|
5943
|
+
url: '/api/chat-threads/',
|
|
5944
|
+
...options,
|
|
5945
|
+
headers: {
|
|
5946
|
+
'Content-Type': 'application/json',
|
|
5947
|
+
...options?.headers
|
|
5948
|
+
}
|
|
5949
|
+
});
|
|
5950
|
+
};
|
|
5951
|
+
export const chatThreadsRetrieve = (options) => {
|
|
5952
|
+
return (options.client ?? _heyApiClient).get({
|
|
5953
|
+
security: [
|
|
5954
|
+
{
|
|
5955
|
+
name: 'Authorization',
|
|
5956
|
+
type: 'apiKey'
|
|
5957
|
+
},
|
|
5958
|
+
{
|
|
5959
|
+
scheme: 'bearer',
|
|
5960
|
+
type: 'http'
|
|
5961
|
+
}
|
|
5962
|
+
],
|
|
5963
|
+
url: '/api/chat-threads/{uuid}/',
|
|
5964
|
+
...options
|
|
5965
|
+
});
|
|
5966
|
+
};
|
|
5967
|
+
export const chatThreadsPartialUpdate = (options) => {
|
|
5968
|
+
return (options.client ?? _heyApiClient).patch({
|
|
5969
|
+
security: [
|
|
5970
|
+
{
|
|
5971
|
+
name: 'Authorization',
|
|
5972
|
+
type: 'apiKey'
|
|
5973
|
+
},
|
|
5974
|
+
{
|
|
5975
|
+
scheme: 'bearer',
|
|
5976
|
+
type: 'http'
|
|
5977
|
+
}
|
|
5978
|
+
],
|
|
5979
|
+
url: '/api/chat-threads/{uuid}/',
|
|
5980
|
+
...options,
|
|
5981
|
+
headers: {
|
|
5982
|
+
'Content-Type': 'application/json',
|
|
5983
|
+
...options.headers
|
|
5984
|
+
}
|
|
5985
|
+
});
|
|
5986
|
+
};
|
|
5987
|
+
export const chatThreadsUpdate = (options) => {
|
|
5988
|
+
return (options.client ?? _heyApiClient).put({
|
|
5989
|
+
security: [
|
|
5990
|
+
{
|
|
5991
|
+
name: 'Authorization',
|
|
5992
|
+
type: 'apiKey'
|
|
5993
|
+
},
|
|
5994
|
+
{
|
|
5995
|
+
scheme: 'bearer',
|
|
5996
|
+
type: 'http'
|
|
5997
|
+
}
|
|
5998
|
+
],
|
|
5999
|
+
url: '/api/chat-threads/{uuid}/',
|
|
6000
|
+
...options,
|
|
6001
|
+
headers: {
|
|
6002
|
+
'Content-Type': 'application/json',
|
|
6003
|
+
...options.headers
|
|
6004
|
+
}
|
|
6005
|
+
});
|
|
6006
|
+
};
|
|
6007
|
+
/**
|
|
6008
|
+
* Archive thread
|
|
6009
|
+
* Archive a thread (soft delete).
|
|
6010
|
+
*/
|
|
6011
|
+
export const chatThreadsArchive = (options) => {
|
|
6012
|
+
return (options.client ?? _heyApiClient).post({
|
|
6013
|
+
security: [
|
|
6014
|
+
{
|
|
6015
|
+
name: 'Authorization',
|
|
6016
|
+
type: 'apiKey'
|
|
6017
|
+
},
|
|
6018
|
+
{
|
|
6019
|
+
scheme: 'bearer',
|
|
6020
|
+
type: 'http'
|
|
6021
|
+
}
|
|
6022
|
+
],
|
|
6023
|
+
url: '/api/chat-threads/{uuid}/archive/',
|
|
6024
|
+
...options,
|
|
6025
|
+
headers: {
|
|
6026
|
+
'Content-Type': 'application/json',
|
|
6027
|
+
...options.headers
|
|
6028
|
+
}
|
|
6029
|
+
});
|
|
6030
|
+
};
|
|
6031
|
+
/**
|
|
6032
|
+
* Unarchive thread
|
|
6033
|
+
* Restore an archived thread.
|
|
6034
|
+
*/
|
|
6035
|
+
export const chatThreadsUnarchive = (options) => {
|
|
6036
|
+
return (options.client ?? _heyApiClient).post({
|
|
6037
|
+
security: [
|
|
6038
|
+
{
|
|
6039
|
+
name: 'Authorization',
|
|
6040
|
+
type: 'apiKey'
|
|
6041
|
+
},
|
|
6042
|
+
{
|
|
6043
|
+
scheme: 'bearer',
|
|
6044
|
+
type: 'http'
|
|
6045
|
+
}
|
|
6046
|
+
],
|
|
6047
|
+
url: '/api/chat-threads/{uuid}/unarchive/',
|
|
6048
|
+
...options,
|
|
6049
|
+
headers: {
|
|
6050
|
+
'Content-Type': 'application/json',
|
|
6051
|
+
...options.headers
|
|
6052
|
+
}
|
|
6053
|
+
});
|
|
6054
|
+
};
|
|
5690
6055
|
/**
|
|
5691
6056
|
* Execute a tool and return the result.
|
|
5692
6057
|
*/
|