@strimz/shared-types 0.16.0 → 0.17.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,11 +28,11 @@ 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;
32
+ merchantId: string;
34
33
  createdAt: string;
35
34
  name: string;
35
+ mode: "test" | "live";
36
36
  kind: "secret" | "publishable";
37
37
  prefix: string;
38
38
  lastFour: string;
@@ -40,11 +40,11 @@ declare const apiKeySchema: z.ZodObject<{
40
40
  lastUsedAt: string | null;
41
41
  revokedAt: string | null;
42
42
  }, {
43
- mode: "test" | "live";
44
- merchantId: string;
45
43
  id: string;
44
+ merchantId: string;
46
45
  createdAt: string;
47
46
  name: string;
47
+ mode: "test" | "live";
48
48
  kind: "secret" | "publishable";
49
49
  prefix: string;
50
50
  lastFour: string;
@@ -59,13 +59,13 @@ 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;
63
+ mode: "test" | "live";
64
64
  kind: "secret" | "publishable";
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;
68
+ mode: "test" | "live";
69
69
  kind: "secret" | "publishable";
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
  }>;
@@ -85,11 +85,11 @@ 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;
89
+ merchantId: string;
91
90
  createdAt: string;
92
91
  name: string;
92
+ mode: "test" | "live";
93
93
  kind: "secret" | "publishable";
94
94
  prefix: string;
95
95
  lastFour: string;
@@ -97,11 +97,11 @@ declare const createApiKeyOutputSchema: z.ZodObject<{
97
97
  lastUsedAt: string | null;
98
98
  revokedAt: string | null;
99
99
  }, {
100
- mode: "test" | "live";
101
- merchantId: string;
102
100
  id: string;
101
+ merchantId: string;
103
102
  createdAt: string;
104
103
  name: string;
104
+ mode: "test" | "live";
105
105
  kind: "secret" | "publishable";
106
106
  prefix: string;
107
107
  lastFour: string;
@@ -114,11 +114,11 @@ 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;
118
+ merchantId: string;
120
119
  createdAt: string;
121
120
  name: string;
121
+ mode: "test" | "live";
122
122
  kind: "secret" | "publishable";
123
123
  prefix: string;
124
124
  lastFour: string;
@@ -129,11 +129,11 @@ declare const createApiKeyOutputSchema: z.ZodObject<{
129
129
  }, {
130
130
  secret: string;
131
131
  apiKey: {
132
- mode: "test" | "live";
133
- merchantId: string;
134
132
  id: string;
133
+ merchantId: string;
135
134
  createdAt: string;
136
135
  name: string;
136
+ mode: "test" | "live";
137
137
  kind: "secret" | "publishable";
138
138
  prefix: string;
139
139
  lastFour: string;
@@ -28,11 +28,11 @@ 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;
32
+ merchantId: string;
34
33
  createdAt: string;
35
34
  name: string;
35
+ mode: "test" | "live";
36
36
  kind: "secret" | "publishable";
37
37
  prefix: string;
38
38
  lastFour: string;
@@ -40,11 +40,11 @@ declare const apiKeySchema: z.ZodObject<{
40
40
  lastUsedAt: string | null;
41
41
  revokedAt: string | null;
42
42
  }, {
43
- mode: "test" | "live";
44
- merchantId: string;
45
43
  id: string;
44
+ merchantId: string;
46
45
  createdAt: string;
47
46
  name: string;
47
+ mode: "test" | "live";
48
48
  kind: "secret" | "publishable";
49
49
  prefix: string;
50
50
  lastFour: string;
@@ -59,13 +59,13 @@ 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;
63
+ mode: "test" | "live";
64
64
  kind: "secret" | "publishable";
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;
68
+ mode: "test" | "live";
69
69
  kind: "secret" | "publishable";
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
  }>;
@@ -85,11 +85,11 @@ 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;
89
+ merchantId: string;
91
90
  createdAt: string;
92
91
  name: string;
92
+ mode: "test" | "live";
93
93
  kind: "secret" | "publishable";
94
94
  prefix: string;
95
95
  lastFour: string;
@@ -97,11 +97,11 @@ declare const createApiKeyOutputSchema: z.ZodObject<{
97
97
  lastUsedAt: string | null;
98
98
  revokedAt: string | null;
99
99
  }, {
100
- mode: "test" | "live";
101
- merchantId: string;
102
100
  id: string;
101
+ merchantId: string;
103
102
  createdAt: string;
104
103
  name: string;
104
+ mode: "test" | "live";
105
105
  kind: "secret" | "publishable";
106
106
  prefix: string;
107
107
  lastFour: string;
@@ -114,11 +114,11 @@ 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;
118
+ merchantId: string;
120
119
  createdAt: string;
121
120
  name: string;
121
+ mode: "test" | "live";
122
122
  kind: "secret" | "publishable";
123
123
  prefix: string;
124
124
  lastFour: string;
@@ -129,11 +129,11 @@ declare const createApiKeyOutputSchema: z.ZodObject<{
129
129
  }, {
130
130
  secret: string;
131
131
  apiKey: {
132
- mode: "test" | "live";
133
- merchantId: string;
134
132
  id: string;
133
+ merchantId: string;
135
134
  createdAt: string;
136
135
  name: string;
136
+ mode: "test" | "live";
137
137
  kind: "secret" | "publishable";
138
138
  prefix: string;
139
139
  lastFour: string;
@@ -29,29 +29,29 @@ 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
- sessionId: string | null;
35
- createdAt: string;
36
33
  walletAddress: string;
37
- subscriptionId: string | null;
38
34
  provider: "trm" | "elliptic" | "disabled";
39
35
  riskScore: number | null;
40
36
  flags: string[];
41
37
  context: "merchant_onboarding" | "payer_checkout" | "subscriber_signup" | "refund_recipient";
38
+ merchantId: string | null;
39
+ sessionId: string | null;
40
+ subscriptionId: string | null;
42
41
  providerRequestId: string | null;
42
+ createdAt: string;
43
43
  }, {
44
44
  status: "clear" | "flagged" | "blocked" | "error";
45
- merchantId: string | null;
46
45
  id: string;
47
- sessionId: string | null;
48
- createdAt: string;
49
46
  walletAddress: string;
50
- subscriptionId: string | null;
51
47
  provider: "trm" | "elliptic" | "disabled";
52
48
  riskScore: number | null;
53
49
  context: "merchant_onboarding" | "payer_checkout" | "subscriber_signup" | "refund_recipient";
50
+ merchantId: string | null;
51
+ sessionId: string | null;
52
+ subscriptionId: string | null;
54
53
  providerRequestId: string | null;
54
+ createdAt: string;
55
55
  flags?: string[] | undefined;
56
56
  }>;
57
57
  type ComplianceLog = z.infer<typeof complianceLogSchema>;
@@ -29,29 +29,29 @@ 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
- sessionId: string | null;
35
- createdAt: string;
36
33
  walletAddress: string;
37
- subscriptionId: string | null;
38
34
  provider: "trm" | "elliptic" | "disabled";
39
35
  riskScore: number | null;
40
36
  flags: string[];
41
37
  context: "merchant_onboarding" | "payer_checkout" | "subscriber_signup" | "refund_recipient";
38
+ merchantId: string | null;
39
+ sessionId: string | null;
40
+ subscriptionId: string | null;
42
41
  providerRequestId: string | null;
42
+ createdAt: string;
43
43
  }, {
44
44
  status: "clear" | "flagged" | "blocked" | "error";
45
- merchantId: string | null;
46
45
  id: string;
47
- sessionId: string | null;
48
- createdAt: string;
49
46
  walletAddress: string;
50
- subscriptionId: string | null;
51
47
  provider: "trm" | "elliptic" | "disabled";
52
48
  riskScore: number | null;
53
49
  context: "merchant_onboarding" | "payer_checkout" | "subscriber_signup" | "refund_recipient";
50
+ merchantId: string | null;
51
+ sessionId: string | null;
52
+ subscriptionId: string | null;
54
53
  providerRequestId: string | null;
54
+ createdAt: string;
55
55
  flags?: string[] | undefined;
56
56
  }>;
57
57
  type ComplianceLog = z.infer<typeof complianceLogSchema>;
@@ -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;
25
- metadata: Record<string, string | number | boolean | null>;
26
23
  walletAddress: string;
24
+ merchantId: string;
25
+ metadata: Record<string, string | number | boolean | null>;
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;
35
33
  walletAddress: string;
34
+ merchantId: 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
  }>;
@@ -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;
25
- metadata: Record<string, string | number | boolean | null>;
26
23
  walletAddress: string;
24
+ merchantId: string;
25
+ metadata: Record<string, string | number | boolean | null>;
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;
35
33
  walletAddress: string;
34
+ merchantId: 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
  }>;