@uptiqai/integrations-sdk 1.0.5 → 1.0.7
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/generated-api.d.ts +1124 -312
- package/dist/generated-api.d.ts.map +1 -1
- package/dist/generated-api.js +490 -93
- package/dist/generated-api.js.map +1 -1
- package/dist/http-client.js +3 -3
- package/dist/http-client.js.map +1 -1
- package/dist/index.d.ts +150 -114
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +268 -83
- package/dist/index.js.map +1 -1
- package/dist/response-type-map.d.ts.map +1 -1
- package/dist/response-type-map.js +108 -18
- package/dist/response-type-map.js.map +1 -1
- package/package.json +1 -1
package/dist/generated-api.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getIntegrationsAPI = exports.
|
|
3
|
+
exports.getIntegrationsAPI = exports.AnthropicGenerateTextBodyMessagesItemRole = exports.AnthropicCreateStreamBodyMessagesItemRole = exports.GmailSendEmail200Provider = exports.GmailSendEmail200Status = exports.GoogleGenerativeAIGenerateTextBodyMessagesItemRole = exports.GoogleGenerativeAICreateStreamBodyMessagesItemRole = exports.OpenaiGenerateTextBodyMessagesItemRole = exports.OpenaiCreateStreamBodyMessagesItemRole = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* Generated by orval v7.1.0 🍺
|
|
6
6
|
* Do not edit manually.
|
|
@@ -10,165 +10,562 @@ exports.getIntegrationsAPI = exports.SendEmailBodyProvider = exports.SendEmail20
|
|
|
10
10
|
*/
|
|
11
11
|
const http_client_1 = require("./http-client");
|
|
12
12
|
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
13
|
-
exports.
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
exports.CreateCheckoutSessionBodyProvider = {
|
|
18
|
-
Stripe: 'Stripe',
|
|
19
|
-
};
|
|
20
|
-
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
21
|
-
exports.HandleOAuthCallbackBodyProvider = {
|
|
22
|
-
Google: 'Google',
|
|
23
|
-
};
|
|
24
|
-
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
25
|
-
exports.GetAuthorizationUrlBodyProvider = {
|
|
26
|
-
Google: 'Google',
|
|
27
|
-
};
|
|
28
|
-
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
29
|
-
exports.CreateMessageBodyProvider = {
|
|
30
|
-
TwilioWhatsApp: 'TwilioWhatsApp',
|
|
31
|
-
};
|
|
32
|
-
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
33
|
-
exports.CreateStreamBodyProvider = {
|
|
34
|
-
Anthropic: 'Anthropic',
|
|
35
|
-
OpenAI: 'OpenAI',
|
|
36
|
-
Google: 'Google',
|
|
13
|
+
exports.OpenaiCreateStreamBodyMessagesItemRole = {
|
|
14
|
+
user: 'user',
|
|
15
|
+
assistant: 'assistant',
|
|
16
|
+
system: 'system',
|
|
37
17
|
};
|
|
38
18
|
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
39
|
-
exports.
|
|
19
|
+
exports.OpenaiGenerateTextBodyMessagesItemRole = {
|
|
40
20
|
user: 'user',
|
|
41
21
|
assistant: 'assistant',
|
|
42
22
|
system: 'system',
|
|
43
23
|
};
|
|
44
24
|
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
45
|
-
exports.
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
25
|
+
exports.GoogleGenerativeAICreateStreamBodyMessagesItemRole = {
|
|
26
|
+
user: 'user',
|
|
27
|
+
assistant: 'assistant',
|
|
28
|
+
system: 'system',
|
|
49
29
|
};
|
|
50
30
|
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
51
|
-
exports.
|
|
31
|
+
exports.GoogleGenerativeAIGenerateTextBodyMessagesItemRole = {
|
|
52
32
|
user: 'user',
|
|
53
33
|
assistant: 'assistant',
|
|
54
34
|
system: 'system',
|
|
55
35
|
};
|
|
56
36
|
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
57
|
-
exports.
|
|
58
|
-
|
|
37
|
+
exports.GmailSendEmail200Status = {
|
|
38
|
+
queued: 'queued',
|
|
59
39
|
};
|
|
60
40
|
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
61
|
-
exports.
|
|
62
|
-
|
|
63
|
-
'2:3': '2:3',
|
|
64
|
-
'3:2': '3:2',
|
|
65
|
-
'3:4': '3:4',
|
|
66
|
-
'4:3': '4:3',
|
|
67
|
-
'4:5': '4:5',
|
|
68
|
-
'5:4': '5:4',
|
|
69
|
-
'9:16': '9:16',
|
|
70
|
-
'16:9': '16:9',
|
|
71
|
-
'21:9': '21:9',
|
|
41
|
+
exports.GmailSendEmail200Provider = {
|
|
42
|
+
gmail: 'gmail',
|
|
72
43
|
};
|
|
73
44
|
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
74
|
-
exports.
|
|
75
|
-
|
|
45
|
+
exports.AnthropicCreateStreamBodyMessagesItemRole = {
|
|
46
|
+
user: 'user',
|
|
47
|
+
assistant: 'assistant',
|
|
48
|
+
system: 'system',
|
|
76
49
|
};
|
|
77
50
|
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
78
|
-
exports.
|
|
79
|
-
|
|
51
|
+
exports.AnthropicGenerateTextBodyMessagesItemRole = {
|
|
52
|
+
user: 'user',
|
|
53
|
+
assistant: 'assistant',
|
|
54
|
+
system: 'system',
|
|
80
55
|
};
|
|
81
56
|
const getIntegrationsAPI = () => {
|
|
82
57
|
/**
|
|
83
|
-
*
|
|
84
|
-
* @summary
|
|
58
|
+
* Stores a generated app user Anthropic API key for PerUser integration configs.
|
|
59
|
+
* @summary Store per-user Anthropic credentials
|
|
85
60
|
*/
|
|
86
|
-
const
|
|
87
|
-
return (0, http_client_1.customAxios)({ url: `/
|
|
61
|
+
const anthropicSetUserCredentials = (anthropicSetUserCredentialsBody) => {
|
|
62
|
+
return (0, http_client_1.customAxios)({ url: `/anthropic/set-user-credentials`, method: 'POST',
|
|
88
63
|
headers: { 'Content-Type': 'application/json', },
|
|
89
|
-
data:
|
|
64
|
+
data: anthropicSetUserCredentialsBody
|
|
90
65
|
});
|
|
91
66
|
};
|
|
92
67
|
/**
|
|
93
|
-
* Generate
|
|
94
|
-
* @summary Generate image from text prompt
|
|
68
|
+
* @summary Generate text with Anthropic
|
|
95
69
|
*/
|
|
96
|
-
const
|
|
97
|
-
return (0, http_client_1.customAxios)({ url: `/
|
|
70
|
+
const anthropicGenerateText = (anthropicGenerateTextBody) => {
|
|
71
|
+
return (0, http_client_1.customAxios)({ url: `/anthropic/generate-text`, method: 'POST',
|
|
98
72
|
headers: { 'Content-Type': 'application/json', },
|
|
99
|
-
data:
|
|
73
|
+
data: anthropicGenerateTextBody
|
|
100
74
|
});
|
|
101
75
|
};
|
|
102
76
|
/**
|
|
103
|
-
*
|
|
77
|
+
* Creates a Server-Sent Events (SSE) stream that returns UI message chunks compatible with Vercel AI SDK clients.
|
|
78
|
+
* @summary Stream text generation with Anthropic
|
|
104
79
|
*/
|
|
105
|
-
const
|
|
106
|
-
return (0, http_client_1.customAxios)({ url: `/
|
|
80
|
+
const anthropicCreateStream = (anthropicCreateStreamBody) => {
|
|
81
|
+
return (0, http_client_1.customAxios)({ url: `/anthropic/create-stream`, method: 'POST',
|
|
107
82
|
headers: { 'Content-Type': 'application/json', },
|
|
108
|
-
data:
|
|
83
|
+
data: anthropicCreateStreamBody
|
|
109
84
|
});
|
|
110
85
|
};
|
|
111
86
|
/**
|
|
112
|
-
*
|
|
113
|
-
* @summary Stream text generation from LLM
|
|
87
|
+
* @summary Store per-user AWS S3 credentials
|
|
114
88
|
*/
|
|
115
|
-
const
|
|
116
|
-
return (0, http_client_1.customAxios)({ url: `/
|
|
89
|
+
const awsS3SetUserCredentials = (awsS3SetUserCredentialsBody) => {
|
|
90
|
+
return (0, http_client_1.customAxios)({ url: `/awsS3/set-user-credentials`, method: 'POST',
|
|
117
91
|
headers: { 'Content-Type': 'application/json', },
|
|
118
|
-
data:
|
|
92
|
+
data: awsS3SetUserCredentialsBody
|
|
119
93
|
});
|
|
120
94
|
};
|
|
121
95
|
/**
|
|
122
|
-
*
|
|
123
|
-
|
|
96
|
+
* @summary Upload data to storage
|
|
97
|
+
*/
|
|
98
|
+
const awsS3UploadData = (awsS3UploadDataBody) => {
|
|
99
|
+
return (0, http_client_1.customAxios)({ url: `/awsS3/upload-data`, method: 'POST',
|
|
100
|
+
headers: { 'Content-Type': 'application/json', },
|
|
101
|
+
data: awsS3UploadDataBody
|
|
102
|
+
});
|
|
103
|
+
};
|
|
104
|
+
/**
|
|
105
|
+
* @summary Delete a file from storage
|
|
106
|
+
*/
|
|
107
|
+
const awsS3DeleteFile = (awsS3DeleteFileBody) => {
|
|
108
|
+
return (0, http_client_1.customAxios)({ url: `/awsS3/delete-file`, method: 'POST',
|
|
109
|
+
headers: { 'Content-Type': 'application/json', },
|
|
110
|
+
data: awsS3DeleteFileBody
|
|
111
|
+
});
|
|
112
|
+
};
|
|
113
|
+
/**
|
|
114
|
+
* @summary Check if a document exists
|
|
115
|
+
*/
|
|
116
|
+
const awsS3DocumentExists = (awsS3DocumentExistsBody) => {
|
|
117
|
+
return (0, http_client_1.customAxios)({ url: `/awsS3/document-exists`, method: 'POST',
|
|
118
|
+
headers: { 'Content-Type': 'application/json', },
|
|
119
|
+
data: awsS3DocumentExistsBody
|
|
120
|
+
});
|
|
121
|
+
};
|
|
122
|
+
/**
|
|
123
|
+
* @summary Generate a signed URL for downloading
|
|
124
124
|
*/
|
|
125
|
-
const
|
|
126
|
-
return (0, http_client_1.customAxios)({ url: `/
|
|
125
|
+
const awsS3GenerateDownloadSignedUrl = (awsS3GenerateDownloadSignedUrlBody) => {
|
|
126
|
+
return (0, http_client_1.customAxios)({ url: `/awsS3/generate-download-signed-url`, method: 'POST',
|
|
127
127
|
headers: { 'Content-Type': 'application/json', },
|
|
128
|
-
data:
|
|
128
|
+
data: awsS3GenerateDownloadSignedUrlBody
|
|
129
129
|
});
|
|
130
130
|
};
|
|
131
131
|
/**
|
|
132
|
-
*
|
|
133
|
-
* @summary Get OAuth authorization URL
|
|
132
|
+
* @summary Get file content as base64
|
|
134
133
|
*/
|
|
135
|
-
const
|
|
136
|
-
return (0, http_client_1.customAxios)({ url: `/
|
|
134
|
+
const awsS3GetData = (awsS3GetDataBody) => {
|
|
135
|
+
return (0, http_client_1.customAxios)({ url: `/awsS3/get-data`, method: 'POST',
|
|
137
136
|
headers: { 'Content-Type': 'application/json', },
|
|
138
|
-
data:
|
|
137
|
+
data: awsS3GetDataBody
|
|
139
138
|
});
|
|
140
139
|
};
|
|
141
140
|
/**
|
|
142
|
-
*
|
|
143
|
-
* @summary Handle OAuth callback
|
|
141
|
+
* @summary Generate a signed URL for uploading
|
|
144
142
|
*/
|
|
145
|
-
const
|
|
146
|
-
return (0, http_client_1.customAxios)({ url: `/
|
|
143
|
+
const awsS3GenerateUploadSignedUrl = (awsS3GenerateUploadSignedUrlBody) => {
|
|
144
|
+
return (0, http_client_1.customAxios)({ url: `/awsS3/generate-upload-signed-url`, method: 'POST',
|
|
147
145
|
headers: { 'Content-Type': 'application/json', },
|
|
148
|
-
data:
|
|
146
|
+
data: awsS3GenerateUploadSignedUrlBody
|
|
149
147
|
});
|
|
150
148
|
};
|
|
151
149
|
/**
|
|
152
|
-
*
|
|
153
|
-
* @summary Create a payment checkout session
|
|
150
|
+
* @summary Copy a file within storage
|
|
154
151
|
*/
|
|
155
|
-
const
|
|
156
|
-
return (0, http_client_1.customAxios)({ url: `/
|
|
152
|
+
const awsS3CopyFile = (awsS3CopyFileBody) => {
|
|
153
|
+
return (0, http_client_1.customAxios)({ url: `/awsS3/copy-file`, method: 'POST',
|
|
157
154
|
headers: { 'Content-Type': 'application/json', },
|
|
158
|
-
data:
|
|
155
|
+
data: awsS3CopyFileBody
|
|
159
156
|
});
|
|
160
157
|
};
|
|
161
158
|
/**
|
|
162
|
-
*
|
|
163
|
-
|
|
159
|
+
* @summary Get file metadata (e.g. size)
|
|
160
|
+
*/
|
|
161
|
+
const awsS3GetFileMetadata = (awsS3GetFileMetadataBody) => {
|
|
162
|
+
return (0, http_client_1.customAxios)({ url: `/awsS3/get-file-metadata`, method: 'POST',
|
|
163
|
+
headers: { 'Content-Type': 'application/json', },
|
|
164
|
+
data: awsS3GetFileMetadataBody
|
|
165
|
+
});
|
|
166
|
+
};
|
|
167
|
+
/**
|
|
168
|
+
* @summary Upload a file via multipart/form-data
|
|
169
|
+
*/
|
|
170
|
+
const awsS3UploadFile = (awsS3UploadFileBody) => {
|
|
171
|
+
const formData = new FormData();
|
|
172
|
+
formData.append('file', awsS3UploadFileBody.file);
|
|
173
|
+
formData.append('destinationKey', awsS3UploadFileBody.destinationKey);
|
|
174
|
+
return (0, http_client_1.customAxios)({ url: `/awsS3/upload-file`, method: 'POST',
|
|
175
|
+
headers: { 'Content-Type': 'multipart/form-data', },
|
|
176
|
+
data: formData
|
|
177
|
+
});
|
|
178
|
+
};
|
|
179
|
+
/**
|
|
180
|
+
* @summary Stream file content
|
|
181
|
+
*/
|
|
182
|
+
const awsS3CreateReadStream = (awsS3CreateReadStreamBody) => {
|
|
183
|
+
return (0, http_client_1.customAxios)({ url: `/awsS3/create-read-stream`, method: 'POST',
|
|
184
|
+
headers: { 'Content-Type': 'application/json', },
|
|
185
|
+
data: awsS3CreateReadStreamBody
|
|
186
|
+
});
|
|
187
|
+
};
|
|
188
|
+
/**
|
|
189
|
+
* @summary Store per-user Azure Blob Storage credentials
|
|
190
|
+
*/
|
|
191
|
+
const azureBlobStorageSetUserCredentials = (azureBlobStorageSetUserCredentialsBody) => {
|
|
192
|
+
return (0, http_client_1.customAxios)({ url: `/azureBlobStorage/set-user-credentials`, method: 'POST',
|
|
193
|
+
headers: { 'Content-Type': 'application/json', },
|
|
194
|
+
data: azureBlobStorageSetUserCredentialsBody
|
|
195
|
+
});
|
|
196
|
+
};
|
|
197
|
+
/**
|
|
198
|
+
* @summary Upload data to storage
|
|
199
|
+
*/
|
|
200
|
+
const azureBlobStorageUploadData = (azureBlobStorageUploadDataBody) => {
|
|
201
|
+
return (0, http_client_1.customAxios)({ url: `/azureBlobStorage/upload-data`, method: 'POST',
|
|
202
|
+
headers: { 'Content-Type': 'application/json', },
|
|
203
|
+
data: azureBlobStorageUploadDataBody
|
|
204
|
+
});
|
|
205
|
+
};
|
|
206
|
+
/**
|
|
207
|
+
* @summary Delete a file from storage
|
|
208
|
+
*/
|
|
209
|
+
const azureBlobStorageDeleteFile = (azureBlobStorageDeleteFileBody) => {
|
|
210
|
+
return (0, http_client_1.customAxios)({ url: `/azureBlobStorage/delete-file`, method: 'POST',
|
|
211
|
+
headers: { 'Content-Type': 'application/json', },
|
|
212
|
+
data: azureBlobStorageDeleteFileBody
|
|
213
|
+
});
|
|
214
|
+
};
|
|
215
|
+
/**
|
|
216
|
+
* @summary Check if a document exists
|
|
217
|
+
*/
|
|
218
|
+
const azureBlobStorageDocumentExists = (azureBlobStorageDocumentExistsBody) => {
|
|
219
|
+
return (0, http_client_1.customAxios)({ url: `/azureBlobStorage/document-exists`, method: 'POST',
|
|
220
|
+
headers: { 'Content-Type': 'application/json', },
|
|
221
|
+
data: azureBlobStorageDocumentExistsBody
|
|
222
|
+
});
|
|
223
|
+
};
|
|
224
|
+
/**
|
|
225
|
+
* @summary Generate a signed URL for downloading
|
|
226
|
+
*/
|
|
227
|
+
const azureBlobStorageGenerateDownloadSignedUrl = (azureBlobStorageGenerateDownloadSignedUrlBody) => {
|
|
228
|
+
return (0, http_client_1.customAxios)({ url: `/azureBlobStorage/generate-download-signed-url`, method: 'POST',
|
|
229
|
+
headers: { 'Content-Type': 'application/json', },
|
|
230
|
+
data: azureBlobStorageGenerateDownloadSignedUrlBody
|
|
231
|
+
});
|
|
232
|
+
};
|
|
233
|
+
/**
|
|
234
|
+
* @summary Get file content as base64
|
|
235
|
+
*/
|
|
236
|
+
const azureBlobStorageGetData = (azureBlobStorageGetDataBody) => {
|
|
237
|
+
return (0, http_client_1.customAxios)({ url: `/azureBlobStorage/get-data`, method: 'POST',
|
|
238
|
+
headers: { 'Content-Type': 'application/json', },
|
|
239
|
+
data: azureBlobStorageGetDataBody
|
|
240
|
+
});
|
|
241
|
+
};
|
|
242
|
+
/**
|
|
243
|
+
* @summary Generate a signed URL for uploading
|
|
244
|
+
*/
|
|
245
|
+
const azureBlobStorageGenerateUploadSignedUrl = (azureBlobStorageGenerateUploadSignedUrlBody) => {
|
|
246
|
+
return (0, http_client_1.customAxios)({ url: `/azureBlobStorage/generate-upload-signed-url`, method: 'POST',
|
|
247
|
+
headers: { 'Content-Type': 'application/json', },
|
|
248
|
+
data: azureBlobStorageGenerateUploadSignedUrlBody
|
|
249
|
+
});
|
|
250
|
+
};
|
|
251
|
+
/**
|
|
252
|
+
* @summary Copy a file within storage
|
|
253
|
+
*/
|
|
254
|
+
const azureBlobStorageCopyFile = (azureBlobStorageCopyFileBody) => {
|
|
255
|
+
return (0, http_client_1.customAxios)({ url: `/azureBlobStorage/copy-file`, method: 'POST',
|
|
256
|
+
headers: { 'Content-Type': 'application/json', },
|
|
257
|
+
data: azureBlobStorageCopyFileBody
|
|
258
|
+
});
|
|
259
|
+
};
|
|
260
|
+
/**
|
|
261
|
+
* @summary Get file metadata (e.g. size)
|
|
262
|
+
*/
|
|
263
|
+
const azureBlobStorageGetFileMetadata = (azureBlobStorageGetFileMetadataBody) => {
|
|
264
|
+
return (0, http_client_1.customAxios)({ url: `/azureBlobStorage/get-file-metadata`, method: 'POST',
|
|
265
|
+
headers: { 'Content-Type': 'application/json', },
|
|
266
|
+
data: azureBlobStorageGetFileMetadataBody
|
|
267
|
+
});
|
|
268
|
+
};
|
|
269
|
+
/**
|
|
270
|
+
* @summary Upload a file via multipart/form-data
|
|
271
|
+
*/
|
|
272
|
+
const azureBlobStorageUploadFile = (azureBlobStorageUploadFileBody) => {
|
|
273
|
+
const formData = new FormData();
|
|
274
|
+
formData.append('file', azureBlobStorageUploadFileBody.file);
|
|
275
|
+
formData.append('destinationKey', azureBlobStorageUploadFileBody.destinationKey);
|
|
276
|
+
return (0, http_client_1.customAxios)({ url: `/azureBlobStorage/upload-file`, method: 'POST',
|
|
277
|
+
headers: { 'Content-Type': 'multipart/form-data', },
|
|
278
|
+
data: formData
|
|
279
|
+
});
|
|
280
|
+
};
|
|
281
|
+
/**
|
|
282
|
+
* @summary Stream file content
|
|
283
|
+
*/
|
|
284
|
+
const azureBlobStorageCreateReadStream = (azureBlobStorageCreateReadStreamBody) => {
|
|
285
|
+
return (0, http_client_1.customAxios)({ url: `/azureBlobStorage/create-read-stream`, method: 'POST',
|
|
286
|
+
headers: { 'Content-Type': 'application/json', },
|
|
287
|
+
data: azureBlobStorageCreateReadStreamBody
|
|
288
|
+
});
|
|
289
|
+
};
|
|
290
|
+
/**
|
|
291
|
+
* @summary Stream upload
|
|
292
|
+
*/
|
|
293
|
+
const azureBlobStorageCreateWriteStream = (azureBlobStorageCreateWriteStreamBody, params) => {
|
|
294
|
+
return (0, http_client_1.customAxios)({ url: `/azureBlobStorage/create-write-stream`, method: 'POST',
|
|
295
|
+
headers: { 'Content-Type': 'application/octet-stream', },
|
|
296
|
+
data: azureBlobStorageCreateWriteStreamBody,
|
|
297
|
+
params
|
|
298
|
+
});
|
|
299
|
+
};
|
|
300
|
+
/**
|
|
301
|
+
* Starts a Gmail OAuth connection. Shared configs use app-level credentials; PerUser configs require clientId/clientSecret in the request.
|
|
302
|
+
* @summary Start Gmail OAuth flow
|
|
303
|
+
*/
|
|
304
|
+
const gmailAuthStart = (gmailAuthStartBody) => {
|
|
305
|
+
return (0, http_client_1.customAxios)({ url: `/gmail/auth/start`, method: 'POST',
|
|
306
|
+
headers: { 'Content-Type': 'application/json', },
|
|
307
|
+
data: gmailAuthStartBody
|
|
308
|
+
});
|
|
309
|
+
};
|
|
310
|
+
/**
|
|
311
|
+
* Unauthorized IntegrationHub-owned callback for Google OAuth completion.
|
|
312
|
+
* @summary Handle Gmail OAuth callback
|
|
313
|
+
*/
|
|
314
|
+
const gmailOauthCallback = () => {
|
|
315
|
+
return (0, http_client_1.customAxios)({ url: `/gmail/oauth/callback`, method: 'GET'
|
|
316
|
+
});
|
|
317
|
+
};
|
|
318
|
+
/**
|
|
319
|
+
* Dummy Gmail send email endpoint that resolves user credentials and exercises the OAuth refresh/retry framework.
|
|
320
|
+
* @summary Send an email via Gmail
|
|
321
|
+
*/
|
|
322
|
+
const gmailSendEmail = (gmailSendEmailBody) => {
|
|
323
|
+
return (0, http_client_1.customAxios)({ url: `/gmail/send-email`, method: 'POST',
|
|
324
|
+
headers: { 'Content-Type': 'application/json', },
|
|
325
|
+
data: gmailSendEmailBody
|
|
326
|
+
});
|
|
327
|
+
};
|
|
328
|
+
/**
|
|
329
|
+
* @summary Store per-user Google Cloud Storage credentials
|
|
330
|
+
*/
|
|
331
|
+
const googleCloudStorageSetUserCredentials = (googleCloudStorageSetUserCredentialsBody) => {
|
|
332
|
+
return (0, http_client_1.customAxios)({ url: `/googleCloudStorage/set-user-credentials`, method: 'POST',
|
|
333
|
+
headers: { 'Content-Type': 'application/json', },
|
|
334
|
+
data: googleCloudStorageSetUserCredentialsBody
|
|
335
|
+
});
|
|
336
|
+
};
|
|
337
|
+
/**
|
|
338
|
+
* @summary Upload data to storage
|
|
339
|
+
*/
|
|
340
|
+
const googleCloudStorageUploadData = (googleCloudStorageUploadDataBody) => {
|
|
341
|
+
return (0, http_client_1.customAxios)({ url: `/googleCloudStorage/upload-data`, method: 'POST',
|
|
342
|
+
headers: { 'Content-Type': 'application/json', },
|
|
343
|
+
data: googleCloudStorageUploadDataBody
|
|
344
|
+
});
|
|
345
|
+
};
|
|
346
|
+
/**
|
|
347
|
+
* @summary Delete a file from storage
|
|
348
|
+
*/
|
|
349
|
+
const googleCloudStorageDeleteFile = (googleCloudStorageDeleteFileBody) => {
|
|
350
|
+
return (0, http_client_1.customAxios)({ url: `/googleCloudStorage/delete-file`, method: 'POST',
|
|
351
|
+
headers: { 'Content-Type': 'application/json', },
|
|
352
|
+
data: googleCloudStorageDeleteFileBody
|
|
353
|
+
});
|
|
354
|
+
};
|
|
355
|
+
/**
|
|
356
|
+
* @summary Check if a document exists
|
|
357
|
+
*/
|
|
358
|
+
const googleCloudStorageDocumentExists = (googleCloudStorageDocumentExistsBody) => {
|
|
359
|
+
return (0, http_client_1.customAxios)({ url: `/googleCloudStorage/document-exists`, method: 'POST',
|
|
360
|
+
headers: { 'Content-Type': 'application/json', },
|
|
361
|
+
data: googleCloudStorageDocumentExistsBody
|
|
362
|
+
});
|
|
363
|
+
};
|
|
364
|
+
/**
|
|
365
|
+
* @summary Generate a signed URL for downloading
|
|
366
|
+
*/
|
|
367
|
+
const googleCloudStorageGenerateDownloadSignedUrl = (googleCloudStorageGenerateDownloadSignedUrlBody) => {
|
|
368
|
+
return (0, http_client_1.customAxios)({ url: `/googleCloudStorage/generate-download-signed-url`, method: 'POST',
|
|
369
|
+
headers: { 'Content-Type': 'application/json', },
|
|
370
|
+
data: googleCloudStorageGenerateDownloadSignedUrlBody
|
|
371
|
+
});
|
|
372
|
+
};
|
|
373
|
+
/**
|
|
374
|
+
* @summary Get file content as base64
|
|
375
|
+
*/
|
|
376
|
+
const googleCloudStorageGetData = (googleCloudStorageGetDataBody) => {
|
|
377
|
+
return (0, http_client_1.customAxios)({ url: `/googleCloudStorage/get-data`, method: 'POST',
|
|
378
|
+
headers: { 'Content-Type': 'application/json', },
|
|
379
|
+
data: googleCloudStorageGetDataBody
|
|
380
|
+
});
|
|
381
|
+
};
|
|
382
|
+
/**
|
|
383
|
+
* @summary Generate a signed URL for uploading
|
|
384
|
+
*/
|
|
385
|
+
const googleCloudStorageGenerateUploadSignedUrl = (googleCloudStorageGenerateUploadSignedUrlBody) => {
|
|
386
|
+
return (0, http_client_1.customAxios)({ url: `/googleCloudStorage/generate-upload-signed-url`, method: 'POST',
|
|
387
|
+
headers: { 'Content-Type': 'application/json', },
|
|
388
|
+
data: googleCloudStorageGenerateUploadSignedUrlBody
|
|
389
|
+
});
|
|
390
|
+
};
|
|
391
|
+
/**
|
|
392
|
+
* @summary Copy a file within storage
|
|
393
|
+
*/
|
|
394
|
+
const googleCloudStorageCopyFile = (googleCloudStorageCopyFileBody) => {
|
|
395
|
+
return (0, http_client_1.customAxios)({ url: `/googleCloudStorage/copy-file`, method: 'POST',
|
|
396
|
+
headers: { 'Content-Type': 'application/json', },
|
|
397
|
+
data: googleCloudStorageCopyFileBody
|
|
398
|
+
});
|
|
399
|
+
};
|
|
400
|
+
/**
|
|
401
|
+
* @summary Get file metadata (e.g. size)
|
|
402
|
+
*/
|
|
403
|
+
const googleCloudStorageGetFileMetadata = (googleCloudStorageGetFileMetadataBody) => {
|
|
404
|
+
return (0, http_client_1.customAxios)({ url: `/googleCloudStorage/get-file-metadata`, method: 'POST',
|
|
405
|
+
headers: { 'Content-Type': 'application/json', },
|
|
406
|
+
data: googleCloudStorageGetFileMetadataBody
|
|
407
|
+
});
|
|
408
|
+
};
|
|
409
|
+
/**
|
|
410
|
+
* @summary Upload a file via multipart/form-data
|
|
411
|
+
*/
|
|
412
|
+
const googleCloudStorageUploadFile = (googleCloudStorageUploadFileBody) => {
|
|
413
|
+
const formData = new FormData();
|
|
414
|
+
formData.append('file', googleCloudStorageUploadFileBody.file);
|
|
415
|
+
formData.append('destinationKey', googleCloudStorageUploadFileBody.destinationKey);
|
|
416
|
+
return (0, http_client_1.customAxios)({ url: `/googleCloudStorage/upload-file`, method: 'POST',
|
|
417
|
+
headers: { 'Content-Type': 'multipart/form-data', },
|
|
418
|
+
data: formData
|
|
419
|
+
});
|
|
420
|
+
};
|
|
421
|
+
/**
|
|
422
|
+
* @summary Stream file content
|
|
423
|
+
*/
|
|
424
|
+
const googleCloudStorageCreateReadStream = (googleCloudStorageCreateReadStreamBody) => {
|
|
425
|
+
return (0, http_client_1.customAxios)({ url: `/googleCloudStorage/create-read-stream`, method: 'POST',
|
|
426
|
+
headers: { 'Content-Type': 'application/json', },
|
|
427
|
+
data: googleCloudStorageCreateReadStreamBody
|
|
428
|
+
});
|
|
429
|
+
};
|
|
430
|
+
/**
|
|
431
|
+
* @summary Stream upload
|
|
432
|
+
*/
|
|
433
|
+
const googleCloudStorageCreateWriteStream = (googleCloudStorageCreateWriteStreamBody, params) => {
|
|
434
|
+
return (0, http_client_1.customAxios)({ url: `/googleCloudStorage/create-write-stream`, method: 'POST',
|
|
435
|
+
headers: { 'Content-Type': 'application/octet-stream', },
|
|
436
|
+
data: googleCloudStorageCreateWriteStreamBody,
|
|
437
|
+
params
|
|
438
|
+
});
|
|
439
|
+
};
|
|
440
|
+
/**
|
|
441
|
+
* Stores a generated app user Google Gemini API key for PerUser integration configs.
|
|
442
|
+
* @summary Store per-user Google Generative AI credentials
|
|
443
|
+
*/
|
|
444
|
+
const googleGenerativeAISetUserCredentials = (googleGenerativeAISetUserCredentialsBody) => {
|
|
445
|
+
return (0, http_client_1.customAxios)({ url: `/googleGenerativeAI/set-user-credentials`, method: 'POST',
|
|
446
|
+
headers: { 'Content-Type': 'application/json', },
|
|
447
|
+
data: googleGenerativeAISetUserCredentialsBody
|
|
448
|
+
});
|
|
449
|
+
};
|
|
450
|
+
/**
|
|
451
|
+
* @summary Generate text with GoogleGenerativeAI
|
|
452
|
+
*/
|
|
453
|
+
const googleGenerativeAIGenerateText = (googleGenerativeAIGenerateTextBody) => {
|
|
454
|
+
return (0, http_client_1.customAxios)({ url: `/googleGenerativeAI/generate-text`, method: 'POST',
|
|
455
|
+
headers: { 'Content-Type': 'application/json', },
|
|
456
|
+
data: googleGenerativeAIGenerateTextBody
|
|
457
|
+
});
|
|
458
|
+
};
|
|
459
|
+
/**
|
|
460
|
+
* Creates a Server-Sent Events (SSE) stream that returns UI message chunks compatible with Vercel AI SDK clients.
|
|
461
|
+
* @summary Stream text generation with GoogleGenerativeAI
|
|
462
|
+
*/
|
|
463
|
+
const googleGenerativeAICreateStream = (googleGenerativeAICreateStreamBody) => {
|
|
464
|
+
return (0, http_client_1.customAxios)({ url: `/googleGenerativeAI/create-stream`, method: 'POST',
|
|
465
|
+
headers: { 'Content-Type': 'application/json', },
|
|
466
|
+
data: googleGenerativeAICreateStreamBody
|
|
467
|
+
});
|
|
468
|
+
};
|
|
469
|
+
/**
|
|
470
|
+
* Generate a Google OAuth authorization URL using the resolved integration config.
|
|
471
|
+
* @summary Get Google OAuth authorization URL
|
|
472
|
+
*/
|
|
473
|
+
const googleOAuthGetAuthorizationUrl = (googleOAuthGetAuthorizationUrlBody) => {
|
|
474
|
+
return (0, http_client_1.customAxios)({ url: `/googleOAuth/get-authorization-url`, method: 'POST',
|
|
475
|
+
headers: { 'Content-Type': 'application/json', },
|
|
476
|
+
data: googleOAuthGetAuthorizationUrlBody
|
|
477
|
+
});
|
|
478
|
+
};
|
|
479
|
+
/**
|
|
480
|
+
* Exchange a Google OAuth authorization code for a standardized user profile.
|
|
481
|
+
* @summary Handle Google OAuth callback
|
|
482
|
+
*/
|
|
483
|
+
const googleOAuthHandleOauthCallback = (googleOAuthHandleOauthCallbackBody) => {
|
|
484
|
+
return (0, http_client_1.customAxios)({ url: `/googleOAuth/handle-oauth-callback`, method: 'POST',
|
|
485
|
+
headers: { 'Content-Type': 'application/json', },
|
|
486
|
+
data: googleOAuthHandleOauthCallbackBody
|
|
487
|
+
});
|
|
488
|
+
};
|
|
489
|
+
/**
|
|
490
|
+
* Stores a generated app user OpenAI API key for PerUser integration configs.
|
|
491
|
+
* @summary Store per-user OpenAI credentials
|
|
492
|
+
*/
|
|
493
|
+
const openaiSetUserCredentials = (openaiSetUserCredentialsBody) => {
|
|
494
|
+
return (0, http_client_1.customAxios)({ url: `/openai/set-user-credentials`, method: 'POST',
|
|
495
|
+
headers: { 'Content-Type': 'application/json', },
|
|
496
|
+
data: openaiSetUserCredentialsBody
|
|
497
|
+
});
|
|
498
|
+
};
|
|
499
|
+
/**
|
|
500
|
+
* @summary Generate text with OpenAI
|
|
501
|
+
*/
|
|
502
|
+
const openaiGenerateText = (openaiGenerateTextBody) => {
|
|
503
|
+
return (0, http_client_1.customAxios)({ url: `/openai/generate-text`, method: 'POST',
|
|
504
|
+
headers: { 'Content-Type': 'application/json', },
|
|
505
|
+
data: openaiGenerateTextBody
|
|
506
|
+
});
|
|
507
|
+
};
|
|
508
|
+
/**
|
|
509
|
+
* Creates a Server-Sent Events (SSE) stream that returns UI message chunks compatible with Vercel AI SDK clients.
|
|
510
|
+
* @summary Stream text generation with OpenAI
|
|
511
|
+
*/
|
|
512
|
+
const openaiCreateStream = (openaiCreateStreamBody) => {
|
|
513
|
+
return (0, http_client_1.customAxios)({ url: `/openai/create-stream`, method: 'POST',
|
|
514
|
+
headers: { 'Content-Type': 'application/json', },
|
|
515
|
+
data: openaiCreateStreamBody
|
|
516
|
+
});
|
|
517
|
+
};
|
|
518
|
+
/**
|
|
519
|
+
* Stores a generated app user Resend API key for PerUser integration configs.
|
|
520
|
+
* @summary Store per-user Resend credentials
|
|
521
|
+
*/
|
|
522
|
+
const resendSetUserCredentials = (resendSetUserCredentialsBody) => {
|
|
523
|
+
return (0, http_client_1.customAxios)({ url: `/resend/set-user-credentials`, method: 'POST',
|
|
524
|
+
headers: { 'Content-Type': 'application/json', },
|
|
525
|
+
data: resendSetUserCredentialsBody
|
|
526
|
+
});
|
|
527
|
+
};
|
|
528
|
+
/**
|
|
529
|
+
* Sends an email using Resend. Configuration is resolved via integration config.
|
|
530
|
+
* @summary Send an email via Resend
|
|
531
|
+
*/
|
|
532
|
+
const resendSendEmail = (resendSendEmailBody) => {
|
|
533
|
+
return (0, http_client_1.customAxios)({ url: `/resend/send-email`, method: 'POST',
|
|
534
|
+
headers: { 'Content-Type': 'application/json', },
|
|
535
|
+
data: resendSendEmailBody
|
|
536
|
+
});
|
|
537
|
+
};
|
|
538
|
+
/**
|
|
539
|
+
* Creates a new checkout session for accepting payments via Stripe.
|
|
540
|
+
* @summary Create a Stripe checkout session
|
|
541
|
+
*/
|
|
542
|
+
const stripeCreateCheckoutSession = (stripeCreateCheckoutSessionBody) => {
|
|
543
|
+
return (0, http_client_1.customAxios)({ url: `/stripe/create-checkout-session`, method: 'POST',
|
|
544
|
+
headers: { 'Content-Type': 'application/json', },
|
|
545
|
+
data: stripeCreateCheckoutSessionBody
|
|
546
|
+
});
|
|
547
|
+
};
|
|
548
|
+
/**
|
|
549
|
+
* Verifies the signature of a webhook event from Stripe.
|
|
550
|
+
* @summary Verify a Stripe webhook signature
|
|
551
|
+
*/
|
|
552
|
+
const stripeVerifyWebhook = (stripeVerifyWebhookBody) => {
|
|
553
|
+
return (0, http_client_1.customAxios)({ url: `/stripe/verify-webhook`, method: 'POST',
|
|
554
|
+
headers: { 'Content-Type': 'application/json', },
|
|
555
|
+
data: stripeVerifyWebhookBody
|
|
556
|
+
});
|
|
557
|
+
};
|
|
558
|
+
/**
|
|
559
|
+
* Send a message using a configured messaging provider. Message content must include body, media, or a template.
|
|
560
|
+
* @summary Create message
|
|
164
561
|
*/
|
|
165
|
-
const
|
|
166
|
-
return (0, http_client_1.customAxios)({ url: `/
|
|
562
|
+
const twilioWhatsappCreateMessage = (twilioWhatsappCreateMessageBody) => {
|
|
563
|
+
return (0, http_client_1.customAxios)({ url: `/twilioWhatsapp/create-message`, method: 'POST',
|
|
167
564
|
headers: { 'Content-Type': 'application/json', },
|
|
168
|
-
data:
|
|
565
|
+
data: twilioWhatsappCreateMessageBody
|
|
169
566
|
});
|
|
170
567
|
};
|
|
171
|
-
return {
|
|
568
|
+
return { anthropicSetUserCredentials, anthropicGenerateText, anthropicCreateStream, awsS3SetUserCredentials, awsS3UploadData, awsS3DeleteFile, awsS3DocumentExists, awsS3GenerateDownloadSignedUrl, awsS3GetData, awsS3GenerateUploadSignedUrl, awsS3CopyFile, awsS3GetFileMetadata, awsS3UploadFile, awsS3CreateReadStream, azureBlobStorageSetUserCredentials, azureBlobStorageUploadData, azureBlobStorageDeleteFile, azureBlobStorageDocumentExists, azureBlobStorageGenerateDownloadSignedUrl, azureBlobStorageGetData, azureBlobStorageGenerateUploadSignedUrl, azureBlobStorageCopyFile, azureBlobStorageGetFileMetadata, azureBlobStorageUploadFile, azureBlobStorageCreateReadStream, azureBlobStorageCreateWriteStream, gmailAuthStart, gmailOauthCallback, gmailSendEmail, googleCloudStorageSetUserCredentials, googleCloudStorageUploadData, googleCloudStorageDeleteFile, googleCloudStorageDocumentExists, googleCloudStorageGenerateDownloadSignedUrl, googleCloudStorageGetData, googleCloudStorageGenerateUploadSignedUrl, googleCloudStorageCopyFile, googleCloudStorageGetFileMetadata, googleCloudStorageUploadFile, googleCloudStorageCreateReadStream, googleCloudStorageCreateWriteStream, googleGenerativeAISetUserCredentials, googleGenerativeAIGenerateText, googleGenerativeAICreateStream, googleOAuthGetAuthorizationUrl, googleOAuthHandleOauthCallback, openaiSetUserCredentials, openaiGenerateText, openaiCreateStream, resendSetUserCredentials, resendSendEmail, stripeCreateCheckoutSession, stripeVerifyWebhook, twilioWhatsappCreateMessage };
|
|
172
569
|
};
|
|
173
570
|
exports.getIntegrationsAPI = getIntegrationsAPI;
|
|
174
571
|
//# sourceMappingURL=generated-api.js.map
|