@marcoappio/marco-config 2.0.264 → 2.0.266

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 (36) hide show
  1. package/dist/sdk/endpoints/index.d.ts +33 -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 +33 -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 +31 -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 +23 -0
  10. package/dist/sdk/endpoints/private/oauth/google/index.d.ts +32 -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 +34 -0
  14. package/dist/sdk/endpoints/private/oauth/index.d.ts.map +1 -0
  15. package/dist/sdk/index.d.ts +39 -22
  16. package/dist/sdk/index.d.ts.map +1 -1
  17. package/dist/sdk/validation/errors.d.ts +12 -0
  18. package/dist/sdk/validation/errors.d.ts.map +1 -1
  19. package/dist/sdk/validation/errors.js +5 -0
  20. package/dist/sdk/validation/index.d.ts +6 -0
  21. package/dist/sdk/validation/index.d.ts.map +1 -1
  22. package/dist/types/SDKError.d.ts +1 -1
  23. package/dist/types/SDKError.d.ts.map +1 -1
  24. package/package.json +1 -1
  25. package/dist/sdk/endpoints/webhook/index.d.ts +0 -23
  26. package/dist/sdk/endpoints/webhook/index.d.ts.map +0 -1
  27. package/dist/sdk/endpoints/webhook/index.js +0 -4
  28. package/dist/sdk/endpoints/webhook/oauth/google/accessToken.d.ts +0 -18
  29. package/dist/sdk/endpoints/webhook/oauth/google/accessToken.d.ts.map +0 -1
  30. package/dist/sdk/endpoints/webhook/oauth/google/accessToken.js +0 -18
  31. package/dist/sdk/endpoints/webhook/oauth/google/index.d.ts +0 -19
  32. package/dist/sdk/endpoints/webhook/oauth/google/index.d.ts.map +0 -1
  33. package/dist/sdk/endpoints/webhook/oauth/google/index.js +0 -4
  34. package/dist/sdk/endpoints/webhook/oauth/index.d.ts +0 -21
  35. package/dist/sdk/endpoints/webhook/oauth/index.d.ts.map +0 -1
  36. /package/dist/sdk/endpoints/{webhook → private}/oauth/index.js +0 -0
@@ -34,6 +34,39 @@ 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", 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>, GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | 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 data: import("valibot").ObjectSchema<{
49
+ readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
50
+ readonly issues: import("valibot").ObjectSchema<{
51
+ 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>;
52
+ readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
53
+ readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
54
+ }, undefined>;
55
+ }, undefined>;
56
+ readonly status: import("valibot").LiteralSchema<400, undefined>;
57
+ }, undefined>, import("valibot").ObjectSchema<{
58
+ readonly data: import("valibot").ObjectSchema<{
59
+ readonly code: import("valibot").LiteralSchema<"ACCOUNT_NOT_FOUND", undefined>;
60
+ }, undefined>;
61
+ readonly status: import("valibot").LiteralSchema<404, undefined>;
62
+ }, undefined>, import("valibot").ObjectSchema<{
63
+ readonly data: import("valibot").ObjectSchema<{
64
+ readonly url: import("valibot").StringSchema<undefined>;
65
+ }, undefined>;
66
+ readonly status: import("valibot").LiteralSchema<200, undefined>;
67
+ }, undefined>], undefined>>;
68
+ };
69
+ };
37
70
  sync: {
38
71
  pull: {
39
72
  account: EndpointConfig<"/v1/pv/sync/pull/account", import("valibot").ObjectSchema<{
@@ -874,27 +907,5 @@ export declare const endpoints: {
874
907
  readonly status: import("valibot").LiteralSchema<200, undefined>;
875
908
  }, undefined>>;
876
909
  };
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
910
  };
900
911
  //# 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,39 @@ 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").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").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | 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 data: import("valibot").ObjectSchema<{
46
+ readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
47
+ readonly issues: import("valibot").ObjectSchema<{
48
+ 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>;
49
+ readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
50
+ readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
51
+ }, undefined>;
52
+ }, undefined>;
53
+ readonly status: import("valibot").LiteralSchema<400, undefined>;
54
+ }, undefined>, import("valibot").ObjectSchema<{
55
+ readonly data: import("valibot").ObjectSchema<{
56
+ readonly code: import("valibot").LiteralSchema<"ACCOUNT_NOT_FOUND", undefined>;
57
+ }, undefined>;
58
+ readonly status: import("valibot").LiteralSchema<404, undefined>;
59
+ }, undefined>, import("valibot").ObjectSchema<{
60
+ readonly data: import("valibot").ObjectSchema<{
61
+ readonly url: import("valibot").StringSchema<undefined>;
62
+ }, undefined>;
63
+ readonly status: import("valibot").LiteralSchema<200, undefined>;
64
+ }, undefined>], undefined>>;
65
+ };
66
+ };
34
67
  sync: {
35
68
  pull: {
36
69
  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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIxB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/endpoints/private/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,31 @@
1
+ import * as v from 'valibot';
2
+ export declare const authorize: import("../../../../..").EndpointConfig<"/v1/pv/oauth/google/authorize", 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.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | 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 data: v.ObjectSchema<{
12
+ readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
13
+ readonly issues: v.ObjectSchema<{
14
+ readonly nested: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
15
+ readonly other: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
16
+ readonly root: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
17
+ }, undefined>;
18
+ }, undefined>;
19
+ readonly status: v.LiteralSchema<400, undefined>;
20
+ }, undefined>, v.ObjectSchema<{
21
+ readonly data: v.ObjectSchema<{
22
+ readonly code: v.LiteralSchema<"ACCOUNT_NOT_FOUND", undefined>;
23
+ }, undefined>;
24
+ readonly status: v.LiteralSchema<404, undefined>;
25
+ }, undefined>, v.ObjectSchema<{
26
+ readonly data: v.ObjectSchema<{
27
+ readonly url: v.StringSchema<undefined>;
28
+ }, undefined>;
29
+ readonly status: v.LiteralSchema<200, undefined>;
30
+ }, undefined>], undefined>>;
31
+ //# 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAkBpB,CAAA"}
@@ -0,0 +1,23 @@
1
+ import * as v from 'valibot';
2
+ import { marcoSchemas } from '../../../../../schemas';
3
+ import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
4
+ import { accountNotFoundErrorSchema, authFailedErrorSchema, validationFailedErrorSchema } from '../../../../../sdk/validation/errors';
5
+ export const authorize = createEndpoint({
6
+ body: v.object({
7
+ accountId: marcoSchemas.string.required(),
8
+ redirectTo: v.pipe(v.string(), v.url()),
9
+ }),
10
+ method: 'POST',
11
+ path: '/v1/pv/oauth/google/authorize',
12
+ response: v.union([
13
+ authFailedErrorSchema,
14
+ validationFailedErrorSchema,
15
+ accountNotFoundErrorSchema,
16
+ v.object({
17
+ data: v.object({
18
+ url: v.string(),
19
+ }),
20
+ status: v.literal(200),
21
+ }),
22
+ ]),
23
+ });
@@ -0,0 +1,32 @@
1
+ export declare const google: {
2
+ authorize: import("../../../../..").EndpointConfig<"/v1/pv/oauth/google/authorize", 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").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | 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 data: import("valibot").ObjectSchema<{
12
+ readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
13
+ readonly issues: import("valibot").ObjectSchema<{
14
+ 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>;
15
+ readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
16
+ readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
17
+ }, undefined>;
18
+ }, undefined>;
19
+ readonly status: import("valibot").LiteralSchema<400, undefined>;
20
+ }, undefined>, import("valibot").ObjectSchema<{
21
+ readonly data: import("valibot").ObjectSchema<{
22
+ readonly code: import("valibot").LiteralSchema<"ACCOUNT_NOT_FOUND", undefined>;
23
+ }, undefined>;
24
+ readonly status: import("valibot").LiteralSchema<404, undefined>;
25
+ }, undefined>, import("valibot").ObjectSchema<{
26
+ readonly data: import("valibot").ObjectSchema<{
27
+ readonly url: import("valibot").StringSchema<undefined>;
28
+ }, undefined>;
29
+ readonly status: import("valibot").LiteralSchema<200, undefined>;
30
+ }, undefined>], undefined>>;
31
+ };
32
+ //# 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,34 @@
1
+ export declare const oauth: {
2
+ google: {
3
+ authorize: import("../../../..").EndpointConfig<"/v1/pv/oauth/google/authorize", 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").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | 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 data: import("valibot").ObjectSchema<{
13
+ readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
14
+ readonly issues: import("valibot").ObjectSchema<{
15
+ 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>;
16
+ readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
17
+ readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
18
+ }, undefined>;
19
+ }, undefined>;
20
+ readonly status: import("valibot").LiteralSchema<400, undefined>;
21
+ }, undefined>, import("valibot").ObjectSchema<{
22
+ readonly data: import("valibot").ObjectSchema<{
23
+ readonly code: import("valibot").LiteralSchema<"ACCOUNT_NOT_FOUND", undefined>;
24
+ }, undefined>;
25
+ readonly status: import("valibot").LiteralSchema<404, undefined>;
26
+ }, undefined>, import("valibot").ObjectSchema<{
27
+ readonly data: import("valibot").ObjectSchema<{
28
+ readonly url: import("valibot").StringSchema<undefined>;
29
+ }, undefined>;
30
+ readonly status: import("valibot").LiteralSchema<200, undefined>;
31
+ }, undefined>], undefined>>;
32
+ };
33
+ };
34
+ //# 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,39 @@ 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").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").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | 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 data: import("valibot").ObjectSchema<{
48
+ readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
49
+ readonly issues: import("valibot").ObjectSchema<{
50
+ 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>;
51
+ readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
52
+ readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
53
+ }, undefined>;
54
+ }, undefined>;
55
+ readonly status: import("valibot").LiteralSchema<400, undefined>;
56
+ }, undefined>, import("valibot").ObjectSchema<{
57
+ readonly data: import("valibot").ObjectSchema<{
58
+ readonly code: import("valibot").LiteralSchema<"ACCOUNT_NOT_FOUND", undefined>;
59
+ }, undefined>;
60
+ readonly status: import("valibot").LiteralSchema<404, undefined>;
61
+ }, undefined>, import("valibot").ObjectSchema<{
62
+ readonly data: import("valibot").ObjectSchema<{
63
+ readonly url: import("valibot").StringSchema<undefined>;
64
+ }, undefined>;
65
+ readonly status: import("valibot").LiteralSchema<200, undefined>;
66
+ }, undefined>], undefined>>;
67
+ };
68
+ };
36
69
  sync: {
37
70
  pull: {
38
71
  account: import("..").EndpointConfig<"/v1/pv/sync/pull/account", import("valibot").ObjectSchema<{
@@ -873,31 +906,15 @@ export declare const marcoSDK: {
873
906
  readonly status: import("valibot").LiteralSchema<200, undefined>;
874
907
  }, undefined>>;
875
908
  };
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
909
  };
899
910
  validation: {
900
911
  errors: {
912
+ readonly accountNotFoundErrorSchema: import("valibot").ObjectSchema<{
913
+ readonly data: import("valibot").ObjectSchema<{
914
+ readonly code: import("valibot").LiteralSchema<"ACCOUNT_NOT_FOUND", undefined>;
915
+ }, undefined>;
916
+ readonly status: import("valibot").LiteralSchema<404, undefined>;
917
+ }, undefined>;
901
918
  readonly authCodeExpiredErrorSchema: import("valibot").ObjectSchema<{
902
919
  readonly data: import("valibot").ObjectSchema<{
903
920
  readonly code: import("valibot").LiteralSchema<"AUTH_CODE_EXPIRED", undefined>;
@@ -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"}
@@ -65,6 +65,12 @@ export declare const messageNotFoundErrorSchema: v.ObjectSchema<{
65
65
  }, undefined>;
66
66
  readonly status: v.LiteralSchema<404, undefined>;
67
67
  }, undefined>;
68
+ export declare const accountNotFoundErrorSchema: v.ObjectSchema<{
69
+ readonly data: v.ObjectSchema<{
70
+ readonly code: v.LiteralSchema<"ACCOUNT_NOT_FOUND", undefined>;
71
+ }, undefined>;
72
+ readonly status: v.LiteralSchema<404, undefined>;
73
+ }, undefined>;
68
74
  export declare const validationFailedErrorSchema: v.ObjectSchema<{
69
75
  readonly data: v.ObjectSchema<{
70
76
  readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
@@ -77,6 +83,12 @@ export declare const validationFailedErrorSchema: v.ObjectSchema<{
77
83
  readonly status: v.LiteralSchema<400, undefined>;
78
84
  }, undefined>;
79
85
  export declare const errors: {
86
+ readonly accountNotFoundErrorSchema: v.ObjectSchema<{
87
+ readonly data: v.ObjectSchema<{
88
+ readonly code: v.LiteralSchema<"ACCOUNT_NOT_FOUND", undefined>;
89
+ }, undefined>;
90
+ readonly status: v.LiteralSchema<404, undefined>;
91
+ }, undefined>;
80
92
  readonly authCodeExpiredErrorSchema: v.ObjectSchema<{
81
93
  readonly data: v.ObjectSchema<{
82
94
  readonly code: v.LiteralSchema<"AUTH_CODE_EXPIRED", undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/sdk/validation/errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,eAAO,MAAM,yBAAyB;;;;;aAGpC,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;aAGrC,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;aAGrC,CAAA;AAEF,eAAO,MAAM,8BAA8B;;;;;aAGzC,CAAA;AAEF,eAAO,MAAM,iCAAiC;;;;;aAG5C,CAAA;AAEF,eAAO,MAAM,uCAAuC;;;;;aAGlD,CAAA;AAEF,eAAO,MAAM,qBAAqB;;;;;aAGhC,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;aAGlC,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;aAGlC,CAAA;AAEF,eAAO,MAAM,gCAAgC;;;;;aAG3C,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;aAGrC,CAAA;AAEF,eAAO,MAAM,2BAA2B;;;;;;;;;;aAUtC,CAAA;AAEF,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAaT,CAAA"}
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/sdk/validation/errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,eAAO,MAAM,yBAAyB;;;;;aAGpC,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;aAGrC,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;aAGrC,CAAA;AAEF,eAAO,MAAM,8BAA8B;;;;;aAGzC,CAAA;AAEF,eAAO,MAAM,iCAAiC;;;;;aAG5C,CAAA;AAEF,eAAO,MAAM,uCAAuC;;;;;aAGlD,CAAA;AAEF,eAAO,MAAM,qBAAqB;;;;;aAGhC,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;aAGlC,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;aAGlC,CAAA;AAEF,eAAO,MAAM,gCAAgC;;;;;aAG3C,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;aAGrC,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;aAGrC,CAAA;AAEF,eAAO,MAAM,2BAA2B;;;;;;;;;;aAUtC,CAAA;AAEF,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAcT,CAAA"}
@@ -43,6 +43,10 @@ export const messageNotFoundErrorSchema = v.object({
43
43
  data: v.object({ code: v.literal('MESSAGE_NOT_FOUND') }),
44
44
  status: v.literal(404),
45
45
  });
46
+ export const accountNotFoundErrorSchema = v.object({
47
+ data: v.object({ code: v.literal('ACCOUNT_NOT_FOUND') }),
48
+ status: v.literal(404),
49
+ });
46
50
  export const validationFailedErrorSchema = v.object({
47
51
  data: v.object({
48
52
  code: v.literal('VALIDATION_FAILED'),
@@ -55,6 +59,7 @@ export const validationFailedErrorSchema = v.object({
55
59
  status: v.literal(400),
56
60
  });
57
61
  export const errors = {
62
+ accountNotFoundErrorSchema,
58
63
  authCodeExpiredErrorSchema,
59
64
  authCodeInvalidErrorSchema,
60
65
  authCodePreviouslyUsedErrorSchema,
@@ -1,5 +1,11 @@
1
1
  export declare const validation: {
2
2
  errors: {
3
+ readonly accountNotFoundErrorSchema: import("valibot").ObjectSchema<{
4
+ readonly data: import("valibot").ObjectSchema<{
5
+ readonly code: import("valibot").LiteralSchema<"ACCOUNT_NOT_FOUND", undefined>;
6
+ }, undefined>;
7
+ readonly status: import("valibot").LiteralSchema<404, undefined>;
8
+ }, undefined>;
3
9
  readonly authCodeExpiredErrorSchema: import("valibot").ObjectSchema<{
4
10
  readonly data: import("valibot").ObjectSchema<{
5
11
  readonly code: import("valibot").LiteralSchema<"AUTH_CODE_EXPIRED", undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/validation/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAoB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/validation/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAoB,CAAA"}
@@ -1,4 +1,4 @@
1
1
  import * as v from 'valibot';
2
2
  import { errors } from '../sdk/validation/errors';
3
- export type SDKError = v.InferOutput<typeof errors.authCodeExpiredErrorSchema> | v.InferOutput<typeof errors.authCodePreviouslyUsedErrorSchema> | v.InferOutput<typeof errors.authRefreshTokenInvalid> | v.InferOutput<typeof errors.authServerResponseUnexpectedErrorSchema> | v.InferOutput<typeof errors.authTooManyAttemptsErrorSchema> | v.InferOutput<typeof errors.authCodeInvalidErrorSchema> | v.InferOutput<typeof errors.authFailedErrorSchema> | v.InferOutput<typeof errors.messageNotFoundErrorSchema> | v.InferOutput<typeof errors.userNotFoundErrorSchema> | v.InferOutput<typeof errors.validationFailedErrorSchema> | v.InferOutput<typeof errors.inviteNotFoundErrorSchema> | v.InferOutput<typeof errors.userMarkedForDeletionErrorSchema>;
3
+ export type SDKError = v.InferOutput<typeof errors.authCodeExpiredErrorSchema> | v.InferOutput<typeof errors.authCodePreviouslyUsedErrorSchema> | v.InferOutput<typeof errors.authRefreshTokenInvalid> | v.InferOutput<typeof errors.authServerResponseUnexpectedErrorSchema> | v.InferOutput<typeof errors.authTooManyAttemptsErrorSchema> | v.InferOutput<typeof errors.authCodeInvalidErrorSchema> | v.InferOutput<typeof errors.authFailedErrorSchema> | v.InferOutput<typeof errors.messageNotFoundErrorSchema> | v.InferOutput<typeof errors.accountNotFoundErrorSchema> | v.InferOutput<typeof errors.userNotFoundErrorSchema> | v.InferOutput<typeof errors.validationFailedErrorSchema> | v.InferOutput<typeof errors.inviteNotFoundErrorSchema> | v.InferOutput<typeof errors.userMarkedForDeletionErrorSchema>;
4
4
  //# sourceMappingURL=SDKError.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SDKError.d.ts","sourceRoot":"","sources":["../../src/types/SDKError.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,OAAO,EAAE,MAAM,EAAE,MAAM,qCAAqC,CAAA;AAE5D,MAAM,MAAM,QAAQ,GAChB,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,0BAA0B,CAAC,GACvD,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,iCAAi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AAC,WAAW,CAAC,OAAO,MAAM,CAAC,qBAAqB,CAAC,GAClD,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,0BAA0B,CAAC,GACvD,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,0BAA0B,CAAC,GACvD,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,uBAAuB,CAAC,GACpD,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,2BAA2B,CAAC,GACxD,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,yBAAyB,CAAC,GACtD,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,gCAAgC,CAAC,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.266",
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"}