@superblocksteam/sdk-api 2.0.99-next.0 → 2.0.100-next.0
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/files.d.ts +68 -0
- package/dist/files.d.ts.map +1 -0
- package/dist/files.js +42 -0
- package/dist/files.js.map +1 -0
- package/dist/index.d.ts +7 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/integrations/base/rest-api-integration-client.d.ts.map +1 -1
- package/dist/integrations/base/rest-api-integration-client.js +6 -35
- package/dist/integrations/base/rest-api-integration-client.js.map +1 -1
- package/dist/integrations/cosmosdb/client.d.ts.map +1 -1
- package/dist/integrations/cosmosdb/client.js +30 -63
- package/dist/integrations/cosmosdb/client.js.map +1 -1
- package/dist/integrations/cosmosdb/client.test.d.ts +8 -0
- package/dist/integrations/cosmosdb/client.test.d.ts.map +1 -0
- package/dist/integrations/cosmosdb/client.test.js +141 -0
- package/dist/integrations/cosmosdb/client.test.js.map +1 -0
- package/dist/integrations/declarations.d.ts +106 -66
- package/dist/integrations/declarations.d.ts.map +1 -1
- package/dist/integrations/declarations.js +33 -0
- package/dist/integrations/declarations.js.map +1 -1
- package/dist/integrations/declarations.test.d.ts +2 -0
- package/dist/integrations/declarations.test.d.ts.map +1 -0
- package/dist/integrations/declarations.test.js +40 -0
- package/dist/integrations/declarations.test.js.map +1 -0
- package/dist/integrations/gcs/client.d.ts.map +1 -1
- package/dist/integrations/gcs/client.js +1 -1
- package/dist/integrations/gcs/client.js.map +1 -1
- package/dist/integrations/index.d.ts +3 -1
- package/dist/integrations/index.d.ts.map +1 -1
- package/dist/integrations/index.js +2 -1
- package/dist/integrations/index.js.map +1 -1
- package/dist/integrations/python/client.test.js +1 -3
- package/dist/integrations/python/client.test.js.map +1 -1
- package/dist/integrations/redis/client.d.ts.map +1 -1
- package/dist/integrations/redis/client.js +8 -1
- package/dist/integrations/redis/client.js.map +1 -1
- package/dist/integrations/registry.d.ts +1 -0
- package/dist/integrations/registry.d.ts.map +1 -1
- package/dist/integrations/registry.js +6 -0
- package/dist/integrations/registry.js.map +1 -1
- package/dist/integrations/restapiintegration/client.d.ts +19 -0
- package/dist/integrations/restapiintegration/client.d.ts.map +1 -0
- package/dist/integrations/restapiintegration/client.js +18 -0
- package/dist/integrations/restapiintegration/client.js.map +1 -0
- package/dist/integrations/restapiintegration/index.d.ts +6 -0
- package/dist/integrations/restapiintegration/index.d.ts.map +1 -0
- package/dist/integrations/restapiintegration/index.js +5 -0
- package/dist/integrations/restapiintegration/index.js.map +1 -0
- package/dist/integrations/restapiintegration/types.d.ts +33 -0
- package/dist/integrations/restapiintegration/types.d.ts.map +1 -0
- package/dist/integrations/restapiintegration/types.js +5 -0
- package/dist/integrations/restapiintegration/types.js.map +1 -0
- package/dist/integrations/snowflake/types.d.ts +4 -4
- package/package.json +3 -2
- package/src/files.ts +54 -0
- package/src/index.ts +21 -0
- package/src/integrations/base/rest-api-integration-client.ts +6 -43
- package/src/integrations/cosmosdb/client.test.ts +209 -0
- package/src/integrations/cosmosdb/client.ts +66 -75
- package/src/integrations/declarations.test.ts +64 -0
- package/src/integrations/declarations.ts +231 -134
- package/src/integrations/gcs/client.ts +1 -5
- package/src/integrations/index.ts +6 -0
- package/src/integrations/python/client.test.ts +5 -3
- package/src/integrations/redis/client.ts +10 -1
- package/src/integrations/registry.ts +11 -0
- package/src/integrations/restapiintegration/client.ts +21 -0
- package/src/integrations/restapiintegration/index.ts +6 -0
- package/src/integrations/restapiintegration/types.ts +40 -0
- package/src/integrations/snowflake/README.md +7 -7
- package/src/integrations/snowflake/types.ts +4 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.test.js","sourceRoot":"","sources":["../../../src/integrations/cosmosdb/client.test.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,M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CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -93,6 +93,7 @@ import type { SuperblocksOCRClient } from "./superblocks-ocr/index.js";
|
|
|
93
93
|
import type { LakebaseClient } from "./lakebase/index.js";
|
|
94
94
|
import type { SnowflakePostgresClient } from "./snowflakepostgres/index.js";
|
|
95
95
|
import type { SmtpClient } from "./smtp/index.js";
|
|
96
|
+
import type { RestApiIntegrationPluginClient } from "./restapiintegration/index.js";
|
|
96
97
|
import type { PythonClient } from "./python/index.js";
|
|
97
98
|
/**
|
|
98
99
|
* Base type for all integration references.
|
|
@@ -116,6 +117,11 @@ export interface IntegrationRef<TPluginId extends string, TClient> {
|
|
|
116
117
|
*/
|
|
117
118
|
readonly __clientType?: TClient;
|
|
118
119
|
}
|
|
120
|
+
/**
|
|
121
|
+
* Rejects the broad `string` type while still accepting string literal types.
|
|
122
|
+
* This keeps integration IDs statically analyzable by the build pipeline.
|
|
123
|
+
*/
|
|
124
|
+
type LiteralString<T extends string> = string extends T ? never : T;
|
|
119
125
|
/** Reference to a PostgreSQL integration */
|
|
120
126
|
export type PostgresRef = IntegrationRef<"postgres", PostgresClient>;
|
|
121
127
|
/** Reference to a Slack integration */
|
|
@@ -248,6 +254,8 @@ export type LakebaseRef = IntegrationRef<"lakebase", LakebaseClient>;
|
|
|
248
254
|
export type SnowflakePostgresRef = IntegrationRef<"snowflakepostgres", SnowflakePostgresClient>;
|
|
249
255
|
/** Reference to an SMTP integration */
|
|
250
256
|
export type SmtpRef = IntegrationRef<"smtp", SmtpClient>;
|
|
257
|
+
/** Reference to a REST API Integration */
|
|
258
|
+
export type RestApiIntegrationRef = IntegrationRef<"restapiintegration", RestApiIntegrationPluginClient>;
|
|
251
259
|
/**
|
|
252
260
|
* Declare a PostgreSQL integration.
|
|
253
261
|
*
|
|
@@ -277,7 +285,7 @@ export type SmtpRef = IntegrationRef<"smtp", SmtpClient>;
|
|
|
277
285
|
* });
|
|
278
286
|
* ```
|
|
279
287
|
*/
|
|
280
|
-
export declare function postgres(id:
|
|
288
|
+
export declare function postgres<T extends string>(id: LiteralString<T>): PostgresRef;
|
|
281
289
|
/**
|
|
282
290
|
* Declare a Slack integration.
|
|
283
291
|
*
|
|
@@ -306,455 +314,486 @@ export declare function postgres(id: string): PostgresRef;
|
|
|
306
314
|
* });
|
|
307
315
|
* ```
|
|
308
316
|
*/
|
|
309
|
-
export declare function slack(id:
|
|
317
|
+
export declare function slack<T extends string>(id: LiteralString<T>): SlackRef;
|
|
310
318
|
/**
|
|
311
319
|
* Declare an OpenAI integration.
|
|
312
320
|
*
|
|
313
321
|
* @param id - The integration ID (UUID)
|
|
314
322
|
* @returns An integration reference for use in the API config
|
|
315
323
|
*/
|
|
316
|
-
export declare function openai(id:
|
|
324
|
+
export declare function openai<T extends string>(id: LiteralString<T>): OpenAIRef;
|
|
317
325
|
/**
|
|
318
326
|
* Declare an Anthropic integration.
|
|
319
327
|
*
|
|
320
328
|
* @param id - The integration ID (UUID)
|
|
321
329
|
* @returns An integration reference for use in the API config
|
|
322
330
|
*/
|
|
323
|
-
export declare function anthropic(id:
|
|
331
|
+
export declare function anthropic<T extends string>(id: LiteralString<T>): AnthropicRef;
|
|
324
332
|
/**
|
|
325
333
|
* Declare a Stripe integration.
|
|
326
334
|
*
|
|
327
335
|
* @param id - The integration ID (UUID)
|
|
328
336
|
* @returns An integration reference for use in the API config
|
|
329
337
|
*/
|
|
330
|
-
export declare function stripe(id:
|
|
338
|
+
export declare function stripe<T extends string>(id: LiteralString<T>): StripeRef;
|
|
331
339
|
/**
|
|
332
340
|
* Declare a GitHub integration.
|
|
333
341
|
*
|
|
334
342
|
* @param id - The integration ID (UUID)
|
|
335
343
|
* @returns An integration reference for use in the API config
|
|
336
344
|
*/
|
|
337
|
-
export declare function github(id:
|
|
345
|
+
export declare function github<T extends string>(id: LiteralString<T>): GitHubRef;
|
|
338
346
|
/**
|
|
339
347
|
* Declare a Notion integration.
|
|
340
348
|
*
|
|
341
349
|
* @param id - The integration ID (UUID)
|
|
342
350
|
* @returns An integration reference for use in the API config
|
|
343
351
|
*/
|
|
344
|
-
export declare function notion(id:
|
|
352
|
+
export declare function notion<T extends string>(id: LiteralString<T>): NotionRef;
|
|
345
353
|
/**
|
|
346
354
|
* Declare a Snowflake integration.
|
|
347
355
|
*
|
|
348
356
|
* @param id - The integration ID (UUID)
|
|
349
357
|
* @returns An integration reference for use in the API config
|
|
350
358
|
*/
|
|
351
|
-
export declare function snowflake(id:
|
|
359
|
+
export declare function snowflake<T extends string>(id: LiteralString<T>): SnowflakeRef;
|
|
352
360
|
/**
|
|
353
361
|
* Declare a Snowflake Cortex integration.
|
|
354
362
|
*
|
|
355
363
|
* @param id - The integration ID (UUID)
|
|
356
364
|
* @returns An integration reference for use in the API config
|
|
357
365
|
*/
|
|
358
|
-
export declare function snowflakeCortex(id:
|
|
366
|
+
export declare function snowflakeCortex<T extends string>(id: LiteralString<T>): SnowflakeCortexRef;
|
|
359
367
|
/**
|
|
360
368
|
* Declare an Airtable integration.
|
|
361
369
|
*
|
|
362
370
|
* @param id - The integration ID (UUID)
|
|
363
371
|
* @returns An integration reference for use in the API config
|
|
364
372
|
*/
|
|
365
|
-
export declare function airtable(id:
|
|
373
|
+
export declare function airtable<T extends string>(id: LiteralString<T>): AirtableRef;
|
|
366
374
|
/**
|
|
367
375
|
* Declare an Asana integration.
|
|
368
376
|
*
|
|
369
377
|
* @param id - The integration ID (UUID)
|
|
370
378
|
* @returns An integration reference for use in the API config
|
|
371
379
|
*/
|
|
372
|
-
export declare function asana(id:
|
|
380
|
+
export declare function asana<T extends string>(id: LiteralString<T>): AsanaRef;
|
|
373
381
|
/**
|
|
374
382
|
* Declare a Bitbucket integration.
|
|
375
383
|
*
|
|
376
384
|
* @param id - The integration ID (UUID)
|
|
377
385
|
* @returns An integration reference for use in the API config
|
|
378
386
|
*/
|
|
379
|
-
export declare function bitbucket(id:
|
|
387
|
+
export declare function bitbucket<T extends string>(id: LiteralString<T>): BitbucketRef;
|
|
380
388
|
/**
|
|
381
389
|
* Declare a Box integration.
|
|
382
390
|
*
|
|
383
391
|
* @param id - The integration ID (UUID)
|
|
384
392
|
* @returns An integration reference for use in the API config
|
|
385
393
|
*/
|
|
386
|
-
export declare function box(id:
|
|
394
|
+
export declare function box<T extends string>(id: LiteralString<T>): BoxRef;
|
|
387
395
|
/**
|
|
388
396
|
* Declare a CircleCI integration.
|
|
389
397
|
*
|
|
390
398
|
* @param id - The integration ID (UUID)
|
|
391
399
|
* @returns An integration reference for use in the API config
|
|
392
400
|
*/
|
|
393
|
-
export declare function circleci(id:
|
|
401
|
+
export declare function circleci<T extends string>(id: LiteralString<T>): CircleCIRef;
|
|
394
402
|
/**
|
|
395
403
|
* Declare a Cohere integration.
|
|
396
404
|
*
|
|
397
405
|
* @param id - The integration ID (UUID)
|
|
398
406
|
* @returns An integration reference for use in the API config
|
|
399
407
|
*/
|
|
400
|
-
export declare function cohere(id:
|
|
408
|
+
export declare function cohere<T extends string>(id: LiteralString<T>): CohereRef;
|
|
401
409
|
/**
|
|
402
410
|
* Declare a Confluence integration.
|
|
403
411
|
*
|
|
404
412
|
* @param id - The integration ID (UUID)
|
|
405
413
|
* @returns An integration reference for use in the API config
|
|
406
414
|
*/
|
|
407
|
-
export declare function confluence(id:
|
|
415
|
+
export declare function confluence<T extends string>(id: LiteralString<T>): ConfluenceRef;
|
|
408
416
|
/**
|
|
409
417
|
* Declare a Datadog integration.
|
|
410
418
|
*
|
|
411
419
|
* @param id - The integration ID (UUID)
|
|
412
420
|
* @returns An integration reference for use in the API config
|
|
413
421
|
*/
|
|
414
|
-
export declare function datadog(id:
|
|
422
|
+
export declare function datadog<T extends string>(id: LiteralString<T>): DatadogRef;
|
|
415
423
|
/**
|
|
416
424
|
* Declare a Dropbox integration.
|
|
417
425
|
*
|
|
418
426
|
* @param id - The integration ID (UUID)
|
|
419
427
|
* @returns An integration reference for use in the API config
|
|
420
428
|
*/
|
|
421
|
-
export declare function dropbox(id:
|
|
429
|
+
export declare function dropbox<T extends string>(id: LiteralString<T>): DropboxRef;
|
|
422
430
|
/**
|
|
423
431
|
* Declare an ElasticSearch integration.
|
|
424
432
|
*
|
|
425
433
|
* @param id - The integration ID (UUID)
|
|
426
434
|
* @returns An integration reference for use in the API config
|
|
427
435
|
*/
|
|
428
|
-
export declare function elasticsearch(id:
|
|
436
|
+
export declare function elasticsearch<T extends string>(id: LiteralString<T>): ElasticSearchRef;
|
|
429
437
|
/**
|
|
430
438
|
* Declare a Fireworks integration.
|
|
431
439
|
*
|
|
432
440
|
* @param id - The integration ID (UUID)
|
|
433
441
|
* @returns An integration reference for use in the API config
|
|
434
442
|
*/
|
|
435
|
-
export declare function fireworks(id:
|
|
443
|
+
export declare function fireworks<T extends string>(id: LiteralString<T>): FireworksRef;
|
|
436
444
|
/**
|
|
437
445
|
* Declare a Front integration.
|
|
438
446
|
*
|
|
439
447
|
* @param id - The integration ID (UUID)
|
|
440
448
|
* @returns An integration reference for use in the API config
|
|
441
449
|
*/
|
|
442
|
-
export declare function front(id:
|
|
450
|
+
export declare function front<T extends string>(id: LiteralString<T>): FrontRef;
|
|
443
451
|
/**
|
|
444
452
|
* Declare a Gemini integration.
|
|
445
453
|
*
|
|
446
454
|
* @param id - The integration ID (UUID)
|
|
447
455
|
* @returns An integration reference for use in the API config
|
|
448
456
|
*/
|
|
449
|
-
export declare function gemini(id:
|
|
457
|
+
export declare function gemini<T extends string>(id: LiteralString<T>): GeminiRef;
|
|
450
458
|
/**
|
|
451
459
|
* Declare a Google Analytics integration.
|
|
452
460
|
*
|
|
453
461
|
* @param id - The integration ID (UUID)
|
|
454
462
|
* @returns An integration reference for use in the API config
|
|
455
463
|
*/
|
|
456
|
-
export declare function googleAnalytics(id:
|
|
464
|
+
export declare function googleAnalytics<T extends string>(id: LiteralString<T>): GoogleAnalyticsRef;
|
|
457
465
|
/**
|
|
458
466
|
* Declare a Google Drive integration.
|
|
459
467
|
*
|
|
460
468
|
* @param id - The integration ID (UUID)
|
|
461
469
|
* @returns An integration reference for use in the API config
|
|
462
470
|
*/
|
|
463
|
-
export declare function googleDrive(id:
|
|
471
|
+
export declare function googleDrive<T extends string>(id: LiteralString<T>): GoogleDriveRef;
|
|
464
472
|
/**
|
|
465
473
|
* Declare a Groq integration.
|
|
466
474
|
*
|
|
467
475
|
* @param id - The integration ID (UUID)
|
|
468
476
|
* @returns An integration reference for use in the API config
|
|
469
477
|
*/
|
|
470
|
-
export declare function groq(id:
|
|
478
|
+
export declare function groq<T extends string>(id: LiteralString<T>): GroqRef;
|
|
471
479
|
/**
|
|
472
480
|
* Declare a HubSpot integration.
|
|
473
481
|
*
|
|
474
482
|
* @param id - The integration ID (UUID)
|
|
475
483
|
* @returns An integration reference for use in the API config
|
|
476
484
|
*/
|
|
477
|
-
export declare function hubspot(id:
|
|
485
|
+
export declare function hubspot<T extends string>(id: LiteralString<T>): HubSpotRef;
|
|
478
486
|
/**
|
|
479
487
|
* Declare an Intercom integration.
|
|
480
488
|
*
|
|
481
489
|
* @param id - The integration ID (UUID)
|
|
482
490
|
* @returns An integration reference for use in the API config
|
|
483
491
|
*/
|
|
484
|
-
export declare function intercom(id:
|
|
492
|
+
export declare function intercom<T extends string>(id: LiteralString<T>): IntercomRef;
|
|
485
493
|
/**
|
|
486
494
|
* Declare a Jira integration.
|
|
487
495
|
*
|
|
488
496
|
* @param id - The integration ID (UUID)
|
|
489
497
|
* @returns An integration reference for use in the API config
|
|
490
498
|
*/
|
|
491
|
-
export declare function jira(id:
|
|
499
|
+
export declare function jira<T extends string>(id: LiteralString<T>): JiraRef;
|
|
492
500
|
/**
|
|
493
501
|
* Declare a LaunchDarkly integration.
|
|
494
502
|
*
|
|
495
503
|
* @param id - The integration ID (UUID)
|
|
496
504
|
* @returns An integration reference for use in the API config
|
|
497
505
|
*/
|
|
498
|
-
export declare function launchDarkly(id:
|
|
506
|
+
export declare function launchDarkly<T extends string>(id: LiteralString<T>): LaunchDarklyRef;
|
|
499
507
|
/**
|
|
500
508
|
* Declare a Mistral integration.
|
|
501
509
|
*
|
|
502
510
|
* @param id - The integration ID (UUID)
|
|
503
511
|
* @returns An integration reference for use in the API config
|
|
504
512
|
*/
|
|
505
|
-
export declare function mistral(id:
|
|
513
|
+
export declare function mistral<T extends string>(id: LiteralString<T>): MistralRef;
|
|
506
514
|
/**
|
|
507
515
|
* Declare a PagerDuty integration.
|
|
508
516
|
*
|
|
509
517
|
* @param id - The integration ID (UUID)
|
|
510
518
|
* @returns An integration reference for use in the API config
|
|
511
519
|
*/
|
|
512
|
-
export declare function pagerDuty(id:
|
|
520
|
+
export declare function pagerDuty<T extends string>(id: LiteralString<T>): PagerDutyRef;
|
|
513
521
|
/**
|
|
514
522
|
* Declare a Perplexity integration.
|
|
515
523
|
*
|
|
516
524
|
* @param id - The integration ID (UUID)
|
|
517
525
|
* @returns An integration reference for use in the API config
|
|
518
526
|
*/
|
|
519
|
-
export declare function perplexity(id:
|
|
527
|
+
export declare function perplexity<T extends string>(id: LiteralString<T>): PerplexityRef;
|
|
520
528
|
/**
|
|
521
529
|
* Declare a Segment integration.
|
|
522
530
|
*
|
|
523
531
|
* @param id - The integration ID (UUID)
|
|
524
532
|
* @returns An integration reference for use in the API config
|
|
525
533
|
*/
|
|
526
|
-
export declare function segment(id:
|
|
534
|
+
export declare function segment<T extends string>(id: LiteralString<T>): SegmentRef;
|
|
527
535
|
/**
|
|
528
536
|
* Declare a SendGrid integration.
|
|
529
537
|
*
|
|
530
538
|
* @param id - The integration ID (UUID)
|
|
531
539
|
* @returns An integration reference for use in the API config
|
|
532
540
|
*/
|
|
533
|
-
export declare function sendGrid(id:
|
|
541
|
+
export declare function sendGrid<T extends string>(id: LiteralString<T>): SendGridRef;
|
|
534
542
|
/**
|
|
535
543
|
* Declare a StabilityAI integration.
|
|
536
544
|
*
|
|
537
545
|
* @param id - The integration ID (UUID)
|
|
538
546
|
* @returns An integration reference for use in the API config
|
|
539
547
|
*/
|
|
540
|
-
export declare function stabilityAI(id:
|
|
548
|
+
export declare function stabilityAI<T extends string>(id: LiteralString<T>): StabilityAIRef;
|
|
541
549
|
/**
|
|
542
550
|
* Declare a Twilio integration.
|
|
543
551
|
*
|
|
544
552
|
* @param id - The integration ID (UUID)
|
|
545
553
|
* @returns An integration reference for use in the API config
|
|
546
554
|
*/
|
|
547
|
-
export declare function twilio(id:
|
|
555
|
+
export declare function twilio<T extends string>(id: LiteralString<T>): TwilioRef;
|
|
548
556
|
/**
|
|
549
557
|
* Declare a Zendesk integration.
|
|
550
558
|
*
|
|
551
559
|
* @param id - The integration ID (UUID)
|
|
552
560
|
* @returns An integration reference for use in the API config
|
|
553
561
|
*/
|
|
554
|
-
export declare function zendesk(id:
|
|
562
|
+
export declare function zendesk<T extends string>(id: LiteralString<T>): ZendeskRef;
|
|
555
563
|
/**
|
|
556
564
|
* Declare a Zoom integration.
|
|
557
565
|
*
|
|
558
566
|
* @param id - The integration ID (UUID)
|
|
559
567
|
* @returns An integration reference for use in the API config
|
|
560
568
|
*/
|
|
561
|
-
export declare function zoom(id:
|
|
569
|
+
export declare function zoom<T extends string>(id: LiteralString<T>): ZoomRef;
|
|
562
570
|
/**
|
|
563
571
|
* Declare a GraphQL integration.
|
|
564
572
|
*
|
|
565
573
|
* @param id - The integration ID (UUID)
|
|
566
574
|
* @returns An integration reference for use in the API config
|
|
567
575
|
*/
|
|
568
|
-
export declare function graphql(id:
|
|
576
|
+
export declare function graphql<T extends string>(id: LiteralString<T>): GraphQLRef;
|
|
569
577
|
/**
|
|
570
578
|
* Declare a MySQL integration.
|
|
571
579
|
*
|
|
572
580
|
* @param id - The integration ID (UUID)
|
|
573
581
|
* @returns An integration reference for use in the API config
|
|
574
582
|
*/
|
|
575
|
-
export declare function mysql(id:
|
|
583
|
+
export declare function mysql<T extends string>(id: LiteralString<T>): MySQLRef;
|
|
576
584
|
/**
|
|
577
585
|
* Declare a MariaDB integration.
|
|
578
586
|
*
|
|
579
587
|
* @param id - The integration ID (UUID)
|
|
580
588
|
* @returns An integration reference for use in the API config
|
|
581
589
|
*/
|
|
582
|
-
export declare function mariadb(id:
|
|
590
|
+
export declare function mariadb<T extends string>(id: LiteralString<T>): MariaDBRef;
|
|
583
591
|
/**
|
|
584
592
|
* Declare a MSSQL integration.
|
|
585
593
|
*
|
|
586
594
|
* @param id - The integration ID (UUID)
|
|
587
595
|
* @returns An integration reference for use in the API config
|
|
588
596
|
*/
|
|
589
|
-
export declare function mssql(id:
|
|
597
|
+
export declare function mssql<T extends string>(id: LiteralString<T>): MSSQLRef;
|
|
590
598
|
/**
|
|
591
599
|
* Declare a CockroachDB integration.
|
|
592
600
|
*
|
|
593
601
|
* @param id - The integration ID (UUID)
|
|
594
602
|
* @returns An integration reference for use in the API config
|
|
595
603
|
*/
|
|
596
|
-
export declare function cockroachdb(id:
|
|
604
|
+
export declare function cockroachdb<T extends string>(id: LiteralString<T>): CockroachDBRef;
|
|
597
605
|
/**
|
|
598
606
|
* Declare an OracleDB integration.
|
|
599
607
|
*
|
|
600
608
|
* @param id - The integration ID (UUID)
|
|
601
609
|
* @returns An integration reference for use in the API config
|
|
602
610
|
*/
|
|
603
|
-
export declare function oracledb(id:
|
|
611
|
+
export declare function oracledb<T extends string>(id: LiteralString<T>): OracleDBRef;
|
|
604
612
|
/**
|
|
605
613
|
* Declare a Redshift integration.
|
|
606
614
|
*
|
|
607
615
|
* @param id - The integration ID (UUID)
|
|
608
616
|
* @returns An integration reference for use in the API config
|
|
609
617
|
*/
|
|
610
|
-
export declare function redshift(id:
|
|
618
|
+
export declare function redshift<T extends string>(id: LiteralString<T>): RedshiftRef;
|
|
611
619
|
/**
|
|
612
620
|
* Declare an Athena integration.
|
|
613
621
|
*
|
|
614
622
|
* @param id - The integration ID (UUID)
|
|
615
623
|
* @returns An integration reference for use in the API config
|
|
616
624
|
*/
|
|
617
|
-
export declare function athena(id:
|
|
625
|
+
export declare function athena<T extends string>(id: LiteralString<T>): AthenaRef;
|
|
618
626
|
/**
|
|
619
627
|
* Declare a Databricks integration.
|
|
620
628
|
*
|
|
621
629
|
* @param id - The integration ID (UUID)
|
|
622
630
|
* @returns An integration reference for use in the API config
|
|
623
631
|
*/
|
|
624
|
-
export declare function databricks(id:
|
|
632
|
+
export declare function databricks<T extends string>(id: LiteralString<T>): DatabricksRef;
|
|
625
633
|
/**
|
|
626
634
|
* Declare a BigQuery integration.
|
|
627
635
|
*
|
|
628
636
|
* @param id - The integration ID (UUID)
|
|
629
637
|
* @returns An integration reference for use in the API config
|
|
630
638
|
*/
|
|
631
|
-
export declare function bigquery(id:
|
|
639
|
+
export declare function bigquery<T extends string>(id: LiteralString<T>): BigQueryRef;
|
|
632
640
|
/**
|
|
633
641
|
* Declare a MongoDB integration.
|
|
634
642
|
*
|
|
635
643
|
* @param id - The integration ID (UUID)
|
|
636
644
|
* @returns An integration reference for use in the API config
|
|
637
645
|
*/
|
|
638
|
-
export declare function mongodb(id:
|
|
646
|
+
export declare function mongodb<T extends string>(id: LiteralString<T>): MongoDBRef;
|
|
639
647
|
/**
|
|
640
648
|
* Declare a DynamoDB integration.
|
|
641
649
|
*
|
|
642
650
|
* @param id - The integration ID (UUID)
|
|
643
651
|
* @returns An integration reference for use in the API config
|
|
644
652
|
*/
|
|
645
|
-
export declare function dynamodb(id:
|
|
653
|
+
export declare function dynamodb<T extends string>(id: LiteralString<T>): DynamoDBRef;
|
|
646
654
|
/**
|
|
647
655
|
* Declare a CosmosDB integration.
|
|
648
656
|
*
|
|
649
657
|
* @param id - The integration ID (UUID)
|
|
650
658
|
* @returns An integration reference for use in the API config
|
|
651
659
|
*/
|
|
652
|
-
export declare function cosmosdb(id:
|
|
660
|
+
export declare function cosmosdb<T extends string>(id: LiteralString<T>): CosmosDBRef;
|
|
653
661
|
/**
|
|
654
662
|
* Declare a Couchbase integration.
|
|
655
663
|
*
|
|
656
664
|
* @param id - The integration ID (UUID)
|
|
657
665
|
* @returns An integration reference for use in the API config
|
|
658
666
|
*/
|
|
659
|
-
export declare function couchbase(id:
|
|
667
|
+
export declare function couchbase<T extends string>(id: LiteralString<T>): CouchbaseRef;
|
|
660
668
|
/**
|
|
661
669
|
* Declare an S3 integration.
|
|
662
670
|
*
|
|
663
671
|
* @param id - The integration ID (UUID)
|
|
664
672
|
* @returns An integration reference for use in the API config
|
|
665
673
|
*/
|
|
666
|
-
export declare function s3(id:
|
|
674
|
+
export declare function s3<T extends string>(id: LiteralString<T>): S3Ref;
|
|
667
675
|
/**
|
|
668
676
|
* Declare a GCS (Google Cloud Storage) integration.
|
|
669
677
|
*
|
|
670
678
|
* @param id - The integration ID (UUID)
|
|
671
679
|
* @returns An integration reference for use in the API config
|
|
672
680
|
*/
|
|
673
|
-
export declare function gcs(id:
|
|
681
|
+
export declare function gcs<T extends string>(id: LiteralString<T>): GCSRef;
|
|
674
682
|
/**
|
|
675
683
|
* Declare a Google Sheets integration.
|
|
676
684
|
*
|
|
677
685
|
* @param id - The integration ID (UUID)
|
|
678
686
|
* @returns An integration reference for use in the API config
|
|
679
687
|
*/
|
|
680
|
-
export declare function googleSheets(id:
|
|
688
|
+
export declare function googleSheets<T extends string>(id: LiteralString<T>): GoogleSheetsRef;
|
|
681
689
|
/**
|
|
682
690
|
* Declare a Kafka integration.
|
|
683
691
|
*
|
|
684
692
|
* @param id - The integration ID (UUID)
|
|
685
693
|
* @returns An integration reference for use in the API config
|
|
686
694
|
*/
|
|
687
|
-
export declare function kafka(id:
|
|
695
|
+
export declare function kafka<T extends string>(id: LiteralString<T>): KafkaRef;
|
|
688
696
|
/**
|
|
689
697
|
* Declare a Kinesis integration.
|
|
690
698
|
*
|
|
691
699
|
* @param id - The integration ID (UUID)
|
|
692
700
|
* @returns An integration reference for use in the API config
|
|
693
701
|
*/
|
|
694
|
-
export declare function kinesis(id:
|
|
702
|
+
export declare function kinesis<T extends string>(id: LiteralString<T>): KinesisRef;
|
|
695
703
|
/**
|
|
696
704
|
* Declare a Salesforce integration.
|
|
697
705
|
*
|
|
698
706
|
* @param id - The integration ID (UUID)
|
|
699
707
|
* @returns An integration reference for use in the API config
|
|
700
708
|
*/
|
|
701
|
-
export declare function salesforce(id:
|
|
709
|
+
export declare function salesforce<T extends string>(id: LiteralString<T>): SalesforceRef;
|
|
702
710
|
/**
|
|
703
711
|
* Declare a Redis integration.
|
|
704
712
|
*
|
|
705
713
|
* @param id - The integration ID (UUID)
|
|
706
714
|
* @returns An integration reference for use in the API config
|
|
707
715
|
*/
|
|
708
|
-
export declare function redis(id:
|
|
716
|
+
export declare function redis<T extends string>(id: LiteralString<T>): RedisRef;
|
|
709
717
|
/**
|
|
710
718
|
* Declare a Superblocks OCR integration.
|
|
711
719
|
*
|
|
712
720
|
* @param id - The integration ID (UUID)
|
|
713
721
|
* @returns An integration reference for use in the API config
|
|
714
722
|
*/
|
|
715
|
-
export declare function superblocksOcr(id:
|
|
723
|
+
export declare function superblocksOcr<T extends string>(id: LiteralString<T>): SuperblocksOCRRef;
|
|
716
724
|
/**
|
|
717
725
|
* Declare a Python integration.
|
|
718
726
|
*
|
|
719
727
|
* @param id - The integration ID (UUID)
|
|
720
728
|
* @returns An integration reference for use in the API config
|
|
721
729
|
*/
|
|
722
|
-
export declare function python(id:
|
|
730
|
+
export declare function python<T extends string>(id: LiteralString<T>): PythonRef;
|
|
723
731
|
/**
|
|
724
732
|
* Declare a Confluent integration (Kafka-compatible).
|
|
725
733
|
*
|
|
726
734
|
* @param id - The integration ID (UUID)
|
|
727
735
|
* @returns An integration reference for use in the API config
|
|
728
736
|
*/
|
|
729
|
-
export declare function confluent(id:
|
|
737
|
+
export declare function confluent<T extends string>(id: LiteralString<T>): ConfluentRef;
|
|
730
738
|
/**
|
|
731
739
|
* Declare a Redpanda integration (Kafka-compatible).
|
|
732
740
|
*
|
|
733
741
|
* @param id - The integration ID (UUID)
|
|
734
742
|
* @returns An integration reference for use in the API config
|
|
735
743
|
*/
|
|
736
|
-
export declare function redpanda(id:
|
|
744
|
+
export declare function redpanda<T extends string>(id: LiteralString<T>): RedpandaRef;
|
|
737
745
|
/**
|
|
738
746
|
* Declare a Lakebase integration.
|
|
739
747
|
*
|
|
740
748
|
* @param id - The integration ID (UUID)
|
|
741
749
|
* @returns An integration reference for use in the API config
|
|
742
750
|
*/
|
|
743
|
-
export declare function lakebase(id:
|
|
751
|
+
export declare function lakebase<T extends string>(id: LiteralString<T>): LakebaseRef;
|
|
744
752
|
/**
|
|
745
753
|
* Declare a Snowflake Postgres integration.
|
|
746
754
|
*
|
|
747
755
|
* @param id - The integration ID (UUID)
|
|
748
756
|
* @returns An integration reference for use in the API config
|
|
749
757
|
*/
|
|
750
|
-
export declare function snowflakePostgres(id:
|
|
758
|
+
export declare function snowflakePostgres<T extends string>(id: LiteralString<T>): SnowflakePostgresRef;
|
|
751
759
|
/**
|
|
752
760
|
* Declare an SMTP integration.
|
|
753
761
|
*
|
|
754
762
|
* @param id - The integration ID (UUID)
|
|
755
763
|
* @returns An integration reference for use in the API config
|
|
756
764
|
*/
|
|
757
|
-
export declare function smtp(id:
|
|
765
|
+
export declare function smtp<T extends string>(id: LiteralString<T>): SmtpRef;
|
|
766
|
+
/**
|
|
767
|
+
* Declare a REST API Integration.
|
|
768
|
+
*
|
|
769
|
+
* Use this for REST API Integrations configured with a base URL and
|
|
770
|
+
* authentication in the integrations page.
|
|
771
|
+
*
|
|
772
|
+
* @param id - The integration ID (UUID)
|
|
773
|
+
* @returns An integration reference for use in the API config
|
|
774
|
+
*
|
|
775
|
+
* @example
|
|
776
|
+
* ```typescript
|
|
777
|
+
* import { api, z, restApiIntegration } from '@superblocksteam/sdk-api';
|
|
778
|
+
*
|
|
779
|
+
* const MY_API = 'a1b2c3d4-uuid';
|
|
780
|
+
*
|
|
781
|
+
* export default api({
|
|
782
|
+
* integrations: {
|
|
783
|
+
* myApi: restApiIntegration(MY_API),
|
|
784
|
+
* },
|
|
785
|
+
* output: z.object({ users: z.array(z.unknown()) }),
|
|
786
|
+
* async run(ctx) {
|
|
787
|
+
* const users = await ctx.integrations.myApi.apiRequest(
|
|
788
|
+
* { method: 'GET', path: '/users' },
|
|
789
|
+
* { response: z.object({ users: z.array(z.unknown()) }) },
|
|
790
|
+
* );
|
|
791
|
+
* return users;
|
|
792
|
+
* },
|
|
793
|
+
* });
|
|
794
|
+
* ```
|
|
795
|
+
*/
|
|
796
|
+
export declare function restApiIntegration<T extends string>(id: LiteralString<T>): RestApiIntegrationRef;
|
|
758
797
|
/**
|
|
759
798
|
* Union of all possible integration reference types.
|
|
760
799
|
*/
|
|
@@ -822,4 +861,5 @@ export declare function extractIntegrationDeclarations(integrations: Record<stri
|
|
|
822
861
|
export declare function getIntegrationDeclarations(api: {
|
|
823
862
|
integrations?: unknown;
|
|
824
863
|
}): IntegrationDeclaration[];
|
|
864
|
+
export {};
|
|
825
865
|
//# sourceMappingURL=declarations.d.ts.map
|