@airweave/sdk 0.1.19 → 0.1.21

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.
Files changed (32) hide show
  1. package/api/resources/connections/client/Client.d.ts +86 -5
  2. package/api/resources/connections/client/Client.js +98 -17
  3. package/api/resources/destinations/client/Client.d.ts +19 -0
  4. package/api/resources/destinations/client/Client.js +21 -2
  5. package/api/resources/embeddingModels/client/Client.js +2 -2
  6. package/api/resources/search/client/Client.js +2 -2
  7. package/api/resources/sources/client/Client.d.ts +6 -1
  8. package/api/resources/sources/client/Client.js +8 -3
  9. package/api/resources/sync/client/Client.d.ts +85 -0
  10. package/api/resources/sync/client/Client.js +93 -8
  11. package/api/resources/users/client/Client.js +1 -1
  12. package/api/resources/whiteLabels/client/Client.d.ts +81 -0
  13. package/api/resources/whiteLabels/client/Client.js +89 -8
  14. package/dist/api/resources/connections/client/Client.d.ts +86 -5
  15. package/dist/api/resources/connections/client/Client.js +98 -17
  16. package/dist/api/resources/destinations/client/Client.d.ts +19 -0
  17. package/dist/api/resources/destinations/client/Client.js +21 -2
  18. package/dist/api/resources/embeddingModels/client/Client.js +2 -2
  19. package/dist/api/resources/search/client/Client.js +2 -2
  20. package/dist/api/resources/sources/client/Client.d.ts +6 -1
  21. package/dist/api/resources/sources/client/Client.js +8 -3
  22. package/dist/api/resources/sync/client/Client.d.ts +85 -0
  23. package/dist/api/resources/sync/client/Client.js +93 -8
  24. package/dist/api/resources/users/client/Client.js +1 -1
  25. package/dist/api/resources/whiteLabels/client/Client.d.ts +81 -0
  26. package/dist/api/resources/whiteLabels/client/Client.js +89 -8
  27. package/dist/version.d.ts +1 -1
  28. package/dist/version.js +1 -1
  29. package/package.json +1 -1
  30. package/reference.md +307 -35
  31. package/version.d.ts +1 -1
  32. package/version.js +1 -1
@@ -62,6 +62,15 @@ class WhiteLabels {
62
62
  /**
63
63
  * List all white labels for the current user's organization.
64
64
  *
65
+ * Args:
66
+ * -----
67
+ * db: The database session
68
+ * current_user: The current user
69
+ *
70
+ * Returns:
71
+ * --------
72
+ * list[schemas.WhiteLabel]: A list of white labels
73
+ *
65
74
  * @param {WhiteLabels.RequestOptions} requestOptions - Request-specific configuration.
66
75
  *
67
76
  * @throws {@link AirweaveSDK.UnprocessableEntityError}
@@ -77,7 +86,7 @@ class WhiteLabels {
77
86
  method: "GET",
78
87
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
79
88
  ? yield core.Supplier.get(this._options.apiKey)
80
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.19", "User-Agent": "@airweave/sdk/0.1.19", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
89
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.21", "User-Agent": "@airweave/sdk/0.1.21", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
81
90
  contentType: "application/json",
82
91
  requestType: "json",
83
92
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -126,6 +135,16 @@ class WhiteLabels {
126
135
  /**
127
136
  * Create new white label integration.
128
137
  *
138
+ * Args:
139
+ * -----
140
+ * db: The database session
141
+ * current_user: The current user
142
+ * white_label_in: The white label to create
143
+ *
144
+ * Returns:
145
+ * --------
146
+ * white_label (schemas.WhiteLabel): The created white label
147
+ *
129
148
  * @param {AirweaveSDK.WhiteLabelCreate} request
130
149
  * @param {WhiteLabels.RequestOptions} requestOptions - Request-specific configuration.
131
150
  *
@@ -148,7 +167,7 @@ class WhiteLabels {
148
167
  method: "POST",
149
168
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
150
169
  ? yield core.Supplier.get(this._options.apiKey)
151
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.19", "User-Agent": "@airweave/sdk/0.1.19", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
170
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.21", "User-Agent": "@airweave/sdk/0.1.21", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
152
171
  contentType: "application/json",
153
172
  requestType: "json",
154
173
  body: serializers.WhiteLabelCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -198,6 +217,16 @@ class WhiteLabels {
198
217
  /**
199
218
  * Get a specific white label integration.
200
219
  *
220
+ * Args:
221
+ * -----
222
+ * db: The database session
223
+ * white_label_id: The ID of the white label to get
224
+ * current_user: The current user
225
+ *
226
+ * Returns:
227
+ * --------
228
+ * white_label (schemas.WhiteLabel): The white label
229
+ *
201
230
  * @param {string} whiteLabelId
202
231
  * @param {WhiteLabels.RequestOptions} requestOptions - Request-specific configuration.
203
232
  *
@@ -214,7 +243,7 @@ class WhiteLabels {
214
243
  method: "GET",
215
244
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
216
245
  ? yield core.Supplier.get(this._options.apiKey)
217
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.19", "User-Agent": "@airweave/sdk/0.1.19", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
246
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.21", "User-Agent": "@airweave/sdk/0.1.21", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
218
247
  contentType: "application/json",
219
248
  requestType: "json",
220
249
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -263,6 +292,17 @@ class WhiteLabels {
263
292
  /**
264
293
  * Update a white label integration.
265
294
  *
295
+ * Args:
296
+ * -----
297
+ * db: The database session
298
+ * current_user: The current user
299
+ * white_label_id: The ID of the white label to update
300
+ * white_label_in: The white label to update
301
+ *
302
+ * Returns:
303
+ * --------
304
+ * white_label (schemas.WhiteLabel): The updated white label
305
+ *
266
306
  * @param {string} whiteLabelId
267
307
  * @param {AirweaveSDK.WhiteLabelUpdate} request
268
308
  * @param {WhiteLabels.RequestOptions} requestOptions - Request-specific configuration.
@@ -280,7 +320,7 @@ class WhiteLabels {
280
320
  method: "PUT",
281
321
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
282
322
  ? yield core.Supplier.get(this._options.apiKey)
283
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.19", "User-Agent": "@airweave/sdk/0.1.19", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
323
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.21", "User-Agent": "@airweave/sdk/0.1.21", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
284
324
  contentType: "application/json",
285
325
  requestType: "json",
286
326
  body: serializers.WhiteLabelUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -330,6 +370,16 @@ class WhiteLabels {
330
370
  /**
331
371
  * Delete a white label integration.
332
372
  *
373
+ * Args:
374
+ * -----
375
+ * db: The database session
376
+ * current_user: The current user
377
+ * white_label_id: The ID of the white label to delete
378
+ *
379
+ * Returns:
380
+ * --------
381
+ * white_label (schemas.WhiteLabel): The deleted white label
382
+ *
333
383
  * @param {string} whiteLabelId
334
384
  * @param {WhiteLabels.RequestOptions} requestOptions - Request-specific configuration.
335
385
  *
@@ -346,7 +396,7 @@ class WhiteLabels {
346
396
  method: "DELETE",
347
397
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
348
398
  ? yield core.Supplier.get(this._options.apiKey)
349
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.19", "User-Agent": "@airweave/sdk/0.1.19", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
399
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.21", "User-Agent": "@airweave/sdk/0.1.21", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
350
400
  contentType: "application/json",
351
401
  requestType: "json",
352
402
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -395,6 +445,16 @@ class WhiteLabels {
395
445
  /**
396
446
  * Generate the OAuth2 authorization URL by delegating to oauth2_service.
397
447
  *
448
+ * Args:
449
+ * -----
450
+ * db: The database session
451
+ * white_label_id: The ID of the white label to get the auth URL for
452
+ * user: The current user
453
+ *
454
+ * Returns:
455
+ * --------
456
+ * str: The OAuth2 authorization URL
457
+ *
398
458
  * @param {string} whiteLabelId
399
459
  * @param {WhiteLabels.RequestOptions} requestOptions - Request-specific configuration.
400
460
  *
@@ -411,7 +471,7 @@ class WhiteLabels {
411
471
  method: "GET",
412
472
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
413
473
  ? yield core.Supplier.get(this._options.apiKey)
414
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.19", "User-Agent": "@airweave/sdk/0.1.19", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
474
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.21", "User-Agent": "@airweave/sdk/0.1.21", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
415
475
  contentType: "application/json",
416
476
  requestType: "json",
417
477
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -460,6 +520,17 @@ class WhiteLabels {
460
520
  /**
461
521
  * Exchange OAuth2 code for tokens and create connection.
462
522
  *
523
+ * Args:
524
+ * -----
525
+ * white_label_id: The ID of the white label to exchange the code for
526
+ * code: The OAuth2 code
527
+ * db: The database session
528
+ * user: The current user
529
+ *
530
+ * Returns:
531
+ * --------
532
+ * connection (schemas.Connection): The created connection
533
+ *
463
534
  * @param {string} whiteLabelId
464
535
  * @param {string} request
465
536
  * @param {WhiteLabels.RequestOptions} requestOptions - Request-specific configuration.
@@ -477,7 +548,7 @@ class WhiteLabels {
477
548
  method: "POST",
478
549
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
479
550
  ? yield core.Supplier.get(this._options.apiKey)
480
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.19", "User-Agent": "@airweave/sdk/0.1.19", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
551
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.21", "User-Agent": "@airweave/sdk/0.1.21", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
481
552
  contentType: "application/json",
482
553
  requestType: "json",
483
554
  body: serializers.whiteLabels.exchangeWhiteLabelOauth2Code.Request.jsonOrThrow(request, {
@@ -529,6 +600,16 @@ class WhiteLabels {
529
600
  /**
530
601
  * List all syncs for a specific white label.
531
602
  *
603
+ * Args:
604
+ * -----
605
+ * white_label_id: The ID of the white label to list syncs for
606
+ * db: The database session
607
+ * current_user: The current user
608
+ *
609
+ * Returns:
610
+ * --------
611
+ * list[schemas.Sync]: A list of syncs
612
+ *
532
613
  * @param {string} whiteLabelId
533
614
  * @param {WhiteLabels.RequestOptions} requestOptions - Request-specific configuration.
534
615
  *
@@ -545,7 +626,7 @@ class WhiteLabels {
545
626
  method: "GET",
546
627
  headers: Object.assign({ "x-api-key": (yield core.Supplier.get(this._options.apiKey)) != null
547
628
  ? yield core.Supplier.get(this._options.apiKey)
548
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.19", "User-Agent": "@airweave/sdk/0.1.19", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
629
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@airweave/sdk", "X-Fern-SDK-Version": "0.1.21", "User-Agent": "@airweave/sdk/0.1.21", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
549
630
  contentType: "application/json",
550
631
  requestType: "json",
551
632
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -29,6 +29,16 @@ export declare class Connections {
29
29
  /**
30
30
  * Get a specific connection.
31
31
  *
32
+ * Args:
33
+ * -----
34
+ * connection_id: The ID of the connection to get.
35
+ * db: The database session.
36
+ * user: The current user.
37
+ *
38
+ * Returns:
39
+ * -------
40
+ * schemas.Connection: The connection.
41
+ *
32
42
  * @param {string} connectionId
33
43
  * @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
34
44
  *
@@ -41,6 +51,15 @@ export declare class Connections {
41
51
  /**
42
52
  * Get all active connections for the current user across all integration types.
43
53
  *
54
+ * Args:
55
+ * -----
56
+ * db: The database session.
57
+ * user: The current user.
58
+ *
59
+ * Returns:
60
+ * -------
61
+ * list[schemas.Connection]: The list of connections.
62
+ *
44
63
  * @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
45
64
  *
46
65
  * @throws {@link AirweaveSDK.UnprocessableEntityError}
@@ -53,11 +72,13 @@ export declare class Connections {
53
72
  * Get all integrations of specified type connected to the current user.
54
73
  *
55
74
  * Args:
75
+ * -----
56
76
  * integration_type (IntegrationType): The type of integration to get connections for.
57
77
  * db (AsyncSession): The database session.
58
78
  * user (schemas.User): The current user.
59
79
  *
60
80
  * Returns:
81
+ * -------
61
82
  * list[schemas.Connection]: The list of connections.
62
83
  *
63
84
  * @param {AirweaveSDK.IntegrationType} integrationType
@@ -80,6 +101,19 @@ export declare class Connections {
80
101
  * }
81
102
  * ```
82
103
  *
104
+ * Args:
105
+ * -----
106
+ * db: The database session.
107
+ * integration_type: The type of integration to connect to.
108
+ * short_name: The short name of the integration to connect to.
109
+ * name: The name of the connection.
110
+ * config_fields: The config fields for the integration.
111
+ * user: The current user.
112
+ *
113
+ * Returns:
114
+ * -------
115
+ * schemas.Connection: The connection.
116
+ *
83
117
  * @param {AirweaveSDK.IntegrationType} integrationType
84
118
  * @param {string} shortName
85
119
  * @param {AirweaveSDK.BodyConnectIntegrationConnectionsConnectIntegrationTypeShortNamePost} request
@@ -99,12 +133,14 @@ export declare class Connections {
99
133
  * Get the credentials for a connection.
100
134
  *
101
135
  * Args:
136
+ * -----
102
137
  * connection_id (UUID): The ID of the connection to get credentials for
103
138
  * db (AsyncSession): The database session
104
139
  * user (schemas.User): The current user
105
140
  *
106
141
  * Returns:
107
- * dict: The credentials for the connection
142
+ * -------
143
+ * decrypted_credentials (dict): The credentials for the connection
108
144
  *
109
145
  * @param {string} connectionId
110
146
  * @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
@@ -121,13 +157,14 @@ export declare class Connections {
121
157
  * Deletes the connection and integration credential.
122
158
  *
123
159
  * Args:
160
+ * -----
124
161
  * db (AsyncSession): The database session
125
162
  * connection_id (UUID): The ID of the connection to delete
126
- * delete_syncs_and_data (bool): Whether to delete the associated syncs and data
127
163
  * user (schemas.User): The current user
128
164
  *
129
165
  * Returns:
130
- * schemas.Connection: The deleted connection
166
+ * --------
167
+ * connection (schemas.Connection): The deleted connection
131
168
  *
132
169
  * @param {string} connectionId
133
170
  * @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
@@ -142,11 +179,14 @@ export declare class Connections {
142
179
  * Disconnect from a source connection.
143
180
  *
144
181
  * Args:
182
+ * -----
145
183
  * db (AsyncSession): The database session
146
184
  * connection_id (UUID): The ID of the connection to disconnect
147
185
  * user (schemas.User): The current user
186
+ *
148
187
  * Returns:
149
- * schemas.Connection: The disconnected connection
188
+ * --------
189
+ * connection_schema (schemas.Connection): The disconnected connection
150
190
  *
151
191
  * @param {string} connectionId
152
192
  * @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
@@ -161,12 +201,14 @@ export declare class Connections {
161
201
  * Disconnect from a destination connection.
162
202
  *
163
203
  * Args:
204
+ * -----
164
205
  * db (AsyncSession): The database session
165
206
  * connection_id (UUID): The ID of the connection to disconnect
166
207
  * user (schemas.User): The current user
167
208
  *
168
209
  * Returns:
169
- * schemas.Connection: The disconnected connection
210
+ * --------
211
+ * connection_schema (schemas.Connection): The disconnected connection
170
212
  *
171
213
  * @param {string} connectionId
172
214
  * @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
@@ -180,6 +222,12 @@ export declare class Connections {
180
222
  /**
181
223
  * Get the OAuth2 authorization URL for a source.
182
224
  *
225
+ * Args:
226
+ * -----
227
+ * db: The database session
228
+ * short_name: The short name of the source
229
+ * user: The current user
230
+ *
183
231
  * @param {AirweaveSDK.GetOauth2AuthUrlConnectionsOauth2SourceAuthUrlGetRequest} request
184
232
  * @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
185
233
  *
@@ -199,6 +247,17 @@ export declare class Connections {
199
247
  * 2. Exchange the authorization code for a token
200
248
  * 3. Create an integration credential with the token
201
249
  *
250
+ * Args:
251
+ * -----
252
+ * db: The database session
253
+ * short_name: The short name of the source
254
+ * code: The authorization code
255
+ * user: The current user
256
+ *
257
+ * Returns:
258
+ * --------
259
+ * connection (schemas.Connection): The created connection
260
+ *
202
261
  * @param {AirweaveSDK.BodySendOauth2CodeConnectionsOauth2SourceCodePost} request
203
262
  * @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
204
263
  *
@@ -214,6 +273,18 @@ export declare class Connections {
214
273
  /**
215
274
  * Exchange the OAuth2 authorization code for a white label integration.
216
275
  *
276
+ * Args:
277
+ * -----
278
+ * db: The database session
279
+ * white_label_id: The ID of the white label integration
280
+ * code: The authorization code
281
+ * user: The current user
282
+ * background_tasks: The background tasks
283
+ *
284
+ * Returns:
285
+ * --------
286
+ * connection (schemas.Connection): The created connection
287
+ *
217
288
  * @param {string} whiteLabelId
218
289
  * @param {string} request
219
290
  * @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
@@ -227,6 +298,16 @@ export declare class Connections {
227
298
  /**
228
299
  * Get the OAuth2 authorization URL for a white label integration.
229
300
  *
301
+ * Args:
302
+ * -----
303
+ * db: The database session
304
+ * white_label_id: The ID of the white label integration
305
+ * user: The current user
306
+ *
307
+ * Returns:
308
+ * --------
309
+ * str: The OAuth2 authorization URL
310
+ *
230
311
  * @param {string} whiteLabelId
231
312
  * @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
232
313
  *