@strimz/shared-types 0.13.0 → 0.13.1
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/README.md +10 -8
- package/dist/analytics.d.cts +136 -136
- package/dist/analytics.d.ts +136 -136
- package/dist/api-keys.d.cts +20 -20
- package/dist/api-keys.d.ts +20 -20
- package/dist/compliance.d.cts +4 -4
- package/dist/compliance.d.ts +4 -4
- package/dist/customers.d.cts +6 -6
- package/dist/customers.d.ts +6 -6
- package/dist/events.d.cts +1435 -1435
- package/dist/events.d.ts +1435 -1435
- package/dist/index.d.cts +14 -14
- package/dist/index.d.ts +14 -14
- package/dist/invoices.d.cts +10 -10
- package/dist/invoices.d.ts +10 -10
- package/dist/merchants.d.cts +20 -20
- package/dist/merchants.d.ts +20 -20
- package/dist/payment-sessions.d.cts +16 -16
- package/dist/payment-sessions.d.ts +16 -16
- package/dist/refunds.d.cts +36 -36
- package/dist/refunds.d.ts +36 -36
- package/dist/storefronts.d.cts +27 -27
- package/dist/storefronts.d.ts +27 -27
- package/dist/subscriptions.d.cts +30 -30
- package/dist/subscriptions.d.ts +30 -30
- package/dist/transactions.d.cts +12 -12
- package/dist/transactions.d.ts +12 -12
- package/dist/webhooks.d.cts +22 -22
- package/dist/webhooks.d.ts +22 -22
- package/package.json +2 -2
package/dist/transactions.d.ts
CHANGED
|
@@ -34,19 +34,19 @@ declare const transactionSchema: z.ZodObject<{
|
|
|
34
34
|
createdAt: z.ZodString;
|
|
35
35
|
}, "strip", z.ZodTypeAny, {
|
|
36
36
|
status: "confirmed" | "failed" | "pending";
|
|
37
|
-
amount: string;
|
|
38
|
-
currency: "USDC" | "EURC";
|
|
39
|
-
customerId: string | null;
|
|
40
|
-
merchantId: string;
|
|
41
37
|
id: string;
|
|
42
|
-
|
|
38
|
+
merchantId: string;
|
|
39
|
+
kind: "refund" | "one_shot" | "subscription_charge" | "invoice_payment" | "storefront_purchase";
|
|
43
40
|
createdAt: string;
|
|
41
|
+
currency: "USDC" | "EURC";
|
|
42
|
+
sessionId: string | null;
|
|
43
|
+
customerId: string | null;
|
|
44
|
+
amount: string;
|
|
44
45
|
feeAmount: string;
|
|
45
46
|
netAmount: string;
|
|
46
47
|
onchainTxHash: string;
|
|
47
48
|
payerAddress: string;
|
|
48
49
|
subscriptionId: string | null;
|
|
49
|
-
kind: "refund" | "one_shot" | "subscription_charge" | "invoice_payment" | "storefront_purchase";
|
|
50
50
|
subscriptionChargeId: string | null;
|
|
51
51
|
refundId: string | null;
|
|
52
52
|
merchantAddress: string;
|
|
@@ -54,19 +54,19 @@ declare const transactionSchema: z.ZodObject<{
|
|
|
54
54
|
blockTimestamp: string;
|
|
55
55
|
}, {
|
|
56
56
|
status: "confirmed" | "failed" | "pending";
|
|
57
|
-
amount: string;
|
|
58
|
-
currency: "USDC" | "EURC";
|
|
59
|
-
customerId: string | null;
|
|
60
|
-
merchantId: string;
|
|
61
57
|
id: string;
|
|
62
|
-
|
|
58
|
+
merchantId: string;
|
|
59
|
+
kind: "refund" | "one_shot" | "subscription_charge" | "invoice_payment" | "storefront_purchase";
|
|
63
60
|
createdAt: string;
|
|
61
|
+
currency: "USDC" | "EURC";
|
|
62
|
+
sessionId: string | null;
|
|
63
|
+
customerId: string | null;
|
|
64
|
+
amount: string;
|
|
64
65
|
feeAmount: string;
|
|
65
66
|
netAmount: string;
|
|
66
67
|
onchainTxHash: string;
|
|
67
68
|
payerAddress: string;
|
|
68
69
|
subscriptionId: string | null;
|
|
69
|
-
kind: "refund" | "one_shot" | "subscription_charge" | "invoice_payment" | "storefront_purchase";
|
|
70
70
|
subscriptionChargeId: string | null;
|
|
71
71
|
refundId: string | null;
|
|
72
72
|
merchantAddress: string;
|
package/dist/webhooks.d.cts
CHANGED
|
@@ -30,11 +30,11 @@ declare const webhookEndpointSchema: z.ZodObject<{
|
|
|
30
30
|
updatedAt: z.ZodString;
|
|
31
31
|
}, "strip", z.ZodTypeAny, {
|
|
32
32
|
status: "active" | "disabled";
|
|
33
|
-
mode: "test" | "live";
|
|
34
|
-
merchantId: string;
|
|
35
|
-
description: string | null;
|
|
36
33
|
id: string;
|
|
34
|
+
merchantId: string;
|
|
35
|
+
mode: "test" | "live";
|
|
37
36
|
createdAt: string;
|
|
37
|
+
description: string | null;
|
|
38
38
|
updatedAt: string;
|
|
39
39
|
url: string;
|
|
40
40
|
events: ["payment.created" | "payment.completed" | "payment.failed" | "subscription.created" | "subscription.charged" | "subscription.charge_failed" | "subscription.recovery_attempt" | "subscription.recovery_outcome" | "subscription.cancelled" | "subscription.lapsed" | "refund.created" | "refund.completed" | "refund.failed" | "invoice.created" | "invoice.paid" | "invoice.overdue" | "agent.action_executed" | "agent.job_proposed" | "agent.job_completed" | "agent.job_disputed" | "compliance.wallet_flagged" | "compliance.wallet_blocked", ...("payment.created" | "payment.completed" | "payment.failed" | "subscription.created" | "subscription.charged" | "subscription.charge_failed" | "subscription.recovery_attempt" | "subscription.recovery_outcome" | "subscription.cancelled" | "subscription.lapsed" | "refund.created" | "refund.completed" | "refund.failed" | "invoice.created" | "invoice.paid" | "invoice.overdue" | "agent.action_executed" | "agent.job_proposed" | "agent.job_completed" | "agent.job_disputed" | "compliance.wallet_flagged" | "compliance.wallet_blocked")[]];
|
|
@@ -42,11 +42,11 @@ declare const webhookEndpointSchema: z.ZodObject<{
|
|
|
42
42
|
lastDeliveredAt: string | null;
|
|
43
43
|
}, {
|
|
44
44
|
status: "active" | "disabled";
|
|
45
|
-
mode: "test" | "live";
|
|
46
|
-
merchantId: string;
|
|
47
|
-
description: string | null;
|
|
48
45
|
id: string;
|
|
46
|
+
merchantId: string;
|
|
47
|
+
mode: "test" | "live";
|
|
49
48
|
createdAt: string;
|
|
49
|
+
description: string | null;
|
|
50
50
|
updatedAt: string;
|
|
51
51
|
url: string;
|
|
52
52
|
events: ["payment.created" | "payment.completed" | "payment.failed" | "subscription.created" | "subscription.charged" | "subscription.charge_failed" | "subscription.recovery_attempt" | "subscription.recovery_outcome" | "subscription.cancelled" | "subscription.lapsed" | "refund.created" | "refund.completed" | "refund.failed" | "invoice.created" | "invoice.paid" | "invoice.overdue" | "agent.action_executed" | "agent.job_proposed" | "agent.job_completed" | "agent.job_disputed" | "compliance.wallet_flagged" | "compliance.wallet_blocked", ...("payment.created" | "payment.completed" | "payment.failed" | "subscription.created" | "subscription.charged" | "subscription.charge_failed" | "subscription.recovery_attempt" | "subscription.recovery_outcome" | "subscription.cancelled" | "subscription.lapsed" | "refund.created" | "refund.completed" | "refund.failed" | "invoice.created" | "invoice.paid" | "invoice.overdue" | "agent.action_executed" | "agent.job_proposed" | "agent.job_completed" | "agent.job_disputed" | "compliance.wallet_flagged" | "compliance.wallet_blocked")[]];
|
|
@@ -87,11 +87,11 @@ declare const createWebhookEndpointOutputSchema: z.ZodObject<{
|
|
|
87
87
|
updatedAt: z.ZodString;
|
|
88
88
|
}, "strip", z.ZodTypeAny, {
|
|
89
89
|
status: "active" | "disabled";
|
|
90
|
-
mode: "test" | "live";
|
|
91
|
-
merchantId: string;
|
|
92
|
-
description: string | null;
|
|
93
90
|
id: string;
|
|
91
|
+
merchantId: string;
|
|
92
|
+
mode: "test" | "live";
|
|
94
93
|
createdAt: string;
|
|
94
|
+
description: string | null;
|
|
95
95
|
updatedAt: string;
|
|
96
96
|
url: string;
|
|
97
97
|
events: ["payment.created" | "payment.completed" | "payment.failed" | "subscription.created" | "subscription.charged" | "subscription.charge_failed" | "subscription.recovery_attempt" | "subscription.recovery_outcome" | "subscription.cancelled" | "subscription.lapsed" | "refund.created" | "refund.completed" | "refund.failed" | "invoice.created" | "invoice.paid" | "invoice.overdue" | "agent.action_executed" | "agent.job_proposed" | "agent.job_completed" | "agent.job_disputed" | "compliance.wallet_flagged" | "compliance.wallet_blocked", ...("payment.created" | "payment.completed" | "payment.failed" | "subscription.created" | "subscription.charged" | "subscription.charge_failed" | "subscription.recovery_attempt" | "subscription.recovery_outcome" | "subscription.cancelled" | "subscription.lapsed" | "refund.created" | "refund.completed" | "refund.failed" | "invoice.created" | "invoice.paid" | "invoice.overdue" | "agent.action_executed" | "agent.job_proposed" | "agent.job_completed" | "agent.job_disputed" | "compliance.wallet_flagged" | "compliance.wallet_blocked")[]];
|
|
@@ -99,11 +99,11 @@ declare const createWebhookEndpointOutputSchema: z.ZodObject<{
|
|
|
99
99
|
lastDeliveredAt: string | null;
|
|
100
100
|
}, {
|
|
101
101
|
status: "active" | "disabled";
|
|
102
|
-
mode: "test" | "live";
|
|
103
|
-
merchantId: string;
|
|
104
|
-
description: string | null;
|
|
105
102
|
id: string;
|
|
103
|
+
merchantId: string;
|
|
104
|
+
mode: "test" | "live";
|
|
106
105
|
createdAt: string;
|
|
106
|
+
description: string | null;
|
|
107
107
|
updatedAt: string;
|
|
108
108
|
url: string;
|
|
109
109
|
events: ["payment.created" | "payment.completed" | "payment.failed" | "subscription.created" | "subscription.charged" | "subscription.charge_failed" | "subscription.recovery_attempt" | "subscription.recovery_outcome" | "subscription.cancelled" | "subscription.lapsed" | "refund.created" | "refund.completed" | "refund.failed" | "invoice.created" | "invoice.paid" | "invoice.overdue" | "agent.action_executed" | "agent.job_proposed" | "agent.job_completed" | "agent.job_disputed" | "compliance.wallet_flagged" | "compliance.wallet_blocked", ...("payment.created" | "payment.completed" | "payment.failed" | "subscription.created" | "subscription.charged" | "subscription.charge_failed" | "subscription.recovery_attempt" | "subscription.recovery_outcome" | "subscription.cancelled" | "subscription.lapsed" | "refund.created" | "refund.completed" | "refund.failed" | "invoice.created" | "invoice.paid" | "invoice.overdue" | "agent.action_executed" | "agent.job_proposed" | "agent.job_completed" | "agent.job_disputed" | "compliance.wallet_flagged" | "compliance.wallet_blocked")[]];
|
|
@@ -115,11 +115,11 @@ declare const createWebhookEndpointOutputSchema: z.ZodObject<{
|
|
|
115
115
|
}, "strip", z.ZodTypeAny, {
|
|
116
116
|
endpoint: {
|
|
117
117
|
status: "active" | "disabled";
|
|
118
|
-
mode: "test" | "live";
|
|
119
|
-
merchantId: string;
|
|
120
|
-
description: string | null;
|
|
121
118
|
id: string;
|
|
119
|
+
merchantId: string;
|
|
120
|
+
mode: "test" | "live";
|
|
122
121
|
createdAt: string;
|
|
122
|
+
description: string | null;
|
|
123
123
|
updatedAt: string;
|
|
124
124
|
url: string;
|
|
125
125
|
events: ["payment.created" | "payment.completed" | "payment.failed" | "subscription.created" | "subscription.charged" | "subscription.charge_failed" | "subscription.recovery_attempt" | "subscription.recovery_outcome" | "subscription.cancelled" | "subscription.lapsed" | "refund.created" | "refund.completed" | "refund.failed" | "invoice.created" | "invoice.paid" | "invoice.overdue" | "agent.action_executed" | "agent.job_proposed" | "agent.job_completed" | "agent.job_disputed" | "compliance.wallet_flagged" | "compliance.wallet_blocked", ...("payment.created" | "payment.completed" | "payment.failed" | "subscription.created" | "subscription.charged" | "subscription.charge_failed" | "subscription.recovery_attempt" | "subscription.recovery_outcome" | "subscription.cancelled" | "subscription.lapsed" | "refund.created" | "refund.completed" | "refund.failed" | "invoice.created" | "invoice.paid" | "invoice.overdue" | "agent.action_executed" | "agent.job_proposed" | "agent.job_completed" | "agent.job_disputed" | "compliance.wallet_flagged" | "compliance.wallet_blocked")[]];
|
|
@@ -130,11 +130,11 @@ declare const createWebhookEndpointOutputSchema: z.ZodObject<{
|
|
|
130
130
|
}, {
|
|
131
131
|
endpoint: {
|
|
132
132
|
status: "active" | "disabled";
|
|
133
|
-
mode: "test" | "live";
|
|
134
|
-
merchantId: string;
|
|
135
|
-
description: string | null;
|
|
136
133
|
id: string;
|
|
134
|
+
merchantId: string;
|
|
135
|
+
mode: "test" | "live";
|
|
137
136
|
createdAt: string;
|
|
137
|
+
description: string | null;
|
|
138
138
|
updatedAt: string;
|
|
139
139
|
url: string;
|
|
140
140
|
events: ["payment.created" | "payment.completed" | "payment.failed" | "subscription.created" | "subscription.charged" | "subscription.charge_failed" | "subscription.recovery_attempt" | "subscription.recovery_outcome" | "subscription.cancelled" | "subscription.lapsed" | "refund.created" | "refund.completed" | "refund.failed" | "invoice.created" | "invoice.paid" | "invoice.overdue" | "agent.action_executed" | "agent.job_proposed" | "agent.job_completed" | "agent.job_disputed" | "compliance.wallet_flagged" | "compliance.wallet_blocked", ...("payment.created" | "payment.completed" | "payment.failed" | "subscription.created" | "subscription.charged" | "subscription.charge_failed" | "subscription.recovery_attempt" | "subscription.recovery_outcome" | "subscription.cancelled" | "subscription.lapsed" | "refund.created" | "refund.completed" | "refund.failed" | "invoice.created" | "invoice.paid" | "invoice.overdue" | "agent.action_executed" | "agent.job_proposed" | "agent.job_completed" | "agent.job_disputed" | "compliance.wallet_flagged" | "compliance.wallet_blocked")[]];
|
|
@@ -162,8 +162,8 @@ declare const webhookDeliverySchema: z.ZodObject<{
|
|
|
162
162
|
createdAt: z.ZodString;
|
|
163
163
|
}, "strip", z.ZodTypeAny, {
|
|
164
164
|
status: "pending" | "retrying" | "delivered" | "permanently_failed";
|
|
165
|
-
merchantId: string;
|
|
166
165
|
id: string;
|
|
166
|
+
merchantId: string;
|
|
167
167
|
createdAt: string;
|
|
168
168
|
endpointId: string;
|
|
169
169
|
eventId: string;
|
|
@@ -176,8 +176,8 @@ declare const webhookDeliverySchema: z.ZodObject<{
|
|
|
176
176
|
deliveredAt: string | null;
|
|
177
177
|
}, {
|
|
178
178
|
status: "pending" | "retrying" | "delivered" | "permanently_failed";
|
|
179
|
-
merchantId: string;
|
|
180
179
|
id: string;
|
|
180
|
+
merchantId: string;
|
|
181
181
|
createdAt: string;
|
|
182
182
|
endpointId: string;
|
|
183
183
|
eventId: string;
|
|
@@ -215,8 +215,8 @@ declare const webhookDeliveryDetailSchema: z.ZodObject<{
|
|
|
215
215
|
requestPayload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
216
216
|
}, "strip", z.ZodTypeAny, {
|
|
217
217
|
status: "pending" | "retrying" | "delivered" | "permanently_failed";
|
|
218
|
-
merchantId: string;
|
|
219
218
|
id: string;
|
|
219
|
+
merchantId: string;
|
|
220
220
|
createdAt: string;
|
|
221
221
|
endpointId: string;
|
|
222
222
|
eventId: string;
|
|
@@ -232,8 +232,8 @@ declare const webhookDeliveryDetailSchema: z.ZodObject<{
|
|
|
232
232
|
requestPayload: Record<string, unknown>;
|
|
233
233
|
}, {
|
|
234
234
|
status: "pending" | "retrying" | "delivered" | "permanently_failed";
|
|
235
|
-
merchantId: string;
|
|
236
235
|
id: string;
|
|
236
|
+
merchantId: string;
|
|
237
237
|
createdAt: string;
|
|
238
238
|
endpointId: string;
|
|
239
239
|
eventId: string;
|
package/dist/webhooks.d.ts
CHANGED
|
@@ -30,11 +30,11 @@ declare const webhookEndpointSchema: z.ZodObject<{
|
|
|
30
30
|
updatedAt: z.ZodString;
|
|
31
31
|
}, "strip", z.ZodTypeAny, {
|
|
32
32
|
status: "active" | "disabled";
|
|
33
|
-
mode: "test" | "live";
|
|
34
|
-
merchantId: string;
|
|
35
|
-
description: string | null;
|
|
36
33
|
id: string;
|
|
34
|
+
merchantId: string;
|
|
35
|
+
mode: "test" | "live";
|
|
37
36
|
createdAt: string;
|
|
37
|
+
description: string | null;
|
|
38
38
|
updatedAt: string;
|
|
39
39
|
url: string;
|
|
40
40
|
events: ["payment.created" | "payment.completed" | "payment.failed" | "subscription.created" | "subscription.charged" | "subscription.charge_failed" | "subscription.recovery_attempt" | "subscription.recovery_outcome" | "subscription.cancelled" | "subscription.lapsed" | "refund.created" | "refund.completed" | "refund.failed" | "invoice.created" | "invoice.paid" | "invoice.overdue" | "agent.action_executed" | "agent.job_proposed" | "agent.job_completed" | "agent.job_disputed" | "compliance.wallet_flagged" | "compliance.wallet_blocked", ...("payment.created" | "payment.completed" | "payment.failed" | "subscription.created" | "subscription.charged" | "subscription.charge_failed" | "subscription.recovery_attempt" | "subscription.recovery_outcome" | "subscription.cancelled" | "subscription.lapsed" | "refund.created" | "refund.completed" | "refund.failed" | "invoice.created" | "invoice.paid" | "invoice.overdue" | "agent.action_executed" | "agent.job_proposed" | "agent.job_completed" | "agent.job_disputed" | "compliance.wallet_flagged" | "compliance.wallet_blocked")[]];
|
|
@@ -42,11 +42,11 @@ declare const webhookEndpointSchema: z.ZodObject<{
|
|
|
42
42
|
lastDeliveredAt: string | null;
|
|
43
43
|
}, {
|
|
44
44
|
status: "active" | "disabled";
|
|
45
|
-
mode: "test" | "live";
|
|
46
|
-
merchantId: string;
|
|
47
|
-
description: string | null;
|
|
48
45
|
id: string;
|
|
46
|
+
merchantId: string;
|
|
47
|
+
mode: "test" | "live";
|
|
49
48
|
createdAt: string;
|
|
49
|
+
description: string | null;
|
|
50
50
|
updatedAt: string;
|
|
51
51
|
url: string;
|
|
52
52
|
events: ["payment.created" | "payment.completed" | "payment.failed" | "subscription.created" | "subscription.charged" | "subscription.charge_failed" | "subscription.recovery_attempt" | "subscription.recovery_outcome" | "subscription.cancelled" | "subscription.lapsed" | "refund.created" | "refund.completed" | "refund.failed" | "invoice.created" | "invoice.paid" | "invoice.overdue" | "agent.action_executed" | "agent.job_proposed" | "agent.job_completed" | "agent.job_disputed" | "compliance.wallet_flagged" | "compliance.wallet_blocked", ...("payment.created" | "payment.completed" | "payment.failed" | "subscription.created" | "subscription.charged" | "subscription.charge_failed" | "subscription.recovery_attempt" | "subscription.recovery_outcome" | "subscription.cancelled" | "subscription.lapsed" | "refund.created" | "refund.completed" | "refund.failed" | "invoice.created" | "invoice.paid" | "invoice.overdue" | "agent.action_executed" | "agent.job_proposed" | "agent.job_completed" | "agent.job_disputed" | "compliance.wallet_flagged" | "compliance.wallet_blocked")[]];
|
|
@@ -87,11 +87,11 @@ declare const createWebhookEndpointOutputSchema: z.ZodObject<{
|
|
|
87
87
|
updatedAt: z.ZodString;
|
|
88
88
|
}, "strip", z.ZodTypeAny, {
|
|
89
89
|
status: "active" | "disabled";
|
|
90
|
-
mode: "test" | "live";
|
|
91
|
-
merchantId: string;
|
|
92
|
-
description: string | null;
|
|
93
90
|
id: string;
|
|
91
|
+
merchantId: string;
|
|
92
|
+
mode: "test" | "live";
|
|
94
93
|
createdAt: string;
|
|
94
|
+
description: string | null;
|
|
95
95
|
updatedAt: string;
|
|
96
96
|
url: string;
|
|
97
97
|
events: ["payment.created" | "payment.completed" | "payment.failed" | "subscription.created" | "subscription.charged" | "subscription.charge_failed" | "subscription.recovery_attempt" | "subscription.recovery_outcome" | "subscription.cancelled" | "subscription.lapsed" | "refund.created" | "refund.completed" | "refund.failed" | "invoice.created" | "invoice.paid" | "invoice.overdue" | "agent.action_executed" | "agent.job_proposed" | "agent.job_completed" | "agent.job_disputed" | "compliance.wallet_flagged" | "compliance.wallet_blocked", ...("payment.created" | "payment.completed" | "payment.failed" | "subscription.created" | "subscription.charged" | "subscription.charge_failed" | "subscription.recovery_attempt" | "subscription.recovery_outcome" | "subscription.cancelled" | "subscription.lapsed" | "refund.created" | "refund.completed" | "refund.failed" | "invoice.created" | "invoice.paid" | "invoice.overdue" | "agent.action_executed" | "agent.job_proposed" | "agent.job_completed" | "agent.job_disputed" | "compliance.wallet_flagged" | "compliance.wallet_blocked")[]];
|
|
@@ -99,11 +99,11 @@ declare const createWebhookEndpointOutputSchema: z.ZodObject<{
|
|
|
99
99
|
lastDeliveredAt: string | null;
|
|
100
100
|
}, {
|
|
101
101
|
status: "active" | "disabled";
|
|
102
|
-
mode: "test" | "live";
|
|
103
|
-
merchantId: string;
|
|
104
|
-
description: string | null;
|
|
105
102
|
id: string;
|
|
103
|
+
merchantId: string;
|
|
104
|
+
mode: "test" | "live";
|
|
106
105
|
createdAt: string;
|
|
106
|
+
description: string | null;
|
|
107
107
|
updatedAt: string;
|
|
108
108
|
url: string;
|
|
109
109
|
events: ["payment.created" | "payment.completed" | "payment.failed" | "subscription.created" | "subscription.charged" | "subscription.charge_failed" | "subscription.recovery_attempt" | "subscription.recovery_outcome" | "subscription.cancelled" | "subscription.lapsed" | "refund.created" | "refund.completed" | "refund.failed" | "invoice.created" | "invoice.paid" | "invoice.overdue" | "agent.action_executed" | "agent.job_proposed" | "agent.job_completed" | "agent.job_disputed" | "compliance.wallet_flagged" | "compliance.wallet_blocked", ...("payment.created" | "payment.completed" | "payment.failed" | "subscription.created" | "subscription.charged" | "subscription.charge_failed" | "subscription.recovery_attempt" | "subscription.recovery_outcome" | "subscription.cancelled" | "subscription.lapsed" | "refund.created" | "refund.completed" | "refund.failed" | "invoice.created" | "invoice.paid" | "invoice.overdue" | "agent.action_executed" | "agent.job_proposed" | "agent.job_completed" | "agent.job_disputed" | "compliance.wallet_flagged" | "compliance.wallet_blocked")[]];
|
|
@@ -115,11 +115,11 @@ declare const createWebhookEndpointOutputSchema: z.ZodObject<{
|
|
|
115
115
|
}, "strip", z.ZodTypeAny, {
|
|
116
116
|
endpoint: {
|
|
117
117
|
status: "active" | "disabled";
|
|
118
|
-
mode: "test" | "live";
|
|
119
|
-
merchantId: string;
|
|
120
|
-
description: string | null;
|
|
121
118
|
id: string;
|
|
119
|
+
merchantId: string;
|
|
120
|
+
mode: "test" | "live";
|
|
122
121
|
createdAt: string;
|
|
122
|
+
description: string | null;
|
|
123
123
|
updatedAt: string;
|
|
124
124
|
url: string;
|
|
125
125
|
events: ["payment.created" | "payment.completed" | "payment.failed" | "subscription.created" | "subscription.charged" | "subscription.charge_failed" | "subscription.recovery_attempt" | "subscription.recovery_outcome" | "subscription.cancelled" | "subscription.lapsed" | "refund.created" | "refund.completed" | "refund.failed" | "invoice.created" | "invoice.paid" | "invoice.overdue" | "agent.action_executed" | "agent.job_proposed" | "agent.job_completed" | "agent.job_disputed" | "compliance.wallet_flagged" | "compliance.wallet_blocked", ...("payment.created" | "payment.completed" | "payment.failed" | "subscription.created" | "subscription.charged" | "subscription.charge_failed" | "subscription.recovery_attempt" | "subscription.recovery_outcome" | "subscription.cancelled" | "subscription.lapsed" | "refund.created" | "refund.completed" | "refund.failed" | "invoice.created" | "invoice.paid" | "invoice.overdue" | "agent.action_executed" | "agent.job_proposed" | "agent.job_completed" | "agent.job_disputed" | "compliance.wallet_flagged" | "compliance.wallet_blocked")[]];
|
|
@@ -130,11 +130,11 @@ declare const createWebhookEndpointOutputSchema: z.ZodObject<{
|
|
|
130
130
|
}, {
|
|
131
131
|
endpoint: {
|
|
132
132
|
status: "active" | "disabled";
|
|
133
|
-
mode: "test" | "live";
|
|
134
|
-
merchantId: string;
|
|
135
|
-
description: string | null;
|
|
136
133
|
id: string;
|
|
134
|
+
merchantId: string;
|
|
135
|
+
mode: "test" | "live";
|
|
137
136
|
createdAt: string;
|
|
137
|
+
description: string | null;
|
|
138
138
|
updatedAt: string;
|
|
139
139
|
url: string;
|
|
140
140
|
events: ["payment.created" | "payment.completed" | "payment.failed" | "subscription.created" | "subscription.charged" | "subscription.charge_failed" | "subscription.recovery_attempt" | "subscription.recovery_outcome" | "subscription.cancelled" | "subscription.lapsed" | "refund.created" | "refund.completed" | "refund.failed" | "invoice.created" | "invoice.paid" | "invoice.overdue" | "agent.action_executed" | "agent.job_proposed" | "agent.job_completed" | "agent.job_disputed" | "compliance.wallet_flagged" | "compliance.wallet_blocked", ...("payment.created" | "payment.completed" | "payment.failed" | "subscription.created" | "subscription.charged" | "subscription.charge_failed" | "subscription.recovery_attempt" | "subscription.recovery_outcome" | "subscription.cancelled" | "subscription.lapsed" | "refund.created" | "refund.completed" | "refund.failed" | "invoice.created" | "invoice.paid" | "invoice.overdue" | "agent.action_executed" | "agent.job_proposed" | "agent.job_completed" | "agent.job_disputed" | "compliance.wallet_flagged" | "compliance.wallet_blocked")[]];
|
|
@@ -162,8 +162,8 @@ declare const webhookDeliverySchema: z.ZodObject<{
|
|
|
162
162
|
createdAt: z.ZodString;
|
|
163
163
|
}, "strip", z.ZodTypeAny, {
|
|
164
164
|
status: "pending" | "retrying" | "delivered" | "permanently_failed";
|
|
165
|
-
merchantId: string;
|
|
166
165
|
id: string;
|
|
166
|
+
merchantId: string;
|
|
167
167
|
createdAt: string;
|
|
168
168
|
endpointId: string;
|
|
169
169
|
eventId: string;
|
|
@@ -176,8 +176,8 @@ declare const webhookDeliverySchema: z.ZodObject<{
|
|
|
176
176
|
deliveredAt: string | null;
|
|
177
177
|
}, {
|
|
178
178
|
status: "pending" | "retrying" | "delivered" | "permanently_failed";
|
|
179
|
-
merchantId: string;
|
|
180
179
|
id: string;
|
|
180
|
+
merchantId: string;
|
|
181
181
|
createdAt: string;
|
|
182
182
|
endpointId: string;
|
|
183
183
|
eventId: string;
|
|
@@ -215,8 +215,8 @@ declare const webhookDeliveryDetailSchema: z.ZodObject<{
|
|
|
215
215
|
requestPayload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
216
216
|
}, "strip", z.ZodTypeAny, {
|
|
217
217
|
status: "pending" | "retrying" | "delivered" | "permanently_failed";
|
|
218
|
-
merchantId: string;
|
|
219
218
|
id: string;
|
|
219
|
+
merchantId: string;
|
|
220
220
|
createdAt: string;
|
|
221
221
|
endpointId: string;
|
|
222
222
|
eventId: string;
|
|
@@ -232,8 +232,8 @@ declare const webhookDeliveryDetailSchema: z.ZodObject<{
|
|
|
232
232
|
requestPayload: Record<string, unknown>;
|
|
233
233
|
}, {
|
|
234
234
|
status: "pending" | "retrying" | "delivered" | "permanently_failed";
|
|
235
|
-
merchantId: string;
|
|
236
235
|
id: string;
|
|
236
|
+
merchantId: string;
|
|
237
237
|
createdAt: string;
|
|
238
238
|
endpointId: string;
|
|
239
239
|
eventId: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@strimz/shared-types",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.1",
|
|
4
4
|
"description": "Zod schemas and inferred TypeScript types for every Strimz platform entity, API input, and webhook event.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Strimz <hello@strimz.finance>",
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
],
|
|
119
119
|
"dependencies": {
|
|
120
120
|
"zod": "^3.24.1",
|
|
121
|
-
"@strimz/shared-config": "0.7.
|
|
121
|
+
"@strimz/shared-config": "0.7.1"
|
|
122
122
|
},
|
|
123
123
|
"devDependencies": {
|
|
124
124
|
"eslint": "^9.18.0",
|