@payark/sdk-effect 0.1.5 → 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/README.md +9 -10
- package/dist/api-spec.d.mts +1066 -0
- package/dist/api-spec.d.ts +1066 -0
- package/dist/api-spec.js +651 -0
- package/dist/api-spec.js.map +1 -0
- package/dist/api-spec.mjs +622 -0
- package/dist/api-spec.mjs.map +1 -0
- package/dist/index.d.mts +925 -1102
- package/dist/index.d.ts +925 -1102
- package/dist/index.js +615 -23
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +601 -25
- package/dist/index.mjs.map +1 -1
- package/dist/schemas.d.mts +372 -0
- package/dist/schemas.d.ts +372 -0
- package/dist/schemas.js +372 -0
- package/dist/schemas.js.map +1 -0
- package/dist/schemas.mjs +328 -0
- package/dist/schemas.mjs.map +1 -0
- package/package.json +7 -7
|
@@ -0,0 +1,1066 @@
|
|
|
1
|
+
import * as _effect_platform_HttpApiError from '@effect/platform/HttpApiError';
|
|
2
|
+
import * as effect_Brand from 'effect/Brand';
|
|
3
|
+
import * as effect_Effect from 'effect/Effect';
|
|
4
|
+
import * as _effect_platform_HttpRouter from '@effect/platform/HttpRouter';
|
|
5
|
+
import * as effect_Redacted from 'effect/Redacted';
|
|
6
|
+
import { HttpApiGroup, HttpApiEndpoint, HttpApiMiddleware, HttpApiSecurity, HttpApi } from '@effect/platform';
|
|
7
|
+
import { Schema, Context } from 'effect';
|
|
8
|
+
|
|
9
|
+
declare const IndustrialError_base: Schema.TaggedErrorClass<IndustrialError, "IndustrialError", {
|
|
10
|
+
readonly _tag: Schema.tag<"IndustrialError">;
|
|
11
|
+
} & {
|
|
12
|
+
error: typeof Schema.String;
|
|
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>;
|
|
17
|
+
}>;
|
|
18
|
+
/**
|
|
19
|
+
* Industrial Error Schema with Status mapping.
|
|
20
|
+
*/
|
|
21
|
+
declare class IndustrialError extends IndustrialError_base {
|
|
22
|
+
}
|
|
23
|
+
declare const AuthenticationError_base: Schema.TaggedErrorClass<AuthenticationError, "AuthenticationError", {
|
|
24
|
+
readonly _tag: Schema.tag<"AuthenticationError">;
|
|
25
|
+
} & {
|
|
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>;
|
|
30
|
+
}>;
|
|
31
|
+
declare class AuthenticationError extends AuthenticationError_base {
|
|
32
|
+
}
|
|
33
|
+
declare const NotFoundError_base: Schema.TaggedErrorClass<NotFoundError, "NotFoundError", {
|
|
34
|
+
readonly _tag: Schema.tag<"NotFoundError">;
|
|
35
|
+
} & {
|
|
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>;
|
|
40
|
+
}>;
|
|
41
|
+
declare class NotFoundError extends NotFoundError_base {
|
|
42
|
+
}
|
|
43
|
+
declare const InternalServerError_base: Schema.TaggedErrorClass<InternalServerError, "InternalServerError", {
|
|
44
|
+
readonly _tag: Schema.tag<"InternalServerError">;
|
|
45
|
+
} & {
|
|
46
|
+
error: typeof Schema.String;
|
|
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>;
|
|
51
|
+
}>;
|
|
52
|
+
declare class InternalServerError extends InternalServerError_base {
|
|
53
|
+
}
|
|
54
|
+
declare const ConflictError_base: Schema.TaggedErrorClass<ConflictError, "ConflictError", {
|
|
55
|
+
readonly _tag: Schema.tag<"ConflictError">;
|
|
56
|
+
} & {
|
|
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>;
|
|
61
|
+
}>;
|
|
62
|
+
declare class ConflictError extends ConflictError_base {
|
|
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
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* PayArk Industrial API Specification.
|
|
89
|
+
* Single source of truth for the entire platform.
|
|
90
|
+
*/
|
|
91
|
+
interface AuthContext {
|
|
92
|
+
readonly project?: {
|
|
93
|
+
readonly id: string;
|
|
94
|
+
readonly isTestMode: boolean;
|
|
95
|
+
readonly isEphemeral?: boolean;
|
|
96
|
+
};
|
|
97
|
+
readonly user?: {
|
|
98
|
+
readonly id: string;
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
declare const AuthContext: Context.Tag<AuthContext, AuthContext>;
|
|
102
|
+
declare const SecurityMiddleware_base: HttpApiMiddleware.TagClass.BaseSecurity<SecurityMiddleware, "SecurityMiddleware", {
|
|
103
|
+
readonly security: {
|
|
104
|
+
readonly bearer: HttpApiSecurity.Bearer;
|
|
105
|
+
};
|
|
106
|
+
readonly provides: Context.Tag<AuthContext, AuthContext>;
|
|
107
|
+
readonly failure: Schema.Union<[typeof AuthenticationError, typeof IndustrialError]>;
|
|
108
|
+
}, {
|
|
109
|
+
readonly bearer: (_: effect_Redacted.Redacted<string>) => effect_Effect.Effect<AuthContext, IndustrialError | AuthenticationError, _effect_platform_HttpRouter.HttpRouter.Provided>;
|
|
110
|
+
}, {
|
|
111
|
+
readonly bearer: HttpApiSecurity.Bearer;
|
|
112
|
+
}>;
|
|
113
|
+
declare class SecurityMiddleware extends SecurityMiddleware_base {
|
|
114
|
+
}
|
|
115
|
+
declare const CronSecurity_base: HttpApiMiddleware.TagClass.BaseSecurity<CronSecurity, "CronSecurity", {
|
|
116
|
+
readonly security: {
|
|
117
|
+
readonly secret: HttpApiSecurity.ApiKey;
|
|
118
|
+
};
|
|
119
|
+
readonly failure: Schema.Union<[typeof AuthenticationError, typeof IndustrialError]>;
|
|
120
|
+
}, {
|
|
121
|
+
readonly secret: (_: effect_Redacted.Redacted<string>) => effect_Effect.Effect<void, IndustrialError | AuthenticationError, _effect_platform_HttpRouter.HttpRouter.Provided>;
|
|
122
|
+
}, {
|
|
123
|
+
readonly secret: HttpApiSecurity.ApiKey;
|
|
124
|
+
}>;
|
|
125
|
+
declare class CronSecurity extends CronSecurity_base {
|
|
126
|
+
}
|
|
127
|
+
declare const UserSecurity_base: HttpApiMiddleware.TagClass.BaseSecurity<UserSecurity, "UserSecurity", {
|
|
128
|
+
readonly security: {
|
|
129
|
+
readonly bearer: HttpApiSecurity.Bearer;
|
|
130
|
+
};
|
|
131
|
+
readonly provides: Context.Tag<AuthContext, AuthContext>;
|
|
132
|
+
readonly failure: Schema.Union<[typeof AuthenticationError, typeof IndustrialError]>;
|
|
133
|
+
}, {
|
|
134
|
+
readonly bearer: (_: effect_Redacted.Redacted<string>) => effect_Effect.Effect<AuthContext, IndustrialError | AuthenticationError, _effect_platform_HttpRouter.HttpRouter.Provided>;
|
|
135
|
+
}, {
|
|
136
|
+
readonly bearer: HttpApiSecurity.Bearer;
|
|
137
|
+
}>;
|
|
138
|
+
declare class UserSecurity extends UserSecurity_base {
|
|
139
|
+
}
|
|
140
|
+
declare const CheckoutGroup: HttpApiGroup.HttpApiGroup<"checkout", HttpApiEndpoint.HttpApiEndpoint<"create", "POST", never, never, {
|
|
141
|
+
readonly amount?: (number & effect_Brand.Brand<"NprAmount">) | undefined;
|
|
142
|
+
readonly currency: string;
|
|
143
|
+
readonly provider: "esewa" | "khalti" | "hamropay" | "connectips" | "imepay" | "fonepay" | "sandbox";
|
|
144
|
+
readonly returnUrl: string & effect_Brand.Brand<"UrlString">;
|
|
145
|
+
readonly cancelUrl?: (string & effect_Brand.Brand<"UrlString">) | undefined;
|
|
146
|
+
readonly metadata?: {
|
|
147
|
+
readonly [x: string]: any;
|
|
148
|
+
} | undefined;
|
|
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;
|
|
152
|
+
}, never, {
|
|
153
|
+
readonly id: string & effect_Brand.Brand<"CheckoutSessionId">;
|
|
154
|
+
readonly checkout_url: string & effect_Brand.Brand<"UrlString">;
|
|
155
|
+
readonly qr_string?: string | undefined;
|
|
156
|
+
readonly payment_method: {
|
|
157
|
+
readonly fields?: {
|
|
158
|
+
readonly [x: string]: string;
|
|
159
|
+
} | undefined;
|
|
160
|
+
readonly type: "esewa" | "khalti" | "hamropay" | "connectips" | "imepay" | "fonepay" | "sandbox";
|
|
161
|
+
readonly url?: (string & effect_Brand.Brand<"UrlString">) | undefined;
|
|
162
|
+
readonly method?: "POST" | "GET" | undefined;
|
|
163
|
+
};
|
|
164
|
+
}, IndustrialError | AuthenticationError | InternalServerError, never, never>, IndustrialError | AuthenticationError, SecurityMiddleware, false>;
|
|
165
|
+
declare const PaymentsGroup: HttpApiGroup.HttpApiGroup<"payments", HttpApiEndpoint.HttpApiEndpoint<"list", "GET", never, {
|
|
166
|
+
readonly limit?: number | undefined;
|
|
167
|
+
readonly offset?: number | undefined;
|
|
168
|
+
readonly projectId?: (string & effect_Brand.Brand<"ProjectId">) | undefined;
|
|
169
|
+
}, never, never, {
|
|
170
|
+
readonly data: readonly {
|
|
171
|
+
readonly id: string & effect_Brand.Brand<"PaymentId">;
|
|
172
|
+
readonly amount: number;
|
|
173
|
+
readonly currency: string;
|
|
174
|
+
readonly status: "pending" | "success" | "failed";
|
|
175
|
+
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
176
|
+
readonly customer_id?: (string & effect_Brand.Brand<"CustomerId">) | null | undefined;
|
|
177
|
+
readonly provider_ref?: string | null | undefined;
|
|
178
|
+
readonly metadata_json?: {
|
|
179
|
+
readonly [x: string]: any;
|
|
180
|
+
} | null | undefined;
|
|
181
|
+
readonly gateway_response?: any;
|
|
182
|
+
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
183
|
+
readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
|
|
184
|
+
}[];
|
|
185
|
+
readonly meta: {
|
|
186
|
+
readonly total: number | null;
|
|
187
|
+
readonly limit: number;
|
|
188
|
+
readonly offset: number;
|
|
189
|
+
};
|
|
190
|
+
}, IndustrialError | AuthenticationError | InternalServerError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"retrieve", "GET", {
|
|
191
|
+
readonly id: string & effect_Brand.Brand<"Id">;
|
|
192
|
+
}, never, never, never, {
|
|
193
|
+
readonly id: string & effect_Brand.Brand<"PaymentId">;
|
|
194
|
+
readonly amount: number;
|
|
195
|
+
readonly currency: string;
|
|
196
|
+
readonly status: "pending" | "success" | "failed";
|
|
197
|
+
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
198
|
+
readonly customer_id?: (string & effect_Brand.Brand<"CustomerId">) | null | undefined;
|
|
199
|
+
readonly provider_ref?: string | null | undefined;
|
|
200
|
+
readonly metadata_json?: {
|
|
201
|
+
readonly [x: string]: any;
|
|
202
|
+
} | null | undefined;
|
|
203
|
+
readonly gateway_response?: any;
|
|
204
|
+
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
205
|
+
readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
|
|
206
|
+
}, IndustrialError | AuthenticationError | NotFoundError | InternalServerError, never, never>, IndustrialError | AuthenticationError, SecurityMiddleware, false>;
|
|
207
|
+
declare const CustomersGroup: HttpApiGroup.HttpApiGroup<"customers", HttpApiEndpoint.HttpApiEndpoint<"create", "POST", never, never, {
|
|
208
|
+
readonly metadata?: {
|
|
209
|
+
readonly [x: string]: any;
|
|
210
|
+
} | undefined;
|
|
211
|
+
readonly project_id?: (string & effect_Brand.Brand<"ProjectId">) | undefined;
|
|
212
|
+
readonly merchant_customer_id: string & effect_Brand.Brand<"NonEmptyString">;
|
|
213
|
+
readonly email?: (string & effect_Brand.Brand<"Email">) | undefined;
|
|
214
|
+
readonly name?: (string & effect_Brand.Brand<"NonEmptyString">) | undefined;
|
|
215
|
+
readonly phone?: string | undefined;
|
|
216
|
+
}, never, {
|
|
217
|
+
readonly id: string & effect_Brand.Brand<"CustomerId">;
|
|
218
|
+
readonly metadata: {
|
|
219
|
+
readonly [x: string]: any;
|
|
220
|
+
} | null;
|
|
221
|
+
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
222
|
+
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
223
|
+
readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
|
|
224
|
+
readonly merchant_customer_id: string & effect_Brand.Brand<"NonEmptyString">;
|
|
225
|
+
readonly email: (string & effect_Brand.Brand<"Email">) | null;
|
|
226
|
+
readonly name: (string & effect_Brand.Brand<"NonEmptyString">) | null;
|
|
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;
|
|
233
|
+
}, IndustrialError | AuthenticationError | InternalServerError | ConflictError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", never, {
|
|
234
|
+
readonly limit?: number | undefined;
|
|
235
|
+
readonly offset?: number | undefined;
|
|
236
|
+
readonly projectId?: (string & effect_Brand.Brand<"ProjectId">) | undefined;
|
|
237
|
+
readonly merchant_customer_id?: string | undefined;
|
|
238
|
+
readonly email?: string | undefined;
|
|
239
|
+
}, never, never, {
|
|
240
|
+
readonly data: readonly {
|
|
241
|
+
readonly id: string & effect_Brand.Brand<"CustomerId">;
|
|
242
|
+
readonly metadata: {
|
|
243
|
+
readonly [x: string]: any;
|
|
244
|
+
} | null;
|
|
245
|
+
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
246
|
+
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
247
|
+
readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
|
|
248
|
+
readonly merchant_customer_id: string & effect_Brand.Brand<"NonEmptyString">;
|
|
249
|
+
readonly email: (string & effect_Brand.Brand<"Email">) | null;
|
|
250
|
+
readonly name: (string & effect_Brand.Brand<"NonEmptyString">) | null;
|
|
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;
|
|
257
|
+
}[];
|
|
258
|
+
readonly meta: {
|
|
259
|
+
readonly total: number | null;
|
|
260
|
+
readonly limit: number;
|
|
261
|
+
readonly offset: number;
|
|
262
|
+
};
|
|
263
|
+
}, IndustrialError | AuthenticationError | InternalServerError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"retrieve", "GET", {
|
|
264
|
+
readonly id: string & effect_Brand.Brand<"Id">;
|
|
265
|
+
}, never, never, never, {
|
|
266
|
+
readonly id: string & effect_Brand.Brand<"CustomerId">;
|
|
267
|
+
readonly metadata: {
|
|
268
|
+
readonly [x: string]: any;
|
|
269
|
+
} | null;
|
|
270
|
+
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
271
|
+
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
272
|
+
readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
|
|
273
|
+
readonly merchant_customer_id: string & effect_Brand.Brand<"NonEmptyString">;
|
|
274
|
+
readonly email: (string & effect_Brand.Brand<"Email">) | null;
|
|
275
|
+
readonly name: (string & effect_Brand.Brand<"NonEmptyString">) | null;
|
|
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;
|
|
282
|
+
}, IndustrialError | AuthenticationError | NotFoundError | InternalServerError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"update", "PATCH", {
|
|
283
|
+
readonly id: string & effect_Brand.Brand<"Id">;
|
|
284
|
+
}, never, {
|
|
285
|
+
readonly metadata?: {
|
|
286
|
+
readonly [x: string]: any;
|
|
287
|
+
} | undefined;
|
|
288
|
+
readonly merchant_customer_id?: string | undefined;
|
|
289
|
+
readonly email?: (string & effect_Brand.Brand<"Email">) | undefined;
|
|
290
|
+
readonly name?: (string & effect_Brand.Brand<"NonEmptyString">) | undefined;
|
|
291
|
+
readonly phone?: string | undefined;
|
|
292
|
+
readonly tier?: string | undefined;
|
|
293
|
+
}, never, {
|
|
294
|
+
readonly id: string & effect_Brand.Brand<"CustomerId">;
|
|
295
|
+
readonly metadata: {
|
|
296
|
+
readonly [x: string]: any;
|
|
297
|
+
} | null;
|
|
298
|
+
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
299
|
+
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
300
|
+
readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
|
|
301
|
+
readonly merchant_customer_id: string & effect_Brand.Brand<"NonEmptyString">;
|
|
302
|
+
readonly email: (string & effect_Brand.Brand<"Email">) | null;
|
|
303
|
+
readonly name: (string & effect_Brand.Brand<"NonEmptyString">) | null;
|
|
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;
|
|
310
|
+
}, IndustrialError | AuthenticationError | NotFoundError | InternalServerError | ConflictError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"delete", "DELETE", {
|
|
311
|
+
readonly id: string & effect_Brand.Brand<"Id">;
|
|
312
|
+
}, never, never, never, void, IndustrialError | AuthenticationError | NotFoundError | InternalServerError | ConflictError, never, never>, IndustrialError | AuthenticationError, SecurityMiddleware, false>;
|
|
313
|
+
declare const SubscriptionsGroup: HttpApiGroup.HttpApiGroup<"subscriptions", HttpApiEndpoint.HttpApiEndpoint<"create", "POST", never, never, {
|
|
314
|
+
readonly amount: number & effect_Brand.Brand<"NprAmount">;
|
|
315
|
+
readonly currency: string;
|
|
316
|
+
readonly metadata?: {
|
|
317
|
+
readonly [x: string]: any;
|
|
318
|
+
} | undefined;
|
|
319
|
+
readonly project_id?: (string & effect_Brand.Brand<"ProjectId">) | undefined;
|
|
320
|
+
readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
|
|
321
|
+
readonly interval: "month" | "year" | "week";
|
|
322
|
+
readonly interval_count?: number | undefined;
|
|
323
|
+
readonly customer_email?: string | undefined;
|
|
324
|
+
readonly auto_send_link?: boolean | undefined;
|
|
325
|
+
}, never, {
|
|
326
|
+
readonly id: string & effect_Brand.Brand<"SubscriptionId">;
|
|
327
|
+
readonly amount: number;
|
|
328
|
+
readonly currency: string;
|
|
329
|
+
readonly metadata?: {
|
|
330
|
+
readonly [x: string]: any;
|
|
331
|
+
} | null | undefined;
|
|
332
|
+
readonly status: "active" | "pending_checkout" | "past_due" | "canceled" | "paused";
|
|
333
|
+
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
334
|
+
readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
|
|
335
|
+
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
336
|
+
readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
|
|
337
|
+
readonly interval: "month" | "year" | "week";
|
|
338
|
+
readonly interval_count: number;
|
|
339
|
+
readonly current_period_start: string & effect_Brand.Brand<"Timestamp">;
|
|
340
|
+
readonly current_period_end: string & effect_Brand.Brand<"Timestamp">;
|
|
341
|
+
readonly payment_link: string & effect_Brand.Brand<"UrlString">;
|
|
342
|
+
readonly customer_email?: string | null | undefined;
|
|
343
|
+
readonly auto_send_link: boolean;
|
|
344
|
+
readonly grace_days?: number | undefined;
|
|
345
|
+
readonly canceled_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
|
|
346
|
+
}, IndustrialError | AuthenticationError | InternalServerError, SecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"retrieve", "GET", {
|
|
347
|
+
readonly id: string & effect_Brand.Brand<"SubscriptionId">;
|
|
348
|
+
}, never, never, never, {
|
|
349
|
+
readonly id: string & effect_Brand.Brand<"SubscriptionId">;
|
|
350
|
+
readonly amount: number;
|
|
351
|
+
readonly currency: string;
|
|
352
|
+
readonly metadata?: {
|
|
353
|
+
readonly [x: string]: any;
|
|
354
|
+
} | null | undefined;
|
|
355
|
+
readonly status: "active" | "pending_checkout" | "past_due" | "canceled" | "paused";
|
|
356
|
+
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
357
|
+
readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
|
|
358
|
+
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
359
|
+
readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
|
|
360
|
+
readonly interval: "month" | "year" | "week";
|
|
361
|
+
readonly interval_count: number;
|
|
362
|
+
readonly current_period_start: string & effect_Brand.Brand<"Timestamp">;
|
|
363
|
+
readonly current_period_end: string & effect_Brand.Brand<"Timestamp">;
|
|
364
|
+
readonly payment_link: string & effect_Brand.Brand<"UrlString">;
|
|
365
|
+
readonly customer_email?: string | null | undefined;
|
|
366
|
+
readonly auto_send_link: boolean;
|
|
367
|
+
readonly grace_days?: number | undefined;
|
|
368
|
+
readonly canceled_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
|
|
369
|
+
}, IndustrialError | AuthenticationError | NotFoundError | InternalServerError, SecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", never, {
|
|
370
|
+
readonly customerId?: (string & effect_Brand.Brand<"CustomerId">) | undefined;
|
|
371
|
+
readonly status?: "active" | "pending_checkout" | "past_due" | "canceled" | "paused" | undefined;
|
|
372
|
+
readonly limit?: number | undefined;
|
|
373
|
+
readonly offset?: number | undefined;
|
|
374
|
+
readonly projectId?: (string & effect_Brand.Brand<"ProjectId">) | undefined;
|
|
375
|
+
}, never, never, {
|
|
376
|
+
readonly data: readonly {
|
|
377
|
+
readonly id: string & effect_Brand.Brand<"SubscriptionId">;
|
|
378
|
+
readonly amount: number;
|
|
379
|
+
readonly currency: string;
|
|
380
|
+
readonly metadata?: {
|
|
381
|
+
readonly [x: string]: any;
|
|
382
|
+
} | null | undefined;
|
|
383
|
+
readonly status: "active" | "pending_checkout" | "past_due" | "canceled" | "paused";
|
|
384
|
+
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
385
|
+
readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
|
|
386
|
+
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
387
|
+
readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
|
|
388
|
+
readonly interval: "month" | "year" | "week";
|
|
389
|
+
readonly interval_count: number;
|
|
390
|
+
readonly current_period_start: string & effect_Brand.Brand<"Timestamp">;
|
|
391
|
+
readonly current_period_end: string & effect_Brand.Brand<"Timestamp">;
|
|
392
|
+
readonly payment_link: string & effect_Brand.Brand<"UrlString">;
|
|
393
|
+
readonly customer_email?: string | null | undefined;
|
|
394
|
+
readonly auto_send_link: boolean;
|
|
395
|
+
readonly grace_days?: number | undefined;
|
|
396
|
+
readonly canceled_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
|
|
397
|
+
}[];
|
|
398
|
+
readonly meta: {
|
|
399
|
+
readonly total: number | null;
|
|
400
|
+
readonly limit: number;
|
|
401
|
+
readonly offset: number;
|
|
402
|
+
};
|
|
403
|
+
}, IndustrialError | AuthenticationError | InternalServerError, SecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"cancel", "POST", {
|
|
404
|
+
readonly id: string & effect_Brand.Brand<"SubscriptionId">;
|
|
405
|
+
}, never, never, never, {
|
|
406
|
+
readonly id: string & effect_Brand.Brand<"SubscriptionId">;
|
|
407
|
+
readonly amount: number;
|
|
408
|
+
readonly currency: string;
|
|
409
|
+
readonly metadata?: {
|
|
410
|
+
readonly [x: string]: any;
|
|
411
|
+
} | null | undefined;
|
|
412
|
+
readonly status: "active" | "pending_checkout" | "past_due" | "canceled" | "paused";
|
|
413
|
+
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
414
|
+
readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
|
|
415
|
+
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
416
|
+
readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
|
|
417
|
+
readonly interval: "month" | "year" | "week";
|
|
418
|
+
readonly interval_count: number;
|
|
419
|
+
readonly current_period_start: string & effect_Brand.Brand<"Timestamp">;
|
|
420
|
+
readonly current_period_end: string & effect_Brand.Brand<"Timestamp">;
|
|
421
|
+
readonly payment_link: string & effect_Brand.Brand<"UrlString">;
|
|
422
|
+
readonly customer_email?: string | null | undefined;
|
|
423
|
+
readonly auto_send_link: boolean;
|
|
424
|
+
readonly grace_days?: number | undefined;
|
|
425
|
+
readonly canceled_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
|
|
426
|
+
}, IndustrialError | AuthenticationError | NotFoundError | InternalServerError, SecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"activate", "POST", {
|
|
427
|
+
readonly id: string & effect_Brand.Brand<"SubscriptionId">;
|
|
428
|
+
}, never, {
|
|
429
|
+
readonly provider: "esewa" | "khalti" | "hamropay" | "connectips" | "imepay" | "fonepay" | "sandbox";
|
|
430
|
+
readonly returnUrl: string;
|
|
431
|
+
readonly cancelUrl?: string | undefined;
|
|
432
|
+
}, never, {
|
|
433
|
+
readonly checkout_url: string;
|
|
434
|
+
readonly payment_id: string;
|
|
435
|
+
}, IndustrialError | NotFoundError | InternalServerError, never, never>, never, never, false>;
|
|
436
|
+
declare const AutomationGroup: HttpApiGroup.HttpApiGroup<"automation", HttpApiEndpoint.HttpApiEndpoint<"reminders", "POST", never, never, never, never, {
|
|
437
|
+
readonly message: string;
|
|
438
|
+
readonly count: number;
|
|
439
|
+
}, InternalServerError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"reaper", "POST", never, never, never, never, {
|
|
440
|
+
readonly message: string;
|
|
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;
|
|
449
|
+
}, InternalServerError, never, never>, IndustrialError | AuthenticationError, CronSecurity, false>;
|
|
450
|
+
declare const TokensGroup: HttpApiGroup.HttpApiGroup<"tokens", HttpApiEndpoint.HttpApiEndpoint<"create", "POST", never, never, {
|
|
451
|
+
readonly name: string;
|
|
452
|
+
readonly scopes: readonly string[];
|
|
453
|
+
readonly expires_in_days?: number | undefined;
|
|
454
|
+
}, never, {
|
|
455
|
+
readonly id: string & effect_Brand.Brand<"TokenId">;
|
|
456
|
+
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
457
|
+
readonly name: string & effect_Brand.Brand<"NonEmptyString">;
|
|
458
|
+
readonly scopes: readonly string[];
|
|
459
|
+
readonly last_used_at: (string & effect_Brand.Brand<"Timestamp">) | null;
|
|
460
|
+
readonly expires_at: (string & effect_Brand.Brand<"Timestamp">) | null;
|
|
461
|
+
readonly token: string;
|
|
462
|
+
}, AuthenticationError | InternalServerError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", never, never, never, never, readonly {
|
|
463
|
+
readonly id: string & effect_Brand.Brand<"TokenId">;
|
|
464
|
+
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
465
|
+
readonly name: string & effect_Brand.Brand<"NonEmptyString">;
|
|
466
|
+
readonly scopes: readonly string[];
|
|
467
|
+
readonly last_used_at: (string & effect_Brand.Brand<"Timestamp">) | null;
|
|
468
|
+
readonly expires_at: (string & effect_Brand.Brand<"Timestamp">) | null;
|
|
469
|
+
}[], AuthenticationError | InternalServerError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"delete", "DELETE", {
|
|
470
|
+
readonly id: string & effect_Brand.Brand<"TokenId">;
|
|
471
|
+
}, never, never, never, null, AuthenticationError | NotFoundError | InternalServerError, never, never>, IndustrialError | AuthenticationError, UserSecurity, false>;
|
|
472
|
+
declare const ProjectsGroup: HttpApiGroup.HttpApiGroup<"projects", HttpApiEndpoint.HttpApiEndpoint<"list", "GET", never, never, never, never, readonly {
|
|
473
|
+
readonly id: string & effect_Brand.Brand<"ProjectId">;
|
|
474
|
+
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
475
|
+
readonly name: string & effect_Brand.Brand<"NonEmptyString">;
|
|
476
|
+
readonly expires_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
|
|
477
|
+
readonly api_key_secret: string;
|
|
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>;
|
|
505
|
+
declare const CallbacksGroup: HttpApiGroup.HttpApiGroup<"callbacks", HttpApiEndpoint.HttpApiEndpoint<"handle", "GET", {
|
|
506
|
+
readonly provider: string;
|
|
507
|
+
}, {
|
|
508
|
+
readonly code?: string | undefined;
|
|
509
|
+
readonly data?: string | undefined;
|
|
510
|
+
readonly payment_id?: string | undefined;
|
|
511
|
+
readonly pidx?: string | undefined;
|
|
512
|
+
readonly ref_id?: string | undefined;
|
|
513
|
+
readonly access_token?: string | undefined;
|
|
514
|
+
readonly refresh_token?: string | undefined;
|
|
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>;
|
|
524
|
+
declare const RealtimeGroup: HttpApiGroup.HttpApiGroup<"realtime", HttpApiEndpoint.HttpApiEndpoint<"connect", "GET", never, {
|
|
525
|
+
readonly token: string;
|
|
526
|
+
}, never, never, any, AuthenticationError | InternalServerError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"trigger", "POST", never, {
|
|
527
|
+
readonly token?: string | undefined;
|
|
528
|
+
}, {
|
|
529
|
+
readonly data?: any;
|
|
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;
|
|
531
|
+
}, never, {
|
|
532
|
+
readonly status: string;
|
|
533
|
+
readonly event?: string | undefined;
|
|
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>;
|
|
617
|
+
declare const PayArkApi: HttpApi.HttpApi<"PayArkApi", HttpApiGroup.HttpApiGroup<"checkout", HttpApiEndpoint.HttpApiEndpoint<"create", "POST", never, never, {
|
|
618
|
+
readonly amount?: (number & effect_Brand.Brand<"NprAmount">) | undefined;
|
|
619
|
+
readonly currency: string;
|
|
620
|
+
readonly provider: "esewa" | "khalti" | "hamropay" | "connectips" | "imepay" | "fonepay" | "sandbox";
|
|
621
|
+
readonly returnUrl: string & effect_Brand.Brand<"UrlString">;
|
|
622
|
+
readonly cancelUrl?: (string & effect_Brand.Brand<"UrlString">) | undefined;
|
|
623
|
+
readonly metadata?: {
|
|
624
|
+
readonly [x: string]: any;
|
|
625
|
+
} | undefined;
|
|
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;
|
|
629
|
+
}, never, {
|
|
630
|
+
readonly id: string & effect_Brand.Brand<"CheckoutSessionId">;
|
|
631
|
+
readonly checkout_url: string & effect_Brand.Brand<"UrlString">;
|
|
632
|
+
readonly qr_string?: string | undefined;
|
|
633
|
+
readonly payment_method: {
|
|
634
|
+
readonly fields?: {
|
|
635
|
+
readonly [x: string]: string;
|
|
636
|
+
} | undefined;
|
|
637
|
+
readonly type: "esewa" | "khalti" | "hamropay" | "connectips" | "imepay" | "fonepay" | "sandbox";
|
|
638
|
+
readonly url?: (string & effect_Brand.Brand<"UrlString">) | undefined;
|
|
639
|
+
readonly method?: "POST" | "GET" | undefined;
|
|
640
|
+
};
|
|
641
|
+
}, IndustrialError | AuthenticationError | InternalServerError, never, never>, IndustrialError | AuthenticationError, SecurityMiddleware, false> | HttpApiGroup.HttpApiGroup<"payments", HttpApiEndpoint.HttpApiEndpoint<"list", "GET", never, {
|
|
642
|
+
readonly limit?: number | undefined;
|
|
643
|
+
readonly offset?: number | undefined;
|
|
644
|
+
readonly projectId?: (string & effect_Brand.Brand<"ProjectId">) | undefined;
|
|
645
|
+
}, never, never, {
|
|
646
|
+
readonly data: readonly {
|
|
647
|
+
readonly id: string & effect_Brand.Brand<"PaymentId">;
|
|
648
|
+
readonly amount: number;
|
|
649
|
+
readonly currency: string;
|
|
650
|
+
readonly status: "pending" | "success" | "failed";
|
|
651
|
+
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
652
|
+
readonly customer_id?: (string & effect_Brand.Brand<"CustomerId">) | null | undefined;
|
|
653
|
+
readonly provider_ref?: string | null | undefined;
|
|
654
|
+
readonly metadata_json?: {
|
|
655
|
+
readonly [x: string]: any;
|
|
656
|
+
} | null | undefined;
|
|
657
|
+
readonly gateway_response?: any;
|
|
658
|
+
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
659
|
+
readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
|
|
660
|
+
}[];
|
|
661
|
+
readonly meta: {
|
|
662
|
+
readonly total: number | null;
|
|
663
|
+
readonly limit: number;
|
|
664
|
+
readonly offset: number;
|
|
665
|
+
};
|
|
666
|
+
}, IndustrialError | AuthenticationError | InternalServerError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"retrieve", "GET", {
|
|
667
|
+
readonly id: string & effect_Brand.Brand<"Id">;
|
|
668
|
+
}, never, never, never, {
|
|
669
|
+
readonly id: string & effect_Brand.Brand<"PaymentId">;
|
|
670
|
+
readonly amount: number;
|
|
671
|
+
readonly currency: string;
|
|
672
|
+
readonly status: "pending" | "success" | "failed";
|
|
673
|
+
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
674
|
+
readonly customer_id?: (string & effect_Brand.Brand<"CustomerId">) | null | undefined;
|
|
675
|
+
readonly provider_ref?: string | null | undefined;
|
|
676
|
+
readonly metadata_json?: {
|
|
677
|
+
readonly [x: string]: any;
|
|
678
|
+
} | null | undefined;
|
|
679
|
+
readonly gateway_response?: any;
|
|
680
|
+
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
681
|
+
readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
|
|
682
|
+
}, IndustrialError | AuthenticationError | NotFoundError | InternalServerError, never, never>, IndustrialError | AuthenticationError, SecurityMiddleware, false> | HttpApiGroup.HttpApiGroup<"customers", HttpApiEndpoint.HttpApiEndpoint<"create", "POST", never, never, {
|
|
683
|
+
readonly metadata?: {
|
|
684
|
+
readonly [x: string]: any;
|
|
685
|
+
} | undefined;
|
|
686
|
+
readonly project_id?: (string & effect_Brand.Brand<"ProjectId">) | undefined;
|
|
687
|
+
readonly merchant_customer_id: string & effect_Brand.Brand<"NonEmptyString">;
|
|
688
|
+
readonly email?: (string & effect_Brand.Brand<"Email">) | undefined;
|
|
689
|
+
readonly name?: (string & effect_Brand.Brand<"NonEmptyString">) | undefined;
|
|
690
|
+
readonly phone?: string | undefined;
|
|
691
|
+
}, never, {
|
|
692
|
+
readonly id: string & effect_Brand.Brand<"CustomerId">;
|
|
693
|
+
readonly metadata: {
|
|
694
|
+
readonly [x: string]: any;
|
|
695
|
+
} | null;
|
|
696
|
+
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
697
|
+
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
698
|
+
readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
|
|
699
|
+
readonly merchant_customer_id: string & effect_Brand.Brand<"NonEmptyString">;
|
|
700
|
+
readonly email: (string & effect_Brand.Brand<"Email">) | null;
|
|
701
|
+
readonly name: (string & effect_Brand.Brand<"NonEmptyString">) | null;
|
|
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;
|
|
708
|
+
}, IndustrialError | AuthenticationError | InternalServerError | ConflictError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", never, {
|
|
709
|
+
readonly limit?: number | undefined;
|
|
710
|
+
readonly offset?: number | undefined;
|
|
711
|
+
readonly projectId?: (string & effect_Brand.Brand<"ProjectId">) | undefined;
|
|
712
|
+
readonly merchant_customer_id?: string | undefined;
|
|
713
|
+
readonly email?: string | undefined;
|
|
714
|
+
}, never, never, {
|
|
715
|
+
readonly data: readonly {
|
|
716
|
+
readonly id: string & effect_Brand.Brand<"CustomerId">;
|
|
717
|
+
readonly metadata: {
|
|
718
|
+
readonly [x: string]: any;
|
|
719
|
+
} | null;
|
|
720
|
+
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
721
|
+
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
722
|
+
readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
|
|
723
|
+
readonly merchant_customer_id: string & effect_Brand.Brand<"NonEmptyString">;
|
|
724
|
+
readonly email: (string & effect_Brand.Brand<"Email">) | null;
|
|
725
|
+
readonly name: (string & effect_Brand.Brand<"NonEmptyString">) | null;
|
|
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;
|
|
732
|
+
}[];
|
|
733
|
+
readonly meta: {
|
|
734
|
+
readonly total: number | null;
|
|
735
|
+
readonly limit: number;
|
|
736
|
+
readonly offset: number;
|
|
737
|
+
};
|
|
738
|
+
}, IndustrialError | AuthenticationError | InternalServerError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"retrieve", "GET", {
|
|
739
|
+
readonly id: string & effect_Brand.Brand<"Id">;
|
|
740
|
+
}, never, never, never, {
|
|
741
|
+
readonly id: string & effect_Brand.Brand<"CustomerId">;
|
|
742
|
+
readonly metadata: {
|
|
743
|
+
readonly [x: string]: any;
|
|
744
|
+
} | null;
|
|
745
|
+
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
746
|
+
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
747
|
+
readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
|
|
748
|
+
readonly merchant_customer_id: string & effect_Brand.Brand<"NonEmptyString">;
|
|
749
|
+
readonly email: (string & effect_Brand.Brand<"Email">) | null;
|
|
750
|
+
readonly name: (string & effect_Brand.Brand<"NonEmptyString">) | null;
|
|
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;
|
|
757
|
+
}, IndustrialError | AuthenticationError | NotFoundError | InternalServerError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"update", "PATCH", {
|
|
758
|
+
readonly id: string & effect_Brand.Brand<"Id">;
|
|
759
|
+
}, never, {
|
|
760
|
+
readonly metadata?: {
|
|
761
|
+
readonly [x: string]: any;
|
|
762
|
+
} | undefined;
|
|
763
|
+
readonly merchant_customer_id?: string | undefined;
|
|
764
|
+
readonly email?: (string & effect_Brand.Brand<"Email">) | undefined;
|
|
765
|
+
readonly name?: (string & effect_Brand.Brand<"NonEmptyString">) | undefined;
|
|
766
|
+
readonly phone?: string | undefined;
|
|
767
|
+
readonly tier?: string | undefined;
|
|
768
|
+
}, never, {
|
|
769
|
+
readonly id: string & effect_Brand.Brand<"CustomerId">;
|
|
770
|
+
readonly metadata: {
|
|
771
|
+
readonly [x: string]: any;
|
|
772
|
+
} | null;
|
|
773
|
+
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
774
|
+
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
775
|
+
readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
|
|
776
|
+
readonly merchant_customer_id: string & effect_Brand.Brand<"NonEmptyString">;
|
|
777
|
+
readonly email: (string & effect_Brand.Brand<"Email">) | null;
|
|
778
|
+
readonly name: (string & effect_Brand.Brand<"NonEmptyString">) | null;
|
|
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;
|
|
785
|
+
}, IndustrialError | AuthenticationError | NotFoundError | InternalServerError | ConflictError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"delete", "DELETE", {
|
|
786
|
+
readonly id: string & effect_Brand.Brand<"Id">;
|
|
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, {
|
|
788
|
+
readonly amount: number & effect_Brand.Brand<"NprAmount">;
|
|
789
|
+
readonly currency: string;
|
|
790
|
+
readonly metadata?: {
|
|
791
|
+
readonly [x: string]: any;
|
|
792
|
+
} | undefined;
|
|
793
|
+
readonly project_id?: (string & effect_Brand.Brand<"ProjectId">) | undefined;
|
|
794
|
+
readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
|
|
795
|
+
readonly interval: "month" | "year" | "week";
|
|
796
|
+
readonly interval_count?: number | undefined;
|
|
797
|
+
readonly customer_email?: string | undefined;
|
|
798
|
+
readonly auto_send_link?: boolean | undefined;
|
|
799
|
+
}, never, {
|
|
800
|
+
readonly id: string & effect_Brand.Brand<"SubscriptionId">;
|
|
801
|
+
readonly amount: number;
|
|
802
|
+
readonly currency: string;
|
|
803
|
+
readonly metadata?: {
|
|
804
|
+
readonly [x: string]: any;
|
|
805
|
+
} | null | undefined;
|
|
806
|
+
readonly status: "active" | "pending_checkout" | "past_due" | "canceled" | "paused";
|
|
807
|
+
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
808
|
+
readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
|
|
809
|
+
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
810
|
+
readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
|
|
811
|
+
readonly interval: "month" | "year" | "week";
|
|
812
|
+
readonly interval_count: number;
|
|
813
|
+
readonly current_period_start: string & effect_Brand.Brand<"Timestamp">;
|
|
814
|
+
readonly current_period_end: string & effect_Brand.Brand<"Timestamp">;
|
|
815
|
+
readonly payment_link: string & effect_Brand.Brand<"UrlString">;
|
|
816
|
+
readonly customer_email?: string | null | undefined;
|
|
817
|
+
readonly auto_send_link: boolean;
|
|
818
|
+
readonly grace_days?: number | undefined;
|
|
819
|
+
readonly canceled_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
|
|
820
|
+
}, IndustrialError | AuthenticationError | InternalServerError, SecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"retrieve", "GET", {
|
|
821
|
+
readonly id: string & effect_Brand.Brand<"SubscriptionId">;
|
|
822
|
+
}, never, never, never, {
|
|
823
|
+
readonly id: string & effect_Brand.Brand<"SubscriptionId">;
|
|
824
|
+
readonly amount: number;
|
|
825
|
+
readonly currency: string;
|
|
826
|
+
readonly metadata?: {
|
|
827
|
+
readonly [x: string]: any;
|
|
828
|
+
} | null | undefined;
|
|
829
|
+
readonly status: "active" | "pending_checkout" | "past_due" | "canceled" | "paused";
|
|
830
|
+
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
831
|
+
readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
|
|
832
|
+
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
833
|
+
readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
|
|
834
|
+
readonly interval: "month" | "year" | "week";
|
|
835
|
+
readonly interval_count: number;
|
|
836
|
+
readonly current_period_start: string & effect_Brand.Brand<"Timestamp">;
|
|
837
|
+
readonly current_period_end: string & effect_Brand.Brand<"Timestamp">;
|
|
838
|
+
readonly payment_link: string & effect_Brand.Brand<"UrlString">;
|
|
839
|
+
readonly customer_email?: string | null | undefined;
|
|
840
|
+
readonly auto_send_link: boolean;
|
|
841
|
+
readonly grace_days?: number | undefined;
|
|
842
|
+
readonly canceled_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
|
|
843
|
+
}, IndustrialError | AuthenticationError | NotFoundError | InternalServerError, SecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", never, {
|
|
844
|
+
readonly customerId?: (string & effect_Brand.Brand<"CustomerId">) | undefined;
|
|
845
|
+
readonly status?: "active" | "pending_checkout" | "past_due" | "canceled" | "paused" | undefined;
|
|
846
|
+
readonly limit?: number | undefined;
|
|
847
|
+
readonly offset?: number | undefined;
|
|
848
|
+
readonly projectId?: (string & effect_Brand.Brand<"ProjectId">) | undefined;
|
|
849
|
+
}, never, never, {
|
|
850
|
+
readonly data: readonly {
|
|
851
|
+
readonly id: string & effect_Brand.Brand<"SubscriptionId">;
|
|
852
|
+
readonly amount: number;
|
|
853
|
+
readonly currency: string;
|
|
854
|
+
readonly metadata?: {
|
|
855
|
+
readonly [x: string]: any;
|
|
856
|
+
} | null | undefined;
|
|
857
|
+
readonly status: "active" | "pending_checkout" | "past_due" | "canceled" | "paused";
|
|
858
|
+
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
859
|
+
readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
|
|
860
|
+
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
861
|
+
readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
|
|
862
|
+
readonly interval: "month" | "year" | "week";
|
|
863
|
+
readonly interval_count: number;
|
|
864
|
+
readonly current_period_start: string & effect_Brand.Brand<"Timestamp">;
|
|
865
|
+
readonly current_period_end: string & effect_Brand.Brand<"Timestamp">;
|
|
866
|
+
readonly payment_link: string & effect_Brand.Brand<"UrlString">;
|
|
867
|
+
readonly customer_email?: string | null | undefined;
|
|
868
|
+
readonly auto_send_link: boolean;
|
|
869
|
+
readonly grace_days?: number | undefined;
|
|
870
|
+
readonly canceled_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
|
|
871
|
+
}[];
|
|
872
|
+
readonly meta: {
|
|
873
|
+
readonly total: number | null;
|
|
874
|
+
readonly limit: number;
|
|
875
|
+
readonly offset: number;
|
|
876
|
+
};
|
|
877
|
+
}, IndustrialError | AuthenticationError | InternalServerError, SecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"cancel", "POST", {
|
|
878
|
+
readonly id: string & effect_Brand.Brand<"SubscriptionId">;
|
|
879
|
+
}, never, never, never, {
|
|
880
|
+
readonly id: string & effect_Brand.Brand<"SubscriptionId">;
|
|
881
|
+
readonly amount: number;
|
|
882
|
+
readonly currency: string;
|
|
883
|
+
readonly metadata?: {
|
|
884
|
+
readonly [x: string]: any;
|
|
885
|
+
} | null | undefined;
|
|
886
|
+
readonly status: "active" | "pending_checkout" | "past_due" | "canceled" | "paused";
|
|
887
|
+
readonly project_id: string & effect_Brand.Brand<"ProjectId">;
|
|
888
|
+
readonly customer_id: string & effect_Brand.Brand<"CustomerId">;
|
|
889
|
+
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
890
|
+
readonly updated_at?: (string & effect_Brand.Brand<"Timestamp">) | undefined;
|
|
891
|
+
readonly interval: "month" | "year" | "week";
|
|
892
|
+
readonly interval_count: number;
|
|
893
|
+
readonly current_period_start: string & effect_Brand.Brand<"Timestamp">;
|
|
894
|
+
readonly current_period_end: string & effect_Brand.Brand<"Timestamp">;
|
|
895
|
+
readonly payment_link: string & effect_Brand.Brand<"UrlString">;
|
|
896
|
+
readonly customer_email?: string | null | undefined;
|
|
897
|
+
readonly auto_send_link: boolean;
|
|
898
|
+
readonly grace_days?: number | undefined;
|
|
899
|
+
readonly canceled_at?: (string & effect_Brand.Brand<"Timestamp">) | null | undefined;
|
|
900
|
+
}, IndustrialError | AuthenticationError | NotFoundError | InternalServerError, SecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"activate", "POST", {
|
|
901
|
+
readonly id: string & effect_Brand.Brand<"SubscriptionId">;
|
|
902
|
+
}, never, {
|
|
903
|
+
readonly provider: "esewa" | "khalti" | "hamropay" | "connectips" | "imepay" | "fonepay" | "sandbox";
|
|
904
|
+
readonly returnUrl: string;
|
|
905
|
+
readonly cancelUrl?: string | undefined;
|
|
906
|
+
}, never, {
|
|
907
|
+
readonly checkout_url: string;
|
|
908
|
+
readonly payment_id: string;
|
|
909
|
+
}, IndustrialError | NotFoundError | InternalServerError, never, never>, never, never, false> | HttpApiGroup.HttpApiGroup<"automation", HttpApiEndpoint.HttpApiEndpoint<"reminders", "POST", never, never, never, never, {
|
|
910
|
+
readonly message: string;
|
|
911
|
+
readonly count: number;
|
|
912
|
+
}, InternalServerError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"reaper", "POST", never, never, never, never, {
|
|
913
|
+
readonly message: string;
|
|
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;
|
|
922
|
+
}, InternalServerError, never, never>, IndustrialError | AuthenticationError, CronSecurity, false> | HttpApiGroup.HttpApiGroup<"tokens", HttpApiEndpoint.HttpApiEndpoint<"create", "POST", never, never, {
|
|
923
|
+
readonly name: string;
|
|
924
|
+
readonly scopes: readonly string[];
|
|
925
|
+
readonly expires_in_days?: number | undefined;
|
|
926
|
+
}, never, {
|
|
927
|
+
readonly id: string & effect_Brand.Brand<"TokenId">;
|
|
928
|
+
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
929
|
+
readonly name: string & effect_Brand.Brand<"NonEmptyString">;
|
|
930
|
+
readonly scopes: readonly string[];
|
|
931
|
+
readonly last_used_at: (string & effect_Brand.Brand<"Timestamp">) | null;
|
|
932
|
+
readonly expires_at: (string & effect_Brand.Brand<"Timestamp">) | null;
|
|
933
|
+
readonly token: string;
|
|
934
|
+
}, AuthenticationError | InternalServerError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"list", "GET", never, never, never, never, readonly {
|
|
935
|
+
readonly id: string & effect_Brand.Brand<"TokenId">;
|
|
936
|
+
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
937
|
+
readonly name: string & effect_Brand.Brand<"NonEmptyString">;
|
|
938
|
+
readonly scopes: readonly string[];
|
|
939
|
+
readonly last_used_at: (string & effect_Brand.Brand<"Timestamp">) | null;
|
|
940
|
+
readonly expires_at: (string & effect_Brand.Brand<"Timestamp">) | null;
|
|
941
|
+
}[], AuthenticationError | InternalServerError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"delete", "DELETE", {
|
|
942
|
+
readonly id: string & effect_Brand.Brand<"TokenId">;
|
|
943
|
+
}, never, never, never, null, AuthenticationError | NotFoundError | InternalServerError, never, never>, IndustrialError | AuthenticationError, UserSecurity, false> | HttpApiGroup.HttpApiGroup<"projects", HttpApiEndpoint.HttpApiEndpoint<"list", "GET", never, never, never, never, readonly {
|
|
944
|
+
readonly id: string & effect_Brand.Brand<"ProjectId">;
|
|
945
|
+
readonly created_at: string & effect_Brand.Brand<"Timestamp">;
|
|
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;
|
|
960
|
+
readonly api_key_secret: string;
|
|
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", {
|
|
964
|
+
readonly provider: string;
|
|
965
|
+
}, {
|
|
966
|
+
readonly code?: string | undefined;
|
|
967
|
+
readonly data?: string | undefined;
|
|
968
|
+
readonly payment_id?: string | undefined;
|
|
969
|
+
readonly pidx?: string | undefined;
|
|
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, {
|
|
977
|
+
readonly token: string;
|
|
978
|
+
}, never, never, any, AuthenticationError | InternalServerError, never, never> | HttpApiEndpoint.HttpApiEndpoint<"trigger", "POST", never, {
|
|
979
|
+
readonly token?: string | undefined;
|
|
980
|
+
}, {
|
|
981
|
+
readonly data?: any;
|
|
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;
|
|
983
|
+
}, never, {
|
|
984
|
+
readonly status: string;
|
|
985
|
+
readonly event?: string | undefined;
|
|
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>;
|
|
1065
|
+
|
|
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 };
|