@payark/sdk-effect 0.1.6 → 0.1.9

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/index.d.mts CHANGED
@@ -1,14 +1,14 @@
1
1
  import * as effect_ParseResult from 'effect/ParseResult';
2
2
  import * as _effect_platform_HttpClientError from '@effect/platform/HttpClientError';
3
- import { AuthenticationError, InternalServerError, IndustrialError, NotFoundError, ConflictError } from './api-spec.mjs';
4
- export { AuthContext, AutomationGroup, CallbacksGroup, CheckoutGroup, CronSecurity, CustomersGroup, PayArkApi, PaymentsGroup, ProjectsGroup, RealtimeGroup, SecurityMiddleware, SubscriptionsGroup, TokensGroup, UserSecurity } from './api-spec.mjs';
3
+ import { AuthenticationError, InternalServerError, IndustrialError, NotFoundError, ConflictError, MandateViolationError as MandateViolationError$1, MandateExpiredError as MandateExpiredError$1 } from './api-spec.mjs';
4
+ export { AuthCallbackQueryParams, AuthContext, AuthGroup, AutomationGroup, CallbacksGroup, CheckoutGroup, CronSecurity, CustomersGroup, DiscoveryGroup, MandatesGroup, PayArkApi, PaymentCallbackQueryParams, PaymentsGroup, ProjectsGroup, RealtimeGroup, SandboxGroup, SecurityMiddleware, SigningKeysGroup, SubscriptionsGroup, TokensGroup, UserSecurity } from './api-spec.mjs';
5
5
  import * as _effect_platform_HttpApiError from '@effect/platform/HttpApiError';
6
6
  import * as _effect_platform_HttpClientResponse from '@effect/platform/HttpClientResponse';
7
7
  import * as effect_Brand from 'effect/Brand';
8
8
  import { Effect, ParseResult, Context, Layer } from 'effect';
9
9
  import { HttpClient } from '@effect/platform';
10
- import { PayArkConfig, CreateCheckoutParams, CheckoutSession, ListPaymentsParams, PaginatedResponse, Payment, Project } from './schemas.mjs';
11
- export { CallbackQueryParams, CheckoutSessionId, CreateCustomerParams, CreateSubscriptionParams, Customer, CustomerId, Email, Id, ListCustomersParams, ListSubscriptionsParams, Metadata, PaginationMeta, PayArkErrorBody, PaymentId, PaymentStatus, ProjectId, Provider, RealtimeTriggerPayload, Subscription, SubscriptionId, SubscriptionInterval, SubscriptionStatus, Timestamp, Timestamps, Token, TokenId, UpdateCustomerParams, WebhookEvent, WebhookEventType } from './schemas.mjs';
10
+ import { PayArkConfig, CreateCheckoutParams, CheckoutSession, ListPaymentsParams, PaginatedResponse, Payment, Project, CreateCustomerParams, Customer, ListCustomersParams, UpdateCustomerParams, CreateSubscriptionParams, Subscription, ListSubscriptionsParams, Mandate, Token } from './schemas.mjs';
11
+ export { AgentSession, AgentSessionId, CallbackQueryParams, CheckoutSessionId, CustomerId, CustomerLifecycle, Email, Id, MandateId, MandateStatus, MandateType, Metadata, PaginationMeta, PayArkErrorBody, PaymentId, PaymentStatus, ProjectId, Provider, RealtimeTriggerPayload, SubscriptionId, SubscriptionInterval, SubscriptionStatus, Timestamp, Timestamps, TokenId, WebhookEvent, WebhookEventType } from './schemas.mjs';
12
12
  import * as effect_Cause from 'effect/Cause';
13
13
  import * as effect_Types from 'effect/Types';
14
14
  import 'effect/Effect';
@@ -34,10 +34,40 @@ declare class PayArkEffectError extends PayArkEffectError_base<{
34
34
  readonly statusCode: number;
35
35
  readonly code: PayArkErrorCode;
36
36
  readonly raw?: PayArkErrorBody;
37
+ readonly localizedMessage?: string;
37
38
  }> {
38
39
  /** Human-readable representation for logging/debugging. */
39
40
  toString(): string;
40
41
  }
42
+ declare const MandateViolationError_base: new <A extends Record<string, any> = {}>(args: effect_Types.Equals<A, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }) => effect_Cause.YieldableError & {
43
+ readonly _tag: "MandateViolationError";
44
+ } & Readonly<A>;
45
+ /**
46
+ * Thrown when a transaction violates the bounds of an Intent Mandate.
47
+ * (e.g., amount too high, vendor not permitted, status already consumed)
48
+ */
49
+ declare class MandateViolationError extends MandateViolationError_base<{
50
+ readonly message: string;
51
+ readonly mandateId?: string;
52
+ readonly raw?: any;
53
+ }> {
54
+ readonly statusCode = 403;
55
+ readonly code = "mandate_violation";
56
+ }
57
+ declare const MandateExpiredError_base: new <A extends Record<string, any> = {}>(args: effect_Types.Equals<A, {}> extends true ? void : { readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }) => effect_Cause.YieldableError & {
58
+ readonly _tag: "MandateExpiredError";
59
+ } & Readonly<A>;
60
+ /**
61
+ * Thrown when a mandate is presented outside of its valid time window.
62
+ */
63
+ declare class MandateExpiredError extends MandateExpiredError_base<{
64
+ readonly message: string;
65
+ readonly mandateId: string;
66
+ readonly expiredAt: string;
67
+ }> {
68
+ readonly statusCode = 410;
69
+ readonly code = "mandate_expired";
70
+ }
41
71
 
42
72
  /**
43
73
  * Effect-based resource for PayArk Checkout.
@@ -90,6 +120,162 @@ declare class ProjectsEffect {
90
120
  list(): Effect.Effect<readonly Project[], PayArkEffectError | ParseResult.ParseError, HttpClient.HttpClient>;
91
121
  }
92
122
 
123
+ /**
124
+ * Effect-based resource for PayArk Customers.
125
+ */
126
+ declare class CustomersEffect {
127
+ private readonly config;
128
+ constructor(config: PayArkConfig);
129
+ /**
130
+ * Create a new customer for a project.
131
+ */
132
+ create(params: CreateCustomerParams): Effect.Effect<Customer, PayArkEffectError | ParseResult.ParseError, HttpClient.HttpClient>;
133
+ /**
134
+ * List customers for the authenticated project.
135
+ */
136
+ list(params?: ListCustomersParams): Effect.Effect<PaginatedResponse<Customer>, PayArkEffectError | ParseResult.ParseError, HttpClient.HttpClient>;
137
+ /**
138
+ * Retrieve a single customer by ID.
139
+ */
140
+ retrieve(id: string): Effect.Effect<Customer, PayArkEffectError | ParseResult.ParseError, HttpClient.HttpClient>;
141
+ /**
142
+ * Update a customer.
143
+ */
144
+ update(id: string, params: UpdateCustomerParams): Effect.Effect<Customer, PayArkEffectError | ParseResult.ParseError, HttpClient.HttpClient>;
145
+ /**
146
+ * Delete a customer.
147
+ */
148
+ delete(id: string): Effect.Effect<void, PayArkEffectError | ParseResult.ParseError, HttpClient.HttpClient>;
149
+ }
150
+
151
+ /**
152
+ * Effect-based resource for PayArk Subscriptions.
153
+ */
154
+ declare class SubscriptionsEffect {
155
+ private readonly config;
156
+ constructor(config: PayArkConfig);
157
+ /**
158
+ * Create a new subscription.
159
+ */
160
+ create(params: CreateSubscriptionParams): Effect.Effect<Subscription, PayArkEffectError | ParseResult.ParseError, HttpClient.HttpClient>;
161
+ /**
162
+ * List subscriptions for the authenticated project.
163
+ */
164
+ list(params?: ListSubscriptionsParams): Effect.Effect<PaginatedResponse<Subscription>, PayArkEffectError | ParseResult.ParseError, HttpClient.HttpClient>;
165
+ /**
166
+ * Retrieve a single subscription by ID.
167
+ */
168
+ retrieve(id: string): Effect.Effect<Subscription, PayArkEffectError | ParseResult.ParseError, HttpClient.HttpClient>;
169
+ /**
170
+ * Cancel a subscription.
171
+ */
172
+ cancel(id: string): Effect.Effect<Subscription, PayArkEffectError | ParseResult.ParseError, HttpClient.HttpClient>;
173
+ /**
174
+ * Activate a subscription (returns payment info).
175
+ */
176
+ activate(id: string, params: {
177
+ provider: string;
178
+ returnUrl: string;
179
+ cancelUrl?: string;
180
+ }): Effect.Effect<{
181
+ checkout_url: string;
182
+ payment_id: string;
183
+ }, PayArkEffectError | ParseResult.ParseError, HttpClient.HttpClient>;
184
+ }
185
+
186
+ /**
187
+ * Effect-based resource for PayArk Mandates.
188
+ */
189
+ declare class MandatesEffect {
190
+ private readonly config;
191
+ constructor(config: PayArkConfig);
192
+ /**
193
+ * Register a mandate intent.
194
+ */
195
+ registerIntent(params: {
196
+ principal_id: string;
197
+ max_amount: number;
198
+ currency: string;
199
+ valid_until: string;
200
+ permitted_vendors?: string[];
201
+ credential_jwt: string;
202
+ public_key: string;
203
+ customer_id?: string;
204
+ }): Effect.Effect<Mandate, PayArkEffectError | ParseResult.ParseError, HttpClient.HttpClient>;
205
+ /**
206
+ * Retrieve a mandate.
207
+ */
208
+ retrieve(id: string): Effect.Effect<Mandate, PayArkEffectError | ParseResult.ParseError, HttpClient.HttpClient>;
209
+ }
210
+
211
+ /**
212
+ * Effect-based resource for PayArk Tokens.
213
+ */
214
+ declare class TokensEffect {
215
+ private readonly config;
216
+ constructor(config: PayArkConfig);
217
+ /**
218
+ * Create a new token.
219
+ */
220
+ create(params: {
221
+ name: string;
222
+ scopes?: string[];
223
+ expires_in_days?: number;
224
+ }): Effect.Effect<Token & {
225
+ token: string;
226
+ }, PayArkEffectError | ParseResult.ParseError, HttpClient.HttpClient>;
227
+ /**
228
+ * List all tokens.
229
+ */
230
+ list(): Effect.Effect<readonly Token[], PayArkEffectError | ParseResult.ParseError, HttpClient.HttpClient>;
231
+ /**
232
+ * Delete/revoke a token.
233
+ */
234
+ delete(id: string): Effect.Effect<void, PayArkEffectError | ParseResult.ParseError, HttpClient.HttpClient>;
235
+ }
236
+
237
+ /**
238
+ * Effect-based resource for PayArk Realtime.
239
+ */
240
+ declare class RealtimeEffect {
241
+ private readonly config;
242
+ constructor(config: PayArkConfig);
243
+ /**
244
+ * Manually trigger a realtime event.
245
+ */
246
+ trigger(params: {
247
+ event: string;
248
+ data?: any;
249
+ token?: string;
250
+ }): Effect.Effect<{
251
+ status: string;
252
+ event?: string;
253
+ }, PayArkEffectError | ParseResult.ParseError, HttpClient.HttpClient>;
254
+ }
255
+
256
+ /**
257
+ * Effect-based resource for PayArk Automation.
258
+ */
259
+ declare class AutomationEffect {
260
+ private readonly config;
261
+ constructor(config: PayArkConfig);
262
+ /**
263
+ * Send reminders.
264
+ */
265
+ reminders(): Effect.Effect<{
266
+ message: string;
267
+ count: number;
268
+ }, PayArkEffectError | ParseResult.ParseError, HttpClient.HttpClient>;
269
+ /**
270
+ * Run reaper.
271
+ */
272
+ reaper(): Effect.Effect<{
273
+ message: string;
274
+ count: number;
275
+ purged_projects: number;
276
+ }, PayArkEffectError | ParseResult.ParseError, HttpClient.HttpClient>;
277
+ }
278
+
93
279
  /**
94
280
  * The Industrial SDK Client.
95
281
  * Automatically derived from the PayArk HttpApi specification.
@@ -103,22 +289,25 @@ declare const makeClient: (options?: {
103
289
  readonly checkout: {
104
290
  readonly create: <WithResponse extends boolean = false>(request: {
105
291
  readonly payload: {
106
- readonly amount?: (number & effect_Brand.Brand<"MinorUnitsInt">) | undefined;
292
+ readonly amount?: (number & effect_Brand.Brand<"NprAmount">) | undefined;
107
293
  readonly currency: string;
108
- readonly provider: "esewa" | "khalti" | "connectips" | "imepay" | "fonepay" | "sandbox";
294
+ readonly provider: "esewa" | "khalti" | "hamropay" | "connectips" | "imepay" | "fonepay" | "sandbox";
109
295
  readonly returnUrl: string & effect_Brand.Brand<"UrlString">;
110
296
  readonly cancelUrl?: (string & effect_Brand.Brand<"UrlString">) | undefined;
111
297
  readonly metadata?: {
112
298
  readonly [x: string]: any;
113
299
  } | undefined;
114
300
  readonly subscriptionId?: (string & effect_Brand.Brand<"SubscriptionId">) | undefined;
301
+ readonly customerId?: (string & effect_Brand.Brand<"CustomerId">) | undefined;
302
+ readonly mandate_id?: (string & effect_Brand.Brand<"MandateId">) | undefined;
115
303
  };
116
304
  readonly withResponse?: WithResponse | undefined;
117
305
  }) => Effect.Effect<WithResponse extends true ? [{
118
306
  readonly id: string & effect_Brand.Brand<"CheckoutSessionId">;
119
307
  readonly checkout_url: string & effect_Brand.Brand<"UrlString">;
308
+ readonly qr_string?: string | undefined;
120
309
  readonly payment_method: {
121
- readonly type: "esewa" | "khalti" | "connectips" | "imepay" | "fonepay" | "sandbox";
310
+ readonly type: "esewa" | "khalti" | "hamropay" | "connectips" | "imepay" | "fonepay" | "sandbox";
122
311
  readonly url?: (string & effect_Brand.Brand<"UrlString">) | undefined;
123
312
  readonly method?: "POST" | "GET" | undefined;
124
313
  readonly fields?: {
@@ -128,15 +317,16 @@ declare const makeClient: (options?: {
128
317
  }, _effect_platform_HttpClientResponse.HttpClientResponse] : {
129
318
  readonly id: string & effect_Brand.Brand<"CheckoutSessionId">;
130
319
  readonly checkout_url: string & effect_Brand.Brand<"UrlString">;
320
+ readonly qr_string?: string | undefined;
131
321
  readonly payment_method: {
132
- readonly type: "esewa" | "khalti" | "connectips" | "imepay" | "fonepay" | "sandbox";
322
+ readonly type: "esewa" | "khalti" | "hamropay" | "connectips" | "imepay" | "fonepay" | "sandbox";
133
323
  readonly url?: (string & effect_Brand.Brand<"UrlString">) | undefined;
134
324
  readonly method?: "POST" | "GET" | undefined;
135
325
  readonly fields?: {
136
326
  readonly [x: string]: string;
137
327
  } | undefined;
138
328
  };
139
- }, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
329
+ }, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
140
330
  };
141
331
  readonly payments: {
142
332
  readonly list: <WithResponse extends boolean = false>(request: {
@@ -153,6 +343,7 @@ declare const makeClient: (options?: {
153
343
  readonly currency: string;
154
344
  readonly status: "pending" | "success" | "failed";
155
345
  readonly project_id: string & effect_Brand.Brand<"ProjectId">;
346
+ readonly customer_id?: (string & effect_Brand.Brand<"CustomerId">) | null | undefined;
156
347
  readonly provider_ref?: string | null | undefined;
157
348
  readonly metadata_json?: {
158
349
  readonly [x: string]: any;
@@ -173,6 +364,7 @@ declare const makeClient: (options?: {
173
364
  readonly currency: string;
174
365
  readonly status: "pending" | "success" | "failed";
175
366
  readonly project_id: string & effect_Brand.Brand<"ProjectId">;
367
+ readonly customer_id?: (string & effect_Brand.Brand<"CustomerId">) | null | undefined;
176
368
  readonly provider_ref?: string | null | undefined;
177
369
  readonly metadata_json?: {
178
370
  readonly [x: string]: any;
@@ -186,7 +378,7 @@ declare const makeClient: (options?: {
186
378
  readonly limit: number;
187
379
  readonly offset: number;
188
380
  };
189
- }, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
381
+ }, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
190
382
  readonly retrieve: <WithResponse extends boolean = false>(request: {
191
383
  readonly path: {
192
384
  readonly id: string & effect_Brand.Brand<"Id">;
@@ -198,6 +390,7 @@ declare const makeClient: (options?: {
198
390
  readonly currency: string;
199
391
  readonly status: "pending" | "success" | "failed";
200
392
  readonly project_id: string & effect_Brand.Brand<"ProjectId">;
393
+ readonly customer_id?: (string & effect_Brand.Brand<"CustomerId">) | null | undefined;
201
394
  readonly provider_ref?: string | null | undefined;
202
395
  readonly metadata_json?: {
203
396
  readonly [x: string]: any;
@@ -211,6 +404,7 @@ declare const makeClient: (options?: {
211
404
  readonly currency: string;
212
405
  readonly status: "pending" | "success" | "failed";
213
406
  readonly project_id: string & effect_Brand.Brand<"ProjectId">;
407
+ readonly customer_id?: (string & effect_Brand.Brand<"CustomerId">) | null | undefined;
214
408
  readonly provider_ref?: string | null | undefined;
215
409
  readonly metadata_json?: {
216
410
  readonly [x: string]: any;
@@ -218,7 +412,7 @@ declare const makeClient: (options?: {
218
412
  readonly gateway_response?: any;
219
413
  readonly created_at: string & effect_Brand.Brand<"Timestamp">;
220
414
  readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
221
- }, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
415
+ }, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
222
416
  };
223
417
  readonly customers: {
224
418
  readonly create: <WithResponse extends boolean = false>(request: {
@@ -245,6 +439,11 @@ declare const makeClient: (options?: {
245
439
  readonly email: (string & effect_Brand.Brand<"Email">) | null;
246
440
  readonly name: (string & effect_Brand.Brand<"NonEmptyString">) | null;
247
441
  readonly phone: string | null;
442
+ readonly total_ltv?: number | undefined;
443
+ readonly is_high_value?: boolean | undefined;
444
+ readonly lifecycle_stage?: "new" | "active" | "loyal" | "at_risk" | "churned" | undefined;
445
+ readonly ltv_cents?: number | undefined;
446
+ readonly tier: string | null;
248
447
  }, _effect_platform_HttpClientResponse.HttpClientResponse] : {
249
448
  readonly id: string & effect_Brand.Brand<"CustomerId">;
250
449
  readonly metadata: {
@@ -257,7 +456,12 @@ declare const makeClient: (options?: {
257
456
  readonly email: (string & effect_Brand.Brand<"Email">) | null;
258
457
  readonly name: (string & effect_Brand.Brand<"NonEmptyString">) | null;
259
458
  readonly phone: string | null;
260
- }, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
459
+ readonly total_ltv?: number | undefined;
460
+ readonly is_high_value?: boolean | undefined;
461
+ readonly lifecycle_stage?: "new" | "active" | "loyal" | "at_risk" | "churned" | undefined;
462
+ readonly ltv_cents?: number | undefined;
463
+ readonly tier: string | null;
464
+ }, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
261
465
  readonly list: <WithResponse extends boolean = false>(request: {
262
466
  readonly urlParams: {
263
467
  readonly limit?: number | undefined;
@@ -280,6 +484,11 @@ declare const makeClient: (options?: {
280
484
  readonly email: (string & effect_Brand.Brand<"Email">) | null;
281
485
  readonly name: (string & effect_Brand.Brand<"NonEmptyString">) | null;
282
486
  readonly phone: string | null;
487
+ readonly total_ltv?: number | undefined;
488
+ readonly is_high_value?: boolean | undefined;
489
+ readonly lifecycle_stage?: "new" | "active" | "loyal" | "at_risk" | "churned" | undefined;
490
+ readonly ltv_cents?: number | undefined;
491
+ readonly tier: string | null;
283
492
  }[];
284
493
  readonly meta: {
285
494
  readonly total: number | null;
@@ -299,13 +508,18 @@ declare const makeClient: (options?: {
299
508
  readonly email: (string & effect_Brand.Brand<"Email">) | null;
300
509
  readonly name: (string & effect_Brand.Brand<"NonEmptyString">) | null;
301
510
  readonly phone: string | null;
511
+ readonly total_ltv?: number | undefined;
512
+ readonly is_high_value?: boolean | undefined;
513
+ readonly lifecycle_stage?: "new" | "active" | "loyal" | "at_risk" | "churned" | undefined;
514
+ readonly ltv_cents?: number | undefined;
515
+ readonly tier: string | null;
302
516
  }[];
303
517
  readonly meta: {
304
518
  readonly total: number | null;
305
519
  readonly limit: number;
306
520
  readonly offset: number;
307
521
  };
308
- }, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
522
+ }, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
309
523
  readonly retrieve: <WithResponse extends boolean = false>(request: {
310
524
  readonly path: {
311
525
  readonly id: string & effect_Brand.Brand<"Id">;
@@ -323,6 +537,11 @@ declare const makeClient: (options?: {
323
537
  readonly email: (string & effect_Brand.Brand<"Email">) | null;
324
538
  readonly name: (string & effect_Brand.Brand<"NonEmptyString">) | null;
325
539
  readonly phone: string | null;
540
+ readonly total_ltv?: number | undefined;
541
+ readonly is_high_value?: boolean | undefined;
542
+ readonly lifecycle_stage?: "new" | "active" | "loyal" | "at_risk" | "churned" | undefined;
543
+ readonly ltv_cents?: number | undefined;
544
+ readonly tier: string | null;
326
545
  }, _effect_platform_HttpClientResponse.HttpClientResponse] : {
327
546
  readonly id: string & effect_Brand.Brand<"CustomerId">;
328
547
  readonly metadata: {
@@ -335,7 +554,12 @@ declare const makeClient: (options?: {
335
554
  readonly email: (string & effect_Brand.Brand<"Email">) | null;
336
555
  readonly name: (string & effect_Brand.Brand<"NonEmptyString">) | null;
337
556
  readonly phone: string | null;
338
- }, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
557
+ readonly total_ltv?: number | undefined;
558
+ readonly is_high_value?: boolean | undefined;
559
+ readonly lifecycle_stage?: "new" | "active" | "loyal" | "at_risk" | "churned" | undefined;
560
+ readonly ltv_cents?: number | undefined;
561
+ readonly tier: string | null;
562
+ }, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
339
563
  readonly update: <WithResponse extends boolean = false>(request: {
340
564
  readonly path: {
341
565
  readonly id: string & effect_Brand.Brand<"Id">;
@@ -344,9 +568,11 @@ declare const makeClient: (options?: {
344
568
  readonly metadata?: {
345
569
  readonly [x: string]: any;
346
570
  } | undefined;
571
+ readonly merchant_customer_id?: string | undefined;
347
572
  readonly email?: (string & effect_Brand.Brand<"Email">) | undefined;
348
573
  readonly name?: (string & effect_Brand.Brand<"NonEmptyString">) | undefined;
349
574
  readonly phone?: string | undefined;
575
+ readonly tier?: string | undefined;
350
576
  };
351
577
  readonly withResponse?: WithResponse | undefined;
352
578
  }) => Effect.Effect<WithResponse extends true ? [{
@@ -361,6 +587,11 @@ declare const makeClient: (options?: {
361
587
  readonly email: (string & effect_Brand.Brand<"Email">) | null;
362
588
  readonly name: (string & effect_Brand.Brand<"NonEmptyString">) | null;
363
589
  readonly phone: string | null;
590
+ readonly total_ltv?: number | undefined;
591
+ readonly is_high_value?: boolean | undefined;
592
+ readonly lifecycle_stage?: "new" | "active" | "loyal" | "at_risk" | "churned" | undefined;
593
+ readonly ltv_cents?: number | undefined;
594
+ readonly tier: string | null;
364
595
  }, _effect_platform_HttpClientResponse.HttpClientResponse] : {
365
596
  readonly id: string & effect_Brand.Brand<"CustomerId">;
366
597
  readonly metadata: {
@@ -373,18 +604,23 @@ declare const makeClient: (options?: {
373
604
  readonly email: (string & effect_Brand.Brand<"Email">) | null;
374
605
  readonly name: (string & effect_Brand.Brand<"NonEmptyString">) | null;
375
606
  readonly phone: string | null;
376
- }, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
607
+ readonly total_ltv?: number | undefined;
608
+ readonly is_high_value?: boolean | undefined;
609
+ readonly lifecycle_stage?: "new" | "active" | "loyal" | "at_risk" | "churned" | undefined;
610
+ readonly ltv_cents?: number | undefined;
611
+ readonly tier: string | null;
612
+ }, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
377
613
  readonly delete: <WithResponse extends boolean = false>(request: {
378
614
  readonly path: {
379
615
  readonly id: string & effect_Brand.Brand<"Id">;
380
616
  };
381
617
  readonly withResponse?: WithResponse | undefined;
382
- }) => Effect.Effect<WithResponse extends true ? [void, _effect_platform_HttpClientResponse.HttpClientResponse] : void, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
618
+ }) => Effect.Effect<WithResponse extends true ? [void, _effect_platform_HttpClientResponse.HttpClientResponse] : void, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
383
619
  };
384
620
  readonly subscriptions: {
385
621
  readonly create: <WithResponse extends boolean = false>(request: {
386
622
  readonly payload: {
387
- readonly amount: number & effect_Brand.Brand<"MinorUnitsInt">;
623
+ readonly amount: number & effect_Brand.Brand<"NprAmount">;
388
624
  readonly currency: string;
389
625
  readonly metadata?: {
390
626
  readonly [x: string]: any;
@@ -393,6 +629,7 @@ declare const makeClient: (options?: {
393
629
  readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
394
630
  readonly interval: "month" | "year" | "week";
395
631
  readonly interval_count?: number | undefined;
632
+ readonly customer_email?: string | undefined;
396
633
  readonly auto_send_link?: boolean | undefined;
397
634
  };
398
635
  readonly withResponse?: WithResponse | undefined;
@@ -403,17 +640,19 @@ declare const makeClient: (options?: {
403
640
  readonly metadata?: {
404
641
  readonly [x: string]: any;
405
642
  } | null | undefined;
406
- readonly status: "active" | "past_due" | "canceled" | "paused";
643
+ readonly status: "active" | "pending_checkout" | "past_due" | "canceled" | "paused";
407
644
  readonly project_id: string & effect_Brand.Brand<"ProjectId">;
645
+ readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
408
646
  readonly created_at: string & effect_Brand.Brand<"Timestamp">;
409
647
  readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
410
- readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
411
648
  readonly interval: "month" | "year" | "week";
412
649
  readonly interval_count: number;
413
650
  readonly current_period_start: string & effect_Brand.Brand<"Timestamp">;
414
651
  readonly current_period_end: string & effect_Brand.Brand<"Timestamp">;
415
652
  readonly payment_link: string & effect_Brand.Brand<"UrlString">;
653
+ readonly customer_email?: string | null | undefined;
416
654
  readonly auto_send_link: boolean;
655
+ readonly grace_days?: number | undefined;
417
656
  readonly canceled_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
418
657
  }, _effect_platform_HttpClientResponse.HttpClientResponse] : {
419
658
  readonly id: string & effect_Brand.Brand<"SubscriptionId">;
@@ -422,19 +661,21 @@ declare const makeClient: (options?: {
422
661
  readonly metadata?: {
423
662
  readonly [x: string]: any;
424
663
  } | null | undefined;
425
- readonly status: "active" | "past_due" | "canceled" | "paused";
664
+ readonly status: "active" | "pending_checkout" | "past_due" | "canceled" | "paused";
426
665
  readonly project_id: string & effect_Brand.Brand<"ProjectId">;
666
+ readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
427
667
  readonly created_at: string & effect_Brand.Brand<"Timestamp">;
428
668
  readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
429
- readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
430
669
  readonly interval: "month" | "year" | "week";
431
670
  readonly interval_count: number;
432
671
  readonly current_period_start: string & effect_Brand.Brand<"Timestamp">;
433
672
  readonly current_period_end: string & effect_Brand.Brand<"Timestamp">;
434
673
  readonly payment_link: string & effect_Brand.Brand<"UrlString">;
674
+ readonly customer_email?: string | null | undefined;
435
675
  readonly auto_send_link: boolean;
676
+ readonly grace_days?: number | undefined;
436
677
  readonly canceled_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
437
- }, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
678
+ }, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
438
679
  readonly retrieve: <WithResponse extends boolean = false>(request: {
439
680
  readonly path: {
440
681
  readonly id: string & effect_Brand.Brand<"SubscriptionId">;
@@ -447,17 +688,19 @@ declare const makeClient: (options?: {
447
688
  readonly metadata?: {
448
689
  readonly [x: string]: any;
449
690
  } | null | undefined;
450
- readonly status: "active" | "past_due" | "canceled" | "paused";
691
+ readonly status: "active" | "pending_checkout" | "past_due" | "canceled" | "paused";
451
692
  readonly project_id: string & effect_Brand.Brand<"ProjectId">;
693
+ readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
452
694
  readonly created_at: string & effect_Brand.Brand<"Timestamp">;
453
695
  readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
454
- readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
455
696
  readonly interval: "month" | "year" | "week";
456
697
  readonly interval_count: number;
457
698
  readonly current_period_start: string & effect_Brand.Brand<"Timestamp">;
458
699
  readonly current_period_end: string & effect_Brand.Brand<"Timestamp">;
459
700
  readonly payment_link: string & effect_Brand.Brand<"UrlString">;
701
+ readonly customer_email?: string | null | undefined;
460
702
  readonly auto_send_link: boolean;
703
+ readonly grace_days?: number | undefined;
461
704
  readonly canceled_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
462
705
  }, _effect_platform_HttpClientResponse.HttpClientResponse] : {
463
706
  readonly id: string & effect_Brand.Brand<"SubscriptionId">;
@@ -466,26 +709,28 @@ declare const makeClient: (options?: {
466
709
  readonly metadata?: {
467
710
  readonly [x: string]: any;
468
711
  } | null | undefined;
469
- readonly status: "active" | "past_due" | "canceled" | "paused";
712
+ readonly status: "active" | "pending_checkout" | "past_due" | "canceled" | "paused";
470
713
  readonly project_id: string & effect_Brand.Brand<"ProjectId">;
714
+ readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
471
715
  readonly created_at: string & effect_Brand.Brand<"Timestamp">;
472
716
  readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
473
- readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
474
717
  readonly interval: "month" | "year" | "week";
475
718
  readonly interval_count: number;
476
719
  readonly current_period_start: string & effect_Brand.Brand<"Timestamp">;
477
720
  readonly current_period_end: string & effect_Brand.Brand<"Timestamp">;
478
721
  readonly payment_link: string & effect_Brand.Brand<"UrlString">;
722
+ readonly customer_email?: string | null | undefined;
479
723
  readonly auto_send_link: boolean;
724
+ readonly grace_days?: number | undefined;
480
725
  readonly canceled_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
481
- }, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
726
+ }, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
482
727
  readonly list: <WithResponse extends boolean = false>(request: {
483
728
  readonly urlParams: {
484
- readonly status?: "active" | "past_due" | "canceled" | "paused" | undefined;
729
+ readonly customerId?: (string & effect_Brand.Brand<"CustomerId">) | undefined;
730
+ readonly status?: "active" | "pending_checkout" | "past_due" | "canceled" | "paused" | undefined;
485
731
  readonly limit?: number | undefined;
486
732
  readonly offset?: number | undefined;
487
733
  readonly projectId?: (string & effect_Brand.Brand<"ProjectId">) | undefined;
488
- readonly customerId?: (string & effect_Brand.Brand<"CustomerId">) | undefined;
489
734
  };
490
735
  readonly withResponse?: WithResponse | undefined;
491
736
  }) => Effect.Effect<WithResponse extends true ? [{
@@ -496,17 +741,19 @@ declare const makeClient: (options?: {
496
741
  readonly metadata?: {
497
742
  readonly [x: string]: any;
498
743
  } | null | undefined;
499
- readonly status: "active" | "past_due" | "canceled" | "paused";
744
+ readonly status: "active" | "pending_checkout" | "past_due" | "canceled" | "paused";
500
745
  readonly project_id: string & effect_Brand.Brand<"ProjectId">;
746
+ readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
501
747
  readonly created_at: string & effect_Brand.Brand<"Timestamp">;
502
748
  readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
503
- readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
504
749
  readonly interval: "month" | "year" | "week";
505
750
  readonly interval_count: number;
506
751
  readonly current_period_start: string & effect_Brand.Brand<"Timestamp">;
507
752
  readonly current_period_end: string & effect_Brand.Brand<"Timestamp">;
508
753
  readonly payment_link: string & effect_Brand.Brand<"UrlString">;
754
+ readonly customer_email?: string | null | undefined;
509
755
  readonly auto_send_link: boolean;
756
+ readonly grace_days?: number | undefined;
510
757
  readonly canceled_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
511
758
  }[];
512
759
  readonly meta: {
@@ -522,17 +769,19 @@ declare const makeClient: (options?: {
522
769
  readonly metadata?: {
523
770
  readonly [x: string]: any;
524
771
  } | null | undefined;
525
- readonly status: "active" | "past_due" | "canceled" | "paused";
772
+ readonly status: "active" | "pending_checkout" | "past_due" | "canceled" | "paused";
526
773
  readonly project_id: string & effect_Brand.Brand<"ProjectId">;
774
+ readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
527
775
  readonly created_at: string & effect_Brand.Brand<"Timestamp">;
528
776
  readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
529
- readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
530
777
  readonly interval: "month" | "year" | "week";
531
778
  readonly interval_count: number;
532
779
  readonly current_period_start: string & effect_Brand.Brand<"Timestamp">;
533
780
  readonly current_period_end: string & effect_Brand.Brand<"Timestamp">;
534
781
  readonly payment_link: string & effect_Brand.Brand<"UrlString">;
782
+ readonly customer_email?: string | null | undefined;
535
783
  readonly auto_send_link: boolean;
784
+ readonly grace_days?: number | undefined;
536
785
  readonly canceled_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
537
786
  }[];
538
787
  readonly meta: {
@@ -540,7 +789,7 @@ declare const makeClient: (options?: {
540
789
  readonly limit: number;
541
790
  readonly offset: number;
542
791
  };
543
- }, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
792
+ }, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
544
793
  readonly cancel: <WithResponse extends boolean = false>(request: {
545
794
  readonly path: {
546
795
  readonly id: string & effect_Brand.Brand<"SubscriptionId">;
@@ -553,17 +802,19 @@ declare const makeClient: (options?: {
553
802
  readonly metadata?: {
554
803
  readonly [x: string]: any;
555
804
  } | null | undefined;
556
- readonly status: "active" | "past_due" | "canceled" | "paused";
805
+ readonly status: "active" | "pending_checkout" | "past_due" | "canceled" | "paused";
557
806
  readonly project_id: string & effect_Brand.Brand<"ProjectId">;
807
+ readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
558
808
  readonly created_at: string & effect_Brand.Brand<"Timestamp">;
559
809
  readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
560
- readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
561
810
  readonly interval: "month" | "year" | "week";
562
811
  readonly interval_count: number;
563
812
  readonly current_period_start: string & effect_Brand.Brand<"Timestamp">;
564
813
  readonly current_period_end: string & effect_Brand.Brand<"Timestamp">;
565
814
  readonly payment_link: string & effect_Brand.Brand<"UrlString">;
815
+ readonly customer_email?: string | null | undefined;
566
816
  readonly auto_send_link: boolean;
817
+ readonly grace_days?: number | undefined;
567
818
  readonly canceled_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
568
819
  }, _effect_platform_HttpClientResponse.HttpClientResponse] : {
569
820
  readonly id: string & effect_Brand.Brand<"SubscriptionId">;
@@ -572,25 +823,27 @@ declare const makeClient: (options?: {
572
823
  readonly metadata?: {
573
824
  readonly [x: string]: any;
574
825
  } | null | undefined;
575
- readonly status: "active" | "past_due" | "canceled" | "paused";
826
+ readonly status: "active" | "pending_checkout" | "past_due" | "canceled" | "paused";
576
827
  readonly project_id: string & effect_Brand.Brand<"ProjectId">;
828
+ readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
577
829
  readonly created_at: string & effect_Brand.Brand<"Timestamp">;
578
830
  readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
579
- readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
580
831
  readonly interval: "month" | "year" | "week";
581
832
  readonly interval_count: number;
582
833
  readonly current_period_start: string & effect_Brand.Brand<"Timestamp">;
583
834
  readonly current_period_end: string & effect_Brand.Brand<"Timestamp">;
584
835
  readonly payment_link: string & effect_Brand.Brand<"UrlString">;
836
+ readonly customer_email?: string | null | undefined;
585
837
  readonly auto_send_link: boolean;
838
+ readonly grace_days?: number | undefined;
586
839
  readonly canceled_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
587
- }, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
840
+ }, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
588
841
  readonly activate: <WithResponse extends boolean = false>(request: {
589
842
  readonly path: {
590
843
  readonly id: string & effect_Brand.Brand<"SubscriptionId">;
591
844
  };
592
845
  readonly payload: {
593
- readonly provider: "esewa" | "khalti" | "connectips" | "imepay" | "fonepay" | "sandbox";
846
+ readonly provider: "esewa" | "khalti" | "hamropay" | "connectips" | "imepay" | "fonepay" | "sandbox";
594
847
  readonly returnUrl: string;
595
848
  readonly cancelUrl?: string | undefined;
596
849
  };
@@ -601,7 +854,7 @@ declare const makeClient: (options?: {
601
854
  }, _effect_platform_HttpClientResponse.HttpClientResponse] : {
602
855
  readonly checkout_url: string;
603
856
  readonly payment_id: string;
604
- }, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
857
+ }, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
605
858
  };
606
859
  readonly automation: {
607
860
  readonly reminders: <WithResponse extends boolean = false>(request: void | {
@@ -612,16 +865,36 @@ declare const makeClient: (options?: {
612
865
  }, _effect_platform_HttpClientResponse.HttpClientResponse] : {
613
866
  readonly message: string;
614
867
  readonly count: number;
615
- }, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
868
+ }, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
616
869
  readonly reaper: <WithResponse extends boolean = false>(request: void | {
617
870
  readonly withResponse?: WithResponse | undefined;
618
871
  }) => Effect.Effect<WithResponse extends true ? [{
619
872
  readonly message: string;
620
873
  readonly count: number;
874
+ readonly purged_projects: number;
621
875
  }, _effect_platform_HttpClientResponse.HttpClientResponse] : {
622
876
  readonly message: string;
623
877
  readonly count: number;
624
- }, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
878
+ readonly purged_projects: number;
879
+ }, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
880
+ readonly processRenewals: <WithResponse extends boolean = false>(request: void | {
881
+ readonly withResponse?: WithResponse | undefined;
882
+ }) => Effect.Effect<WithResponse extends true ? [{
883
+ readonly message: string;
884
+ readonly emails_sent: number;
885
+ }, _effect_platform_HttpClientResponse.HttpClientResponse] : {
886
+ readonly message: string;
887
+ readonly emails_sent: number;
888
+ }, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
889
+ readonly processGracePeriod: <WithResponse extends boolean = false>(request: void | {
890
+ readonly withResponse?: WithResponse | undefined;
891
+ }) => Effect.Effect<WithResponse extends true ? [{
892
+ readonly message: string;
893
+ readonly marked_past_due: number;
894
+ }, _effect_platform_HttpClientResponse.HttpClientResponse] : {
895
+ readonly message: string;
896
+ readonly marked_past_due: number;
897
+ }, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
625
898
  };
626
899
  readonly tokens: {
627
900
  readonly create: <WithResponse extends boolean = false>(request: {
@@ -647,7 +920,7 @@ declare const makeClient: (options?: {
647
920
  readonly last_used_at: (string & effect_Brand.Brand<"Timestamp">) | null;
648
921
  readonly expires_at: (string & effect_Brand.Brand<"Timestamp">) | null;
649
922
  readonly token: string;
650
- }, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
923
+ }, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
651
924
  readonly list: <WithResponse extends boolean = false>(request: void | {
652
925
  readonly withResponse?: WithResponse | undefined;
653
926
  }) => Effect.Effect<WithResponse extends true ? [readonly {
@@ -664,13 +937,13 @@ declare const makeClient: (options?: {
664
937
  readonly scopes: readonly string[];
665
938
  readonly last_used_at: (string & effect_Brand.Brand<"Timestamp">) | null;
666
939
  readonly expires_at: (string & effect_Brand.Brand<"Timestamp">) | null;
667
- }[], _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
940
+ }[], _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
668
941
  readonly delete: <WithResponse extends boolean = false>(request: {
669
942
  readonly path: {
670
943
  readonly id: string & effect_Brand.Brand<"TokenId">;
671
944
  };
672
945
  readonly withResponse?: WithResponse | undefined;
673
- }) => Effect.Effect<WithResponse extends true ? [null, _effect_platform_HttpClientResponse.HttpClientResponse] : null, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
946
+ }) => Effect.Effect<WithResponse extends true ? [null, _effect_platform_HttpClientResponse.HttpClientResponse] : null, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
674
947
  };
675
948
  readonly projects: {
676
949
  readonly list: <WithResponse extends boolean = false>(request: void | {
@@ -679,13 +952,44 @@ declare const makeClient: (options?: {
679
952
  readonly id: string & effect_Brand.Brand<"ProjectId">;
680
953
  readonly created_at: string & effect_Brand.Brand<"Timestamp">;
681
954
  readonly name: string & effect_Brand.Brand<"NonEmptyString">;
955
+ readonly expires_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
682
956
  readonly api_key_secret: string;
957
+ readonly subscription_tier?: "free" | "pro" | "enterprise" | undefined;
958
+ readonly subscription_status?: "active" | "past_due" | "canceled" | "incomplete" | undefined;
683
959
  }[], _effect_platform_HttpClientResponse.HttpClientResponse] : readonly {
684
960
  readonly id: string & effect_Brand.Brand<"ProjectId">;
685
961
  readonly created_at: string & effect_Brand.Brand<"Timestamp">;
686
962
  readonly name: string & effect_Brand.Brand<"NonEmptyString">;
963
+ readonly expires_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
964
+ readonly api_key_secret: string;
965
+ readonly subscription_tier?: "free" | "pro" | "enterprise" | undefined;
966
+ readonly subscription_status?: "active" | "past_due" | "canceled" | "incomplete" | undefined;
967
+ }[], _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
968
+ readonly upgrade: <WithResponse extends boolean = false>(request: {
969
+ readonly path: {
970
+ readonly id: string & effect_Brand.Brand<"ProjectId">;
971
+ };
972
+ readonly payload: {
973
+ readonly tier: "pro" | "enterprise";
974
+ };
975
+ readonly withResponse?: WithResponse | undefined;
976
+ }) => Effect.Effect<WithResponse extends true ? [{
977
+ readonly id: string & effect_Brand.Brand<"ProjectId">;
978
+ readonly created_at: string & effect_Brand.Brand<"Timestamp">;
979
+ readonly name: string & effect_Brand.Brand<"NonEmptyString">;
980
+ readonly expires_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
981
+ readonly api_key_secret: string;
982
+ readonly subscription_tier?: "free" | "pro" | "enterprise" | undefined;
983
+ readonly subscription_status?: "active" | "past_due" | "canceled" | "incomplete" | undefined;
984
+ }, _effect_platform_HttpClientResponse.HttpClientResponse] : {
985
+ readonly id: string & effect_Brand.Brand<"ProjectId">;
986
+ readonly created_at: string & effect_Brand.Brand<"Timestamp">;
987
+ readonly name: string & effect_Brand.Brand<"NonEmptyString">;
988
+ readonly expires_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
687
989
  readonly api_key_secret: string;
688
- }[], _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
990
+ readonly subscription_tier?: "free" | "pro" | "enterprise" | undefined;
991
+ readonly subscription_status?: "active" | "past_due" | "canceled" | "incomplete" | undefined;
992
+ }, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
689
993
  };
690
994
  readonly callbacks: {
691
995
  readonly handle: <WithResponse extends boolean = false>(request: {
@@ -693,12 +997,139 @@ declare const makeClient: (options?: {
693
997
  readonly provider: string;
694
998
  };
695
999
  readonly urlParams: {
1000
+ readonly code?: string | undefined;
696
1001
  readonly data?: string | undefined;
697
1002
  readonly payment_id?: string | undefined;
698
1003
  readonly pidx?: string | undefined;
1004
+ readonly ref_id?: string | undefined;
1005
+ readonly access_token?: string | undefined;
1006
+ readonly refresh_token?: string | undefined;
1007
+ };
1008
+ readonly withResponse?: WithResponse | undefined;
1009
+ }) => Effect.Effect<WithResponse extends true ? [any, _effect_platform_HttpClientResponse.HttpClientResponse] : any, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
1010
+ };
1011
+ readonly auth: {
1012
+ readonly callback: <WithResponse extends boolean = false>(request: {
1013
+ readonly urlParams: {
1014
+ readonly code?: string | undefined;
1015
+ readonly next?: string | undefined;
1016
+ };
1017
+ readonly withResponse?: WithResponse | undefined;
1018
+ }) => Effect.Effect<WithResponse extends true ? [any, _effect_platform_HttpClientResponse.HttpClientResponse] : any, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
1019
+ };
1020
+ readonly mandates: {
1021
+ readonly registerIntent: <WithResponse extends boolean = false>(request: {
1022
+ readonly payload: {
1023
+ readonly currency: string;
1024
+ readonly customer_id?: (string & effect_Brand.Brand<"CustomerId">) | undefined;
1025
+ readonly principal_id: string;
1026
+ readonly max_amount: number;
1027
+ readonly permitted_vendors?: readonly string[] | undefined;
1028
+ readonly valid_until: string & effect_Brand.Brand<"Timestamp">;
1029
+ readonly credential_jwt: string;
1030
+ readonly public_key: string;
1031
+ };
1032
+ readonly withResponse?: WithResponse | undefined;
1033
+ }) => Effect.Effect<WithResponse extends true ? [{
1034
+ readonly id: string & effect_Brand.Brand<"MandateId">;
1035
+ readonly type: "intent" | "cart";
1036
+ readonly currency: string;
1037
+ readonly status: "active" | "consumed" | "expired" | "violated";
1038
+ readonly project_id: string & effect_Brand.Brand<"ProjectId">;
1039
+ readonly customer_id: (string & effect_Brand.Brand<"CustomerId">) | null;
1040
+ readonly metadata_json: {
1041
+ readonly [x: string]: any;
1042
+ };
1043
+ readonly created_at: string & effect_Brand.Brand<"Timestamp">;
1044
+ readonly payment_id: (string & effect_Brand.Brand<"PaymentId">) | null;
1045
+ readonly principal_id: string;
1046
+ readonly max_amount: number;
1047
+ readonly permitted_vendors: readonly string[] | null;
1048
+ readonly valid_from: string & effect_Brand.Brand<"Timestamp">;
1049
+ readonly valid_until: string & effect_Brand.Brand<"Timestamp">;
1050
+ readonly credential_jwt: string;
1051
+ readonly public_key: string;
1052
+ readonly signature: string;
1053
+ readonly parent_mandate_id: (string & effect_Brand.Brand<"MandateId">) | null;
1054
+ readonly consumed_at: (string & effect_Brand.Brand<"Timestamp">) | null;
1055
+ }, _effect_platform_HttpClientResponse.HttpClientResponse] : {
1056
+ readonly id: string & effect_Brand.Brand<"MandateId">;
1057
+ readonly type: "intent" | "cart";
1058
+ readonly currency: string;
1059
+ readonly status: "active" | "consumed" | "expired" | "violated";
1060
+ readonly project_id: string & effect_Brand.Brand<"ProjectId">;
1061
+ readonly customer_id: (string & effect_Brand.Brand<"CustomerId">) | null;
1062
+ readonly metadata_json: {
1063
+ readonly [x: string]: any;
1064
+ };
1065
+ readonly created_at: string & effect_Brand.Brand<"Timestamp">;
1066
+ readonly payment_id: (string & effect_Brand.Brand<"PaymentId">) | null;
1067
+ readonly principal_id: string;
1068
+ readonly max_amount: number;
1069
+ readonly permitted_vendors: readonly string[] | null;
1070
+ readonly valid_from: string & effect_Brand.Brand<"Timestamp">;
1071
+ readonly valid_until: string & effect_Brand.Brand<"Timestamp">;
1072
+ readonly credential_jwt: string;
1073
+ readonly public_key: string;
1074
+ readonly signature: string;
1075
+ readonly parent_mandate_id: (string & effect_Brand.Brand<"MandateId">) | null;
1076
+ readonly consumed_at: (string & effect_Brand.Brand<"Timestamp">) | null;
1077
+ }, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
1078
+ readonly retrieve: <WithResponse extends boolean = false>(request: {
1079
+ readonly path: {
1080
+ readonly id: string & effect_Brand.Brand<"MandateId">;
699
1081
  };
700
1082
  readonly withResponse?: WithResponse | undefined;
701
- }) => Effect.Effect<WithResponse extends true ? [any, _effect_platform_HttpClientResponse.HttpClientResponse] : any, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
1083
+ }) => Effect.Effect<WithResponse extends true ? [{
1084
+ readonly id: string & effect_Brand.Brand<"MandateId">;
1085
+ readonly type: "intent" | "cart";
1086
+ readonly currency: string;
1087
+ readonly status: "active" | "consumed" | "expired" | "violated";
1088
+ readonly project_id: string & effect_Brand.Brand<"ProjectId">;
1089
+ readonly customer_id: (string & effect_Brand.Brand<"CustomerId">) | null;
1090
+ readonly metadata_json: {
1091
+ readonly [x: string]: any;
1092
+ };
1093
+ readonly created_at: string & effect_Brand.Brand<"Timestamp">;
1094
+ readonly payment_id: (string & effect_Brand.Brand<"PaymentId">) | null;
1095
+ readonly principal_id: string;
1096
+ readonly max_amount: number;
1097
+ readonly permitted_vendors: readonly string[] | null;
1098
+ readonly valid_from: string & effect_Brand.Brand<"Timestamp">;
1099
+ readonly valid_until: string & effect_Brand.Brand<"Timestamp">;
1100
+ readonly credential_jwt: string;
1101
+ readonly public_key: string;
1102
+ readonly signature: string;
1103
+ readonly parent_mandate_id: (string & effect_Brand.Brand<"MandateId">) | null;
1104
+ readonly consumed_at: (string & effect_Brand.Brand<"Timestamp">) | null;
1105
+ }, _effect_platform_HttpClientResponse.HttpClientResponse] : {
1106
+ readonly id: string & effect_Brand.Brand<"MandateId">;
1107
+ readonly type: "intent" | "cart";
1108
+ readonly currency: string;
1109
+ readonly status: "active" | "consumed" | "expired" | "violated";
1110
+ readonly project_id: string & effect_Brand.Brand<"ProjectId">;
1111
+ readonly customer_id: (string & effect_Brand.Brand<"CustomerId">) | null;
1112
+ readonly metadata_json: {
1113
+ readonly [x: string]: any;
1114
+ };
1115
+ readonly created_at: string & effect_Brand.Brand<"Timestamp">;
1116
+ readonly payment_id: (string & effect_Brand.Brand<"PaymentId">) | null;
1117
+ readonly principal_id: string;
1118
+ readonly max_amount: number;
1119
+ readonly permitted_vendors: readonly string[] | null;
1120
+ readonly valid_from: string & effect_Brand.Brand<"Timestamp">;
1121
+ readonly valid_until: string & effect_Brand.Brand<"Timestamp">;
1122
+ readonly credential_jwt: string;
1123
+ readonly public_key: string;
1124
+ readonly signature: string;
1125
+ readonly parent_mandate_id: (string & effect_Brand.Brand<"MandateId">) | null;
1126
+ readonly consumed_at: (string & effect_Brand.Brand<"Timestamp">) | null;
1127
+ }, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
1128
+ };
1129
+ readonly discovery: {
1130
+ readonly agentCard: <WithResponse extends boolean = false>(request: void | {
1131
+ readonly withResponse?: WithResponse | undefined;
1132
+ }) => Effect.Effect<WithResponse extends true ? [any, _effect_platform_HttpClientResponse.HttpClientResponse] : any, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
702
1133
  };
703
1134
  readonly realtime: {
704
1135
  readonly connect: <WithResponse extends boolean = false>(request: {
@@ -706,14 +1137,14 @@ declare const makeClient: (options?: {
706
1137
  readonly token: string;
707
1138
  };
708
1139
  readonly withResponse?: WithResponse | undefined;
709
- }) => Effect.Effect<WithResponse extends true ? [any, _effect_platform_HttpClientResponse.HttpClientResponse] : any, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
1140
+ }) => Effect.Effect<WithResponse extends true ? [any, _effect_platform_HttpClientResponse.HttpClientResponse] : any, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
710
1141
  readonly trigger: <WithResponse extends boolean = false>(request: {
711
1142
  readonly urlParams: {
712
1143
  readonly token?: string | undefined;
713
1144
  };
714
1145
  readonly payload: {
715
1146
  readonly data?: any;
716
- readonly event?: "payment.success" | "payment.failed" | "subscription.created" | "subscription.payment_succeeded" | "subscription.payment_failed" | "subscription.renewal_due" | "subscription.canceled" | undefined;
1147
+ readonly event?: "payment.success" | "payment.failed" | "subscription.created" | "subscription.activated" | "subscription.renewed" | "subscription.payment_succeeded" | "subscription.payment_failed" | "subscription.renewal_due" | "subscription.canceled" | undefined;
717
1148
  };
718
1149
  readonly withResponse?: WithResponse | undefined;
719
1150
  }) => Effect.Effect<WithResponse extends true ? [{
@@ -722,29 +1153,89 @@ declare const makeClient: (options?: {
722
1153
  }, _effect_platform_HttpClientResponse.HttpClientResponse] : {
723
1154
  readonly status: string;
724
1155
  readonly event?: string | undefined;
725
- }, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
1156
+ }, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
1157
+ };
1158
+ readonly sandbox: {
1159
+ readonly init: <WithResponse extends boolean = false>(request: void | {
1160
+ readonly withResponse?: WithResponse | undefined;
1161
+ }) => Effect.Effect<WithResponse extends true ? [{
1162
+ readonly projectId: string;
1163
+ readonly apiKey?: string | undefined;
1164
+ readonly expiresAt: string & effect_Brand.Brand<"Timestamp">;
1165
+ readonly session?: {
1166
+ readonly access_token: string;
1167
+ readonly refresh_token: string;
1168
+ } | undefined;
1169
+ }, _effect_platform_HttpClientResponse.HttpClientResponse] : {
1170
+ readonly projectId: string;
1171
+ readonly apiKey?: string | undefined;
1172
+ readonly expiresAt: string & effect_Brand.Brand<"Timestamp">;
1173
+ readonly session?: {
1174
+ readonly access_token: string;
1175
+ readonly refresh_token: string;
1176
+ } | undefined;
1177
+ }, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
1178
+ };
1179
+ readonly signingKeys: {
1180
+ readonly generate: <WithResponse extends boolean = false>(request: {
1181
+ readonly path: {
1182
+ readonly id: string & effect_Brand.Brand<"ProjectId">;
1183
+ };
1184
+ readonly withResponse?: WithResponse | undefined;
1185
+ }) => Effect.Effect<WithResponse extends true ? [{
1186
+ readonly id: string;
1187
+ readonly publicKey: string;
1188
+ readonly privateKey: string;
1189
+ readonly algorithm: string;
1190
+ readonly createdAt: string & effect_Brand.Brand<"Timestamp">;
1191
+ }, _effect_platform_HttpClientResponse.HttpClientResponse] : {
1192
+ readonly id: string;
1193
+ readonly publicKey: string;
1194
+ readonly privateKey: string;
1195
+ readonly algorithm: string;
1196
+ readonly createdAt: string & effect_Brand.Brand<"Timestamp">;
1197
+ }, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
1198
+ readonly get: <WithResponse extends boolean = false>(request: {
1199
+ readonly path: {
1200
+ readonly id: string & effect_Brand.Brand<"ProjectId">;
1201
+ };
1202
+ readonly withResponse?: WithResponse | undefined;
1203
+ }) => Effect.Effect<WithResponse extends true ? [{
1204
+ readonly id: string;
1205
+ readonly publicKey: string;
1206
+ readonly algorithm: string;
1207
+ readonly createdAt: string & effect_Brand.Brand<"Timestamp">;
1208
+ }, _effect_platform_HttpClientResponse.HttpClientResponse] : {
1209
+ readonly id: string;
1210
+ readonly publicKey: string;
1211
+ readonly algorithm: string;
1212
+ readonly createdAt: string & effect_Brand.Brand<"Timestamp">;
1213
+ }, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
726
1214
  };
727
1215
  }, never, HttpClient.HttpClient>;
728
1216
  declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-effect/PayArkClient", {
729
1217
  readonly checkout: {
730
1218
  readonly create: <WithResponse extends boolean = false>(request: {
731
1219
  readonly payload: {
732
- readonly amount?: (number & effect_Brand.Brand<"MinorUnitsInt">) | undefined;
1220
+ readonly amount?: (number & effect_Brand.Brand<"NprAmount">) | undefined;
733
1221
  readonly currency: string;
734
- readonly provider: "esewa" | "khalti" | "connectips" | "imepay" | "fonepay" | "sandbox";
1222
+ readonly provider: "esewa" | "khalti" | "hamropay" | "connectips" | "imepay" | "fonepay" | "sandbox";
735
1223
  readonly returnUrl: string & effect_Brand.Brand<"UrlString">;
736
1224
  readonly cancelUrl?: (string & effect_Brand.Brand<"UrlString">) | undefined;
737
1225
  readonly metadata?: {
738
1226
  readonly [x: string]: any;
739
1227
  } | undefined;
740
1228
  readonly subscriptionId?: (string & effect_Brand.Brand<"SubscriptionId">) | undefined;
1229
+ readonly customerId?: (string & effect_Brand.Brand<"CustomerId">) | undefined;
1230
+ readonly mandate_id?: (string & effect_Brand.Brand<"MandateId">) | undefined;
741
1231
  };
742
1232
  readonly withResponse?: WithResponse | undefined;
743
1233
  }) => Effect.Effect<WithResponse extends true ? [{
744
1234
  readonly id: string & effect_Brand.Brand<"CheckoutSessionId">;
745
1235
  readonly checkout_url: string & effect_Brand.Brand<"UrlString">;
1236
+ readonly qr_string?: string | undefined;
746
1237
  readonly payment_method: {
747
- readonly type: "esewa" | "khalti" | "connectips" | "imepay" | "fonepay" | "sandbox";
1238
+ readonly type: "esewa" | "khalti" | "hamropay" | "connectips" | "imepay" | "fonepay" | "sandbox";
748
1239
  readonly url?: (string & effect_Brand.Brand<"UrlString">) | undefined;
749
1240
  readonly method?: "POST" | "GET" | undefined;
750
1241
  readonly fields?: {
@@ -754,15 +1245,16 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
754
1245
  }, _effect_platform_HttpClientResponse.HttpClientResponse] : {
755
1246
  readonly id: string & effect_Brand.Brand<"CheckoutSessionId">;
756
1247
  readonly checkout_url: string & effect_Brand.Brand<"UrlString">;
1248
+ readonly qr_string?: string | undefined;
757
1249
  readonly payment_method: {
758
- readonly type: "esewa" | "khalti" | "connectips" | "imepay" | "fonepay" | "sandbox";
1250
+ readonly type: "esewa" | "khalti" | "hamropay" | "connectips" | "imepay" | "fonepay" | "sandbox";
759
1251
  readonly url?: (string & effect_Brand.Brand<"UrlString">) | undefined;
760
1252
  readonly method?: "POST" | "GET" | undefined;
761
1253
  readonly fields?: {
762
1254
  readonly [x: string]: string;
763
1255
  } | undefined;
764
1256
  };
765
- }, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
1257
+ }, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
766
1258
  };
767
1259
  readonly payments: {
768
1260
  readonly list: <WithResponse extends boolean = false>(request: {
@@ -779,6 +1271,7 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
779
1271
  readonly currency: string;
780
1272
  readonly status: "pending" | "success" | "failed";
781
1273
  readonly project_id: string & effect_Brand.Brand<"ProjectId">;
1274
+ readonly customer_id?: (string & effect_Brand.Brand<"CustomerId">) | null | undefined;
782
1275
  readonly provider_ref?: string | null | undefined;
783
1276
  readonly metadata_json?: {
784
1277
  readonly [x: string]: any;
@@ -799,6 +1292,7 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
799
1292
  readonly currency: string;
800
1293
  readonly status: "pending" | "success" | "failed";
801
1294
  readonly project_id: string & effect_Brand.Brand<"ProjectId">;
1295
+ readonly customer_id?: (string & effect_Brand.Brand<"CustomerId">) | null | undefined;
802
1296
  readonly provider_ref?: string | null | undefined;
803
1297
  readonly metadata_json?: {
804
1298
  readonly [x: string]: any;
@@ -812,7 +1306,7 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
812
1306
  readonly limit: number;
813
1307
  readonly offset: number;
814
1308
  };
815
- }, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
1309
+ }, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
816
1310
  readonly retrieve: <WithResponse extends boolean = false>(request: {
817
1311
  readonly path: {
818
1312
  readonly id: string & effect_Brand.Brand<"Id">;
@@ -824,6 +1318,7 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
824
1318
  readonly currency: string;
825
1319
  readonly status: "pending" | "success" | "failed";
826
1320
  readonly project_id: string & effect_Brand.Brand<"ProjectId">;
1321
+ readonly customer_id?: (string & effect_Brand.Brand<"CustomerId">) | null | undefined;
827
1322
  readonly provider_ref?: string | null | undefined;
828
1323
  readonly metadata_json?: {
829
1324
  readonly [x: string]: any;
@@ -837,6 +1332,7 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
837
1332
  readonly currency: string;
838
1333
  readonly status: "pending" | "success" | "failed";
839
1334
  readonly project_id: string & effect_Brand.Brand<"ProjectId">;
1335
+ readonly customer_id?: (string & effect_Brand.Brand<"CustomerId">) | null | undefined;
840
1336
  readonly provider_ref?: string | null | undefined;
841
1337
  readonly metadata_json?: {
842
1338
  readonly [x: string]: any;
@@ -844,7 +1340,7 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
844
1340
  readonly gateway_response?: any;
845
1341
  readonly created_at: string & effect_Brand.Brand<"Timestamp">;
846
1342
  readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
847
- }, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
1343
+ }, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
848
1344
  };
849
1345
  readonly customers: {
850
1346
  readonly create: <WithResponse extends boolean = false>(request: {
@@ -871,6 +1367,11 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
871
1367
  readonly email: (string & effect_Brand.Brand<"Email">) | null;
872
1368
  readonly name: (string & effect_Brand.Brand<"NonEmptyString">) | null;
873
1369
  readonly phone: string | null;
1370
+ readonly total_ltv?: number | undefined;
1371
+ readonly is_high_value?: boolean | undefined;
1372
+ readonly lifecycle_stage?: "new" | "active" | "loyal" | "at_risk" | "churned" | undefined;
1373
+ readonly ltv_cents?: number | undefined;
1374
+ readonly tier: string | null;
874
1375
  }, _effect_platform_HttpClientResponse.HttpClientResponse] : {
875
1376
  readonly id: string & effect_Brand.Brand<"CustomerId">;
876
1377
  readonly metadata: {
@@ -883,7 +1384,12 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
883
1384
  readonly email: (string & effect_Brand.Brand<"Email">) | null;
884
1385
  readonly name: (string & effect_Brand.Brand<"NonEmptyString">) | null;
885
1386
  readonly phone: string | null;
886
- }, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
1387
+ readonly total_ltv?: number | undefined;
1388
+ readonly is_high_value?: boolean | undefined;
1389
+ readonly lifecycle_stage?: "new" | "active" | "loyal" | "at_risk" | "churned" | undefined;
1390
+ readonly ltv_cents?: number | undefined;
1391
+ readonly tier: string | null;
1392
+ }, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
887
1393
  readonly list: <WithResponse extends boolean = false>(request: {
888
1394
  readonly urlParams: {
889
1395
  readonly limit?: number | undefined;
@@ -906,6 +1412,11 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
906
1412
  readonly email: (string & effect_Brand.Brand<"Email">) | null;
907
1413
  readonly name: (string & effect_Brand.Brand<"NonEmptyString">) | null;
908
1414
  readonly phone: string | null;
1415
+ readonly total_ltv?: number | undefined;
1416
+ readonly is_high_value?: boolean | undefined;
1417
+ readonly lifecycle_stage?: "new" | "active" | "loyal" | "at_risk" | "churned" | undefined;
1418
+ readonly ltv_cents?: number | undefined;
1419
+ readonly tier: string | null;
909
1420
  }[];
910
1421
  readonly meta: {
911
1422
  readonly total: number | null;
@@ -925,13 +1436,18 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
925
1436
  readonly email: (string & effect_Brand.Brand<"Email">) | null;
926
1437
  readonly name: (string & effect_Brand.Brand<"NonEmptyString">) | null;
927
1438
  readonly phone: string | null;
1439
+ readonly total_ltv?: number | undefined;
1440
+ readonly is_high_value?: boolean | undefined;
1441
+ readonly lifecycle_stage?: "new" | "active" | "loyal" | "at_risk" | "churned" | undefined;
1442
+ readonly ltv_cents?: number | undefined;
1443
+ readonly tier: string | null;
928
1444
  }[];
929
1445
  readonly meta: {
930
1446
  readonly total: number | null;
931
1447
  readonly limit: number;
932
1448
  readonly offset: number;
933
1449
  };
934
- }, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
1450
+ }, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
935
1451
  readonly retrieve: <WithResponse extends boolean = false>(request: {
936
1452
  readonly path: {
937
1453
  readonly id: string & effect_Brand.Brand<"Id">;
@@ -949,6 +1465,11 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
949
1465
  readonly email: (string & effect_Brand.Brand<"Email">) | null;
950
1466
  readonly name: (string & effect_Brand.Brand<"NonEmptyString">) | null;
951
1467
  readonly phone: string | null;
1468
+ readonly total_ltv?: number | undefined;
1469
+ readonly is_high_value?: boolean | undefined;
1470
+ readonly lifecycle_stage?: "new" | "active" | "loyal" | "at_risk" | "churned" | undefined;
1471
+ readonly ltv_cents?: number | undefined;
1472
+ readonly tier: string | null;
952
1473
  }, _effect_platform_HttpClientResponse.HttpClientResponse] : {
953
1474
  readonly id: string & effect_Brand.Brand<"CustomerId">;
954
1475
  readonly metadata: {
@@ -961,7 +1482,12 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
961
1482
  readonly email: (string & effect_Brand.Brand<"Email">) | null;
962
1483
  readonly name: (string & effect_Brand.Brand<"NonEmptyString">) | null;
963
1484
  readonly phone: string | null;
964
- }, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
1485
+ readonly total_ltv?: number | undefined;
1486
+ readonly is_high_value?: boolean | undefined;
1487
+ readonly lifecycle_stage?: "new" | "active" | "loyal" | "at_risk" | "churned" | undefined;
1488
+ readonly ltv_cents?: number | undefined;
1489
+ readonly tier: string | null;
1490
+ }, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
965
1491
  readonly update: <WithResponse extends boolean = false>(request: {
966
1492
  readonly path: {
967
1493
  readonly id: string & effect_Brand.Brand<"Id">;
@@ -970,9 +1496,11 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
970
1496
  readonly metadata?: {
971
1497
  readonly [x: string]: any;
972
1498
  } | undefined;
1499
+ readonly merchant_customer_id?: string | undefined;
973
1500
  readonly email?: (string & effect_Brand.Brand<"Email">) | undefined;
974
1501
  readonly name?: (string & effect_Brand.Brand<"NonEmptyString">) | undefined;
975
1502
  readonly phone?: string | undefined;
1503
+ readonly tier?: string | undefined;
976
1504
  };
977
1505
  readonly withResponse?: WithResponse | undefined;
978
1506
  }) => Effect.Effect<WithResponse extends true ? [{
@@ -987,6 +1515,11 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
987
1515
  readonly email: (string & effect_Brand.Brand<"Email">) | null;
988
1516
  readonly name: (string & effect_Brand.Brand<"NonEmptyString">) | null;
989
1517
  readonly phone: string | null;
1518
+ readonly total_ltv?: number | undefined;
1519
+ readonly is_high_value?: boolean | undefined;
1520
+ readonly lifecycle_stage?: "new" | "active" | "loyal" | "at_risk" | "churned" | undefined;
1521
+ readonly ltv_cents?: number | undefined;
1522
+ readonly tier: string | null;
990
1523
  }, _effect_platform_HttpClientResponse.HttpClientResponse] : {
991
1524
  readonly id: string & effect_Brand.Brand<"CustomerId">;
992
1525
  readonly metadata: {
@@ -999,18 +1532,23 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
999
1532
  readonly email: (string & effect_Brand.Brand<"Email">) | null;
1000
1533
  readonly name: (string & effect_Brand.Brand<"NonEmptyString">) | null;
1001
1534
  readonly phone: string | null;
1002
- }, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
1535
+ readonly total_ltv?: number | undefined;
1536
+ readonly is_high_value?: boolean | undefined;
1537
+ readonly lifecycle_stage?: "new" | "active" | "loyal" | "at_risk" | "churned" | undefined;
1538
+ readonly ltv_cents?: number | undefined;
1539
+ readonly tier: string | null;
1540
+ }, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
1003
1541
  readonly delete: <WithResponse extends boolean = false>(request: {
1004
1542
  readonly path: {
1005
1543
  readonly id: string & effect_Brand.Brand<"Id">;
1006
1544
  };
1007
1545
  readonly withResponse?: WithResponse | undefined;
1008
- }) => Effect.Effect<WithResponse extends true ? [void, _effect_platform_HttpClientResponse.HttpClientResponse] : void, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
1546
+ }) => Effect.Effect<WithResponse extends true ? [void, _effect_platform_HttpClientResponse.HttpClientResponse] : void, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
1009
1547
  };
1010
1548
  readonly subscriptions: {
1011
1549
  readonly create: <WithResponse extends boolean = false>(request: {
1012
1550
  readonly payload: {
1013
- readonly amount: number & effect_Brand.Brand<"MinorUnitsInt">;
1551
+ readonly amount: number & effect_Brand.Brand<"NprAmount">;
1014
1552
  readonly currency: string;
1015
1553
  readonly metadata?: {
1016
1554
  readonly [x: string]: any;
@@ -1019,6 +1557,7 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
1019
1557
  readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
1020
1558
  readonly interval: "month" | "year" | "week";
1021
1559
  readonly interval_count?: number | undefined;
1560
+ readonly customer_email?: string | undefined;
1022
1561
  readonly auto_send_link?: boolean | undefined;
1023
1562
  };
1024
1563
  readonly withResponse?: WithResponse | undefined;
@@ -1029,17 +1568,19 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
1029
1568
  readonly metadata?: {
1030
1569
  readonly [x: string]: any;
1031
1570
  } | null | undefined;
1032
- readonly status: "active" | "past_due" | "canceled" | "paused";
1571
+ readonly status: "active" | "pending_checkout" | "past_due" | "canceled" | "paused";
1033
1572
  readonly project_id: string & effect_Brand.Brand<"ProjectId">;
1573
+ readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
1034
1574
  readonly created_at: string & effect_Brand.Brand<"Timestamp">;
1035
1575
  readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
1036
- readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
1037
1576
  readonly interval: "month" | "year" | "week";
1038
1577
  readonly interval_count: number;
1039
1578
  readonly current_period_start: string & effect_Brand.Brand<"Timestamp">;
1040
1579
  readonly current_period_end: string & effect_Brand.Brand<"Timestamp">;
1041
1580
  readonly payment_link: string & effect_Brand.Brand<"UrlString">;
1581
+ readonly customer_email?: string | null | undefined;
1042
1582
  readonly auto_send_link: boolean;
1583
+ readonly grace_days?: number | undefined;
1043
1584
  readonly canceled_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
1044
1585
  }, _effect_platform_HttpClientResponse.HttpClientResponse] : {
1045
1586
  readonly id: string & effect_Brand.Brand<"SubscriptionId">;
@@ -1048,19 +1589,21 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
1048
1589
  readonly metadata?: {
1049
1590
  readonly [x: string]: any;
1050
1591
  } | null | undefined;
1051
- readonly status: "active" | "past_due" | "canceled" | "paused";
1592
+ readonly status: "active" | "pending_checkout" | "past_due" | "canceled" | "paused";
1052
1593
  readonly project_id: string & effect_Brand.Brand<"ProjectId">;
1594
+ readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
1053
1595
  readonly created_at: string & effect_Brand.Brand<"Timestamp">;
1054
1596
  readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
1055
- readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
1056
1597
  readonly interval: "month" | "year" | "week";
1057
1598
  readonly interval_count: number;
1058
1599
  readonly current_period_start: string & effect_Brand.Brand<"Timestamp">;
1059
1600
  readonly current_period_end: string & effect_Brand.Brand<"Timestamp">;
1060
1601
  readonly payment_link: string & effect_Brand.Brand<"UrlString">;
1602
+ readonly customer_email?: string | null | undefined;
1061
1603
  readonly auto_send_link: boolean;
1604
+ readonly grace_days?: number | undefined;
1062
1605
  readonly canceled_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
1063
- }, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
1606
+ }, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
1064
1607
  readonly retrieve: <WithResponse extends boolean = false>(request: {
1065
1608
  readonly path: {
1066
1609
  readonly id: string & effect_Brand.Brand<"SubscriptionId">;
@@ -1073,17 +1616,19 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
1073
1616
  readonly metadata?: {
1074
1617
  readonly [x: string]: any;
1075
1618
  } | null | undefined;
1076
- readonly status: "active" | "past_due" | "canceled" | "paused";
1619
+ readonly status: "active" | "pending_checkout" | "past_due" | "canceled" | "paused";
1077
1620
  readonly project_id: string & effect_Brand.Brand<"ProjectId">;
1621
+ readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
1078
1622
  readonly created_at: string & effect_Brand.Brand<"Timestamp">;
1079
1623
  readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
1080
- readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
1081
1624
  readonly interval: "month" | "year" | "week";
1082
1625
  readonly interval_count: number;
1083
1626
  readonly current_period_start: string & effect_Brand.Brand<"Timestamp">;
1084
1627
  readonly current_period_end: string & effect_Brand.Brand<"Timestamp">;
1085
1628
  readonly payment_link: string & effect_Brand.Brand<"UrlString">;
1629
+ readonly customer_email?: string | null | undefined;
1086
1630
  readonly auto_send_link: boolean;
1631
+ readonly grace_days?: number | undefined;
1087
1632
  readonly canceled_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
1088
1633
  }, _effect_platform_HttpClientResponse.HttpClientResponse] : {
1089
1634
  readonly id: string & effect_Brand.Brand<"SubscriptionId">;
@@ -1092,26 +1637,28 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
1092
1637
  readonly metadata?: {
1093
1638
  readonly [x: string]: any;
1094
1639
  } | null | undefined;
1095
- readonly status: "active" | "past_due" | "canceled" | "paused";
1640
+ readonly status: "active" | "pending_checkout" | "past_due" | "canceled" | "paused";
1096
1641
  readonly project_id: string & effect_Brand.Brand<"ProjectId">;
1642
+ readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
1097
1643
  readonly created_at: string & effect_Brand.Brand<"Timestamp">;
1098
1644
  readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
1099
- readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
1100
1645
  readonly interval: "month" | "year" | "week";
1101
1646
  readonly interval_count: number;
1102
1647
  readonly current_period_start: string & effect_Brand.Brand<"Timestamp">;
1103
1648
  readonly current_period_end: string & effect_Brand.Brand<"Timestamp">;
1104
1649
  readonly payment_link: string & effect_Brand.Brand<"UrlString">;
1650
+ readonly customer_email?: string | null | undefined;
1105
1651
  readonly auto_send_link: boolean;
1652
+ readonly grace_days?: number | undefined;
1106
1653
  readonly canceled_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
1107
- }, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
1654
+ }, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
1108
1655
  readonly list: <WithResponse extends boolean = false>(request: {
1109
1656
  readonly urlParams: {
1110
- readonly status?: "active" | "past_due" | "canceled" | "paused" | undefined;
1657
+ readonly customerId?: (string & effect_Brand.Brand<"CustomerId">) | undefined;
1658
+ readonly status?: "active" | "pending_checkout" | "past_due" | "canceled" | "paused" | undefined;
1111
1659
  readonly limit?: number | undefined;
1112
1660
  readonly offset?: number | undefined;
1113
1661
  readonly projectId?: (string & effect_Brand.Brand<"ProjectId">) | undefined;
1114
- readonly customerId?: (string & effect_Brand.Brand<"CustomerId">) | undefined;
1115
1662
  };
1116
1663
  readonly withResponse?: WithResponse | undefined;
1117
1664
  }) => Effect.Effect<WithResponse extends true ? [{
@@ -1122,17 +1669,19 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
1122
1669
  readonly metadata?: {
1123
1670
  readonly [x: string]: any;
1124
1671
  } | null | undefined;
1125
- readonly status: "active" | "past_due" | "canceled" | "paused";
1672
+ readonly status: "active" | "pending_checkout" | "past_due" | "canceled" | "paused";
1126
1673
  readonly project_id: string & effect_Brand.Brand<"ProjectId">;
1674
+ readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
1127
1675
  readonly created_at: string & effect_Brand.Brand<"Timestamp">;
1128
1676
  readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
1129
- readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
1130
1677
  readonly interval: "month" | "year" | "week";
1131
1678
  readonly interval_count: number;
1132
1679
  readonly current_period_start: string & effect_Brand.Brand<"Timestamp">;
1133
1680
  readonly current_period_end: string & effect_Brand.Brand<"Timestamp">;
1134
1681
  readonly payment_link: string & effect_Brand.Brand<"UrlString">;
1682
+ readonly customer_email?: string | null | undefined;
1135
1683
  readonly auto_send_link: boolean;
1684
+ readonly grace_days?: number | undefined;
1136
1685
  readonly canceled_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
1137
1686
  }[];
1138
1687
  readonly meta: {
@@ -1148,17 +1697,19 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
1148
1697
  readonly metadata?: {
1149
1698
  readonly [x: string]: any;
1150
1699
  } | null | undefined;
1151
- readonly status: "active" | "past_due" | "canceled" | "paused";
1700
+ readonly status: "active" | "pending_checkout" | "past_due" | "canceled" | "paused";
1152
1701
  readonly project_id: string & effect_Brand.Brand<"ProjectId">;
1702
+ readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
1153
1703
  readonly created_at: string & effect_Brand.Brand<"Timestamp">;
1154
1704
  readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
1155
- readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
1156
1705
  readonly interval: "month" | "year" | "week";
1157
1706
  readonly interval_count: number;
1158
1707
  readonly current_period_start: string & effect_Brand.Brand<"Timestamp">;
1159
1708
  readonly current_period_end: string & effect_Brand.Brand<"Timestamp">;
1160
1709
  readonly payment_link: string & effect_Brand.Brand<"UrlString">;
1710
+ readonly customer_email?: string | null | undefined;
1161
1711
  readonly auto_send_link: boolean;
1712
+ readonly grace_days?: number | undefined;
1162
1713
  readonly canceled_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
1163
1714
  }[];
1164
1715
  readonly meta: {
@@ -1166,7 +1717,7 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
1166
1717
  readonly limit: number;
1167
1718
  readonly offset: number;
1168
1719
  };
1169
- }, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
1720
+ }, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
1170
1721
  readonly cancel: <WithResponse extends boolean = false>(request: {
1171
1722
  readonly path: {
1172
1723
  readonly id: string & effect_Brand.Brand<"SubscriptionId">;
@@ -1179,17 +1730,19 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
1179
1730
  readonly metadata?: {
1180
1731
  readonly [x: string]: any;
1181
1732
  } | null | undefined;
1182
- readonly status: "active" | "past_due" | "canceled" | "paused";
1733
+ readonly status: "active" | "pending_checkout" | "past_due" | "canceled" | "paused";
1183
1734
  readonly project_id: string & effect_Brand.Brand<"ProjectId">;
1735
+ readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
1184
1736
  readonly created_at: string & effect_Brand.Brand<"Timestamp">;
1185
1737
  readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
1186
- readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
1187
1738
  readonly interval: "month" | "year" | "week";
1188
1739
  readonly interval_count: number;
1189
1740
  readonly current_period_start: string & effect_Brand.Brand<"Timestamp">;
1190
1741
  readonly current_period_end: string & effect_Brand.Brand<"Timestamp">;
1191
1742
  readonly payment_link: string & effect_Brand.Brand<"UrlString">;
1743
+ readonly customer_email?: string | null | undefined;
1192
1744
  readonly auto_send_link: boolean;
1745
+ readonly grace_days?: number | undefined;
1193
1746
  readonly canceled_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
1194
1747
  }, _effect_platform_HttpClientResponse.HttpClientResponse] : {
1195
1748
  readonly id: string & effect_Brand.Brand<"SubscriptionId">;
@@ -1198,25 +1751,27 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
1198
1751
  readonly metadata?: {
1199
1752
  readonly [x: string]: any;
1200
1753
  } | null | undefined;
1201
- readonly status: "active" | "past_due" | "canceled" | "paused";
1754
+ readonly status: "active" | "pending_checkout" | "past_due" | "canceled" | "paused";
1202
1755
  readonly project_id: string & effect_Brand.Brand<"ProjectId">;
1756
+ readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
1203
1757
  readonly created_at: string & effect_Brand.Brand<"Timestamp">;
1204
1758
  readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
1205
- readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
1206
1759
  readonly interval: "month" | "year" | "week";
1207
1760
  readonly interval_count: number;
1208
1761
  readonly current_period_start: string & effect_Brand.Brand<"Timestamp">;
1209
1762
  readonly current_period_end: string & effect_Brand.Brand<"Timestamp">;
1210
1763
  readonly payment_link: string & effect_Brand.Brand<"UrlString">;
1764
+ readonly customer_email?: string | null | undefined;
1211
1765
  readonly auto_send_link: boolean;
1766
+ readonly grace_days?: number | undefined;
1212
1767
  readonly canceled_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
1213
- }, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
1768
+ }, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
1214
1769
  readonly activate: <WithResponse extends boolean = false>(request: {
1215
1770
  readonly path: {
1216
1771
  readonly id: string & effect_Brand.Brand<"SubscriptionId">;
1217
1772
  };
1218
1773
  readonly payload: {
1219
- readonly provider: "esewa" | "khalti" | "connectips" | "imepay" | "fonepay" | "sandbox";
1774
+ readonly provider: "esewa" | "khalti" | "hamropay" | "connectips" | "imepay" | "fonepay" | "sandbox";
1220
1775
  readonly returnUrl: string;
1221
1776
  readonly cancelUrl?: string | undefined;
1222
1777
  };
@@ -1227,7 +1782,7 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
1227
1782
  }, _effect_platform_HttpClientResponse.HttpClientResponse] : {
1228
1783
  readonly checkout_url: string;
1229
1784
  readonly payment_id: string;
1230
- }, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
1785
+ }, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
1231
1786
  };
1232
1787
  readonly automation: {
1233
1788
  readonly reminders: <WithResponse extends boolean = false>(request: void | {
@@ -1238,16 +1793,36 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
1238
1793
  }, _effect_platform_HttpClientResponse.HttpClientResponse] : {
1239
1794
  readonly message: string;
1240
1795
  readonly count: number;
1241
- }, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
1796
+ }, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
1242
1797
  readonly reaper: <WithResponse extends boolean = false>(request: void | {
1243
1798
  readonly withResponse?: WithResponse | undefined;
1244
1799
  }) => Effect.Effect<WithResponse extends true ? [{
1245
1800
  readonly message: string;
1246
1801
  readonly count: number;
1802
+ readonly purged_projects: number;
1247
1803
  }, _effect_platform_HttpClientResponse.HttpClientResponse] : {
1248
1804
  readonly message: string;
1249
1805
  readonly count: number;
1250
- }, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
1806
+ readonly purged_projects: number;
1807
+ }, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
1808
+ readonly processRenewals: <WithResponse extends boolean = false>(request: void | {
1809
+ readonly withResponse?: WithResponse | undefined;
1810
+ }) => Effect.Effect<WithResponse extends true ? [{
1811
+ readonly message: string;
1812
+ readonly emails_sent: number;
1813
+ }, _effect_platform_HttpClientResponse.HttpClientResponse] : {
1814
+ readonly message: string;
1815
+ readonly emails_sent: number;
1816
+ }, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
1817
+ readonly processGracePeriod: <WithResponse extends boolean = false>(request: void | {
1818
+ readonly withResponse?: WithResponse | undefined;
1819
+ }) => Effect.Effect<WithResponse extends true ? [{
1820
+ readonly message: string;
1821
+ readonly marked_past_due: number;
1822
+ }, _effect_platform_HttpClientResponse.HttpClientResponse] : {
1823
+ readonly message: string;
1824
+ readonly marked_past_due: number;
1825
+ }, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
1251
1826
  };
1252
1827
  readonly tokens: {
1253
1828
  readonly create: <WithResponse extends boolean = false>(request: {
@@ -1273,7 +1848,7 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
1273
1848
  readonly last_used_at: (string & effect_Brand.Brand<"Timestamp">) | null;
1274
1849
  readonly expires_at: (string & effect_Brand.Brand<"Timestamp">) | null;
1275
1850
  readonly token: string;
1276
- }, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
1851
+ }, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
1277
1852
  readonly list: <WithResponse extends boolean = false>(request: void | {
1278
1853
  readonly withResponse?: WithResponse | undefined;
1279
1854
  }) => Effect.Effect<WithResponse extends true ? [readonly {
@@ -1290,13 +1865,13 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
1290
1865
  readonly scopes: readonly string[];
1291
1866
  readonly last_used_at: (string & effect_Brand.Brand<"Timestamp">) | null;
1292
1867
  readonly expires_at: (string & effect_Brand.Brand<"Timestamp">) | null;
1293
- }[], _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
1868
+ }[], _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
1294
1869
  readonly delete: <WithResponse extends boolean = false>(request: {
1295
1870
  readonly path: {
1296
1871
  readonly id: string & effect_Brand.Brand<"TokenId">;
1297
1872
  };
1298
1873
  readonly withResponse?: WithResponse | undefined;
1299
- }) => Effect.Effect<WithResponse extends true ? [null, _effect_platform_HttpClientResponse.HttpClientResponse] : null, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
1874
+ }) => Effect.Effect<WithResponse extends true ? [null, _effect_platform_HttpClientResponse.HttpClientResponse] : null, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
1300
1875
  };
1301
1876
  readonly projects: {
1302
1877
  readonly list: <WithResponse extends boolean = false>(request: void | {
@@ -1305,13 +1880,44 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
1305
1880
  readonly id: string & effect_Brand.Brand<"ProjectId">;
1306
1881
  readonly created_at: string & effect_Brand.Brand<"Timestamp">;
1307
1882
  readonly name: string & effect_Brand.Brand<"NonEmptyString">;
1883
+ readonly expires_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
1308
1884
  readonly api_key_secret: string;
1885
+ readonly subscription_tier?: "free" | "pro" | "enterprise" | undefined;
1886
+ readonly subscription_status?: "active" | "past_due" | "canceled" | "incomplete" | undefined;
1309
1887
  }[], _effect_platform_HttpClientResponse.HttpClientResponse] : readonly {
1310
1888
  readonly id: string & effect_Brand.Brand<"ProjectId">;
1311
1889
  readonly created_at: string & effect_Brand.Brand<"Timestamp">;
1312
1890
  readonly name: string & effect_Brand.Brand<"NonEmptyString">;
1891
+ readonly expires_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
1313
1892
  readonly api_key_secret: string;
1314
- }[], _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
1893
+ readonly subscription_tier?: "free" | "pro" | "enterprise" | undefined;
1894
+ readonly subscription_status?: "active" | "past_due" | "canceled" | "incomplete" | undefined;
1895
+ }[], _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
1896
+ readonly upgrade: <WithResponse extends boolean = false>(request: {
1897
+ readonly path: {
1898
+ readonly id: string & effect_Brand.Brand<"ProjectId">;
1899
+ };
1900
+ readonly payload: {
1901
+ readonly tier: "pro" | "enterprise";
1902
+ };
1903
+ readonly withResponse?: WithResponse | undefined;
1904
+ }) => Effect.Effect<WithResponse extends true ? [{
1905
+ readonly id: string & effect_Brand.Brand<"ProjectId">;
1906
+ readonly created_at: string & effect_Brand.Brand<"Timestamp">;
1907
+ readonly name: string & effect_Brand.Brand<"NonEmptyString">;
1908
+ readonly expires_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
1909
+ readonly api_key_secret: string;
1910
+ readonly subscription_tier?: "free" | "pro" | "enterprise" | undefined;
1911
+ readonly subscription_status?: "active" | "past_due" | "canceled" | "incomplete" | undefined;
1912
+ }, _effect_platform_HttpClientResponse.HttpClientResponse] : {
1913
+ readonly id: string & effect_Brand.Brand<"ProjectId">;
1914
+ readonly created_at: string & effect_Brand.Brand<"Timestamp">;
1915
+ readonly name: string & effect_Brand.Brand<"NonEmptyString">;
1916
+ readonly expires_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
1917
+ readonly api_key_secret: string;
1918
+ readonly subscription_tier?: "free" | "pro" | "enterprise" | undefined;
1919
+ readonly subscription_status?: "active" | "past_due" | "canceled" | "incomplete" | undefined;
1920
+ }, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
1315
1921
  };
1316
1922
  readonly callbacks: {
1317
1923
  readonly handle: <WithResponse extends boolean = false>(request: {
@@ -1319,12 +1925,139 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
1319
1925
  readonly provider: string;
1320
1926
  };
1321
1927
  readonly urlParams: {
1928
+ readonly code?: string | undefined;
1322
1929
  readonly data?: string | undefined;
1323
1930
  readonly payment_id?: string | undefined;
1324
1931
  readonly pidx?: string | undefined;
1932
+ readonly ref_id?: string | undefined;
1933
+ readonly access_token?: string | undefined;
1934
+ readonly refresh_token?: string | undefined;
1325
1935
  };
1326
1936
  readonly withResponse?: WithResponse | undefined;
1327
- }) => Effect.Effect<WithResponse extends true ? [any, _effect_platform_HttpClientResponse.HttpClientResponse] : any, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
1937
+ }) => Effect.Effect<WithResponse extends true ? [any, _effect_platform_HttpClientResponse.HttpClientResponse] : any, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
1938
+ };
1939
+ readonly auth: {
1940
+ readonly callback: <WithResponse extends boolean = false>(request: {
1941
+ readonly urlParams: {
1942
+ readonly code?: string | undefined;
1943
+ readonly next?: string | undefined;
1944
+ };
1945
+ readonly withResponse?: WithResponse | undefined;
1946
+ }) => Effect.Effect<WithResponse extends true ? [any, _effect_platform_HttpClientResponse.HttpClientResponse] : any, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
1947
+ };
1948
+ readonly mandates: {
1949
+ readonly registerIntent: <WithResponse extends boolean = false>(request: {
1950
+ readonly payload: {
1951
+ readonly currency: string;
1952
+ readonly customer_id?: (string & effect_Brand.Brand<"CustomerId">) | undefined;
1953
+ readonly principal_id: string;
1954
+ readonly max_amount: number;
1955
+ readonly permitted_vendors?: readonly string[] | undefined;
1956
+ readonly valid_until: string & effect_Brand.Brand<"Timestamp">;
1957
+ readonly credential_jwt: string;
1958
+ readonly public_key: string;
1959
+ };
1960
+ readonly withResponse?: WithResponse | undefined;
1961
+ }) => Effect.Effect<WithResponse extends true ? [{
1962
+ readonly id: string & effect_Brand.Brand<"MandateId">;
1963
+ readonly type: "intent" | "cart";
1964
+ readonly currency: string;
1965
+ readonly status: "active" | "consumed" | "expired" | "violated";
1966
+ readonly project_id: string & effect_Brand.Brand<"ProjectId">;
1967
+ readonly customer_id: (string & effect_Brand.Brand<"CustomerId">) | null;
1968
+ readonly metadata_json: {
1969
+ readonly [x: string]: any;
1970
+ };
1971
+ readonly created_at: string & effect_Brand.Brand<"Timestamp">;
1972
+ readonly payment_id: (string & effect_Brand.Brand<"PaymentId">) | null;
1973
+ readonly principal_id: string;
1974
+ readonly max_amount: number;
1975
+ readonly permitted_vendors: readonly string[] | null;
1976
+ readonly valid_from: string & effect_Brand.Brand<"Timestamp">;
1977
+ readonly valid_until: string & effect_Brand.Brand<"Timestamp">;
1978
+ readonly credential_jwt: string;
1979
+ readonly public_key: string;
1980
+ readonly signature: string;
1981
+ readonly parent_mandate_id: (string & effect_Brand.Brand<"MandateId">) | null;
1982
+ readonly consumed_at: (string & effect_Brand.Brand<"Timestamp">) | null;
1983
+ }, _effect_platform_HttpClientResponse.HttpClientResponse] : {
1984
+ readonly id: string & effect_Brand.Brand<"MandateId">;
1985
+ readonly type: "intent" | "cart";
1986
+ readonly currency: string;
1987
+ readonly status: "active" | "consumed" | "expired" | "violated";
1988
+ readonly project_id: string & effect_Brand.Brand<"ProjectId">;
1989
+ readonly customer_id: (string & effect_Brand.Brand<"CustomerId">) | null;
1990
+ readonly metadata_json: {
1991
+ readonly [x: string]: any;
1992
+ };
1993
+ readonly created_at: string & effect_Brand.Brand<"Timestamp">;
1994
+ readonly payment_id: (string & effect_Brand.Brand<"PaymentId">) | null;
1995
+ readonly principal_id: string;
1996
+ readonly max_amount: number;
1997
+ readonly permitted_vendors: readonly string[] | null;
1998
+ readonly valid_from: string & effect_Brand.Brand<"Timestamp">;
1999
+ readonly valid_until: string & effect_Brand.Brand<"Timestamp">;
2000
+ readonly credential_jwt: string;
2001
+ readonly public_key: string;
2002
+ readonly signature: string;
2003
+ readonly parent_mandate_id: (string & effect_Brand.Brand<"MandateId">) | null;
2004
+ readonly consumed_at: (string & effect_Brand.Brand<"Timestamp">) | null;
2005
+ }, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
2006
+ readonly retrieve: <WithResponse extends boolean = false>(request: {
2007
+ readonly path: {
2008
+ readonly id: string & effect_Brand.Brand<"MandateId">;
2009
+ };
2010
+ readonly withResponse?: WithResponse | undefined;
2011
+ }) => Effect.Effect<WithResponse extends true ? [{
2012
+ readonly id: string & effect_Brand.Brand<"MandateId">;
2013
+ readonly type: "intent" | "cart";
2014
+ readonly currency: string;
2015
+ readonly status: "active" | "consumed" | "expired" | "violated";
2016
+ readonly project_id: string & effect_Brand.Brand<"ProjectId">;
2017
+ readonly customer_id: (string & effect_Brand.Brand<"CustomerId">) | null;
2018
+ readonly metadata_json: {
2019
+ readonly [x: string]: any;
2020
+ };
2021
+ readonly created_at: string & effect_Brand.Brand<"Timestamp">;
2022
+ readonly payment_id: (string & effect_Brand.Brand<"PaymentId">) | null;
2023
+ readonly principal_id: string;
2024
+ readonly max_amount: number;
2025
+ readonly permitted_vendors: readonly string[] | null;
2026
+ readonly valid_from: string & effect_Brand.Brand<"Timestamp">;
2027
+ readonly valid_until: string & effect_Brand.Brand<"Timestamp">;
2028
+ readonly credential_jwt: string;
2029
+ readonly public_key: string;
2030
+ readonly signature: string;
2031
+ readonly parent_mandate_id: (string & effect_Brand.Brand<"MandateId">) | null;
2032
+ readonly consumed_at: (string & effect_Brand.Brand<"Timestamp">) | null;
2033
+ }, _effect_platform_HttpClientResponse.HttpClientResponse] : {
2034
+ readonly id: string & effect_Brand.Brand<"MandateId">;
2035
+ readonly type: "intent" | "cart";
2036
+ readonly currency: string;
2037
+ readonly status: "active" | "consumed" | "expired" | "violated";
2038
+ readonly project_id: string & effect_Brand.Brand<"ProjectId">;
2039
+ readonly customer_id: (string & effect_Brand.Brand<"CustomerId">) | null;
2040
+ readonly metadata_json: {
2041
+ readonly [x: string]: any;
2042
+ };
2043
+ readonly created_at: string & effect_Brand.Brand<"Timestamp">;
2044
+ readonly payment_id: (string & effect_Brand.Brand<"PaymentId">) | null;
2045
+ readonly principal_id: string;
2046
+ readonly max_amount: number;
2047
+ readonly permitted_vendors: readonly string[] | null;
2048
+ readonly valid_from: string & effect_Brand.Brand<"Timestamp">;
2049
+ readonly valid_until: string & effect_Brand.Brand<"Timestamp">;
2050
+ readonly credential_jwt: string;
2051
+ readonly public_key: string;
2052
+ readonly signature: string;
2053
+ readonly parent_mandate_id: (string & effect_Brand.Brand<"MandateId">) | null;
2054
+ readonly consumed_at: (string & effect_Brand.Brand<"Timestamp">) | null;
2055
+ }, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
2056
+ };
2057
+ readonly discovery: {
2058
+ readonly agentCard: <WithResponse extends boolean = false>(request: void | {
2059
+ readonly withResponse?: WithResponse | undefined;
2060
+ }) => Effect.Effect<WithResponse extends true ? [any, _effect_platform_HttpClientResponse.HttpClientResponse] : any, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
1328
2061
  };
1329
2062
  readonly realtime: {
1330
2063
  readonly connect: <WithResponse extends boolean = false>(request: {
@@ -1332,14 +2065,14 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
1332
2065
  readonly token: string;
1333
2066
  };
1334
2067
  readonly withResponse?: WithResponse | undefined;
1335
- }) => Effect.Effect<WithResponse extends true ? [any, _effect_platform_HttpClientResponse.HttpClientResponse] : any, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
2068
+ }) => Effect.Effect<WithResponse extends true ? [any, _effect_platform_HttpClientResponse.HttpClientResponse] : any, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
1336
2069
  readonly trigger: <WithResponse extends boolean = false>(request: {
1337
2070
  readonly urlParams: {
1338
2071
  readonly token?: string | undefined;
1339
2072
  };
1340
2073
  readonly payload: {
1341
2074
  readonly data?: any;
1342
- readonly event?: "payment.success" | "payment.failed" | "subscription.created" | "subscription.payment_succeeded" | "subscription.payment_failed" | "subscription.renewal_due" | "subscription.canceled" | undefined;
2075
+ readonly event?: "payment.success" | "payment.failed" | "subscription.created" | "subscription.activated" | "subscription.renewed" | "subscription.payment_succeeded" | "subscription.payment_failed" | "subscription.renewal_due" | "subscription.canceled" | undefined;
1343
2076
  };
1344
2077
  readonly withResponse?: WithResponse | undefined;
1345
2078
  }) => Effect.Effect<WithResponse extends true ? [{
@@ -1348,7 +2081,64 @@ declare const PayArkClient_base: Context.TagClass<PayArkClient, "@payark/sdk-eff
1348
2081
  }, _effect_platform_HttpClientResponse.HttpClientResponse] : {
1349
2082
  readonly status: string;
1350
2083
  readonly event?: string | undefined;
1351
- }, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
2084
+ }, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
2085
+ };
2086
+ readonly sandbox: {
2087
+ readonly init: <WithResponse extends boolean = false>(request: void | {
2088
+ readonly withResponse?: WithResponse | undefined;
2089
+ }) => Effect.Effect<WithResponse extends true ? [{
2090
+ readonly projectId: string;
2091
+ readonly apiKey?: string | undefined;
2092
+ readonly expiresAt: string & effect_Brand.Brand<"Timestamp">;
2093
+ readonly session?: {
2094
+ readonly access_token: string;
2095
+ readonly refresh_token: string;
2096
+ } | undefined;
2097
+ }, _effect_platform_HttpClientResponse.HttpClientResponse] : {
2098
+ readonly projectId: string;
2099
+ readonly apiKey?: string | undefined;
2100
+ readonly expiresAt: string & effect_Brand.Brand<"Timestamp">;
2101
+ readonly session?: {
2102
+ readonly access_token: string;
2103
+ readonly refresh_token: string;
2104
+ } | undefined;
2105
+ }, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
2106
+ };
2107
+ readonly signingKeys: {
2108
+ readonly generate: <WithResponse extends boolean = false>(request: {
2109
+ readonly path: {
2110
+ readonly id: string & effect_Brand.Brand<"ProjectId">;
2111
+ };
2112
+ readonly withResponse?: WithResponse | undefined;
2113
+ }) => Effect.Effect<WithResponse extends true ? [{
2114
+ readonly id: string;
2115
+ readonly publicKey: string;
2116
+ readonly privateKey: string;
2117
+ readonly algorithm: string;
2118
+ readonly createdAt: string & effect_Brand.Brand<"Timestamp">;
2119
+ }, _effect_platform_HttpClientResponse.HttpClientResponse] : {
2120
+ readonly id: string;
2121
+ readonly publicKey: string;
2122
+ readonly privateKey: string;
2123
+ readonly algorithm: string;
2124
+ readonly createdAt: string & effect_Brand.Brand<"Timestamp">;
2125
+ }, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
2126
+ readonly get: <WithResponse extends boolean = false>(request: {
2127
+ readonly path: {
2128
+ readonly id: string & effect_Brand.Brand<"ProjectId">;
2129
+ };
2130
+ readonly withResponse?: WithResponse | undefined;
2131
+ }) => Effect.Effect<WithResponse extends true ? [{
2132
+ readonly id: string;
2133
+ readonly publicKey: string;
2134
+ readonly algorithm: string;
2135
+ readonly createdAt: string & effect_Brand.Brand<"Timestamp">;
2136
+ }, _effect_platform_HttpClientResponse.HttpClientResponse] : {
2137
+ readonly id: string;
2138
+ readonly publicKey: string;
2139
+ readonly algorithm: string;
2140
+ readonly createdAt: string & effect_Brand.Brand<"Timestamp">;
2141
+ }, _effect_platform_HttpApiError.HttpApiDecodeError | AuthenticationError | InternalServerError | IndustrialError | NotFoundError | ConflictError | MandateViolationError$1 | MandateExpiredError$1 | _effect_platform_HttpClientError.HttpClientError | effect_ParseResult.ParseError, never>;
1352
2142
  };
1353
2143
  }>;
1354
2144
  /**
@@ -1368,6 +2158,12 @@ declare class PayArkEffect {
1368
2158
  private _checkout?;
1369
2159
  private _payments?;
1370
2160
  private _projects?;
2161
+ private _customers?;
2162
+ private _subscriptions?;
2163
+ private _mandates?;
2164
+ private _tokens?;
2165
+ private _realtime?;
2166
+ private _automation?;
1371
2167
  constructor(config: PayArkConfig);
1372
2168
  /**
1373
2169
  * Checkout sessions resource (Effect).
@@ -1381,6 +2177,30 @@ declare class PayArkEffect {
1381
2177
  * Projects resource (Effect).
1382
2178
  */
1383
2179
  get projects(): ProjectsEffect;
2180
+ /**
2181
+ * Customers resource (Effect).
2182
+ */
2183
+ get customers(): CustomersEffect;
2184
+ /**
2185
+ * Subscriptions resource (Effect).
2186
+ */
2187
+ get subscriptions(): SubscriptionsEffect;
2188
+ /**
2189
+ * Mandates resource (Effect).
2190
+ */
2191
+ get mandates(): MandatesEffect;
2192
+ /**
2193
+ * Tokens resource (Effect).
2194
+ */
2195
+ get tokens(): TokensEffect;
2196
+ /**
2197
+ * Realtime resource (Effect).
2198
+ */
2199
+ get realtime(): RealtimeEffect;
2200
+ /**
2201
+ * Automation resource (Effect).
2202
+ */
2203
+ get automation(): AutomationEffect;
1384
2204
  }
1385
2205
  declare const PayArk_base: Context.TagClass<PayArk, "@payark/sdk-effect/PayArk", PayArkEffect>;
1386
2206
  /**
@@ -1393,4 +2213,4 @@ declare class PayArk extends PayArk_base {
1393
2213
  static readonly Live: (config: PayArkConfig) => Layer.Layer<PayArk, never, never>;
1394
2214
  }
1395
2215
 
1396
- export { AuthenticationError, CheckoutSession, ConflictError, CreateCheckoutParams, IndustrialError, InternalServerError, ListPaymentsParams, NotFoundError, PaginatedResponse, PayArk, PayArkClient, PayArkConfig, PayArkEffect, PayArkEffectError, Payment, Project, makeClient };
2216
+ export { AuthenticationError, CheckoutSession, ConflictError, CreateCheckoutParams, CreateCustomerParams, CreateSubscriptionParams, Customer, IndustrialError, InternalServerError, ListCustomersParams, ListPaymentsParams, ListSubscriptionsParams, Mandate, MandateExpiredError, MandateViolationError, NotFoundError, PaginatedResponse, PayArk, PayArkClient, PayArkConfig, PayArkEffect, PayArkEffectError, Payment, Project, Subscription, Token, UpdateCustomerParams, makeClient };