@strimz/shared-types 0.7.0 → 0.9.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.cjs +558 -0
- package/dist/analytics.cjs.map +1 -0
- package/dist/analytics.d.cts +1719 -0
- package/dist/analytics.d.ts +1719 -0
- package/dist/analytics.js +530 -0
- package/dist/analytics.js.map +1 -0
- package/dist/api-keys.d.cts +20 -20
- package/dist/api-keys.d.ts +20 -20
- package/dist/compliance.d.cts +6 -6
- package/dist/compliance.d.ts +6 -6
- package/dist/customers.d.cts +7 -7
- package/dist/customers.d.ts +7 -7
- package/dist/events.cjs +0 -10
- package/dist/events.cjs.map +1 -1
- package/dist/events.d.cts +1885 -1885
- package/dist/events.d.ts +1885 -1885
- package/dist/events.js +0 -10
- package/dist/events.js.map +1 -1
- package/dist/index.cjs +216 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +16 -15
- package/dist/index.d.ts +16 -15
- package/dist/index.js +190 -11
- package/dist/index.js.map +1 -1
- package/dist/invoices.d.cts +16 -16
- package/dist/invoices.d.ts +16 -16
- package/dist/merchants.d.cts +29 -29
- package/dist/merchants.d.ts +29 -29
- package/dist/payment-sessions.d.cts +19 -19
- package/dist/payment-sessions.d.ts +19 -19
- package/dist/refunds.d.cts +50 -50
- package/dist/refunds.d.ts +50 -50
- package/dist/storefronts.cjs +0 -10
- package/dist/storefronts.cjs.map +1 -1
- package/dist/storefronts.d.cts +24 -24
- package/dist/storefronts.d.ts +24 -24
- package/dist/storefronts.js +0 -10
- package/dist/storefronts.js.map +1 -1
- package/dist/subscriptions.cjs +0 -11
- package/dist/subscriptions.cjs.map +1 -1
- package/dist/subscriptions.d.cts +43 -81
- package/dist/subscriptions.d.ts +43 -81
- package/dist/subscriptions.js +1 -11
- package/dist/subscriptions.js.map +1 -1
- package/dist/transactions.d.cts +16 -16
- package/dist/transactions.d.ts +16 -16
- package/dist/webhooks.d.cts +28 -28
- package/dist/webhooks.d.ts +28 -28
- package/package.json +6 -1
- package/src/analytics.ts +275 -0
- package/src/index.ts +1 -0
- package/src/subscriptions.ts +0 -13
package/dist/api-keys.d.cts
CHANGED
|
@@ -28,27 +28,27 @@ 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;
|
|
34
|
+
createdAt: string;
|
|
33
35
|
name: string;
|
|
34
36
|
kind: "secret" | "publishable";
|
|
35
|
-
mode: "test" | "live";
|
|
36
37
|
prefix: string;
|
|
37
38
|
lastFour: string;
|
|
38
39
|
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")[]];
|
|
39
|
-
createdAt: string;
|
|
40
40
|
lastUsedAt: string | null;
|
|
41
41
|
revokedAt: string | null;
|
|
42
42
|
}, {
|
|
43
|
-
|
|
43
|
+
mode: "test" | "live";
|
|
44
44
|
merchantId: string;
|
|
45
|
+
id: string;
|
|
46
|
+
createdAt: string;
|
|
45
47
|
name: string;
|
|
46
48
|
kind: "secret" | "publishable";
|
|
47
|
-
mode: "test" | "live";
|
|
48
49
|
prefix: string;
|
|
49
50
|
lastFour: string;
|
|
50
51
|
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")[]];
|
|
51
|
-
createdAt: string;
|
|
52
52
|
lastUsedAt: string | null;
|
|
53
53
|
revokedAt: string | null;
|
|
54
54
|
}>;
|
|
@@ -59,14 +59,14 @@ 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
|
+
mode: "test" | "live";
|
|
62
63
|
name: string;
|
|
63
64
|
kind: "secret" | "publishable";
|
|
64
|
-
mode: "test" | "live";
|
|
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
|
+
mode: "test" | "live";
|
|
67
68
|
name: string;
|
|
68
69
|
kind: "secret" | "publishable";
|
|
69
|
-
mode: "test" | "live";
|
|
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
|
}>;
|
|
72
72
|
type CreateApiKeyInput = z.input<typeof createApiKeyInputSchema>;
|
|
@@ -85,27 +85,27 @@ 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;
|
|
91
|
+
createdAt: string;
|
|
90
92
|
name: string;
|
|
91
93
|
kind: "secret" | "publishable";
|
|
92
|
-
mode: "test" | "live";
|
|
93
94
|
prefix: string;
|
|
94
95
|
lastFour: string;
|
|
95
96
|
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")[]];
|
|
96
|
-
createdAt: string;
|
|
97
97
|
lastUsedAt: string | null;
|
|
98
98
|
revokedAt: string | null;
|
|
99
99
|
}, {
|
|
100
|
-
|
|
100
|
+
mode: "test" | "live";
|
|
101
101
|
merchantId: string;
|
|
102
|
+
id: string;
|
|
103
|
+
createdAt: string;
|
|
102
104
|
name: string;
|
|
103
105
|
kind: "secret" | "publishable";
|
|
104
|
-
mode: "test" | "live";
|
|
105
106
|
prefix: string;
|
|
106
107
|
lastFour: string;
|
|
107
108
|
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")[]];
|
|
108
|
-
createdAt: string;
|
|
109
109
|
lastUsedAt: string | null;
|
|
110
110
|
revokedAt: string | null;
|
|
111
111
|
}>;
|
|
@@ -114,30 +114,30 @@ 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;
|
|
120
|
+
createdAt: string;
|
|
119
121
|
name: string;
|
|
120
122
|
kind: "secret" | "publishable";
|
|
121
|
-
mode: "test" | "live";
|
|
122
123
|
prefix: string;
|
|
123
124
|
lastFour: string;
|
|
124
125
|
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")[]];
|
|
125
|
-
createdAt: string;
|
|
126
126
|
lastUsedAt: string | null;
|
|
127
127
|
revokedAt: string | null;
|
|
128
128
|
};
|
|
129
129
|
}, {
|
|
130
130
|
secret: string;
|
|
131
131
|
apiKey: {
|
|
132
|
-
|
|
132
|
+
mode: "test" | "live";
|
|
133
133
|
merchantId: string;
|
|
134
|
+
id: string;
|
|
135
|
+
createdAt: string;
|
|
134
136
|
name: string;
|
|
135
137
|
kind: "secret" | "publishable";
|
|
136
|
-
mode: "test" | "live";
|
|
137
138
|
prefix: string;
|
|
138
139
|
lastFour: string;
|
|
139
140
|
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")[]];
|
|
140
|
-
createdAt: string;
|
|
141
141
|
lastUsedAt: string | null;
|
|
142
142
|
revokedAt: string | null;
|
|
143
143
|
};
|
package/dist/api-keys.d.ts
CHANGED
|
@@ -28,27 +28,27 @@ 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;
|
|
34
|
+
createdAt: string;
|
|
33
35
|
name: string;
|
|
34
36
|
kind: "secret" | "publishable";
|
|
35
|
-
mode: "test" | "live";
|
|
36
37
|
prefix: string;
|
|
37
38
|
lastFour: string;
|
|
38
39
|
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")[]];
|
|
39
|
-
createdAt: string;
|
|
40
40
|
lastUsedAt: string | null;
|
|
41
41
|
revokedAt: string | null;
|
|
42
42
|
}, {
|
|
43
|
-
|
|
43
|
+
mode: "test" | "live";
|
|
44
44
|
merchantId: string;
|
|
45
|
+
id: string;
|
|
46
|
+
createdAt: string;
|
|
45
47
|
name: string;
|
|
46
48
|
kind: "secret" | "publishable";
|
|
47
|
-
mode: "test" | "live";
|
|
48
49
|
prefix: string;
|
|
49
50
|
lastFour: string;
|
|
50
51
|
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")[]];
|
|
51
|
-
createdAt: string;
|
|
52
52
|
lastUsedAt: string | null;
|
|
53
53
|
revokedAt: string | null;
|
|
54
54
|
}>;
|
|
@@ -59,14 +59,14 @@ 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
|
+
mode: "test" | "live";
|
|
62
63
|
name: string;
|
|
63
64
|
kind: "secret" | "publishable";
|
|
64
|
-
mode: "test" | "live";
|
|
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
|
+
mode: "test" | "live";
|
|
67
68
|
name: string;
|
|
68
69
|
kind: "secret" | "publishable";
|
|
69
|
-
mode: "test" | "live";
|
|
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
|
}>;
|
|
72
72
|
type CreateApiKeyInput = z.input<typeof createApiKeyInputSchema>;
|
|
@@ -85,27 +85,27 @@ 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;
|
|
91
|
+
createdAt: string;
|
|
90
92
|
name: string;
|
|
91
93
|
kind: "secret" | "publishable";
|
|
92
|
-
mode: "test" | "live";
|
|
93
94
|
prefix: string;
|
|
94
95
|
lastFour: string;
|
|
95
96
|
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")[]];
|
|
96
|
-
createdAt: string;
|
|
97
97
|
lastUsedAt: string | null;
|
|
98
98
|
revokedAt: string | null;
|
|
99
99
|
}, {
|
|
100
|
-
|
|
100
|
+
mode: "test" | "live";
|
|
101
101
|
merchantId: string;
|
|
102
|
+
id: string;
|
|
103
|
+
createdAt: string;
|
|
102
104
|
name: string;
|
|
103
105
|
kind: "secret" | "publishable";
|
|
104
|
-
mode: "test" | "live";
|
|
105
106
|
prefix: string;
|
|
106
107
|
lastFour: string;
|
|
107
108
|
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")[]];
|
|
108
|
-
createdAt: string;
|
|
109
109
|
lastUsedAt: string | null;
|
|
110
110
|
revokedAt: string | null;
|
|
111
111
|
}>;
|
|
@@ -114,30 +114,30 @@ 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;
|
|
120
|
+
createdAt: string;
|
|
119
121
|
name: string;
|
|
120
122
|
kind: "secret" | "publishable";
|
|
121
|
-
mode: "test" | "live";
|
|
122
123
|
prefix: string;
|
|
123
124
|
lastFour: string;
|
|
124
125
|
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")[]];
|
|
125
|
-
createdAt: string;
|
|
126
126
|
lastUsedAt: string | null;
|
|
127
127
|
revokedAt: string | null;
|
|
128
128
|
};
|
|
129
129
|
}, {
|
|
130
130
|
secret: string;
|
|
131
131
|
apiKey: {
|
|
132
|
-
|
|
132
|
+
mode: "test" | "live";
|
|
133
133
|
merchantId: string;
|
|
134
|
+
id: string;
|
|
135
|
+
createdAt: string;
|
|
134
136
|
name: string;
|
|
135
137
|
kind: "secret" | "publishable";
|
|
136
|
-
mode: "test" | "live";
|
|
137
138
|
prefix: string;
|
|
138
139
|
lastFour: string;
|
|
139
140
|
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")[]];
|
|
140
|
-
createdAt: string;
|
|
141
141
|
lastUsedAt: string | null;
|
|
142
142
|
revokedAt: string | null;
|
|
143
143
|
};
|
package/dist/compliance.d.cts
CHANGED
|
@@ -29,28 +29,28 @@ declare const complianceLogSchema: z.ZodObject<{
|
|
|
29
29
|
createdAt: z.ZodString;
|
|
30
30
|
}, "strip", z.ZodTypeAny, {
|
|
31
31
|
status: "clear" | "flagged" | "blocked" | "error";
|
|
32
|
-
id: string;
|
|
33
32
|
merchantId: string | null;
|
|
33
|
+
id: string;
|
|
34
|
+
sessionId: string | null;
|
|
34
35
|
createdAt: string;
|
|
35
36
|
walletAddress: string;
|
|
37
|
+
subscriptionId: string | null;
|
|
36
38
|
provider: "trm" | "elliptic" | "disabled";
|
|
37
39
|
riskScore: number | null;
|
|
38
40
|
flags: string[];
|
|
39
41
|
context: "merchant_onboarding" | "payer_checkout" | "subscriber_signup" | "refund_recipient";
|
|
40
|
-
sessionId: string | null;
|
|
41
|
-
subscriptionId: string | null;
|
|
42
42
|
providerRequestId: string | null;
|
|
43
43
|
}, {
|
|
44
44
|
status: "clear" | "flagged" | "blocked" | "error";
|
|
45
|
-
id: string;
|
|
46
45
|
merchantId: string | null;
|
|
46
|
+
id: string;
|
|
47
|
+
sessionId: string | null;
|
|
47
48
|
createdAt: string;
|
|
48
49
|
walletAddress: string;
|
|
50
|
+
subscriptionId: string | null;
|
|
49
51
|
provider: "trm" | "elliptic" | "disabled";
|
|
50
52
|
riskScore: number | null;
|
|
51
53
|
context: "merchant_onboarding" | "payer_checkout" | "subscriber_signup" | "refund_recipient";
|
|
52
|
-
sessionId: string | null;
|
|
53
|
-
subscriptionId: string | null;
|
|
54
54
|
providerRequestId: string | null;
|
|
55
55
|
flags?: string[] | undefined;
|
|
56
56
|
}>;
|
package/dist/compliance.d.ts
CHANGED
|
@@ -29,28 +29,28 @@ declare const complianceLogSchema: z.ZodObject<{
|
|
|
29
29
|
createdAt: z.ZodString;
|
|
30
30
|
}, "strip", z.ZodTypeAny, {
|
|
31
31
|
status: "clear" | "flagged" | "blocked" | "error";
|
|
32
|
-
id: string;
|
|
33
32
|
merchantId: string | null;
|
|
33
|
+
id: string;
|
|
34
|
+
sessionId: string | null;
|
|
34
35
|
createdAt: string;
|
|
35
36
|
walletAddress: string;
|
|
37
|
+
subscriptionId: string | null;
|
|
36
38
|
provider: "trm" | "elliptic" | "disabled";
|
|
37
39
|
riskScore: number | null;
|
|
38
40
|
flags: string[];
|
|
39
41
|
context: "merchant_onboarding" | "payer_checkout" | "subscriber_signup" | "refund_recipient";
|
|
40
|
-
sessionId: string | null;
|
|
41
|
-
subscriptionId: string | null;
|
|
42
42
|
providerRequestId: string | null;
|
|
43
43
|
}, {
|
|
44
44
|
status: "clear" | "flagged" | "blocked" | "error";
|
|
45
|
-
id: string;
|
|
46
45
|
merchantId: string | null;
|
|
46
|
+
id: string;
|
|
47
|
+
sessionId: string | null;
|
|
47
48
|
createdAt: string;
|
|
48
49
|
walletAddress: string;
|
|
50
|
+
subscriptionId: string | null;
|
|
49
51
|
provider: "trm" | "elliptic" | "disabled";
|
|
50
52
|
riskScore: number | null;
|
|
51
53
|
context: "merchant_onboarding" | "payer_checkout" | "subscriber_signup" | "refund_recipient";
|
|
52
|
-
sessionId: string | null;
|
|
53
|
-
subscriptionId: string | null;
|
|
54
54
|
providerRequestId: string | null;
|
|
55
55
|
flags?: string[] | undefined;
|
|
56
56
|
}>;
|
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
22
|
merchantId: string;
|
|
24
|
-
walletAddress: string;
|
|
25
23
|
email: string | null;
|
|
24
|
+
id: string;
|
|
25
|
+
metadata: Record<string, string | number | boolean | null>;
|
|
26
|
+
walletAddress: string;
|
|
26
27
|
externalRef: string | null;
|
|
27
28
|
displayName: string | null;
|
|
28
|
-
metadata: Record<string, string | number | boolean | null>;
|
|
29
29
|
firstSeenAt: string;
|
|
30
30
|
lastSeenAt: string;
|
|
31
31
|
}, {
|
|
32
|
-
id: string;
|
|
33
32
|
merchantId: string;
|
|
34
|
-
walletAddress: 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;
|
|
@@ -49,15 +49,15 @@ declare const upsertCustomerInputSchema: z.ZodObject<{
|
|
|
49
49
|
}, "strip", z.ZodTypeAny, {
|
|
50
50
|
walletAddress: string;
|
|
51
51
|
email?: string | undefined;
|
|
52
|
+
metadata?: Record<string, string | number | boolean | null> | undefined;
|
|
52
53
|
externalRef?: string | undefined;
|
|
53
54
|
displayName?: string | undefined;
|
|
54
|
-
metadata?: Record<string, string | number | boolean | null> | undefined;
|
|
55
55
|
}, {
|
|
56
56
|
walletAddress: string;
|
|
57
57
|
email?: string | undefined;
|
|
58
|
+
metadata?: Record<string, string | number | boolean | null> | undefined;
|
|
58
59
|
externalRef?: string | undefined;
|
|
59
60
|
displayName?: string | undefined;
|
|
60
|
-
metadata?: Record<string, string | number | boolean | null> | undefined;
|
|
61
61
|
}>;
|
|
62
62
|
type UpsertCustomerInput = z.input<typeof upsertCustomerInputSchema>;
|
|
63
63
|
type UpsertCustomerParsed = z.output<typeof upsertCustomerInputSchema>;
|
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
22
|
merchantId: string;
|
|
24
|
-
walletAddress: string;
|
|
25
23
|
email: string | null;
|
|
24
|
+
id: string;
|
|
25
|
+
metadata: Record<string, string | number | boolean | null>;
|
|
26
|
+
walletAddress: string;
|
|
26
27
|
externalRef: string | null;
|
|
27
28
|
displayName: string | null;
|
|
28
|
-
metadata: Record<string, string | number | boolean | null>;
|
|
29
29
|
firstSeenAt: string;
|
|
30
30
|
lastSeenAt: string;
|
|
31
31
|
}, {
|
|
32
|
-
id: string;
|
|
33
32
|
merchantId: string;
|
|
34
|
-
walletAddress: 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;
|
|
@@ -49,15 +49,15 @@ declare const upsertCustomerInputSchema: z.ZodObject<{
|
|
|
49
49
|
}, "strip", z.ZodTypeAny, {
|
|
50
50
|
walletAddress: string;
|
|
51
51
|
email?: string | undefined;
|
|
52
|
+
metadata?: Record<string, string | number | boolean | null> | undefined;
|
|
52
53
|
externalRef?: string | undefined;
|
|
53
54
|
displayName?: string | undefined;
|
|
54
|
-
metadata?: Record<string, string | number | boolean | null> | undefined;
|
|
55
55
|
}, {
|
|
56
56
|
walletAddress: string;
|
|
57
57
|
email?: string | undefined;
|
|
58
|
+
metadata?: Record<string, string | number | boolean | null> | undefined;
|
|
58
59
|
externalRef?: string | undefined;
|
|
59
60
|
displayName?: string | undefined;
|
|
60
|
-
metadata?: Record<string, string | number | boolean | null> | undefined;
|
|
61
61
|
}>;
|
|
62
62
|
type UpsertCustomerInput = z.input<typeof upsertCustomerInputSchema>;
|
|
63
63
|
type UpsertCustomerParsed = z.output<typeof upsertCustomerInputSchema>;
|
package/dist/events.cjs
CHANGED
|
@@ -236,16 +236,6 @@ zod.z.object({
|
|
|
236
236
|
trialDays: zod.z.number().int().min(0),
|
|
237
237
|
trialEndsAt: isoTimestampSchema.nullable()
|
|
238
238
|
});
|
|
239
|
-
zod.z.object({
|
|
240
|
-
planId: idSchema,
|
|
241
|
-
customer: zod.z.object({
|
|
242
|
-
walletAddress: evmAddressSchema,
|
|
243
|
-
email: zod.z.string().email().optional(),
|
|
244
|
-
externalRef: zod.z.string().max(120).optional()
|
|
245
|
-
}),
|
|
246
|
-
gracePeriodHours: zod.z.union([zod.z.literal(24), zod.z.literal(48), zod.z.literal(72)]).default(48),
|
|
247
|
-
metadata: metadataSchema.optional()
|
|
248
|
-
});
|
|
249
239
|
zod.z.object({
|
|
250
240
|
id: idSchema,
|
|
251
241
|
reason: zod.z.string().max(500).optional()
|