@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/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
|
-
mode: "test" | "live";
|
|
32
|
-
merchantId: string;
|
|
33
31
|
id: string;
|
|
34
|
-
|
|
32
|
+
merchantId: string;
|
|
35
33
|
name: string;
|
|
36
34
|
kind: "secret" | "publishable";
|
|
35
|
+
mode: "test" | "live";
|
|
37
36
|
prefix: string;
|
|
38
37
|
lastFour: string;
|
|
39
38
|
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
|
-
mode: "test" | "live";
|
|
44
|
-
merchantId: string;
|
|
45
43
|
id: string;
|
|
46
|
-
|
|
44
|
+
merchantId: string;
|
|
47
45
|
name: string;
|
|
48
46
|
kind: "secret" | "publishable";
|
|
47
|
+
mode: "test" | "live";
|
|
49
48
|
prefix: string;
|
|
50
49
|
lastFour: string;
|
|
51
50
|
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";
|
|
63
62
|
name: string;
|
|
64
63
|
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";
|
|
68
67
|
name: string;
|
|
69
68
|
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
|
-
mode: "test" | "live";
|
|
89
|
-
merchantId: string;
|
|
90
88
|
id: string;
|
|
91
|
-
|
|
89
|
+
merchantId: string;
|
|
92
90
|
name: string;
|
|
93
91
|
kind: "secret" | "publishable";
|
|
92
|
+
mode: "test" | "live";
|
|
94
93
|
prefix: string;
|
|
95
94
|
lastFour: string;
|
|
96
95
|
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
|
-
mode: "test" | "live";
|
|
101
|
-
merchantId: string;
|
|
102
100
|
id: string;
|
|
103
|
-
|
|
101
|
+
merchantId: string;
|
|
104
102
|
name: string;
|
|
105
103
|
kind: "secret" | "publishable";
|
|
104
|
+
mode: "test" | "live";
|
|
106
105
|
prefix: string;
|
|
107
106
|
lastFour: string;
|
|
108
107
|
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
|
-
mode: "test" | "live";
|
|
118
|
-
merchantId: string;
|
|
119
117
|
id: string;
|
|
120
|
-
|
|
118
|
+
merchantId: string;
|
|
121
119
|
name: string;
|
|
122
120
|
kind: "secret" | "publishable";
|
|
121
|
+
mode: "test" | "live";
|
|
123
122
|
prefix: string;
|
|
124
123
|
lastFour: string;
|
|
125
124
|
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
|
-
mode: "test" | "live";
|
|
133
|
-
merchantId: string;
|
|
134
132
|
id: string;
|
|
135
|
-
|
|
133
|
+
merchantId: string;
|
|
136
134
|
name: string;
|
|
137
135
|
kind: "secret" | "publishable";
|
|
136
|
+
mode: "test" | "live";
|
|
138
137
|
prefix: string;
|
|
139
138
|
lastFour: string;
|
|
140
139
|
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
|
-
mode: "test" | "live";
|
|
32
|
-
merchantId: string;
|
|
33
31
|
id: string;
|
|
34
|
-
|
|
32
|
+
merchantId: string;
|
|
35
33
|
name: string;
|
|
36
34
|
kind: "secret" | "publishable";
|
|
35
|
+
mode: "test" | "live";
|
|
37
36
|
prefix: string;
|
|
38
37
|
lastFour: string;
|
|
39
38
|
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
|
-
mode: "test" | "live";
|
|
44
|
-
merchantId: string;
|
|
45
43
|
id: string;
|
|
46
|
-
|
|
44
|
+
merchantId: string;
|
|
47
45
|
name: string;
|
|
48
46
|
kind: "secret" | "publishable";
|
|
47
|
+
mode: "test" | "live";
|
|
49
48
|
prefix: string;
|
|
50
49
|
lastFour: string;
|
|
51
50
|
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";
|
|
63
62
|
name: string;
|
|
64
63
|
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";
|
|
68
67
|
name: string;
|
|
69
68
|
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
|
-
mode: "test" | "live";
|
|
89
|
-
merchantId: string;
|
|
90
88
|
id: string;
|
|
91
|
-
|
|
89
|
+
merchantId: string;
|
|
92
90
|
name: string;
|
|
93
91
|
kind: "secret" | "publishable";
|
|
92
|
+
mode: "test" | "live";
|
|
94
93
|
prefix: string;
|
|
95
94
|
lastFour: string;
|
|
96
95
|
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
|
-
mode: "test" | "live";
|
|
101
|
-
merchantId: string;
|
|
102
100
|
id: string;
|
|
103
|
-
|
|
101
|
+
merchantId: string;
|
|
104
102
|
name: string;
|
|
105
103
|
kind: "secret" | "publishable";
|
|
104
|
+
mode: "test" | "live";
|
|
106
105
|
prefix: string;
|
|
107
106
|
lastFour: string;
|
|
108
107
|
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
|
-
mode: "test" | "live";
|
|
118
|
-
merchantId: string;
|
|
119
117
|
id: string;
|
|
120
|
-
|
|
118
|
+
merchantId: string;
|
|
121
119
|
name: string;
|
|
122
120
|
kind: "secret" | "publishable";
|
|
121
|
+
mode: "test" | "live";
|
|
123
122
|
prefix: string;
|
|
124
123
|
lastFour: string;
|
|
125
124
|
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
|
-
mode: "test" | "live";
|
|
133
|
-
merchantId: string;
|
|
134
132
|
id: string;
|
|
135
|
-
|
|
133
|
+
merchantId: string;
|
|
136
134
|
name: string;
|
|
137
135
|
kind: "secret" | "publishable";
|
|
136
|
+
mode: "test" | "live";
|
|
138
137
|
prefix: string;
|
|
139
138
|
lastFour: string;
|
|
140
139
|
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,10 +29,10 @@ 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;
|
|
33
32
|
id: string;
|
|
34
|
-
|
|
33
|
+
merchantId: string | null;
|
|
35
34
|
createdAt: string;
|
|
35
|
+
sessionId: string | null;
|
|
36
36
|
walletAddress: string;
|
|
37
37
|
subscriptionId: string | null;
|
|
38
38
|
provider: "trm" | "elliptic" | "disabled";
|
|
@@ -42,10 +42,10 @@ declare const complianceLogSchema: z.ZodObject<{
|
|
|
42
42
|
providerRequestId: string | null;
|
|
43
43
|
}, {
|
|
44
44
|
status: "clear" | "flagged" | "blocked" | "error";
|
|
45
|
-
merchantId: string | null;
|
|
46
45
|
id: string;
|
|
47
|
-
|
|
46
|
+
merchantId: string | null;
|
|
48
47
|
createdAt: string;
|
|
48
|
+
sessionId: string | null;
|
|
49
49
|
walletAddress: string;
|
|
50
50
|
subscriptionId: string | null;
|
|
51
51
|
provider: "trm" | "elliptic" | "disabled";
|
package/dist/compliance.d.ts
CHANGED
|
@@ -29,10 +29,10 @@ 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;
|
|
33
32
|
id: string;
|
|
34
|
-
|
|
33
|
+
merchantId: string | null;
|
|
35
34
|
createdAt: string;
|
|
35
|
+
sessionId: string | null;
|
|
36
36
|
walletAddress: string;
|
|
37
37
|
subscriptionId: string | null;
|
|
38
38
|
provider: "trm" | "elliptic" | "disabled";
|
|
@@ -42,10 +42,10 @@ declare const complianceLogSchema: z.ZodObject<{
|
|
|
42
42
|
providerRequestId: string | null;
|
|
43
43
|
}, {
|
|
44
44
|
status: "clear" | "flagged" | "blocked" | "error";
|
|
45
|
-
merchantId: string | null;
|
|
46
45
|
id: string;
|
|
47
|
-
|
|
46
|
+
merchantId: string | null;
|
|
48
47
|
createdAt: string;
|
|
48
|
+
sessionId: string | null;
|
|
49
49
|
walletAddress: string;
|
|
50
50
|
subscriptionId: string | null;
|
|
51
51
|
provider: "trm" | "elliptic" | "disabled";
|
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
|
-
merchantId: string;
|
|
23
|
-
email: string | null;
|
|
24
22
|
id: string;
|
|
23
|
+
merchantId: string;
|
|
25
24
|
metadata: Record<string, string | number | boolean | null>;
|
|
26
25
|
walletAddress: string;
|
|
26
|
+
email: string | null;
|
|
27
27
|
externalRef: string | null;
|
|
28
28
|
displayName: string | null;
|
|
29
29
|
firstSeenAt: string;
|
|
30
30
|
lastSeenAt: string;
|
|
31
31
|
}, {
|
|
32
|
-
merchantId: string;
|
|
33
|
-
email: string | null;
|
|
34
32
|
id: string;
|
|
33
|
+
merchantId: string;
|
|
35
34
|
walletAddress: string;
|
|
35
|
+
email: string | null;
|
|
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
|
-
email?: string | undefined;
|
|
52
51
|
metadata?: Record<string, string | number | boolean | null> | undefined;
|
|
52
|
+
email?: string | undefined;
|
|
53
53
|
externalRef?: string | undefined;
|
|
54
54
|
displayName?: string | undefined;
|
|
55
55
|
}, {
|
|
56
56
|
walletAddress: string;
|
|
57
|
-
email?: string | undefined;
|
|
58
57
|
metadata?: Record<string, string | number | boolean | null> | undefined;
|
|
58
|
+
email?: string | 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
|
-
merchantId: string;
|
|
23
|
-
email: string | null;
|
|
24
22
|
id: string;
|
|
23
|
+
merchantId: string;
|
|
25
24
|
metadata: Record<string, string | number | boolean | null>;
|
|
26
25
|
walletAddress: string;
|
|
26
|
+
email: string | null;
|
|
27
27
|
externalRef: string | null;
|
|
28
28
|
displayName: string | null;
|
|
29
29
|
firstSeenAt: string;
|
|
30
30
|
lastSeenAt: string;
|
|
31
31
|
}, {
|
|
32
|
-
merchantId: string;
|
|
33
|
-
email: string | null;
|
|
34
32
|
id: string;
|
|
33
|
+
merchantId: string;
|
|
35
34
|
walletAddress: string;
|
|
35
|
+
email: string | null;
|
|
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
|
-
email?: string | undefined;
|
|
52
51
|
metadata?: Record<string, string | number | boolean | null> | undefined;
|
|
52
|
+
email?: string | undefined;
|
|
53
53
|
externalRef?: string | undefined;
|
|
54
54
|
displayName?: string | undefined;
|
|
55
55
|
}, {
|
|
56
56
|
walletAddress: string;
|
|
57
|
-
email?: string | undefined;
|
|
58
57
|
metadata?: Record<string, string | number | boolean | null> | undefined;
|
|
58
|
+
email?: string | undefined;
|
|
59
59
|
externalRef?: string | undefined;
|
|
60
60
|
displayName?: string | undefined;
|
|
61
61
|
}>;
|