@strimz/shared-types 0.17.0 → 0.19.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/analytics.d.cts +141 -141
- package/dist/analytics.d.ts +141 -141
- package/dist/api-keys.d.cts +14 -14
- package/dist/api-keys.d.ts +14 -14
- package/dist/compliance.d.cts +8 -8
- package/dist/compliance.d.ts +8 -8
- package/dist/customers.d.cts +7 -7
- package/dist/customers.d.ts +7 -7
- package/dist/events.cjs +4 -0
- package/dist/events.cjs.map +1 -1
- package/dist/events.d.cts +1681 -1486
- package/dist/events.d.ts +1681 -1486
- package/dist/events.js +4 -1
- package/dist/events.js.map +1 -1
- package/dist/index.cjs +7 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +16 -16
- package/dist/index.d.ts +16 -16
- package/dist/index.js +7 -2
- package/dist/index.js.map +1 -1
- package/dist/invoices.d.cts +12 -12
- package/dist/invoices.d.ts +12 -12
- package/dist/merchants.d.cts +26 -26
- package/dist/merchants.d.ts +26 -26
- 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 +13 -13
- package/dist/storefronts.d.ts +13 -13
- package/dist/subscriptions.d.cts +32 -32
- package/dist/subscriptions.d.ts +32 -32
- package/dist/transactions.d.cts +10 -10
- package/dist/transactions.d.ts +10 -10
- package/dist/webhooks.cjs +1 -0
- package/dist/webhooks.cjs.map +1 -1
- package/dist/webhooks.d.cts +46 -46
- package/dist/webhooks.d.ts +46 -46
- package/dist/webhooks.js +1 -0
- package/dist/webhooks.js.map +1 -1
- package/package.json +2 -2
- package/src/events.ts +4 -0
- package/src/notifications.ts +2 -0
- package/src/webhooks.ts +1 -0
package/dist/api-keys.d.cts
CHANGED
|
@@ -28,11 +28,11 @@ declare const apiKeySchema: z.ZodObject<{
|
|
|
28
28
|
lastUsedAt: z.ZodNullable<z.ZodString>;
|
|
29
29
|
revokedAt: z.ZodNullable<z.ZodString>;
|
|
30
30
|
}, "strip", z.ZodTypeAny, {
|
|
31
|
-
|
|
31
|
+
mode: "test" | "live";
|
|
32
32
|
merchantId: string;
|
|
33
|
+
id: string;
|
|
33
34
|
createdAt: string;
|
|
34
35
|
name: string;
|
|
35
|
-
mode: "test" | "live";
|
|
36
36
|
kind: "secret" | "publishable";
|
|
37
37
|
prefix: string;
|
|
38
38
|
lastFour: string;
|
|
@@ -40,11 +40,11 @@ declare const apiKeySchema: z.ZodObject<{
|
|
|
40
40
|
lastUsedAt: string | null;
|
|
41
41
|
revokedAt: string | null;
|
|
42
42
|
}, {
|
|
43
|
-
|
|
43
|
+
mode: "test" | "live";
|
|
44
44
|
merchantId: string;
|
|
45
|
+
id: string;
|
|
45
46
|
createdAt: string;
|
|
46
47
|
name: string;
|
|
47
|
-
mode: "test" | "live";
|
|
48
48
|
kind: "secret" | "publishable";
|
|
49
49
|
prefix: string;
|
|
50
50
|
lastFour: string;
|
|
@@ -59,13 +59,13 @@ declare const createApiKeyInputSchema: z.ZodObject<{
|
|
|
59
59
|
mode: z.ZodEnum<["test", "live"]>;
|
|
60
60
|
scopes: z.ZodArray<z.ZodEnum<["sessions_read", "sessions_write", "subscriptions_read", "subscriptions_write", "refunds_read", "refunds_write", "transactions_read", "webhooks_read", "webhooks_write", "invoices_read", "invoices_write", "storefronts_read", "storefronts_write", "agents_read", "agents_write", "relay_read", "relay_write", "api_keys_read", "api_keys_write", "merchants_read", "customers_read", "customers_write", "analytics_read"]>, "atleastone">;
|
|
61
61
|
}, "strip", z.ZodTypeAny, {
|
|
62
|
-
name: string;
|
|
63
62
|
mode: "test" | "live";
|
|
63
|
+
name: string;
|
|
64
64
|
kind: "secret" | "publishable";
|
|
65
65
|
scopes: ["sessions_read" | "sessions_write" | "subscriptions_read" | "subscriptions_write" | "refunds_read" | "refunds_write" | "transactions_read" | "webhooks_read" | "webhooks_write" | "invoices_read" | "invoices_write" | "storefronts_read" | "storefronts_write" | "agents_read" | "agents_write" | "relay_read" | "relay_write" | "api_keys_read" | "api_keys_write" | "merchants_read" | "customers_read" | "customers_write" | "analytics_read", ...("sessions_read" | "sessions_write" | "subscriptions_read" | "subscriptions_write" | "refunds_read" | "refunds_write" | "transactions_read" | "webhooks_read" | "webhooks_write" | "invoices_read" | "invoices_write" | "storefronts_read" | "storefronts_write" | "agents_read" | "agents_write" | "relay_read" | "relay_write" | "api_keys_read" | "api_keys_write" | "merchants_read" | "customers_read" | "customers_write" | "analytics_read")[]];
|
|
66
66
|
}, {
|
|
67
|
-
name: string;
|
|
68
67
|
mode: "test" | "live";
|
|
68
|
+
name: string;
|
|
69
69
|
kind: "secret" | "publishable";
|
|
70
70
|
scopes: ["sessions_read" | "sessions_write" | "subscriptions_read" | "subscriptions_write" | "refunds_read" | "refunds_write" | "transactions_read" | "webhooks_read" | "webhooks_write" | "invoices_read" | "invoices_write" | "storefronts_read" | "storefronts_write" | "agents_read" | "agents_write" | "relay_read" | "relay_write" | "api_keys_read" | "api_keys_write" | "merchants_read" | "customers_read" | "customers_write" | "analytics_read", ...("sessions_read" | "sessions_write" | "subscriptions_read" | "subscriptions_write" | "refunds_read" | "refunds_write" | "transactions_read" | "webhooks_read" | "webhooks_write" | "invoices_read" | "invoices_write" | "storefronts_read" | "storefronts_write" | "agents_read" | "agents_write" | "relay_read" | "relay_write" | "api_keys_read" | "api_keys_write" | "merchants_read" | "customers_read" | "customers_write" | "analytics_read")[]];
|
|
71
71
|
}>;
|
|
@@ -85,11 +85,11 @@ declare const createApiKeyOutputSchema: z.ZodObject<{
|
|
|
85
85
|
lastUsedAt: z.ZodNullable<z.ZodString>;
|
|
86
86
|
revokedAt: z.ZodNullable<z.ZodString>;
|
|
87
87
|
}, "strip", z.ZodTypeAny, {
|
|
88
|
-
|
|
88
|
+
mode: "test" | "live";
|
|
89
89
|
merchantId: string;
|
|
90
|
+
id: string;
|
|
90
91
|
createdAt: string;
|
|
91
92
|
name: string;
|
|
92
|
-
mode: "test" | "live";
|
|
93
93
|
kind: "secret" | "publishable";
|
|
94
94
|
prefix: string;
|
|
95
95
|
lastFour: string;
|
|
@@ -97,11 +97,11 @@ declare const createApiKeyOutputSchema: z.ZodObject<{
|
|
|
97
97
|
lastUsedAt: string | null;
|
|
98
98
|
revokedAt: string | null;
|
|
99
99
|
}, {
|
|
100
|
-
|
|
100
|
+
mode: "test" | "live";
|
|
101
101
|
merchantId: string;
|
|
102
|
+
id: string;
|
|
102
103
|
createdAt: string;
|
|
103
104
|
name: string;
|
|
104
|
-
mode: "test" | "live";
|
|
105
105
|
kind: "secret" | "publishable";
|
|
106
106
|
prefix: string;
|
|
107
107
|
lastFour: string;
|
|
@@ -114,11 +114,11 @@ declare const createApiKeyOutputSchema: z.ZodObject<{
|
|
|
114
114
|
}, "strip", z.ZodTypeAny, {
|
|
115
115
|
secret: string;
|
|
116
116
|
apiKey: {
|
|
117
|
-
|
|
117
|
+
mode: "test" | "live";
|
|
118
118
|
merchantId: string;
|
|
119
|
+
id: string;
|
|
119
120
|
createdAt: string;
|
|
120
121
|
name: string;
|
|
121
|
-
mode: "test" | "live";
|
|
122
122
|
kind: "secret" | "publishable";
|
|
123
123
|
prefix: string;
|
|
124
124
|
lastFour: string;
|
|
@@ -129,11 +129,11 @@ declare const createApiKeyOutputSchema: z.ZodObject<{
|
|
|
129
129
|
}, {
|
|
130
130
|
secret: string;
|
|
131
131
|
apiKey: {
|
|
132
|
-
|
|
132
|
+
mode: "test" | "live";
|
|
133
133
|
merchantId: string;
|
|
134
|
+
id: string;
|
|
134
135
|
createdAt: string;
|
|
135
136
|
name: string;
|
|
136
|
-
mode: "test" | "live";
|
|
137
137
|
kind: "secret" | "publishable";
|
|
138
138
|
prefix: string;
|
|
139
139
|
lastFour: string;
|
package/dist/api-keys.d.ts
CHANGED
|
@@ -28,11 +28,11 @@ declare const apiKeySchema: z.ZodObject<{
|
|
|
28
28
|
lastUsedAt: z.ZodNullable<z.ZodString>;
|
|
29
29
|
revokedAt: z.ZodNullable<z.ZodString>;
|
|
30
30
|
}, "strip", z.ZodTypeAny, {
|
|
31
|
-
|
|
31
|
+
mode: "test" | "live";
|
|
32
32
|
merchantId: string;
|
|
33
|
+
id: string;
|
|
33
34
|
createdAt: string;
|
|
34
35
|
name: string;
|
|
35
|
-
mode: "test" | "live";
|
|
36
36
|
kind: "secret" | "publishable";
|
|
37
37
|
prefix: string;
|
|
38
38
|
lastFour: string;
|
|
@@ -40,11 +40,11 @@ declare const apiKeySchema: z.ZodObject<{
|
|
|
40
40
|
lastUsedAt: string | null;
|
|
41
41
|
revokedAt: string | null;
|
|
42
42
|
}, {
|
|
43
|
-
|
|
43
|
+
mode: "test" | "live";
|
|
44
44
|
merchantId: string;
|
|
45
|
+
id: string;
|
|
45
46
|
createdAt: string;
|
|
46
47
|
name: string;
|
|
47
|
-
mode: "test" | "live";
|
|
48
48
|
kind: "secret" | "publishable";
|
|
49
49
|
prefix: string;
|
|
50
50
|
lastFour: string;
|
|
@@ -59,13 +59,13 @@ declare const createApiKeyInputSchema: z.ZodObject<{
|
|
|
59
59
|
mode: z.ZodEnum<["test", "live"]>;
|
|
60
60
|
scopes: z.ZodArray<z.ZodEnum<["sessions_read", "sessions_write", "subscriptions_read", "subscriptions_write", "refunds_read", "refunds_write", "transactions_read", "webhooks_read", "webhooks_write", "invoices_read", "invoices_write", "storefronts_read", "storefronts_write", "agents_read", "agents_write", "relay_read", "relay_write", "api_keys_read", "api_keys_write", "merchants_read", "customers_read", "customers_write", "analytics_read"]>, "atleastone">;
|
|
61
61
|
}, "strip", z.ZodTypeAny, {
|
|
62
|
-
name: string;
|
|
63
62
|
mode: "test" | "live";
|
|
63
|
+
name: string;
|
|
64
64
|
kind: "secret" | "publishable";
|
|
65
65
|
scopes: ["sessions_read" | "sessions_write" | "subscriptions_read" | "subscriptions_write" | "refunds_read" | "refunds_write" | "transactions_read" | "webhooks_read" | "webhooks_write" | "invoices_read" | "invoices_write" | "storefronts_read" | "storefronts_write" | "agents_read" | "agents_write" | "relay_read" | "relay_write" | "api_keys_read" | "api_keys_write" | "merchants_read" | "customers_read" | "customers_write" | "analytics_read", ...("sessions_read" | "sessions_write" | "subscriptions_read" | "subscriptions_write" | "refunds_read" | "refunds_write" | "transactions_read" | "webhooks_read" | "webhooks_write" | "invoices_read" | "invoices_write" | "storefronts_read" | "storefronts_write" | "agents_read" | "agents_write" | "relay_read" | "relay_write" | "api_keys_read" | "api_keys_write" | "merchants_read" | "customers_read" | "customers_write" | "analytics_read")[]];
|
|
66
66
|
}, {
|
|
67
|
-
name: string;
|
|
68
67
|
mode: "test" | "live";
|
|
68
|
+
name: string;
|
|
69
69
|
kind: "secret" | "publishable";
|
|
70
70
|
scopes: ["sessions_read" | "sessions_write" | "subscriptions_read" | "subscriptions_write" | "refunds_read" | "refunds_write" | "transactions_read" | "webhooks_read" | "webhooks_write" | "invoices_read" | "invoices_write" | "storefronts_read" | "storefronts_write" | "agents_read" | "agents_write" | "relay_read" | "relay_write" | "api_keys_read" | "api_keys_write" | "merchants_read" | "customers_read" | "customers_write" | "analytics_read", ...("sessions_read" | "sessions_write" | "subscriptions_read" | "subscriptions_write" | "refunds_read" | "refunds_write" | "transactions_read" | "webhooks_read" | "webhooks_write" | "invoices_read" | "invoices_write" | "storefronts_read" | "storefronts_write" | "agents_read" | "agents_write" | "relay_read" | "relay_write" | "api_keys_read" | "api_keys_write" | "merchants_read" | "customers_read" | "customers_write" | "analytics_read")[]];
|
|
71
71
|
}>;
|
|
@@ -85,11 +85,11 @@ declare const createApiKeyOutputSchema: z.ZodObject<{
|
|
|
85
85
|
lastUsedAt: z.ZodNullable<z.ZodString>;
|
|
86
86
|
revokedAt: z.ZodNullable<z.ZodString>;
|
|
87
87
|
}, "strip", z.ZodTypeAny, {
|
|
88
|
-
|
|
88
|
+
mode: "test" | "live";
|
|
89
89
|
merchantId: string;
|
|
90
|
+
id: string;
|
|
90
91
|
createdAt: string;
|
|
91
92
|
name: string;
|
|
92
|
-
mode: "test" | "live";
|
|
93
93
|
kind: "secret" | "publishable";
|
|
94
94
|
prefix: string;
|
|
95
95
|
lastFour: string;
|
|
@@ -97,11 +97,11 @@ declare const createApiKeyOutputSchema: z.ZodObject<{
|
|
|
97
97
|
lastUsedAt: string | null;
|
|
98
98
|
revokedAt: string | null;
|
|
99
99
|
}, {
|
|
100
|
-
|
|
100
|
+
mode: "test" | "live";
|
|
101
101
|
merchantId: string;
|
|
102
|
+
id: string;
|
|
102
103
|
createdAt: string;
|
|
103
104
|
name: string;
|
|
104
|
-
mode: "test" | "live";
|
|
105
105
|
kind: "secret" | "publishable";
|
|
106
106
|
prefix: string;
|
|
107
107
|
lastFour: string;
|
|
@@ -114,11 +114,11 @@ declare const createApiKeyOutputSchema: z.ZodObject<{
|
|
|
114
114
|
}, "strip", z.ZodTypeAny, {
|
|
115
115
|
secret: string;
|
|
116
116
|
apiKey: {
|
|
117
|
-
|
|
117
|
+
mode: "test" | "live";
|
|
118
118
|
merchantId: string;
|
|
119
|
+
id: string;
|
|
119
120
|
createdAt: string;
|
|
120
121
|
name: string;
|
|
121
|
-
mode: "test" | "live";
|
|
122
122
|
kind: "secret" | "publishable";
|
|
123
123
|
prefix: string;
|
|
124
124
|
lastFour: string;
|
|
@@ -129,11 +129,11 @@ declare const createApiKeyOutputSchema: z.ZodObject<{
|
|
|
129
129
|
}, {
|
|
130
130
|
secret: string;
|
|
131
131
|
apiKey: {
|
|
132
|
-
|
|
132
|
+
mode: "test" | "live";
|
|
133
133
|
merchantId: string;
|
|
134
|
+
id: string;
|
|
134
135
|
createdAt: string;
|
|
135
136
|
name: string;
|
|
136
|
-
mode: "test" | "live";
|
|
137
137
|
kind: "secret" | "publishable";
|
|
138
138
|
prefix: string;
|
|
139
139
|
lastFour: string;
|
package/dist/compliance.d.cts
CHANGED
|
@@ -29,29 +29,29 @@ declare const complianceLogSchema: z.ZodObject<{
|
|
|
29
29
|
createdAt: z.ZodString;
|
|
30
30
|
}, "strip", z.ZodTypeAny, {
|
|
31
31
|
status: "clear" | "flagged" | "blocked" | "error";
|
|
32
|
+
merchantId: string | null;
|
|
32
33
|
id: string;
|
|
34
|
+
sessionId: string | null;
|
|
35
|
+
createdAt: string;
|
|
33
36
|
walletAddress: string;
|
|
37
|
+
subscriptionId: string | null;
|
|
34
38
|
provider: "trm" | "elliptic" | "disabled";
|
|
35
39
|
riskScore: number | null;
|
|
36
40
|
flags: string[];
|
|
37
41
|
context: "merchant_onboarding" | "payer_checkout" | "subscriber_signup" | "refund_recipient";
|
|
38
|
-
merchantId: string | null;
|
|
39
|
-
sessionId: string | null;
|
|
40
|
-
subscriptionId: string | null;
|
|
41
42
|
providerRequestId: string | null;
|
|
42
|
-
createdAt: string;
|
|
43
43
|
}, {
|
|
44
44
|
status: "clear" | "flagged" | "blocked" | "error";
|
|
45
|
+
merchantId: string | null;
|
|
45
46
|
id: string;
|
|
47
|
+
sessionId: string | null;
|
|
48
|
+
createdAt: string;
|
|
46
49
|
walletAddress: string;
|
|
50
|
+
subscriptionId: string | null;
|
|
47
51
|
provider: "trm" | "elliptic" | "disabled";
|
|
48
52
|
riskScore: number | null;
|
|
49
53
|
context: "merchant_onboarding" | "payer_checkout" | "subscriber_signup" | "refund_recipient";
|
|
50
|
-
merchantId: string | null;
|
|
51
|
-
sessionId: string | null;
|
|
52
|
-
subscriptionId: string | null;
|
|
53
54
|
providerRequestId: string | null;
|
|
54
|
-
createdAt: string;
|
|
55
55
|
flags?: string[] | undefined;
|
|
56
56
|
}>;
|
|
57
57
|
type ComplianceLog = z.infer<typeof complianceLogSchema>;
|
package/dist/compliance.d.ts
CHANGED
|
@@ -29,29 +29,29 @@ declare const complianceLogSchema: z.ZodObject<{
|
|
|
29
29
|
createdAt: z.ZodString;
|
|
30
30
|
}, "strip", z.ZodTypeAny, {
|
|
31
31
|
status: "clear" | "flagged" | "blocked" | "error";
|
|
32
|
+
merchantId: string | null;
|
|
32
33
|
id: string;
|
|
34
|
+
sessionId: string | null;
|
|
35
|
+
createdAt: string;
|
|
33
36
|
walletAddress: string;
|
|
37
|
+
subscriptionId: string | null;
|
|
34
38
|
provider: "trm" | "elliptic" | "disabled";
|
|
35
39
|
riskScore: number | null;
|
|
36
40
|
flags: string[];
|
|
37
41
|
context: "merchant_onboarding" | "payer_checkout" | "subscriber_signup" | "refund_recipient";
|
|
38
|
-
merchantId: string | null;
|
|
39
|
-
sessionId: string | null;
|
|
40
|
-
subscriptionId: string | null;
|
|
41
42
|
providerRequestId: string | null;
|
|
42
|
-
createdAt: string;
|
|
43
43
|
}, {
|
|
44
44
|
status: "clear" | "flagged" | "blocked" | "error";
|
|
45
|
+
merchantId: string | null;
|
|
45
46
|
id: string;
|
|
47
|
+
sessionId: string | null;
|
|
48
|
+
createdAt: string;
|
|
46
49
|
walletAddress: string;
|
|
50
|
+
subscriptionId: string | null;
|
|
47
51
|
provider: "trm" | "elliptic" | "disabled";
|
|
48
52
|
riskScore: number | null;
|
|
49
53
|
context: "merchant_onboarding" | "payer_checkout" | "subscriber_signup" | "refund_recipient";
|
|
50
|
-
merchantId: string | null;
|
|
51
|
-
sessionId: string | null;
|
|
52
|
-
subscriptionId: string | null;
|
|
53
54
|
providerRequestId: string | null;
|
|
54
|
-
createdAt: string;
|
|
55
55
|
flags?: string[] | undefined;
|
|
56
56
|
}>;
|
|
57
57
|
type ComplianceLog = z.infer<typeof complianceLogSchema>;
|
package/dist/customers.d.cts
CHANGED
|
@@ -19,20 +19,20 @@ declare const customerSchema: z.ZodObject<{
|
|
|
19
19
|
firstSeenAt: z.ZodString;
|
|
20
20
|
lastSeenAt: z.ZodString;
|
|
21
21
|
}, "strip", z.ZodTypeAny, {
|
|
22
|
-
id: string;
|
|
23
|
-
walletAddress: string;
|
|
24
22
|
merchantId: string;
|
|
25
|
-
metadata: Record<string, string | number | boolean | null>;
|
|
26
23
|
email: string | null;
|
|
24
|
+
id: string;
|
|
25
|
+
metadata: Record<string, string | number | boolean | null>;
|
|
26
|
+
walletAddress: string;
|
|
27
27
|
externalRef: string | null;
|
|
28
28
|
displayName: string | null;
|
|
29
29
|
firstSeenAt: string;
|
|
30
30
|
lastSeenAt: string;
|
|
31
31
|
}, {
|
|
32
|
-
id: string;
|
|
33
|
-
walletAddress: string;
|
|
34
32
|
merchantId: string;
|
|
35
33
|
email: string | null;
|
|
34
|
+
id: string;
|
|
35
|
+
walletAddress: string;
|
|
36
36
|
externalRef: string | null;
|
|
37
37
|
displayName: string | null;
|
|
38
38
|
firstSeenAt: string;
|
|
@@ -48,14 +48,14 @@ declare const upsertCustomerInputSchema: z.ZodObject<{
|
|
|
48
48
|
metadata: z.ZodOptional<z.ZodDefault<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>, Record<string, string | number | boolean | null>, Record<string, string | number | boolean | null>>>>;
|
|
49
49
|
}, "strip", z.ZodTypeAny, {
|
|
50
50
|
walletAddress: string;
|
|
51
|
-
metadata?: Record<string, string | number | boolean | null> | undefined;
|
|
52
51
|
email?: string | undefined;
|
|
52
|
+
metadata?: Record<string, string | number | boolean | null> | undefined;
|
|
53
53
|
externalRef?: string | undefined;
|
|
54
54
|
displayName?: string | undefined;
|
|
55
55
|
}, {
|
|
56
56
|
walletAddress: string;
|
|
57
|
-
metadata?: Record<string, string | number | boolean | null> | undefined;
|
|
58
57
|
email?: string | undefined;
|
|
58
|
+
metadata?: Record<string, string | number | boolean | null> | undefined;
|
|
59
59
|
externalRef?: string | undefined;
|
|
60
60
|
displayName?: string | undefined;
|
|
61
61
|
}>;
|
package/dist/customers.d.ts
CHANGED
|
@@ -19,20 +19,20 @@ declare const customerSchema: z.ZodObject<{
|
|
|
19
19
|
firstSeenAt: z.ZodString;
|
|
20
20
|
lastSeenAt: z.ZodString;
|
|
21
21
|
}, "strip", z.ZodTypeAny, {
|
|
22
|
-
id: string;
|
|
23
|
-
walletAddress: string;
|
|
24
22
|
merchantId: string;
|
|
25
|
-
metadata: Record<string, string | number | boolean | null>;
|
|
26
23
|
email: string | null;
|
|
24
|
+
id: string;
|
|
25
|
+
metadata: Record<string, string | number | boolean | null>;
|
|
26
|
+
walletAddress: string;
|
|
27
27
|
externalRef: string | null;
|
|
28
28
|
displayName: string | null;
|
|
29
29
|
firstSeenAt: string;
|
|
30
30
|
lastSeenAt: string;
|
|
31
31
|
}, {
|
|
32
|
-
id: string;
|
|
33
|
-
walletAddress: string;
|
|
34
32
|
merchantId: string;
|
|
35
33
|
email: string | null;
|
|
34
|
+
id: string;
|
|
35
|
+
walletAddress: string;
|
|
36
36
|
externalRef: string | null;
|
|
37
37
|
displayName: string | null;
|
|
38
38
|
firstSeenAt: string;
|
|
@@ -48,14 +48,14 @@ declare const upsertCustomerInputSchema: z.ZodObject<{
|
|
|
48
48
|
metadata: z.ZodOptional<z.ZodDefault<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>, Record<string, string | number | boolean | null>, Record<string, string | number | boolean | null>>>>;
|
|
49
49
|
}, "strip", z.ZodTypeAny, {
|
|
50
50
|
walletAddress: string;
|
|
51
|
-
metadata?: Record<string, string | number | boolean | null> | undefined;
|
|
52
51
|
email?: string | undefined;
|
|
52
|
+
metadata?: Record<string, string | number | boolean | null> | undefined;
|
|
53
53
|
externalRef?: string | undefined;
|
|
54
54
|
displayName?: string | undefined;
|
|
55
55
|
}, {
|
|
56
56
|
walletAddress: string;
|
|
57
|
-
metadata?: Record<string, string | number | boolean | null> | undefined;
|
|
58
57
|
email?: string | undefined;
|
|
58
|
+
metadata?: Record<string, string | number | boolean | null> | undefined;
|
|
59
59
|
externalRef?: string | undefined;
|
|
60
60
|
displayName?: string | undefined;
|
|
61
61
|
}>;
|
package/dist/events.cjs
CHANGED
|
@@ -596,6 +596,7 @@ var webhookEventNameSchema = zod.z.enum([
|
|
|
596
596
|
"subscription.reactivated",
|
|
597
597
|
"refund.created",
|
|
598
598
|
"refund.completed",
|
|
599
|
+
"refund.failed",
|
|
599
600
|
"invoice.created",
|
|
600
601
|
"invoice.paid",
|
|
601
602
|
"invoice.overdue",
|
|
@@ -709,6 +710,7 @@ var refundCompletedEventSchema = envelope(
|
|
|
709
710
|
"refund.completed",
|
|
710
711
|
zod.z.object({ refund: refundSchema, transaction: transactionSchema })
|
|
711
712
|
);
|
|
713
|
+
var refundFailedEventSchema = envelope("refund.failed", refundSchema);
|
|
712
714
|
var invoiceCreatedEventSchema = envelope("invoice.created", invoiceSchema);
|
|
713
715
|
var invoicePaidEventSchema = envelope(
|
|
714
716
|
"invoice.paid",
|
|
@@ -739,6 +741,7 @@ var webhookEventSchema = zod.z.discriminatedUnion("type", [
|
|
|
739
741
|
subscriptionReactivatedEventSchema,
|
|
740
742
|
refundCreatedEventSchema,
|
|
741
743
|
refundCompletedEventSchema,
|
|
744
|
+
refundFailedEventSchema,
|
|
742
745
|
invoiceCreatedEventSchema,
|
|
743
746
|
invoicePaidEventSchema,
|
|
744
747
|
invoiceOverdueEventSchema,
|
|
@@ -762,6 +765,7 @@ exports.paymentCreatedEventSchema = paymentCreatedEventSchema;
|
|
|
762
765
|
exports.paymentFailedEventSchema = paymentFailedEventSchema;
|
|
763
766
|
exports.refundCompletedEventSchema = refundCompletedEventSchema;
|
|
764
767
|
exports.refundCreatedEventSchema = refundCreatedEventSchema;
|
|
768
|
+
exports.refundFailedEventSchema = refundFailedEventSchema;
|
|
765
769
|
exports.subscriptionCancelledEventSchema = subscriptionCancelledEventSchema;
|
|
766
770
|
exports.subscriptionChargeFailedEventSchema = subscriptionChargeFailedEventSchema;
|
|
767
771
|
exports.subscriptionChargedEventSchema = subscriptionChargedEventSchema;
|