@strimz/shared-types 0.5.0 → 0.6.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.
@@ -33,8 +33,8 @@ declare const merchantSchema: z.ZodObject<{
33
33
  }, "strip", z.ZodTypeAny, {
34
34
  status: "active" | "suspended" | "closed";
35
35
  id: string;
36
- createdAt: string;
37
36
  walletAddress: string | null;
37
+ createdAt: string;
38
38
  email: string;
39
39
  metadata: Record<string, string | number | boolean | null>;
40
40
  updatedAt: string;
@@ -51,8 +51,8 @@ declare const merchantSchema: z.ZodObject<{
51
51
  }, {
52
52
  status: "active" | "suspended" | "closed";
53
53
  id: string;
54
- createdAt: string;
55
54
  walletAddress: string | null;
55
+ createdAt: string;
56
56
  email: string;
57
57
  updatedAt: string;
58
58
  onchainMerchantId: number | null;
@@ -345,8 +345,8 @@ declare const loginOutputSchema: z.ZodObject<{
345
345
  }, "strip", z.ZodTypeAny, {
346
346
  status: "active" | "suspended" | "closed";
347
347
  id: string;
348
- createdAt: string;
349
348
  walletAddress: string | null;
349
+ createdAt: string;
350
350
  email: string;
351
351
  metadata: Record<string, string | number | boolean | null>;
352
352
  updatedAt: string;
@@ -363,8 +363,8 @@ declare const loginOutputSchema: z.ZodObject<{
363
363
  }, {
364
364
  status: "active" | "suspended" | "closed";
365
365
  id: string;
366
- createdAt: string;
367
366
  walletAddress: string | null;
367
+ createdAt: string;
368
368
  email: string;
369
369
  updatedAt: string;
370
370
  onchainMerchantId: number | null;
@@ -385,8 +385,8 @@ declare const loginOutputSchema: z.ZodObject<{
385
385
  merchant: {
386
386
  status: "active" | "suspended" | "closed";
387
387
  id: string;
388
- createdAt: string;
389
388
  walletAddress: string | null;
389
+ createdAt: string;
390
390
  email: string;
391
391
  metadata: Record<string, string | number | boolean | null>;
392
392
  updatedAt: string;
@@ -407,8 +407,8 @@ declare const loginOutputSchema: z.ZodObject<{
407
407
  merchant: {
408
408
  status: "active" | "suspended" | "closed";
409
409
  id: string;
410
- createdAt: string;
411
410
  walletAddress: string | null;
411
+ createdAt: string;
412
412
  email: string;
413
413
  updatedAt: string;
414
414
  onchainMerchantId: number | null;
@@ -23,8 +23,8 @@ declare const storefrontSchema: z.ZodObject<{
23
23
  status: "archived" | "draft" | "published";
24
24
  id: string;
25
25
  merchantId: string;
26
- name: string;
27
26
  createdAt: string;
27
+ name: string;
28
28
  description: string | null;
29
29
  updatedAt: string;
30
30
  logoUrl: string | null;
@@ -36,8 +36,8 @@ declare const storefrontSchema: z.ZodObject<{
36
36
  status: "archived" | "draft" | "published";
37
37
  id: string;
38
38
  merchantId: string;
39
- name: string;
40
39
  createdAt: string;
40
+ name: string;
41
41
  description: string | null;
42
42
  updatedAt: string;
43
43
  logoUrl: string | null;
@@ -101,8 +101,8 @@ declare const storefrontProductSchema: z.ZodObject<{
101
101
  }, "strip", z.ZodTypeAny, {
102
102
  type: "subscription" | "one_time";
103
103
  id: string;
104
- name: string;
105
104
  createdAt: string;
105
+ name: string;
106
106
  currency: "USDC" | "EURC";
107
107
  description: string | null;
108
108
  updatedAt: string;
@@ -118,8 +118,8 @@ declare const storefrontProductSchema: z.ZodObject<{
118
118
  }, {
119
119
  type: "subscription" | "one_time";
120
120
  id: string;
121
- name: string;
122
121
  createdAt: string;
122
+ name: string;
123
123
  currency: "USDC" | "EURC";
124
124
  description: string | null;
125
125
  updatedAt: string;
@@ -23,8 +23,8 @@ declare const storefrontSchema: z.ZodObject<{
23
23
  status: "archived" | "draft" | "published";
24
24
  id: string;
25
25
  merchantId: string;
26
- name: string;
27
26
  createdAt: string;
27
+ name: string;
28
28
  description: string | null;
29
29
  updatedAt: string;
30
30
  logoUrl: string | null;
@@ -36,8 +36,8 @@ declare const storefrontSchema: z.ZodObject<{
36
36
  status: "archived" | "draft" | "published";
37
37
  id: string;
38
38
  merchantId: string;
39
- name: string;
40
39
  createdAt: string;
40
+ name: string;
41
41
  description: string | null;
42
42
  updatedAt: string;
43
43
  logoUrl: string | null;
@@ -101,8 +101,8 @@ declare const storefrontProductSchema: z.ZodObject<{
101
101
  }, "strip", z.ZodTypeAny, {
102
102
  type: "subscription" | "one_time";
103
103
  id: string;
104
- name: string;
105
104
  createdAt: string;
105
+ name: string;
106
106
  currency: "USDC" | "EURC";
107
107
  description: string | null;
108
108
  updatedAt: string;
@@ -118,8 +118,8 @@ declare const storefrontProductSchema: z.ZodObject<{
118
118
  }, {
119
119
  type: "subscription" | "one_time";
120
120
  id: string;
121
- name: string;
122
121
  createdAt: string;
122
+ name: string;
123
123
  currency: "USDC" | "EURC";
124
124
  description: string | null;
125
125
  updatedAt: string;
@@ -50,8 +50,8 @@ declare const subscriptionPlanSchema: z.ZodObject<{
50
50
  status: "active" | "archived";
51
51
  id: string;
52
52
  merchantId: string;
53
- name: string;
54
53
  createdAt: string;
54
+ name: string;
55
55
  metadata: Record<string, string | number | boolean | null>;
56
56
  chainMerchantId: string | null;
57
57
  tokenAddress: string | null;
@@ -67,8 +67,8 @@ declare const subscriptionPlanSchema: z.ZodObject<{
67
67
  status: "active" | "archived";
68
68
  id: string;
69
69
  merchantId: string;
70
- name: string;
71
70
  createdAt: string;
71
+ name: string;
72
72
  chainMerchantId: string | null;
73
73
  tokenAddress: string | null;
74
74
  amount: string;
@@ -278,8 +278,8 @@ declare const subscriptionChargeSchema: z.ZodObject<{
278
278
  status: "failed" | "pending" | "in_flight" | "succeeded" | "retrying" | "abandoned";
279
279
  id: string;
280
280
  merchantId: string;
281
- createdAt: string;
282
281
  subscriptionId: string;
282
+ createdAt: string;
283
283
  amount: string;
284
284
  currency: "USDC" | "EURC";
285
285
  onchainTxHash: string | null;
@@ -296,8 +296,8 @@ declare const subscriptionChargeSchema: z.ZodObject<{
296
296
  status: "failed" | "pending" | "in_flight" | "succeeded" | "retrying" | "abandoned";
297
297
  id: string;
298
298
  merchantId: string;
299
- createdAt: string;
300
299
  subscriptionId: string;
300
+ createdAt: string;
301
301
  amount: string;
302
302
  currency: "USDC" | "EURC";
303
303
  onchainTxHash: string | null;
@@ -50,8 +50,8 @@ declare const subscriptionPlanSchema: z.ZodObject<{
50
50
  status: "active" | "archived";
51
51
  id: string;
52
52
  merchantId: string;
53
- name: string;
54
53
  createdAt: string;
54
+ name: string;
55
55
  metadata: Record<string, string | number | boolean | null>;
56
56
  chainMerchantId: string | null;
57
57
  tokenAddress: string | null;
@@ -67,8 +67,8 @@ declare const subscriptionPlanSchema: z.ZodObject<{
67
67
  status: "active" | "archived";
68
68
  id: string;
69
69
  merchantId: string;
70
- name: string;
71
70
  createdAt: string;
71
+ name: string;
72
72
  chainMerchantId: string | null;
73
73
  tokenAddress: string | null;
74
74
  amount: string;
@@ -278,8 +278,8 @@ declare const subscriptionChargeSchema: z.ZodObject<{
278
278
  status: "failed" | "pending" | "in_flight" | "succeeded" | "retrying" | "abandoned";
279
279
  id: string;
280
280
  merchantId: string;
281
- createdAt: string;
282
281
  subscriptionId: string;
282
+ createdAt: string;
283
283
  amount: string;
284
284
  currency: "USDC" | "EURC";
285
285
  onchainTxHash: string | null;
@@ -296,8 +296,8 @@ declare const subscriptionChargeSchema: z.ZodObject<{
296
296
  status: "failed" | "pending" | "in_flight" | "succeeded" | "retrying" | "abandoned";
297
297
  id: string;
298
298
  merchantId: string;
299
- createdAt: string;
300
299
  subscriptionId: string;
300
+ createdAt: string;
301
301
  amount: string;
302
302
  currency: "USDC" | "EURC";
303
303
  onchainTxHash: string | null;
@@ -36,10 +36,10 @@ declare const transactionSchema: z.ZodObject<{
36
36
  status: "confirmed" | "failed" | "pending";
37
37
  id: string;
38
38
  merchantId: string;
39
- kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
40
- createdAt: string;
41
39
  sessionId: string | null;
42
40
  subscriptionId: string | null;
41
+ createdAt: string;
42
+ kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
43
43
  customerId: string | null;
44
44
  amount: string;
45
45
  currency: "USDC" | "EURC";
@@ -56,10 +56,10 @@ declare const transactionSchema: z.ZodObject<{
56
56
  status: "confirmed" | "failed" | "pending";
57
57
  id: string;
58
58
  merchantId: string;
59
- kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
60
- createdAt: string;
61
59
  sessionId: string | null;
62
60
  subscriptionId: string | null;
61
+ createdAt: string;
62
+ kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
63
63
  customerId: string | null;
64
64
  amount: string;
65
65
  currency: "USDC" | "EURC";
@@ -36,10 +36,10 @@ declare const transactionSchema: z.ZodObject<{
36
36
  status: "confirmed" | "failed" | "pending";
37
37
  id: string;
38
38
  merchantId: string;
39
- kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
40
- createdAt: string;
41
39
  sessionId: string | null;
42
40
  subscriptionId: string | null;
41
+ createdAt: string;
42
+ kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
43
43
  customerId: string | null;
44
44
  amount: string;
45
45
  currency: "USDC" | "EURC";
@@ -56,10 +56,10 @@ declare const transactionSchema: z.ZodObject<{
56
56
  status: "confirmed" | "failed" | "pending";
57
57
  id: string;
58
58
  merchantId: string;
59
- kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
60
- createdAt: string;
61
59
  sessionId: string | null;
62
60
  subscriptionId: string | null;
61
+ createdAt: string;
62
+ kind: "one_shot" | "subscription_charge" | "refund" | "invoice_payment" | "storefront_purchase";
63
63
  customerId: string | null;
64
64
  amount: string;
65
65
  currency: "USDC" | "EURC";
@@ -32,8 +32,8 @@ declare const webhookEndpointSchema: z.ZodObject<{
32
32
  status: "disabled" | "active";
33
33
  id: string;
34
34
  merchantId: string;
35
- mode: "test" | "live";
36
35
  createdAt: string;
36
+ mode: "test" | "live";
37
37
  description: string | null;
38
38
  updatedAt: string;
39
39
  url: string;
@@ -44,8 +44,8 @@ declare const webhookEndpointSchema: z.ZodObject<{
44
44
  status: "disabled" | "active";
45
45
  id: string;
46
46
  merchantId: string;
47
- mode: "test" | "live";
48
47
  createdAt: string;
48
+ mode: "test" | "live";
49
49
  description: string | null;
50
50
  updatedAt: string;
51
51
  url: string;
@@ -88,8 +88,8 @@ declare const createWebhookEndpointOutputSchema: z.ZodObject<{
88
88
  status: "disabled" | "active";
89
89
  id: string;
90
90
  merchantId: string;
91
- mode: "test" | "live";
92
91
  createdAt: string;
92
+ mode: "test" | "live";
93
93
  description: string | null;
94
94
  updatedAt: string;
95
95
  url: string;
@@ -100,8 +100,8 @@ declare const createWebhookEndpointOutputSchema: z.ZodObject<{
100
100
  status: "disabled" | "active";
101
101
  id: string;
102
102
  merchantId: string;
103
- mode: "test" | "live";
104
103
  createdAt: string;
104
+ mode: "test" | "live";
105
105
  description: string | null;
106
106
  updatedAt: string;
107
107
  url: string;
@@ -116,8 +116,8 @@ declare const createWebhookEndpointOutputSchema: z.ZodObject<{
116
116
  status: "disabled" | "active";
117
117
  id: string;
118
118
  merchantId: string;
119
- mode: "test" | "live";
120
119
  createdAt: string;
120
+ mode: "test" | "live";
121
121
  description: string | null;
122
122
  updatedAt: string;
123
123
  url: string;
@@ -131,8 +131,8 @@ declare const createWebhookEndpointOutputSchema: z.ZodObject<{
131
131
  status: "disabled" | "active";
132
132
  id: string;
133
133
  merchantId: string;
134
- mode: "test" | "live";
135
134
  createdAt: string;
135
+ mode: "test" | "live";
136
136
  description: string | null;
137
137
  updatedAt: string;
138
138
  url: string;
@@ -32,8 +32,8 @@ declare const webhookEndpointSchema: z.ZodObject<{
32
32
  status: "disabled" | "active";
33
33
  id: string;
34
34
  merchantId: string;
35
- mode: "test" | "live";
36
35
  createdAt: string;
36
+ mode: "test" | "live";
37
37
  description: string | null;
38
38
  updatedAt: string;
39
39
  url: string;
@@ -44,8 +44,8 @@ declare const webhookEndpointSchema: z.ZodObject<{
44
44
  status: "disabled" | "active";
45
45
  id: string;
46
46
  merchantId: string;
47
- mode: "test" | "live";
48
47
  createdAt: string;
48
+ mode: "test" | "live";
49
49
  description: string | null;
50
50
  updatedAt: string;
51
51
  url: string;
@@ -88,8 +88,8 @@ declare const createWebhookEndpointOutputSchema: z.ZodObject<{
88
88
  status: "disabled" | "active";
89
89
  id: string;
90
90
  merchantId: string;
91
- mode: "test" | "live";
92
91
  createdAt: string;
92
+ mode: "test" | "live";
93
93
  description: string | null;
94
94
  updatedAt: string;
95
95
  url: string;
@@ -100,8 +100,8 @@ declare const createWebhookEndpointOutputSchema: z.ZodObject<{
100
100
  status: "disabled" | "active";
101
101
  id: string;
102
102
  merchantId: string;
103
- mode: "test" | "live";
104
103
  createdAt: string;
104
+ mode: "test" | "live";
105
105
  description: string | null;
106
106
  updatedAt: string;
107
107
  url: string;
@@ -116,8 +116,8 @@ declare const createWebhookEndpointOutputSchema: z.ZodObject<{
116
116
  status: "disabled" | "active";
117
117
  id: string;
118
118
  merchantId: string;
119
- mode: "test" | "live";
120
119
  createdAt: string;
120
+ mode: "test" | "live";
121
121
  description: string | null;
122
122
  updatedAt: string;
123
123
  url: string;
@@ -131,8 +131,8 @@ declare const createWebhookEndpointOutputSchema: z.ZodObject<{
131
131
  status: "disabled" | "active";
132
132
  id: string;
133
133
  merchantId: string;
134
- mode: "test" | "live";
135
134
  createdAt: string;
135
+ mode: "test" | "live";
136
136
  description: string | null;
137
137
  updatedAt: string;
138
138
  url: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@strimz/shared-types",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "description": "Zod schemas and inferred TypeScript types for every Strimz platform entity, API input, and webhook event.",
5
5
  "license": "MIT",
6
6
  "author": "Strimz <hello@strimz.finance>",
package/src/api-keys.ts CHANGED
@@ -41,6 +41,10 @@ export const apiKeyScopeSchema = z.enum([
41
41
  // keys per sub-tenant.
42
42
  'api_keys_read',
43
43
  'api_keys_write',
44
+ 'merchants_read',
45
+ 'customers_read',
46
+ 'customers_write',
47
+ 'analytics_read',
44
48
  ])
45
49
  export type ApiKeyScope = z.infer<typeof apiKeyScopeSchema>
46
50