@marcoappio/marco-config 2.0.548 → 2.0.550

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.
@@ -275,6 +275,8 @@ export declare const marcoSchemas: {
275
275
  userSchema: import("valibot").ObjectSchema<{
276
276
  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>;
277
277
  readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
278
+ readonly polarCustomerId: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
279
+ readonly polarSubscriptionStatus: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").PicklistSchema<[import("@polar-sh/sdk/models/components/subscriptionstatus.js").SubscriptionStatus, ...import("@polar-sh/sdk/models/components/subscriptionstatus.js").SubscriptionStatus[]], undefined>, undefined>, undefined>;
278
280
  readonly profilePicture: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
279
281
  readonly pushNotificationTokens: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
280
282
  readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
@@ -608,7 +610,7 @@ export declare const marcoSchemas: {
608
610
  required: (maxLength?: number) => import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
609
611
  };
610
612
  websocket: {
611
- pokeEvent: import("valibot").ObjectSchema<{
613
+ pokeEvent: import("valibot").LooseObjectSchema<{
612
614
  readonly event: import("valibot").LiteralSchema<"poke", undefined>;
613
615
  readonly ids: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
614
616
  readonly model: import("valibot").PicklistSchema<readonly ["user", "account", "contact", "draft", "thread"], undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AA+BA,YAAY,EACV,OAAO,EACP,YAAY,EACZ,YAAY,EACZ,OAAO,EACP,KAAK,EACL,eAAe,EACf,SAAS,EACT,MAAM,EACN,aAAa,EACb,uBAAuB,EACvB,sBAAsB,EACtB,IAAI,EACJ,yBAAyB,EACzB,QAAQ,GACT,MAAM,UAAU,CAAA;AACjB,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAE3C,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+BxB,CAAA"}
@@ -14,6 +14,8 @@ export declare const userPushNotificationTokenSchema: v.ObjectSchema<{
14
14
  export declare const userSchema: v.ObjectSchema<{
15
15
  readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
16
16
  readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
17
+ readonly polarCustomerId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
18
+ readonly polarSubscriptionStatus: v.OptionalSchema<v.NullableSchema<v.PicklistSchema<[import("@polar-sh/sdk/models/components/subscriptionstatus.js").SubscriptionStatus, ...import("@polar-sh/sdk/models/components/subscriptionstatus.js").SubscriptionStatus[]], undefined>, undefined>, undefined>;
17
19
  readonly profilePicture: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
18
20
  readonly pushNotificationTokens: v.ArraySchema<v.ObjectSchema<{
19
21
  readonly createdAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../src/schemas/models/user.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,cAAc;;;;;aAKzB,CAAA;AAEF,eAAO,MAAM,+BAA+B;;;;;aAK1C,CAAA;AAEF,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;aAOrB,CAAA;AAEF,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,UAAU,CAAC,CAAA;AACnD,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,cAAc,CAAC,CAAA;AAC3D,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,+BAA+B,CAAC,CAAA"}
1
+ {"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../src/schemas/models/user.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,cAAc;;;;;aAKzB,CAAA;AAEF,eAAO,MAAM,+BAA+B;;;;;aAK1C,CAAA;AAEF,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;aASrB,CAAA;AAEF,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,UAAU,CAAC,CAAA;AACnD,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,cAAc,CAAC,CAAA;AAC3D,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,+BAA+B,CAAC,CAAA"}
@@ -1,7 +1,7 @@
1
1
  import * as v from 'valibot';
2
2
  import { number } from '../../schemas/number';
3
3
  import { string } from '../../schemas/string';
4
- import { USER_SETTINGS_CUSTOM_VIEW_ICONS } from '../../types';
4
+ import { POLAR_SUBSCRIPTION_STATUSES, USER_SETTINGS_CUSTOM_VIEW_ICONS } from '../../types';
5
5
  export const userViewSchema = v.object({
6
6
  aliasEmails: v.array(string.required()),
7
7
  icon: v.picklist(USER_SETTINGS_CUSTOM_VIEW_ICONS),
@@ -17,6 +17,8 @@ export const userPushNotificationTokenSchema = v.object({
17
17
  export const userSchema = v.object({
18
18
  id: string.required(),
19
19
  name: string.nullable(),
20
+ polarCustomerId: v.optional(v.nullable(v.string())),
21
+ polarSubscriptionStatus: v.optional(v.nullable(v.picklist(POLAR_SUBSCRIPTION_STATUSES))),
20
22
  profilePicture: string.nullable(),
21
23
  pushNotificationTokens: v.array(userPushNotificationTokenSchema),
22
24
  undoSendEnabled: v.boolean(),
@@ -1,11 +1,11 @@
1
1
  import * as v from 'valibot';
2
- export declare const pokeEventSchema: v.ObjectSchema<{
2
+ export declare const pokeEventSchema: v.LooseObjectSchema<{
3
3
  readonly event: v.LiteralSchema<"poke", undefined>;
4
4
  readonly ids: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
5
5
  readonly model: v.PicklistSchema<readonly ["user", "account", "contact", "draft", "thread"], undefined>;
6
6
  }, undefined>;
7
7
  export declare const websocket: {
8
- pokeEvent: v.ObjectSchema<{
8
+ pokeEvent: v.LooseObjectSchema<{
9
9
  readonly event: v.LiteralSchema<"poke", undefined>;
10
10
  readonly ids: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
11
11
  readonly model: v.PicklistSchema<readonly ["user", "account", "contact", "draft", "thread"], undefined>;
@@ -1,6 +1,6 @@
1
1
  import * as v from 'valibot';
2
2
  import { POKE_MODELS } from '../types';
3
- export const pokeEventSchema = v.object({
3
+ export const pokeEventSchema = v.looseObject({
4
4
  event: v.literal('poke'),
5
5
  ids: v.optional(v.array(v.string())),
6
6
  model: v.picklist(POKE_MODELS),
@@ -75,6 +75,17 @@ export declare const endpoints: {
75
75
  }, undefined>, import("valibot").ObjectSchema<{
76
76
  readonly status: import("valibot").LiteralSchema<204, undefined>;
77
77
  }, undefined>], undefined>>;
78
+ getBillingPortalUrl: EndpointConfig<"/v1/pv/user/billing-portal-url", GenericSchema | undefined, GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
79
+ readonly data: import("valibot").ObjectSchema<{
80
+ readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
81
+ }, undefined>;
82
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
83
+ }, undefined>, import("valibot").ObjectSchema<{
84
+ readonly data: import("valibot").ObjectSchema<{
85
+ readonly url: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").UrlAction<string, undefined>]>;
86
+ }, undefined>;
87
+ readonly status: import("valibot").LiteralSchema<200, undefined>;
88
+ }, undefined>], undefined>>;
78
89
  uploadProfilePicture: EndpointConfig<"/v1/pv/user/profile-picture", import("valibot").BlobSchema<undefined>, GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
79
90
  readonly data: import("valibot").ObjectSchema<{
80
91
  readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/endpoints/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAE5C,OAAO,KAAK,EAAE,cAAc,EAAe,MAAM,qBAAqB,CAAA;AAWtE,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGM,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/endpoints/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAE5C,OAAO,KAAK,EAAE,cAAc,EAAe,MAAM,qBAAqB,CAAA;AAWtE,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGM,CAAA"}
@@ -72,6 +72,17 @@ export declare const privateGroup: {
72
72
  }, undefined>, import("valibot").ObjectSchema<{
73
73
  readonly status: import("valibot").LiteralSchema<204, undefined>;
74
74
  }, undefined>], undefined>>;
75
+ getBillingPortalUrl: import("../../..").EndpointConfig<"/v1/pv/user/billing-portal-url", import("valibot").GenericSchema | undefined, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
76
+ readonly data: import("valibot").ObjectSchema<{
77
+ readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
78
+ }, undefined>;
79
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
80
+ }, undefined>, import("valibot").ObjectSchema<{
81
+ readonly data: import("valibot").ObjectSchema<{
82
+ readonly url: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").UrlAction<string, undefined>]>;
83
+ }, undefined>;
84
+ readonly status: import("valibot").LiteralSchema<200, undefined>;
85
+ }, undefined>], undefined>>;
75
86
  uploadProfilePicture: import("../../..").EndpointConfig<"/v1/pv/user/profile-picture", import("valibot").BlobSchema<undefined>, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
76
87
  readonly data: import("valibot").ObjectSchema<{
77
88
  readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/endpoints/private/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMxB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/endpoints/private/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMxB,CAAA"}
@@ -13,6 +13,8 @@ export declare const getUser: import("../../../../..").EndpointConfig<"/v1/pv/mo
13
13
  readonly data: v.ObjectSchema<{
14
14
  readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
15
15
  readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
16
+ readonly polarCustomerId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
17
+ readonly polarSubscriptionStatus: v.OptionalSchema<v.NullableSchema<v.PicklistSchema<[import("@polar-sh/sdk/models/components/subscriptionstatus.js").SubscriptionStatus, ...import("@polar-sh/sdk/models/components/subscriptionstatus.js").SubscriptionStatus[]], undefined>, undefined>, undefined>;
16
18
  readonly profilePicture: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
17
19
  readonly pushNotificationTokens: v.ArraySchema<v.ObjectSchema<{
18
20
  readonly createdAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"getUser.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/models/user/getUser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAWlB,CAAA"}
1
+ {"version":3,"file":"getUser.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/models/user/getUser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAWlB,CAAA"}
@@ -0,0 +1,13 @@
1
+ import * as v from 'valibot';
2
+ export declare const getBillingPortalUrl: import("../../../..").EndpointConfig<"/v1/pv/user/billing-portal-url", v.GenericSchema | undefined, v.GenericSchema | undefined, v.UnionSchema<[v.ObjectSchema<{
3
+ readonly data: v.ObjectSchema<{
4
+ readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
5
+ }, undefined>;
6
+ readonly status: v.LiteralSchema<401, undefined>;
7
+ }, undefined>, v.ObjectSchema<{
8
+ readonly data: v.ObjectSchema<{
9
+ readonly url: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>;
10
+ }, undefined>;
11
+ readonly status: v.LiteralSchema<200, undefined>;
12
+ }, undefined>], undefined>>;
13
+ //# sourceMappingURL=getBillingPortalUrl.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getBillingPortalUrl.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/user/getBillingPortalUrl.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAK5B,eAAO,MAAM,mBAAmB;;;;;;;;;;2BAU9B,CAAA"}
@@ -0,0 +1,14 @@
1
+ import * as v from 'valibot';
2
+ import { createEndpoint } from '../../../../sdk/endpoints/createEndpointConfig';
3
+ import { authFailedErrorSchema } from '../../../../sdk/validation/errors';
4
+ export const getBillingPortalUrl = createEndpoint({
5
+ method: 'GET',
6
+ path: '/v1/pv/user/billing-portal-url',
7
+ response: v.union([
8
+ authFailedErrorSchema,
9
+ v.object({
10
+ data: v.object({ url: v.pipe(v.string(), v.url()) }),
11
+ status: v.literal(200),
12
+ }),
13
+ ]),
14
+ });
@@ -7,6 +7,17 @@ export declare const user: {
7
7
  }, undefined>, import("valibot").ObjectSchema<{
8
8
  readonly status: import("valibot").LiteralSchema<204, undefined>;
9
9
  }, undefined>], undefined>>;
10
+ getBillingPortalUrl: import("../../../..").EndpointConfig<"/v1/pv/user/billing-portal-url", import("valibot").GenericSchema | undefined, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
11
+ readonly data: import("valibot").ObjectSchema<{
12
+ readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
13
+ }, undefined>;
14
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
15
+ }, undefined>, import("valibot").ObjectSchema<{
16
+ readonly data: import("valibot").ObjectSchema<{
17
+ readonly url: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").UrlAction<string, undefined>]>;
18
+ }, undefined>;
19
+ readonly status: import("valibot").LiteralSchema<200, undefined>;
20
+ }, undefined>], undefined>>;
10
21
  uploadProfilePicture: import("../../../..").EndpointConfig<"/v1/pv/user/profile-picture", import("valibot").BlobSchema<undefined>, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
11
22
  readonly data: import("valibot").ObjectSchema<{
12
23
  readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/user/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGhB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/user/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIhB,CAAA"}
@@ -1,6 +1,8 @@
1
1
  import { deleteUser } from './deleteUser';
2
+ import { getBillingPortalUrl } from './getBillingPortalUrl';
2
3
  import { uploadProfilePicture } from './uploadProfilePicture';
3
4
  export const user = {
4
5
  deleteUser,
6
+ getBillingPortalUrl,
5
7
  uploadProfilePicture,
6
8
  };
@@ -74,6 +74,17 @@ export declare const marcoSDK: {
74
74
  }, undefined>, import("valibot").ObjectSchema<{
75
75
  readonly status: import("valibot").LiteralSchema<204, undefined>;
76
76
  }, undefined>], undefined>>;
77
+ getBillingPortalUrl: import("..").EndpointConfig<"/v1/pv/user/billing-portal-url", import("valibot").GenericSchema | undefined, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
78
+ readonly data: import("valibot").ObjectSchema<{
79
+ readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
80
+ }, undefined>;
81
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
82
+ }, undefined>, import("valibot").ObjectSchema<{
83
+ readonly data: import("valibot").ObjectSchema<{
84
+ readonly url: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").UrlAction<string, undefined>]>;
85
+ }, undefined>;
86
+ readonly status: import("valibot").LiteralSchema<200, undefined>;
87
+ }, undefined>], undefined>>;
77
88
  uploadProfilePicture: import("..").EndpointConfig<"/v1/pv/user/profile-picture", import("valibot").BlobSchema<undefined>, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
78
89
  readonly data: import("valibot").ObjectSchema<{
79
90
  readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sdk/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arSubscriptionStatusType } from '@polar-sh/sdk/models/components/subscriptionstatus.js';
2
+ export declare const POLAR_SUBSCRIPTION_STATUSES: [PolarSubscriptionStatusType, ...PolarSubscriptionStatusType[]];
3
+ export type PolarSubscriptionStatus = PolarSubscriptionStatusType;
4
+ //# sourceMappingURL=PolarSubscriptionStatus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PolarSubscriptionStatus.d.ts","sourceRoot":"","sources":["../../src/types/PolarSubscriptionStatus.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,kBAAkB,IAAI,2BAA2B,EAEvD,MAAM,uDAAuD,CAAA;AAI9D,eAAO,MAAM,2BAA2B,EAAe,CAAC,2BAA2B,EAAE,GAAG,2BAA2B,EAAE,CAAC,CAAA;AAEtH,MAAM,MAAM,uBAAuB,GAAG,2BAA2B,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { SubscriptionStatus, } from '@polar-sh/sdk/models/components/subscriptionstatus.js';
2
+ const statuses = Object.values(SubscriptionStatus);
3
+ export const POLAR_SUBSCRIPTION_STATUSES = statuses;
@@ -11,6 +11,7 @@ export * from './MarcoPlatform';
11
11
  export * from './MessageRecipientType';
12
12
  export * from './OAuthProvider';
13
13
  export * from './PokeEvent';
14
+ export * from './PolarSubscriptionStatus';
14
15
  export * from './SDKError';
15
16
  export * from './UserSettings';
16
17
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,+BAA+B,CAAA;AAC7C,cAAc,eAAe,CAAA;AAC7B,cAAc,aAAa,CAAA;AAC3B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,YAAY,CAAA;AAC1B,cAAc,wBAAwB,CAAA;AACtC,cAAc,sBAAsB,CAAA;AACpC,cAAc,mBAAmB,CAAA;AACjC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,wBAAwB,CAAA;AACtC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,aAAa,CAAA;AAC3B,cAAc,YAAY,CAAA;AAC1B,cAAc,gBAAgB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,+BAA+B,CAAA;AAC7C,cAAc,eAAe,CAAA;AAC7B,cAAc,aAAa,CAAA;AAC3B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,YAAY,CAAA;AAC1B,cAAc,wBAAwB,CAAA;AACtC,cAAc,sBAAsB,CAAA;AACpC,cAAc,mBAAmB,CAAA;AACjC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,wBAAwB,CAAA;AACtC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,aAAa,CAAA;AAC3B,cAAc,2BAA2B,CAAA;AACzC,cAAc,YAAY,CAAA;AAC1B,cAAc,gBAAgB,CAAA"}
@@ -11,5 +11,6 @@ export * from './MarcoPlatform';
11
11
  export * from './MessageRecipientType';
12
12
  export * from './OAuthProvider';
13
13
  export * from './PokeEvent';
14
+ export * from './PolarSubscriptionStatus';
14
15
  export * from './SDKError';
15
16
  export * from './UserSettings';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marcoappio/marco-config",
3
- "version": "2.0.548",
3
+ "version": "2.0.550",
4
4
  "author": "team@marcoapp.io",
5
5
  "main": "dist/index.js",
6
6
  "repository": "git@github.com:marcoappio/marco-config.git",
@@ -27,6 +27,7 @@
27
27
  "dependencies": {
28
28
  "@orama/stemmers": "3.1.16",
29
29
  "@orama/stopwords": "3.1.16",
30
+ "@polar-sh/sdk": "0.42.2",
30
31
  "diff": "8.0.2",
31
32
  "valibot": "1.1.0"
32
33
  },