samva 0.33.0 → 0.34.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.
@@ -2927,7 +2927,7 @@ export declare class Webhooks {
2927
2927
  /**
2928
2928
  * List webhook delivery logs
2929
2929
  *
2930
- * Returns a webhook endpoint's deliveries, newest first, each naming the event type and time it was made for, with its nested attempt diagnostics. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page.
2930
+ * Returns a webhook endpoint's deliveries, newest first, each naming the event type and time it was made for, with its nested attempt diagnostics. A replay of a terminal delivery records a skipped replay receipt without another HTTP request or a change to its automatic retry lifecycle. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page.
2931
2931
  */
2932
2932
  static getLogs<ThrowOnError extends boolean = false>(parameters: {
2933
2933
  id: WebhookEndpointId;
@@ -8951,7 +8951,7 @@ var Webhooks = class {
8951
8951
  /**
8952
8952
  * List webhook delivery logs
8953
8953
  *
8954
- * Returns a webhook endpoint's deliveries, newest first, each naming the event type and time it was made for, with its nested attempt diagnostics. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page.
8954
+ * Returns a webhook endpoint's deliveries, newest first, each naming the event type and time it was made for, with its nested attempt diagnostics. A replay of a terminal delivery records a skipped replay receipt without another HTTP request or a change to its automatic retry lifecycle. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page.
8955
8955
  */
8956
8956
  static getLogs(parameters, options) {
8957
8957
  const params = buildClientParams([parameters], [{ args: [
@@ -1401,9 +1401,10 @@ export type WebhookDeliveryPage = {
1401
1401
  attempts: Array<{
1402
1402
  id: WebhookAttemptId;
1403
1403
  deliveryId: WebhookDeliveryId;
1404
- kind: "automatic" | "manual";
1404
+ kind: "automatic" | "manual" | "replay";
1405
+ queueMessageId: string | null;
1405
1406
  attemptNumber: number;
1406
- classification: "success" | "http-error" | "network-error" | "timeout" | "cancelled";
1407
+ classification: "success" | "http-error" | "network-error" | "timeout" | "cancelled" | "skipped";
1407
1408
  attemptedAt: string;
1408
1409
  responseStatus: number | null;
1409
1410
  responseHeaders: {
@@ -130,9 +130,10 @@ export type WebhookDeliveryPage = {
130
130
  readonly attempts: ReadonlyArray<{
131
131
  readonly id: WebhookAttemptId;
132
132
  readonly deliveryId: WebhookDeliveryId;
133
- readonly kind: "automatic" | "manual";
133
+ readonly kind: "automatic" | "manual" | "replay";
134
+ readonly queueMessageId: string | null;
134
135
  readonly attemptNumber: number;
135
- readonly classification: "success" | "http-error" | "network-error" | "timeout" | "cancelled";
136
+ readonly classification: "success" | "http-error" | "network-error" | "timeout" | "cancelled" | "skipped";
136
137
  readonly attemptedAt: string;
137
138
  readonly responseStatus: number | null;
138
139
  readonly responseHeaders: {
@@ -162,9 +163,10 @@ export declare const WebhookDeliveryPage: Schema.Struct<{
162
163
  readonly attempts: Schema.$Array<Schema.Struct<{
163
164
  readonly id: Schema.brand<Schema.String, "WebhookAttemptId">;
164
165
  readonly deliveryId: Schema.brand<Schema.String, "WebhookDeliveryId">;
165
- readonly kind: Schema.Union<readonly [Schema.Literal<"automatic">, Schema.Literal<"manual">]>;
166
+ readonly kind: Schema.Union<readonly [Schema.Literal<"automatic">, Schema.Literal<"manual">, Schema.Literal<"replay">]>;
167
+ readonly queueMessageId: Schema.Union<readonly [Schema.String, Schema.Null]>;
166
168
  readonly attemptNumber: Schema.Finite;
167
- readonly classification: Schema.Union<readonly [Schema.Literal<"success">, Schema.Literal<"http-error">, Schema.Literal<"network-error">, Schema.Literal<"timeout">, Schema.Literal<"cancelled">]>;
169
+ readonly classification: Schema.Union<readonly [Schema.Literal<"success">, Schema.Literal<"http-error">, Schema.Literal<"network-error">, Schema.Literal<"timeout">, Schema.Literal<"cancelled">, Schema.Literal<"skipped">]>;
168
170
  readonly attemptedAt: Schema.String;
169
171
  readonly responseStatus: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
170
172
  readonly responseHeaders: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>;
@@ -518,9 +520,10 @@ export declare const WebhooksGetLogs200: Schema.Struct<{
518
520
  readonly attempts: Schema.$Array<Schema.Struct<{
519
521
  readonly id: Schema.brand<Schema.String, "WebhookAttemptId">;
520
522
  readonly deliveryId: Schema.brand<Schema.String, "WebhookDeliveryId">;
521
- readonly kind: Schema.Union<readonly [Schema.Literal<"automatic">, Schema.Literal<"manual">]>;
523
+ readonly kind: Schema.Union<readonly [Schema.Literal<"automatic">, Schema.Literal<"manual">, Schema.Literal<"replay">]>;
524
+ readonly queueMessageId: Schema.Union<readonly [Schema.String, Schema.Null]>;
522
525
  readonly attemptNumber: Schema.Finite;
523
- readonly classification: Schema.Union<readonly [Schema.Literal<"success">, Schema.Literal<"http-error">, Schema.Literal<"network-error">, Schema.Literal<"timeout">, Schema.Literal<"cancelled">]>;
526
+ readonly classification: Schema.Union<readonly [Schema.Literal<"success">, Schema.Literal<"http-error">, Schema.Literal<"network-error">, Schema.Literal<"timeout">, Schema.Literal<"cancelled">, Schema.Literal<"skipped">]>;
524
527
  readonly attemptedAt: Schema.String;
525
528
  readonly responseStatus: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
526
529
  readonly responseHeaders: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>;
@@ -948,9 +951,10 @@ declare const WebhooksGroup_base: HttpApiGroup.HttpApiGroup<"Webhooks", HttpApiE
948
951
  readonly attempts: Schema.$Array<Schema.Struct<{
949
952
  readonly id: Schema.brand<Schema.String, "WebhookAttemptId">;
950
953
  readonly deliveryId: Schema.brand<Schema.String, "WebhookDeliveryId">;
951
- readonly kind: Schema.Union<readonly [Schema.Literal<"automatic">, Schema.Literal<"manual">]>;
954
+ readonly kind: Schema.Union<readonly [Schema.Literal<"automatic">, Schema.Literal<"manual">, Schema.Literal<"replay">]>;
955
+ readonly queueMessageId: Schema.Union<readonly [Schema.String, Schema.Null]>;
952
956
  readonly attemptNumber: Schema.Finite;
953
- readonly classification: Schema.Union<readonly [Schema.Literal<"success">, Schema.Literal<"http-error">, Schema.Literal<"network-error">, Schema.Literal<"timeout">, Schema.Literal<"cancelled">]>;
957
+ readonly classification: Schema.Union<readonly [Schema.Literal<"success">, Schema.Literal<"http-error">, Schema.Literal<"network-error">, Schema.Literal<"timeout">, Schema.Literal<"cancelled">, Schema.Literal<"skipped">]>;
954
958
  readonly attemptedAt: Schema.String;
955
959
  readonly responseStatus: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
956
960
  readonly responseHeaders: Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>;
@@ -166,14 +166,20 @@ const WebhookDeliveryPage = /* @__PURE__ */ (() => Schema.Struct({
166
166
  attempts: Schema.Array(Schema.Struct({
167
167
  id: WebhookAttemptId,
168
168
  deliveryId: WebhookDeliveryId,
169
- kind: Schema.Union([Schema.Literal("automatic"), Schema.Literal("manual")]),
169
+ kind: Schema.Union([
170
+ Schema.Literal("automatic"),
171
+ Schema.Literal("manual"),
172
+ Schema.Literal("replay")
173
+ ]),
174
+ queueMessageId: Schema.Union([Schema.String, Schema.Null]),
170
175
  attemptNumber: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })).check(Schema.isGreaterThan(0).annotate({ expected: "a value greater than 0" })),
171
176
  classification: Schema.Union([
172
177
  Schema.Literal("success"),
173
178
  Schema.Literal("http-error"),
174
179
  Schema.Literal("network-error"),
175
180
  Schema.Literal("timeout"),
176
- Schema.Literal("cancelled")
181
+ Schema.Literal("cancelled"),
182
+ Schema.Literal("skipped")
177
183
  ]),
178
184
  attemptedAt: Schema.String,
179
185
  responseStatus: Schema.Union([Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(-9007199254740991).annotate({ expected: "a value greater than or equal to -9007199254740991" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })), Schema.Null]),
@@ -503,7 +509,7 @@ var WebhooksGroup = class extends HttpApiGroup.make("Webhooks").add(HttpApiEndpo
503
509
  WebhooksGetLogs500,
504
510
  WebhooksGetLogs504.pipe(HttpApiSchema.status(504))
505
511
  ]
506
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "webhooks.getLogs").annotate(OpenApi.Summary, "List webhook delivery logs").annotate(OpenApi.Description, "Returns a webhook endpoint's deliveries, newest first, each naming the event type and time it was made for, with its nested attempt diagnostics. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page."), HttpApiEndpoint.post("webhooksRegenerateSecret", "/v1/webhooks/:id/rotate-secret", {
512
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "webhooks.getLogs").annotate(OpenApi.Summary, "List webhook delivery logs").annotate(OpenApi.Description, "Returns a webhook endpoint's deliveries, newest first, each naming the event type and time it was made for, with its nested attempt diagnostics. A replay of a terminal delivery records a skipped replay receipt without another HTTP request or a change to its automatic retry lifecycle. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page."), HttpApiEndpoint.post("webhooksRegenerateSecret", "/v1/webhooks/:id/rotate-secret", {
507
513
  params: WebhooksRegenerateSecretPathParams,
508
514
  success: WebhooksRegenerateSecret200,
509
515
  error: [
@@ -152,9 +152,10 @@ export declare const getLogs: ((input: {
152
152
  readonly attempts: readonly {
153
153
  readonly id: string & import("effect/Brand").Brand<"WebhookAttemptId">;
154
154
  readonly deliveryId: string & import("effect/Brand").Brand<"WebhookDeliveryId">;
155
- readonly kind: "automatic" | "manual";
155
+ readonly kind: "automatic" | "manual" | "replay";
156
+ readonly queueMessageId: string | null;
156
157
  readonly attemptNumber: number;
157
- readonly classification: "cancelled" | "http-error" | "network-error" | "success" | "timeout";
158
+ readonly classification: "cancelled" | "http-error" | "network-error" | "skipped" | "success" | "timeout";
158
159
  readonly attemptedAt: string;
159
160
  readonly responseStatus: number | null;
160
161
  readonly responseHeaders: {
@@ -187,9 +188,10 @@ export declare const getLogs: ((input: {
187
188
  readonly attempts: readonly {
188
189
  readonly id: string & import("effect/Brand").Brand<"WebhookAttemptId">;
189
190
  readonly deliveryId: string & import("effect/Brand").Brand<"WebhookDeliveryId">;
190
- readonly kind: "automatic" | "manual";
191
+ readonly kind: "automatic" | "manual" | "replay";
192
+ readonly queueMessageId: string | null;
191
193
  readonly attemptNumber: number;
192
- readonly classification: "cancelled" | "http-error" | "network-error" | "success" | "timeout";
194
+ readonly classification: "cancelled" | "http-error" | "network-error" | "skipped" | "success" | "timeout";
193
195
  readonly attemptedAt: string;
194
196
  readonly responseStatus: number | null;
195
197
  readonly responseHeaders: {
package/dist/package.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "0.33.0";
2
+ var version = "0.34.0";
3
3
  export { version };
4
4
 
5
5
  //# sourceMappingURL=package.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "samva",
3
- "version": "0.33.0",
3
+ "version": "0.34.0",
4
4
  "description": "TypeScript SDK for the Samva email API",
5
5
  "keywords": [
6
6
  "api-client",
@@ -232,7 +232,7 @@
232
232
  "typecheck": "effect-tsgo tsrs --noEmit && effect-tsgo tsrs --noEmit -p codegen/tsconfig.json && effect-tsgo tsrs --noEmit -p tests/tsconfig.json && effect-tsgo tsrs --noEmit --project tests/parity/tsconfig.json"
233
233
  },
234
234
  "dependencies": {
235
- "@samva/webhooks": "0.33.0"
235
+ "@samva/webhooks": "0.34.0"
236
236
  },
237
237
  "devDependencies": {
238
238
  "@effect/openapi-generator": "4.0.6",