@polar-sh/sdk 0.8.0 → 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/bodysubscriptionsimport.d.ts +2 -2
- package/models/components/bodysubscriptionsimport.d.ts.map +1 -1
- package/models/components/bodysubscriptionsimport.js +0 -2
- package/models/components/bodysubscriptionsimport.js.map +1 -1
- 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 -2
- package/src/lib/config.ts +3 -3
- package/src/models/components/bodysubscriptionsimport.ts +2 -4
- 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,7 +1,7 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
export type FileT = {
|
|
3
3
|
fileName: string;
|
|
4
|
-
content: ReadableStream<Uint8Array> | Blob | ArrayBuffer
|
|
4
|
+
content: ReadableStream<Uint8Array> | Blob | ArrayBuffer;
|
|
5
5
|
};
|
|
6
6
|
export type BodySubscriptionsImport = {
|
|
7
7
|
/**
|
|
@@ -18,7 +18,7 @@ export declare const FileT$inboundSchema: z.ZodType<FileT, z.ZodTypeDef, unknown
|
|
|
18
18
|
/** @internal */
|
|
19
19
|
export type FileT$Outbound = {
|
|
20
20
|
fileName: string;
|
|
21
|
-
content: ReadableStream<Uint8Array> | Blob | ArrayBuffer
|
|
21
|
+
content: ReadableStream<Uint8Array> | Blob | ArrayBuffer;
|
|
22
22
|
};
|
|
23
23
|
/** @internal */
|
|
24
24
|
export declare const FileT$outboundSchema: z.ZodType<FileT$Outbound, z.ZodTypeDef, FileT>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bodysubscriptionsimport.d.ts","sourceRoot":"","sources":["../../src/models/components/bodysubscriptionsimport.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAIzB,MAAM,MAAM,KAAK,GAAG;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,GAAG,WAAW,
|
|
1
|
+
{"version":3,"file":"bodysubscriptionsimport.d.ts","sourceRoot":"","sources":["../../src/models/components/bodysubscriptionsimport.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAIzB,MAAM,MAAM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CAAC,UAAU,EACZ,uBAAuB,CAQvB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,wBAAwB,CAAC;IACxC,uEAAuE;IAChE,MAAM,aAAa,2DAAwC,CAAC;IACnE,wEAAwE;IACjE,MAAM,cAAc,oFAAyC,CAAC;IACrE,kEAAkE;IAClE,KAAY,QAAQ,GAAG,gCAAgC,CAAC;CACzD"}
|
|
@@ -38,7 +38,6 @@ exports.FileT$inboundSchema = z
|
|
|
38
38
|
z.instanceof((ReadableStream)),
|
|
39
39
|
z.instanceof(Blob),
|
|
40
40
|
z.instanceof(ArrayBuffer),
|
|
41
|
-
z.instanceof(Buffer),
|
|
42
41
|
]),
|
|
43
42
|
});
|
|
44
43
|
/** @internal */
|
|
@@ -48,7 +47,6 @@ exports.FileT$outboundSchema = z.object({
|
|
|
48
47
|
z.instanceof((ReadableStream)),
|
|
49
48
|
z.instanceof(Blob),
|
|
50
49
|
z.instanceof(ArrayBuffer),
|
|
51
|
-
z.instanceof(Buffer),
|
|
52
50
|
]),
|
|
53
51
|
});
|
|
54
52
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bodysubscriptionsimport.js","sourceRoot":"","sources":["../../src/models/components/bodysubscriptionsimport.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAC1D,mDAAsD;AAkBtD,gBAAgB;AACH,QAAA,mBAAmB,GAA4C,CAAC;KAC1E,MAAM,CAAC;IACN,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC;QACf,CAAC,CAAC,UAAU,CAAC,CAAA,cAA0B,CAAA,CAAC;QACxC,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC;QAClB,CAAC,CAAC,UAAU,CAAC,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"bodysubscriptionsimport.js","sourceRoot":"","sources":["../../src/models/components/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,EAAE;QACf,iBAAiB,EAAE,gBAAgB;KACpC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAQH,gBAAgB;AACH,QAAA,sCAAsC,GAI/C,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,4BAAoB,CAAC,CAAC,EAAE,CAAC,yBAAc,CAAC;IAC3D,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE;CAC3B,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,cAAc,EAAE,iBAAiB;KAClC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,wBAAwB,CAOxC;AAPD,WAAiB,wBAAwB;IACvC,uEAAuE;IAC1D,sCAAa,GAAG,6CAAqC,CAAC;IACnE,wEAAwE;IAC3D,uCAAc,GAAG,8CAAsC,CAAC;AAGvE,CAAC,EAPgB,wBAAwB,wCAAxB,wBAAwB,QAOxC"}
|
|
@@ -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,CAAC,EAAE,oCAAoC,GAAG,IAAI,GAAG,SAAS,CAAC;IACpE;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACzC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yCAAyC,EAAE,CAAC,CAAC,OAAO,CAC/D,2BAA2B,EAC3B,CAAC,CAAC,UAAU,EACZ,OAAO,CAgBP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,oCAAoC,GAAG;IACjD,OAAO,CAAC,EAAE,OAAO,GAAG,IAAI,GAAG,SAAS,CAAC;IACrC,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC,iBAAiB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;IACrD,sBAAsB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;IAC1D,KAAK,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;IACzC,SAAS,CAAC,EAAE,6CAA6C,GAAG,IAAI,GAAG,SAAS,CAAC;IAC7E,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CAC1C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,0CAA0C,EAAE,CAAC,CAAC,OAAO,CAChE,oCAAoC,EACpC,CAAC,CAAC,UAAU,EACZ,2BAA2B,CAgB3B,CAAC;AAEH;;;GAGG;AACH,yBAAiB,4BAA4B,CAAC;IAC5C,2EAA2E;IACpE,MAAM,aAAa,+DAA4C,CAAC;IACvE,4EAA4E;IACrE,MAAM,cAAc,4FAA6C,CAAC;IACzE,sEAAsE;IACtE,KAAY,QAAQ,GAAG,oCAAoC,CAAC;CAC7D"}
|
|
@@ -32,30 +32,36 @@ const primitives_js_1 = require("../../lib/primitives.js");
|
|
|
32
32
|
const organizationsubscribepromotesettings_js_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,CA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,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE;IACjE,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,6FAAmD,CAAC;SACvE,QAAQ,EAAE;IACb,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CAC/C,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,gBAAgB,EAAE,mBAAmB;QACrC,qBAAqB,EAAE,wBAAwB;QAC/C,WAAW,EAAE,cAAc;KAC5B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,4BAA4B,CAO5C;AAPD,WAAiB,4BAA4B;IAC3C,2EAA2E;IAC9D,0CAAa,GAAG,iDAAyC,CAAC;IACvE,4EAA4E;IAC/D,2CAAc,GAAG,kDAA0C,CAAC;AAG3E,CAAC,EAPgB,4BAA4B,4CAA5B,4BAA4B,QAO5C"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@polar-sh/sdk",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.2",
|
|
4
4
|
"author": "Speakeasy",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -17,7 +17,6 @@
|
|
|
17
17
|
"zod": ">= 3"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@types/node": "^18.19.3",
|
|
21
20
|
"@typescript-eslint/eslint-plugin": "^7.7.1",
|
|
22
21
|
"@typescript-eslint/parser": "^7.7.1",
|
|
23
22
|
"eslint": "^8.57.0",
|
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;
|
|
@@ -8,7 +8,7 @@ import { blobLikeSchema } from "../../types/blobs.js";
|
|
|
8
8
|
|
|
9
9
|
export type FileT = {
|
|
10
10
|
fileName: string;
|
|
11
|
-
content: ReadableStream<Uint8Array> | Blob | ArrayBuffer
|
|
11
|
+
content: ReadableStream<Uint8Array> | Blob | ArrayBuffer;
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
export type BodySubscriptionsImport = {
|
|
@@ -30,14 +30,13 @@ export const FileT$inboundSchema: z.ZodType<FileT, z.ZodTypeDef, unknown> = z
|
|
|
30
30
|
z.instanceof(ReadableStream<Uint8Array>),
|
|
31
31
|
z.instanceof(Blob),
|
|
32
32
|
z.instanceof(ArrayBuffer),
|
|
33
|
-
z.instanceof(Buffer),
|
|
34
33
|
]),
|
|
35
34
|
});
|
|
36
35
|
|
|
37
36
|
/** @internal */
|
|
38
37
|
export type FileT$Outbound = {
|
|
39
38
|
fileName: string;
|
|
40
|
-
content: ReadableStream<Uint8Array> | Blob | ArrayBuffer
|
|
39
|
+
content: ReadableStream<Uint8Array> | Blob | ArrayBuffer;
|
|
41
40
|
};
|
|
42
41
|
|
|
43
42
|
/** @internal */
|
|
@@ -51,7 +50,6 @@ export const FileT$outboundSchema: z.ZodType<
|
|
|
51
50
|
z.instanceof(ReadableStream<Uint8Array>),
|
|
52
51
|
z.instanceof(Blob),
|
|
53
52
|
z.instanceof(ArrayBuffer),
|
|
54
|
-
z.instanceof(Buffer),
|
|
55
53
|
]),
|
|
56
54
|
});
|
|
57
55
|
|
|
@@ -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
|
|