@strimz/shared-types 0.7.0 → 0.8.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.
@@ -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
- id: string;
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
- id: string;
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
- id: string;
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
- id: string;
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
- id: string;
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
- id: string;
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
  };
@@ -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
- id: string;
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
- id: string;
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
- id: string;
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
- id: string;
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
- id: string;
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
- id: string;
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
  };
@@ -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
  }>;
@@ -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
  }>;
@@ -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>;
@@ -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>;