svix 2.3.0 → 2.4.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.
Files changed (35) hide show
  1. package/dist/index.d.mts +1012 -640
  2. package/dist/index.d.mts.map +1 -1
  3. package/dist/index.mjs +4399 -3714
  4. package/dist/index.mjs.map +1 -1
  5. package/package.json +1 -1
  6. package/src/api/destination.ts +133 -0
  7. package/src/api/destinationTransformation.ts +55 -0
  8. package/src/api_internal/destination.ts +12 -0
  9. package/src/api_internal/destinationAutoconfig.ts +27 -0
  10. package/src/api_internal/endpoint.ts +8 -3
  11. package/src/api_internal/{endpointAutoConfig.ts → endpointAutoConfigDeprecated.ts} +1 -1
  12. package/src/api_internal/endpointAutoconfig.ts +50 -0
  13. package/src/autoconfig.test.ts +162 -3
  14. package/src/autoconfig.ts +87 -26
  15. package/src/autoconfigConsumer.ts +90 -16
  16. package/src/index.ts +5 -0
  17. package/src/models/autoConfigSubscriptionOut.ts +38 -0
  18. package/src/models/destinationIn.ts +303 -0
  19. package/src/models/destinationOut.ts +295 -0
  20. package/src/models/destinationPatch.ts +302 -0
  21. package/src/models/destinationStatus.ts +18 -0
  22. package/src/models/destinationStatusIn.ts +16 -0
  23. package/src/models/destinationTransformIn.ts +19 -0
  24. package/src/models/destinationTransformationOut.ts +22 -0
  25. package/src/models/fifoEndpointConfigIn.ts +25 -0
  26. package/src/models/index.ts +11 -0
  27. package/src/models/ingestSourceIn.ts +12 -0
  28. package/src/models/ingestSourceOut.ts +12 -0
  29. package/src/models/listResponseDestinationOut.ts +31 -0
  30. package/src/models/mergeConfig.ts +19 -0
  31. package/src/models/mergeConfigOut.ts +15 -0
  32. package/src/models/s3ConfigIn.ts +1 -1
  33. package/src/models/status.ts +16 -0
  34. package/src/models/streamSinkOut.ts +15 -0
  35. package/src/request.ts +1 -1
package/dist/index.d.mts CHANGED
@@ -510,6 +510,955 @@ declare class Connector {
510
510
  patch(connectorId: string, connectorPatch: ConnectorPatch): Promise<ConnectorOut>;
511
511
  }
512
512
  //#endregion
513
+ //#region src/models/azureBlobStorageConfigIn.d.ts
514
+ interface AzureBlobStorageConfigIn {
515
+ container: string;
516
+ account: string;
517
+ /**
518
+ * Access key.
519
+ *
520
+ * Currently a required field, but marked as optional because we may add different authentication in the future.
521
+ */
522
+ accessKey?: string | null;
523
+ }
524
+ //#endregion
525
+ //#region src/models/bigQueryConfigIn.d.ts
526
+ /** Configuration for a Google Cloud BigQuery sink. */
527
+ interface BigQueryConfigIn {
528
+ projectId: string;
529
+ datasetId: string;
530
+ tableId: string;
531
+ /** Google Cloud Credentials JSON Object as a string. */
532
+ credentials: string;
533
+ }
534
+ //#endregion
535
+ //#region src/models/clickhouseConfigIn.d.ts
536
+ interface ClickhouseConfigIn {
537
+ /** The HTTP URL of the ClickHouse server (e.g. `https://my_clickhouse:8443`). */
538
+ url: string;
539
+ /**
540
+ * Username to access Clickhouse.
541
+ *
542
+ * Currently a required field, but marked as optional because we may add different authentication in the future.
543
+ */
544
+ username?: string | null;
545
+ /**
546
+ * Password to access Clickhouse.
547
+ *
548
+ * Currently a required field, but marked as optional because we may add different authentication in the future.
549
+ */
550
+ password?: string | null;
551
+ /** The Clickhouse database to connect to. */
552
+ database?: string;
553
+ /** The Clickhouse table to write to. */
554
+ tableName: string;
555
+ }
556
+ //#endregion
557
+ //#region src/models/destinationStatusIn.d.ts
558
+ declare enum DestinationStatusIn {
559
+ Enabled = "enabled",
560
+ Disabled = "disabled"
561
+ }
562
+ //#endregion
563
+ //#region src/models/eventBridgeConfigIn.d.ts
564
+ interface EventBridgeConfigIn {
565
+ /** The name or ARN of the event bus to receive the event */
566
+ eventBusName: string;
567
+ /** Free-form string, with a maximum of 128 characters */
568
+ detailType?: string;
569
+ /**
570
+ * Access key ID.
571
+ *
572
+ * Currently a required field, but marked as optional because we may add different authentication in the future.
573
+ */
574
+ accessKeyId?: string | null;
575
+ /**
576
+ * Secret access key.
577
+ *
578
+ * Currently a required field, but marked as optional because we may add different authentication in the future.
579
+ */
580
+ secretAccessKey?: string | null;
581
+ /**
582
+ * The region of the EventBridge bus.
583
+ *
584
+ * Currently a required field, but marked as optional because we may infer it from other fields in the future.
585
+ */
586
+ region?: string | null;
587
+ }
588
+ //#endregion
589
+ //#region src/models/fifoEndpointConfigIn.d.ts
590
+ interface FifoEndpointConfigIn {
591
+ url: string;
592
+ headers?: {
593
+ [key: string]: string;
594
+ };
595
+ key?: string | null;
596
+ }
597
+ //#endregion
598
+ //#region src/models/googleCloudPubSubConfigIn.d.ts
599
+ interface GoogleCloudPubSubConfigIn {
600
+ projectId: string;
601
+ topicId: string;
602
+ /** Google Cloud Credentials JSON Object as a string. */
603
+ credentials: string;
604
+ }
605
+ //#endregion
606
+ //#region src/models/googleCloudStorageConfigIn.d.ts
607
+ /**
608
+ * Configuration for a Google Cloud Storage sink.
609
+ *
610
+ * Write stream events into the named bucket using the supplied Google Cloud credentials.
611
+ */
612
+ interface GoogleCloudStorageConfigIn {
613
+ bucket: string;
614
+ /** Google Cloud Credentials JSON Object as a string. */
615
+ credentials: string;
616
+ }
617
+ //#endregion
618
+ //#region src/models/otelTracingConfigIn.d.ts
619
+ interface OtelTracingConfigIn {
620
+ url: string;
621
+ headers?: {
622
+ [key: string]: string;
623
+ };
624
+ }
625
+ //#endregion
626
+ //#region src/models/postgresConfigIn.d.ts
627
+ interface PostgresConfigIn {
628
+ /**
629
+ * PostgreSQL connection URL, e.g. `postgres://user@host:5432/dbname?sslmode=require`.
630
+ *
631
+ * Do NOT embed a password here; use the `password` field instead.
632
+ */
633
+ url: string;
634
+ /** Password for the connection. */
635
+ password?: string | null;
636
+ /**
637
+ * Table to insert into. May be schema-qualified (e.g. `public.events`).
638
+ *
639
+ * Quote characters are not supported. Each dot-separated segment is automatically double-quoted when the query is built, so `public.events` becomes `"public"."events"`.
640
+ */
641
+ tableName: string;
642
+ /**
643
+ * PEM-encoded CA certificate used to verify the Postgres server's TLS certificate.
644
+ *
645
+ * Supply this to trust a private or self-signed CA when connecting with `sslmode=verify-ca` or `sslmode=verify-full`. Without it, only the built-in public roots are trusted.
646
+ */
647
+ sslRootCert?: string | null;
648
+ }
649
+ //#endregion
650
+ //#region src/models/rabbitMqConfigIn.d.ts
651
+ /** Configuration for a RabbitMq sink. */
652
+ interface RabbitMqConfigIn {
653
+ uri: string;
654
+ routingKey: string;
655
+ }
656
+ //#endregion
657
+ //#region src/models/redshiftConfigIn.d.ts
658
+ /**
659
+ * Configuration parameters for defining a Redshift sink.
660
+ *
661
+ * For provisioned clusters, set `cluster_identifier` and `db_user`. For Redshift Serverless, set `workgroup_name`.
662
+ */
663
+ interface RedshiftConfigIn {
664
+ /**
665
+ * Access key ID.
666
+ *
667
+ * Currently a required field, but marked as optional because we may add different authentication in the future.
668
+ */
669
+ accessKeyId?: string | null;
670
+ /**
671
+ * Secret access key.
672
+ *
673
+ * Currently a required field, but marked as optional because we may add different authentication in the future.
674
+ */
675
+ secretAccessKey?: string | null;
676
+ /**
677
+ * The region of the Redshift DB.
678
+ *
679
+ * Currently a required field, but marked as optional because we may infer it from other fields in the future.
680
+ */
681
+ region?: string | null;
682
+ /** Required for provisioned clusters. */
683
+ clusterIdentifier?: string | null;
684
+ /** Required for provisioned clusters. */
685
+ dbUser?: string | null;
686
+ /** Required for Redshift Serverless. */
687
+ workgroupName?: string | null;
688
+ /**
689
+ * Database name.
690
+ *
691
+ * Only required if not using transformations.
692
+ */
693
+ dbName?: string;
694
+ /**
695
+ * Schema name.
696
+ *
697
+ * Only used if not using transformations.
698
+ */
699
+ schemaName?: string | null;
700
+ /**
701
+ * Table name.
702
+ *
703
+ * Only required if not using transformations.
704
+ */
705
+ tableName?: string;
706
+ }
707
+ //#endregion
708
+ //#region src/models/s3ConfigIn.d.ts
709
+ interface S3ConfigIn {
710
+ bucket: string;
711
+ /**
712
+ * Access key ID.
713
+ *
714
+ * Required (along with `secret_access_key`) if `role_arn` is null
715
+ */
716
+ accessKeyId?: string | null;
717
+ /**
718
+ * Secret access key.
719
+ *
720
+ * Required (along with `access_key_id`) if `role_arn` is null
721
+ */
722
+ secretAccessKey?: string | null;
723
+ /**
724
+ * The region of the S3 bucket
725
+ *
726
+ * Currently a required field, but marked as optional because we may infer it from other fields in the future.
727
+ */
728
+ region?: string | null;
729
+ endpointUrl?: string | null;
730
+ /** Role ARN for delegated authentication */
731
+ roleArn?: string | null;
732
+ /**
733
+ * Shared secret passed as the STS ExternalId.
734
+ *
735
+ * Recommended if `role_arn` is not null.
736
+ */
737
+ externalId?: string | null;
738
+ }
739
+ //#endregion
740
+ //#region src/models/snowflakeConfigIn.d.ts
741
+ /** Configuration parameters for defining a Snowflake sink. */
742
+ interface SnowflakeConfigIn {
743
+ /**
744
+ * PEM-encoded private key used for signing token-based requests to the Snowflake API.
745
+ *
746
+ * Beginning/end delimiters are not required.
747
+ *
748
+ * Currently a required field, but marked as optional because we may add different authentication in the future.
749
+ */
750
+ privateKey?: string | null;
751
+ /** Snowflake account identifier, which includes both the organization and account IDs separated by a hyphen. */
752
+ accountIdentifier: string;
753
+ /** The Snowflake user id. */
754
+ userId: string;
755
+ /**
756
+ * Database name.
757
+ *
758
+ * Only required if not using transformations.
759
+ */
760
+ dbName?: string;
761
+ /**
762
+ * Schema name.
763
+ *
764
+ * Only required if not using transformations.
765
+ */
766
+ schemaName?: string;
767
+ /**
768
+ * Table name.
769
+ *
770
+ * Only required if not using transformations.
771
+ */
772
+ tableName?: string;
773
+ }
774
+ //#endregion
775
+ //#region src/models/snsConfigIn.d.ts
776
+ /** Configuration for a SNS sink. */
777
+ interface SnsConfigIn {
778
+ topicArn: string;
779
+ /**
780
+ * The region of the SNS instance.
781
+ *
782
+ * Currently a required field, but marked as optional because we may infer it from other fields in the future.
783
+ */
784
+ region?: string | null;
785
+ /**
786
+ * Access key ID.
787
+ *
788
+ * Currently a required field, but marked as optional because we may add different authentication in the future.
789
+ */
790
+ accessKeyId?: string | null;
791
+ /**
792
+ * Secret access key.
793
+ *
794
+ * Currently a required field, but marked as optional because we may add different authentication in the future.
795
+ */
796
+ secretAccessKey?: string | null;
797
+ endpointUrl?: string | null;
798
+ }
799
+ //#endregion
800
+ //#region src/models/sqsConfigIn.d.ts
801
+ /** Configuration for an SQS sink. */
802
+ interface SqsConfigIn {
803
+ queueUrl: string;
804
+ /**
805
+ * The region of the SQS queue.
806
+ *
807
+ * Currently a required field, but marked as optional because we may infer it from other fields in the future.
808
+ */
809
+ region?: string | null;
810
+ /**
811
+ * Access key ID.
812
+ *
813
+ * Currently a required field, but marked as optional because we may add different authentication in the future.
814
+ */
815
+ accessKeyId?: string | null;
816
+ /**
817
+ * Secret access key.
818
+ *
819
+ * Currently a required field, but marked as optional because we may add different authentication in the future.
820
+ */
821
+ secretAccessKey?: string | null;
822
+ endpointUrl?: string | null;
823
+ }
824
+ //#endregion
825
+ //#region src/models/destinationIn.d.ts
826
+ interface _DestinationInFields {
827
+ /** An optional unique identifier for the destination. */
828
+ uid?: string | null;
829
+ /**
830
+ * Whether the destination will receive events.
831
+ *
832
+ * If the destination is `enabled`, events sent to the application will be dispatched to the destination in order.
833
+ *
834
+ * If the destination is `disabled`, events will not be dispatched until the destination is reenabled.
835
+ */
836
+ status?: DestinationStatusIn;
837
+ /** How many events will be batched in a request to the destination. */
838
+ batchSize?: number;
839
+ /**
840
+ * How long to wait before a batch of events is sent, if the `batchSize` is not reached.
841
+ *
842
+ * For example, with a `batchSize` of 100 and `maxWaitSecs` of 10, a request is sent after 10 seconds or 100 events, whichever comes first.
843
+ *
844
+ * Note that an empty batch is never sent to the destination.
845
+ */
846
+ maxWaitSecs?: number;
847
+ /** A list of event types that filter which events are dispatched to the destination. An empty list (or null) will not filter out any events. */
848
+ eventTypes?: string[];
849
+ /** A list of channels that filter which events are dispatched to the destination. An empty list (or null) will not filter out any events. */
850
+ channels?: string[];
851
+ metadata?: {
852
+ [key: string]: string;
853
+ };
854
+ }
855
+ interface DestinationInPollingEndpointConfig {}
856
+ interface DestinationInPollingEndpoint {
857
+ type: "pollingEndpoint";
858
+ config?: DestinationInPollingEndpointConfig;
859
+ }
860
+ interface DestinationInAzureBlobStorage {
861
+ type: "azureBlobStorage";
862
+ config: AzureBlobStorageConfigIn;
863
+ }
864
+ interface DestinationInOtelTracing {
865
+ type: "otelTracing";
866
+ config: OtelTracingConfigIn;
867
+ }
868
+ interface DestinationInFifoEndpoint {
869
+ type: "fifoEndpoint";
870
+ config: FifoEndpointConfigIn;
871
+ }
872
+ interface DestinationInAmazonS3 {
873
+ type: "amazonS3";
874
+ config: S3ConfigIn;
875
+ }
876
+ interface DestinationInGoogleCloudStorage {
877
+ type: "googleCloudStorage";
878
+ config: GoogleCloudStorageConfigIn;
879
+ }
880
+ interface DestinationInGoogleCloudPubSub {
881
+ type: "googleCloudPubSub";
882
+ config: GoogleCloudPubSubConfigIn;
883
+ }
884
+ interface DestinationInSqs {
885
+ type: "sqs";
886
+ config: SqsConfigIn;
887
+ }
888
+ interface DestinationInSns {
889
+ type: "sns";
890
+ config: SnsConfigIn;
891
+ }
892
+ interface DestinationInBigQuery {
893
+ type: "bigQuery";
894
+ config: BigQueryConfigIn;
895
+ }
896
+ interface DestinationInClickhouse {
897
+ type: "clickhouse";
898
+ config: ClickhouseConfigIn;
899
+ }
900
+ interface DestinationInEventBridge {
901
+ type: "eventBridge";
902
+ config: EventBridgeConfigIn;
903
+ }
904
+ interface DestinationInSnowflake {
905
+ type: "snowflake";
906
+ config: SnowflakeConfigIn;
907
+ }
908
+ interface DestinationInRabbitMq {
909
+ type: "rabbitMq";
910
+ config: RabbitMqConfigIn;
911
+ }
912
+ interface DestinationInRedshift {
913
+ type: "redshift";
914
+ config: RedshiftConfigIn;
915
+ }
916
+ interface DestinationInPostgres {
917
+ type: "postgres";
918
+ config: PostgresConfigIn;
919
+ }
920
+ /** The destination's type and type-specific configuration. */
921
+ type DestinationIn = _DestinationInFields & (DestinationInPollingEndpoint | DestinationInAzureBlobStorage | DestinationInOtelTracing | DestinationInFifoEndpoint | DestinationInAmazonS3 | DestinationInGoogleCloudStorage | DestinationInGoogleCloudPubSub | DestinationInSqs | DestinationInSns | DestinationInBigQuery | DestinationInClickhouse | DestinationInEventBridge | DestinationInSnowflake | DestinationInRabbitMq | DestinationInRedshift | DestinationInPostgres);
922
+ //#endregion
923
+ //#region src/models/azureBlobStorageConfigOut.d.ts
924
+ interface AzureBlobStorageConfigOut {
925
+ container: string;
926
+ account: string;
927
+ }
928
+ //#endregion
929
+ //#region src/models/bigQueryConfigOut.d.ts
930
+ interface BigQueryConfigOut {
931
+ projectId: string;
932
+ datasetId: string;
933
+ tableId: string;
934
+ }
935
+ //#endregion
936
+ //#region src/models/clickhouseConfigOut.d.ts
937
+ interface ClickhouseConfigOut {
938
+ url: string;
939
+ username: string;
940
+ database: string;
941
+ tableName: string;
942
+ }
943
+ //#endregion
944
+ //#region src/models/destinationStatus.d.ts
945
+ declare enum DestinationStatus {
946
+ Enabled = "enabled",
947
+ Paused = "paused",
948
+ Disabled = "disabled",
949
+ Retrying = "retrying"
950
+ }
951
+ //#endregion
952
+ //#region src/models/eventBridgeConfigOut.d.ts
953
+ interface EventBridgeConfigOut {
954
+ eventBusName: string;
955
+ detailType: string;
956
+ accessKeyId: string;
957
+ region: string;
958
+ }
959
+ //#endregion
960
+ //#region src/models/googleCloudPubSubConfigOut.d.ts
961
+ interface GoogleCloudPubSubConfigOut {
962
+ projectId: string;
963
+ topicId: string;
964
+ }
965
+ //#endregion
966
+ //#region src/models/googleCloudStorageConfigOut.d.ts
967
+ interface GoogleCloudStorageConfigOut {
968
+ bucket: string;
969
+ }
970
+ //#endregion
971
+ //#region src/models/endpointHeadersOut.d.ts
972
+ /**
973
+ * The value of the headers is returned in the `headers` field.
974
+ *
975
+ * Sensitive headers that have been redacted are returned in the sensitive field.
976
+ */
977
+ interface EndpointHeadersOut {
978
+ headers: {
979
+ [key: string]: string;
980
+ };
981
+ sensitive: string[];
982
+ }
983
+ //#endregion
984
+ //#region src/models/otelTracingConfigOut.d.ts
985
+ interface OtelTracingConfigOut {
986
+ url: string;
987
+ headers: EndpointHeadersOut;
988
+ }
989
+ //#endregion
990
+ //#region src/models/postgresConfigOut.d.ts
991
+ interface PostgresConfigOut {
992
+ url: string;
993
+ tableName: string;
994
+ sslRootCert?: string | null;
995
+ }
996
+ //#endregion
997
+ //#region src/models/rabbitMqConfigOut.d.ts
998
+ interface RabbitMqConfigOut {
999
+ routingKey: string;
1000
+ }
1001
+ //#endregion
1002
+ //#region src/models/redshiftConfigOut.d.ts
1003
+ interface RedshiftConfigOut {
1004
+ accessKeyId: string;
1005
+ region: string;
1006
+ clusterIdentifier?: string | null;
1007
+ dbUser?: string | null;
1008
+ workgroupName?: string | null;
1009
+ /**
1010
+ * Database name.
1011
+ *
1012
+ * Only required if not using transformations.
1013
+ */
1014
+ dbName?: string;
1015
+ /**
1016
+ * Schema name.
1017
+ *
1018
+ * Only used if not using transformations.
1019
+ */
1020
+ schemaName?: string | null;
1021
+ /**
1022
+ * Table name.
1023
+ *
1024
+ * Only required if not using transformations.
1025
+ */
1026
+ tableName?: string;
1027
+ }
1028
+ //#endregion
1029
+ //#region src/models/s3ConfigOut.d.ts
1030
+ interface S3ConfigOut {
1031
+ bucket: string;
1032
+ accessKeyId?: string | null;
1033
+ region: string;
1034
+ endpointUrl?: string | null;
1035
+ roleArn?: string | null;
1036
+ externalId?: string | null;
1037
+ }
1038
+ //#endregion
1039
+ //#region src/models/sinkHttpConfigOut.d.ts
1040
+ interface SinkHttpConfigOut {
1041
+ url: string;
1042
+ headers: EndpointHeadersOut;
1043
+ }
1044
+ //#endregion
1045
+ //#region src/models/snowflakeConfigOut.d.ts
1046
+ interface SnowflakeConfigOut {
1047
+ accountIdentifier: string;
1048
+ userId: string;
1049
+ /**
1050
+ * Database name.
1051
+ *
1052
+ * Only required if not using transformations.
1053
+ */
1054
+ dbName?: string;
1055
+ /**
1056
+ * Schema name.
1057
+ *
1058
+ * Only required if not using transformations.
1059
+ */
1060
+ schemaName?: string;
1061
+ /**
1062
+ * Table name.
1063
+ *
1064
+ * Only required if not using transformations.
1065
+ */
1066
+ tableName?: string;
1067
+ }
1068
+ //#endregion
1069
+ //#region src/models/snsConfigOut.d.ts
1070
+ interface SnsConfigOut {
1071
+ topicArn: string;
1072
+ region: string;
1073
+ accessKeyId: string;
1074
+ }
1075
+ //#endregion
1076
+ //#region src/models/sqsConfigOut.d.ts
1077
+ interface SqsConfigOut {
1078
+ queueUrl: string;
1079
+ region: string;
1080
+ accessKeyId: string;
1081
+ endpointUrl?: string | null;
1082
+ }
1083
+ //#endregion
1084
+ //#region src/models/destinationOut.d.ts
1085
+ interface _DestinationOutFields {
1086
+ /** The Destination's ID. */
1087
+ id: string;
1088
+ /** The Destination's UID. */
1089
+ uid?: string | null;
1090
+ status: DestinationStatus;
1091
+ currentIterator: string;
1092
+ failureReason?: string | null;
1093
+ createdAt: Date;
1094
+ updatedAt: Date;
1095
+ batchSize: number;
1096
+ maxWaitSecs: number;
1097
+ eventTypes?: string[];
1098
+ channels?: string[];
1099
+ nextRetryAt?: Date | null;
1100
+ metadata: {
1101
+ [key: string]: string;
1102
+ };
1103
+ }
1104
+ interface DestinationOutPollingEndpointConfig {}
1105
+ interface DestinationOutPollingEndpoint {
1106
+ type: "pollingEndpoint";
1107
+ config?: DestinationOutPollingEndpointConfig;
1108
+ }
1109
+ interface DestinationOutAzureBlobStorage {
1110
+ type: "azureBlobStorage";
1111
+ config: AzureBlobStorageConfigOut;
1112
+ }
1113
+ interface DestinationOutOtelTracing {
1114
+ type: "otelTracing";
1115
+ config: OtelTracingConfigOut;
1116
+ }
1117
+ interface DestinationOutFifoEndpoint {
1118
+ type: "fifoEndpoint";
1119
+ config: SinkHttpConfigOut;
1120
+ }
1121
+ interface DestinationOutAmazonS3 {
1122
+ type: "amazonS3";
1123
+ config: S3ConfigOut;
1124
+ }
1125
+ interface DestinationOutSnowflake {
1126
+ type: "snowflake";
1127
+ config: SnowflakeConfigOut;
1128
+ }
1129
+ interface DestinationOutGoogleCloudStorage {
1130
+ type: "googleCloudStorage";
1131
+ config: GoogleCloudStorageConfigOut;
1132
+ }
1133
+ interface DestinationOutGoogleCloudPubSub {
1134
+ type: "googleCloudPubSub";
1135
+ config: GoogleCloudPubSubConfigOut;
1136
+ }
1137
+ interface DestinationOutRedshift {
1138
+ type: "redshift";
1139
+ config: RedshiftConfigOut;
1140
+ }
1141
+ interface DestinationOutBigQuery {
1142
+ type: "bigQuery";
1143
+ config: BigQueryConfigOut;
1144
+ }
1145
+ interface DestinationOutClickhouse {
1146
+ type: "clickhouse";
1147
+ config: ClickhouseConfigOut;
1148
+ }
1149
+ interface DestinationOutRabbitMq {
1150
+ type: "rabbitMq";
1151
+ config: RabbitMqConfigOut;
1152
+ }
1153
+ interface DestinationOutSqs {
1154
+ type: "sqs";
1155
+ config: SqsConfigOut;
1156
+ }
1157
+ interface DestinationOutEventBridge {
1158
+ type: "eventBridge";
1159
+ config: EventBridgeConfigOut;
1160
+ }
1161
+ interface DestinationOutSns {
1162
+ type: "sns";
1163
+ config: SnsConfigOut;
1164
+ }
1165
+ interface DestinationOutPostgres {
1166
+ type: "postgres";
1167
+ config: PostgresConfigOut;
1168
+ }
1169
+ type DestinationOut = _DestinationOutFields & (DestinationOutPollingEndpoint | DestinationOutAzureBlobStorage | DestinationOutOtelTracing | DestinationOutFifoEndpoint | DestinationOutAmazonS3 | DestinationOutSnowflake | DestinationOutGoogleCloudStorage | DestinationOutGoogleCloudPubSub | DestinationOutRedshift | DestinationOutBigQuery | DestinationOutClickhouse | DestinationOutRabbitMq | DestinationOutSqs | DestinationOutEventBridge | DestinationOutSns | DestinationOutPostgres);
1170
+ //#endregion
1171
+ //#region src/models/azureBlobStorageConfigPatch.d.ts
1172
+ interface AzureBlobStorageConfigPatch {
1173
+ container?: string;
1174
+ account?: string;
1175
+ accessKey?: string;
1176
+ }
1177
+ //#endregion
1178
+ //#region src/models/bigQueryConfigPatch.d.ts
1179
+ interface BigQueryConfigPatch {
1180
+ projectId?: string;
1181
+ datasetId?: string;
1182
+ tableId?: string;
1183
+ credentials?: string;
1184
+ }
1185
+ //#endregion
1186
+ //#region src/models/clickhouseConfigPatch.d.ts
1187
+ interface ClickhouseConfigPatch {
1188
+ url?: string;
1189
+ username?: string;
1190
+ password?: string;
1191
+ database?: string;
1192
+ tableName?: string;
1193
+ }
1194
+ //#endregion
1195
+ //#region src/models/eventBridgeConfigPatch.d.ts
1196
+ interface EventBridgeConfigPatch {
1197
+ eventBusName?: string;
1198
+ detailType?: string;
1199
+ accessKeyId?: string;
1200
+ secretAccessKey?: string;
1201
+ region?: string;
1202
+ }
1203
+ //#endregion
1204
+ //#region src/models/googleCloudPubSubConfigPatch.d.ts
1205
+ interface GoogleCloudPubSubConfigPatch {
1206
+ projectId?: string;
1207
+ topicId?: string;
1208
+ credentials?: string;
1209
+ }
1210
+ //#endregion
1211
+ //#region src/models/googleCloudStorageConfigPatch.d.ts
1212
+ interface GoogleCloudStorageConfigPatch {
1213
+ bucket?: string;
1214
+ credentials?: string;
1215
+ }
1216
+ //#endregion
1217
+ //#region src/models/otelTracingConfigPatch.d.ts
1218
+ interface OtelTracingConfigPatch {
1219
+ url?: string;
1220
+ }
1221
+ //#endregion
1222
+ //#region src/models/postgresConfigPatch.d.ts
1223
+ interface PostgresConfigPatch {
1224
+ url?: string;
1225
+ password?: string;
1226
+ tableName?: string;
1227
+ sslRootCert?: string;
1228
+ }
1229
+ //#endregion
1230
+ //#region src/models/rabbitMqConfigPatch.d.ts
1231
+ interface RabbitMqConfigPatch {
1232
+ routingKey?: string;
1233
+ uri?: string;
1234
+ }
1235
+ //#endregion
1236
+ //#region src/models/redshiftConfigPatch.d.ts
1237
+ interface RedshiftConfigPatch {
1238
+ accessKeyId?: string;
1239
+ secretAccessKey?: string;
1240
+ region?: string;
1241
+ /**
1242
+ * Database name.
1243
+ *
1244
+ * Only required if not using transformations.
1245
+ */
1246
+ dbName?: string;
1247
+ /**
1248
+ * Schema name.
1249
+ *
1250
+ * Only used if not using transformations.
1251
+ */
1252
+ schemaName?: string | null;
1253
+ /**
1254
+ * Table name.
1255
+ *
1256
+ * Only required if not using transformations.
1257
+ */
1258
+ tableName?: string;
1259
+ }
1260
+ //#endregion
1261
+ //#region src/models/s3ConfigPatch.d.ts
1262
+ interface S3ConfigPatch {
1263
+ bucket?: string;
1264
+ accessKeyId?: string;
1265
+ secretAccessKey?: string;
1266
+ roleArn?: string;
1267
+ externalId?: string;
1268
+ region?: string;
1269
+ endpointUrl?: string;
1270
+ }
1271
+ //#endregion
1272
+ //#region src/models/sinkHttpConfigPatch.d.ts
1273
+ interface SinkHttpConfigPatch {
1274
+ url?: string;
1275
+ }
1276
+ //#endregion
1277
+ //#region src/models/snowflakeConfigPatch.d.ts
1278
+ interface SnowflakeConfigPatch {
1279
+ privateKey?: string;
1280
+ accountIdentifier?: string;
1281
+ userId?: string;
1282
+ /**
1283
+ * Database name.
1284
+ *
1285
+ * Only required if not using transformations.
1286
+ */
1287
+ dbName?: string;
1288
+ /**
1289
+ * Schema name.
1290
+ *
1291
+ * Only required if not using transformations.
1292
+ */
1293
+ schemaName?: string;
1294
+ /**
1295
+ * Table name.
1296
+ *
1297
+ * Only required if not using transformations.
1298
+ */
1299
+ tableName?: string;
1300
+ }
1301
+ //#endregion
1302
+ //#region src/models/snsConfigPatch.d.ts
1303
+ interface SnsConfigPatch {
1304
+ topicArn?: string;
1305
+ region?: string;
1306
+ accessKeyId?: string;
1307
+ secretAccessKey?: string;
1308
+ endpointUrl?: string | null;
1309
+ }
1310
+ //#endregion
1311
+ //#region src/models/sqsConfigPatch.d.ts
1312
+ interface SqsConfigPatch {
1313
+ queueUrl?: string;
1314
+ region?: string;
1315
+ accessKeyId?: string;
1316
+ secretAccessKey?: string;
1317
+ endpointUrl?: string | null;
1318
+ }
1319
+ //#endregion
1320
+ //#region src/models/destinationPatch.d.ts
1321
+ interface _DestinationPatchFields {
1322
+ /** The Destination's UID. */
1323
+ uid?: string | null;
1324
+ status?: DestinationStatusIn | null;
1325
+ batchSize?: number | null;
1326
+ maxWaitSecs?: number | null;
1327
+ eventTypes?: string[];
1328
+ channels?: string[];
1329
+ metadata?: {
1330
+ [key: string]: string;
1331
+ };
1332
+ }
1333
+ interface DestinationPatchPollingEndpointConfig {}
1334
+ interface DestinationPatchPollingEndpoint {
1335
+ type: "pollingEndpoint";
1336
+ config?: DestinationPatchPollingEndpointConfig;
1337
+ }
1338
+ interface DestinationPatchAzureBlobStorage {
1339
+ type: "azureBlobStorage";
1340
+ config: AzureBlobStorageConfigPatch;
1341
+ }
1342
+ interface DestinationPatchOtelTracing {
1343
+ type: "otelTracing";
1344
+ config: OtelTracingConfigPatch;
1345
+ }
1346
+ interface DestinationPatchFifoEndpoint {
1347
+ type: "fifoEndpoint";
1348
+ config: SinkHttpConfigPatch;
1349
+ }
1350
+ interface DestinationPatchAmazonS3 {
1351
+ type: "amazonS3";
1352
+ config: S3ConfigPatch;
1353
+ }
1354
+ interface DestinationPatchGoogleCloudStorage {
1355
+ type: "googleCloudStorage";
1356
+ config: GoogleCloudStorageConfigPatch;
1357
+ }
1358
+ interface DestinationPatchGoogleCloudPubSub {
1359
+ type: "googleCloudPubSub";
1360
+ config: GoogleCloudPubSubConfigPatch;
1361
+ }
1362
+ interface DestinationPatchSqs {
1363
+ type: "sqs";
1364
+ config: SqsConfigPatch;
1365
+ }
1366
+ interface DestinationPatchSns {
1367
+ type: "sns";
1368
+ config: SnsConfigPatch;
1369
+ }
1370
+ interface DestinationPatchBigQuery {
1371
+ type: "bigQuery";
1372
+ config: BigQueryConfigPatch;
1373
+ }
1374
+ interface DestinationPatchClickhouse {
1375
+ type: "clickhouse";
1376
+ config: ClickhouseConfigPatch;
1377
+ }
1378
+ interface DestinationPatchEventBridge {
1379
+ type: "eventBridge";
1380
+ config: EventBridgeConfigPatch;
1381
+ }
1382
+ interface DestinationPatchSnowflake {
1383
+ type: "snowflake";
1384
+ config: SnowflakeConfigPatch;
1385
+ }
1386
+ interface DestinationPatchRabbitMq {
1387
+ type: "rabbitMq";
1388
+ config: RabbitMqConfigPatch;
1389
+ }
1390
+ interface DestinationPatchRedshift {
1391
+ type: "redshift";
1392
+ config: RedshiftConfigPatch;
1393
+ }
1394
+ interface DestinationPatchPostgres {
1395
+ type: "postgres";
1396
+ config: PostgresConfigPatch;
1397
+ }
1398
+ type DestinationPatch = _DestinationPatchFields & (DestinationPatchPollingEndpoint | DestinationPatchAzureBlobStorage | DestinationPatchOtelTracing | DestinationPatchFifoEndpoint | DestinationPatchAmazonS3 | DestinationPatchGoogleCloudStorage | DestinationPatchGoogleCloudPubSub | DestinationPatchSqs | DestinationPatchSns | DestinationPatchBigQuery | DestinationPatchClickhouse | DestinationPatchEventBridge | DestinationPatchSnowflake | DestinationPatchRabbitMq | DestinationPatchRedshift | DestinationPatchPostgres);
1399
+ //#endregion
1400
+ //#region src/models/listResponseDestinationOut.d.ts
1401
+ interface ListResponseDestinationOut {
1402
+ data: DestinationOut[];
1403
+ iterator: string | null;
1404
+ prevIterator?: string | null;
1405
+ done: boolean;
1406
+ }
1407
+ //#endregion
1408
+ //#region src/models/destinationTransformIn.d.ts
1409
+ interface DestinationTransformIn {
1410
+ code?: string | null;
1411
+ }
1412
+ //#endregion
1413
+ //#region src/models/destinationTransformationOut.d.ts
1414
+ interface DestinationTransformationOut {
1415
+ code?: string | null;
1416
+ enabled: boolean;
1417
+ }
1418
+ //#endregion
1419
+ //#region src/models/emptyResponse.d.ts
1420
+ interface EmptyResponse {}
1421
+ //#endregion
1422
+ //#region src/api/destinationTransformation.d.ts
1423
+ declare class DestinationTransformation {
1424
+ private readonly requestCtx;
1425
+ constructor(requestCtx: SvixRequestContext);
1426
+ /** Get the transformation code associated with this destination. */
1427
+ get(appId: string, destinationId: string): Promise<DestinationTransformationOut>;
1428
+ /** Set or unset the transformation code associated with this destination. */
1429
+ patch(appId: string, destinationId: string, destinationTransformIn?: DestinationTransformIn): Promise<EmptyResponse>;
1430
+ }
1431
+ //#endregion
1432
+ //#region src/api/destination.d.ts
1433
+ interface DestinationListOptions {
1434
+ /** Limit the number of returned items */
1435
+ limit?: number;
1436
+ /** The iterator returned from a prior invocation */
1437
+ iterator?: string | null;
1438
+ /** The sorting order of the returned items */
1439
+ order?: Ordering;
1440
+ }
1441
+ interface DestinationCreateOptions {
1442
+ idempotencyKey?: string;
1443
+ }
1444
+ declare class Destination {
1445
+ private readonly requestCtx;
1446
+ constructor(requestCtx: SvixRequestContext);
1447
+ get transformation(): DestinationTransformation;
1448
+ /** List of all the application's destinations. */
1449
+ list(appId: string, options?: DestinationListOptions): Promise<ListResponseDestinationOut>;
1450
+ /** Creates a new destination. */
1451
+ create(appId: string, destinationIn: DestinationIn, options?: DestinationCreateOptions): Promise<DestinationOut>;
1452
+ /** Get a destination by id or uid. */
1453
+ get(appId: string, destinationId: string): Promise<DestinationOut>;
1454
+ /** Create or update a destination. */
1455
+ upsert(appId: string, destinationId: string, destinationIn: DestinationIn): Promise<DestinationOut>;
1456
+ /** Delete a destination. */
1457
+ delete(appId: string, destinationId: string): Promise<void>;
1458
+ /** Partially update a destination. */
1459
+ patch(appId: string, destinationId: string, destinationPatch: DestinationPatch): Promise<DestinationOut>;
1460
+ }
1461
+ //#endregion
513
1462
  //#region src/models/messageStatus.d.ts
514
1463
  /**
515
1464
  * The sending status of the message:
@@ -566,19 +1515,6 @@ interface EndpointHeadersIn {
566
1515
  };
567
1516
  }
568
1517
  //#endregion
569
- //#region src/models/endpointHeadersOut.d.ts
570
- /**
571
- * The value of the headers is returned in the `headers` field.
572
- *
573
- * Sensitive headers that have been redacted are returned in the sensitive field.
574
- */
575
- interface EndpointHeadersOut {
576
- headers: {
577
- [key: string]: string;
578
- };
579
- sensitive: string[];
580
- }
581
- //#endregion
582
1518
  //#region src/models/endpointHeadersPatchIn.d.ts
583
1519
  interface EndpointHeadersPatchIn {
584
1520
  headers: {
@@ -1443,6 +2379,11 @@ interface HubspotConfig {
1443
2379
  secret?: string | null;
1444
2380
  }
1445
2381
  //#endregion
2382
+ //#region src/models/mergeConfig.d.ts
2383
+ interface MergeConfig {
2384
+ secret: string;
2385
+ }
2386
+ //#endregion
1446
2387
  //#region src/models/metaConfig.d.ts
1447
2388
  interface MetaConfig {
1448
2389
  secret: string;
@@ -1607,6 +2548,10 @@ interface IngestSourceInLithic {
1607
2548
  type: "lithic";
1608
2549
  config: SvixConfig;
1609
2550
  }
2551
+ interface IngestSourceInMerge {
2552
+ type: "merge";
2553
+ config: MergeConfig;
2554
+ }
1610
2555
  interface IngestSourceInMeta {
1611
2556
  type: "meta";
1612
2557
  config: MetaConfig;
@@ -1723,7 +2668,7 @@ interface IngestSourceInVgs {
1723
2668
  type: "vgs";
1724
2669
  config: VgsConfig;
1725
2670
  }
1726
- type IngestSourceIn = _IngestSourceInFields & (IngestSourceInGenericWebhook | IngestSourceInCron | IngestSourceInAdobeSign | IngestSourceInBeehiiv | IngestSourceInBrex | IngestSourceInCheckbook | IngestSourceInClerk | IngestSourceInDocusign | IngestSourceInEasypost | IngestSourceInGithub | IngestSourceInGuesty | IngestSourceInHubspot | IngestSourceInIncidentIo | IngestSourceInLithic | IngestSourceInMeta | IngestSourceInNango | IngestSourceInNash | IngestSourceInOpenclaw | IngestSourceInOrumIo | IngestSourceInPandaDoc | IngestSourceInPortIo | IngestSourceInPleo | IngestSourceInPsiFi | IngestSourceInReplicate | IngestSourceInResend | IngestSourceInRutter | IngestSourceInSafebase | IngestSourceInSardine | IngestSourceInSegment | IngestSourceInShopify | IngestSourceInSlack | IngestSourceInStripe | IngestSourceInStych | IngestSourceInSvix | IngestSourceInZoom | IngestSourceInTailscale | IngestSourceInTelnyx | IngestSourceInVapi | IngestSourceInOpenAi | IngestSourceInRender | IngestSourceInVeriff | IngestSourceInAirwallex | IngestSourceInVgs);
2671
+ type IngestSourceIn = _IngestSourceInFields & (IngestSourceInGenericWebhook | IngestSourceInCron | IngestSourceInAdobeSign | IngestSourceInBeehiiv | IngestSourceInBrex | IngestSourceInCheckbook | IngestSourceInClerk | IngestSourceInDocusign | IngestSourceInEasypost | IngestSourceInGithub | IngestSourceInGuesty | IngestSourceInHubspot | IngestSourceInIncidentIo | IngestSourceInLithic | IngestSourceInMerge | IngestSourceInMeta | IngestSourceInNango | IngestSourceInNash | IngestSourceInOpenclaw | IngestSourceInOrumIo | IngestSourceInPandaDoc | IngestSourceInPortIo | IngestSourceInPleo | IngestSourceInPsiFi | IngestSourceInReplicate | IngestSourceInResend | IngestSourceInRutter | IngestSourceInSafebase | IngestSourceInSardine | IngestSourceInSegment | IngestSourceInShopify | IngestSourceInSlack | IngestSourceInStripe | IngestSourceInStych | IngestSourceInSvix | IngestSourceInZoom | IngestSourceInTailscale | IngestSourceInTelnyx | IngestSourceInVapi | IngestSourceInOpenAi | IngestSourceInRender | IngestSourceInVeriff | IngestSourceInAirwallex | IngestSourceInVgs);
1727
2672
  //#endregion
1728
2673
  //#region src/models/adobeSignConfigOut.d.ts
1729
2674
  interface AdobeSignConfigOut {}
@@ -1746,6 +2691,9 @@ interface GithubConfigOut {}
1746
2691
  //#region src/models/hubspotConfigOut.d.ts
1747
2692
  interface HubspotConfigOut {}
1748
2693
  //#endregion
2694
+ //#region src/models/mergeConfigOut.d.ts
2695
+ interface MergeConfigOut {}
2696
+ //#endregion
1749
2697
  //#region src/models/metaConfigOut.d.ts
1750
2698
  interface MetaConfigOut {}
1751
2699
  //#endregion
@@ -1875,6 +2823,10 @@ interface IngestSourceOutLithic {
1875
2823
  type: "lithic";
1876
2824
  config: SvixConfigOut;
1877
2825
  }
2826
+ interface IngestSourceOutMerge {
2827
+ type: "merge";
2828
+ config: MergeConfigOut;
2829
+ }
1878
2830
  interface IngestSourceOutMeta {
1879
2831
  type: "meta";
1880
2832
  config: MetaConfigOut;
@@ -1991,7 +2943,7 @@ interface IngestSourceOutVgs {
1991
2943
  type: "vgs";
1992
2944
  config: VgsConfigOut;
1993
2945
  }
1994
- type IngestSourceOut = _IngestSourceOutFields & (IngestSourceOutGenericWebhook | IngestSourceOutCron | IngestSourceOutAdobeSign | IngestSourceOutBeehiiv | IngestSourceOutBrex | IngestSourceOutCheckbook | IngestSourceOutClerk | IngestSourceOutDocusign | IngestSourceOutEasypost | IngestSourceOutGithub | IngestSourceOutGuesty | IngestSourceOutHubspot | IngestSourceOutIncidentIo | IngestSourceOutLithic | IngestSourceOutMeta | IngestSourceOutNango | IngestSourceOutNash | IngestSourceOutOpenclaw | IngestSourceOutOrumIo | IngestSourceOutPandaDoc | IngestSourceOutPortIo | IngestSourceOutPsiFi | IngestSourceOutPleo | IngestSourceOutReplicate | IngestSourceOutResend | IngestSourceOutRutter | IngestSourceOutSafebase | IngestSourceOutSardine | IngestSourceOutSegment | IngestSourceOutShopify | IngestSourceOutSlack | IngestSourceOutStripe | IngestSourceOutStych | IngestSourceOutSvix | IngestSourceOutZoom | IngestSourceOutTailscale | IngestSourceOutTelnyx | IngestSourceOutVapi | IngestSourceOutOpenAi | IngestSourceOutRender | IngestSourceOutVeriff | IngestSourceOutAirwallex | IngestSourceOutVgs);
2946
+ type IngestSourceOut = _IngestSourceOutFields & (IngestSourceOutGenericWebhook | IngestSourceOutCron | IngestSourceOutAdobeSign | IngestSourceOutBeehiiv | IngestSourceOutBrex | IngestSourceOutCheckbook | IngestSourceOutClerk | IngestSourceOutDocusign | IngestSourceOutEasypost | IngestSourceOutGithub | IngestSourceOutGuesty | IngestSourceOutHubspot | IngestSourceOutIncidentIo | IngestSourceOutLithic | IngestSourceOutMerge | IngestSourceOutMeta | IngestSourceOutNango | IngestSourceOutNash | IngestSourceOutOpenclaw | IngestSourceOutOrumIo | IngestSourceOutPandaDoc | IngestSourceOutPortIo | IngestSourceOutPsiFi | IngestSourceOutPleo | IngestSourceOutReplicate | IngestSourceOutResend | IngestSourceOutRutter | IngestSourceOutSafebase | IngestSourceOutSardine | IngestSourceOutSegment | IngestSourceOutShopify | IngestSourceOutSlack | IngestSourceOutStripe | IngestSourceOutStych | IngestSourceOutSvix | IngestSourceOutZoom | IngestSourceOutTailscale | IngestSourceOutTelnyx | IngestSourceOutVapi | IngestSourceOutOpenAi | IngestSourceOutRender | IngestSourceOutVeriff | IngestSourceOutAirwallex | IngestSourceOutVgs);
1995
2947
  //#endregion
1996
2948
  //#region src/models/listResponseIngestSourceOut.d.ts
1997
2949
  interface ListResponseIngestSourceOut {
@@ -2421,9 +3373,6 @@ declare class Message {
2421
3373
  */
2422
3374
  declare function messageInRaw(eventType: string, payload: string, contentType?: string): MessageIn;
2423
3375
  //#endregion
2424
- //#region src/models/emptyResponse.d.ts
2425
- interface EmptyResponse {}
2426
- //#endregion
2427
3376
  //#region src/models/messageStatusText.d.ts
2428
3377
  declare enum MessageStatusText {
2429
3378
  Success = "success",
@@ -3117,164 +4066,24 @@ interface StreamingEventsCreateOptions {
3117
4066
  idempotencyKey?: string;
3118
4067
  }
3119
4068
  declare class StreamingEvents {
3120
- private readonly requestCtx;
3121
- constructor(requestCtx: SvixRequestContext);
3122
- /**
3123
- * Iterate over a stream of events.
3124
- *
3125
- * The sink must be of type `poller` to use the poller endpoint.
3126
- */
3127
- get(streamId: string, sinkId: string, options?: StreamingEventsGetOptions): Promise<EventStreamOut>;
3128
- /** Creates events on the Stream. */
3129
- create(streamId: string, createStreamEventsIn: CreateStreamEventsIn, options?: StreamingEventsCreateOptions): Promise<CreateStreamEventsOut>;
3130
- }
3131
- //#endregion
3132
- //#region src/models/azureBlobStorageConfigOut.d.ts
3133
- interface AzureBlobStorageConfigOut {
3134
- container: string;
3135
- account: string;
3136
- }
3137
- //#endregion
3138
- //#region src/models/bigQueryConfigOut.d.ts
3139
- interface BigQueryConfigOut {
3140
- projectId: string;
3141
- datasetId: string;
3142
- tableId: string;
3143
- }
3144
- //#endregion
3145
- //#region src/models/clickhouseConfigOut.d.ts
3146
- interface ClickhouseConfigOut {
3147
- url: string;
3148
- username: string;
3149
- database: string;
3150
- tableName: string;
3151
- }
3152
- //#endregion
3153
- //#region src/models/eventBridgeConfigOut.d.ts
3154
- interface EventBridgeConfigOut {
3155
- eventBusName: string;
3156
- detailType: string;
3157
- accessKeyId: string;
3158
- region: string;
3159
- }
3160
- //#endregion
3161
- //#region src/models/googleCloudPubSubConfigOut.d.ts
3162
- interface GoogleCloudPubSubConfigOut {
3163
- projectId: string;
3164
- topicId: string;
3165
- }
3166
- //#endregion
3167
- //#region src/models/googleCloudStorageConfigOut.d.ts
3168
- interface GoogleCloudStorageConfigOut {
3169
- bucket: string;
3170
- }
3171
- //#endregion
3172
- //#region src/models/otelTracingConfigOut.d.ts
3173
- interface OtelTracingConfigOut {
3174
- url: string;
3175
- headers: EndpointHeadersOut;
3176
- }
3177
- //#endregion
3178
- //#region src/models/postgresConfigOut.d.ts
3179
- interface PostgresConfigOut {
3180
- url: string;
3181
- tableName: string;
3182
- sslRootCert?: string | null;
3183
- }
3184
- //#endregion
3185
- //#region src/models/rabbitMqConfigOut.d.ts
3186
- interface RabbitMqConfigOut {
3187
- routingKey: string;
3188
- }
3189
- //#endregion
3190
- //#region src/models/redshiftConfigOut.d.ts
3191
- interface RedshiftConfigOut {
3192
- accessKeyId: string;
3193
- region: string;
3194
- clusterIdentifier?: string | null;
3195
- dbUser?: string | null;
3196
- workgroupName?: string | null;
3197
- /**
3198
- * Database name.
3199
- *
3200
- * Only required if not using transformations.
3201
- */
3202
- dbName?: string;
3203
- /**
3204
- * Schema name.
3205
- *
3206
- * Only used if not using transformations.
3207
- */
3208
- schemaName?: string | null;
3209
- /**
3210
- * Table name.
3211
- *
3212
- * Only required if not using transformations.
3213
- */
3214
- tableName?: string;
3215
- }
3216
- //#endregion
3217
- //#region src/models/s3ConfigOut.d.ts
3218
- interface S3ConfigOut {
3219
- bucket: string;
3220
- accessKeyId?: string | null;
3221
- region: string;
3222
- endpointUrl?: string | null;
3223
- roleArn?: string | null;
3224
- externalId?: string | null;
3225
- }
3226
- //#endregion
3227
- //#region src/models/sinkHttpConfigOut.d.ts
3228
- interface SinkHttpConfigOut {
3229
- url: string;
3230
- headers: EndpointHeadersOut;
3231
- }
3232
- //#endregion
3233
- //#region src/models/sinkStatus.d.ts
3234
- declare enum SinkStatus {
3235
- Enabled = "enabled",
3236
- Paused = "paused",
3237
- Disabled = "disabled",
3238
- Retrying = "retrying"
3239
- }
3240
- //#endregion
3241
- //#region src/models/snowflakeConfigOut.d.ts
3242
- interface SnowflakeConfigOut {
3243
- accountIdentifier: string;
3244
- userId: string;
3245
- /**
3246
- * Database name.
3247
- *
3248
- * Only required if not using transformations.
3249
- */
3250
- dbName?: string;
3251
- /**
3252
- * Schema name.
3253
- *
3254
- * Only required if not using transformations.
3255
- */
3256
- schemaName?: string;
4069
+ private readonly requestCtx;
4070
+ constructor(requestCtx: SvixRequestContext);
3257
4071
  /**
3258
- * Table name.
4072
+ * Iterate over a stream of events.
3259
4073
  *
3260
- * Only required if not using transformations.
4074
+ * The sink must be of type `poller` to use the poller endpoint.
3261
4075
  */
3262
- tableName?: string;
3263
- }
3264
- //#endregion
3265
- //#region src/models/snsConfigOut.d.ts
3266
- interface SnsConfigOut {
3267
- topicArn: string;
3268
- region: string;
3269
- accessKeyId: string;
4076
+ get(streamId: string, sinkId: string, options?: StreamingEventsGetOptions): Promise<EventStreamOut>;
4077
+ /** Creates events on the Stream. */
4078
+ create(streamId: string, createStreamEventsIn: CreateStreamEventsIn, options?: StreamingEventsCreateOptions): Promise<CreateStreamEventsOut>;
3270
4079
  }
3271
4080
  //#endregion
3272
- //#region src/models/sqsConfigOut.d.ts
3273
- interface SqsConfigOut {
3274
- queueUrl: string;
3275
- region: string;
3276
- accessKeyId: string;
3277
- endpointUrl?: string | null;
4081
+ //#region src/models/sinkStatus.d.ts
4082
+ declare enum SinkStatus {
4083
+ Enabled = "enabled",
4084
+ Paused = "paused",
4085
+ Disabled = "disabled",
4086
+ Retrying = "retrying"
3278
4087
  }
3279
4088
  //#endregion
3280
4089
  //#region src/models/streamSinkOut.d.ts
@@ -3298,10 +4107,15 @@ interface _StreamSinkOutFields {
3298
4107
  };
3299
4108
  }
3300
4109
  interface StreamSinkOutPollerConfig {}
4110
+ interface StreamSinkOutPollingEndpointConfig {}
3301
4111
  interface StreamSinkOutPoller {
3302
4112
  type: "poller";
3303
4113
  config?: StreamSinkOutPollerConfig;
3304
4114
  }
4115
+ interface StreamSinkOutPollingEndpoint {
4116
+ type: "pollingEndpoint";
4117
+ config?: StreamSinkOutPollingEndpointConfig;
4118
+ }
3305
4119
  interface StreamSinkOutAzureBlobStorage {
3306
4120
  type: "azureBlobStorage";
3307
4121
  config: AzureBlobStorageConfigOut;
@@ -3360,239 +4174,27 @@ interface StreamSinkOutSns {
3360
4174
  }
3361
4175
  interface StreamSinkOutPostgres {
3362
4176
  type: "postgres";
3363
- config: PostgresConfigOut;
3364
- }
3365
- type StreamSinkOut = _StreamSinkOutFields & (StreamSinkOutPoller | StreamSinkOutAzureBlobStorage | StreamSinkOutOtelTracing | StreamSinkOutHttp | StreamSinkOutAmazonS3 | StreamSinkOutSnowflake | StreamSinkOutGoogleCloudStorage | StreamSinkOutGoogleCloudPubSub | StreamSinkOutRedshift | StreamSinkOutBigQuery | StreamSinkOutClickhouse | StreamSinkOutRabbitMq | StreamSinkOutSqs | StreamSinkOutEventBridge | StreamSinkOutSns | StreamSinkOutPostgres);
3366
- //#endregion
3367
- //#region src/models/listResponseStreamSinkOut.d.ts
3368
- interface ListResponseStreamSinkOut {
3369
- data: StreamSinkOut[];
3370
- iterator: string | null;
3371
- prevIterator?: string | null;
3372
- done: boolean;
3373
- }
3374
- //#endregion
3375
- //#region src/models/sinkSecretOut.d.ts
3376
- interface SinkSecretOut {
3377
- /**
3378
- * The endpoint's verification secret.
3379
- *
3380
- * Format: `base64` encoded random bytes optionally prefixed with `whsec_`.
3381
- * It is recommended to not set this and let the server generate the secret.
3382
- */
3383
- key?: string | null;
3384
- }
3385
- //#endregion
3386
- //#region src/models/azureBlobStorageConfigIn.d.ts
3387
- interface AzureBlobStorageConfigIn {
3388
- container: string;
3389
- account: string;
3390
- /**
3391
- * Access key.
3392
- *
3393
- * Currently a required field, but marked as optional because we may add different authentication in the future.
3394
- */
3395
- accessKey?: string | null;
3396
- }
3397
- //#endregion
3398
- //#region src/models/bigQueryConfigIn.d.ts
3399
- /** Configuration for a Google Cloud BigQuery sink. */
3400
- interface BigQueryConfigIn {
3401
- projectId: string;
3402
- datasetId: string;
3403
- tableId: string;
3404
- /** Google Cloud Credentials JSON Object as a string. */
3405
- credentials: string;
3406
- }
3407
- //#endregion
3408
- //#region src/models/clickhouseConfigIn.d.ts
3409
- interface ClickhouseConfigIn {
3410
- /** The HTTP URL of the ClickHouse server (e.g. `https://my_clickhouse:8443`). */
3411
- url: string;
3412
- /**
3413
- * Username to access Clickhouse.
3414
- *
3415
- * Currently a required field, but marked as optional because we may add different authentication in the future.
3416
- */
3417
- username?: string | null;
3418
- /**
3419
- * Password to access Clickhouse.
3420
- *
3421
- * Currently a required field, but marked as optional because we may add different authentication in the future.
3422
- */
3423
- password?: string | null;
3424
- /** The Clickhouse database to connect to. */
3425
- database?: string;
3426
- /** The Clickhouse table to write to. */
3427
- tableName: string;
3428
- }
3429
- //#endregion
3430
- //#region src/models/eventBridgeConfigIn.d.ts
3431
- interface EventBridgeConfigIn {
3432
- /** The name or ARN of the event bus to receive the event */
3433
- eventBusName: string;
3434
- /** Free-form string, with a maximum of 128 characters */
3435
- detailType?: string;
3436
- /**
3437
- * Access key ID.
3438
- *
3439
- * Currently a required field, but marked as optional because we may add different authentication in the future.
3440
- */
3441
- accessKeyId?: string | null;
3442
- /**
3443
- * Secret access key.
3444
- *
3445
- * Currently a required field, but marked as optional because we may add different authentication in the future.
3446
- */
3447
- secretAccessKey?: string | null;
3448
- /**
3449
- * The region of the EventBridge bus.
3450
- *
3451
- * Currently a required field, but marked as optional because we may infer it from other fields in the future.
3452
- */
3453
- region?: string | null;
3454
- }
3455
- //#endregion
3456
- //#region src/models/googleCloudPubSubConfigIn.d.ts
3457
- interface GoogleCloudPubSubConfigIn {
3458
- projectId: string;
3459
- topicId: string;
3460
- /** Google Cloud Credentials JSON Object as a string. */
3461
- credentials: string;
3462
- }
3463
- //#endregion
3464
- //#region src/models/googleCloudStorageConfigIn.d.ts
3465
- /**
3466
- * Configuration for a Google Cloud Storage sink.
3467
- *
3468
- * Write stream events into the named bucket using the supplied Google Cloud credentials.
3469
- */
3470
- interface GoogleCloudStorageConfigIn {
3471
- bucket: string;
3472
- /** Google Cloud Credentials JSON Object as a string. */
3473
- credentials: string;
3474
- }
3475
- //#endregion
3476
- //#region src/models/otelTracingConfigIn.d.ts
3477
- interface OtelTracingConfigIn {
3478
- url: string;
3479
- headers?: {
3480
- [key: string]: string;
3481
- };
3482
- }
3483
- //#endregion
3484
- //#region src/models/postgresConfigIn.d.ts
3485
- interface PostgresConfigIn {
3486
- /**
3487
- * PostgreSQL connection URL, e.g. `postgres://user@host:5432/dbname?sslmode=require`.
3488
- *
3489
- * Do NOT embed a password here; use the `password` field instead.
3490
- */
3491
- url: string;
3492
- /** Password for the connection. */
3493
- password?: string | null;
3494
- /**
3495
- * Table to insert into. May be schema-qualified (e.g. `public.events`).
3496
- *
3497
- * Quote characters are not supported. Each dot-separated segment is automatically double-quoted when the query is built, so `public.events` becomes `"public"."events"`.
3498
- */
3499
- tableName: string;
3500
- /**
3501
- * PEM-encoded CA certificate used to verify the Postgres server's TLS certificate.
3502
- *
3503
- * Supply this to trust a private or self-signed CA when connecting with `sslmode=verify-ca` or `sslmode=verify-full`. Without it, only the built-in public roots are trusted.
3504
- */
3505
- sslRootCert?: string | null;
3506
- }
3507
- //#endregion
3508
- //#region src/models/rabbitMqConfigIn.d.ts
3509
- /** Configuration for a RabbitMq sink. */
3510
- interface RabbitMqConfigIn {
3511
- uri: string;
3512
- routingKey: string;
3513
- }
3514
- //#endregion
3515
- //#region src/models/redshiftConfigIn.d.ts
3516
- /**
3517
- * Configuration parameters for defining a Redshift sink.
3518
- *
3519
- * For provisioned clusters, set `cluster_identifier` and `db_user`. For Redshift Serverless, set `workgroup_name`.
3520
- */
3521
- interface RedshiftConfigIn {
3522
- /**
3523
- * Access key ID.
3524
- *
3525
- * Currently a required field, but marked as optional because we may add different authentication in the future.
3526
- */
3527
- accessKeyId?: string | null;
3528
- /**
3529
- * Secret access key.
3530
- *
3531
- * Currently a required field, but marked as optional because we may add different authentication in the future.
3532
- */
3533
- secretAccessKey?: string | null;
3534
- /**
3535
- * The region of the Redshift DB.
3536
- *
3537
- * Currently a required field, but marked as optional because we may infer it from other fields in the future.
3538
- */
3539
- region?: string | null;
3540
- /** Required for provisioned clusters. */
3541
- clusterIdentifier?: string | null;
3542
- /** Required for provisioned clusters. */
3543
- dbUser?: string | null;
3544
- /** Required for Redshift Serverless. */
3545
- workgroupName?: string | null;
3546
- /**
3547
- * Database name.
3548
- *
3549
- * Only required if not using transformations.
3550
- */
3551
- dbName?: string;
3552
- /**
3553
- * Schema name.
3554
- *
3555
- * Only used if not using transformations.
3556
- */
3557
- schemaName?: string | null;
3558
- /**
3559
- * Table name.
3560
- *
3561
- * Only required if not using transformations.
3562
- */
3563
- tableName?: string;
3564
- }
3565
- //#endregion
3566
- //#region src/models/s3ConfigIn.d.ts
3567
- interface S3ConfigIn {
3568
- bucket: string;
3569
- /**
3570
- * Access key ID.
3571
- *
3572
- * Required (along with `secret_access_key`) if `role_arn` is null
3573
- */
3574
- accessKeyId?: string | null;
3575
- /**
3576
- * Secret access key.
3577
- *
3578
- * Required (along with `access_key_id`) if `role_arn` is null
3579
- */
3580
- secretAccessKey?: string | null;
3581
- /**
3582
- * The region of the S3 bucket
3583
- *
3584
- * Currently a required field, but marked as optional because we may infer it from other fields in the future.
3585
- */
3586
- region?: string | null;
3587
- endpointUrl?: string | null;
3588
- /** Role ARN for delegated authentication */
3589
- roleArn?: string | null;
4177
+ config: PostgresConfigOut;
4178
+ }
4179
+ type StreamSinkOut = _StreamSinkOutFields & (StreamSinkOutPoller | StreamSinkOutPollingEndpoint | StreamSinkOutAzureBlobStorage | StreamSinkOutOtelTracing | StreamSinkOutHttp | StreamSinkOutAmazonS3 | StreamSinkOutSnowflake | StreamSinkOutGoogleCloudStorage | StreamSinkOutGoogleCloudPubSub | StreamSinkOutRedshift | StreamSinkOutBigQuery | StreamSinkOutClickhouse | StreamSinkOutRabbitMq | StreamSinkOutSqs | StreamSinkOutEventBridge | StreamSinkOutSns | StreamSinkOutPostgres);
4180
+ //#endregion
4181
+ //#region src/models/listResponseStreamSinkOut.d.ts
4182
+ interface ListResponseStreamSinkOut {
4183
+ data: StreamSinkOut[];
4184
+ iterator: string | null;
4185
+ prevIterator?: string | null;
4186
+ done: boolean;
4187
+ }
4188
+ //#endregion
4189
+ //#region src/models/sinkSecretOut.d.ts
4190
+ interface SinkSecretOut {
3590
4191
  /**
3591
- * Shared secret passed as the STS ExternalId.
4192
+ * The endpoint's verification secret.
3592
4193
  *
3593
- * Required if `role_arn` is not null.
4194
+ * Format: `base64` encoded random bytes optionally prefixed with `whsec_`.
4195
+ * It is recommended to not set this and let the server generate the secret.
3594
4196
  */
3595
- externalId?: string | null;
4197
+ key?: string | null;
3596
4198
  }
3597
4199
  //#endregion
3598
4200
  //#region src/models/sinkHttpConfigIn.d.ts
@@ -3610,91 +4212,6 @@ declare enum SinkStatusIn {
3610
4212
  Disabled = "disabled"
3611
4213
  }
3612
4214
  //#endregion
3613
- //#region src/models/snowflakeConfigIn.d.ts
3614
- /** Configuration parameters for defining a Snowflake sink. */
3615
- interface SnowflakeConfigIn {
3616
- /**
3617
- * PEM-encoded private key used for signing token-based requests to the Snowflake API.
3618
- *
3619
- * Beginning/end delimiters are not required.
3620
- *
3621
- * Currently a required field, but marked as optional because we may add different authentication in the future.
3622
- */
3623
- privateKey?: string | null;
3624
- /** Snowflake account identifier, which includes both the organization and account IDs separated by a hyphen. */
3625
- accountIdentifier: string;
3626
- /** The Snowflake user id. */
3627
- userId: string;
3628
- /**
3629
- * Database name.
3630
- *
3631
- * Only required if not using transformations.
3632
- */
3633
- dbName?: string;
3634
- /**
3635
- * Schema name.
3636
- *
3637
- * Only required if not using transformations.
3638
- */
3639
- schemaName?: string;
3640
- /**
3641
- * Table name.
3642
- *
3643
- * Only required if not using transformations.
3644
- */
3645
- tableName?: string;
3646
- }
3647
- //#endregion
3648
- //#region src/models/snsConfigIn.d.ts
3649
- /** Configuration for a SNS sink. */
3650
- interface SnsConfigIn {
3651
- topicArn: string;
3652
- /**
3653
- * The region of the SNS instance.
3654
- *
3655
- * Currently a required field, but marked as optional because we may infer it from other fields in the future.
3656
- */
3657
- region?: string | null;
3658
- /**
3659
- * Access key ID.
3660
- *
3661
- * Currently a required field, but marked as optional because we may add different authentication in the future.
3662
- */
3663
- accessKeyId?: string | null;
3664
- /**
3665
- * Secret access key.
3666
- *
3667
- * Currently a required field, but marked as optional because we may add different authentication in the future.
3668
- */
3669
- secretAccessKey?: string | null;
3670
- endpointUrl?: string | null;
3671
- }
3672
- //#endregion
3673
- //#region src/models/sqsConfigIn.d.ts
3674
- /** Configuration for an SQS sink. */
3675
- interface SqsConfigIn {
3676
- queueUrl: string;
3677
- /**
3678
- * The region of the SQS queue.
3679
- *
3680
- * Currently a required field, but marked as optional because we may infer it from other fields in the future.
3681
- */
3682
- region?: string | null;
3683
- /**
3684
- * Access key ID.
3685
- *
3686
- * Currently a required field, but marked as optional because we may add different authentication in the future.
3687
- */
3688
- accessKeyId?: string | null;
3689
- /**
3690
- * Secret access key.
3691
- *
3692
- * Currently a required field, but marked as optional because we may add different authentication in the future.
3693
- */
3694
- secretAccessKey?: string | null;
3695
- endpointUrl?: string | null;
3696
- }
3697
- //#endregion
3698
4215
  //#region src/models/streamSinkIn.d.ts
3699
4216
  interface _StreamSinkInFields {
3700
4217
  /** An optional unique identifier for the sink. */
@@ -3791,155 +4308,6 @@ interface StreamSinkInPostgres {
3791
4308
  }
3792
4309
  type StreamSinkIn = _StreamSinkInFields & (StreamSinkInPoller | StreamSinkInAzureBlobStorage | StreamSinkInOtelTracing | StreamSinkInHttp | StreamSinkInAmazonS3 | StreamSinkInGoogleCloudStorage | StreamSinkInGoogleCloudPubSub | StreamSinkInSqs | StreamSinkInSns | StreamSinkInBigQuery | StreamSinkInClickhouse | StreamSinkInEventBridge | StreamSinkInSnowflake | StreamSinkInRabbitMq | StreamSinkInRedshift | StreamSinkInPostgres);
3793
4310
  //#endregion
3794
- //#region src/models/azureBlobStorageConfigPatch.d.ts
3795
- interface AzureBlobStorageConfigPatch {
3796
- container?: string;
3797
- account?: string;
3798
- accessKey?: string;
3799
- }
3800
- //#endregion
3801
- //#region src/models/bigQueryConfigPatch.d.ts
3802
- interface BigQueryConfigPatch {
3803
- projectId?: string;
3804
- datasetId?: string;
3805
- tableId?: string;
3806
- credentials?: string;
3807
- }
3808
- //#endregion
3809
- //#region src/models/clickhouseConfigPatch.d.ts
3810
- interface ClickhouseConfigPatch {
3811
- url?: string;
3812
- username?: string;
3813
- password?: string;
3814
- database?: string;
3815
- tableName?: string;
3816
- }
3817
- //#endregion
3818
- //#region src/models/eventBridgeConfigPatch.d.ts
3819
- interface EventBridgeConfigPatch {
3820
- eventBusName?: string;
3821
- detailType?: string;
3822
- accessKeyId?: string;
3823
- secretAccessKey?: string;
3824
- region?: string;
3825
- }
3826
- //#endregion
3827
- //#region src/models/googleCloudPubSubConfigPatch.d.ts
3828
- interface GoogleCloudPubSubConfigPatch {
3829
- projectId?: string;
3830
- topicId?: string;
3831
- credentials?: string;
3832
- }
3833
- //#endregion
3834
- //#region src/models/googleCloudStorageConfigPatch.d.ts
3835
- interface GoogleCloudStorageConfigPatch {
3836
- bucket?: string;
3837
- credentials?: string;
3838
- }
3839
- //#endregion
3840
- //#region src/models/otelTracingConfigPatch.d.ts
3841
- interface OtelTracingConfigPatch {
3842
- url?: string;
3843
- }
3844
- //#endregion
3845
- //#region src/models/postgresConfigPatch.d.ts
3846
- interface PostgresConfigPatch {
3847
- url?: string;
3848
- password?: string;
3849
- tableName?: string;
3850
- sslRootCert?: string;
3851
- }
3852
- //#endregion
3853
- //#region src/models/rabbitMqConfigPatch.d.ts
3854
- interface RabbitMqConfigPatch {
3855
- routingKey?: string;
3856
- uri?: string;
3857
- }
3858
- //#endregion
3859
- //#region src/models/redshiftConfigPatch.d.ts
3860
- interface RedshiftConfigPatch {
3861
- accessKeyId?: string;
3862
- secretAccessKey?: string;
3863
- region?: string;
3864
- /**
3865
- * Database name.
3866
- *
3867
- * Only required if not using transformations.
3868
- */
3869
- dbName?: string;
3870
- /**
3871
- * Schema name.
3872
- *
3873
- * Only used if not using transformations.
3874
- */
3875
- schemaName?: string | null;
3876
- /**
3877
- * Table name.
3878
- *
3879
- * Only required if not using transformations.
3880
- */
3881
- tableName?: string;
3882
- }
3883
- //#endregion
3884
- //#region src/models/s3ConfigPatch.d.ts
3885
- interface S3ConfigPatch {
3886
- bucket?: string;
3887
- accessKeyId?: string;
3888
- secretAccessKey?: string;
3889
- roleArn?: string;
3890
- externalId?: string;
3891
- region?: string;
3892
- endpointUrl?: string;
3893
- }
3894
- //#endregion
3895
- //#region src/models/sinkHttpConfigPatch.d.ts
3896
- interface SinkHttpConfigPatch {
3897
- url?: string;
3898
- }
3899
- //#endregion
3900
- //#region src/models/snowflakeConfigPatch.d.ts
3901
- interface SnowflakeConfigPatch {
3902
- privateKey?: string;
3903
- accountIdentifier?: string;
3904
- userId?: string;
3905
- /**
3906
- * Database name.
3907
- *
3908
- * Only required if not using transformations.
3909
- */
3910
- dbName?: string;
3911
- /**
3912
- * Schema name.
3913
- *
3914
- * Only required if not using transformations.
3915
- */
3916
- schemaName?: string;
3917
- /**
3918
- * Table name.
3919
- *
3920
- * Only required if not using transformations.
3921
- */
3922
- tableName?: string;
3923
- }
3924
- //#endregion
3925
- //#region src/models/snsConfigPatch.d.ts
3926
- interface SnsConfigPatch {
3927
- topicArn?: string;
3928
- region?: string;
3929
- accessKeyId?: string;
3930
- secretAccessKey?: string;
3931
- endpointUrl?: string | null;
3932
- }
3933
- //#endregion
3934
- //#region src/models/sqsConfigPatch.d.ts
3935
- interface SqsConfigPatch {
3936
- queueUrl?: string;
3937
- region?: string;
3938
- accessKeyId?: string;
3939
- secretAccessKey?: string;
3940
- endpointUrl?: string | null;
3941
- }
3942
- //#endregion
3943
4311
  //#region src/models/streamSinkPatch.d.ts
3944
4312
  interface _StreamSinkPatchFields {
3945
4313
  /** The StreamSink's UID. */
@@ -4270,10 +4638,11 @@ declare class AutoConfigError extends Error {
4270
4638
  }
4271
4639
  declare class AutoConfig {
4272
4640
  private readonly appId;
4273
- private readonly endpointId;
4274
- private readonly endpointIn;
4275
4641
  private readonly webhook;
4276
4642
  private readonly requestCtx;
4643
+ private readonly endpointIn;
4644
+ private readonly endpointId?;
4645
+ private readonly autoconfigId?;
4277
4646
  constructor(token: string, endpoint: EndpointIn);
4278
4647
  subscribe(): Promise<EndpointOut>;
4279
4648
  verify(payload: string | Buffer, headers: WebhookRequiredHeaders | WebhookUnbrandedRequiredHeaders | Record<string, string>): unknown;
@@ -4353,11 +4722,13 @@ interface SinkInCommon {
4353
4722
  //#region src/autoconfigConsumer.d.ts
4354
4723
  declare class AutoConfigConsumer {
4355
4724
  private readonly appId;
4356
- private readonly sinkId;
4357
4725
  private readonly sinkIn;
4358
4726
  private readonly requestCtx;
4727
+ private sinkId?;
4728
+ private readonly autoconfigId?;
4359
4729
  constructor(token: string, sinkIn: SinkInCommon);
4360
- subscribe(): Promise<EndpointOut>;
4730
+ subscribe(): Promise<DestinationOut>;
4731
+ private getSinkId;
4361
4732
  receive(consumerId: string, options?: MessagePollerv2ConsumerPollOptions): Promise<PollerV2PollOut>;
4362
4733
  commit(consumerId: string, offset: number, options?: MessagePollerv2ConsumerCommitOptions): Promise<void>;
4363
4734
  }
@@ -4390,6 +4761,7 @@ declare class Svix {
4390
4761
  get authentication(): Authentication;
4391
4762
  get backgroundTask(): BackgroundTask;
4392
4763
  get connector(): Connector;
4764
+ get destination(): Destination;
4393
4765
  get endpoint(): Endpoint;
4394
4766
  get environment(): Environment;
4395
4767
  get eventType(): EventType;
@@ -4403,5 +4775,5 @@ declare class Svix {
4403
4775
  get streaming(): Streaming;
4404
4776
  }
4405
4777
  //#endregion
4406
- export { type AdobeSignConfig, type AdobeSignConfigOut, type AggregateEventTypesOut, type AirwallexConfig, type AirwallexConfigOut, ApiException, type ApiTokenOut, type AppPortalAccessIn, type AppPortalAccessOut, AppPortalCapability, type AppUsageStatsIn, type AppUsageStatsOut, type ApplicationIn, type ApplicationListOptions, type ApplicationOut, type ApplicationPatch, type ApplicationTokenExpireIn, AutoConfig, AutoConfigConsumer, AutoConfigError, type AzureBlobStorageConfigIn, type AzureBlobStorageConfigOut, type AzureBlobStorageConfigPatch, type BackgroundTaskListOptions, type BackgroundTaskOut, BackgroundTaskStatus, BackgroundTaskType, type BigQueryConfigIn, type BigQueryConfigOut, type BigQueryConfigPatch, type BulkExpungeContentsIn, type BulkExpungeContentsOut, BulkExpungeStatus, type BulkReplayIn, type CheckbookConfig, type CheckbookConfigOut, type ClickhouseConfigIn, type ClickhouseConfigOut, type ClickhouseConfigPatch, type ConnectorIn, ConnectorKind, type ConnectorOut, type ConnectorPatch, ConnectorProduct, type ConnectorUpsertIn, type CreateStreamEventsIn, type CreateStreamEventsOut, type CronConfig, type DocusignConfig, type DocusignConfigOut, type EasypostConfig, type EasypostConfigOut, type EmptyResponse, type EndpointGetStatsOptions, type EndpointHeadersIn, type EndpointHeadersOut, type EndpointHeadersPatchIn, type EndpointIn, type EndpointListOptions, type EndpointMessageOut, type EndpointOut, type EndpointPatch, type EndpointSecretOut, type EndpointSecretRotateIn, type EndpointStats, type EndpointTransformationIn, type EndpointTransformationOut, type EndpointTransformationPatch, type EndpointUpsertIn, type EnvironmentIn, type EnvironmentOut, type EventBridgeConfigIn, type EventBridgeConfigOut, type EventBridgeConfigPatch, type EventExampleIn, type EventIn, type EventOut, type EventStreamOut, type EventTypeFromOpenApi, type EventTypeImportOpenApiIn, type EventTypeImportOpenApiOut, type EventTypeImportOpenApiOutData, type EventTypeIn, type EventTypeListOptions, type EventTypeOut, type EventTypePatch, type EventTypeUpsertIn, type ExpungeAllContentsOut, type GithubConfig, type GithubConfigOut, type GoogleCloudPubSubConfigIn, type GoogleCloudPubSubConfigOut, type GoogleCloudPubSubConfigPatch, type GoogleCloudStorageConfigIn, type GoogleCloudStorageConfigOut, type GoogleCloudStorageConfigPatch, HTTPValidationError, HttpErrorOut, type HttpSinkHeadersPatchIn, type HubspotConfig, type HubspotConfigOut, type IngestEndpointHeadersIn, type IngestEndpointHeadersOut, type IngestEndpointIn, type IngestEndpointOut, type IngestEndpointSecretIn, type IngestEndpointSecretOut, type IngestEndpointTransformationOut, type IngestEndpointTransformationPatch, type IngestEndpointUpsertIn, type IngestSourceConsumerPortalAccessIn, type IngestSourceIn, type IngestSourceOut, type IntegrationIn, type IntegrationKeyOut, type IntegrationListOptions, type IntegrationOut, type IntegrationUpdate, type ListResponseApplicationOut, type ListResponseBackgroundTaskOut, type ListResponseConnectorOut, type ListResponseEndpointMessageOut, type ListResponseEndpointOut, type ListResponseEventTypeOut, type ListResponseIngestEndpointOut, type ListResponseIngestSourceOut, type ListResponseIntegrationOut, type ListResponseMessageAttemptOut, type ListResponseMessageEndpointOut, type ListResponseMessageOut, type ListResponseOperationalWebhookEndpointOut, type ListResponseStreamEventTypeOut, type ListResponseStreamOut, type ListResponseStreamSinkOut, type MessageAttemptListByEndpointOptions, type MessageAttemptOut, MessageAttemptTriggerType, type MessageEndpointOut, type MessageIn, type MessageListOptions, type MessageOut, type MessagePrecheckIn, type MessagePrecheckOut, MessageStatus, MessageStatusText, type MetaConfig, type MetaConfigOut, type NangoConfig, type NangoConfigOut, type OpenClawConfig, type OpenClawConfigOut, type OperationalWebhookEndpointHeadersIn, type OperationalWebhookEndpointHeadersOut, type OperationalWebhookEndpointIn, type OperationalWebhookEndpointOut, type OperationalWebhookEndpointSecretIn, type OperationalWebhookEndpointSecretOut, type OperationalWebhookEndpointUpsertIn, Ordering, type OrumIoConfig, type OrumIoConfigOut, type OtelTracingConfigIn, type OtelTracingConfigOut, type OtelTracingConfigPatch, type PandaDocConfig, type PandaDocConfigOut, type PollingEndpointConsumerSeekIn, type PollingEndpointConsumerSeekOut, type PollingEndpointMessageOut, type PollingEndpointOut, type PortIoConfig, type PortIoConfigOut, type PostOptions, type PostgresConfigIn, type PostgresConfigOut, type PostgresConfigPatch, type RabbitMqConfigIn, type RabbitMqConfigOut, type RabbitMqConfigPatch, type RecoverIn, type RecoverOut, type RedshiftConfigIn, type RedshiftConfigOut, type RedshiftConfigPatch, type ReplayIn, type ReplayOut, type RotatePollerTokenIn, type RotateTokenOut, type RutterConfig, type RutterConfigOut, type S3ConfigIn, type S3ConfigOut, type S3ConfigPatch, type SegmentConfig, type SegmentConfigOut, type ShopifyConfig, type ShopifyConfigOut, type SinkHttpConfigIn, type SinkHttpConfigOut, type SinkHttpConfigPatch, type SinkSecretOut, SinkStatus, SinkStatusIn, type SinkTransformIn, type SinkTransformationOut, type SlackConfig, type SlackConfigOut, type SnowflakeConfigIn, type SnowflakeConfigOut, type SnowflakeConfigPatch, type SnsConfigIn, type SnsConfigOut, type SnsConfigPatch, type SqsConfigIn, type SqsConfigOut, type SqsConfigPatch, StatusCodeClass, type StreamEventTypeIn, type StreamEventTypeOut, type StreamEventTypePatch, type StreamIn, type StreamOut, type StreamPatch, type StreamPortalAccessIn, type StreamSinkIn, type StreamSinkOut, type StreamSinkPatch, type StreamTokenExpireIn, type StripeConfig, type StripeConfigOut, Svix, type SvixConfig, type SvixConfigOut, SvixOptions, type TailscaleConfig, type TailscaleConfigOut, type TelnyxConfig, type TelnyxConfigOut, ValidationError, type VapiConfig, type VapiConfigOut, type VeriffConfig, type VeriffConfigOut, type VgsConfig, type VgsConfigOut, Webhook, WebhookOptions, WebhookRequiredHeaders, WebhookUnbrandedRequiredHeaders, WebhookVerificationError, type ZoomConfig, type ZoomConfigOut, messageInRaw };
4778
+ export { type AdobeSignConfig, type AdobeSignConfigOut, type AggregateEventTypesOut, type AirwallexConfig, type AirwallexConfigOut, ApiException, type ApiTokenOut, type AppPortalAccessIn, type AppPortalAccessOut, AppPortalCapability, type AppUsageStatsIn, type AppUsageStatsOut, type ApplicationIn, type ApplicationListOptions, type ApplicationOut, type ApplicationPatch, type ApplicationTokenExpireIn, AutoConfig, AutoConfigConsumer, AutoConfigError, type AzureBlobStorageConfigIn, type AzureBlobStorageConfigOut, type AzureBlobStorageConfigPatch, type BackgroundTaskListOptions, type BackgroundTaskOut, BackgroundTaskStatus, BackgroundTaskType, type BigQueryConfigIn, type BigQueryConfigOut, type BigQueryConfigPatch, type BulkExpungeContentsIn, type BulkExpungeContentsOut, BulkExpungeStatus, type BulkReplayIn, type CheckbookConfig, type CheckbookConfigOut, type ClickhouseConfigIn, type ClickhouseConfigOut, type ClickhouseConfigPatch, type ConnectorIn, ConnectorKind, type ConnectorOut, type ConnectorPatch, ConnectorProduct, type ConnectorUpsertIn, type CreateStreamEventsIn, type CreateStreamEventsOut, type CronConfig, type DestinationIn, type DestinationOut, type DestinationPatch, DestinationStatus, DestinationStatusIn, type DestinationTransformIn, type DestinationTransformationOut, type DocusignConfig, type DocusignConfigOut, type EasypostConfig, type EasypostConfigOut, type EmptyResponse, type EndpointGetStatsOptions, type EndpointHeadersIn, type EndpointHeadersOut, type EndpointHeadersPatchIn, type EndpointIn, type EndpointListOptions, type EndpointMessageOut, type EndpointOut, type EndpointPatch, type EndpointSecretOut, type EndpointSecretRotateIn, type EndpointStats, type EndpointTransformationIn, type EndpointTransformationOut, type EndpointTransformationPatch, type EndpointUpsertIn, type EnvironmentIn, type EnvironmentOut, type EventBridgeConfigIn, type EventBridgeConfigOut, type EventBridgeConfigPatch, type EventExampleIn, type EventIn, type EventOut, type EventStreamOut, type EventTypeFromOpenApi, type EventTypeImportOpenApiIn, type EventTypeImportOpenApiOut, type EventTypeImportOpenApiOutData, type EventTypeIn, type EventTypeListOptions, type EventTypeOut, type EventTypePatch, type EventTypeUpsertIn, type ExpungeAllContentsOut, type FifoEndpointConfigIn, type GithubConfig, type GithubConfigOut, type GoogleCloudPubSubConfigIn, type GoogleCloudPubSubConfigOut, type GoogleCloudPubSubConfigPatch, type GoogleCloudStorageConfigIn, type GoogleCloudStorageConfigOut, type GoogleCloudStorageConfigPatch, HTTPValidationError, HttpErrorOut, type HttpSinkHeadersPatchIn, type HubspotConfig, type HubspotConfigOut, type IngestEndpointHeadersIn, type IngestEndpointHeadersOut, type IngestEndpointIn, type IngestEndpointOut, type IngestEndpointSecretIn, type IngestEndpointSecretOut, type IngestEndpointTransformationOut, type IngestEndpointTransformationPatch, type IngestEndpointUpsertIn, type IngestSourceConsumerPortalAccessIn, type IngestSourceIn, type IngestSourceOut, type IntegrationIn, type IntegrationKeyOut, type IntegrationListOptions, type IntegrationOut, type IntegrationUpdate, type ListResponseApplicationOut, type ListResponseBackgroundTaskOut, type ListResponseConnectorOut, type ListResponseDestinationOut, type ListResponseEndpointMessageOut, type ListResponseEndpointOut, type ListResponseEventTypeOut, type ListResponseIngestEndpointOut, type ListResponseIngestSourceOut, type ListResponseIntegrationOut, type ListResponseMessageAttemptOut, type ListResponseMessageEndpointOut, type ListResponseMessageOut, type ListResponseOperationalWebhookEndpointOut, type ListResponseStreamEventTypeOut, type ListResponseStreamOut, type ListResponseStreamSinkOut, type MergeConfig, type MergeConfigOut, type MessageAttemptListByEndpointOptions, type MessageAttemptOut, MessageAttemptTriggerType, type MessageEndpointOut, type MessageIn, type MessageListOptions, type MessageOut, type MessagePrecheckIn, type MessagePrecheckOut, MessageStatus, MessageStatusText, type MetaConfig, type MetaConfigOut, type NangoConfig, type NangoConfigOut, type OpenClawConfig, type OpenClawConfigOut, type OperationalWebhookEndpointHeadersIn, type OperationalWebhookEndpointHeadersOut, type OperationalWebhookEndpointIn, type OperationalWebhookEndpointOut, type OperationalWebhookEndpointSecretIn, type OperationalWebhookEndpointSecretOut, type OperationalWebhookEndpointUpsertIn, Ordering, type OrumIoConfig, type OrumIoConfigOut, type OtelTracingConfigIn, type OtelTracingConfigOut, type OtelTracingConfigPatch, type PandaDocConfig, type PandaDocConfigOut, type PollingEndpointConsumerSeekIn, type PollingEndpointConsumerSeekOut, type PollingEndpointMessageOut, type PollingEndpointOut, type PortIoConfig, type PortIoConfigOut, type PostOptions, type PostgresConfigIn, type PostgresConfigOut, type PostgresConfigPatch, type RabbitMqConfigIn, type RabbitMqConfigOut, type RabbitMqConfigPatch, type RecoverIn, type RecoverOut, type RedshiftConfigIn, type RedshiftConfigOut, type RedshiftConfigPatch, type ReplayIn, type ReplayOut, type RotatePollerTokenIn, type RotateTokenOut, type RutterConfig, type RutterConfigOut, type S3ConfigIn, type S3ConfigOut, type S3ConfigPatch, type SegmentConfig, type SegmentConfigOut, type ShopifyConfig, type ShopifyConfigOut, type SinkHttpConfigIn, type SinkHttpConfigOut, type SinkHttpConfigPatch, type SinkSecretOut, SinkStatus, SinkStatusIn, type SinkTransformIn, type SinkTransformationOut, type SlackConfig, type SlackConfigOut, type SnowflakeConfigIn, type SnowflakeConfigOut, type SnowflakeConfigPatch, type SnsConfigIn, type SnsConfigOut, type SnsConfigPatch, type SqsConfigIn, type SqsConfigOut, type SqsConfigPatch, StatusCodeClass, type StreamEventTypeIn, type StreamEventTypeOut, type StreamEventTypePatch, type StreamIn, type StreamOut, type StreamPatch, type StreamPortalAccessIn, type StreamSinkIn, type StreamSinkOut, type StreamSinkPatch, type StreamTokenExpireIn, type StripeConfig, type StripeConfigOut, Svix, type SvixConfig, type SvixConfigOut, SvixOptions, type TailscaleConfig, type TailscaleConfigOut, type TelnyxConfig, type TelnyxConfigOut, ValidationError, type VapiConfig, type VapiConfigOut, type VeriffConfig, type VeriffConfigOut, type VgsConfig, type VgsConfigOut, Webhook, WebhookOptions, WebhookRequiredHeaders, WebhookUnbrandedRequiredHeaders, WebhookVerificationError, type ZoomConfig, type ZoomConfigOut, messageInRaw };
4407
4779
  //# sourceMappingURL=index.d.mts.map