@marcoappio/marco-config 2.0.264 → 2.0.265

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 (29) hide show
  1. package/dist/sdk/endpoints/index.d.ts +15 -22
  2. package/dist/sdk/endpoints/index.d.ts.map +1 -1
  3. package/dist/sdk/endpoints/index.js +0 -2
  4. package/dist/sdk/endpoints/private/index.d.ts +15 -0
  5. package/dist/sdk/endpoints/private/index.d.ts.map +1 -1
  6. package/dist/sdk/endpoints/private/index.js +2 -0
  7. package/dist/sdk/endpoints/private/oauth/google/authorize.d.ts +13 -0
  8. package/dist/sdk/endpoints/private/oauth/google/authorize.d.ts.map +1 -0
  9. package/dist/sdk/endpoints/private/oauth/google/authorize.js +18 -0
  10. package/dist/sdk/endpoints/private/oauth/google/index.d.ts +14 -0
  11. package/dist/sdk/endpoints/private/oauth/google/index.d.ts.map +1 -0
  12. package/dist/sdk/endpoints/private/oauth/google/index.js +4 -0
  13. package/dist/sdk/endpoints/private/oauth/index.d.ts +16 -0
  14. package/dist/sdk/endpoints/private/oauth/index.d.ts.map +1 -0
  15. package/dist/sdk/index.d.ts +15 -22
  16. package/dist/sdk/index.d.ts.map +1 -1
  17. package/package.json +1 -1
  18. package/dist/sdk/endpoints/webhook/index.d.ts +0 -23
  19. package/dist/sdk/endpoints/webhook/index.d.ts.map +0 -1
  20. package/dist/sdk/endpoints/webhook/index.js +0 -4
  21. package/dist/sdk/endpoints/webhook/oauth/google/accessToken.d.ts +0 -18
  22. package/dist/sdk/endpoints/webhook/oauth/google/accessToken.d.ts.map +0 -1
  23. package/dist/sdk/endpoints/webhook/oauth/google/accessToken.js +0 -18
  24. package/dist/sdk/endpoints/webhook/oauth/google/index.d.ts +0 -19
  25. package/dist/sdk/endpoints/webhook/oauth/google/index.d.ts.map +0 -1
  26. package/dist/sdk/endpoints/webhook/oauth/google/index.js +0 -4
  27. package/dist/sdk/endpoints/webhook/oauth/index.d.ts +0 -21
  28. package/dist/sdk/endpoints/webhook/oauth/index.d.ts.map +0 -1
  29. /package/dist/sdk/endpoints/{webhook → private}/oauth/index.js +0 -0
@@ -34,6 +34,21 @@ export declare const endpoints: {
34
34
  readonly status: import("valibot").LiteralSchema<200, undefined>;
35
35
  }, undefined>], undefined>>;
36
36
  };
37
+ oauth: {
38
+ google: {
39
+ authorize: EndpointConfig<"/v1/pv/oauth/google/authorize", GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").ObjectSchema<{
40
+ readonly accountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
41
+ readonly redirectTo: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").UrlAction<string, undefined>]>;
42
+ }, undefined>, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
43
+ readonly data: import("valibot").ObjectSchema<{
44
+ readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
45
+ }, undefined>;
46
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
47
+ }, undefined>, import("valibot").ObjectSchema<{
48
+ readonly status: import("valibot").LiteralSchema<307, undefined>;
49
+ }, undefined>], undefined>>;
50
+ };
51
+ };
37
52
  sync: {
38
53
  pull: {
39
54
  account: EndpointConfig<"/v1/pv/sync/pull/account", import("valibot").ObjectSchema<{
@@ -874,27 +889,5 @@ export declare const endpoints: {
874
889
  readonly status: import("valibot").LiteralSchema<200, undefined>;
875
890
  }, undefined>>;
876
891
  };
877
- webhook: {
878
- oauth: {
879
- google: {
880
- accessToken: EndpointConfig<"/v1/wh/oauth/google/access-token", import("valibot").ObjectSchema<{
881
- readonly code: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
882
- readonly state: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
883
- }, undefined>, GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
884
- readonly status: import("valibot").LiteralSchema<307, undefined>;
885
- }, undefined>, import("valibot").ObjectSchema<{
886
- readonly data: import("valibot").ObjectSchema<{
887
- readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
888
- readonly issues: import("valibot").ObjectSchema<{
889
- 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>;
890
- readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
891
- readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
892
- }, undefined>;
893
- }, undefined>;
894
- readonly status: import("valibot").LiteralSchema<400, undefined>;
895
- }, undefined>], undefined>>;
896
- };
897
- };
898
- };
899
892
  };
900
893
  //# sourceMappingURL=index.d.ts.map
@@ -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,EAAe,MAAM,qBAAqB,CAAA;AAejE,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGM,CAAA"}
@@ -1,8 +1,6 @@
1
1
  import { privateGroup } from './private';
2
2
  import { publicGroup } from './public';
3
- import { webhookGroup } from './webhook';
4
3
  export const endpoints = {
5
4
  private: privateGroup,
6
5
  public: publicGroup,
7
- webhook: webhookGroup,
8
6
  };
@@ -31,6 +31,21 @@ export declare const privateGroup: {
31
31
  readonly status: import("valibot").LiteralSchema<200, undefined>;
32
32
  }, undefined>], undefined>>;
33
33
  };
34
+ oauth: {
35
+ google: {
36
+ authorize: import("../../..").EndpointConfig<"/v1/pv/oauth/google/authorize", import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").ObjectSchema<{
37
+ readonly accountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
38
+ readonly redirectTo: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").UrlAction<string, undefined>]>;
39
+ }, undefined>, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
40
+ readonly data: import("valibot").ObjectSchema<{
41
+ readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
42
+ }, undefined>;
43
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
44
+ }, undefined>, import("valibot").ObjectSchema<{
45
+ readonly status: import("valibot").LiteralSchema<307, undefined>;
46
+ }, undefined>], undefined>>;
47
+ };
48
+ };
34
49
  sync: {
35
50
  pull: {
36
51
  account: import("../../..").EndpointConfig<"/v1/pv/sync/pull/account", import("valibot").ObjectSchema<{
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/endpoints/private/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKxB,CAAA"}
@@ -1,8 +1,10 @@
1
1
  import { emailMessage } from './emailMessage';
2
+ import { oauth } from './oauth';
2
3
  import { sync } from './sync';
3
4
  import { user } from './user';
4
5
  export const privateGroup = {
5
6
  emailMessage,
7
+ oauth,
6
8
  sync,
7
9
  user,
8
10
  };
@@ -0,0 +1,13 @@
1
+ import * as v from 'valibot';
2
+ export declare const authorize: import("../../../../..").EndpointConfig<"/v1/pv/oauth/google/authorize", v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.ObjectSchema<{
3
+ readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
4
+ readonly redirectTo: v.SchemaWithPipe<[v.StringSchema<undefined>, v.UrlAction<string, undefined>]>;
5
+ }, undefined>, v.UnionSchema<[v.ObjectSchema<{
6
+ readonly data: v.ObjectSchema<{
7
+ readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
8
+ }, undefined>;
9
+ readonly status: v.LiteralSchema<401, undefined>;
10
+ }, undefined>, v.ObjectSchema<{
11
+ readonly status: v.LiteralSchema<307, undefined>;
12
+ }, undefined>], undefined>>;
13
+ //# sourceMappingURL=authorize.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"authorize.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/oauth/google/authorize.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,SAAS;;;;;;;;;;2BAapB,CAAA"}
@@ -0,0 +1,18 @@
1
+ import * as v from 'valibot';
2
+ import { marcoSchemas } from '../../../../../schemas';
3
+ import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
4
+ import { authFailedErrorSchema } from '../../../../../sdk/validation/errors';
5
+ export const authorize = createEndpoint({
6
+ method: 'GET',
7
+ path: '/v1/pv/oauth/google/authorize',
8
+ query: v.object({
9
+ accountId: marcoSchemas.string.required(),
10
+ redirectTo: v.pipe(v.string(), v.url()),
11
+ }),
12
+ response: v.union([
13
+ authFailedErrorSchema,
14
+ v.object({
15
+ status: v.literal(307),
16
+ }),
17
+ ]),
18
+ });
@@ -0,0 +1,14 @@
1
+ export declare const google: {
2
+ authorize: import("../../../../..").EndpointConfig<"/v1/pv/oauth/google/authorize", import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").ObjectSchema<{
3
+ readonly accountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
4
+ readonly redirectTo: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").UrlAction<string, undefined>]>;
5
+ }, undefined>, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
6
+ readonly data: import("valibot").ObjectSchema<{
7
+ readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
8
+ }, undefined>;
9
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
10
+ }, undefined>, import("valibot").ObjectSchema<{
11
+ readonly status: import("valibot").LiteralSchema<307, undefined>;
12
+ }, undefined>], undefined>>;
13
+ };
14
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/oauth/google/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM;;;;;;;;;;;;CAElB,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { authorize } from './authorize';
2
+ export const google = {
3
+ authorize,
4
+ };
@@ -0,0 +1,16 @@
1
+ export declare const oauth: {
2
+ google: {
3
+ authorize: import("../../../..").EndpointConfig<"/v1/pv/oauth/google/authorize", import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").ObjectSchema<{
4
+ readonly accountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
5
+ readonly redirectTo: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").UrlAction<string, undefined>]>;
6
+ }, undefined>, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
7
+ readonly data: import("valibot").ObjectSchema<{
8
+ readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
9
+ }, undefined>;
10
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
11
+ }, undefined>, import("valibot").ObjectSchema<{
12
+ readonly status: import("valibot").LiteralSchema<307, undefined>;
13
+ }, undefined>], undefined>>;
14
+ };
15
+ };
16
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/oauth/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;CAEjB,CAAA"}
@@ -33,6 +33,21 @@ export declare const marcoSDK: {
33
33
  readonly status: import("valibot").LiteralSchema<200, undefined>;
34
34
  }, undefined>], undefined>>;
35
35
  };
36
+ oauth: {
37
+ google: {
38
+ authorize: import("..").EndpointConfig<"/v1/pv/oauth/google/authorize", import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").ObjectSchema<{
39
+ readonly accountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
40
+ readonly redirectTo: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").UrlAction<string, undefined>]>;
41
+ }, undefined>, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
42
+ readonly data: import("valibot").ObjectSchema<{
43
+ readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
44
+ }, undefined>;
45
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
46
+ }, undefined>, import("valibot").ObjectSchema<{
47
+ readonly status: import("valibot").LiteralSchema<307, undefined>;
48
+ }, undefined>], undefined>>;
49
+ };
50
+ };
36
51
  sync: {
37
52
  pull: {
38
53
  account: import("..").EndpointConfig<"/v1/pv/sync/pull/account", import("valibot").ObjectSchema<{
@@ -873,28 +888,6 @@ export declare const marcoSDK: {
873
888
  readonly status: import("valibot").LiteralSchema<200, undefined>;
874
889
  }, undefined>>;
875
890
  };
876
- webhook: {
877
- oauth: {
878
- google: {
879
- accessToken: import("..").EndpointConfig<"/v1/wh/oauth/google/access-token", import("valibot").ObjectSchema<{
880
- readonly code: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
881
- readonly state: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
882
- }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
883
- readonly status: import("valibot").LiteralSchema<307, undefined>;
884
- }, undefined>, import("valibot").ObjectSchema<{
885
- readonly data: import("valibot").ObjectSchema<{
886
- readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
887
- readonly issues: import("valibot").ObjectSchema<{
888
- 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>;
889
- readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
890
- readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
891
- }, undefined>;
892
- }, undefined>;
893
- readonly status: import("valibot").LiteralSchema<400, undefined>;
894
- }, undefined>], undefined>>;
895
- };
896
- };
897
- };
898
891
  };
899
892
  validation: {
900
893
  errors: {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sdk/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGpB,CAAA"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@marcoappio/marco-config",
3
3
  "packageManager": "bun@1.2.0",
4
- "version": "2.0.264",
4
+ "version": "2.0.265",
5
5
  "author": "team@marcoapp.io",
6
6
  "main": "dist/index.js",
7
7
  "repository": "git@github.com:marcoappio/marco-config.git",
@@ -1,23 +0,0 @@
1
- export declare const webhookGroup: {
2
- oauth: {
3
- google: {
4
- accessToken: import("../../..").EndpointConfig<"/v1/wh/oauth/google/access-token", import("valibot").ObjectSchema<{
5
- readonly code: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
6
- readonly state: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
7
- }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
8
- readonly status: import("valibot").LiteralSchema<307, undefined>;
9
- }, undefined>, import("valibot").ObjectSchema<{
10
- readonly data: import("valibot").ObjectSchema<{
11
- readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
12
- readonly issues: import("valibot").ObjectSchema<{
13
- 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>;
14
- readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
15
- readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
16
- }, undefined>;
17
- }, undefined>;
18
- readonly status: import("valibot").LiteralSchema<400, undefined>;
19
- }, undefined>], undefined>>;
20
- };
21
- };
22
- };
23
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/endpoints/webhook/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;CAExB,CAAA"}
@@ -1,4 +0,0 @@
1
- import { oauth } from './oauth';
2
- export const webhookGroup = {
3
- oauth,
4
- };
@@ -1,18 +0,0 @@
1
- import * as v from 'valibot';
2
- export declare const accessToken: import("../../../../..").EndpointConfig<"/v1/wh/oauth/google/access-token", v.ObjectSchema<{
3
- readonly code: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
4
- readonly state: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
5
- }, undefined>, v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.UnionSchema<[v.ObjectSchema<{
6
- readonly status: v.LiteralSchema<307, undefined>;
7
- }, undefined>, v.ObjectSchema<{
8
- readonly data: v.ObjectSchema<{
9
- readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
10
- readonly issues: v.ObjectSchema<{
11
- readonly nested: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
12
- readonly other: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
13
- readonly root: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
14
- }, undefined>;
15
- }, undefined>;
16
- readonly status: v.LiteralSchema<400, undefined>;
17
- }, undefined>], undefined>>;
18
- //# sourceMappingURL=accessToken.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"accessToken.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/webhook/oauth/google/accessToken.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;2BAatB,CAAA"}
@@ -1,18 +0,0 @@
1
- import * as v from 'valibot';
2
- import { marcoSchemas } from '../../../../../schemas';
3
- import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
4
- import { validationFailedErrorSchema } from '../../../../../sdk/validation/errors';
5
- export const accessToken = createEndpoint({
6
- body: v.object({
7
- code: marcoSchemas.string.required(),
8
- state: marcoSchemas.string.required(),
9
- }),
10
- method: 'GET',
11
- path: '/v1/wh/oauth/google/access-token',
12
- response: v.union([
13
- v.object({
14
- status: v.literal(307),
15
- }),
16
- validationFailedErrorSchema,
17
- ]),
18
- });
@@ -1,19 +0,0 @@
1
- export declare const google: {
2
- accessToken: import("../../../../..").EndpointConfig<"/v1/wh/oauth/google/access-token", import("valibot").ObjectSchema<{
3
- readonly code: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
4
- readonly state: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
5
- }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
6
- readonly status: import("valibot").LiteralSchema<307, undefined>;
7
- }, undefined>, import("valibot").ObjectSchema<{
8
- readonly data: import("valibot").ObjectSchema<{
9
- readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
10
- readonly issues: import("valibot").ObjectSchema<{
11
- 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>;
12
- readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
13
- readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
14
- }, undefined>;
15
- }, undefined>;
16
- readonly status: import("valibot").LiteralSchema<400, undefined>;
17
- }, undefined>], undefined>>;
18
- };
19
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/webhook/oauth/google/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;CAElB,CAAA"}
@@ -1,4 +0,0 @@
1
- import { accessToken } from './accessToken';
2
- export const google = {
3
- accessToken,
4
- };
@@ -1,21 +0,0 @@
1
- export declare const oauth: {
2
- google: {
3
- accessToken: import("../../../..").EndpointConfig<"/v1/wh/oauth/google/access-token", import("valibot").ObjectSchema<{
4
- readonly code: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
5
- readonly state: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
6
- }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
7
- readonly status: import("valibot").LiteralSchema<307, undefined>;
8
- }, undefined>, import("valibot").ObjectSchema<{
9
- readonly data: import("valibot").ObjectSchema<{
10
- readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
11
- readonly issues: import("valibot").ObjectSchema<{
12
- 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>;
13
- readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
14
- readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
15
- }, undefined>;
16
- }, undefined>;
17
- readonly status: import("valibot").LiteralSchema<400, undefined>;
18
- }, undefined>], undefined>>;
19
- };
20
- };
21
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/webhook/oauth/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;CAEjB,CAAA"}