@polar-sh/sdk 0.8.1 → 0.8.2
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.
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/components/organizationprofilesettings.d.ts +10 -0
- package/models/components/organizationprofilesettings.d.ts.map +1 -1
- package/models/components/organizationprofilesettings.js +6 -0
- package/models/components/organizationprofilesettings.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/models/components/organizationprofilesettings.ts +16 -0
package/lib/config.d.ts
CHANGED
|
@@ -27,8 +27,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
27
27
|
export declare const SDK_METADATA: {
|
|
28
28
|
readonly language: "typescript";
|
|
29
29
|
readonly openapiDocVersion: "0.1.0";
|
|
30
|
-
readonly sdkVersion: "0.8.
|
|
31
|
-
readonly genVersion: "2.415.
|
|
32
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.8.
|
|
30
|
+
readonly sdkVersion: "0.8.2";
|
|
31
|
+
readonly genVersion: "2.415.8";
|
|
32
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.8.2 2.415.8 0.1.0 @polar-sh/sdk";
|
|
33
33
|
};
|
|
34
34
|
//# sourceMappingURL=config.d.ts.map
|
package/lib/config.js
CHANGED
|
@@ -29,8 +29,8 @@ function serverURLFromOptions(options) {
|
|
|
29
29
|
exports.SDK_METADATA = {
|
|
30
30
|
language: "typescript",
|
|
31
31
|
openapiDocVersion: "0.1.0",
|
|
32
|
-
sdkVersion: "0.8.
|
|
33
|
-
genVersion: "2.415.
|
|
34
|
-
userAgent: "speakeasy-sdk/typescript 0.8.
|
|
32
|
+
sdkVersion: "0.8.2",
|
|
33
|
+
genVersion: "2.415.8",
|
|
34
|
+
userAgent: "speakeasy-sdk/typescript 0.8.2 2.415.8 0.1.0 @polar-sh/sdk",
|
|
35
35
|
};
|
|
36
36
|
//# sourceMappingURL=config.js.map
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
import { OrganizationSubscribePromoteSettings, OrganizationSubscribePromoteSettings$Outbound } from "./organizationsubscribepromotesettings.js";
|
|
3
3
|
export type OrganizationProfileSettings = {
|
|
4
|
+
/**
|
|
5
|
+
* If this organization has a profile enabled
|
|
6
|
+
*/
|
|
7
|
+
enabled?: boolean | null | undefined;
|
|
4
8
|
/**
|
|
5
9
|
* A description of the organization
|
|
6
10
|
*/
|
|
@@ -21,16 +25,22 @@ export type OrganizationProfileSettings = {
|
|
|
21
25
|
* Subscription promotion settings
|
|
22
26
|
*/
|
|
23
27
|
subscribe?: OrganizationSubscribePromoteSettings | null | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* Accent color for the organization
|
|
30
|
+
*/
|
|
31
|
+
accentColor?: string | null | undefined;
|
|
24
32
|
};
|
|
25
33
|
/** @internal */
|
|
26
34
|
export declare const OrganizationProfileSettings$inboundSchema: z.ZodType<OrganizationProfileSettings, z.ZodTypeDef, unknown>;
|
|
27
35
|
/** @internal */
|
|
28
36
|
export type OrganizationProfileSettings$Outbound = {
|
|
37
|
+
enabled?: boolean | null | undefined;
|
|
29
38
|
description?: string | null | undefined;
|
|
30
39
|
featured_projects?: Array<string> | null | undefined;
|
|
31
40
|
featured_organizations?: Array<string> | null | undefined;
|
|
32
41
|
links?: Array<string> | null | undefined;
|
|
33
42
|
subscribe?: OrganizationSubscribePromoteSettings$Outbound | null | undefined;
|
|
43
|
+
accent_color?: string | null | undefined;
|
|
34
44
|
};
|
|
35
45
|
/** @internal */
|
|
36
46
|
export declare const OrganizationProfileSettings$outboundSchema: z.ZodType<OrganizationProfileSettings$Outbound, z.ZodTypeDef, OrganizationProfileSettings>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organizationprofilesettings.d.ts","sourceRoot":"","sources":["../../src/models/components/organizationprofilesettings.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EACL,oCAAoC,EAEpC,6CAA6C,EAE9C,MAAM,2CAA2C,CAAC;AAEnD,MAAM,MAAM,2BAA2B,GAAG;IACxC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC;;OAEG;IACH,gBAAgB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;IACpD;;OAEG;IACH,qBAAqB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;IACzD;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;IACzC;;OAEG;IACH,SAAS,CAAC,EAAE,oCAAoC,GAAG,IAAI,GAAG,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"organizationprofilesettings.d.ts","sourceRoot":"","sources":["../../src/models/components/organizationprofilesettings.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EACL,oCAAoC,EAEpC,6CAA6C,EAE9C,MAAM,2CAA2C,CAAC;AAEnD,MAAM,MAAM,2BAA2B,GAAG;IACxC;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,IAAI,GAAG,SAAS,CAAC;IACrC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC;;OAEG;IACH,gBAAgB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;IACpD;;OAEG;IACH,qBAAqB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;IACzD;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;IACzC;;OAEG;IACH,SAAS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_1 = require("./organizationsubscribepromotesettings.js");
|
|
33
33
|
/** @internal */
|
|
34
34
|
exports.OrganizationProfileSettings$inboundSchema = z.object({
|
|
35
|
+
enabled: z.nullable(z.boolean()).optional(),
|
|
35
36
|
description: z.nullable(z.string()).optional(),
|
|
36
37
|
featured_projects: z.nullable(z.array(z.string())).optional(),
|
|
37
38
|
featured_organizations: z.nullable(z.array(z.string())).optional(),
|
|
38
39
|
links: z.nullable(z.array(z.string())).optional(),
|
|
39
40
|
subscribe: z.nullable(organizationsubscribepromotesettings_js_1.OrganizationSubscribePromoteSettings$inboundSchema)
|
|
40
41
|
.optional(),
|
|
42
|
+
accent_color: z.nullable(z.string()).optional(),
|
|
41
43
|
}).transform((v) => {
|
|
42
44
|
return (0, primitives_js_1.remap)(v, {
|
|
43
45
|
"featured_projects": "featuredProjects",
|
|
44
46
|
"featured_organizations": "featuredOrganizations",
|
|
47
|
+
"accent_color": "accentColor",
|
|
45
48
|
});
|
|
46
49
|
});
|
|
47
50
|
/** @internal */
|
|
48
51
|
exports.OrganizationProfileSettings$outboundSchema = z.object({
|
|
52
|
+
enabled: z.nullable(z.boolean()).optional(),
|
|
49
53
|
description: z.nullable(z.string()).optional(),
|
|
50
54
|
featuredProjects: z.nullable(z.array(z.string())).optional(),
|
|
51
55
|
featuredOrganizations: z.nullable(z.array(z.string())).optional(),
|
|
52
56
|
links: z.nullable(z.array(z.string())).optional(),
|
|
53
57
|
subscribe: z.nullable(organizationsubscribepromotesettings_js_1.OrganizationSubscribePromoteSettings$outboundSchema)
|
|
54
58
|
.optional(),
|
|
59
|
+
accentColor: z.nullable(z.string()).optional(),
|
|
55
60
|
}).transform((v) => {
|
|
56
61
|
return (0, primitives_js_1.remap)(v, {
|
|
57
62
|
featuredProjects: "featured_projects",
|
|
58
63
|
featuredOrganizations: "featured_organizations",
|
|
64
|
+
accentColor: "accent_color",
|
|
59
65
|
});
|
|
60
66
|
});
|
|
61
67
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organizationprofilesettings.js","sourceRoot":"","sources":["../../src/models/components/organizationprofilesettings.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAC1D,uGAKmD;
|
|
1
|
+
{"version":3,"file":"organizationprofilesettings.js","sourceRoot":"","sources":["../../src/models/components/organizationprofilesettings.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAC1D,uGAKmD;AAiCnD,gBAAgB;AACH,QAAA,yCAAyC,GAIlD,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC3C,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC9C,iBAAiB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE;IAC7D,sBAAsB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE;IAClE,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE;IACjD,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,4FAAkD,CAAC;SACtE,QAAQ,EAAE;IACb,YAAY,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CAChD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAA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AA2E;IAC9D,0CAAa,GAAG,iDAAyC,CAAC;IACvE,4EAA4E;IAC/D,2CAAc,GAAG,kDAA0C,CAAC;AAG3E,CAAC,EAPgB,4BAA4B,4CAA5B,4BAA4B,QAO5C"}
|
package/package.json
CHANGED
package/src/lib/config.ts
CHANGED
|
@@ -54,7 +54,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
54
54
|
export const SDK_METADATA = {
|
|
55
55
|
language: "typescript",
|
|
56
56
|
openapiDocVersion: "0.1.0",
|
|
57
|
-
sdkVersion: "0.8.
|
|
58
|
-
genVersion: "2.415.
|
|
59
|
-
userAgent: "speakeasy-sdk/typescript 0.8.
|
|
57
|
+
sdkVersion: "0.8.2",
|
|
58
|
+
genVersion: "2.415.8",
|
|
59
|
+
userAgent: "speakeasy-sdk/typescript 0.8.2 2.415.8 0.1.0 @polar-sh/sdk",
|
|
60
60
|
} as const;
|
|
@@ -12,6 +12,10 @@ import {
|
|
|
12
12
|
} from "./organizationsubscribepromotesettings.js";
|
|
13
13
|
|
|
14
14
|
export type OrganizationProfileSettings = {
|
|
15
|
+
/**
|
|
16
|
+
* If this organization has a profile enabled
|
|
17
|
+
*/
|
|
18
|
+
enabled?: boolean | null | undefined;
|
|
15
19
|
/**
|
|
16
20
|
* A description of the organization
|
|
17
21
|
*/
|
|
@@ -32,6 +36,10 @@ export type OrganizationProfileSettings = {
|
|
|
32
36
|
* Subscription promotion settings
|
|
33
37
|
*/
|
|
34
38
|
subscribe?: OrganizationSubscribePromoteSettings | null | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* Accent color for the organization
|
|
41
|
+
*/
|
|
42
|
+
accentColor?: string | null | undefined;
|
|
35
43
|
};
|
|
36
44
|
|
|
37
45
|
/** @internal */
|
|
@@ -40,26 +48,31 @@ export const OrganizationProfileSettings$inboundSchema: z.ZodType<
|
|
|
40
48
|
z.ZodTypeDef,
|
|
41
49
|
unknown
|
|
42
50
|
> = z.object({
|
|
51
|
+
enabled: z.nullable(z.boolean()).optional(),
|
|
43
52
|
description: z.nullable(z.string()).optional(),
|
|
44
53
|
featured_projects: z.nullable(z.array(z.string())).optional(),
|
|
45
54
|
featured_organizations: z.nullable(z.array(z.string())).optional(),
|
|
46
55
|
links: z.nullable(z.array(z.string())).optional(),
|
|
47
56
|
subscribe: z.nullable(OrganizationSubscribePromoteSettings$inboundSchema)
|
|
48
57
|
.optional(),
|
|
58
|
+
accent_color: z.nullable(z.string()).optional(),
|
|
49
59
|
}).transform((v) => {
|
|
50
60
|
return remap$(v, {
|
|
51
61
|
"featured_projects": "featuredProjects",
|
|
52
62
|
"featured_organizations": "featuredOrganizations",
|
|
63
|
+
"accent_color": "accentColor",
|
|
53
64
|
});
|
|
54
65
|
});
|
|
55
66
|
|
|
56
67
|
/** @internal */
|
|
57
68
|
export type OrganizationProfileSettings$Outbound = {
|
|
69
|
+
enabled?: boolean | null | undefined;
|
|
58
70
|
description?: string | null | undefined;
|
|
59
71
|
featured_projects?: Array<string> | null | undefined;
|
|
60
72
|
featured_organizations?: Array<string> | null | undefined;
|
|
61
73
|
links?: Array<string> | null | undefined;
|
|
62
74
|
subscribe?: OrganizationSubscribePromoteSettings$Outbound | null | undefined;
|
|
75
|
+
accent_color?: string | null | undefined;
|
|
63
76
|
};
|
|
64
77
|
|
|
65
78
|
/** @internal */
|
|
@@ -68,16 +81,19 @@ export const OrganizationProfileSettings$outboundSchema: z.ZodType<
|
|
|
68
81
|
z.ZodTypeDef,
|
|
69
82
|
OrganizationProfileSettings
|
|
70
83
|
> = z.object({
|
|
84
|
+
enabled: z.nullable(z.boolean()).optional(),
|
|
71
85
|
description: z.nullable(z.string()).optional(),
|
|
72
86
|
featuredProjects: z.nullable(z.array(z.string())).optional(),
|
|
73
87
|
featuredOrganizations: z.nullable(z.array(z.string())).optional(),
|
|
74
88
|
links: z.nullable(z.array(z.string())).optional(),
|
|
75
89
|
subscribe: z.nullable(OrganizationSubscribePromoteSettings$outboundSchema)
|
|
76
90
|
.optional(),
|
|
91
|
+
accentColor: z.nullable(z.string()).optional(),
|
|
77
92
|
}).transform((v) => {
|
|
78
93
|
return remap$(v, {
|
|
79
94
|
featuredProjects: "featured_projects",
|
|
80
95
|
featuredOrganizations: "featured_organizations",
|
|
96
|
+
accentColor: "accent_color",
|
|
81
97
|
});
|
|
82
98
|
});
|
|
83
99
|
|