@strimz/shared-types 0.13.1 → 0.14.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 +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.cjs +1 -25
- package/dist/events.cjs.map +1 -1
- package/dist/events.d.cts +1343 -2149
- package/dist/events.d.ts +1343 -2149
- package/dist/events.js +2 -23
- package/dist/events.js.map +1 -1
- package/dist/index.cjs +0 -24
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +15 -15
- package/dist/index.d.ts +15 -15
- package/dist/index.js +1 -22
- package/dist/index.js.map +1 -1
- 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.cjs +0 -3
- package/dist/webhooks.cjs.map +1 -1
- package/dist/webhooks.d.cts +40 -40
- package/dist/webhooks.d.ts +40 -40
- package/dist/webhooks.js +0 -3
- package/dist/webhooks.js.map +1 -1
- package/package.json +2 -2
- package/src/events.ts +1 -24
- package/src/webhooks.ts +0 -3
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,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
|
-
id: string;
|
|
33
32
|
merchantId: string | null;
|
|
34
|
-
|
|
33
|
+
id: string;
|
|
35
34
|
sessionId: string | null;
|
|
35
|
+
createdAt: string;
|
|
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
|
-
id: string;
|
|
46
45
|
merchantId: string | null;
|
|
47
|
-
|
|
46
|
+
id: string;
|
|
48
47
|
sessionId: string | null;
|
|
48
|
+
createdAt: string;
|
|
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
|
-
id: string;
|
|
33
32
|
merchantId: string | null;
|
|
34
|
-
|
|
33
|
+
id: string;
|
|
35
34
|
sessionId: string | null;
|
|
35
|
+
createdAt: string;
|
|
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
|
-
id: string;
|
|
46
45
|
merchantId: string | null;
|
|
47
|
-
|
|
46
|
+
id: string;
|
|
48
47
|
sessionId: string | null;
|
|
48
|
+
createdAt: string;
|
|
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
|
-
id: string;
|
|
23
22
|
merchantId: string;
|
|
23
|
+
email: string | null;
|
|
24
|
+
id: string;
|
|
24
25
|
metadata: Record<string, string | number | boolean | null>;
|
|
25
26
|
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
|
-
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;
|
|
@@ -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
22
|
merchantId: string;
|
|
23
|
+
email: string | null;
|
|
24
|
+
id: string;
|
|
24
25
|
metadata: Record<string, string | number | boolean | null>;
|
|
25
26
|
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
|
-
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;
|
|
@@ -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
|
@@ -474,7 +474,7 @@ var agentActionTypeSchema = zod.z.enum([
|
|
|
474
474
|
"commerce_job_disputed"
|
|
475
475
|
]);
|
|
476
476
|
var agentActionOutcomeSchema = zod.z.enum(["success", "failure", "pending", "skipped"]);
|
|
477
|
-
|
|
477
|
+
zod.z.object({
|
|
478
478
|
id: idSchema,
|
|
479
479
|
merchantId: idSchema,
|
|
480
480
|
capability: agentCapabilitySchema,
|
|
@@ -553,16 +553,13 @@ var webhookEventNameSchema = zod.z.enum([
|
|
|
553
553
|
"subscription.charged",
|
|
554
554
|
"subscription.charge_failed",
|
|
555
555
|
"subscription.recovery_attempt",
|
|
556
|
-
"subscription.recovery_outcome",
|
|
557
556
|
"subscription.cancelled",
|
|
558
557
|
"subscription.lapsed",
|
|
559
558
|
"refund.created",
|
|
560
559
|
"refund.completed",
|
|
561
|
-
"refund.failed",
|
|
562
560
|
"invoice.created",
|
|
563
561
|
"invoice.paid",
|
|
564
562
|
"invoice.overdue",
|
|
565
|
-
"agent.action_executed",
|
|
566
563
|
"agent.job_proposed",
|
|
567
564
|
"agent.job_completed",
|
|
568
565
|
"agent.job_disputed",
|
|
@@ -659,13 +656,6 @@ var subscriptionRecoveryAttemptEventSchema = envelope(
|
|
|
659
656
|
"subscription.recovery_attempt",
|
|
660
657
|
zod.z.object({ subscription: subscriptionSchema, attemptNumber: zod.z.number().int().min(1) })
|
|
661
658
|
);
|
|
662
|
-
var subscriptionRecoveryOutcomeEventSchema = envelope(
|
|
663
|
-
"subscription.recovery_outcome",
|
|
664
|
-
zod.z.object({
|
|
665
|
-
subscription: subscriptionSchema,
|
|
666
|
-
outcome: zod.z.enum(["recovered", "churned"])
|
|
667
|
-
})
|
|
668
|
-
);
|
|
669
659
|
var subscriptionCancelledEventSchema = envelope(
|
|
670
660
|
"subscription.cancelled",
|
|
671
661
|
subscriptionSchema
|
|
@@ -676,20 +666,12 @@ var refundCompletedEventSchema = envelope(
|
|
|
676
666
|
"refund.completed",
|
|
677
667
|
zod.z.object({ refund: refundSchema, transaction: transactionSchema })
|
|
678
668
|
);
|
|
679
|
-
var refundFailedEventSchema = envelope(
|
|
680
|
-
"refund.failed",
|
|
681
|
-
zod.z.object({ refund: refundSchema, reason: zod.z.string() })
|
|
682
|
-
);
|
|
683
669
|
var invoiceCreatedEventSchema = envelope("invoice.created", invoiceSchema);
|
|
684
670
|
var invoicePaidEventSchema = envelope(
|
|
685
671
|
"invoice.paid",
|
|
686
672
|
zod.z.object({ invoice: invoiceSchema, transaction: transactionSchema })
|
|
687
673
|
);
|
|
688
674
|
var invoiceOverdueEventSchema = envelope("invoice.overdue", invoiceSchema);
|
|
689
|
-
var agentActionExecutedEventSchema = envelope(
|
|
690
|
-
"agent.action_executed",
|
|
691
|
-
agentActivityLogSchema
|
|
692
|
-
);
|
|
693
675
|
var agentJobProposedEventSchema = envelope("agent.job_proposed", agentJobSchema);
|
|
694
676
|
var agentJobCompletedEventSchema = envelope("agent.job_completed", agentJobSchema);
|
|
695
677
|
var agentJobDisputedEventSchema = envelope("agent.job_disputed", agentJobSchema);
|
|
@@ -709,16 +691,13 @@ var webhookEventSchema = zod.z.discriminatedUnion("type", [
|
|
|
709
691
|
subscriptionChargedEventSchema,
|
|
710
692
|
subscriptionChargeFailedEventSchema,
|
|
711
693
|
subscriptionRecoveryAttemptEventSchema,
|
|
712
|
-
subscriptionRecoveryOutcomeEventSchema,
|
|
713
694
|
subscriptionCancelledEventSchema,
|
|
714
695
|
subscriptionLapsedEventSchema,
|
|
715
696
|
refundCreatedEventSchema,
|
|
716
697
|
refundCompletedEventSchema,
|
|
717
|
-
refundFailedEventSchema,
|
|
718
698
|
invoiceCreatedEventSchema,
|
|
719
699
|
invoicePaidEventSchema,
|
|
720
700
|
invoiceOverdueEventSchema,
|
|
721
|
-
agentActionExecutedEventSchema,
|
|
722
701
|
agentJobProposedEventSchema,
|
|
723
702
|
agentJobCompletedEventSchema,
|
|
724
703
|
agentJobDisputedEventSchema,
|
|
@@ -726,7 +705,6 @@ var webhookEventSchema = zod.z.discriminatedUnion("type", [
|
|
|
726
705
|
complianceWalletBlockedEventSchema
|
|
727
706
|
]);
|
|
728
707
|
|
|
729
|
-
exports.agentActionExecutedEventSchema = agentActionExecutedEventSchema;
|
|
730
708
|
exports.agentJobCompletedEventSchema = agentJobCompletedEventSchema;
|
|
731
709
|
exports.agentJobDisputedEventSchema = agentJobDisputedEventSchema;
|
|
732
710
|
exports.agentJobProposedEventSchema = agentJobProposedEventSchema;
|
|
@@ -740,14 +718,12 @@ exports.paymentCreatedEventSchema = paymentCreatedEventSchema;
|
|
|
740
718
|
exports.paymentFailedEventSchema = paymentFailedEventSchema;
|
|
741
719
|
exports.refundCompletedEventSchema = refundCompletedEventSchema;
|
|
742
720
|
exports.refundCreatedEventSchema = refundCreatedEventSchema;
|
|
743
|
-
exports.refundFailedEventSchema = refundFailedEventSchema;
|
|
744
721
|
exports.subscriptionCancelledEventSchema = subscriptionCancelledEventSchema;
|
|
745
722
|
exports.subscriptionChargeFailedEventSchema = subscriptionChargeFailedEventSchema;
|
|
746
723
|
exports.subscriptionChargedEventSchema = subscriptionChargedEventSchema;
|
|
747
724
|
exports.subscriptionCreatedEventSchema = subscriptionCreatedEventSchema;
|
|
748
725
|
exports.subscriptionLapsedEventSchema = subscriptionLapsedEventSchema;
|
|
749
726
|
exports.subscriptionRecoveryAttemptEventSchema = subscriptionRecoveryAttemptEventSchema;
|
|
750
|
-
exports.subscriptionRecoveryOutcomeEventSchema = subscriptionRecoveryOutcomeEventSchema;
|
|
751
727
|
exports.webhookEventNameSchema = webhookEventNameSchema;
|
|
752
728
|
exports.webhookEventSchema = webhookEventSchema;
|
|
753
729
|
//# sourceMappingURL=events.cjs.map
|