svix 2.5.0 → 2.6.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/index.d.mts +139 -53
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +46 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/endpoint.ts +39 -0
- package/src/api/eventType.ts +4 -1
- package/src/api/message.ts +6 -3
- package/src/api/messageAttempt.ts +6 -3
- package/src/models/appPortalAccessIn.ts +4 -2
- package/src/models/appUsageStatsOut.ts +7 -7
- package/src/models/applicationTokenExpireIn.ts +2 -1
- package/src/models/autoConfigOut.ts +1 -0
- package/src/models/autoConfigSubscriptionOut.ts +1 -0
- package/src/models/azureBlobStorageConfigIn.ts +2 -1
- package/src/models/clickhouseConfigIn.ts +4 -2
- package/src/models/createStreamEventsIn.ts +2 -1
- package/src/models/destinationIn.ts +14 -5
- package/src/models/endpointAttemptStats.ts +25 -0
- package/src/models/endpointMessageOut.ts +4 -1
- package/src/models/endpointSecretRotateIn.ts +2 -1
- package/src/models/eventBridgeConfigIn.ts +2 -1
- package/src/models/eventTypeImportOpenApiIn.ts +3 -1
- package/src/models/index.ts +1 -0
- package/src/models/ingestEndpointSecretIn.ts +2 -1
- package/src/models/ingestSourceConsumerPortalAccessIn.ts +2 -1
- package/src/models/messageIn.ts +12 -4
- package/src/models/operationalWebhookEndpointSecretIn.ts +2 -1
- package/src/models/postgresConfigIn.ts +7 -3
- package/src/models/rabbitMqConfigOut.ts +3 -0
- package/src/models/redshiftConfigIn.ts +4 -2
- package/src/models/rotatePollerTokenIn.ts +2 -1
- package/src/models/s3ConfigIn.ts +2 -1
- package/src/models/snowflakeConfigIn.ts +8 -3
- package/src/models/snsConfigIn.ts +2 -1
- package/src/models/sqsConfigIn.ts +2 -1
- package/src/models/streamPortalAccessIn.ts +4 -2
- package/src/models/streamSinkIn.ts +6 -2
- package/src/models/streamTokenExpireIn.ts +2 -1
- package/src/request.ts +1 -1
package/package.json
CHANGED
package/src/api/endpoint.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
// this file is @generated
|
|
2
2
|
|
|
3
3
|
import { type BulkReplayIn, BulkReplayInSerializer } from "../models/bulkReplayIn";
|
|
4
|
+
import {
|
|
5
|
+
type EndpointAttemptStats,
|
|
6
|
+
EndpointAttemptStatsSerializer,
|
|
7
|
+
} from "../models/endpointAttemptStats";
|
|
4
8
|
import {
|
|
5
9
|
type EndpointHeadersIn,
|
|
6
10
|
EndpointHeadersInSerializer,
|
|
@@ -79,6 +83,13 @@ export interface EndpointGetStatsOptions {
|
|
|
79
83
|
until?: Date | null;
|
|
80
84
|
}
|
|
81
85
|
|
|
86
|
+
export interface EndpointGetAttemptStatsOptions {
|
|
87
|
+
/** Filter the range to data starting from this date. */
|
|
88
|
+
since?: Date | null;
|
|
89
|
+
/** Filter the range to data ending by this date. */
|
|
90
|
+
until?: Date | null;
|
|
91
|
+
}
|
|
92
|
+
|
|
82
93
|
export interface EndpointRecoverOptions {
|
|
83
94
|
idempotencyKey?: string;
|
|
84
95
|
}
|
|
@@ -394,6 +405,34 @@ export class Endpoint {
|
|
|
394
405
|
return await request.send(this.requestCtx, EndpointStatsSerializer._fromJsonObject);
|
|
395
406
|
}
|
|
396
407
|
|
|
408
|
+
/**
|
|
409
|
+
* Get basic statistics about attempted deliveries for the endpoint.
|
|
410
|
+
*
|
|
411
|
+
* Time windows are always rounded to hour granularity
|
|
412
|
+
*/
|
|
413
|
+
public async getAttemptStats(
|
|
414
|
+
appId: string,
|
|
415
|
+
endpointId: string,
|
|
416
|
+
options?: EndpointGetAttemptStatsOptions
|
|
417
|
+
): Promise<EndpointAttemptStats> {
|
|
418
|
+
const request = new SvixRequest(
|
|
419
|
+
HttpMethod.GET,
|
|
420
|
+
"/api/v1/app/{app_id}/endpoint/{endpoint_id}/attempt-stats"
|
|
421
|
+
);
|
|
422
|
+
|
|
423
|
+
request.setPathParam("app_id", appId);
|
|
424
|
+
request.setPathParam("endpoint_id", endpointId);
|
|
425
|
+
request.setQueryParams({
|
|
426
|
+
since: options?.since,
|
|
427
|
+
until: options?.until,
|
|
428
|
+
});
|
|
429
|
+
|
|
430
|
+
return await request.send(
|
|
431
|
+
this.requestCtx,
|
|
432
|
+
EndpointAttemptStatsSerializer._fromJsonObject
|
|
433
|
+
);
|
|
434
|
+
}
|
|
435
|
+
|
|
397
436
|
/**
|
|
398
437
|
* Resend all failed messages since a given time.
|
|
399
438
|
*
|
package/src/api/eventType.ts
CHANGED
|
@@ -44,7 +44,10 @@ export interface EventTypeImportOpenapiOptions {
|
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
export interface EventTypeDeleteOptions {
|
|
47
|
-
/**
|
|
47
|
+
/**
|
|
48
|
+
* By default event types are archived when "deleted". Passing this to `true` deletes them
|
|
49
|
+
* entirely.
|
|
50
|
+
*/
|
|
48
51
|
expunge?: boolean;
|
|
49
52
|
}
|
|
50
53
|
|
package/src/api/message.ts
CHANGED
|
@@ -43,7 +43,8 @@ export interface MessageListOptions {
|
|
|
43
43
|
/**
|
|
44
44
|
* When `true` message payloads are included in the response.
|
|
45
45
|
*
|
|
46
|
-
* Defaults to `false` in v2+ of the Svix SDKs, `true` in v1 or when manually making a request
|
|
46
|
+
* Defaults to `false` in v2+ of the Svix SDKs, `true` in v1 or when manually making a request
|
|
47
|
+
* without specifying this parameter.
|
|
47
48
|
*/
|
|
48
49
|
withContent?: boolean;
|
|
49
50
|
/** Filter messages matching the provided tag. */
|
|
@@ -56,7 +57,8 @@ export interface MessageCreateOptions {
|
|
|
56
57
|
/**
|
|
57
58
|
* When `true`, message payloads are included in the response.
|
|
58
59
|
*
|
|
59
|
-
* Defaults to `false` in v2+ of the Svix SDKs, `true` in v1 or when manually making a request
|
|
60
|
+
* Defaults to `false` in v2+ of the Svix SDKs, `true` in v1 or when manually making a request
|
|
61
|
+
* without specifying this parameter.
|
|
60
62
|
*/
|
|
61
63
|
withContent?: boolean;
|
|
62
64
|
idempotencyKey?: string;
|
|
@@ -70,7 +72,8 @@ export interface MessageGetOptions {
|
|
|
70
72
|
/**
|
|
71
73
|
* When `true` message payloads are included in the response.
|
|
72
74
|
*
|
|
73
|
-
* Defaults to `false` in v2+ of the Svix SDKs, `true` in v1 or when manually making a request
|
|
75
|
+
* Defaults to `false` in v2+ of the Svix SDKs, `true` in v1 or when manually making a request
|
|
76
|
+
* without specifying this parameter.
|
|
74
77
|
*/
|
|
75
78
|
withContent?: boolean;
|
|
76
79
|
}
|
|
@@ -41,7 +41,8 @@ export interface MessageAttemptListByEndpointOptions {
|
|
|
41
41
|
/**
|
|
42
42
|
* When `true` attempt content is included in the response.
|
|
43
43
|
*
|
|
44
|
-
* Defaults to `false` in v2+ of the Svix SDKs, `true` in v1 or when manually making a request
|
|
44
|
+
* Defaults to `false` in v2+ of the Svix SDKs, `true` in v1 or when manually making a request
|
|
45
|
+
* without specifying this parameter.
|
|
45
46
|
*/
|
|
46
47
|
withContent?: boolean;
|
|
47
48
|
/**
|
|
@@ -82,7 +83,8 @@ export interface MessageAttemptListByMsgOptions {
|
|
|
82
83
|
/**
|
|
83
84
|
* When `true` attempt content is included in the response.
|
|
84
85
|
*
|
|
85
|
-
* Defaults to `false` in v2+ of the Svix SDKs, `true` in v1 or when manually making a request
|
|
86
|
+
* Defaults to `false` in v2+ of the Svix SDKs, `true` in v1 or when manually making a request
|
|
87
|
+
* without specifying this parameter.
|
|
86
88
|
*/
|
|
87
89
|
withContent?: boolean;
|
|
88
90
|
/**
|
|
@@ -113,7 +115,8 @@ export interface MessageAttemptListAttemptedMessagesOptions {
|
|
|
113
115
|
/**
|
|
114
116
|
* When `true` message payloads are included in the response.
|
|
115
117
|
*
|
|
116
|
-
* Defaults to `false` in v2+ of the Svix SDKs, `true` in v1 or when manually making a request
|
|
118
|
+
* Defaults to `false` in v2+ of the Svix SDKs, `true` in v1 or when manually making a request
|
|
119
|
+
* without specifying this parameter.
|
|
117
120
|
*/
|
|
118
121
|
withContent?: boolean;
|
|
119
122
|
/**
|
|
@@ -43,13 +43,15 @@ export interface AppPortalAccessIn {
|
|
|
43
43
|
/**
|
|
44
44
|
* How long the token will be valid for, in seconds.
|
|
45
45
|
*
|
|
46
|
-
* Valid values are between 1 hour and 7 days.
|
|
46
|
+
* Valid values are between 1 hour and 7 days.
|
|
47
|
+
* The default is 7 days.
|
|
47
48
|
*/
|
|
48
49
|
expiry?: number | null;
|
|
49
50
|
/**
|
|
50
51
|
* An optional session ID to attach to the token.
|
|
51
52
|
*
|
|
52
|
-
* When expiring tokens with "Expire All", you can include the session ID
|
|
53
|
+
* When expiring tokens with "Expire All", you can include the session ID
|
|
54
|
+
* to only expire tokens that were created with that session ID.
|
|
53
55
|
*/
|
|
54
56
|
sessionId?: string | null;
|
|
55
57
|
}
|
|
@@ -9,37 +9,37 @@ import {
|
|
|
9
9
|
} from "./backgroundTaskType";
|
|
10
10
|
|
|
11
11
|
export interface AppUsageStatsOut {
|
|
12
|
+
/** The QueueBackgroundTask's ID. */
|
|
13
|
+
id: string;
|
|
14
|
+
status: BackgroundTaskStatus;
|
|
15
|
+
task: BackgroundTaskType;
|
|
16
|
+
updatedAt: Date;
|
|
12
17
|
/**
|
|
13
18
|
* Any app IDs or UIDs received in the request that weren't found.
|
|
14
19
|
*
|
|
15
20
|
* Stats will be produced for all the others.
|
|
16
21
|
*/
|
|
17
22
|
unresolvedAppIds: string[];
|
|
18
|
-
/** The QueueBackgroundTask's ID. */
|
|
19
|
-
id: string;
|
|
20
|
-
status: BackgroundTaskStatus;
|
|
21
|
-
task: BackgroundTaskType;
|
|
22
|
-
updatedAt: Date;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
export const AppUsageStatsOutSerializer = {
|
|
26
26
|
_fromJsonObject(object: any): AppUsageStatsOut {
|
|
27
27
|
return {
|
|
28
|
-
unresolvedAppIds: object["unresolvedAppIds"],
|
|
29
28
|
id: object["id"],
|
|
30
29
|
status: BackgroundTaskStatusSerializer._fromJsonObject(object["status"]),
|
|
31
30
|
task: BackgroundTaskTypeSerializer._fromJsonObject(object["task"]),
|
|
32
31
|
updatedAt: new Date(object["updatedAt"]),
|
|
32
|
+
unresolvedAppIds: object["unresolvedAppIds"],
|
|
33
33
|
};
|
|
34
34
|
},
|
|
35
35
|
|
|
36
36
|
_toJsonObject(self: AppUsageStatsOut): any {
|
|
37
37
|
return {
|
|
38
|
-
unresolvedAppIds: self.unresolvedAppIds,
|
|
39
38
|
id: self.id,
|
|
40
39
|
status: BackgroundTaskStatusSerializer._toJsonObject(self.status),
|
|
41
40
|
task: BackgroundTaskTypeSerializer._toJsonObject(self.task),
|
|
42
41
|
updatedAt: self.updatedAt,
|
|
42
|
+
unresolvedAppIds: self.unresolvedAppIds,
|
|
43
43
|
};
|
|
44
44
|
},
|
|
45
45
|
};
|
|
@@ -6,7 +6,8 @@ export interface ApplicationTokenExpireIn {
|
|
|
6
6
|
/**
|
|
7
7
|
* An optional list of session ids.
|
|
8
8
|
*
|
|
9
|
-
* If any session ids are specified, only Application tokens created with that
|
|
9
|
+
* If any session ids are specified, only Application tokens created with that
|
|
10
|
+
* session id will be expired.
|
|
10
11
|
*/
|
|
11
12
|
sessionIds?: string[];
|
|
12
13
|
}
|
|
@@ -6,7 +6,8 @@ export interface AzureBlobStorageConfigIn {
|
|
|
6
6
|
/**
|
|
7
7
|
* Access key.
|
|
8
8
|
*
|
|
9
|
-
* Currently a required field, but marked as optional because we may add
|
|
9
|
+
* Currently a required field, but marked as optional because we may add
|
|
10
|
+
* different authentication in the future.
|
|
10
11
|
*/
|
|
11
12
|
accessKey?: string | null;
|
|
12
13
|
}
|
|
@@ -6,13 +6,15 @@ export interface ClickhouseConfigIn {
|
|
|
6
6
|
/**
|
|
7
7
|
* Username to access Clickhouse.
|
|
8
8
|
*
|
|
9
|
-
* Currently a required field, but marked as optional because we may add
|
|
9
|
+
* Currently a required field, but marked as optional because we may add
|
|
10
|
+
* different authentication in the future.
|
|
10
11
|
*/
|
|
11
12
|
username?: string | null;
|
|
12
13
|
/**
|
|
13
14
|
* Password to access Clickhouse.
|
|
14
15
|
*
|
|
15
|
-
* Currently a required field, but marked as optional because we may add
|
|
16
|
+
* Currently a required field, but marked as optional because we may add
|
|
17
|
+
* different authentication in the future.
|
|
16
18
|
*/
|
|
17
19
|
password?: string | null;
|
|
18
20
|
/** The Clickhouse database to connect to. */
|
|
@@ -7,7 +7,8 @@ export interface CreateStreamEventsIn {
|
|
|
7
7
|
/**
|
|
8
8
|
* Optionally creates a new Stream alongside the events.
|
|
9
9
|
*
|
|
10
|
-
* If the stream id or uid that is used in the path already exists,
|
|
10
|
+
* If the stream id or uid that is used in the path already exists,
|
|
11
|
+
* this argument is ignored.
|
|
11
12
|
*/
|
|
12
13
|
stream?: StreamIn | null;
|
|
13
14
|
}
|
|
@@ -46,9 +46,11 @@ interface _DestinationInFields {
|
|
|
46
46
|
/**
|
|
47
47
|
* Whether the destination will receive events.
|
|
48
48
|
*
|
|
49
|
-
* If the destination is `enabled`, events sent to the application will be
|
|
49
|
+
* If the destination is `enabled`, events sent to the application will be
|
|
50
|
+
* dispatched to the destination in order.
|
|
50
51
|
*
|
|
51
|
-
* If the destination is `disabled`, events will not be dispatched until the
|
|
52
|
+
* If the destination is `disabled`, events will not be dispatched until the
|
|
53
|
+
* destination is reenabled.
|
|
52
54
|
*/
|
|
53
55
|
status?: DestinationStatusIn;
|
|
54
56
|
/** How many events will be batched in a request to the destination. */
|
|
@@ -56,14 +58,21 @@ interface _DestinationInFields {
|
|
|
56
58
|
/**
|
|
57
59
|
* How long to wait before a batch of events is sent, if the `batchSize` is not reached.
|
|
58
60
|
*
|
|
59
|
-
* For example, with a `batchSize` of 100 and `maxWaitSecs` of 10, a request is sent after
|
|
61
|
+
* For example, with a `batchSize` of 100 and `maxWaitSecs` of 10, a request is sent after
|
|
62
|
+
* 10 seconds or 100 events, whichever comes first.
|
|
60
63
|
*
|
|
61
64
|
* Note that an empty batch is never sent to the destination.
|
|
62
65
|
*/
|
|
63
66
|
maxWaitSecs?: number;
|
|
64
|
-
/**
|
|
67
|
+
/**
|
|
68
|
+
* A list of event types that filter which events are dispatched to the destination.
|
|
69
|
+
* An empty list (or null) will not filter out any events.
|
|
70
|
+
*/
|
|
65
71
|
eventTypes?: string[];
|
|
66
|
-
/**
|
|
72
|
+
/**
|
|
73
|
+
* A list of channels that filter which events are dispatched to the destination.
|
|
74
|
+
* An empty list (or null) will not filter out any events.
|
|
75
|
+
*/
|
|
67
76
|
channels?: string[];
|
|
68
77
|
metadata?: { [key: string]: string };
|
|
69
78
|
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// this file is @generated
|
|
2
|
+
|
|
3
|
+
export interface EndpointAttemptStats {
|
|
4
|
+
success: number;
|
|
5
|
+
fail: number;
|
|
6
|
+
canceled: number;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export const EndpointAttemptStatsSerializer = {
|
|
10
|
+
_fromJsonObject(object: any): EndpointAttemptStats {
|
|
11
|
+
return {
|
|
12
|
+
success: object["success"],
|
|
13
|
+
fail: object["fail"],
|
|
14
|
+
canceled: object["canceled"],
|
|
15
|
+
};
|
|
16
|
+
},
|
|
17
|
+
|
|
18
|
+
_toJsonObject(self: EndpointAttemptStats): any {
|
|
19
|
+
return {
|
|
20
|
+
success: self.success,
|
|
21
|
+
fail: self.fail,
|
|
22
|
+
canceled: self.canceled,
|
|
23
|
+
};
|
|
24
|
+
},
|
|
25
|
+
};
|
|
@@ -2,7 +2,10 @@
|
|
|
2
2
|
import { type MessageStatus, MessageStatusSerializer } from "./messageStatus";
|
|
3
3
|
import { type MessageStatusText, MessageStatusTextSerializer } from "./messageStatusText";
|
|
4
4
|
|
|
5
|
-
/**
|
|
5
|
+
/**
|
|
6
|
+
* A model containing information on a given message plus additional fields on the last attempt for
|
|
7
|
+
* that message.
|
|
8
|
+
*/
|
|
6
9
|
export interface EndpointMessageOut {
|
|
7
10
|
status: MessageStatus;
|
|
8
11
|
statusText: MessageStatusText;
|
|
@@ -11,7 +11,8 @@ export interface EndpointSecretRotateIn {
|
|
|
11
11
|
/**
|
|
12
12
|
* How long the old secret will be valid for, in seconds.
|
|
13
13
|
*
|
|
14
|
-
* Valid values are between 0 (immediate expiry) and 7 days.
|
|
14
|
+
* Valid values are between 0 (immediate expiry) and 7 days.
|
|
15
|
+
* The default is 24 hours.
|
|
15
16
|
*/
|
|
16
17
|
gracePeriodSeconds?: number | null;
|
|
17
18
|
}
|
|
@@ -28,7 +28,8 @@ export interface EventBridgeConfigIn {
|
|
|
28
28
|
/**
|
|
29
29
|
* The region of the EventBridge bus.
|
|
30
30
|
*
|
|
31
|
-
* Currently a required field, but marked as optional because we may infer
|
|
31
|
+
* Currently a required field, but marked as optional because we may infer
|
|
32
|
+
* it from other fields in the future.
|
|
32
33
|
*/
|
|
33
34
|
region?: string | null;
|
|
34
35
|
}
|
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Import a list of event types from webhooks defined in an OpenAPI spec.
|
|
5
5
|
*
|
|
6
|
-
* The OpenAPI spec can be specified as either `spec` given the spec as a JSON object, or as `specRaw`
|
|
6
|
+
* The OpenAPI spec can be specified as either `spec` given the spec as a JSON object, or as `specRaw`
|
|
7
|
+
* (a `string`) which will be parsed as YAML or JSON by the server.
|
|
8
|
+
* Sending neither or both is invalid, resulting in a `400` **Bad Request**.
|
|
7
9
|
*/
|
|
8
10
|
export interface EventTypeImportOpenApiIn {
|
|
9
11
|
/** If `true`, return the event types that would be modified without actually modifying them. */
|
package/src/models/index.ts
CHANGED
|
@@ -54,6 +54,7 @@ export { type DocusignConfigOut } from "./docusignConfigOut";
|
|
|
54
54
|
export { type EasypostConfig } from "./easypostConfig";
|
|
55
55
|
export { type EasypostConfigOut } from "./easypostConfigOut";
|
|
56
56
|
export { type EmptyResponse } from "./emptyResponse";
|
|
57
|
+
export { type EndpointAttemptStats } from "./endpointAttemptStats";
|
|
57
58
|
export { type EndpointHeadersIn } from "./endpointHeadersIn";
|
|
58
59
|
export { type EndpointHeadersOut } from "./endpointHeadersOut";
|
|
59
60
|
export { type EndpointHeadersPatchIn } from "./endpointHeadersPatchIn";
|
|
@@ -11,7 +11,8 @@ export interface IngestEndpointSecretIn {
|
|
|
11
11
|
/**
|
|
12
12
|
* How long the old secret will be valid for, in seconds.
|
|
13
13
|
*
|
|
14
|
-
* Valid values are between 0 (immediate expiry) and 7 days.
|
|
14
|
+
* Valid values are between 0 (immediate expiry) and 7 days.
|
|
15
|
+
* The default is 24 hours.
|
|
15
16
|
*/
|
|
16
17
|
gracePeriodSeconds?: number | null;
|
|
17
18
|
}
|
|
@@ -4,7 +4,8 @@ export interface IngestSourceConsumerPortalAccessIn {
|
|
|
4
4
|
/**
|
|
5
5
|
* How long the token will be valid for, in seconds.
|
|
6
6
|
*
|
|
7
|
-
* Valid values are between 1 hour and 7 days.
|
|
7
|
+
* Valid values are between 1 hour and 7 days.
|
|
8
|
+
* The default is 7 days.
|
|
8
9
|
*/
|
|
9
10
|
expiry?: number | null;
|
|
10
11
|
/** Whether the app portal should be in read-only mode. */
|
package/src/models/messageIn.ts
CHANGED
|
@@ -17,7 +17,8 @@ export interface MessageIn {
|
|
|
17
17
|
/**
|
|
18
18
|
* Optionally creates a new application alongside the message.
|
|
19
19
|
*
|
|
20
|
-
* If the application id or uid that is used in the path already exists,
|
|
20
|
+
* If the application id or uid that is used in the path already exists,
|
|
21
|
+
* this argument is ignored.
|
|
21
22
|
*/
|
|
22
23
|
application?: ApplicationIn | null;
|
|
23
24
|
/** List of free-form tags that can be filtered by when listing messages */
|
|
@@ -27,12 +28,19 @@ export interface MessageIn {
|
|
|
27
28
|
/**
|
|
28
29
|
* The date and time at which the message will be delivered.
|
|
29
30
|
*
|
|
30
|
-
* Note that this time is best-effort-only. Must be at least one minute
|
|
31
|
+
* Note that this time is best-effort-only. Must be at least one minute
|
|
32
|
+
* and no more than 24 hours in the future.
|
|
31
33
|
*/
|
|
32
34
|
deliverAt?: Date | null;
|
|
33
|
-
/**
|
|
35
|
+
/**
|
|
36
|
+
* Optional number of days to retain the message payload. Defaults to 90.
|
|
37
|
+
* Note that this is mutually exclusive with `payloadRetentionHours`.
|
|
38
|
+
*/
|
|
34
39
|
payloadRetentionPeriod?: number | null;
|
|
35
|
-
/**
|
|
40
|
+
/**
|
|
41
|
+
* Optional number of hours to retain the message payload. Note that
|
|
42
|
+
* this is mutually exclusive with `payloadRetentionPeriod`.
|
|
43
|
+
*/
|
|
36
44
|
payloadRetentionHours?: number | null;
|
|
37
45
|
}
|
|
38
46
|
|
|
@@ -11,7 +11,8 @@ export interface OperationalWebhookEndpointSecretIn {
|
|
|
11
11
|
/**
|
|
12
12
|
* How long the old secret will be valid for, in seconds.
|
|
13
13
|
*
|
|
14
|
-
* Valid values are between 0 (immediate expiry) and 7 days.
|
|
14
|
+
* Valid values are between 0 (immediate expiry) and 7 days.
|
|
15
|
+
* The default is 24 hours.
|
|
15
16
|
*/
|
|
16
17
|
gracePeriodSeconds?: number | null;
|
|
17
18
|
}
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
export interface PostgresConfigIn {
|
|
4
4
|
/**
|
|
5
|
-
* PostgreSQL connection URL, e.g.
|
|
5
|
+
* PostgreSQL connection URL, e.g.
|
|
6
|
+
* `postgres://user@host:5432/dbname?sslmode=require`.
|
|
6
7
|
*
|
|
7
8
|
* Do NOT embed a password here; use the `password` field instead.
|
|
8
9
|
*/
|
|
@@ -12,13 +13,16 @@ export interface PostgresConfigIn {
|
|
|
12
13
|
/**
|
|
13
14
|
* Table to insert into. May be schema-qualified (e.g. `public.events`).
|
|
14
15
|
*
|
|
15
|
-
* Quote characters are not supported. Each dot-separated segment is automatically
|
|
16
|
+
* Quote characters are not supported. Each dot-separated segment is automatically
|
|
17
|
+
* double-quoted when the query is built, so `public.events` becomes `"public"."events"`.
|
|
16
18
|
*/
|
|
17
19
|
tableName: string;
|
|
18
20
|
/**
|
|
19
21
|
* PEM-encoded CA certificate used to verify the Postgres server's TLS certificate.
|
|
20
22
|
*
|
|
21
|
-
* Supply this to trust a private or self-signed CA when connecting with
|
|
23
|
+
* Supply this to trust a private or self-signed CA when connecting with
|
|
24
|
+
* `sslmode=verify-ca` or `sslmode=verify-full`. Without it, only the built-in
|
|
25
|
+
* public roots are trusted.
|
|
22
26
|
*/
|
|
23
27
|
sslRootCert?: string | null;
|
|
24
28
|
}
|
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
// this file is @generated
|
|
2
2
|
|
|
3
3
|
export interface RabbitMqConfigOut {
|
|
4
|
+
uri: string;
|
|
4
5
|
routingKey: string;
|
|
5
6
|
}
|
|
6
7
|
|
|
7
8
|
export const RabbitMqConfigOutSerializer = {
|
|
8
9
|
_fromJsonObject(object: any): RabbitMqConfigOut {
|
|
9
10
|
return {
|
|
11
|
+
uri: object["uri"],
|
|
10
12
|
routingKey: object["routingKey"],
|
|
11
13
|
};
|
|
12
14
|
},
|
|
13
15
|
|
|
14
16
|
_toJsonObject(self: RabbitMqConfigOut): any {
|
|
15
17
|
return {
|
|
18
|
+
uri: self.uri,
|
|
16
19
|
routingKey: self.routingKey,
|
|
17
20
|
};
|
|
18
21
|
},
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Configuration parameters for defining a Redshift sink.
|
|
5
5
|
*
|
|
6
|
-
* For provisioned clusters, set `cluster_identifier` and `db_user`.
|
|
6
|
+
* For provisioned clusters, set `cluster_identifier` and `db_user`.
|
|
7
|
+
* For Redshift Serverless, set `workgroup_name`.
|
|
7
8
|
*/
|
|
8
9
|
export interface RedshiftConfigIn {
|
|
9
10
|
/**
|
|
@@ -29,7 +30,8 @@ export interface RedshiftConfigIn {
|
|
|
29
30
|
/**
|
|
30
31
|
* The region of the Redshift DB.
|
|
31
32
|
*
|
|
32
|
-
* Currently a required field, but marked as optional because we may infer
|
|
33
|
+
* Currently a required field, but marked as optional because we may infer
|
|
34
|
+
* it from other fields in the future.
|
|
33
35
|
*/
|
|
34
36
|
region?: string | null;
|
|
35
37
|
/** Required for provisioned clusters. */
|
|
@@ -6,7 +6,8 @@ export interface RotatePollerTokenIn {
|
|
|
6
6
|
/**
|
|
7
7
|
* Updates the previous token's expiration, in seconds.
|
|
8
8
|
*
|
|
9
|
-
* If set to 0, the old token will immediately be revoked.
|
|
9
|
+
* If set to 0, the old token will immediately be revoked.
|
|
10
|
+
* Must be between 0 and 86,400 seconds (1 day).
|
|
10
11
|
*
|
|
11
12
|
* Defaults to 300 seconds (5 minutes).
|
|
12
13
|
*/
|
package/src/models/s3ConfigIn.ts
CHANGED
|
@@ -17,7 +17,8 @@ export interface S3ConfigIn {
|
|
|
17
17
|
/**
|
|
18
18
|
* The region of the S3 bucket
|
|
19
19
|
*
|
|
20
|
-
* Currently a required field, but marked as optional because we may infer
|
|
20
|
+
* Currently a required field, but marked as optional because we may infer
|
|
21
|
+
* it from other fields in the future.
|
|
21
22
|
*/
|
|
22
23
|
region?: string | null;
|
|
23
24
|
endpointUrl?: string | null;
|
|
@@ -3,14 +3,19 @@
|
|
|
3
3
|
/** Configuration parameters for defining a Snowflake sink. */
|
|
4
4
|
export interface SnowflakeConfigIn {
|
|
5
5
|
/**
|
|
6
|
-
* PEM-encoded private key used for signing token-based requests
|
|
6
|
+
* PEM-encoded private key used for signing token-based requests
|
|
7
|
+
* to the Snowflake API.
|
|
7
8
|
*
|
|
8
9
|
* Beginning/end delimiters are not required.
|
|
9
10
|
*
|
|
10
|
-
* Currently a required field, but marked as optional because we may add
|
|
11
|
+
* Currently a required field, but marked as optional because we may add
|
|
12
|
+
* different authentication in the future.
|
|
11
13
|
*/
|
|
12
14
|
privateKey?: string | null;
|
|
13
|
-
/**
|
|
15
|
+
/**
|
|
16
|
+
* Snowflake account identifier, which includes both the organization and account
|
|
17
|
+
* IDs separated by a hyphen.
|
|
18
|
+
*/
|
|
14
19
|
accountIdentifier: string;
|
|
15
20
|
/** The Snowflake user id. */
|
|
16
21
|
userId: string;
|
|
@@ -6,7 +6,8 @@ export interface SnsConfigIn {
|
|
|
6
6
|
/**
|
|
7
7
|
* The region of the SNS instance.
|
|
8
8
|
*
|
|
9
|
-
* Currently a required field, but marked as optional because we may infer
|
|
9
|
+
* Currently a required field, but marked as optional because we may infer
|
|
10
|
+
* it from other fields in the future.
|
|
10
11
|
*/
|
|
11
12
|
region?: string | null;
|
|
12
13
|
/**
|
|
@@ -6,7 +6,8 @@ export interface SqsConfigIn {
|
|
|
6
6
|
/**
|
|
7
7
|
* The region of the SQS queue.
|
|
8
8
|
*
|
|
9
|
-
* Currently a required field, but marked as optional because we may infer
|
|
9
|
+
* Currently a required field, but marked as optional because we may infer
|
|
10
|
+
* it from other fields in the future.
|
|
10
11
|
*/
|
|
11
12
|
region?: string | null;
|
|
12
13
|
/**
|
|
@@ -6,13 +6,15 @@ export interface StreamPortalAccessIn {
|
|
|
6
6
|
/**
|
|
7
7
|
* How long the token will be valid for, in seconds.
|
|
8
8
|
*
|
|
9
|
-
* Valid values are between 1 hour and 7 days.
|
|
9
|
+
* Valid values are between 1 hour and 7 days.
|
|
10
|
+
* The default is 7 days.
|
|
10
11
|
*/
|
|
11
12
|
expiry?: number | null;
|
|
12
13
|
/**
|
|
13
14
|
* An optional session ID to attach to the token.
|
|
14
15
|
*
|
|
15
|
-
* When expiring tokens with "Expire All", you can include the session ID
|
|
16
|
+
* When expiring tokens with "Expire All", you can include the session ID
|
|
17
|
+
* to only expire tokens that were created with that session ID.
|
|
16
18
|
*/
|
|
17
19
|
sessionId?: string | null;
|
|
18
20
|
}
|
|
@@ -40,7 +40,8 @@ interface _StreamSinkInFields {
|
|
|
40
40
|
/**
|
|
41
41
|
* Whether the sink will receive events.
|
|
42
42
|
*
|
|
43
|
-
* If the sink is `enabled`, any events posted to the stream will be
|
|
43
|
+
* If the sink is `enabled`, any events posted to the stream will be
|
|
44
|
+
* dispatched to the Sink in the same order that events were posted to the stream.
|
|
44
45
|
*
|
|
45
46
|
* If the sink is `disabled`, events will not be dispatched to the sink until the sink is reenabled.
|
|
46
47
|
*/
|
|
@@ -55,7 +56,10 @@ interface _StreamSinkInFields {
|
|
|
55
56
|
* Note that we will never send an empty batch of events to the Sink.
|
|
56
57
|
*/
|
|
57
58
|
maxWaitSecs?: number;
|
|
58
|
-
/**
|
|
59
|
+
/**
|
|
60
|
+
* A list of event types that filter which events are dispatched to the Sink. An empty list (or null) will not filter out
|
|
61
|
+
* any events.
|
|
62
|
+
*/
|
|
59
63
|
eventTypes?: string[];
|
|
60
64
|
channels?: string[];
|
|
61
65
|
metadata?: { [key: string]: string };
|