@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.d.ts
CHANGED
|
@@ -1,32 +1,77 @@
|
|
|
1
|
-
export type
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export type TwilioWhatsappCreateMessage500 = {
|
|
2
|
+
errorCode?: string;
|
|
3
|
+
message?: string;
|
|
4
|
+
status?: number;
|
|
5
|
+
};
|
|
6
|
+
export type TwilioWhatsappCreateMessage400 = {
|
|
7
|
+
details?: string;
|
|
8
|
+
errorCode?: string;
|
|
9
|
+
message?: string;
|
|
10
|
+
status?: number;
|
|
11
|
+
};
|
|
12
|
+
export type TwilioWhatsappCreateMessage200 = {
|
|
13
|
+
/** Message body */
|
|
14
|
+
body?: string;
|
|
15
|
+
/** Creation date */
|
|
16
|
+
dateCreated?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Error code if any
|
|
19
|
+
* @nullable
|
|
20
|
+
*/
|
|
21
|
+
errorCode?: number | null;
|
|
22
|
+
/**
|
|
23
|
+
* Error message if any
|
|
24
|
+
* @nullable
|
|
25
|
+
*/
|
|
26
|
+
errorMessage?: string | null;
|
|
27
|
+
/** Sender number */
|
|
28
|
+
from?: string;
|
|
29
|
+
/** Message SID */
|
|
30
|
+
sid: string;
|
|
31
|
+
/** Message status */
|
|
32
|
+
status: string;
|
|
33
|
+
/** Recipient number */
|
|
34
|
+
to: string;
|
|
4
35
|
};
|
|
5
|
-
|
|
36
|
+
/**
|
|
37
|
+
* Variables for content templates (optional)
|
|
38
|
+
*/
|
|
39
|
+
export type TwilioWhatsappCreateMessageBodyContentVariables = {
|
|
40
|
+
[key: string]: string;
|
|
41
|
+
};
|
|
42
|
+
export type TwilioWhatsappCreateMessageBody = {
|
|
43
|
+
/** Message body text */
|
|
44
|
+
body?: string;
|
|
45
|
+
/** Content SID for template messages (optional) */
|
|
46
|
+
contentSid?: string;
|
|
47
|
+
/** Variables for content templates (optional) */
|
|
48
|
+
contentVariables?: TwilioWhatsappCreateMessageBodyContentVariables;
|
|
49
|
+
/** Sender phone number. Use E.164 or a full whatsapp:+123 format. */
|
|
50
|
+
from?: string;
|
|
51
|
+
/** Media URLs to attach (optional) */
|
|
52
|
+
mediaUrls?: string[];
|
|
53
|
+
/** Messaging Service SID (optional if From is provided) */
|
|
54
|
+
messagingServiceSid?: string;
|
|
55
|
+
/** Webhook URL for message status callbacks (optional) */
|
|
56
|
+
statusCallback?: string;
|
|
57
|
+
/** Recipient phone number. Use E.164 or a full whatsapp:+123 format. */
|
|
58
|
+
to: string;
|
|
59
|
+
/** Required when the Twilio WhatsApp integration config type is PerUser. */
|
|
60
|
+
userId?: string;
|
|
61
|
+
};
|
|
62
|
+
export type StripeVerifyWebhook200 = {
|
|
6
63
|
/** Type of webhook event if valid */
|
|
7
64
|
eventType?: string;
|
|
8
65
|
/** Whether the webhook signature is valid */
|
|
9
66
|
valid: boolean;
|
|
10
67
|
};
|
|
11
|
-
|
|
12
|
-
* Payment provider (Stripe)
|
|
13
|
-
*/
|
|
14
|
-
export type VerifyWebhookBodyProvider = typeof VerifyWebhookBodyProvider[keyof typeof VerifyWebhookBodyProvider];
|
|
15
|
-
export declare const VerifyWebhookBodyProvider: {
|
|
16
|
-
readonly Stripe: "Stripe";
|
|
17
|
-
};
|
|
18
|
-
export type VerifyWebhookBody = {
|
|
68
|
+
export type StripeVerifyWebhookBody = {
|
|
19
69
|
/** Raw webhook payload as string */
|
|
20
70
|
payload: string;
|
|
21
|
-
/**
|
|
22
|
-
provider: VerifyWebhookBodyProvider;
|
|
23
|
-
/** Webhook signature from the payment provider */
|
|
71
|
+
/** Webhook signature from Stripe */
|
|
24
72
|
signature: string;
|
|
25
73
|
};
|
|
26
|
-
export type
|
|
27
|
-
error?: string;
|
|
28
|
-
};
|
|
29
|
-
export type CreateCheckoutSession200 = {
|
|
74
|
+
export type StripeCreateCheckoutSession200 = {
|
|
30
75
|
/** Total amount for the checkout session */
|
|
31
76
|
amountTotal: number;
|
|
32
77
|
/** Currency code */
|
|
@@ -38,20 +83,13 @@ export type CreateCheckoutSession200 = {
|
|
|
38
83
|
/** URL to redirect customer to complete payment */
|
|
39
84
|
url: string;
|
|
40
85
|
};
|
|
41
|
-
/**
|
|
42
|
-
* Payment provider (Stripe)
|
|
43
|
-
*/
|
|
44
|
-
export type CreateCheckoutSessionBodyProvider = typeof CreateCheckoutSessionBodyProvider[keyof typeof CreateCheckoutSessionBodyProvider];
|
|
45
|
-
export declare const CreateCheckoutSessionBodyProvider: {
|
|
46
|
-
readonly Stripe: "Stripe";
|
|
47
|
-
};
|
|
48
86
|
/**
|
|
49
87
|
* Additional metadata to attach to the checkout session
|
|
50
88
|
*/
|
|
51
|
-
export type
|
|
89
|
+
export type StripeCreateCheckoutSessionBodyMetadata = {
|
|
52
90
|
[key: string]: string;
|
|
53
91
|
};
|
|
54
|
-
export type
|
|
92
|
+
export type StripeCreateCheckoutSessionBody = {
|
|
55
93
|
/**
|
|
56
94
|
* Payment amount in the smallest currency unit (e.g., cents for USD)
|
|
57
95
|
* @minimum 0
|
|
@@ -69,160 +107,73 @@ export type CreateCheckoutSessionBody = {
|
|
|
69
107
|
/** Customer email address */
|
|
70
108
|
customerEmail?: string;
|
|
71
109
|
/** Additional metadata to attach to the checkout session */
|
|
72
|
-
metadata?:
|
|
110
|
+
metadata?: StripeCreateCheckoutSessionBodyMetadata;
|
|
73
111
|
/** Name of the product or service */
|
|
74
112
|
productName: string;
|
|
75
|
-
/** Payment provider (Stripe) */
|
|
76
|
-
provider: CreateCheckoutSessionBodyProvider;
|
|
77
113
|
/** URL to redirect to after successful payment */
|
|
78
114
|
successUrl: string;
|
|
79
115
|
};
|
|
80
|
-
export type
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
* Original provider response
|
|
85
|
-
*/
|
|
86
|
-
export type HandleOAuthCallback200RawProfile = {
|
|
87
|
-
[key: string]: unknown | null;
|
|
88
|
-
};
|
|
89
|
-
export type HandleOAuthCallback200 = {
|
|
90
|
-
/** User email address */
|
|
91
|
-
email: string;
|
|
92
|
-
/** User full name */
|
|
93
|
-
name?: string;
|
|
94
|
-
/** User profile picture URL */
|
|
95
|
-
picture?: string;
|
|
96
|
-
/** Auth provider used (Google) */
|
|
97
|
-
provider: string;
|
|
98
|
-
/** Unique ID from the provider */
|
|
99
|
-
providerId: string;
|
|
100
|
-
/** Original provider response */
|
|
101
|
-
rawProfile?: HandleOAuthCallback200RawProfile;
|
|
102
|
-
};
|
|
103
|
-
/**
|
|
104
|
-
* Auth provider used (Google)
|
|
105
|
-
*/
|
|
106
|
-
export type HandleOAuthCallbackBodyProvider = typeof HandleOAuthCallbackBodyProvider[keyof typeof HandleOAuthCallbackBodyProvider];
|
|
107
|
-
export declare const HandleOAuthCallbackBodyProvider: {
|
|
108
|
-
readonly Google: "Google";
|
|
109
|
-
};
|
|
110
|
-
export type HandleOAuthCallbackBody = {
|
|
111
|
-
/** Authorization code from OAuth provider */
|
|
112
|
-
code: string;
|
|
113
|
-
/** Auth provider used (Google) */
|
|
114
|
-
provider: HandleOAuthCallbackBodyProvider;
|
|
115
|
-
/** State parameter from OAuth flow */
|
|
116
|
-
state?: string;
|
|
117
|
-
};
|
|
118
|
-
export type GetAuthorizationUrl500 = {
|
|
119
|
-
error?: string;
|
|
120
|
-
};
|
|
121
|
-
export type GetAuthorizationUrl200 = {
|
|
122
|
-
/** Authorization URL to redirect user to */
|
|
123
|
-
url: string;
|
|
124
|
-
};
|
|
125
|
-
/**
|
|
126
|
-
* Auth provider used (Google)
|
|
127
|
-
*/
|
|
128
|
-
export type GetAuthorizationUrlBodyProvider = typeof GetAuthorizationUrlBodyProvider[keyof typeof GetAuthorizationUrlBodyProvider];
|
|
129
|
-
export declare const GetAuthorizationUrlBodyProvider: {
|
|
130
|
-
readonly Google: "Google";
|
|
116
|
+
export type ResendSendEmail200 = {
|
|
117
|
+
/** Provider message ID */
|
|
118
|
+
id?: string;
|
|
131
119
|
};
|
|
132
|
-
export type
|
|
133
|
-
/**
|
|
134
|
-
|
|
135
|
-
/**
|
|
136
|
-
|
|
137
|
-
/**
|
|
138
|
-
|
|
120
|
+
export type ResendSendEmailBodyAttachmentsItem = {
|
|
121
|
+
/** Base64-encoded attachment content */
|
|
122
|
+
content: string;
|
|
123
|
+
/** MIME type of the attachment */
|
|
124
|
+
contentType?: string;
|
|
125
|
+
/** Attachment filename */
|
|
126
|
+
filename: string;
|
|
139
127
|
};
|
|
140
|
-
export type
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
128
|
+
export type ResendSendEmailBody = {
|
|
129
|
+
/** Email attachments */
|
|
130
|
+
attachments?: ResendSendEmailBodyAttachmentsItem[];
|
|
131
|
+
/** BCC recipients */
|
|
132
|
+
bcc?: string[];
|
|
133
|
+
/** CC recipients */
|
|
134
|
+
cc?: string[];
|
|
135
|
+
/** HTML body */
|
|
136
|
+
html?: string;
|
|
137
|
+
/** Reply-to addresses */
|
|
138
|
+
replyTo?: string[];
|
|
139
|
+
/** Email subject */
|
|
140
|
+
subject: string;
|
|
141
|
+
/** Plain text body */
|
|
142
|
+
text?: string;
|
|
143
|
+
/**
|
|
144
|
+
* Recipient email addresses
|
|
145
|
+
* @minItems 1
|
|
146
|
+
*/
|
|
147
|
+
to: string[];
|
|
148
|
+
/** Required when the Resend integration config type is PerUser. */
|
|
149
|
+
userId?: string;
|
|
144
150
|
};
|
|
145
|
-
export type
|
|
146
|
-
|
|
147
|
-
errorCode?: string;
|
|
148
|
-
message?: string;
|
|
149
|
-
status?: number;
|
|
151
|
+
export type ResendSetUserCredentials200 = {
|
|
152
|
+
userId: string;
|
|
150
153
|
};
|
|
151
|
-
export type
|
|
152
|
-
/** Message body */
|
|
153
|
-
body?: string;
|
|
154
|
-
/** Creation date */
|
|
155
|
-
dateCreated?: string;
|
|
154
|
+
export type ResendSetUserCredentialsBody = {
|
|
156
155
|
/**
|
|
157
|
-
*
|
|
158
|
-
* @
|
|
156
|
+
* Resend API key for this generated app user.
|
|
157
|
+
* @minLength 1
|
|
159
158
|
*/
|
|
160
|
-
|
|
159
|
+
apiKey: string;
|
|
161
160
|
/**
|
|
162
|
-
*
|
|
163
|
-
* @
|
|
161
|
+
* Optional per-user from address. Falls back to the integration config from address.
|
|
162
|
+
* @minLength 1
|
|
164
163
|
*/
|
|
165
|
-
errorMessage?: string | null;
|
|
166
|
-
/** Sender number */
|
|
167
|
-
from?: string;
|
|
168
|
-
/** Message SID */
|
|
169
|
-
sid: string;
|
|
170
|
-
/** Message status */
|
|
171
|
-
status: string;
|
|
172
|
-
/** Recipient number */
|
|
173
|
-
to: string;
|
|
174
|
-
};
|
|
175
|
-
/**
|
|
176
|
-
* Messaging provider to use
|
|
177
|
-
*/
|
|
178
|
-
export type CreateMessageBodyProvider = typeof CreateMessageBodyProvider[keyof typeof CreateMessageBodyProvider];
|
|
179
|
-
export declare const CreateMessageBodyProvider: {
|
|
180
|
-
readonly TwilioWhatsApp: "TwilioWhatsApp";
|
|
181
|
-
};
|
|
182
|
-
/**
|
|
183
|
-
* Variables for content templates (optional)
|
|
184
|
-
*/
|
|
185
|
-
export type CreateMessageBodyContentVariables = {
|
|
186
|
-
[key: string]: string;
|
|
187
|
-
};
|
|
188
|
-
export type CreateMessageBody = {
|
|
189
|
-
/** Message body text */
|
|
190
|
-
body?: string;
|
|
191
|
-
/** Content SID for template messages (optional) */
|
|
192
|
-
contentSid?: string;
|
|
193
|
-
/** Variables for content templates (optional) */
|
|
194
|
-
contentVariables?: CreateMessageBodyContentVariables;
|
|
195
|
-
/** Sender phone number. Use E.164 or a full whatsapp:+123 format. */
|
|
196
164
|
from?: string;
|
|
197
|
-
/**
|
|
198
|
-
|
|
199
|
-
/** Messaging Service SID (optional if From is provided) */
|
|
200
|
-
messagingServiceSid?: string;
|
|
201
|
-
/** Messaging provider to use */
|
|
202
|
-
provider: CreateMessageBodyProvider;
|
|
203
|
-
/** Webhook URL for message status callbacks (optional) */
|
|
204
|
-
statusCallback?: string;
|
|
205
|
-
/** Recipient phone number. Use E.164 or a full whatsapp:+123 format. */
|
|
206
|
-
to: string;
|
|
165
|
+
/** Existing integration user id. Omit to create a new integration user credential record. */
|
|
166
|
+
userId?: string;
|
|
207
167
|
};
|
|
208
|
-
export type
|
|
168
|
+
export type OpenaiCreateStream500 = {
|
|
209
169
|
error?: string;
|
|
210
170
|
};
|
|
211
|
-
/**
|
|
212
|
-
* LLM provider to use
|
|
213
|
-
*/
|
|
214
|
-
export type CreateStreamBodyProvider = typeof CreateStreamBodyProvider[keyof typeof CreateStreamBodyProvider];
|
|
215
|
-
export declare const CreateStreamBodyProvider: {
|
|
216
|
-
readonly Anthropic: "Anthropic";
|
|
217
|
-
readonly OpenAI: "OpenAI";
|
|
218
|
-
readonly Google: "Google";
|
|
219
|
-
};
|
|
220
171
|
/**
|
|
221
172
|
* Schema for structured output
|
|
222
173
|
* @nullable
|
|
223
174
|
*/
|
|
224
|
-
export type
|
|
225
|
-
export type
|
|
175
|
+
export type OpenaiCreateStreamBodyOutputSchema = unknown | null;
|
|
176
|
+
export type OpenaiCreateStreamBodyOptions = {
|
|
226
177
|
/**
|
|
227
178
|
* Maximum tokens to generate
|
|
228
179
|
* @minimum 0
|
|
@@ -242,35 +193,33 @@ export type CreateStreamBodyOptions = {
|
|
|
242
193
|
*/
|
|
243
194
|
topP?: number;
|
|
244
195
|
};
|
|
245
|
-
export type
|
|
196
|
+
export type OpenaiCreateStreamBody = {
|
|
246
197
|
/**
|
|
247
198
|
* Array of chat messages
|
|
248
199
|
* @minItems 1
|
|
249
200
|
*/
|
|
250
|
-
messages:
|
|
251
|
-
/** Specific model to use (defaults to
|
|
201
|
+
messages: OpenaiCreateStreamBodyMessagesItem[];
|
|
202
|
+
/** Specific model to use (defaults to resolved OpenAI model) */
|
|
252
203
|
model?: string;
|
|
253
|
-
options?:
|
|
204
|
+
options?: OpenaiCreateStreamBodyOptions;
|
|
254
205
|
/**
|
|
255
206
|
* Schema for structured output
|
|
256
207
|
* @nullable
|
|
257
208
|
*/
|
|
258
|
-
outputSchema?:
|
|
259
|
-
/**
|
|
260
|
-
|
|
261
|
-
/** Whether to stream the response */
|
|
262
|
-
stream?: boolean;
|
|
209
|
+
outputSchema?: OpenaiCreateStreamBodyOutputSchema;
|
|
210
|
+
/** Required when the OpenAI integration config type is PerUser. */
|
|
211
|
+
userId?: string;
|
|
263
212
|
};
|
|
264
213
|
/**
|
|
265
214
|
* Role of the message sender
|
|
266
215
|
*/
|
|
267
|
-
export type
|
|
268
|
-
export declare const
|
|
216
|
+
export type OpenaiCreateStreamBodyMessagesItemRole = typeof OpenaiCreateStreamBodyMessagesItemRole[keyof typeof OpenaiCreateStreamBodyMessagesItemRole];
|
|
217
|
+
export declare const OpenaiCreateStreamBodyMessagesItemRole: {
|
|
269
218
|
readonly user: "user";
|
|
270
219
|
readonly assistant: "assistant";
|
|
271
220
|
readonly system: "system";
|
|
272
221
|
};
|
|
273
|
-
export type
|
|
222
|
+
export type OpenaiCreateStreamBodyMessagesItemPartsItem = {
|
|
274
223
|
/** Filename for file parts */
|
|
275
224
|
filename?: string;
|
|
276
225
|
/** MIME type of the media */
|
|
@@ -282,18 +231,18 @@ export type CreateStreamBodyMessagesItemPartsItem = {
|
|
|
282
231
|
/** URL for file or media */
|
|
283
232
|
url?: string;
|
|
284
233
|
};
|
|
285
|
-
export type
|
|
234
|
+
export type OpenaiCreateStreamBodyMessagesItem = {
|
|
286
235
|
/** Content of the message */
|
|
287
236
|
content?: string;
|
|
288
|
-
/** Multi-part message content
|
|
289
|
-
parts?:
|
|
237
|
+
/** Multi-part message content */
|
|
238
|
+
parts?: OpenaiCreateStreamBodyMessagesItemPartsItem[];
|
|
290
239
|
/** Role of the message sender */
|
|
291
|
-
role:
|
|
240
|
+
role: OpenaiCreateStreamBodyMessagesItemRole;
|
|
292
241
|
};
|
|
293
242
|
/**
|
|
294
243
|
* Token usage information
|
|
295
244
|
*/
|
|
296
|
-
export type
|
|
245
|
+
export type OpenaiGenerateText200Usage = {
|
|
297
246
|
completionTokens: number;
|
|
298
247
|
promptTokens: number;
|
|
299
248
|
totalTokens: number;
|
|
@@ -302,35 +251,26 @@ export type GenerateText200Usage = {
|
|
|
302
251
|
* Structured output if schema provided
|
|
303
252
|
* @nullable
|
|
304
253
|
*/
|
|
305
|
-
export type
|
|
306
|
-
export type
|
|
254
|
+
export type OpenaiGenerateText200Output = unknown | null;
|
|
255
|
+
export type OpenaiGenerateText200 = {
|
|
307
256
|
/** Reason for completion */
|
|
308
257
|
finishReason: string;
|
|
309
258
|
/**
|
|
310
259
|
* Structured output if schema provided
|
|
311
260
|
* @nullable
|
|
312
261
|
*/
|
|
313
|
-
output?:
|
|
262
|
+
output?: OpenaiGenerateText200Output;
|
|
314
263
|
/** Generated text content */
|
|
315
264
|
text: string;
|
|
316
265
|
/** Token usage information */
|
|
317
|
-
usage:
|
|
318
|
-
};
|
|
319
|
-
/**
|
|
320
|
-
* LLM provider to use
|
|
321
|
-
*/
|
|
322
|
-
export type GenerateTextBodyProvider = typeof GenerateTextBodyProvider[keyof typeof GenerateTextBodyProvider];
|
|
323
|
-
export declare const GenerateTextBodyProvider: {
|
|
324
|
-
readonly Anthropic: "Anthropic";
|
|
325
|
-
readonly OpenAI: "OpenAI";
|
|
326
|
-
readonly Google: "Google";
|
|
266
|
+
usage: OpenaiGenerateText200Usage;
|
|
327
267
|
};
|
|
328
268
|
/**
|
|
329
269
|
* Schema for structured output
|
|
330
270
|
* @nullable
|
|
331
271
|
*/
|
|
332
|
-
export type
|
|
333
|
-
export type
|
|
272
|
+
export type OpenaiGenerateTextBodyOutputSchema = unknown | null;
|
|
273
|
+
export type OpenaiGenerateTextBodyOptions = {
|
|
334
274
|
/**
|
|
335
275
|
* Maximum tokens to generate
|
|
336
276
|
* @minimum 0
|
|
@@ -350,35 +290,33 @@ export type GenerateTextBodyOptions = {
|
|
|
350
290
|
*/
|
|
351
291
|
topP?: number;
|
|
352
292
|
};
|
|
353
|
-
export type
|
|
293
|
+
export type OpenaiGenerateTextBody = {
|
|
354
294
|
/**
|
|
355
295
|
* Array of chat messages
|
|
356
296
|
* @minItems 1
|
|
357
297
|
*/
|
|
358
|
-
messages:
|
|
359
|
-
/** Specific model to use (defaults to
|
|
298
|
+
messages: OpenaiGenerateTextBodyMessagesItem[];
|
|
299
|
+
/** Specific model to use (defaults to resolved OpenAI model) */
|
|
360
300
|
model?: string;
|
|
361
|
-
options?:
|
|
301
|
+
options?: OpenaiGenerateTextBodyOptions;
|
|
362
302
|
/**
|
|
363
303
|
* Schema for structured output
|
|
364
304
|
* @nullable
|
|
365
305
|
*/
|
|
366
|
-
outputSchema?:
|
|
367
|
-
/**
|
|
368
|
-
|
|
369
|
-
/** Whether to stream the response */
|
|
370
|
-
stream?: boolean;
|
|
306
|
+
outputSchema?: OpenaiGenerateTextBodyOutputSchema;
|
|
307
|
+
/** Required when the OpenAI integration config type is PerUser. */
|
|
308
|
+
userId?: string;
|
|
371
309
|
};
|
|
372
310
|
/**
|
|
373
311
|
* Role of the message sender
|
|
374
312
|
*/
|
|
375
|
-
export type
|
|
376
|
-
export declare const
|
|
313
|
+
export type OpenaiGenerateTextBodyMessagesItemRole = typeof OpenaiGenerateTextBodyMessagesItemRole[keyof typeof OpenaiGenerateTextBodyMessagesItemRole];
|
|
314
|
+
export declare const OpenaiGenerateTextBodyMessagesItemRole: {
|
|
377
315
|
readonly user: "user";
|
|
378
316
|
readonly assistant: "assistant";
|
|
379
317
|
readonly system: "system";
|
|
380
318
|
};
|
|
381
|
-
export type
|
|
319
|
+
export type OpenaiGenerateTextBodyMessagesItemPartsItem = {
|
|
382
320
|
/** Filename for file parts */
|
|
383
321
|
filename?: string;
|
|
384
322
|
/** MIME type of the media */
|
|
@@ -390,137 +328,1011 @@ export type GenerateTextBodyMessagesItemPartsItem = {
|
|
|
390
328
|
/** URL for file or media */
|
|
391
329
|
url?: string;
|
|
392
330
|
};
|
|
393
|
-
export type
|
|
331
|
+
export type OpenaiGenerateTextBodyMessagesItem = {
|
|
394
332
|
/** Content of the message */
|
|
395
333
|
content?: string;
|
|
396
|
-
/** Multi-part message content
|
|
397
|
-
parts?:
|
|
334
|
+
/** Multi-part message content */
|
|
335
|
+
parts?: OpenaiGenerateTextBodyMessagesItemPartsItem[];
|
|
398
336
|
/** Role of the message sender */
|
|
399
|
-
role:
|
|
337
|
+
role: OpenaiGenerateTextBodyMessagesItemRole;
|
|
400
338
|
};
|
|
401
|
-
export type
|
|
402
|
-
|
|
339
|
+
export type OpenaiSetUserCredentials200 = {
|
|
340
|
+
userId: string;
|
|
403
341
|
};
|
|
404
|
-
export type
|
|
405
|
-
/**
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
342
|
+
export type OpenaiSetUserCredentialsBody = {
|
|
343
|
+
/**
|
|
344
|
+
* OpenAI API key for this generated app user.
|
|
345
|
+
* @minLength 1
|
|
346
|
+
*/
|
|
347
|
+
apiKey: string;
|
|
348
|
+
/**
|
|
349
|
+
* Optional per-user default OpenAI model.
|
|
350
|
+
* @minLength 1
|
|
351
|
+
*/
|
|
352
|
+
model?: string;
|
|
353
|
+
/** Existing integration user id. Omit to create a new integration user credential record. */
|
|
354
|
+
userId?: string;
|
|
413
355
|
};
|
|
414
356
|
/**
|
|
415
|
-
*
|
|
357
|
+
* Original provider response
|
|
416
358
|
*/
|
|
417
|
-
export type
|
|
418
|
-
|
|
419
|
-
readonly Google: "Google";
|
|
359
|
+
export type GoogleOAuthHandleOauthCallback200RawProfile = {
|
|
360
|
+
[key: string]: unknown | null;
|
|
420
361
|
};
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
/**
|
|
439
|
-
|
|
440
|
-
/**
|
|
441
|
-
|
|
442
|
-
/**
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
/**
|
|
447
|
-
|
|
448
|
-
};
|
|
449
|
-
export type
|
|
450
|
-
|
|
362
|
+
export type GoogleOAuthHandleOauthCallback200 = {
|
|
363
|
+
/** User email address */
|
|
364
|
+
email: string;
|
|
365
|
+
/** User full name */
|
|
366
|
+
name?: string;
|
|
367
|
+
/** User profile picture URL */
|
|
368
|
+
picture?: string;
|
|
369
|
+
/** Auth provider used (Google) */
|
|
370
|
+
provider: string;
|
|
371
|
+
/** Unique ID from the provider */
|
|
372
|
+
providerId: string;
|
|
373
|
+
/** Original provider response */
|
|
374
|
+
rawProfile?: GoogleOAuthHandleOauthCallback200RawProfile;
|
|
375
|
+
};
|
|
376
|
+
export type GoogleOAuthHandleOauthCallbackBody = {
|
|
377
|
+
/** Required for PerUser Google OAuth configs. Ignored for Shared configs. */
|
|
378
|
+
clientId?: string;
|
|
379
|
+
/** Required for PerUser Google OAuth configs. Ignored for Shared configs. */
|
|
380
|
+
clientSecret?: string;
|
|
381
|
+
/** Authorization code from Google OAuth */
|
|
382
|
+
code: string;
|
|
383
|
+
/** State parameter from OAuth flow */
|
|
384
|
+
state?: string;
|
|
385
|
+
};
|
|
386
|
+
export type GoogleOAuthGetAuthorizationUrl200 = {
|
|
387
|
+
/** Authorization URL to redirect user to */
|
|
388
|
+
url: string;
|
|
389
|
+
};
|
|
390
|
+
export type GoogleOAuthGetAuthorizationUrlBody = {
|
|
391
|
+
/** Required for PerUser Google OAuth configs. Ignored for Shared configs. */
|
|
392
|
+
clientId?: string;
|
|
393
|
+
/** Required for PerUser Google OAuth configs. Ignored for Shared configs. */
|
|
394
|
+
clientSecret?: string;
|
|
395
|
+
/** OAuth scopes to request (default: ["openid", "email", "profile"]) */
|
|
396
|
+
scope?: string[];
|
|
397
|
+
/** State parameter for OAuth flow */
|
|
398
|
+
state?: string;
|
|
451
399
|
};
|
|
452
|
-
export type
|
|
400
|
+
export type GoogleGenerativeAICreateStream500 = {
|
|
453
401
|
error?: string;
|
|
454
402
|
};
|
|
455
403
|
/**
|
|
456
|
-
*
|
|
404
|
+
* Schema for structured output
|
|
405
|
+
* @nullable
|
|
457
406
|
*/
|
|
458
|
-
export type
|
|
459
|
-
export
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
407
|
+
export type GoogleGenerativeAICreateStreamBodyOutputSchema = unknown | null;
|
|
408
|
+
export type GoogleGenerativeAICreateStreamBodyOptions = {
|
|
409
|
+
/**
|
|
410
|
+
* Maximum tokens to generate
|
|
411
|
+
* @minimum 0
|
|
412
|
+
* @exclusiveMinimum
|
|
413
|
+
*/
|
|
414
|
+
maxTokens?: number;
|
|
415
|
+
/**
|
|
416
|
+
* Sampling temperature (0-2)
|
|
417
|
+
* @minimum 0
|
|
418
|
+
* @maximum 2
|
|
419
|
+
*/
|
|
420
|
+
temperature?: number;
|
|
421
|
+
/**
|
|
422
|
+
* Top-p sampling parameter
|
|
423
|
+
* @minimum 0
|
|
424
|
+
* @maximum 1
|
|
425
|
+
*/
|
|
426
|
+
topP?: number;
|
|
467
427
|
};
|
|
468
428
|
/**
|
|
469
|
-
*
|
|
429
|
+
* Role of the message sender
|
|
470
430
|
*/
|
|
471
|
-
export type
|
|
472
|
-
export declare const
|
|
473
|
-
readonly
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
/** Base64-encoded attachment content */
|
|
477
|
-
content: string;
|
|
478
|
-
/** MIME type of the attachment */
|
|
479
|
-
contentType?: string;
|
|
480
|
-
/** Attachment filename */
|
|
481
|
-
filename: string;
|
|
431
|
+
export type GoogleGenerativeAICreateStreamBodyMessagesItemRole = typeof GoogleGenerativeAICreateStreamBodyMessagesItemRole[keyof typeof GoogleGenerativeAICreateStreamBodyMessagesItemRole];
|
|
432
|
+
export declare const GoogleGenerativeAICreateStreamBodyMessagesItemRole: {
|
|
433
|
+
readonly user: "user";
|
|
434
|
+
readonly assistant: "assistant";
|
|
435
|
+
readonly system: "system";
|
|
482
436
|
};
|
|
483
|
-
export type
|
|
484
|
-
/**
|
|
485
|
-
|
|
486
|
-
/**
|
|
487
|
-
|
|
488
|
-
/**
|
|
489
|
-
|
|
490
|
-
/**
|
|
437
|
+
export type GoogleGenerativeAICreateStreamBodyMessagesItemPartsItem = {
|
|
438
|
+
/** Filename for file parts */
|
|
439
|
+
filename?: string;
|
|
440
|
+
/** MIME type of the media */
|
|
441
|
+
mediaType?: string;
|
|
442
|
+
/** Text content */
|
|
443
|
+
text?: string;
|
|
444
|
+
/** Type of message part (text, file, etc.) */
|
|
445
|
+
type: string;
|
|
446
|
+
/** URL for file or media */
|
|
447
|
+
url?: string;
|
|
448
|
+
};
|
|
449
|
+
export type GoogleGenerativeAICreateStreamBodyMessagesItem = {
|
|
450
|
+
/** Content of the message */
|
|
451
|
+
content?: string;
|
|
452
|
+
/** Multi-part message content */
|
|
453
|
+
parts?: GoogleGenerativeAICreateStreamBodyMessagesItemPartsItem[];
|
|
454
|
+
/** Role of the message sender */
|
|
455
|
+
role: GoogleGenerativeAICreateStreamBodyMessagesItemRole;
|
|
456
|
+
};
|
|
457
|
+
export type GoogleGenerativeAICreateStreamBody = {
|
|
458
|
+
/**
|
|
459
|
+
* Array of chat messages
|
|
460
|
+
* @minItems 1
|
|
461
|
+
*/
|
|
462
|
+
messages: GoogleGenerativeAICreateStreamBodyMessagesItem[];
|
|
463
|
+
/** Specific model to use (defaults to resolved Google model) */
|
|
464
|
+
model?: string;
|
|
465
|
+
options?: GoogleGenerativeAICreateStreamBodyOptions;
|
|
466
|
+
/**
|
|
467
|
+
* Schema for structured output
|
|
468
|
+
* @nullable
|
|
469
|
+
*/
|
|
470
|
+
outputSchema?: GoogleGenerativeAICreateStreamBodyOutputSchema;
|
|
471
|
+
/** Required when the Google Generative AI integration config type is PerUser. */
|
|
472
|
+
userId?: string;
|
|
473
|
+
};
|
|
474
|
+
/**
|
|
475
|
+
* Token usage information
|
|
476
|
+
*/
|
|
477
|
+
export type GoogleGenerativeAIGenerateText200Usage = {
|
|
478
|
+
completionTokens: number;
|
|
479
|
+
promptTokens: number;
|
|
480
|
+
totalTokens: number;
|
|
481
|
+
};
|
|
482
|
+
/**
|
|
483
|
+
* Structured output if schema provided
|
|
484
|
+
* @nullable
|
|
485
|
+
*/
|
|
486
|
+
export type GoogleGenerativeAIGenerateText200Output = unknown | null;
|
|
487
|
+
export type GoogleGenerativeAIGenerateText200 = {
|
|
488
|
+
/** Reason for completion */
|
|
489
|
+
finishReason: string;
|
|
490
|
+
/**
|
|
491
|
+
* Structured output if schema provided
|
|
492
|
+
* @nullable
|
|
493
|
+
*/
|
|
494
|
+
output?: GoogleGenerativeAIGenerateText200Output;
|
|
495
|
+
/** Generated text content */
|
|
496
|
+
text: string;
|
|
497
|
+
/** Token usage information */
|
|
498
|
+
usage: GoogleGenerativeAIGenerateText200Usage;
|
|
499
|
+
};
|
|
500
|
+
/**
|
|
501
|
+
* Schema for structured output
|
|
502
|
+
* @nullable
|
|
503
|
+
*/
|
|
504
|
+
export type GoogleGenerativeAIGenerateTextBodyOutputSchema = unknown | null;
|
|
505
|
+
export type GoogleGenerativeAIGenerateTextBodyOptions = {
|
|
506
|
+
/**
|
|
507
|
+
* Maximum tokens to generate
|
|
508
|
+
* @minimum 0
|
|
509
|
+
* @exclusiveMinimum
|
|
510
|
+
*/
|
|
511
|
+
maxTokens?: number;
|
|
512
|
+
/**
|
|
513
|
+
* Sampling temperature (0-2)
|
|
514
|
+
* @minimum 0
|
|
515
|
+
* @maximum 2
|
|
516
|
+
*/
|
|
517
|
+
temperature?: number;
|
|
518
|
+
/**
|
|
519
|
+
* Top-p sampling parameter
|
|
520
|
+
* @minimum 0
|
|
521
|
+
* @maximum 1
|
|
522
|
+
*/
|
|
523
|
+
topP?: number;
|
|
524
|
+
};
|
|
525
|
+
export type GoogleGenerativeAIGenerateTextBody = {
|
|
526
|
+
/**
|
|
527
|
+
* Array of chat messages
|
|
528
|
+
* @minItems 1
|
|
529
|
+
*/
|
|
530
|
+
messages: GoogleGenerativeAIGenerateTextBodyMessagesItem[];
|
|
531
|
+
/** Specific model to use (defaults to resolved Google model) */
|
|
532
|
+
model?: string;
|
|
533
|
+
options?: GoogleGenerativeAIGenerateTextBodyOptions;
|
|
534
|
+
/**
|
|
535
|
+
* Schema for structured output
|
|
536
|
+
* @nullable
|
|
537
|
+
*/
|
|
538
|
+
outputSchema?: GoogleGenerativeAIGenerateTextBodyOutputSchema;
|
|
539
|
+
/** Required when the Google Generative AI integration config type is PerUser. */
|
|
540
|
+
userId?: string;
|
|
541
|
+
};
|
|
542
|
+
/**
|
|
543
|
+
* Role of the message sender
|
|
544
|
+
*/
|
|
545
|
+
export type GoogleGenerativeAIGenerateTextBodyMessagesItemRole = typeof GoogleGenerativeAIGenerateTextBodyMessagesItemRole[keyof typeof GoogleGenerativeAIGenerateTextBodyMessagesItemRole];
|
|
546
|
+
export declare const GoogleGenerativeAIGenerateTextBodyMessagesItemRole: {
|
|
547
|
+
readonly user: "user";
|
|
548
|
+
readonly assistant: "assistant";
|
|
549
|
+
readonly system: "system";
|
|
550
|
+
};
|
|
551
|
+
export type GoogleGenerativeAIGenerateTextBodyMessagesItemPartsItem = {
|
|
552
|
+
/** Filename for file parts */
|
|
553
|
+
filename?: string;
|
|
554
|
+
/** MIME type of the media */
|
|
555
|
+
mediaType?: string;
|
|
556
|
+
/** Text content */
|
|
557
|
+
text?: string;
|
|
558
|
+
/** Type of message part (text, file, etc.) */
|
|
559
|
+
type: string;
|
|
560
|
+
/** URL for file or media */
|
|
561
|
+
url?: string;
|
|
562
|
+
};
|
|
563
|
+
export type GoogleGenerativeAIGenerateTextBodyMessagesItem = {
|
|
564
|
+
/** Content of the message */
|
|
565
|
+
content?: string;
|
|
566
|
+
/** Multi-part message content */
|
|
567
|
+
parts?: GoogleGenerativeAIGenerateTextBodyMessagesItemPartsItem[];
|
|
568
|
+
/** Role of the message sender */
|
|
569
|
+
role: GoogleGenerativeAIGenerateTextBodyMessagesItemRole;
|
|
570
|
+
};
|
|
571
|
+
export type GoogleGenerativeAISetUserCredentials200 = {
|
|
572
|
+
userId: string;
|
|
573
|
+
};
|
|
574
|
+
export type GoogleGenerativeAISetUserCredentialsBody = {
|
|
575
|
+
/**
|
|
576
|
+
* Google Gemini API key for this generated app user.
|
|
577
|
+
* @minLength 1
|
|
578
|
+
*/
|
|
579
|
+
apiKey: string;
|
|
580
|
+
/**
|
|
581
|
+
* Optional per-user default Google Gemini image generation model.
|
|
582
|
+
* @minLength 1
|
|
583
|
+
*/
|
|
584
|
+
imageModel?: string;
|
|
585
|
+
/**
|
|
586
|
+
* Optional per-user default Google Gemini model.
|
|
587
|
+
* @minLength 1
|
|
588
|
+
*/
|
|
589
|
+
model?: string;
|
|
590
|
+
/** Existing integration user id. Omit to create a new integration user credential record. */
|
|
591
|
+
userId?: string;
|
|
592
|
+
};
|
|
593
|
+
export type GoogleCloudStorageCreateWriteStream200 = {
|
|
594
|
+
key: string;
|
|
595
|
+
success: boolean;
|
|
596
|
+
};
|
|
597
|
+
export type GoogleCloudStorageCreateWriteStreamParams = {
|
|
598
|
+
userId?: string;
|
|
599
|
+
key: string;
|
|
600
|
+
};
|
|
601
|
+
export type GoogleCloudStorageCreateReadStreamBody = {
|
|
602
|
+
/** Content-Type header. Omit for application/octet-stream */
|
|
603
|
+
contentType?: string;
|
|
604
|
+
/** Suggested filename for Content-Disposition header */
|
|
605
|
+
fileName?: string;
|
|
606
|
+
/** Key of the file to stream */
|
|
607
|
+
key: string;
|
|
608
|
+
/** Required when the Google Cloud Storage integration config type is PerUser. */
|
|
609
|
+
userId?: string;
|
|
610
|
+
};
|
|
611
|
+
export type GoogleCloudStorageUploadFile200 = {
|
|
612
|
+
key: string;
|
|
613
|
+
success: boolean;
|
|
614
|
+
};
|
|
615
|
+
export type GoogleCloudStorageUploadFileBody = {
|
|
616
|
+
/** Destination key/path in storage */
|
|
617
|
+
destinationKey: string;
|
|
618
|
+
/** File to upload */
|
|
619
|
+
file: Blob;
|
|
620
|
+
};
|
|
621
|
+
export type GoogleCloudStorageGetFileMetadata200 = {
|
|
622
|
+
/** File size in bytes */
|
|
623
|
+
size?: number;
|
|
624
|
+
};
|
|
625
|
+
export type GoogleCloudStorageGetFileMetadataBody = {
|
|
626
|
+
/** Key of the file */
|
|
627
|
+
key: string;
|
|
628
|
+
/** Required when the Google Cloud Storage integration config type is PerUser. */
|
|
629
|
+
userId?: string;
|
|
630
|
+
};
|
|
631
|
+
export type GoogleCloudStorageCopyFile200 = {
|
|
632
|
+
/** Destination key of the copied file */
|
|
633
|
+
key: string;
|
|
634
|
+
success: boolean;
|
|
635
|
+
};
|
|
636
|
+
export type GoogleCloudStorageCopyFileBody = {
|
|
637
|
+
/** Destination key for the copied file */
|
|
638
|
+
destinationKey: string;
|
|
639
|
+
/** Source key of the file to copy */
|
|
640
|
+
srcKey: string;
|
|
641
|
+
/** Required when the Google Cloud Storage integration config type is PerUser. */
|
|
642
|
+
userId?: string;
|
|
643
|
+
};
|
|
644
|
+
export type GoogleCloudStorageGenerateUploadSignedUrl200Headers = {
|
|
645
|
+
[key: string]: string;
|
|
646
|
+
};
|
|
647
|
+
export type GoogleCloudStorageGenerateUploadSignedUrl200 = {
|
|
648
|
+
headers?: GoogleCloudStorageGenerateUploadSignedUrl200Headers;
|
|
649
|
+
url: string;
|
|
650
|
+
};
|
|
651
|
+
export type GoogleCloudStorageGenerateUploadSignedUrlBody = {
|
|
652
|
+
/** MIME type of the file to upload */
|
|
653
|
+
contentType?: string;
|
|
654
|
+
/** Key for the upload */
|
|
655
|
+
key: string;
|
|
656
|
+
/** Required when the Google Cloud Storage integration config type is PerUser. */
|
|
657
|
+
userId?: string;
|
|
658
|
+
};
|
|
659
|
+
export type GoogleCloudStorageGetData200 = {
|
|
660
|
+
/** Base64-encoded file content */
|
|
661
|
+
data: string;
|
|
662
|
+
};
|
|
663
|
+
export type GoogleCloudStorageGetDataBody = {
|
|
664
|
+
/** Key of the file */
|
|
665
|
+
key: string;
|
|
666
|
+
/** Required when the Google Cloud Storage integration config type is PerUser. */
|
|
667
|
+
userId?: string;
|
|
668
|
+
};
|
|
669
|
+
export type GoogleCloudStorageGenerateDownloadSignedUrl200 = {
|
|
670
|
+
url: string;
|
|
671
|
+
};
|
|
672
|
+
export type GoogleCloudStorageGenerateDownloadSignedUrlBody = {
|
|
673
|
+
/** Suggested download filename */
|
|
674
|
+
fileName?: string;
|
|
675
|
+
/** Key of the file */
|
|
676
|
+
key: string;
|
|
677
|
+
/** Required when the Google Cloud Storage integration config type is PerUser. */
|
|
678
|
+
userId?: string;
|
|
679
|
+
};
|
|
680
|
+
export type GoogleCloudStorageDocumentExists200 = {
|
|
681
|
+
exists: boolean;
|
|
682
|
+
};
|
|
683
|
+
export type GoogleCloudStorageDocumentExistsBody = {
|
|
684
|
+
/** Key to check */
|
|
685
|
+
key: string;
|
|
686
|
+
/** Required when the Google Cloud Storage integration config type is PerUser. */
|
|
687
|
+
userId?: string;
|
|
688
|
+
};
|
|
689
|
+
export type GoogleCloudStorageDeleteFile200 = {
|
|
690
|
+
success: boolean;
|
|
691
|
+
};
|
|
692
|
+
export type GoogleCloudStorageDeleteFileBody = {
|
|
693
|
+
/** Key of the file to delete */
|
|
694
|
+
key: string;
|
|
695
|
+
/** Required when the Google Cloud Storage integration config type is PerUser. */
|
|
696
|
+
userId?: string;
|
|
697
|
+
};
|
|
698
|
+
export type GoogleCloudStorageUploadData200 = {
|
|
699
|
+
key: string;
|
|
700
|
+
success: boolean;
|
|
701
|
+
};
|
|
702
|
+
export type GoogleCloudStorageUploadDataBody = {
|
|
703
|
+
/** MIME type of the data */
|
|
704
|
+
contentType?: string;
|
|
705
|
+
/** Base64-encoded data to upload */
|
|
706
|
+
data: string;
|
|
707
|
+
/** Destination key/path in storage */
|
|
708
|
+
destinationKey: string;
|
|
709
|
+
/** Required when the Google Cloud Storage integration config type is PerUser. */
|
|
710
|
+
userId?: string;
|
|
711
|
+
};
|
|
712
|
+
export type GoogleCloudStorageSetUserCredentials200 = {
|
|
713
|
+
userId: string;
|
|
714
|
+
};
|
|
715
|
+
/**
|
|
716
|
+
* Google service account credentials JSON for this generated app user.
|
|
717
|
+
*/
|
|
718
|
+
export type GoogleCloudStorageSetUserCredentialsBodyCredentialsJson = {
|
|
719
|
+
[key: string]: unknown | null;
|
|
720
|
+
};
|
|
721
|
+
export type GoogleCloudStorageSetUserCredentialsBody = {
|
|
722
|
+
/** Google service account credentials JSON for this generated app user. */
|
|
723
|
+
credentialsJson: GoogleCloudStorageSetUserCredentialsBodyCredentialsJson;
|
|
724
|
+
/** Existing integration user id. Omit to create a new integration user credential record. */
|
|
725
|
+
userId?: string;
|
|
726
|
+
};
|
|
727
|
+
export type GmailSendEmail200Status = typeof GmailSendEmail200Status[keyof typeof GmailSendEmail200Status];
|
|
728
|
+
export declare const GmailSendEmail200Status: {
|
|
729
|
+
readonly queued: "queued";
|
|
730
|
+
};
|
|
731
|
+
export type GmailSendEmail200Provider = typeof GmailSendEmail200Provider[keyof typeof GmailSendEmail200Provider];
|
|
732
|
+
export declare const GmailSendEmail200Provider: {
|
|
733
|
+
readonly gmail: "gmail";
|
|
734
|
+
};
|
|
735
|
+
export type GmailSendEmail200 = {
|
|
736
|
+
id: string;
|
|
737
|
+
provider: GmailSendEmail200Provider;
|
|
738
|
+
status: GmailSendEmail200Status;
|
|
739
|
+
};
|
|
740
|
+
export type GmailSendEmailBody = {
|
|
741
|
+
bcc?: string[];
|
|
742
|
+
cc?: string[];
|
|
491
743
|
html?: string;
|
|
492
|
-
/**
|
|
493
|
-
provider: SendEmailBodyProvider;
|
|
494
|
-
/** Reply-to addresses */
|
|
495
|
-
replyTo?: string[];
|
|
496
|
-
/** Email subject */
|
|
744
|
+
/** @minLength 1 */
|
|
497
745
|
subject: string;
|
|
498
|
-
/** Plain text body */
|
|
499
746
|
text?: string;
|
|
747
|
+
/** @minItems 1 */
|
|
748
|
+
to: string[];
|
|
749
|
+
/** Integration user id returned by the Gmail OAuth flow. */
|
|
750
|
+
userId: string;
|
|
751
|
+
};
|
|
752
|
+
export type GmailAuthStart200 = {
|
|
753
|
+
url: string;
|
|
754
|
+
userId: string;
|
|
755
|
+
};
|
|
756
|
+
export type GmailAuthStartBody = {
|
|
757
|
+
/** Required for PerUser Gmail configs. Ignored for Shared configs. */
|
|
758
|
+
clientId?: string;
|
|
759
|
+
/** Required for PerUser Gmail configs. Ignored for Shared configs. */
|
|
760
|
+
clientSecret?: string;
|
|
761
|
+
/** Google OAuth scopes to request. */
|
|
762
|
+
scopes?: string[];
|
|
763
|
+
/** Existing integration user id. Omit to create a new integration user credential record. */
|
|
764
|
+
userId?: string;
|
|
765
|
+
};
|
|
766
|
+
export type AzureBlobStorageCreateWriteStream200 = {
|
|
767
|
+
key: string;
|
|
768
|
+
success: boolean;
|
|
769
|
+
};
|
|
770
|
+
export type AzureBlobStorageCreateWriteStreamParams = {
|
|
771
|
+
userId?: string;
|
|
772
|
+
key: string;
|
|
773
|
+
};
|
|
774
|
+
export type AzureBlobStorageCreateReadStreamBody = {
|
|
775
|
+
/** Content-Type header. Omit for application/octet-stream */
|
|
776
|
+
contentType?: string;
|
|
777
|
+
/** Suggested filename for Content-Disposition header */
|
|
778
|
+
fileName?: string;
|
|
779
|
+
/** Key of the file to stream */
|
|
780
|
+
key: string;
|
|
781
|
+
/** Required when the Azure Blob Storage integration config type is PerUser. */
|
|
782
|
+
userId?: string;
|
|
783
|
+
};
|
|
784
|
+
export type AzureBlobStorageUploadFile200 = {
|
|
785
|
+
key: string;
|
|
786
|
+
success: boolean;
|
|
787
|
+
};
|
|
788
|
+
export type AzureBlobStorageUploadFileBody = {
|
|
789
|
+
/** Destination key/path in storage */
|
|
790
|
+
destinationKey: string;
|
|
791
|
+
/** File to upload */
|
|
792
|
+
file: Blob;
|
|
793
|
+
};
|
|
794
|
+
export type AzureBlobStorageGetFileMetadata200 = {
|
|
795
|
+
/** File size in bytes */
|
|
796
|
+
size?: number;
|
|
797
|
+
};
|
|
798
|
+
export type AzureBlobStorageGetFileMetadataBody = {
|
|
799
|
+
/** Key of the file */
|
|
800
|
+
key: string;
|
|
801
|
+
/** Required when the Azure Blob Storage integration config type is PerUser. */
|
|
802
|
+
userId?: string;
|
|
803
|
+
};
|
|
804
|
+
export type AzureBlobStorageCopyFile200 = {
|
|
805
|
+
/** Destination key of the copied file */
|
|
806
|
+
key: string;
|
|
807
|
+
success: boolean;
|
|
808
|
+
};
|
|
809
|
+
export type AzureBlobStorageCopyFileBody = {
|
|
810
|
+
/** Destination key for the copied file */
|
|
811
|
+
destinationKey: string;
|
|
812
|
+
/** Source key of the file to copy */
|
|
813
|
+
srcKey: string;
|
|
814
|
+
/** Required when the Azure Blob Storage integration config type is PerUser. */
|
|
815
|
+
userId?: string;
|
|
816
|
+
};
|
|
817
|
+
export type AzureBlobStorageGenerateUploadSignedUrl200Headers = {
|
|
818
|
+
[key: string]: string;
|
|
819
|
+
};
|
|
820
|
+
export type AzureBlobStorageGenerateUploadSignedUrl200 = {
|
|
821
|
+
headers?: AzureBlobStorageGenerateUploadSignedUrl200Headers;
|
|
822
|
+
url: string;
|
|
823
|
+
};
|
|
824
|
+
export type AzureBlobStorageGenerateUploadSignedUrlBody = {
|
|
825
|
+
/** MIME type of the file to upload */
|
|
826
|
+
contentType?: string;
|
|
827
|
+
/** Key for the upload */
|
|
828
|
+
key: string;
|
|
829
|
+
/** Required when the Azure Blob Storage integration config type is PerUser. */
|
|
830
|
+
userId?: string;
|
|
831
|
+
};
|
|
832
|
+
export type AzureBlobStorageGetData200 = {
|
|
833
|
+
/** Base64-encoded file content */
|
|
834
|
+
data: string;
|
|
835
|
+
};
|
|
836
|
+
export type AzureBlobStorageGetDataBody = {
|
|
837
|
+
/** Key of the file */
|
|
838
|
+
key: string;
|
|
839
|
+
/** Required when the Azure Blob Storage integration config type is PerUser. */
|
|
840
|
+
userId?: string;
|
|
841
|
+
};
|
|
842
|
+
export type AzureBlobStorageGenerateDownloadSignedUrl200 = {
|
|
843
|
+
url: string;
|
|
844
|
+
};
|
|
845
|
+
export type AzureBlobStorageGenerateDownloadSignedUrlBody = {
|
|
846
|
+
/** Suggested download filename */
|
|
847
|
+
fileName?: string;
|
|
848
|
+
/** Key of the file */
|
|
849
|
+
key: string;
|
|
850
|
+
/** Required when the Azure Blob Storage integration config type is PerUser. */
|
|
851
|
+
userId?: string;
|
|
852
|
+
};
|
|
853
|
+
export type AzureBlobStorageDocumentExists200 = {
|
|
854
|
+
exists: boolean;
|
|
855
|
+
};
|
|
856
|
+
export type AzureBlobStorageDocumentExistsBody = {
|
|
857
|
+
/** Key to check */
|
|
858
|
+
key: string;
|
|
859
|
+
/** Required when the Azure Blob Storage integration config type is PerUser. */
|
|
860
|
+
userId?: string;
|
|
861
|
+
};
|
|
862
|
+
export type AzureBlobStorageDeleteFile200 = {
|
|
863
|
+
success: boolean;
|
|
864
|
+
};
|
|
865
|
+
export type AzureBlobStorageDeleteFileBody = {
|
|
866
|
+
/** Key of the file to delete */
|
|
867
|
+
key: string;
|
|
868
|
+
/** Required when the Azure Blob Storage integration config type is PerUser. */
|
|
869
|
+
userId?: string;
|
|
870
|
+
};
|
|
871
|
+
export type AzureBlobStorageUploadData200 = {
|
|
872
|
+
key: string;
|
|
873
|
+
success: boolean;
|
|
874
|
+
};
|
|
875
|
+
export type AzureBlobStorageUploadDataBody = {
|
|
876
|
+
/** MIME type of the data */
|
|
877
|
+
contentType?: string;
|
|
878
|
+
/** Base64-encoded data to upload */
|
|
879
|
+
data: string;
|
|
880
|
+
/** Destination key/path in storage */
|
|
881
|
+
destinationKey: string;
|
|
882
|
+
/** Required when the Azure Blob Storage integration config type is PerUser. */
|
|
883
|
+
userId?: string;
|
|
884
|
+
};
|
|
885
|
+
export type AzureBlobStorageSetUserCredentials200 = {
|
|
886
|
+
userId: string;
|
|
887
|
+
};
|
|
888
|
+
export type AzureBlobStorageSetUserCredentialsBody = {
|
|
889
|
+
/**
|
|
890
|
+
* Azure AD application client ID for this generated app user.
|
|
891
|
+
* @minLength 1
|
|
892
|
+
*/
|
|
893
|
+
clientId: string;
|
|
894
|
+
/**
|
|
895
|
+
* Azure AD client secret for this generated app user.
|
|
896
|
+
* @minLength 1
|
|
897
|
+
*/
|
|
898
|
+
clientSecret: string;
|
|
899
|
+
/**
|
|
900
|
+
* Azure AD tenant ID for this generated app user.
|
|
901
|
+
* @minLength 1
|
|
902
|
+
*/
|
|
903
|
+
tenantId: string;
|
|
904
|
+
/** Existing integration user id. Omit to create a new integration user credential record. */
|
|
905
|
+
userId?: string;
|
|
906
|
+
};
|
|
907
|
+
export type AwsS3CreateReadStreamBody = {
|
|
908
|
+
/** Content-Type header. Omit for application/octet-stream */
|
|
909
|
+
contentType?: string;
|
|
910
|
+
/** Suggested filename for Content-Disposition header */
|
|
911
|
+
fileName?: string;
|
|
912
|
+
/** Key of the file to stream */
|
|
913
|
+
key: string;
|
|
914
|
+
/** Required when the AWS S3 integration config type is PerUser. */
|
|
915
|
+
userId?: string;
|
|
916
|
+
};
|
|
917
|
+
export type AwsS3UploadFile200 = {
|
|
918
|
+
key: string;
|
|
919
|
+
success: boolean;
|
|
920
|
+
};
|
|
921
|
+
export type AwsS3UploadFileBody = {
|
|
922
|
+
/** Destination key/path in storage */
|
|
923
|
+
destinationKey: string;
|
|
924
|
+
/** File to upload */
|
|
925
|
+
file: Blob;
|
|
926
|
+
};
|
|
927
|
+
export type AwsS3GetFileMetadata200 = {
|
|
928
|
+
/** File size in bytes */
|
|
929
|
+
size?: number;
|
|
930
|
+
};
|
|
931
|
+
export type AwsS3GetFileMetadataBody = {
|
|
932
|
+
/** Key of the file */
|
|
933
|
+
key: string;
|
|
934
|
+
/** Required when the AWS S3 integration config type is PerUser. */
|
|
935
|
+
userId?: string;
|
|
936
|
+
};
|
|
937
|
+
export type AwsS3CopyFile200 = {
|
|
938
|
+
/** Destination key of the copied file */
|
|
939
|
+
key: string;
|
|
940
|
+
success: boolean;
|
|
941
|
+
};
|
|
942
|
+
export type AwsS3CopyFileBody = {
|
|
943
|
+
/** Destination key for the copied file */
|
|
944
|
+
destinationKey: string;
|
|
945
|
+
/** Source key of the file to copy */
|
|
946
|
+
srcKey: string;
|
|
947
|
+
/** Required when the AWS S3 integration config type is PerUser. */
|
|
948
|
+
userId?: string;
|
|
949
|
+
};
|
|
950
|
+
export type AwsS3GenerateUploadSignedUrl200Headers = {
|
|
951
|
+
[key: string]: string;
|
|
952
|
+
};
|
|
953
|
+
export type AwsS3GenerateUploadSignedUrl200 = {
|
|
954
|
+
headers?: AwsS3GenerateUploadSignedUrl200Headers;
|
|
955
|
+
url: string;
|
|
956
|
+
};
|
|
957
|
+
export type AwsS3GenerateUploadSignedUrlBody = {
|
|
958
|
+
/** MIME type of the file to upload */
|
|
959
|
+
contentType?: string;
|
|
960
|
+
/** Key for the upload */
|
|
961
|
+
key: string;
|
|
962
|
+
/** Required when the AWS S3 integration config type is PerUser. */
|
|
963
|
+
userId?: string;
|
|
964
|
+
};
|
|
965
|
+
export type AwsS3GetData200 = {
|
|
966
|
+
/** Base64-encoded file content */
|
|
967
|
+
data: string;
|
|
968
|
+
};
|
|
969
|
+
export type AwsS3GetDataBody = {
|
|
970
|
+
/** Key of the file */
|
|
971
|
+
key: string;
|
|
972
|
+
/** Required when the AWS S3 integration config type is PerUser. */
|
|
973
|
+
userId?: string;
|
|
974
|
+
};
|
|
975
|
+
export type AwsS3GenerateDownloadSignedUrl200 = {
|
|
976
|
+
url: string;
|
|
977
|
+
};
|
|
978
|
+
export type AwsS3GenerateDownloadSignedUrlBody = {
|
|
979
|
+
/** Suggested download filename */
|
|
980
|
+
fileName?: string;
|
|
981
|
+
/** Key of the file */
|
|
982
|
+
key: string;
|
|
983
|
+
/** Required when the AWS S3 integration config type is PerUser. */
|
|
984
|
+
userId?: string;
|
|
985
|
+
};
|
|
986
|
+
export type AwsS3DocumentExists200 = {
|
|
987
|
+
exists: boolean;
|
|
988
|
+
};
|
|
989
|
+
export type AwsS3DocumentExistsBody = {
|
|
990
|
+
/** Key to check */
|
|
991
|
+
key: string;
|
|
992
|
+
/** Required when the AWS S3 integration config type is PerUser. */
|
|
993
|
+
userId?: string;
|
|
994
|
+
};
|
|
995
|
+
export type AwsS3DeleteFile200 = {
|
|
996
|
+
success: boolean;
|
|
997
|
+
};
|
|
998
|
+
export type AwsS3DeleteFileBody = {
|
|
999
|
+
/** Key of the file to delete */
|
|
1000
|
+
key: string;
|
|
1001
|
+
/** Required when the AWS S3 integration config type is PerUser. */
|
|
1002
|
+
userId?: string;
|
|
1003
|
+
};
|
|
1004
|
+
export type AwsS3UploadData200 = {
|
|
1005
|
+
key: string;
|
|
1006
|
+
success: boolean;
|
|
1007
|
+
};
|
|
1008
|
+
export type AwsS3UploadDataBody = {
|
|
1009
|
+
/** MIME type of the data */
|
|
1010
|
+
contentType?: string;
|
|
1011
|
+
/** Base64-encoded data to upload */
|
|
1012
|
+
data: string;
|
|
1013
|
+
/** Destination key/path in storage */
|
|
1014
|
+
destinationKey: string;
|
|
1015
|
+
/** Required when the AWS S3 integration config type is PerUser. */
|
|
1016
|
+
userId?: string;
|
|
1017
|
+
};
|
|
1018
|
+
export type AwsS3SetUserCredentials200 = {
|
|
1019
|
+
userId: string;
|
|
1020
|
+
};
|
|
1021
|
+
export type AwsS3SetUserCredentialsBody = {
|
|
1022
|
+
/**
|
|
1023
|
+
* AWS access key ID for this generated app user.
|
|
1024
|
+
* @minLength 1
|
|
1025
|
+
*/
|
|
1026
|
+
accessKeyId: string;
|
|
1027
|
+
/**
|
|
1028
|
+
* Optional per-user AWS region. Falls back to the integration config region.
|
|
1029
|
+
* @minLength 1
|
|
1030
|
+
*/
|
|
1031
|
+
region?: string;
|
|
1032
|
+
/**
|
|
1033
|
+
* AWS secret access key for this generated app user.
|
|
1034
|
+
* @minLength 1
|
|
1035
|
+
*/
|
|
1036
|
+
secretAccessKey: string;
|
|
1037
|
+
/** Existing integration user id. Omit to create a new integration user credential record. */
|
|
1038
|
+
userId?: string;
|
|
1039
|
+
};
|
|
1040
|
+
export type AnthropicCreateStream500 = {
|
|
1041
|
+
error?: string;
|
|
1042
|
+
};
|
|
1043
|
+
/**
|
|
1044
|
+
* Schema for structured output
|
|
1045
|
+
* @nullable
|
|
1046
|
+
*/
|
|
1047
|
+
export type AnthropicCreateStreamBodyOutputSchema = unknown | null;
|
|
1048
|
+
export type AnthropicCreateStreamBodyOptions = {
|
|
1049
|
+
/**
|
|
1050
|
+
* Maximum tokens to generate
|
|
1051
|
+
* @minimum 0
|
|
1052
|
+
* @exclusiveMinimum
|
|
1053
|
+
*/
|
|
1054
|
+
maxTokens?: number;
|
|
1055
|
+
/**
|
|
1056
|
+
* Sampling temperature (0-2)
|
|
1057
|
+
* @minimum 0
|
|
1058
|
+
* @maximum 2
|
|
1059
|
+
*/
|
|
1060
|
+
temperature?: number;
|
|
1061
|
+
/**
|
|
1062
|
+
* Top-p sampling parameter
|
|
1063
|
+
* @minimum 0
|
|
1064
|
+
* @maximum 1
|
|
1065
|
+
*/
|
|
1066
|
+
topP?: number;
|
|
1067
|
+
};
|
|
1068
|
+
/**
|
|
1069
|
+
* Role of the message sender
|
|
1070
|
+
*/
|
|
1071
|
+
export type AnthropicCreateStreamBodyMessagesItemRole = typeof AnthropicCreateStreamBodyMessagesItemRole[keyof typeof AnthropicCreateStreamBodyMessagesItemRole];
|
|
1072
|
+
export declare const AnthropicCreateStreamBodyMessagesItemRole: {
|
|
1073
|
+
readonly user: "user";
|
|
1074
|
+
readonly assistant: "assistant";
|
|
1075
|
+
readonly system: "system";
|
|
1076
|
+
};
|
|
1077
|
+
export type AnthropicCreateStreamBodyMessagesItemPartsItem = {
|
|
1078
|
+
/** Filename for file parts */
|
|
1079
|
+
filename?: string;
|
|
1080
|
+
/** MIME type of the media */
|
|
1081
|
+
mediaType?: string;
|
|
1082
|
+
/** Text content */
|
|
1083
|
+
text?: string;
|
|
1084
|
+
/** Type of message part (text, file, etc.) */
|
|
1085
|
+
type: string;
|
|
1086
|
+
/** URL for file or media */
|
|
1087
|
+
url?: string;
|
|
1088
|
+
};
|
|
1089
|
+
export type AnthropicCreateStreamBodyMessagesItem = {
|
|
1090
|
+
/** Content of the message */
|
|
1091
|
+
content?: string;
|
|
1092
|
+
/** Multi-part message content */
|
|
1093
|
+
parts?: AnthropicCreateStreamBodyMessagesItemPartsItem[];
|
|
1094
|
+
/** Role of the message sender */
|
|
1095
|
+
role: AnthropicCreateStreamBodyMessagesItemRole;
|
|
1096
|
+
};
|
|
1097
|
+
export type AnthropicCreateStreamBody = {
|
|
500
1098
|
/**
|
|
501
|
-
*
|
|
1099
|
+
* Array of chat messages
|
|
502
1100
|
* @minItems 1
|
|
503
1101
|
*/
|
|
504
|
-
|
|
1102
|
+
messages: AnthropicCreateStreamBodyMessagesItem[];
|
|
1103
|
+
/** Specific model to use (defaults to resolved Anthropic model) */
|
|
1104
|
+
model?: string;
|
|
1105
|
+
options?: AnthropicCreateStreamBodyOptions;
|
|
1106
|
+
/**
|
|
1107
|
+
* Schema for structured output
|
|
1108
|
+
* @nullable
|
|
1109
|
+
*/
|
|
1110
|
+
outputSchema?: AnthropicCreateStreamBodyOutputSchema;
|
|
1111
|
+
/** Required when the Anthropic integration config type is PerUser. */
|
|
1112
|
+
userId?: string;
|
|
1113
|
+
};
|
|
1114
|
+
/**
|
|
1115
|
+
* Token usage information
|
|
1116
|
+
*/
|
|
1117
|
+
export type AnthropicGenerateText200Usage = {
|
|
1118
|
+
completionTokens: number;
|
|
1119
|
+
promptTokens: number;
|
|
1120
|
+
totalTokens: number;
|
|
1121
|
+
};
|
|
1122
|
+
/**
|
|
1123
|
+
* Structured output if schema provided
|
|
1124
|
+
* @nullable
|
|
1125
|
+
*/
|
|
1126
|
+
export type AnthropicGenerateText200Output = unknown | null;
|
|
1127
|
+
export type AnthropicGenerateText200 = {
|
|
1128
|
+
/** Reason for completion */
|
|
1129
|
+
finishReason: string;
|
|
1130
|
+
/**
|
|
1131
|
+
* Structured output if schema provided
|
|
1132
|
+
* @nullable
|
|
1133
|
+
*/
|
|
1134
|
+
output?: AnthropicGenerateText200Output;
|
|
1135
|
+
/** Generated text content */
|
|
1136
|
+
text: string;
|
|
1137
|
+
/** Token usage information */
|
|
1138
|
+
usage: AnthropicGenerateText200Usage;
|
|
1139
|
+
};
|
|
1140
|
+
/**
|
|
1141
|
+
* Schema for structured output
|
|
1142
|
+
* @nullable
|
|
1143
|
+
*/
|
|
1144
|
+
export type AnthropicGenerateTextBodyOutputSchema = unknown | null;
|
|
1145
|
+
export type AnthropicGenerateTextBodyOptions = {
|
|
1146
|
+
/**
|
|
1147
|
+
* Maximum tokens to generate
|
|
1148
|
+
* @minimum 0
|
|
1149
|
+
* @exclusiveMinimum
|
|
1150
|
+
*/
|
|
1151
|
+
maxTokens?: number;
|
|
1152
|
+
/**
|
|
1153
|
+
* Sampling temperature (0-2)
|
|
1154
|
+
* @minimum 0
|
|
1155
|
+
* @maximum 2
|
|
1156
|
+
*/
|
|
1157
|
+
temperature?: number;
|
|
1158
|
+
/**
|
|
1159
|
+
* Top-p sampling parameter
|
|
1160
|
+
* @minimum 0
|
|
1161
|
+
* @maximum 1
|
|
1162
|
+
*/
|
|
1163
|
+
topP?: number;
|
|
1164
|
+
};
|
|
1165
|
+
export type AnthropicGenerateTextBody = {
|
|
1166
|
+
/**
|
|
1167
|
+
* Array of chat messages
|
|
1168
|
+
* @minItems 1
|
|
1169
|
+
*/
|
|
1170
|
+
messages: AnthropicGenerateTextBodyMessagesItem[];
|
|
1171
|
+
/** Specific model to use (defaults to resolved Anthropic model) */
|
|
1172
|
+
model?: string;
|
|
1173
|
+
options?: AnthropicGenerateTextBodyOptions;
|
|
1174
|
+
/**
|
|
1175
|
+
* Schema for structured output
|
|
1176
|
+
* @nullable
|
|
1177
|
+
*/
|
|
1178
|
+
outputSchema?: AnthropicGenerateTextBodyOutputSchema;
|
|
1179
|
+
/** Required when the Anthropic integration config type is PerUser. */
|
|
1180
|
+
userId?: string;
|
|
1181
|
+
};
|
|
1182
|
+
/**
|
|
1183
|
+
* Role of the message sender
|
|
1184
|
+
*/
|
|
1185
|
+
export type AnthropicGenerateTextBodyMessagesItemRole = typeof AnthropicGenerateTextBodyMessagesItemRole[keyof typeof AnthropicGenerateTextBodyMessagesItemRole];
|
|
1186
|
+
export declare const AnthropicGenerateTextBodyMessagesItemRole: {
|
|
1187
|
+
readonly user: "user";
|
|
1188
|
+
readonly assistant: "assistant";
|
|
1189
|
+
readonly system: "system";
|
|
1190
|
+
};
|
|
1191
|
+
export type AnthropicGenerateTextBodyMessagesItemPartsItem = {
|
|
1192
|
+
/** Filename for file parts */
|
|
1193
|
+
filename?: string;
|
|
1194
|
+
/** MIME type of the media */
|
|
1195
|
+
mediaType?: string;
|
|
1196
|
+
/** Text content */
|
|
1197
|
+
text?: string;
|
|
1198
|
+
/** Type of message part (text, file, etc.) */
|
|
1199
|
+
type: string;
|
|
1200
|
+
/** URL for file or media */
|
|
1201
|
+
url?: string;
|
|
1202
|
+
};
|
|
1203
|
+
export type AnthropicGenerateTextBodyMessagesItem = {
|
|
1204
|
+
/** Content of the message */
|
|
1205
|
+
content?: string;
|
|
1206
|
+
/** Multi-part message content */
|
|
1207
|
+
parts?: AnthropicGenerateTextBodyMessagesItemPartsItem[];
|
|
1208
|
+
/** Role of the message sender */
|
|
1209
|
+
role: AnthropicGenerateTextBodyMessagesItemRole;
|
|
1210
|
+
};
|
|
1211
|
+
export type AnthropicSetUserCredentials200 = {
|
|
1212
|
+
userId: string;
|
|
1213
|
+
};
|
|
1214
|
+
export type AnthropicSetUserCredentialsBody = {
|
|
1215
|
+
/**
|
|
1216
|
+
* Anthropic API key for this generated app user.
|
|
1217
|
+
* @minLength 1
|
|
1218
|
+
*/
|
|
1219
|
+
apiKey: string;
|
|
1220
|
+
/**
|
|
1221
|
+
* Optional per-user default Anthropic model.
|
|
1222
|
+
* @minLength 1
|
|
1223
|
+
*/
|
|
1224
|
+
model?: string;
|
|
1225
|
+
/** Existing integration user id. Omit to create a new integration user credential record. */
|
|
1226
|
+
userId?: string;
|
|
505
1227
|
};
|
|
506
1228
|
export declare const getIntegrationsAPI: () => {
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
1229
|
+
anthropicSetUserCredentials: (anthropicSetUserCredentialsBody: AnthropicSetUserCredentialsBody) => Promise<AnthropicSetUserCredentials200>;
|
|
1230
|
+
anthropicGenerateText: (anthropicGenerateTextBody: AnthropicGenerateTextBody) => Promise<AnthropicGenerateText200>;
|
|
1231
|
+
anthropicCreateStream: (anthropicCreateStreamBody: AnthropicCreateStreamBody) => Promise<string>;
|
|
1232
|
+
awsS3SetUserCredentials: (awsS3SetUserCredentialsBody: AwsS3SetUserCredentialsBody) => Promise<AwsS3SetUserCredentials200>;
|
|
1233
|
+
awsS3UploadData: (awsS3UploadDataBody: AwsS3UploadDataBody) => Promise<AwsS3UploadData200>;
|
|
1234
|
+
awsS3DeleteFile: (awsS3DeleteFileBody: AwsS3DeleteFileBody) => Promise<AwsS3DeleteFile200>;
|
|
1235
|
+
awsS3DocumentExists: (awsS3DocumentExistsBody: AwsS3DocumentExistsBody) => Promise<AwsS3DocumentExists200>;
|
|
1236
|
+
awsS3GenerateDownloadSignedUrl: (awsS3GenerateDownloadSignedUrlBody: AwsS3GenerateDownloadSignedUrlBody) => Promise<AwsS3GenerateDownloadSignedUrl200>;
|
|
1237
|
+
awsS3GetData: (awsS3GetDataBody: AwsS3GetDataBody) => Promise<AwsS3GetData200>;
|
|
1238
|
+
awsS3GenerateUploadSignedUrl: (awsS3GenerateUploadSignedUrlBody: AwsS3GenerateUploadSignedUrlBody) => Promise<AwsS3GenerateUploadSignedUrl200>;
|
|
1239
|
+
awsS3CopyFile: (awsS3CopyFileBody: AwsS3CopyFileBody) => Promise<AwsS3CopyFile200>;
|
|
1240
|
+
awsS3GetFileMetadata: (awsS3GetFileMetadataBody: AwsS3GetFileMetadataBody) => Promise<AwsS3GetFileMetadata200>;
|
|
1241
|
+
awsS3UploadFile: (awsS3UploadFileBody: AwsS3UploadFileBody) => Promise<AwsS3UploadFile200>;
|
|
1242
|
+
awsS3CreateReadStream: (awsS3CreateReadStreamBody: AwsS3CreateReadStreamBody) => Promise<void>;
|
|
1243
|
+
azureBlobStorageSetUserCredentials: (azureBlobStorageSetUserCredentialsBody: AzureBlobStorageSetUserCredentialsBody) => Promise<AzureBlobStorageSetUserCredentials200>;
|
|
1244
|
+
azureBlobStorageUploadData: (azureBlobStorageUploadDataBody: AzureBlobStorageUploadDataBody) => Promise<AzureBlobStorageUploadData200>;
|
|
1245
|
+
azureBlobStorageDeleteFile: (azureBlobStorageDeleteFileBody: AzureBlobStorageDeleteFileBody) => Promise<AzureBlobStorageDeleteFile200>;
|
|
1246
|
+
azureBlobStorageDocumentExists: (azureBlobStorageDocumentExistsBody: AzureBlobStorageDocumentExistsBody) => Promise<AzureBlobStorageDocumentExists200>;
|
|
1247
|
+
azureBlobStorageGenerateDownloadSignedUrl: (azureBlobStorageGenerateDownloadSignedUrlBody: AzureBlobStorageGenerateDownloadSignedUrlBody) => Promise<AzureBlobStorageGenerateDownloadSignedUrl200>;
|
|
1248
|
+
azureBlobStorageGetData: (azureBlobStorageGetDataBody: AzureBlobStorageGetDataBody) => Promise<AzureBlobStorageGetData200>;
|
|
1249
|
+
azureBlobStorageGenerateUploadSignedUrl: (azureBlobStorageGenerateUploadSignedUrlBody: AzureBlobStorageGenerateUploadSignedUrlBody) => Promise<AzureBlobStorageGenerateUploadSignedUrl200>;
|
|
1250
|
+
azureBlobStorageCopyFile: (azureBlobStorageCopyFileBody: AzureBlobStorageCopyFileBody) => Promise<AzureBlobStorageCopyFile200>;
|
|
1251
|
+
azureBlobStorageGetFileMetadata: (azureBlobStorageGetFileMetadataBody: AzureBlobStorageGetFileMetadataBody) => Promise<AzureBlobStorageGetFileMetadata200>;
|
|
1252
|
+
azureBlobStorageUploadFile: (azureBlobStorageUploadFileBody: AzureBlobStorageUploadFileBody) => Promise<AzureBlobStorageUploadFile200>;
|
|
1253
|
+
azureBlobStorageCreateReadStream: (azureBlobStorageCreateReadStreamBody: AzureBlobStorageCreateReadStreamBody) => Promise<void>;
|
|
1254
|
+
azureBlobStorageCreateWriteStream: (azureBlobStorageCreateWriteStreamBody: Blob, params: AzureBlobStorageCreateWriteStreamParams) => Promise<AzureBlobStorageCreateWriteStream200>;
|
|
1255
|
+
gmailAuthStart: (gmailAuthStartBody: GmailAuthStartBody) => Promise<GmailAuthStart200>;
|
|
1256
|
+
gmailOauthCallback: () => Promise<void>;
|
|
1257
|
+
gmailSendEmail: (gmailSendEmailBody: GmailSendEmailBody) => Promise<GmailSendEmail200>;
|
|
1258
|
+
googleCloudStorageSetUserCredentials: (googleCloudStorageSetUserCredentialsBody: GoogleCloudStorageSetUserCredentialsBody) => Promise<GoogleCloudStorageSetUserCredentials200>;
|
|
1259
|
+
googleCloudStorageUploadData: (googleCloudStorageUploadDataBody: GoogleCloudStorageUploadDataBody) => Promise<GoogleCloudStorageUploadData200>;
|
|
1260
|
+
googleCloudStorageDeleteFile: (googleCloudStorageDeleteFileBody: GoogleCloudStorageDeleteFileBody) => Promise<GoogleCloudStorageDeleteFile200>;
|
|
1261
|
+
googleCloudStorageDocumentExists: (googleCloudStorageDocumentExistsBody: GoogleCloudStorageDocumentExistsBody) => Promise<GoogleCloudStorageDocumentExists200>;
|
|
1262
|
+
googleCloudStorageGenerateDownloadSignedUrl: (googleCloudStorageGenerateDownloadSignedUrlBody: GoogleCloudStorageGenerateDownloadSignedUrlBody) => Promise<GoogleCloudStorageGenerateDownloadSignedUrl200>;
|
|
1263
|
+
googleCloudStorageGetData: (googleCloudStorageGetDataBody: GoogleCloudStorageGetDataBody) => Promise<GoogleCloudStorageGetData200>;
|
|
1264
|
+
googleCloudStorageGenerateUploadSignedUrl: (googleCloudStorageGenerateUploadSignedUrlBody: GoogleCloudStorageGenerateUploadSignedUrlBody) => Promise<GoogleCloudStorageGenerateUploadSignedUrl200>;
|
|
1265
|
+
googleCloudStorageCopyFile: (googleCloudStorageCopyFileBody: GoogleCloudStorageCopyFileBody) => Promise<GoogleCloudStorageCopyFile200>;
|
|
1266
|
+
googleCloudStorageGetFileMetadata: (googleCloudStorageGetFileMetadataBody: GoogleCloudStorageGetFileMetadataBody) => Promise<GoogleCloudStorageGetFileMetadata200>;
|
|
1267
|
+
googleCloudStorageUploadFile: (googleCloudStorageUploadFileBody: GoogleCloudStorageUploadFileBody) => Promise<GoogleCloudStorageUploadFile200>;
|
|
1268
|
+
googleCloudStorageCreateReadStream: (googleCloudStorageCreateReadStreamBody: GoogleCloudStorageCreateReadStreamBody) => Promise<void>;
|
|
1269
|
+
googleCloudStorageCreateWriteStream: (googleCloudStorageCreateWriteStreamBody: Blob, params: GoogleCloudStorageCreateWriteStreamParams) => Promise<GoogleCloudStorageCreateWriteStream200>;
|
|
1270
|
+
googleGenerativeAISetUserCredentials: (googleGenerativeAISetUserCredentialsBody: GoogleGenerativeAISetUserCredentialsBody) => Promise<GoogleGenerativeAISetUserCredentials200>;
|
|
1271
|
+
googleGenerativeAIGenerateText: (googleGenerativeAIGenerateTextBody: GoogleGenerativeAIGenerateTextBody) => Promise<GoogleGenerativeAIGenerateText200>;
|
|
1272
|
+
googleGenerativeAICreateStream: (googleGenerativeAICreateStreamBody: GoogleGenerativeAICreateStreamBody) => Promise<string>;
|
|
1273
|
+
googleOAuthGetAuthorizationUrl: (googleOAuthGetAuthorizationUrlBody: GoogleOAuthGetAuthorizationUrlBody) => Promise<GoogleOAuthGetAuthorizationUrl200>;
|
|
1274
|
+
googleOAuthHandleOauthCallback: (googleOAuthHandleOauthCallbackBody: GoogleOAuthHandleOauthCallbackBody) => Promise<GoogleOAuthHandleOauthCallback200>;
|
|
1275
|
+
openaiSetUserCredentials: (openaiSetUserCredentialsBody: OpenaiSetUserCredentialsBody) => Promise<OpenaiSetUserCredentials200>;
|
|
1276
|
+
openaiGenerateText: (openaiGenerateTextBody: OpenaiGenerateTextBody) => Promise<OpenaiGenerateText200>;
|
|
1277
|
+
openaiCreateStream: (openaiCreateStreamBody: OpenaiCreateStreamBody) => Promise<string>;
|
|
1278
|
+
resendSetUserCredentials: (resendSetUserCredentialsBody: ResendSetUserCredentialsBody) => Promise<ResendSetUserCredentials200>;
|
|
1279
|
+
resendSendEmail: (resendSendEmailBody: ResendSendEmailBody) => Promise<ResendSendEmail200>;
|
|
1280
|
+
stripeCreateCheckoutSession: (stripeCreateCheckoutSessionBody: StripeCreateCheckoutSessionBody) => Promise<StripeCreateCheckoutSession200>;
|
|
1281
|
+
stripeVerifyWebhook: (stripeVerifyWebhookBody: StripeVerifyWebhookBody) => Promise<StripeVerifyWebhook200>;
|
|
1282
|
+
twilioWhatsappCreateMessage: (twilioWhatsappCreateMessageBody: TwilioWhatsappCreateMessageBody) => Promise<TwilioWhatsappCreateMessage200>;
|
|
1283
|
+
};
|
|
1284
|
+
export type AnthropicSetUserCredentialsResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getIntegrationsAPI>['anthropicSetUserCredentials']>>>;
|
|
1285
|
+
export type AnthropicGenerateTextResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getIntegrationsAPI>['anthropicGenerateText']>>>;
|
|
1286
|
+
export type AnthropicCreateStreamResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getIntegrationsAPI>['anthropicCreateStream']>>>;
|
|
1287
|
+
export type AwsS3SetUserCredentialsResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getIntegrationsAPI>['awsS3SetUserCredentials']>>>;
|
|
1288
|
+
export type AwsS3UploadDataResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getIntegrationsAPI>['awsS3UploadData']>>>;
|
|
1289
|
+
export type AwsS3DeleteFileResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getIntegrationsAPI>['awsS3DeleteFile']>>>;
|
|
1290
|
+
export type AwsS3DocumentExistsResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getIntegrationsAPI>['awsS3DocumentExists']>>>;
|
|
1291
|
+
export type AwsS3GenerateDownloadSignedUrlResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getIntegrationsAPI>['awsS3GenerateDownloadSignedUrl']>>>;
|
|
1292
|
+
export type AwsS3GetDataResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getIntegrationsAPI>['awsS3GetData']>>>;
|
|
1293
|
+
export type AwsS3GenerateUploadSignedUrlResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getIntegrationsAPI>['awsS3GenerateUploadSignedUrl']>>>;
|
|
1294
|
+
export type AwsS3CopyFileResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getIntegrationsAPI>['awsS3CopyFile']>>>;
|
|
1295
|
+
export type AwsS3GetFileMetadataResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getIntegrationsAPI>['awsS3GetFileMetadata']>>>;
|
|
1296
|
+
export type AwsS3UploadFileResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getIntegrationsAPI>['awsS3UploadFile']>>>;
|
|
1297
|
+
export type AwsS3CreateReadStreamResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getIntegrationsAPI>['awsS3CreateReadStream']>>>;
|
|
1298
|
+
export type AzureBlobStorageSetUserCredentialsResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getIntegrationsAPI>['azureBlobStorageSetUserCredentials']>>>;
|
|
1299
|
+
export type AzureBlobStorageUploadDataResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getIntegrationsAPI>['azureBlobStorageUploadData']>>>;
|
|
1300
|
+
export type AzureBlobStorageDeleteFileResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getIntegrationsAPI>['azureBlobStorageDeleteFile']>>>;
|
|
1301
|
+
export type AzureBlobStorageDocumentExistsResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getIntegrationsAPI>['azureBlobStorageDocumentExists']>>>;
|
|
1302
|
+
export type AzureBlobStorageGenerateDownloadSignedUrlResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getIntegrationsAPI>['azureBlobStorageGenerateDownloadSignedUrl']>>>;
|
|
1303
|
+
export type AzureBlobStorageGetDataResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getIntegrationsAPI>['azureBlobStorageGetData']>>>;
|
|
1304
|
+
export type AzureBlobStorageGenerateUploadSignedUrlResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getIntegrationsAPI>['azureBlobStorageGenerateUploadSignedUrl']>>>;
|
|
1305
|
+
export type AzureBlobStorageCopyFileResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getIntegrationsAPI>['azureBlobStorageCopyFile']>>>;
|
|
1306
|
+
export type AzureBlobStorageGetFileMetadataResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getIntegrationsAPI>['azureBlobStorageGetFileMetadata']>>>;
|
|
1307
|
+
export type AzureBlobStorageUploadFileResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getIntegrationsAPI>['azureBlobStorageUploadFile']>>>;
|
|
1308
|
+
export type AzureBlobStorageCreateReadStreamResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getIntegrationsAPI>['azureBlobStorageCreateReadStream']>>>;
|
|
1309
|
+
export type AzureBlobStorageCreateWriteStreamResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getIntegrationsAPI>['azureBlobStorageCreateWriteStream']>>>;
|
|
1310
|
+
export type GmailAuthStartResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getIntegrationsAPI>['gmailAuthStart']>>>;
|
|
1311
|
+
export type GmailOauthCallbackResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getIntegrationsAPI>['gmailOauthCallback']>>>;
|
|
1312
|
+
export type GmailSendEmailResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getIntegrationsAPI>['gmailSendEmail']>>>;
|
|
1313
|
+
export type GoogleCloudStorageSetUserCredentialsResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getIntegrationsAPI>['googleCloudStorageSetUserCredentials']>>>;
|
|
1314
|
+
export type GoogleCloudStorageUploadDataResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getIntegrationsAPI>['googleCloudStorageUploadData']>>>;
|
|
1315
|
+
export type GoogleCloudStorageDeleteFileResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getIntegrationsAPI>['googleCloudStorageDeleteFile']>>>;
|
|
1316
|
+
export type GoogleCloudStorageDocumentExistsResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getIntegrationsAPI>['googleCloudStorageDocumentExists']>>>;
|
|
1317
|
+
export type GoogleCloudStorageGenerateDownloadSignedUrlResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getIntegrationsAPI>['googleCloudStorageGenerateDownloadSignedUrl']>>>;
|
|
1318
|
+
export type GoogleCloudStorageGetDataResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getIntegrationsAPI>['googleCloudStorageGetData']>>>;
|
|
1319
|
+
export type GoogleCloudStorageGenerateUploadSignedUrlResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getIntegrationsAPI>['googleCloudStorageGenerateUploadSignedUrl']>>>;
|
|
1320
|
+
export type GoogleCloudStorageCopyFileResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getIntegrationsAPI>['googleCloudStorageCopyFile']>>>;
|
|
1321
|
+
export type GoogleCloudStorageGetFileMetadataResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getIntegrationsAPI>['googleCloudStorageGetFileMetadata']>>>;
|
|
1322
|
+
export type GoogleCloudStorageUploadFileResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getIntegrationsAPI>['googleCloudStorageUploadFile']>>>;
|
|
1323
|
+
export type GoogleCloudStorageCreateReadStreamResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getIntegrationsAPI>['googleCloudStorageCreateReadStream']>>>;
|
|
1324
|
+
export type GoogleCloudStorageCreateWriteStreamResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getIntegrationsAPI>['googleCloudStorageCreateWriteStream']>>>;
|
|
1325
|
+
export type GoogleGenerativeAISetUserCredentialsResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getIntegrationsAPI>['googleGenerativeAISetUserCredentials']>>>;
|
|
1326
|
+
export type GoogleGenerativeAIGenerateTextResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getIntegrationsAPI>['googleGenerativeAIGenerateText']>>>;
|
|
1327
|
+
export type GoogleGenerativeAICreateStreamResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getIntegrationsAPI>['googleGenerativeAICreateStream']>>>;
|
|
1328
|
+
export type GoogleOAuthGetAuthorizationUrlResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getIntegrationsAPI>['googleOAuthGetAuthorizationUrl']>>>;
|
|
1329
|
+
export type GoogleOAuthHandleOauthCallbackResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getIntegrationsAPI>['googleOAuthHandleOauthCallback']>>>;
|
|
1330
|
+
export type OpenaiSetUserCredentialsResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getIntegrationsAPI>['openaiSetUserCredentials']>>>;
|
|
1331
|
+
export type OpenaiGenerateTextResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getIntegrationsAPI>['openaiGenerateText']>>>;
|
|
1332
|
+
export type OpenaiCreateStreamResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getIntegrationsAPI>['openaiCreateStream']>>>;
|
|
1333
|
+
export type ResendSetUserCredentialsResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getIntegrationsAPI>['resendSetUserCredentials']>>>;
|
|
1334
|
+
export type ResendSendEmailResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getIntegrationsAPI>['resendSendEmail']>>>;
|
|
1335
|
+
export type StripeCreateCheckoutSessionResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getIntegrationsAPI>['stripeCreateCheckoutSession']>>>;
|
|
1336
|
+
export type StripeVerifyWebhookResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getIntegrationsAPI>['stripeVerifyWebhook']>>>;
|
|
1337
|
+
export type TwilioWhatsappCreateMessageResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getIntegrationsAPI>['twilioWhatsappCreateMessage']>>>;
|
|
526
1338
|
//# sourceMappingURL=generated-api.d.ts.map
|