@marcoappio/marco-config 7.0.0 → 7.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/dist/sdk/endpoints/index.d.ts +124 -2
  2. package/dist/sdk/endpoints/index.d.ts.map +1 -1
  3. package/dist/sdk/endpoints/public/auth/browser/deleteSession.d.ts +17 -0
  4. package/dist/sdk/endpoints/public/auth/browser/deleteSession.d.ts.map +1 -0
  5. package/dist/sdk/endpoints/public/auth/browser/deleteSession.js +14 -0
  6. package/dist/sdk/endpoints/public/auth/browser/index.d.ts +123 -0
  7. package/dist/sdk/endpoints/public/auth/browser/index.d.ts.map +1 -0
  8. package/dist/sdk/endpoints/public/auth/browser/index.js +8 -0
  9. package/dist/sdk/endpoints/public/auth/browser/refreshAuth.d.ts +40 -0
  10. package/dist/sdk/endpoints/public/auth/browser/refreshAuth.d.ts.map +1 -0
  11. package/dist/sdk/endpoints/public/auth/browser/refreshAuth.js +14 -0
  12. package/dist/sdk/endpoints/public/auth/browser/schemas.d.ts +82 -0
  13. package/dist/sdk/endpoints/public/auth/browser/schemas.d.ts.map +1 -0
  14. package/dist/sdk/endpoints/public/auth/browser/schemas.js +25 -0
  15. package/dist/sdk/endpoints/public/auth/browser/verifyAuthCode.d.ts +69 -0
  16. package/dist/sdk/endpoints/public/auth/browser/verifyAuthCode.d.ts.map +1 -0
  17. package/dist/sdk/endpoints/public/auth/browser/verifyAuthCode.js +21 -0
  18. package/dist/sdk/endpoints/public/auth/index.d.ts +124 -2
  19. package/dist/sdk/endpoints/public/auth/index.d.ts.map +1 -1
  20. package/dist/sdk/endpoints/public/auth/index.js +2 -0
  21. package/dist/sdk/endpoints/public/auth/refreshAuth.d.ts +1 -1
  22. package/dist/sdk/endpoints/public/auth/refreshAuth.d.ts.map +1 -1
  23. package/dist/sdk/endpoints/public/auth/refreshAuth.js +2 -14
  24. package/dist/sdk/endpoints/public/auth/schemas.d.ts +39 -0
  25. package/dist/sdk/endpoints/public/auth/schemas.d.ts.map +1 -0
  26. package/dist/sdk/endpoints/public/auth/schemas.js +20 -0
  27. package/dist/sdk/endpoints/public/auth/verifyAuthCode.d.ts +1 -1
  28. package/dist/sdk/endpoints/public/auth/verifyAuthCode.d.ts.map +1 -1
  29. package/dist/sdk/endpoints/public/auth/verifyAuthCode.js +2 -14
  30. package/dist/sdk/endpoints/public/index.d.ts +124 -2
  31. package/dist/sdk/endpoints/public/index.d.ts.map +1 -1
  32. package/dist/sdk/index.d.ts +124 -2
  33. package/dist/sdk/index.d.ts.map +1 -1
  34. package/package.json +1 -1
@@ -114,6 +114,128 @@ export declare const marcoSDK: {
114
114
  };
115
115
  public: {
116
116
  auth: {
117
+ browser: {
118
+ deleteSession: import("..").EndpointConfig<"/v1/pb/auth/browser/session", import("valibot").GenericSchema | undefined, import("valibot").StrictObjectSchema<{
119
+ readonly sessionGeneration: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").UuidAction<string, undefined>]>;
120
+ }, undefined>, import("valibot").UnionSchema<[import("valibot").StrictObjectSchema<{
121
+ readonly data: import("valibot").StrictObjectSchema<{
122
+ readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
123
+ readonly issues: import("valibot").ObjectSchema<{
124
+ readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
125
+ readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
126
+ readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
127
+ }, undefined>;
128
+ }, undefined>;
129
+ readonly status: import("valibot").LiteralSchema<400, undefined>;
130
+ }, undefined>, import("valibot").StrictObjectSchema<{
131
+ readonly status: import("valibot").LiteralSchema<204, undefined>;
132
+ }, undefined>], undefined>>;
133
+ refreshAuth: import("..").EndpointConfig<"/v1/pb/auth/browser/refresh", import("valibot").GenericSchema | undefined, import("valibot").StrictObjectSchema<{
134
+ readonly sessionGeneration: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").UuidAction<string, undefined>]>;
135
+ }, undefined>, import("valibot").UnionSchema<[import("valibot").StrictObjectSchema<{
136
+ readonly data: import("valibot").StrictObjectSchema<{
137
+ readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
138
+ readonly issues: import("valibot").ObjectSchema<{
139
+ readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
140
+ readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
141
+ readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
142
+ }, undefined>;
143
+ }, undefined>;
144
+ readonly status: import("valibot").LiteralSchema<400, undefined>;
145
+ }, undefined>, import("valibot").StrictObjectSchema<{
146
+ readonly data: import("valibot").StrictObjectSchema<{
147
+ readonly code: import("valibot").LiteralSchema<"AUTH_REFRESH_TOKEN_INVALID", undefined>;
148
+ }, undefined>;
149
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
150
+ }, undefined>, import("valibot").StrictObjectSchema<{
151
+ readonly data: import("valibot").StrictObjectSchema<{
152
+ readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
153
+ }, undefined>;
154
+ readonly status: import("valibot").LiteralSchema<502, undefined>;
155
+ }, undefined>, import("valibot").StrictObjectSchema<{
156
+ readonly data: import("valibot").StrictObjectSchema<{
157
+ accessToken: import("valibot").StringSchema<undefined>;
158
+ user: import("valibot").ObjectSchema<{
159
+ readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
160
+ readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RfcEmailAction<string, undefined>]>, undefined>;
161
+ readonly emailVerified: import("valibot").BooleanSchema<undefined>;
162
+ readonly firstName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
163
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
164
+ readonly lastName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
165
+ readonly profilePictureUrl: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
166
+ readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
167
+ }, undefined>;
168
+ }, undefined>;
169
+ readonly status: import("valibot").LiteralSchema<200, undefined>;
170
+ }, undefined>], undefined>>;
171
+ verifyAuthCode: import("..").EndpointConfig<"/v1/pb/auth/browser/verify-code", import("valibot").ObjectSchema<{
172
+ readonly authType: import("valibot").LiteralSchema<"CODE", undefined>;
173
+ readonly code: import("valibot").StringSchema<undefined>;
174
+ readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RfcEmailAction<string, undefined>]>, undefined>;
175
+ }, undefined>, import("valibot").StrictObjectSchema<{
176
+ readonly sessionGeneration: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").UuidAction<string, undefined>]>;
177
+ }, undefined>, import("valibot").UnionSchema<[import("valibot").StrictObjectSchema<{
178
+ readonly data: import("valibot").StrictObjectSchema<{
179
+ readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
180
+ readonly issues: import("valibot").ObjectSchema<{
181
+ readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
182
+ readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
183
+ readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
184
+ }, undefined>;
185
+ }, undefined>;
186
+ readonly status: import("valibot").LiteralSchema<400, undefined>;
187
+ }, undefined>, import("valibot").StrictObjectSchema<{
188
+ readonly data: import("valibot").StrictObjectSchema<{
189
+ readonly code: import("valibot").LiteralSchema<"AUTH_CODE_EXPIRED", undefined>;
190
+ }, undefined>;
191
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
192
+ }, undefined>, import("valibot").StrictObjectSchema<{
193
+ readonly data: import("valibot").StrictObjectSchema<{
194
+ readonly code: import("valibot").LiteralSchema<"AUTH_CODE_INVALID", undefined>;
195
+ }, undefined>;
196
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
197
+ }, undefined>, import("valibot").StrictObjectSchema<{
198
+ readonly data: import("valibot").StrictObjectSchema<{
199
+ readonly code: import("valibot").LiteralSchema<"AUTH_CODE_PREVIOUSLY_USED", undefined>;
200
+ }, undefined>;
201
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
202
+ }, undefined>, import("valibot").StrictObjectSchema<{
203
+ readonly data: import("valibot").StrictObjectSchema<{
204
+ readonly code: import("valibot").LiteralSchema<"AUTH_TOO_MANY_ATTEMPTS", undefined>;
205
+ }, undefined>;
206
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
207
+ }, undefined>, import("valibot").StrictObjectSchema<{
208
+ readonly data: import("valibot").StrictObjectSchema<{
209
+ readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
210
+ }, undefined>;
211
+ readonly status: import("valibot").LiteralSchema<502, undefined>;
212
+ }, undefined>, import("valibot").StrictObjectSchema<{
213
+ readonly data: import("valibot").StrictObjectSchema<{
214
+ readonly code: import("valibot").LiteralSchema<"USER_NOT_FOUND", undefined>;
215
+ }, undefined>;
216
+ readonly status: import("valibot").LiteralSchema<404, undefined>;
217
+ }, undefined>, import("valibot").StrictObjectSchema<{
218
+ readonly data: import("valibot").StrictObjectSchema<{
219
+ readonly code: import("valibot").LiteralSchema<"USER_MARKED_FOR_DELETION", undefined>;
220
+ }, undefined>;
221
+ readonly status: import("valibot").LiteralSchema<409, undefined>;
222
+ }, undefined>, import("valibot").StrictObjectSchema<{
223
+ readonly data: import("valibot").StrictObjectSchema<{
224
+ accessToken: import("valibot").StringSchema<undefined>;
225
+ user: import("valibot").ObjectSchema<{
226
+ readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
227
+ readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RfcEmailAction<string, undefined>]>, undefined>;
228
+ readonly emailVerified: import("valibot").BooleanSchema<undefined>;
229
+ readonly firstName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
230
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
231
+ readonly lastName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
232
+ readonly profilePictureUrl: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
233
+ readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
234
+ }, undefined>;
235
+ }, undefined>;
236
+ readonly status: import("valibot").LiteralSchema<200, undefined>;
237
+ }, undefined>], undefined>>;
238
+ };
117
239
  refreshAuth: import("..").EndpointConfig<"/v1/pb/auth/refresh", import("valibot").ObjectSchema<{
118
240
  readonly refreshToken: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
119
241
  }, undefined>, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
@@ -138,8 +260,8 @@ export declare const marcoSDK: {
138
260
  readonly status: import("valibot").LiteralSchema<502, undefined>;
139
261
  }, undefined>, import("valibot").ObjectSchema<{
140
262
  readonly data: import("valibot").ObjectSchema<{
141
- readonly accessToken: import("valibot").StringSchema<undefined>;
142
263
  readonly refreshToken: import("valibot").StringSchema<undefined>;
264
+ readonly accessToken: import("valibot").StringSchema<undefined>;
143
265
  readonly user: import("valibot").ObjectSchema<{
144
266
  readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
145
267
  readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RfcEmailAction<string, undefined>]>, undefined>;
@@ -229,8 +351,8 @@ export declare const marcoSDK: {
229
351
  readonly status: import("valibot").LiteralSchema<409, undefined>;
230
352
  }, undefined>, import("valibot").ObjectSchema<{
231
353
  readonly data: import("valibot").ObjectSchema<{
232
- readonly accessToken: import("valibot").StringSchema<undefined>;
233
354
  readonly refreshToken: import("valibot").StringSchema<undefined>;
355
+ readonly accessToken: import("valibot").StringSchema<undefined>;
234
356
  readonly user: import("valibot").ObjectSchema<{
235
357
  readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
236
358
  readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RfcEmailAction<string, undefined>]>, undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sdk/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGpB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sdk/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGpB,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marcoappio/marco-config",
3
- "version": "7.0.0",
3
+ "version": "7.1.0",
4
4
  "author": "team@marcoapp.io",
5
5
  "main": "dist/index.js",
6
6
  "repository": "git@github.com:marcoappio/marco-config.git",