@marcoappio/marco-config 2.0.125 → 2.0.126

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.
@@ -161,6 +161,14 @@ export declare const endpoints: {
161
161
  }, undefined>], undefined>>;
162
162
  };
163
163
  };
164
+ user: {
165
+ deleteUser: EndpointConfig<"/v1/pv/user", GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
166
+ readonly code: import("valibot").LiteralSchema<"NOT_AUTHENTICATED", undefined>;
167
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
168
+ }, undefined>, import("valibot").ObjectSchema<{
169
+ readonly status: import("valibot").LiteralSchema<204, undefined>;
170
+ }, undefined>], undefined>>;
171
+ };
164
172
  };
165
173
  public: {
166
174
  auth: {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/endpoints/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAEvC,OAAO,EAAE,cAAc,EAAoB,MAAM,qBAAqB,CAAA;AActE,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGM,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/endpoints/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAEvC,OAAO,EAAE,cAAc,EAAoB,MAAM,qBAAqB,CAAA;AActE,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGM,CAAA"}
@@ -158,5 +158,13 @@ export declare const privateGroup: {
158
158
  }, undefined>], undefined>>;
159
159
  };
160
160
  };
161
+ user: {
162
+ deleteUser: import("../../..").EndpointConfig<"/v1/pv/user", import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
163
+ readonly code: import("valibot").LiteralSchema<"NOT_AUTHENTICATED", undefined>;
164
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
165
+ }, undefined>, import("valibot").ObjectSchema<{
166
+ readonly status: import("valibot").LiteralSchema<204, undefined>;
167
+ }, undefined>], undefined>>;
168
+ };
161
169
  };
162
170
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/endpoints/private/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAExB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/endpoints/private/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGxB,CAAA"}
@@ -1,4 +1,6 @@
1
1
  import { sync } from './sync';
2
+ import { user } from './user';
2
3
  export const privateGroup = {
3
4
  sync,
5
+ user,
4
6
  };
@@ -0,0 +1,8 @@
1
+ import * as v from 'valibot';
2
+ export declare const deleteUser: import("../../../../types").EndpointConfig<"/v1/pv/user", v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.UnionSchema<[v.ObjectSchema<{
3
+ readonly code: v.LiteralSchema<"NOT_AUTHENTICATED", undefined>;
4
+ readonly status: v.LiteralSchema<401, undefined>;
5
+ }, undefined>, v.ObjectSchema<{
6
+ readonly status: v.LiteralSchema<204, undefined>;
7
+ }, undefined>], undefined>>;
8
+ //# sourceMappingURL=deleteUser.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deleteUser.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/user/deleteUser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,UAAU;;;;;2BASrB,CAAA"}
@@ -0,0 +1,14 @@
1
+ import * as v from 'valibot';
2
+ import { createEndpoint } from '../../../../sdk/endpoints/createEndpointConfig';
3
+ import { notAuthenticatedErrorSchema } from '../../../../sdk/validation/errors';
4
+ import { HTTPMethod } from '../../../../types';
5
+ export const deleteUser = createEndpoint({
6
+ method: HTTPMethod.DELETE,
7
+ path: '/v1/pv/user',
8
+ response: v.union([
9
+ notAuthenticatedErrorSchema,
10
+ v.object({
11
+ status: v.literal(204),
12
+ }),
13
+ ]),
14
+ });
@@ -0,0 +1,9 @@
1
+ export declare const user: {
2
+ deleteUser: import("../../../..").EndpointConfig<"/v1/pv/user", import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
3
+ readonly code: import("valibot").LiteralSchema<"NOT_AUTHENTICATED", undefined>;
4
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
5
+ }, undefined>, import("valibot").ObjectSchema<{
6
+ readonly status: import("valibot").LiteralSchema<204, undefined>;
7
+ }, undefined>], undefined>>;
8
+ };
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/user/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI;;;;;;;CAEhB,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { deleteUser } from './deleteUser';
2
+ export const user = {
3
+ deleteUser,
4
+ };
@@ -160,6 +160,14 @@ export declare const marcoSDK: {
160
160
  }, undefined>], undefined>>;
161
161
  };
162
162
  };
163
+ user: {
164
+ deleteUser: import("..").EndpointConfig<"/v1/pv/user", import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
165
+ readonly code: import("valibot").LiteralSchema<"NOT_AUTHENTICATED", undefined>;
166
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
167
+ }, undefined>, import("valibot").ObjectSchema<{
168
+ readonly status: import("valibot").LiteralSchema<204, undefined>;
169
+ }, undefined>], undefined>>;
170
+ };
163
171
  };
164
172
  public: {
165
173
  auth: {
@@ -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": "2.0.125",
3
+ "version": "2.0.126",
4
4
  "author": "team@marcoapp.io",
5
5
  "main": "dist/index.js",
6
6
  "repository": "git@github.com:marcoappio/marco-config.git",