samuel-integrations-sdk 0.0.29 → 0.0.30
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 +1114 -577
- package/dist/generated-api.d.ts.map +1 -1
- package/dist/generated-api.js +423 -199
- 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 +143 -151
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +245 -120
- package/dist/index.js.map +1 -1
- package/dist/response-type-map.d.ts.map +1 -1
- package/dist/response-type-map.js +108 -40
- 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,338 +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
|
-
};
|
|
18
|
-
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
19
|
-
exports.CreateReadStreamBodyProvider = {
|
|
20
|
-
GCP: 'GCP',
|
|
21
|
-
AWS: 'AWS',
|
|
22
|
-
Azure: 'Azure',
|
|
23
|
-
};
|
|
24
|
-
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
25
|
-
exports.UploadFileBodyProvider = {
|
|
26
|
-
GCP: 'GCP',
|
|
27
|
-
AWS: 'AWS',
|
|
28
|
-
Azure: 'Azure',
|
|
29
|
-
};
|
|
30
|
-
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
31
|
-
exports.GetFileMetadataBodyProvider = {
|
|
32
|
-
GCP: 'GCP',
|
|
33
|
-
AWS: 'AWS',
|
|
34
|
-
Azure: 'Azure',
|
|
35
|
-
};
|
|
36
|
-
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
37
|
-
exports.CopyFileBodyProvider = {
|
|
38
|
-
GCP: 'GCP',
|
|
39
|
-
AWS: 'AWS',
|
|
40
|
-
Azure: 'Azure',
|
|
41
|
-
};
|
|
42
|
-
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
43
|
-
exports.GenerateUploadSignedUrlBodyProvider = {
|
|
44
|
-
GCP: 'GCP',
|
|
45
|
-
AWS: 'AWS',
|
|
46
|
-
Azure: 'Azure',
|
|
47
|
-
};
|
|
48
|
-
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
49
|
-
exports.GetDataBodyProvider = {
|
|
50
|
-
GCP: 'GCP',
|
|
51
|
-
AWS: 'AWS',
|
|
52
|
-
Azure: 'Azure',
|
|
53
|
-
};
|
|
54
|
-
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
55
|
-
exports.GenerateDownloadSignedUrlBodyProvider = {
|
|
56
|
-
GCP: 'GCP',
|
|
57
|
-
AWS: 'AWS',
|
|
58
|
-
Azure: 'Azure',
|
|
59
|
-
};
|
|
60
|
-
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
61
|
-
exports.DocumentExistsBodyProvider = {
|
|
62
|
-
GCP: 'GCP',
|
|
63
|
-
AWS: 'AWS',
|
|
64
|
-
Azure: 'Azure',
|
|
65
|
-
};
|
|
66
|
-
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
67
|
-
exports.DeleteFileBodyProvider = {
|
|
68
|
-
GCP: 'GCP',
|
|
69
|
-
AWS: 'AWS',
|
|
70
|
-
Azure: 'Azure',
|
|
71
|
-
};
|
|
72
|
-
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
73
|
-
exports.UploadDataBodyProvider = {
|
|
74
|
-
GCP: 'GCP',
|
|
75
|
-
AWS: 'AWS',
|
|
76
|
-
Azure: 'Azure',
|
|
77
|
-
};
|
|
78
|
-
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
79
|
-
exports.VerifyWebhookBodyProvider = {
|
|
80
|
-
Stripe: 'Stripe',
|
|
81
|
-
};
|
|
82
|
-
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
83
|
-
exports.CreateCheckoutSessionBodyProvider = {
|
|
84
|
-
Stripe: 'Stripe',
|
|
85
|
-
};
|
|
86
|
-
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
87
|
-
exports.HandleOAuthCallbackBodyProvider = {
|
|
88
|
-
Google: 'Google',
|
|
89
|
-
};
|
|
90
|
-
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
91
|
-
exports.GetAuthorizationUrlBodyProvider = {
|
|
92
|
-
Google: 'Google',
|
|
93
|
-
};
|
|
94
|
-
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
95
|
-
exports.CreateMessageBodyProvider = {
|
|
96
|
-
TwilioWhatsApp: 'TwilioWhatsApp',
|
|
97
|
-
};
|
|
98
|
-
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
99
|
-
exports.CreateStreamBodyProvider = {
|
|
100
|
-
Anthropic: 'Anthropic',
|
|
101
|
-
OpenAI: 'OpenAI',
|
|
102
|
-
Google: 'Google',
|
|
13
|
+
exports.OpenaiCreateStreamBodyMessagesItemRole = {
|
|
14
|
+
user: 'user',
|
|
15
|
+
assistant: 'assistant',
|
|
16
|
+
system: 'system',
|
|
103
17
|
};
|
|
104
18
|
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
105
|
-
exports.
|
|
19
|
+
exports.OpenaiGenerateTextBodyMessagesItemRole = {
|
|
106
20
|
user: 'user',
|
|
107
21
|
assistant: 'assistant',
|
|
108
22
|
system: 'system',
|
|
109
23
|
};
|
|
110
24
|
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
111
|
-
exports.
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
25
|
+
exports.GoogleGenerativeAICreateStreamBodyMessagesItemRole = {
|
|
26
|
+
user: 'user',
|
|
27
|
+
assistant: 'assistant',
|
|
28
|
+
system: 'system',
|
|
115
29
|
};
|
|
116
30
|
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
117
|
-
exports.
|
|
31
|
+
exports.GoogleGenerativeAIGenerateTextBodyMessagesItemRole = {
|
|
118
32
|
user: 'user',
|
|
119
33
|
assistant: 'assistant',
|
|
120
34
|
system: 'system',
|
|
121
35
|
};
|
|
122
36
|
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
123
|
-
exports.
|
|
124
|
-
|
|
37
|
+
exports.GmailSendEmail200Status = {
|
|
38
|
+
queued: 'queued',
|
|
125
39
|
};
|
|
126
40
|
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
127
|
-
exports.
|
|
128
|
-
|
|
129
|
-
'2:3': '2:3',
|
|
130
|
-
'3:2': '3:2',
|
|
131
|
-
'3:4': '3:4',
|
|
132
|
-
'4:3': '4:3',
|
|
133
|
-
'4:5': '4:5',
|
|
134
|
-
'5:4': '5:4',
|
|
135
|
-
'9:16': '9:16',
|
|
136
|
-
'16:9': '16:9',
|
|
137
|
-
'21:9': '21:9',
|
|
41
|
+
exports.GmailSendEmail200Provider = {
|
|
42
|
+
gmail: 'gmail',
|
|
138
43
|
};
|
|
139
44
|
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
140
|
-
exports.
|
|
141
|
-
|
|
45
|
+
exports.AnthropicCreateStreamBodyMessagesItemRole = {
|
|
46
|
+
user: 'user',
|
|
47
|
+
assistant: 'assistant',
|
|
48
|
+
system: 'system',
|
|
142
49
|
};
|
|
143
50
|
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
144
|
-
exports.
|
|
145
|
-
|
|
51
|
+
exports.AnthropicGenerateTextBodyMessagesItemRole = {
|
|
52
|
+
user: 'user',
|
|
53
|
+
assistant: 'assistant',
|
|
54
|
+
system: 'system',
|
|
146
55
|
};
|
|
147
56
|
const getIntegrationsAPI = () => {
|
|
148
57
|
/**
|
|
149
|
-
*
|
|
150
|
-
* @summary
|
|
58
|
+
* Stores a generated app user Anthropic API key for PerUser integration configs.
|
|
59
|
+
* @summary Store per-user Anthropic credentials
|
|
151
60
|
*/
|
|
152
|
-
const
|
|
153
|
-
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',
|
|
154
63
|
headers: { 'Content-Type': 'application/json', },
|
|
155
|
-
data:
|
|
64
|
+
data: anthropicSetUserCredentialsBody
|
|
156
65
|
});
|
|
157
66
|
};
|
|
158
67
|
/**
|
|
159
|
-
* Generate
|
|
160
|
-
* @summary Generate image from text prompt
|
|
68
|
+
* @summary Generate text with Anthropic
|
|
161
69
|
*/
|
|
162
|
-
const
|
|
163
|
-
return (0, http_client_1.customAxios)({ url: `/
|
|
70
|
+
const anthropicGenerateText = (anthropicGenerateTextBody) => {
|
|
71
|
+
return (0, http_client_1.customAxios)({ url: `/anthropic/generate-text`, method: 'POST',
|
|
164
72
|
headers: { 'Content-Type': 'application/json', },
|
|
165
|
-
data:
|
|
73
|
+
data: anthropicGenerateTextBody
|
|
166
74
|
});
|
|
167
75
|
};
|
|
168
76
|
/**
|
|
169
|
-
*
|
|
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
|
|
170
79
|
*/
|
|
171
|
-
const
|
|
172
|
-
return (0, http_client_1.customAxios)({ url: `/
|
|
80
|
+
const anthropicCreateStream = (anthropicCreateStreamBody) => {
|
|
81
|
+
return (0, http_client_1.customAxios)({ url: `/anthropic/create-stream`, method: 'POST',
|
|
173
82
|
headers: { 'Content-Type': 'application/json', },
|
|
174
|
-
data:
|
|
83
|
+
data: anthropicCreateStreamBody
|
|
175
84
|
});
|
|
176
85
|
};
|
|
177
86
|
/**
|
|
178
|
-
*
|
|
179
|
-
* @summary Stream text generation from LLM
|
|
87
|
+
* @summary Store per-user AWS S3 credentials
|
|
180
88
|
*/
|
|
181
|
-
const
|
|
182
|
-
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',
|
|
183
91
|
headers: { 'Content-Type': 'application/json', },
|
|
184
|
-
data:
|
|
92
|
+
data: awsS3SetUserCredentialsBody
|
|
185
93
|
});
|
|
186
94
|
};
|
|
187
95
|
/**
|
|
188
|
-
*
|
|
189
|
-
|
|
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
|
+
*/
|
|
125
|
+
const awsS3GenerateDownloadSignedUrl = (awsS3GenerateDownloadSignedUrlBody) => {
|
|
126
|
+
return (0, http_client_1.customAxios)({ url: `/awsS3/generate-download-signed-url`, method: 'POST',
|
|
127
|
+
headers: { 'Content-Type': 'application/json', },
|
|
128
|
+
data: awsS3GenerateDownloadSignedUrlBody
|
|
129
|
+
});
|
|
130
|
+
};
|
|
131
|
+
/**
|
|
132
|
+
* @summary Get file content as base64
|
|
133
|
+
*/
|
|
134
|
+
const awsS3GetData = (awsS3GetDataBody) => {
|
|
135
|
+
return (0, http_client_1.customAxios)({ url: `/awsS3/get-data`, method: 'POST',
|
|
136
|
+
headers: { 'Content-Type': 'application/json', },
|
|
137
|
+
data: awsS3GetDataBody
|
|
138
|
+
});
|
|
139
|
+
};
|
|
140
|
+
/**
|
|
141
|
+
* @summary Generate a signed URL for uploading
|
|
142
|
+
*/
|
|
143
|
+
const awsS3GenerateUploadSignedUrl = (awsS3GenerateUploadSignedUrlBody) => {
|
|
144
|
+
return (0, http_client_1.customAxios)({ url: `/awsS3/generate-upload-signed-url`, method: 'POST',
|
|
145
|
+
headers: { 'Content-Type': 'application/json', },
|
|
146
|
+
data: awsS3GenerateUploadSignedUrlBody
|
|
147
|
+
});
|
|
148
|
+
};
|
|
149
|
+
/**
|
|
150
|
+
* @summary Copy a file within storage
|
|
151
|
+
*/
|
|
152
|
+
const awsS3CopyFile = (awsS3CopyFileBody) => {
|
|
153
|
+
return (0, http_client_1.customAxios)({ url: `/awsS3/copy-file`, method: 'POST',
|
|
154
|
+
headers: { 'Content-Type': 'application/json', },
|
|
155
|
+
data: awsS3CopyFileBody
|
|
156
|
+
});
|
|
157
|
+
};
|
|
158
|
+
/**
|
|
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)
|
|
190
262
|
*/
|
|
191
|
-
const
|
|
192
|
-
return (0, http_client_1.customAxios)({ url: `/
|
|
263
|
+
const azureBlobStorageGetFileMetadata = (azureBlobStorageGetFileMetadataBody) => {
|
|
264
|
+
return (0, http_client_1.customAxios)({ url: `/azureBlobStorage/get-file-metadata`, method: 'POST',
|
|
193
265
|
headers: { 'Content-Type': 'application/json', },
|
|
194
|
-
data:
|
|
266
|
+
data: azureBlobStorageGetFileMetadataBody
|
|
195
267
|
});
|
|
196
268
|
};
|
|
197
269
|
/**
|
|
198
|
-
*
|
|
199
|
-
* @summary Get OAuth authorization URL
|
|
270
|
+
* @summary Upload a file via multipart/form-data
|
|
200
271
|
*/
|
|
201
|
-
const
|
|
202
|
-
|
|
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',
|
|
203
286
|
headers: { 'Content-Type': 'application/json', },
|
|
204
|
-
data:
|
|
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
|
|
205
298
|
});
|
|
206
299
|
};
|
|
207
300
|
/**
|
|
208
|
-
*
|
|
209
|
-
* @summary
|
|
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
|
|
210
303
|
*/
|
|
211
|
-
const
|
|
212
|
-
return (0, http_client_1.customAxios)({ url: `/
|
|
304
|
+
const gmailAuthStart = (gmailAuthStartBody) => {
|
|
305
|
+
return (0, http_client_1.customAxios)({ url: `/gmail/auth/start`, method: 'POST',
|
|
213
306
|
headers: { 'Content-Type': 'application/json', },
|
|
214
|
-
data:
|
|
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'
|
|
215
316
|
});
|
|
216
317
|
};
|
|
217
318
|
/**
|
|
218
|
-
*
|
|
219
|
-
* @summary
|
|
319
|
+
* Dummy Gmail send email endpoint that resolves user credentials and exercises the OAuth refresh/retry framework.
|
|
320
|
+
* @summary Send an email via Gmail
|
|
220
321
|
*/
|
|
221
|
-
const
|
|
222
|
-
return (0, http_client_1.customAxios)({ url: `/
|
|
322
|
+
const gmailSendEmail = (gmailSendEmailBody) => {
|
|
323
|
+
return (0, http_client_1.customAxios)({ url: `/gmail/send-email`, method: 'POST',
|
|
223
324
|
headers: { 'Content-Type': 'application/json', },
|
|
224
|
-
data:
|
|
325
|
+
data: gmailSendEmailBody
|
|
225
326
|
});
|
|
226
327
|
};
|
|
227
328
|
/**
|
|
228
|
-
*
|
|
229
|
-
* @summary Verify payment webhook signature
|
|
329
|
+
* @summary Store per-user Google Cloud Storage credentials
|
|
230
330
|
*/
|
|
231
|
-
const
|
|
232
|
-
return (0, http_client_1.customAxios)({ url: `/
|
|
331
|
+
const googleCloudStorageSetUserCredentials = (googleCloudStorageSetUserCredentialsBody) => {
|
|
332
|
+
return (0, http_client_1.customAxios)({ url: `/googleCloudStorage/set-user-credentials`, method: 'POST',
|
|
233
333
|
headers: { 'Content-Type': 'application/json', },
|
|
234
|
-
data:
|
|
334
|
+
data: googleCloudStorageSetUserCredentialsBody
|
|
235
335
|
});
|
|
236
336
|
};
|
|
237
337
|
/**
|
|
238
338
|
* @summary Upload data to storage
|
|
239
339
|
*/
|
|
240
|
-
const
|
|
241
|
-
return (0, http_client_1.customAxios)({ url: `/
|
|
340
|
+
const googleCloudStorageUploadData = (googleCloudStorageUploadDataBody) => {
|
|
341
|
+
return (0, http_client_1.customAxios)({ url: `/googleCloudStorage/upload-data`, method: 'POST',
|
|
242
342
|
headers: { 'Content-Type': 'application/json', },
|
|
243
|
-
data:
|
|
343
|
+
data: googleCloudStorageUploadDataBody
|
|
244
344
|
});
|
|
245
345
|
};
|
|
246
346
|
/**
|
|
247
347
|
* @summary Delete a file from storage
|
|
248
348
|
*/
|
|
249
|
-
const
|
|
250
|
-
return (0, http_client_1.customAxios)({ url: `/
|
|
349
|
+
const googleCloudStorageDeleteFile = (googleCloudStorageDeleteFileBody) => {
|
|
350
|
+
return (0, http_client_1.customAxios)({ url: `/googleCloudStorage/delete-file`, method: 'POST',
|
|
251
351
|
headers: { 'Content-Type': 'application/json', },
|
|
252
|
-
data:
|
|
352
|
+
data: googleCloudStorageDeleteFileBody
|
|
253
353
|
});
|
|
254
354
|
};
|
|
255
355
|
/**
|
|
256
356
|
* @summary Check if a document exists
|
|
257
357
|
*/
|
|
258
|
-
const
|
|
259
|
-
return (0, http_client_1.customAxios)({ url: `/
|
|
358
|
+
const googleCloudStorageDocumentExists = (googleCloudStorageDocumentExistsBody) => {
|
|
359
|
+
return (0, http_client_1.customAxios)({ url: `/googleCloudStorage/document-exists`, method: 'POST',
|
|
260
360
|
headers: { 'Content-Type': 'application/json', },
|
|
261
|
-
data:
|
|
361
|
+
data: googleCloudStorageDocumentExistsBody
|
|
262
362
|
});
|
|
263
363
|
};
|
|
264
364
|
/**
|
|
265
365
|
* @summary Generate a signed URL for downloading
|
|
266
366
|
*/
|
|
267
|
-
const
|
|
268
|
-
return (0, http_client_1.customAxios)({ url: `/
|
|
367
|
+
const googleCloudStorageGenerateDownloadSignedUrl = (googleCloudStorageGenerateDownloadSignedUrlBody) => {
|
|
368
|
+
return (0, http_client_1.customAxios)({ url: `/googleCloudStorage/generate-download-signed-url`, method: 'POST',
|
|
269
369
|
headers: { 'Content-Type': 'application/json', },
|
|
270
|
-
data:
|
|
370
|
+
data: googleCloudStorageGenerateDownloadSignedUrlBody
|
|
271
371
|
});
|
|
272
372
|
};
|
|
273
373
|
/**
|
|
274
374
|
* @summary Get file content as base64
|
|
275
375
|
*/
|
|
276
|
-
const
|
|
277
|
-
return (0, http_client_1.customAxios)({ url: `/
|
|
376
|
+
const googleCloudStorageGetData = (googleCloudStorageGetDataBody) => {
|
|
377
|
+
return (0, http_client_1.customAxios)({ url: `/googleCloudStorage/get-data`, method: 'POST',
|
|
278
378
|
headers: { 'Content-Type': 'application/json', },
|
|
279
|
-
data:
|
|
379
|
+
data: googleCloudStorageGetDataBody
|
|
280
380
|
});
|
|
281
381
|
};
|
|
282
382
|
/**
|
|
283
383
|
* @summary Generate a signed URL for uploading
|
|
284
384
|
*/
|
|
285
|
-
const
|
|
286
|
-
return (0, http_client_1.customAxios)({ url: `/
|
|
385
|
+
const googleCloudStorageGenerateUploadSignedUrl = (googleCloudStorageGenerateUploadSignedUrlBody) => {
|
|
386
|
+
return (0, http_client_1.customAxios)({ url: `/googleCloudStorage/generate-upload-signed-url`, method: 'POST',
|
|
287
387
|
headers: { 'Content-Type': 'application/json', },
|
|
288
|
-
data:
|
|
388
|
+
data: googleCloudStorageGenerateUploadSignedUrlBody
|
|
289
389
|
});
|
|
290
390
|
};
|
|
291
391
|
/**
|
|
292
392
|
* @summary Copy a file within storage
|
|
293
393
|
*/
|
|
294
|
-
const
|
|
295
|
-
return (0, http_client_1.customAxios)({ url: `/
|
|
394
|
+
const googleCloudStorageCopyFile = (googleCloudStorageCopyFileBody) => {
|
|
395
|
+
return (0, http_client_1.customAxios)({ url: `/googleCloudStorage/copy-file`, method: 'POST',
|
|
296
396
|
headers: { 'Content-Type': 'application/json', },
|
|
297
|
-
data:
|
|
397
|
+
data: googleCloudStorageCopyFileBody
|
|
298
398
|
});
|
|
299
399
|
};
|
|
300
400
|
/**
|
|
301
401
|
* @summary Get file metadata (e.g. size)
|
|
302
402
|
*/
|
|
303
|
-
const
|
|
304
|
-
return (0, http_client_1.customAxios)({ url: `/
|
|
403
|
+
const googleCloudStorageGetFileMetadata = (googleCloudStorageGetFileMetadataBody) => {
|
|
404
|
+
return (0, http_client_1.customAxios)({ url: `/googleCloudStorage/get-file-metadata`, method: 'POST',
|
|
305
405
|
headers: { 'Content-Type': 'application/json', },
|
|
306
|
-
data:
|
|
406
|
+
data: googleCloudStorageGetFileMetadataBody
|
|
307
407
|
});
|
|
308
408
|
};
|
|
309
409
|
/**
|
|
310
410
|
* @summary Upload a file via multipart/form-data
|
|
311
411
|
*/
|
|
312
|
-
const
|
|
412
|
+
const googleCloudStorageUploadFile = (googleCloudStorageUploadFileBody) => {
|
|
313
413
|
const formData = new FormData();
|
|
314
|
-
formData.append('file',
|
|
315
|
-
formData.append('destinationKey',
|
|
316
|
-
|
|
317
|
-
formData.append('provider', uploadFileBody.provider);
|
|
318
|
-
}
|
|
319
|
-
return (0, http_client_1.customAxios)({ url: `/storage/uploadFile`, method: 'POST',
|
|
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',
|
|
320
417
|
headers: { 'Content-Type': 'multipart/form-data', },
|
|
321
418
|
data: formData
|
|
322
419
|
});
|
|
323
420
|
};
|
|
324
421
|
/**
|
|
325
|
-
* @summary Stream file content
|
|
422
|
+
* @summary Stream file content
|
|
326
423
|
*/
|
|
327
|
-
const
|
|
328
|
-
return (0, http_client_1.customAxios)({ url: `/
|
|
424
|
+
const googleCloudStorageCreateReadStream = (googleCloudStorageCreateReadStreamBody) => {
|
|
425
|
+
return (0, http_client_1.customAxios)({ url: `/googleCloudStorage/create-read-stream`, method: 'POST',
|
|
329
426
|
headers: { 'Content-Type': 'application/json', },
|
|
330
|
-
data:
|
|
331
|
-
responseType: 'blob'
|
|
427
|
+
data: googleCloudStorageCreateReadStreamBody
|
|
332
428
|
});
|
|
333
429
|
};
|
|
334
430
|
/**
|
|
335
|
-
* @summary Stream upload
|
|
431
|
+
* @summary Stream upload
|
|
336
432
|
*/
|
|
337
|
-
const
|
|
338
|
-
return (0, http_client_1.customAxios)({ url: `/
|
|
433
|
+
const googleCloudStorageCreateWriteStream = (googleCloudStorageCreateWriteStreamBody, params) => {
|
|
434
|
+
return (0, http_client_1.customAxios)({ url: `/googleCloudStorage/create-write-stream`, method: 'POST',
|
|
339
435
|
headers: { 'Content-Type': 'application/octet-stream', },
|
|
340
|
-
data:
|
|
436
|
+
data: googleCloudStorageCreateWriteStreamBody,
|
|
341
437
|
params
|
|
342
438
|
});
|
|
343
439
|
};
|
|
344
|
-
|
|
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
|
|
561
|
+
*/
|
|
562
|
+
const twilioWhatsappCreateMessage = (twilioWhatsappCreateMessageBody) => {
|
|
563
|
+
return (0, http_client_1.customAxios)({ url: `/twilioWhatsapp/create-message`, method: 'POST',
|
|
564
|
+
headers: { 'Content-Type': 'application/json', },
|
|
565
|
+
data: twilioWhatsappCreateMessageBody
|
|
566
|
+
});
|
|
567
|
+
};
|
|
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 };
|
|
345
569
|
};
|
|
346
570
|
exports.getIntegrationsAPI = getIntegrationsAPI;
|
|
347
571
|
//# sourceMappingURL=generated-api.js.map
|