@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.
@@ -4,13 +4,16 @@ import * as effect_Effect from 'effect/Effect';
4
4
  import * as _effect_platform_HttpRouter from '@effect/platform/HttpRouter';
5
5
  import * as effect_Redacted from 'effect/Redacted';
6
6
  import { HttpApiGroup, HttpApiEndpoint, HttpApiMiddleware, HttpApiSecurity, HttpApi } from '@effect/platform';
7
- import { Context, Schema } from 'effect';
7
+ import { Schema, Context } from 'effect';
8
8
 
9
9
  declare const IndustrialError_base: Schema.TaggedErrorClass<IndustrialError, "IndustrialError", {
10
10
  readonly _tag: Schema.tag<"IndustrialError">;
11
11
  } & {
12
12
  error: typeof Schema.String;
13
13
  details: Schema.optional<typeof Schema.Any>;
14
+ code: Schema.optional<typeof Schema.String>;
15
+ doc_url: Schema.optional<typeof Schema.String>;
16
+ suggestion: Schema.optional<typeof Schema.String>;
14
17
  }>;
15
18
  /**
16
19
  * Industrial Error Schema with Status mapping.
@@ -21,6 +24,9 @@ declare const AuthenticationError_base: Schema.TaggedErrorClass<AuthenticationEr
21
24
  readonly _tag: Schema.tag<"AuthenticationError">;
22
25
  } & {
23
26
  error: typeof Schema.String;
27
+ code: Schema.optional<typeof Schema.String>;
28
+ doc_url: Schema.optional<typeof Schema.String>;
29
+ suggestion: Schema.optional<typeof Schema.String>;
24
30
  }>;
25
31
  declare class AuthenticationError extends AuthenticationError_base {
26
32
  }
@@ -28,6 +34,9 @@ declare const NotFoundError_base: Schema.TaggedErrorClass<NotFoundError, "NotFou
28
34
  readonly _tag: Schema.tag<"NotFoundError">;
29
35
  } & {
30
36
  error: typeof Schema.String;
37
+ code: Schema.optional<typeof Schema.String>;
38
+ doc_url: Schema.optional<typeof Schema.String>;
39
+ suggestion: Schema.optional<typeof Schema.String>;
31
40
  }>;
32
41
  declare class NotFoundError extends NotFoundError_base {
33
42
  }
@@ -36,6 +45,9 @@ declare const InternalServerError_base: Schema.TaggedErrorClass<InternalServerEr
36
45
  } & {
37
46
  error: typeof Schema.String;
38
47
  details: Schema.optional<typeof Schema.Any>;
48
+ code: Schema.optional<typeof Schema.String>;
49
+ doc_url: Schema.optional<typeof Schema.String>;
50
+ suggestion: Schema.optional<typeof Schema.String>;
39
51
  }>;
40
52
  declare class InternalServerError extends InternalServerError_base {
41
53
  }
@@ -43,9 +55,35 @@ declare const ConflictError_base: Schema.TaggedErrorClass<ConflictError, "Confli
43
55
  readonly _tag: Schema.tag<"ConflictError">;
44
56
  } & {
45
57
  error: typeof Schema.String;
58
+ code: Schema.optional<typeof Schema.String>;
59
+ doc_url: Schema.optional<typeof Schema.String>;
60
+ suggestion: Schema.optional<typeof Schema.String>;
46
61
  }>;
47
62
  declare class ConflictError extends ConflictError_base {
48
63
  }
64
+ declare const MandateViolationError_base: Schema.TaggedErrorClass<MandateViolationError, "MandateViolationError", {
65
+ readonly _tag: Schema.tag<"MandateViolationError">;
66
+ } & {
67
+ error: typeof Schema.String;
68
+ mandateId: Schema.optional<typeof Schema.String>;
69
+ code: Schema.optional<typeof Schema.String>;
70
+ doc_url: Schema.optional<typeof Schema.String>;
71
+ suggestion: Schema.optional<typeof Schema.String>;
72
+ }>;
73
+ declare class MandateViolationError extends MandateViolationError_base {
74
+ }
75
+ declare const MandateExpiredError_base: Schema.TaggedErrorClass<MandateExpiredError, "MandateExpiredError", {
76
+ readonly _tag: Schema.tag<"MandateExpiredError">;
77
+ } & {
78
+ error: typeof Schema.String;
79
+ mandateId: Schema.brand<typeof Schema.String, "MandateId">;
80
+ expiredAt: Schema.brand<typeof Schema.String, "Timestamp">;
81
+ code: Schema.optional<typeof Schema.String>;
82
+ doc_url: Schema.optional<typeof Schema.String>;
83
+ suggestion: Schema.optional<typeof Schema.String>;
84
+ }>;
85
+ declare class MandateExpiredError extends MandateExpiredError_base {
86
+ }
49
87
  /**
50
88
  * PayArk Industrial API Specification.
51
89
  * Single source of truth for the entire platform.
@@ -53,6 +91,8 @@ declare class ConflictError extends ConflictError_base {
53
91
  interface AuthContext {
54
92
  readonly project?: {
55
93
  readonly id: string;
94
+ readonly isTestMode: boolean;
95
+ readonly isEphemeral?: boolean;
56
96
  };
57
97
  readonly user?: {
58
98
  readonly id: string;
@@ -98,23 +138,26 @@ declare const UserSecurity_base: HttpApiMiddleware.TagClass.BaseSecurity<UserSec
98
138
  declare class UserSecurity extends UserSecurity_base {
99
139
  }
100
140
  declare const CheckoutGroup: HttpApiGroup.HttpApiGroup<"checkout", HttpApiEndpoint.HttpApiEndpoint<"create", "POST", never, never, {
101
- readonly amount?: (number & effect_Brand.Brand<"MinorUnitsInt">) | undefined;
141
+ readonly amount?: (number & effect_Brand.Brand<"NprAmount">) | undefined;
102
142
  readonly currency: string;
103
- readonly provider: "esewa" | "khalti" | "connectips" | "imepay" | "fonepay" | "sandbox";
143
+ readonly provider: "esewa" | "khalti" | "hamropay" | "connectips" | "imepay" | "fonepay" | "sandbox";
104
144
  readonly returnUrl: string & effect_Brand.Brand<"UrlString">;
105
145
  readonly cancelUrl?: (string & effect_Brand.Brand<"UrlString">) | undefined;
106
146
  readonly metadata?: {
107
147
  readonly [x: string]: any;
108
148
  } | undefined;
109
149
  readonly subscriptionId?: (string & effect_Brand.Brand<"SubscriptionId">) | undefined;
150
+ readonly customerId?: (string & effect_Brand.Brand<"CustomerId">) | undefined;
151
+ readonly mandate_id?: (string & effect_Brand.Brand<"MandateId">) | undefined;
110
152
  }, never, {
111
153
  readonly id: string & effect_Brand.Brand<"CheckoutSessionId">;
112
154
  readonly checkout_url: string & effect_Brand.Brand<"UrlString">;
155
+ readonly qr_string?: string | undefined;
113
156
  readonly payment_method: {
114
157
  readonly fields?: {
115
158
  readonly [x: string]: string;
116
159
  } | undefined;
117
- readonly type: "esewa" | "khalti" | "connectips" | "imepay" | "fonepay" | "sandbox";
160
+ readonly type: "esewa" | "khalti" | "hamropay" | "connectips" | "imepay" | "fonepay" | "sandbox";
118
161
  readonly url?: (string & effect_Brand.Brand<"UrlString">) | undefined;
119
162
  readonly method?: "POST" | "GET" | undefined;
120
163
  };
@@ -130,6 +173,7 @@ declare const PaymentsGroup: HttpApiGroup.HttpApiGroup<"payments", HttpApiEndpoi
130
173
  readonly currency: string;
131
174
  readonly status: "pending" | "success" | "failed";
132
175
  readonly project_id: string & effect_Brand.Brand<"ProjectId">;
176
+ readonly customer_id?: (string & effect_Brand.Brand<"CustomerId">) | null | undefined;
133
177
  readonly provider_ref?: string | null | undefined;
134
178
  readonly metadata_json?: {
135
179
  readonly [x: string]: any;
@@ -151,6 +195,7 @@ declare const PaymentsGroup: HttpApiGroup.HttpApiGroup<"payments", HttpApiEndpoi
151
195
  readonly currency: string;
152
196
  readonly status: "pending" | "success" | "failed";
153
197
  readonly project_id: string & effect_Brand.Brand<"ProjectId">;
198
+ readonly customer_id?: (string & effect_Brand.Brand<"CustomerId">) | null | undefined;
154
199
  readonly provider_ref?: string | null | undefined;
155
200
  readonly metadata_json?: {
156
201
  readonly [x: string]: any;
@@ -180,6 +225,11 @@ declare const CustomersGroup: HttpApiGroup.HttpApiGroup<"customers", HttpApiEndp
180
225
  readonly email: (string & effect_Brand.Brand<"Email">) | null;
181
226
  readonly name: (string & effect_Brand.Brand<"NonEmptyString">) | null;
182
227
  readonly phone: string | null;
228
+ readonly total_ltv?: number | undefined;
229
+ readonly is_high_value?: boolean | undefined;
230
+ readonly lifecycle_stage?: "new" | "active" | "loyal" | "at_risk" | "churned" | undefined;
231
+ readonly ltv_cents?: number | undefined;
232
+ readonly tier: string | null;
183
233
  }, IndustrialError | AuthenticationError | InternalServerError | ConflictError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", never, {
184
234
  readonly limit?: number | undefined;
185
235
  readonly offset?: number | undefined;
@@ -199,6 +249,11 @@ declare const CustomersGroup: HttpApiGroup.HttpApiGroup<"customers", HttpApiEndp
199
249
  readonly email: (string & effect_Brand.Brand<"Email">) | null;
200
250
  readonly name: (string & effect_Brand.Brand<"NonEmptyString">) | null;
201
251
  readonly phone: string | null;
252
+ readonly total_ltv?: number | undefined;
253
+ readonly is_high_value?: boolean | undefined;
254
+ readonly lifecycle_stage?: "new" | "active" | "loyal" | "at_risk" | "churned" | undefined;
255
+ readonly ltv_cents?: number | undefined;
256
+ readonly tier: string | null;
202
257
  }[];
203
258
  readonly meta: {
204
259
  readonly total: number | null;
@@ -219,15 +274,22 @@ declare const CustomersGroup: HttpApiGroup.HttpApiGroup<"customers", HttpApiEndp
219
274
  readonly email: (string & effect_Brand.Brand<"Email">) | null;
220
275
  readonly name: (string & effect_Brand.Brand<"NonEmptyString">) | null;
221
276
  readonly phone: string | null;
277
+ readonly total_ltv?: number | undefined;
278
+ readonly is_high_value?: boolean | undefined;
279
+ readonly lifecycle_stage?: "new" | "active" | "loyal" | "at_risk" | "churned" | undefined;
280
+ readonly ltv_cents?: number | undefined;
281
+ readonly tier: string | null;
222
282
  }, IndustrialError | AuthenticationError | NotFoundError | InternalServerError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"update", "PATCH", {
223
283
  readonly id: string & effect_Brand.Brand<"Id">;
224
284
  }, never, {
225
285
  readonly metadata?: {
226
286
  readonly [x: string]: any;
227
287
  } | undefined;
288
+ readonly merchant_customer_id?: string | undefined;
228
289
  readonly email?: (string & effect_Brand.Brand<"Email">) | undefined;
229
290
  readonly name?: (string & effect_Brand.Brand<"NonEmptyString">) | undefined;
230
291
  readonly phone?: string | undefined;
292
+ readonly tier?: string | undefined;
231
293
  }, never, {
232
294
  readonly id: string & effect_Brand.Brand<"CustomerId">;
233
295
  readonly metadata: {
@@ -240,11 +302,16 @@ declare const CustomersGroup: HttpApiGroup.HttpApiGroup<"customers", HttpApiEndp
240
302
  readonly email: (string & effect_Brand.Brand<"Email">) | null;
241
303
  readonly name: (string & effect_Brand.Brand<"NonEmptyString">) | null;
242
304
  readonly phone: string | null;
305
+ readonly total_ltv?: number | undefined;
306
+ readonly is_high_value?: boolean | undefined;
307
+ readonly lifecycle_stage?: "new" | "active" | "loyal" | "at_risk" | "churned" | undefined;
308
+ readonly ltv_cents?: number | undefined;
309
+ readonly tier: string | null;
243
310
  }, IndustrialError | AuthenticationError | NotFoundError | InternalServerError | ConflictError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"delete", "DELETE", {
244
311
  readonly id: string & effect_Brand.Brand<"Id">;
245
312
  }, never, never, never, void, IndustrialError | AuthenticationError | NotFoundError | InternalServerError | ConflictError, never, never>, IndustrialError | AuthenticationError, SecurityMiddleware, false>;
246
313
  declare const SubscriptionsGroup: HttpApiGroup.HttpApiGroup<"subscriptions", HttpApiEndpoint.HttpApiEndpoint<"create", "POST", never, never, {
247
- readonly amount: number & effect_Brand.Brand<"MinorUnitsInt">;
314
+ readonly amount: number & effect_Brand.Brand<"NprAmount">;
248
315
  readonly currency: string;
249
316
  readonly metadata?: {
250
317
  readonly [x: string]: any;
@@ -253,6 +320,7 @@ declare const SubscriptionsGroup: HttpApiGroup.HttpApiGroup<"subscriptions", Htt
253
320
  readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
254
321
  readonly interval: "month" | "year" | "week";
255
322
  readonly interval_count?: number | undefined;
323
+ readonly customer_email?: string | undefined;
256
324
  readonly auto_send_link?: boolean | undefined;
257
325
  }, never, {
258
326
  readonly id: string & effect_Brand.Brand<"SubscriptionId">;
@@ -261,17 +329,19 @@ declare const SubscriptionsGroup: HttpApiGroup.HttpApiGroup<"subscriptions", Htt
261
329
  readonly metadata?: {
262
330
  readonly [x: string]: any;
263
331
  } | null | undefined;
264
- readonly status: "active" | "past_due" | "canceled" | "paused";
332
+ readonly status: "active" | "pending_checkout" | "past_due" | "canceled" | "paused";
265
333
  readonly project_id: string & effect_Brand.Brand<"ProjectId">;
334
+ readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
266
335
  readonly created_at: string & effect_Brand.Brand<"Timestamp">;
267
336
  readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
268
- readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
269
337
  readonly interval: "month" | "year" | "week";
270
338
  readonly interval_count: number;
271
339
  readonly current_period_start: string & effect_Brand.Brand<"Timestamp">;
272
340
  readonly current_period_end: string & effect_Brand.Brand<"Timestamp">;
273
341
  readonly payment_link: string & effect_Brand.Brand<"UrlString">;
342
+ readonly customer_email?: string | null | undefined;
274
343
  readonly auto_send_link: boolean;
344
+ readonly grace_days?: number | undefined;
275
345
  readonly canceled_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
276
346
  }, IndustrialError | AuthenticationError | InternalServerError, SecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"retrieve", "GET", {
277
347
  readonly id: string & effect_Brand.Brand<"SubscriptionId">;
@@ -282,24 +352,26 @@ declare const SubscriptionsGroup: HttpApiGroup.HttpApiGroup<"subscriptions", Htt
282
352
  readonly metadata?: {
283
353
  readonly [x: string]: any;
284
354
  } | null | undefined;
285
- readonly status: "active" | "past_due" | "canceled" | "paused";
355
+ readonly status: "active" | "pending_checkout" | "past_due" | "canceled" | "paused";
286
356
  readonly project_id: string & effect_Brand.Brand<"ProjectId">;
357
+ readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
287
358
  readonly created_at: string & effect_Brand.Brand<"Timestamp">;
288
359
  readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
289
- readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
290
360
  readonly interval: "month" | "year" | "week";
291
361
  readonly interval_count: number;
292
362
  readonly current_period_start: string & effect_Brand.Brand<"Timestamp">;
293
363
  readonly current_period_end: string & effect_Brand.Brand<"Timestamp">;
294
364
  readonly payment_link: string & effect_Brand.Brand<"UrlString">;
365
+ readonly customer_email?: string | null | undefined;
295
366
  readonly auto_send_link: boolean;
367
+ readonly grace_days?: number | undefined;
296
368
  readonly canceled_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
297
369
  }, IndustrialError | AuthenticationError | NotFoundError | InternalServerError, SecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", never, {
298
- readonly status?: "active" | "past_due" | "canceled" | "paused" | undefined;
370
+ readonly customerId?: (string & effect_Brand.Brand<"CustomerId">) | undefined;
371
+ readonly status?: "active" | "pending_checkout" | "past_due" | "canceled" | "paused" | undefined;
299
372
  readonly limit?: number | undefined;
300
373
  readonly offset?: number | undefined;
301
374
  readonly projectId?: (string & effect_Brand.Brand<"ProjectId">) | undefined;
302
- readonly customerId?: (string & effect_Brand.Brand<"CustomerId">) | undefined;
303
375
  }, never, never, {
304
376
  readonly data: readonly {
305
377
  readonly id: string & effect_Brand.Brand<"SubscriptionId">;
@@ -308,17 +380,19 @@ declare const SubscriptionsGroup: HttpApiGroup.HttpApiGroup<"subscriptions", Htt
308
380
  readonly metadata?: {
309
381
  readonly [x: string]: any;
310
382
  } | null | undefined;
311
- readonly status: "active" | "past_due" | "canceled" | "paused";
383
+ readonly status: "active" | "pending_checkout" | "past_due" | "canceled" | "paused";
312
384
  readonly project_id: string & effect_Brand.Brand<"ProjectId">;
385
+ readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
313
386
  readonly created_at: string & effect_Brand.Brand<"Timestamp">;
314
387
  readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
315
- readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
316
388
  readonly interval: "month" | "year" | "week";
317
389
  readonly interval_count: number;
318
390
  readonly current_period_start: string & effect_Brand.Brand<"Timestamp">;
319
391
  readonly current_period_end: string & effect_Brand.Brand<"Timestamp">;
320
392
  readonly payment_link: string & effect_Brand.Brand<"UrlString">;
393
+ readonly customer_email?: string | null | undefined;
321
394
  readonly auto_send_link: boolean;
395
+ readonly grace_days?: number | undefined;
322
396
  readonly canceled_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
323
397
  }[];
324
398
  readonly meta: {
@@ -335,22 +409,24 @@ declare const SubscriptionsGroup: HttpApiGroup.HttpApiGroup<"subscriptions", Htt
335
409
  readonly metadata?: {
336
410
  readonly [x: string]: any;
337
411
  } | null | undefined;
338
- readonly status: "active" | "past_due" | "canceled" | "paused";
412
+ readonly status: "active" | "pending_checkout" | "past_due" | "canceled" | "paused";
339
413
  readonly project_id: string & effect_Brand.Brand<"ProjectId">;
414
+ readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
340
415
  readonly created_at: string & effect_Brand.Brand<"Timestamp">;
341
416
  readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
342
- readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
343
417
  readonly interval: "month" | "year" | "week";
344
418
  readonly interval_count: number;
345
419
  readonly current_period_start: string & effect_Brand.Brand<"Timestamp">;
346
420
  readonly current_period_end: string & effect_Brand.Brand<"Timestamp">;
347
421
  readonly payment_link: string & effect_Brand.Brand<"UrlString">;
422
+ readonly customer_email?: string | null | undefined;
348
423
  readonly auto_send_link: boolean;
424
+ readonly grace_days?: number | undefined;
349
425
  readonly canceled_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
350
426
  }, IndustrialError | AuthenticationError | NotFoundError | InternalServerError, SecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"activate", "POST", {
351
427
  readonly id: string & effect_Brand.Brand<"SubscriptionId">;
352
428
  }, never, {
353
- readonly provider: "esewa" | "khalti" | "connectips" | "imepay" | "fonepay" | "sandbox";
429
+ readonly provider: "esewa" | "khalti" | "hamropay" | "connectips" | "imepay" | "fonepay" | "sandbox";
354
430
  readonly returnUrl: string;
355
431
  readonly cancelUrl?: string | undefined;
356
432
  }, never, {
@@ -363,6 +439,13 @@ declare const AutomationGroup: HttpApiGroup.HttpApiGroup<"automation", HttpApiEn
363
439
  }, InternalServerError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"reaper", "POST", never, never, never, never, {
364
440
  readonly message: string;
365
441
  readonly count: number;
442
+ readonly purged_projects: number;
443
+ }, InternalServerError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"processRenewals", "POST", never, never, never, never, {
444
+ readonly message: string;
445
+ readonly emails_sent: number;
446
+ }, InternalServerError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"processGracePeriod", "POST", never, never, never, never, {
447
+ readonly message: string;
448
+ readonly marked_past_due: number;
366
449
  }, InternalServerError, never, never>, IndustrialError | AuthenticationError, CronSecurity, false>;
367
450
  declare const TokensGroup: HttpApiGroup.HttpApiGroup<"tokens", HttpApiEndpoint.HttpApiEndpoint<"create", "POST", never, never, {
368
451
  readonly name: string;
@@ -390,44 +473,168 @@ declare const ProjectsGroup: HttpApiGroup.HttpApiGroup<"projects", HttpApiEndpoi
390
473
  readonly id: string & effect_Brand.Brand<"ProjectId">;
391
474
  readonly created_at: string & effect_Brand.Brand<"Timestamp">;
392
475
  readonly name: string & effect_Brand.Brand<"NonEmptyString">;
476
+ readonly expires_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
393
477
  readonly api_key_secret: string;
394
- }[], AuthenticationError | InternalServerError, never, never>, IndustrialError | AuthenticationError, SecurityMiddleware, false>;
478
+ readonly subscription_tier?: "free" | "pro" | "enterprise" | undefined;
479
+ readonly subscription_status?: "active" | "past_due" | "canceled" | "incomplete" | undefined;
480
+ }[], AuthenticationError | InternalServerError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"upgrade", "POST", {
481
+ readonly id: string & effect_Brand.Brand<"ProjectId">;
482
+ }, never, {
483
+ readonly tier: "pro" | "enterprise";
484
+ }, never, {
485
+ readonly id: string & effect_Brand.Brand<"ProjectId">;
486
+ readonly created_at: string & effect_Brand.Brand<"Timestamp">;
487
+ readonly name: string & effect_Brand.Brand<"NonEmptyString">;
488
+ readonly expires_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
489
+ readonly api_key_secret: string;
490
+ readonly subscription_tier?: "free" | "pro" | "enterprise" | undefined;
491
+ readonly subscription_status?: "active" | "past_due" | "canceled" | "incomplete" | undefined;
492
+ }, AuthenticationError | InternalServerError, never, never>, IndustrialError | AuthenticationError, UserSecurity, false>;
493
+ declare const PaymentCallbackQueryParams: Schema.Struct<{
494
+ payment_id: Schema.optional<typeof Schema.String>;
495
+ data: Schema.optional<typeof Schema.String>;
496
+ pidx: Schema.optional<typeof Schema.String>;
497
+ /** HamroPay-specific: the gateway's own transactionId returned on callback. */
498
+ ref_id: Schema.optional<typeof Schema.String>;
499
+ /** Supabase Auth: access_token and refresh_token can be in the fragment or query */
500
+ access_token: Schema.optional<typeof Schema.String>;
501
+ refresh_token: Schema.optional<typeof Schema.String>;
502
+ code: Schema.optional<typeof Schema.String>;
503
+ }>;
504
+ type PaymentCallbackQueryParams = Schema.Schema.Type<typeof PaymentCallbackQueryParams>;
395
505
  declare const CallbacksGroup: HttpApiGroup.HttpApiGroup<"callbacks", HttpApiEndpoint.HttpApiEndpoint<"handle", "GET", {
396
506
  readonly provider: string;
397
507
  }, {
508
+ readonly code?: string | undefined;
398
509
  readonly data?: string | undefined;
399
510
  readonly payment_id?: string | undefined;
400
511
  readonly pidx?: string | undefined;
512
+ readonly ref_id?: string | undefined;
513
+ readonly access_token?: string | undefined;
514
+ readonly refresh_token?: string | undefined;
401
515
  }, never, never, any, IndustrialError | NotFoundError | InternalServerError, never, never>, never, never, false>;
516
+ declare const AuthCallbackQueryParams: Schema.Struct<{
517
+ code: Schema.optional<typeof Schema.String>;
518
+ next: Schema.optional<typeof Schema.String>;
519
+ }>;
520
+ declare const AuthGroup: HttpApiGroup.HttpApiGroup<"auth", HttpApiEndpoint.HttpApiEndpoint<"callback", "POST", never, {
521
+ readonly code?: string | undefined;
522
+ readonly next?: string | undefined;
523
+ }, never, never, any, AuthenticationError | InternalServerError, never, never>, never, never, false>;
402
524
  declare const RealtimeGroup: HttpApiGroup.HttpApiGroup<"realtime", HttpApiEndpoint.HttpApiEndpoint<"connect", "GET", never, {
403
525
  readonly token: string;
404
526
  }, never, never, any, AuthenticationError | InternalServerError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"trigger", "POST", never, {
405
527
  readonly token?: string | undefined;
406
528
  }, {
407
529
  readonly data?: any;
408
- readonly event?: "payment.success" | "payment.failed" | "subscription.created" | "subscription.payment_succeeded" | "subscription.payment_failed" | "subscription.renewal_due" | "subscription.canceled" | undefined;
530
+ readonly event?: "payment.success" | "payment.failed" | "subscription.created" | "subscription.activated" | "subscription.renewed" | "subscription.payment_succeeded" | "subscription.payment_failed" | "subscription.renewal_due" | "subscription.canceled" | undefined;
409
531
  }, never, {
410
532
  readonly status: string;
411
533
  readonly event?: string | undefined;
412
534
  }, AuthenticationError | InternalServerError, never, never>, never, never, false>;
535
+ declare const MandatesGroup: HttpApiGroup.HttpApiGroup<"mandates", HttpApiEndpoint.HttpApiEndpoint<"registerIntent", "POST", never, never, {
536
+ readonly currency: string;
537
+ readonly customer_id?: (string & effect_Brand.Brand<"CustomerId">) | undefined;
538
+ readonly principal_id: string;
539
+ readonly max_amount: number;
540
+ readonly permitted_vendors?: readonly string[] | undefined;
541
+ readonly valid_until: string & effect_Brand.Brand<"Timestamp">;
542
+ readonly credential_jwt: string;
543
+ readonly public_key: string;
544
+ }, never, {
545
+ readonly id: string & effect_Brand.Brand<"MandateId">;
546
+ readonly type: "intent" | "cart";
547
+ readonly currency: string;
548
+ readonly status: "active" | "consumed" | "expired" | "violated";
549
+ readonly project_id: string & effect_Brand.Brand<"ProjectId">;
550
+ readonly customer_id: (string & effect_Brand.Brand<"CustomerId">) | null;
551
+ readonly metadata_json: {
552
+ readonly [x: string]: any;
553
+ };
554
+ readonly created_at: string & effect_Brand.Brand<"Timestamp">;
555
+ readonly payment_id: (string & effect_Brand.Brand<"PaymentId">) | null;
556
+ readonly principal_id: string;
557
+ readonly max_amount: number;
558
+ readonly permitted_vendors: readonly string[] | null;
559
+ readonly valid_from: string & effect_Brand.Brand<"Timestamp">;
560
+ readonly valid_until: string & effect_Brand.Brand<"Timestamp">;
561
+ readonly credential_jwt: string;
562
+ readonly public_key: string;
563
+ readonly signature: string;
564
+ readonly parent_mandate_id: (string & effect_Brand.Brand<"MandateId">) | null;
565
+ readonly consumed_at: (string & effect_Brand.Brand<"Timestamp">) | null;
566
+ }, IndustrialError | AuthenticationError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"retrieve", "GET", {
567
+ readonly id: string & effect_Brand.Brand<"MandateId">;
568
+ }, never, never, never, {
569
+ readonly id: string & effect_Brand.Brand<"MandateId">;
570
+ readonly type: "intent" | "cart";
571
+ readonly currency: string;
572
+ readonly status: "active" | "consumed" | "expired" | "violated";
573
+ readonly project_id: string & effect_Brand.Brand<"ProjectId">;
574
+ readonly customer_id: (string & effect_Brand.Brand<"CustomerId">) | null;
575
+ readonly metadata_json: {
576
+ readonly [x: string]: any;
577
+ };
578
+ readonly created_at: string & effect_Brand.Brand<"Timestamp">;
579
+ readonly payment_id: (string & effect_Brand.Brand<"PaymentId">) | null;
580
+ readonly principal_id: string;
581
+ readonly max_amount: number;
582
+ readonly permitted_vendors: readonly string[] | null;
583
+ readonly valid_from: string & effect_Brand.Brand<"Timestamp">;
584
+ readonly valid_until: string & effect_Brand.Brand<"Timestamp">;
585
+ readonly credential_jwt: string;
586
+ readonly public_key: string;
587
+ readonly signature: string;
588
+ readonly parent_mandate_id: (string & effect_Brand.Brand<"MandateId">) | null;
589
+ readonly consumed_at: (string & effect_Brand.Brand<"Timestamp">) | null;
590
+ }, AuthenticationError | NotFoundError, never, never>, IndustrialError | AuthenticationError, SecurityMiddleware, false>;
591
+ declare const SandboxGroup: HttpApiGroup.HttpApiGroup<"sandbox", HttpApiEndpoint.HttpApiEndpoint<"init", "POST", never, never, never, never, {
592
+ readonly projectId: string;
593
+ readonly apiKey?: string | undefined;
594
+ readonly expiresAt: string & effect_Brand.Brand<"Timestamp">;
595
+ readonly session?: {
596
+ readonly access_token: string;
597
+ readonly refresh_token: string;
598
+ } | undefined;
599
+ }, InternalServerError, never, never>, IndustrialError | AuthenticationError, UserSecurity, false>;
600
+ declare const DiscoveryGroup: HttpApiGroup.HttpApiGroup<"discovery", HttpApiEndpoint.HttpApiEndpoint<"agentCard", "GET", never, never, never, never, any, InternalServerError, never, never>, never, never, false>;
601
+ declare const SigningKeysGroup: HttpApiGroup.HttpApiGroup<"signingKeys", HttpApiEndpoint.HttpApiEndpoint<"generate", "POST", {
602
+ readonly id: string & effect_Brand.Brand<"ProjectId">;
603
+ }, never, never, never, {
604
+ readonly id: string;
605
+ readonly publicKey: string;
606
+ readonly privateKey: string;
607
+ readonly algorithm: string;
608
+ readonly createdAt: string & effect_Brand.Brand<"Timestamp">;
609
+ }, AuthenticationError | NotFoundError | InternalServerError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"get", "GET", {
610
+ readonly id: string & effect_Brand.Brand<"ProjectId">;
611
+ }, never, never, never, {
612
+ readonly id: string;
613
+ readonly publicKey: string;
614
+ readonly algorithm: string;
615
+ readonly createdAt: string & effect_Brand.Brand<"Timestamp">;
616
+ }, AuthenticationError | NotFoundError | InternalServerError, never, never>, IndustrialError | AuthenticationError, UserSecurity, false>;
413
617
  declare const PayArkApi: HttpApi.HttpApi<"PayArkApi", HttpApiGroup.HttpApiGroup<"checkout", HttpApiEndpoint.HttpApiEndpoint<"create", "POST", never, never, {
414
- readonly amount?: (number & effect_Brand.Brand<"MinorUnitsInt">) | undefined;
618
+ readonly amount?: (number & effect_Brand.Brand<"NprAmount">) | undefined;
415
619
  readonly currency: string;
416
- readonly provider: "esewa" | "khalti" | "connectips" | "imepay" | "fonepay" | "sandbox";
620
+ readonly provider: "esewa" | "khalti" | "hamropay" | "connectips" | "imepay" | "fonepay" | "sandbox";
417
621
  readonly returnUrl: string & effect_Brand.Brand<"UrlString">;
418
622
  readonly cancelUrl?: (string & effect_Brand.Brand<"UrlString">) | undefined;
419
623
  readonly metadata?: {
420
624
  readonly [x: string]: any;
421
625
  } | undefined;
422
626
  readonly subscriptionId?: (string & effect_Brand.Brand<"SubscriptionId">) | undefined;
627
+ readonly customerId?: (string & effect_Brand.Brand<"CustomerId">) | undefined;
628
+ readonly mandate_id?: (string & effect_Brand.Brand<"MandateId">) | undefined;
423
629
  }, never, {
424
630
  readonly id: string & effect_Brand.Brand<"CheckoutSessionId">;
425
631
  readonly checkout_url: string & effect_Brand.Brand<"UrlString">;
632
+ readonly qr_string?: string | undefined;
426
633
  readonly payment_method: {
427
634
  readonly fields?: {
428
635
  readonly [x: string]: string;
429
636
  } | undefined;
430
- readonly type: "esewa" | "khalti" | "connectips" | "imepay" | "fonepay" | "sandbox";
637
+ readonly type: "esewa" | "khalti" | "hamropay" | "connectips" | "imepay" | "fonepay" | "sandbox";
431
638
  readonly url?: (string & effect_Brand.Brand<"UrlString">) | undefined;
432
639
  readonly method?: "POST" | "GET" | undefined;
433
640
  };
@@ -442,6 +649,7 @@ declare const PayArkApi: HttpApi.HttpApi<"PayArkApi", HttpApiGroup.HttpApiGroup<
442
649
  readonly currency: string;
443
650
  readonly status: "pending" | "success" | "failed";
444
651
  readonly project_id: string & effect_Brand.Brand<"ProjectId">;
652
+ readonly customer_id?: (string & effect_Brand.Brand<"CustomerId">) | null | undefined;
445
653
  readonly provider_ref?: string | null | undefined;
446
654
  readonly metadata_json?: {
447
655
  readonly [x: string]: any;
@@ -463,6 +671,7 @@ declare const PayArkApi: HttpApi.HttpApi<"PayArkApi", HttpApiGroup.HttpApiGroup<
463
671
  readonly currency: string;
464
672
  readonly status: "pending" | "success" | "failed";
465
673
  readonly project_id: string & effect_Brand.Brand<"ProjectId">;
674
+ readonly customer_id?: (string & effect_Brand.Brand<"CustomerId">) | null | undefined;
466
675
  readonly provider_ref?: string | null | undefined;
467
676
  readonly metadata_json?: {
468
677
  readonly [x: string]: any;
@@ -491,6 +700,11 @@ declare const PayArkApi: HttpApi.HttpApi<"PayArkApi", HttpApiGroup.HttpApiGroup<
491
700
  readonly email: (string & effect_Brand.Brand<"Email">) | null;
492
701
  readonly name: (string & effect_Brand.Brand<"NonEmptyString">) | null;
493
702
  readonly phone: string | null;
703
+ readonly total_ltv?: number | undefined;
704
+ readonly is_high_value?: boolean | undefined;
705
+ readonly lifecycle_stage?: "new" | "active" | "loyal" | "at_risk" | "churned" | undefined;
706
+ readonly ltv_cents?: number | undefined;
707
+ readonly tier: string | null;
494
708
  }, IndustrialError | AuthenticationError | InternalServerError | ConflictError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", never, {
495
709
  readonly limit?: number | undefined;
496
710
  readonly offset?: number | undefined;
@@ -510,6 +724,11 @@ declare const PayArkApi: HttpApi.HttpApi<"PayArkApi", HttpApiGroup.HttpApiGroup<
510
724
  readonly email: (string & effect_Brand.Brand<"Email">) | null;
511
725
  readonly name: (string & effect_Brand.Brand<"NonEmptyString">) | null;
512
726
  readonly phone: string | null;
727
+ readonly total_ltv?: number | undefined;
728
+ readonly is_high_value?: boolean | undefined;
729
+ readonly lifecycle_stage?: "new" | "active" | "loyal" | "at_risk" | "churned" | undefined;
730
+ readonly ltv_cents?: number | undefined;
731
+ readonly tier: string | null;
513
732
  }[];
514
733
  readonly meta: {
515
734
  readonly total: number | null;
@@ -530,15 +749,22 @@ declare const PayArkApi: HttpApi.HttpApi<"PayArkApi", HttpApiGroup.HttpApiGroup<
530
749
  readonly email: (string & effect_Brand.Brand<"Email">) | null;
531
750
  readonly name: (string & effect_Brand.Brand<"NonEmptyString">) | null;
532
751
  readonly phone: string | null;
752
+ readonly total_ltv?: number | undefined;
753
+ readonly is_high_value?: boolean | undefined;
754
+ readonly lifecycle_stage?: "new" | "active" | "loyal" | "at_risk" | "churned" | undefined;
755
+ readonly ltv_cents?: number | undefined;
756
+ readonly tier: string | null;
533
757
  }, IndustrialError | AuthenticationError | NotFoundError | InternalServerError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"update", "PATCH", {
534
758
  readonly id: string & effect_Brand.Brand<"Id">;
535
759
  }, never, {
536
760
  readonly metadata?: {
537
761
  readonly [x: string]: any;
538
762
  } | undefined;
763
+ readonly merchant_customer_id?: string | undefined;
539
764
  readonly email?: (string & effect_Brand.Brand<"Email">) | undefined;
540
765
  readonly name?: (string & effect_Brand.Brand<"NonEmptyString">) | undefined;
541
766
  readonly phone?: string | undefined;
767
+ readonly tier?: string | undefined;
542
768
  }, never, {
543
769
  readonly id: string & effect_Brand.Brand<"CustomerId">;
544
770
  readonly metadata: {
@@ -551,10 +777,15 @@ declare const PayArkApi: HttpApi.HttpApi<"PayArkApi", HttpApiGroup.HttpApiGroup<
551
777
  readonly email: (string & effect_Brand.Brand<"Email">) | null;
552
778
  readonly name: (string & effect_Brand.Brand<"NonEmptyString">) | null;
553
779
  readonly phone: string | null;
780
+ readonly total_ltv?: number | undefined;
781
+ readonly is_high_value?: boolean | undefined;
782
+ readonly lifecycle_stage?: "new" | "active" | "loyal" | "at_risk" | "churned" | undefined;
783
+ readonly ltv_cents?: number | undefined;
784
+ readonly tier: string | null;
554
785
  }, IndustrialError | AuthenticationError | NotFoundError | InternalServerError | ConflictError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"delete", "DELETE", {
555
786
  readonly id: string & effect_Brand.Brand<"Id">;
556
787
  }, never, never, never, void, IndustrialError | AuthenticationError | NotFoundError | InternalServerError | ConflictError, never, never>, IndustrialError | AuthenticationError, SecurityMiddleware, false> | HttpApiGroup.HttpApiGroup<"subscriptions", HttpApiEndpoint.HttpApiEndpoint<"create", "POST", never, never, {
557
- readonly amount: number & effect_Brand.Brand<"MinorUnitsInt">;
788
+ readonly amount: number & effect_Brand.Brand<"NprAmount">;
558
789
  readonly currency: string;
559
790
  readonly metadata?: {
560
791
  readonly [x: string]: any;
@@ -563,6 +794,7 @@ declare const PayArkApi: HttpApi.HttpApi<"PayArkApi", HttpApiGroup.HttpApiGroup<
563
794
  readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
564
795
  readonly interval: "month" | "year" | "week";
565
796
  readonly interval_count?: number | undefined;
797
+ readonly customer_email?: string | undefined;
566
798
  readonly auto_send_link?: boolean | undefined;
567
799
  }, never, {
568
800
  readonly id: string & effect_Brand.Brand<"SubscriptionId">;
@@ -571,17 +803,19 @@ declare const PayArkApi: HttpApi.HttpApi<"PayArkApi", HttpApiGroup.HttpApiGroup<
571
803
  readonly metadata?: {
572
804
  readonly [x: string]: any;
573
805
  } | null | undefined;
574
- readonly status: "active" | "past_due" | "canceled" | "paused";
806
+ readonly status: "active" | "pending_checkout" | "past_due" | "canceled" | "paused";
575
807
  readonly project_id: string & effect_Brand.Brand<"ProjectId">;
808
+ readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
576
809
  readonly created_at: string & effect_Brand.Brand<"Timestamp">;
577
810
  readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
578
- readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
579
811
  readonly interval: "month" | "year" | "week";
580
812
  readonly interval_count: number;
581
813
  readonly current_period_start: string & effect_Brand.Brand<"Timestamp">;
582
814
  readonly current_period_end: string & effect_Brand.Brand<"Timestamp">;
583
815
  readonly payment_link: string & effect_Brand.Brand<"UrlString">;
816
+ readonly customer_email?: string | null | undefined;
584
817
  readonly auto_send_link: boolean;
818
+ readonly grace_days?: number | undefined;
585
819
  readonly canceled_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
586
820
  }, IndustrialError | AuthenticationError | InternalServerError, SecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"retrieve", "GET", {
587
821
  readonly id: string & effect_Brand.Brand<"SubscriptionId">;
@@ -592,24 +826,26 @@ declare const PayArkApi: HttpApi.HttpApi<"PayArkApi", HttpApiGroup.HttpApiGroup<
592
826
  readonly metadata?: {
593
827
  readonly [x: string]: any;
594
828
  } | null | undefined;
595
- readonly status: "active" | "past_due" | "canceled" | "paused";
829
+ readonly status: "active" | "pending_checkout" | "past_due" | "canceled" | "paused";
596
830
  readonly project_id: string & effect_Brand.Brand<"ProjectId">;
831
+ readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
597
832
  readonly created_at: string & effect_Brand.Brand<"Timestamp">;
598
833
  readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
599
- readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
600
834
  readonly interval: "month" | "year" | "week";
601
835
  readonly interval_count: number;
602
836
  readonly current_period_start: string & effect_Brand.Brand<"Timestamp">;
603
837
  readonly current_period_end: string & effect_Brand.Brand<"Timestamp">;
604
838
  readonly payment_link: string & effect_Brand.Brand<"UrlString">;
839
+ readonly customer_email?: string | null | undefined;
605
840
  readonly auto_send_link: boolean;
841
+ readonly grace_days?: number | undefined;
606
842
  readonly canceled_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
607
843
  }, IndustrialError | AuthenticationError | NotFoundError | InternalServerError, SecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", never, {
608
- readonly status?: "active" | "past_due" | "canceled" | "paused" | undefined;
844
+ readonly customerId?: (string & effect_Brand.Brand<"CustomerId">) | undefined;
845
+ readonly status?: "active" | "pending_checkout" | "past_due" | "canceled" | "paused" | undefined;
609
846
  readonly limit?: number | undefined;
610
847
  readonly offset?: number | undefined;
611
848
  readonly projectId?: (string & effect_Brand.Brand<"ProjectId">) | undefined;
612
- readonly customerId?: (string & effect_Brand.Brand<"CustomerId">) | undefined;
613
849
  }, never, never, {
614
850
  readonly data: readonly {
615
851
  readonly id: string & effect_Brand.Brand<"SubscriptionId">;
@@ -618,17 +854,19 @@ declare const PayArkApi: HttpApi.HttpApi<"PayArkApi", HttpApiGroup.HttpApiGroup<
618
854
  readonly metadata?: {
619
855
  readonly [x: string]: any;
620
856
  } | null | undefined;
621
- readonly status: "active" | "past_due" | "canceled" | "paused";
857
+ readonly status: "active" | "pending_checkout" | "past_due" | "canceled" | "paused";
622
858
  readonly project_id: string & effect_Brand.Brand<"ProjectId">;
859
+ readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
623
860
  readonly created_at: string & effect_Brand.Brand<"Timestamp">;
624
861
  readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
625
- readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
626
862
  readonly interval: "month" | "year" | "week";
627
863
  readonly interval_count: number;
628
864
  readonly current_period_start: string & effect_Brand.Brand<"Timestamp">;
629
865
  readonly current_period_end: string & effect_Brand.Brand<"Timestamp">;
630
866
  readonly payment_link: string & effect_Brand.Brand<"UrlString">;
867
+ readonly customer_email?: string | null | undefined;
631
868
  readonly auto_send_link: boolean;
869
+ readonly grace_days?: number | undefined;
632
870
  readonly canceled_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
633
871
  }[];
634
872
  readonly meta: {
@@ -645,22 +883,24 @@ declare const PayArkApi: HttpApi.HttpApi<"PayArkApi", HttpApiGroup.HttpApiGroup<
645
883
  readonly metadata?: {
646
884
  readonly [x: string]: any;
647
885
  } | null | undefined;
648
- readonly status: "active" | "past_due" | "canceled" | "paused";
886
+ readonly status: "active" | "pending_checkout" | "past_due" | "canceled" | "paused";
649
887
  readonly project_id: string & effect_Brand.Brand<"ProjectId">;
888
+ readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
650
889
  readonly created_at: string & effect_Brand.Brand<"Timestamp">;
651
890
  readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
652
- readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
653
891
  readonly interval: "month" | "year" | "week";
654
892
  readonly interval_count: number;
655
893
  readonly current_period_start: string & effect_Brand.Brand<"Timestamp">;
656
894
  readonly current_period_end: string & effect_Brand.Brand<"Timestamp">;
657
895
  readonly payment_link: string & effect_Brand.Brand<"UrlString">;
896
+ readonly customer_email?: string | null | undefined;
658
897
  readonly auto_send_link: boolean;
898
+ readonly grace_days?: number | undefined;
659
899
  readonly canceled_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
660
900
  }, IndustrialError | AuthenticationError | NotFoundError | InternalServerError, SecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"activate", "POST", {
661
901
  readonly id: string & effect_Brand.Brand<"SubscriptionId">;
662
902
  }, never, {
663
- readonly provider: "esewa" | "khalti" | "connectips" | "imepay" | "fonepay" | "sandbox";
903
+ readonly provider: "esewa" | "khalti" | "hamropay" | "connectips" | "imepay" | "fonepay" | "sandbox";
664
904
  readonly returnUrl: string;
665
905
  readonly cancelUrl?: string | undefined;
666
906
  }, never, {
@@ -672,6 +912,13 @@ declare const PayArkApi: HttpApi.HttpApi<"PayArkApi", HttpApiGroup.HttpApiGroup<
672
912
  }, InternalServerError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"reaper", "POST", never, never, never, never, {
673
913
  readonly message: string;
674
914
  readonly count: number;
915
+ readonly purged_projects: number;
916
+ }, InternalServerError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"processRenewals", "POST", never, never, never, never, {
917
+ readonly message: string;
918
+ readonly emails_sent: number;
919
+ }, InternalServerError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"processGracePeriod", "POST", never, never, never, never, {
920
+ readonly message: string;
921
+ readonly marked_past_due: number;
675
922
  }, InternalServerError, never, never>, IndustrialError | AuthenticationError, CronSecurity, false> | HttpApiGroup.HttpApiGroup<"tokens", HttpApiEndpoint.HttpApiEndpoint<"create", "POST", never, never, {
676
923
  readonly name: string;
677
924
  readonly scopes: readonly string[];
@@ -697,23 +944,123 @@ declare const PayArkApi: HttpApi.HttpApi<"PayArkApi", HttpApiGroup.HttpApiGroup<
697
944
  readonly id: string & effect_Brand.Brand<"ProjectId">;
698
945
  readonly created_at: string & effect_Brand.Brand<"Timestamp">;
699
946
  readonly name: string & effect_Brand.Brand<"NonEmptyString">;
947
+ readonly expires_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
948
+ readonly api_key_secret: string;
949
+ readonly subscription_tier?: "free" | "pro" | "enterprise" | undefined;
950
+ readonly subscription_status?: "active" | "past_due" | "canceled" | "incomplete" | undefined;
951
+ }[], AuthenticationError | InternalServerError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"upgrade", "POST", {
952
+ readonly id: string & effect_Brand.Brand<"ProjectId">;
953
+ }, never, {
954
+ readonly tier: "pro" | "enterprise";
955
+ }, never, {
956
+ readonly id: string & effect_Brand.Brand<"ProjectId">;
957
+ readonly created_at: string & effect_Brand.Brand<"Timestamp">;
958
+ readonly name: string & effect_Brand.Brand<"NonEmptyString">;
959
+ readonly expires_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
700
960
  readonly api_key_secret: string;
701
- }[], AuthenticationError | InternalServerError, never, never>, IndustrialError | AuthenticationError, SecurityMiddleware, false> | HttpApiGroup.HttpApiGroup<"callbacks", HttpApiEndpoint.HttpApiEndpoint<"handle", "GET", {
961
+ readonly subscription_tier?: "free" | "pro" | "enterprise" | undefined;
962
+ readonly subscription_status?: "active" | "past_due" | "canceled" | "incomplete" | undefined;
963
+ }, AuthenticationError | InternalServerError, never, never>, IndustrialError | AuthenticationError, UserSecurity, false> | HttpApiGroup.HttpApiGroup<"callbacks", HttpApiEndpoint.HttpApiEndpoint<"handle", "GET", {
702
964
  readonly provider: string;
703
965
  }, {
966
+ readonly code?: string | undefined;
704
967
  readonly data?: string | undefined;
705
968
  readonly payment_id?: string | undefined;
706
969
  readonly pidx?: string | undefined;
707
- }, never, never, any, IndustrialError | NotFoundError | InternalServerError, never, never>, never, never, false> | HttpApiGroup.HttpApiGroup<"realtime", HttpApiEndpoint.HttpApiEndpoint<"connect", "GET", never, {
970
+ readonly ref_id?: string | undefined;
971
+ readonly access_token?: string | undefined;
972
+ readonly refresh_token?: string | undefined;
973
+ }, never, never, any, IndustrialError | NotFoundError | InternalServerError, never, never>, never, never, false> | HttpApiGroup.HttpApiGroup<"auth", HttpApiEndpoint.HttpApiEndpoint<"callback", "POST", never, {
974
+ readonly code?: string | undefined;
975
+ readonly next?: string | undefined;
976
+ }, never, never, any, AuthenticationError | InternalServerError, never, never>, never, never, false> | HttpApiGroup.HttpApiGroup<"realtime", HttpApiEndpoint.HttpApiEndpoint<"connect", "GET", never, {
708
977
  readonly token: string;
709
978
  }, never, never, any, AuthenticationError | InternalServerError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"trigger", "POST", never, {
710
979
  readonly token?: string | undefined;
711
980
  }, {
712
981
  readonly data?: any;
713
- readonly event?: "payment.success" | "payment.failed" | "subscription.created" | "subscription.payment_succeeded" | "subscription.payment_failed" | "subscription.renewal_due" | "subscription.canceled" | undefined;
982
+ readonly event?: "payment.success" | "payment.failed" | "subscription.created" | "subscription.activated" | "subscription.renewed" | "subscription.payment_succeeded" | "subscription.payment_failed" | "subscription.renewal_due" | "subscription.canceled" | undefined;
714
983
  }, never, {
715
984
  readonly status: string;
716
985
  readonly event?: string | undefined;
717
- }, AuthenticationError | InternalServerError, never, never>, never, never, false>, IndustrialError | AuthenticationError | NotFoundError | InternalServerError | ConflictError | _effect_platform_HttpApiError.HttpApiDecodeError, never>;
986
+ }, AuthenticationError | InternalServerError, never, never>, never, never, false> | HttpApiGroup.HttpApiGroup<"mandates", HttpApiEndpoint.HttpApiEndpoint<"registerIntent", "POST", never, never, {
987
+ readonly currency: string;
988
+ readonly customer_id?: (string & effect_Brand.Brand<"CustomerId">) | undefined;
989
+ readonly principal_id: string;
990
+ readonly max_amount: number;
991
+ readonly permitted_vendors?: readonly string[] | undefined;
992
+ readonly valid_until: string & effect_Brand.Brand<"Timestamp">;
993
+ readonly credential_jwt: string;
994
+ readonly public_key: string;
995
+ }, never, {
996
+ readonly id: string & effect_Brand.Brand<"MandateId">;
997
+ readonly type: "intent" | "cart";
998
+ readonly currency: string;
999
+ readonly status: "active" | "consumed" | "expired" | "violated";
1000
+ readonly project_id: string & effect_Brand.Brand<"ProjectId">;
1001
+ readonly customer_id: (string & effect_Brand.Brand<"CustomerId">) | null;
1002
+ readonly metadata_json: {
1003
+ readonly [x: string]: any;
1004
+ };
1005
+ readonly created_at: string & effect_Brand.Brand<"Timestamp">;
1006
+ readonly payment_id: (string & effect_Brand.Brand<"PaymentId">) | null;
1007
+ readonly principal_id: string;
1008
+ readonly max_amount: number;
1009
+ readonly permitted_vendors: readonly string[] | null;
1010
+ readonly valid_from: string & effect_Brand.Brand<"Timestamp">;
1011
+ readonly valid_until: string & effect_Brand.Brand<"Timestamp">;
1012
+ readonly credential_jwt: string;
1013
+ readonly public_key: string;
1014
+ readonly signature: string;
1015
+ readonly parent_mandate_id: (string & effect_Brand.Brand<"MandateId">) | null;
1016
+ readonly consumed_at: (string & effect_Brand.Brand<"Timestamp">) | null;
1017
+ }, IndustrialError | AuthenticationError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"retrieve", "GET", {
1018
+ readonly id: string & effect_Brand.Brand<"MandateId">;
1019
+ }, never, never, never, {
1020
+ readonly id: string & effect_Brand.Brand<"MandateId">;
1021
+ readonly type: "intent" | "cart";
1022
+ readonly currency: string;
1023
+ readonly status: "active" | "consumed" | "expired" | "violated";
1024
+ readonly project_id: string & effect_Brand.Brand<"ProjectId">;
1025
+ readonly customer_id: (string & effect_Brand.Brand<"CustomerId">) | null;
1026
+ readonly metadata_json: {
1027
+ readonly [x: string]: any;
1028
+ };
1029
+ readonly created_at: string & effect_Brand.Brand<"Timestamp">;
1030
+ readonly payment_id: (string & effect_Brand.Brand<"PaymentId">) | null;
1031
+ readonly principal_id: string;
1032
+ readonly max_amount: number;
1033
+ readonly permitted_vendors: readonly string[] | null;
1034
+ readonly valid_from: string & effect_Brand.Brand<"Timestamp">;
1035
+ readonly valid_until: string & effect_Brand.Brand<"Timestamp">;
1036
+ readonly credential_jwt: string;
1037
+ readonly public_key: string;
1038
+ readonly signature: string;
1039
+ readonly parent_mandate_id: (string & effect_Brand.Brand<"MandateId">) | null;
1040
+ readonly consumed_at: (string & effect_Brand.Brand<"Timestamp">) | null;
1041
+ }, AuthenticationError | NotFoundError, never, never>, IndustrialError | AuthenticationError, SecurityMiddleware, false> | HttpApiGroup.HttpApiGroup<"sandbox", HttpApiEndpoint.HttpApiEndpoint<"init", "POST", never, never, never, never, {
1042
+ readonly projectId: string;
1043
+ readonly apiKey?: string | undefined;
1044
+ readonly expiresAt: string & effect_Brand.Brand<"Timestamp">;
1045
+ readonly session?: {
1046
+ readonly access_token: string;
1047
+ readonly refresh_token: string;
1048
+ } | undefined;
1049
+ }, InternalServerError, never, never>, IndustrialError | AuthenticationError, UserSecurity, false> | HttpApiGroup.HttpApiGroup<"discovery", HttpApiEndpoint.HttpApiEndpoint<"agentCard", "GET", never, never, never, never, any, InternalServerError, never, never>, never, never, false> | HttpApiGroup.HttpApiGroup<"signingKeys", HttpApiEndpoint.HttpApiEndpoint<"generate", "POST", {
1050
+ readonly id: string & effect_Brand.Brand<"ProjectId">;
1051
+ }, never, never, never, {
1052
+ readonly id: string;
1053
+ readonly publicKey: string;
1054
+ readonly privateKey: string;
1055
+ readonly algorithm: string;
1056
+ readonly createdAt: string & effect_Brand.Brand<"Timestamp">;
1057
+ }, AuthenticationError | NotFoundError | InternalServerError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"get", "GET", {
1058
+ readonly id: string & effect_Brand.Brand<"ProjectId">;
1059
+ }, never, never, never, {
1060
+ readonly id: string;
1061
+ readonly publicKey: string;
1062
+ readonly algorithm: string;
1063
+ readonly createdAt: string & effect_Brand.Brand<"Timestamp">;
1064
+ }, AuthenticationError | NotFoundError | InternalServerError, never, never>, IndustrialError | AuthenticationError, UserSecurity, false>, IndustrialError | AuthenticationError | NotFoundError | InternalServerError | ConflictError | MandateViolationError | MandateExpiredError | _effect_platform_HttpApiError.HttpApiDecodeError, never>;
718
1065
 
719
- export { AuthContext, AuthenticationError, AutomationGroup, CallbacksGroup, CheckoutGroup, ConflictError, CronSecurity, CustomersGroup, IndustrialError, InternalServerError, NotFoundError, PayArkApi, PaymentsGroup, ProjectsGroup, RealtimeGroup, SecurityMiddleware, SubscriptionsGroup, TokensGroup, UserSecurity };
1066
+ export { AuthCallbackQueryParams, AuthContext, AuthGroup, AuthenticationError, AutomationGroup, CallbacksGroup, CheckoutGroup, ConflictError, CronSecurity, CustomersGroup, DiscoveryGroup, IndustrialError, InternalServerError, MandateExpiredError, MandateViolationError, MandatesGroup, NotFoundError, PayArkApi, PaymentCallbackQueryParams, PaymentsGroup, ProjectsGroup, RealtimeGroup, SandboxGroup, SecurityMiddleware, SigningKeysGroup, SubscriptionsGroup, TokensGroup, UserSecurity };