@usenotra/sdk 0.0.9 → 0.1.0

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 (142) hide show
  1. package/README.md +14 -1
  2. package/dist/commonjs/funcs/content-create-post-generation.d.ts +15 -0
  3. package/dist/commonjs/funcs/content-create-post-generation.d.ts.map +1 -0
  4. package/dist/commonjs/funcs/content-create-post-generation.js +117 -0
  5. package/dist/commonjs/funcs/content-create-post-generation.js.map +1 -0
  6. package/dist/commonjs/funcs/content-get-brand-identity.d.ts +15 -0
  7. package/dist/commonjs/funcs/content-get-brand-identity.d.ts.map +1 -0
  8. package/dist/commonjs/funcs/content-get-brand-identity.js +122 -0
  9. package/dist/commonjs/funcs/content-get-brand-identity.js.map +1 -0
  10. package/dist/commonjs/funcs/content-get-post-generation.d.ts +15 -0
  11. package/dist/commonjs/funcs/content-get-post-generation.d.ts.map +1 -0
  12. package/dist/commonjs/funcs/content-get-post-generation.js +122 -0
  13. package/dist/commonjs/funcs/content-get-post-generation.js.map +1 -0
  14. package/dist/commonjs/funcs/content-list-brand-identities.d.ts +15 -0
  15. package/dist/commonjs/funcs/content-list-brand-identities.d.ts.map +1 -0
  16. package/dist/commonjs/funcs/content-list-brand-identities.js +106 -0
  17. package/dist/commonjs/funcs/content-list-brand-identities.js.map +1 -0
  18. package/dist/commonjs/funcs/content-list-integrations.d.ts +15 -0
  19. package/dist/commonjs/funcs/content-list-integrations.d.ts.map +1 -0
  20. package/dist/commonjs/funcs/content-list-integrations.js +106 -0
  21. package/dist/commonjs/funcs/content-list-integrations.js.map +1 -0
  22. package/dist/commonjs/lib/config.d.ts +3 -3
  23. package/dist/commonjs/lib/config.js +3 -3
  24. package/dist/commonjs/lib/files.d.ts +13 -0
  25. package/dist/commonjs/lib/files.d.ts.map +1 -1
  26. package/dist/commonjs/lib/files.js +19 -0
  27. package/dist/commonjs/lib/files.js.map +1 -1
  28. package/dist/commonjs/models/errors/create-post-generation.d.ts +26 -0
  29. package/dist/commonjs/models/errors/create-post-generation.d.ts.map +1 -0
  30. package/dist/commonjs/models/errors/create-post-generation.js +75 -0
  31. package/dist/commonjs/models/errors/create-post-generation.js.map +1 -0
  32. package/dist/commonjs/models/errors/index.d.ts +1 -0
  33. package/dist/commonjs/models/errors/index.d.ts.map +1 -1
  34. package/dist/commonjs/models/errors/index.js +1 -0
  35. package/dist/commonjs/models/errors/index.js.map +1 -1
  36. package/dist/commonjs/models/operations/create-post-generation.d.ts +215 -0
  37. package/dist/commonjs/models/operations/create-post-generation.d.ts.map +1 -0
  38. package/dist/commonjs/models/operations/create-post-generation.js +223 -0
  39. package/dist/commonjs/models/operations/create-post-generation.js.map +1 -0
  40. package/dist/commonjs/models/operations/get-brand-identity.d.ts +41 -0
  41. package/dist/commonjs/models/operations/get-brand-identity.d.ts.map +1 -0
  42. package/dist/commonjs/models/operations/get-brand-identity.js +82 -0
  43. package/dist/commonjs/models/operations/get-brand-identity.js.map +1 -0
  44. package/dist/commonjs/models/operations/get-post-generation.d.ts +105 -0
  45. package/dist/commonjs/models/operations/get-post-generation.d.ts.map +1 -0
  46. package/dist/commonjs/models/operations/get-post-generation.js +140 -0
  47. package/dist/commonjs/models/operations/get-post-generation.js.map +1 -0
  48. package/dist/commonjs/models/operations/index.d.ts +5 -0
  49. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  50. package/dist/commonjs/models/operations/index.js +5 -0
  51. package/dist/commonjs/models/operations/index.js.map +1 -1
  52. package/dist/commonjs/models/operations/list-brand-identities.d.ts +31 -0
  53. package/dist/commonjs/models/operations/list-brand-identities.d.ts.map +1 -0
  54. package/dist/commonjs/models/operations/list-brand-identities.js +74 -0
  55. package/dist/commonjs/models/operations/list-brand-identities.js.map +1 -0
  56. package/dist/commonjs/models/operations/list-integrations.d.ts +35 -0
  57. package/dist/commonjs/models/operations/list-integrations.d.ts.map +1 -0
  58. package/dist/commonjs/models/operations/list-integrations.js +78 -0
  59. package/dist/commonjs/models/operations/list-integrations.js.map +1 -0
  60. package/dist/commonjs/models/operations/list-posts.d.ts +12 -12
  61. package/dist/commonjs/models/operations/list-posts.d.ts.map +1 -1
  62. package/dist/commonjs/models/operations/list-posts.js +12 -12
  63. package/dist/commonjs/models/operations/list-posts.js.map +1 -1
  64. package/dist/commonjs/models/operations/update-post.d.ts +4 -4
  65. package/dist/commonjs/models/operations/update-post.d.ts.map +1 -1
  66. package/dist/commonjs/models/operations/update-post.js +4 -4
  67. package/dist/commonjs/models/operations/update-post.js.map +1 -1
  68. package/dist/commonjs/sdk/content.d.ts +20 -0
  69. package/dist/commonjs/sdk/content.d.ts.map +1 -1
  70. package/dist/commonjs/sdk/content.js +35 -0
  71. package/dist/commonjs/sdk/content.js.map +1 -1
  72. package/dist/esm/funcs/content-create-post-generation.d.ts +15 -0
  73. package/dist/esm/funcs/content-create-post-generation.d.ts.map +1 -0
  74. package/dist/esm/funcs/content-create-post-generation.js +81 -0
  75. package/dist/esm/funcs/content-create-post-generation.js.map +1 -0
  76. package/dist/esm/funcs/content-get-brand-identity.d.ts +15 -0
  77. package/dist/esm/funcs/content-get-brand-identity.d.ts.map +1 -0
  78. package/dist/esm/funcs/content-get-brand-identity.js +86 -0
  79. package/dist/esm/funcs/content-get-brand-identity.js.map +1 -0
  80. package/dist/esm/funcs/content-get-post-generation.d.ts +15 -0
  81. package/dist/esm/funcs/content-get-post-generation.d.ts.map +1 -0
  82. package/dist/esm/funcs/content-get-post-generation.js +86 -0
  83. package/dist/esm/funcs/content-get-post-generation.js.map +1 -0
  84. package/dist/esm/funcs/content-list-brand-identities.d.ts +15 -0
  85. package/dist/esm/funcs/content-list-brand-identities.d.ts.map +1 -0
  86. package/dist/esm/funcs/content-list-brand-identities.js +70 -0
  87. package/dist/esm/funcs/content-list-brand-identities.js.map +1 -0
  88. package/dist/esm/funcs/content-list-integrations.d.ts +15 -0
  89. package/dist/esm/funcs/content-list-integrations.d.ts.map +1 -0
  90. package/dist/esm/funcs/content-list-integrations.js +70 -0
  91. package/dist/esm/funcs/content-list-integrations.js.map +1 -0
  92. package/dist/esm/lib/config.d.ts +3 -3
  93. package/dist/esm/lib/config.js +3 -3
  94. package/dist/esm/lib/files.d.ts +13 -0
  95. package/dist/esm/lib/files.d.ts.map +1 -1
  96. package/dist/esm/lib/files.js +18 -0
  97. package/dist/esm/lib/files.js.map +1 -1
  98. package/dist/esm/models/errors/create-post-generation.d.ts +26 -0
  99. package/dist/esm/models/errors/create-post-generation.d.ts.map +1 -0
  100. package/dist/esm/models/errors/create-post-generation.js +38 -0
  101. package/dist/esm/models/errors/create-post-generation.js.map +1 -0
  102. package/dist/esm/models/errors/index.d.ts +1 -0
  103. package/dist/esm/models/errors/index.d.ts.map +1 -1
  104. package/dist/esm/models/errors/index.js +1 -0
  105. package/dist/esm/models/errors/index.js.map +1 -1
  106. package/dist/esm/models/operations/create-post-generation.d.ts +215 -0
  107. package/dist/esm/models/operations/create-post-generation.d.ts.map +1 -0
  108. package/dist/esm/models/operations/create-post-generation.js +175 -0
  109. package/dist/esm/models/operations/create-post-generation.js.map +1 -0
  110. package/dist/esm/models/operations/get-brand-identity.d.ts +41 -0
  111. package/dist/esm/models/operations/get-brand-identity.d.ts.map +1 -0
  112. package/dist/esm/models/operations/get-brand-identity.js +42 -0
  113. package/dist/esm/models/operations/get-brand-identity.js.map +1 -0
  114. package/dist/esm/models/operations/get-post-generation.d.ts +105 -0
  115. package/dist/esm/models/operations/get-post-generation.d.ts.map +1 -0
  116. package/dist/esm/models/operations/get-post-generation.js +100 -0
  117. package/dist/esm/models/operations/get-post-generation.js.map +1 -0
  118. package/dist/esm/models/operations/index.d.ts +5 -0
  119. package/dist/esm/models/operations/index.d.ts.map +1 -1
  120. package/dist/esm/models/operations/index.js +5 -0
  121. package/dist/esm/models/operations/index.js.map +1 -1
  122. package/dist/esm/models/operations/list-brand-identities.d.ts +31 -0
  123. package/dist/esm/models/operations/list-brand-identities.d.ts.map +1 -0
  124. package/dist/esm/models/operations/list-brand-identities.js +35 -0
  125. package/dist/esm/models/operations/list-brand-identities.js.map +1 -0
  126. package/dist/esm/models/operations/list-integrations.d.ts +35 -0
  127. package/dist/esm/models/operations/list-integrations.d.ts.map +1 -0
  128. package/dist/esm/models/operations/list-integrations.js +39 -0
  129. package/dist/esm/models/operations/list-integrations.js.map +1 -0
  130. package/dist/esm/models/operations/list-posts.d.ts +12 -12
  131. package/dist/esm/models/operations/list-posts.d.ts.map +1 -1
  132. package/dist/esm/models/operations/list-posts.js +11 -11
  133. package/dist/esm/models/operations/list-posts.js.map +1 -1
  134. package/dist/esm/models/operations/update-post.d.ts +4 -4
  135. package/dist/esm/models/operations/update-post.d.ts.map +1 -1
  136. package/dist/esm/models/operations/update-post.js +3 -3
  137. package/dist/esm/models/operations/update-post.js.map +1 -1
  138. package/dist/esm/sdk/content.d.ts +20 -0
  139. package/dist/esm/sdk/content.d.ts.map +1 -1
  140. package/dist/esm/sdk/content.js +35 -0
  141. package/dist/esm/sdk/content.js.map +1 -1
  142. package/package.json +1 -1
@@ -28,8 +28,8 @@ export function serverURLFromOptions(options) {
28
28
  export const SDK_METADATA = {
29
29
  language: "typescript",
30
30
  openapiDocVersion: "1.0.0",
31
- sdkVersion: "0.0.9",
32
- genVersion: "2.866.0",
33
- userAgent: "speakeasy-sdk/typescript 0.0.9 2.866.0 1.0.0 @usenotra/sdk",
31
+ sdkVersion: "0.1.0",
32
+ genVersion: "2.866.2",
33
+ userAgent: "speakeasy-sdk/typescript 0.1.0 2.866.2 1.0.0 @usenotra/sdk",
34
34
  };
35
35
  //# sourceMappingURL=config.js.map
@@ -10,4 +10,17 @@ export declare function readableStreamToArrayBuffer(readable: ReadableStream<Uin
10
10
  * Returns null if the extension is not recognized.
11
11
  */
12
12
  export declare function getContentTypeFromFileName(fileName: string): string | null;
13
+ /**
14
+ * Creates a Blob from file content with the given MIME type.
15
+ *
16
+ * Node.js Buffers are Uint8Array subclasses that may share a pooled
17
+ * ArrayBuffer (byteOffset > 0, byteLength < buffer.byteLength). Passing
18
+ * such a Buffer directly to `new Blob([buf])` can include the entire
19
+ * underlying pool on some runtimes, producing a Blob with extra bytes
20
+ * that corrupts multipart uploads.
21
+ *
22
+ * Copying into a standalone Uint8Array ensures the Blob receives only the
23
+ * intended bytes regardless of runtime behaviour.
24
+ */
25
+ export declare function bytesToBlob(content: Uint8Array<ArrayBufferLike> | ArrayBuffer | Blob | string, contentType: string): Blob;
13
26
  //# sourceMappingURL=files.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../../src/lib/files.ts"],"names":[],"mappings":"AAKA;;;;;GAKG;AACH,wBAAsB,2BAA2B,CAC/C,QAAQ,EAAE,cAAc,CAAC,UAAU,CAAC,GACnC,OAAO,CAAC,WAAW,CAAC,CA2BtB;AAED;;;GAGG;AACH,wBAAgB,0BAA0B,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAoC1E"}
1
+ {"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../../src/lib/files.ts"],"names":[],"mappings":"AAKA;;;;;GAKG;AACH,wBAAsB,2BAA2B,CAC/C,QAAQ,EAAE,cAAc,CAAC,UAAU,CAAC,GACnC,OAAO,CAAC,WAAW,CAAC,CA2BtB;AAED;;;GAGG;AACH,wBAAgB,0BAA0B,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAoC1E;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,WAAW,CACzB,OAAO,EAAE,UAAU,CAAC,eAAe,CAAC,GAAG,WAAW,GAAG,IAAI,GAAG,MAAM,EAClE,WAAW,EAAE,MAAM,GAClB,IAAI,CAKN"}
@@ -71,4 +71,22 @@ export function getContentTypeFromFileName(fileName) {
71
71
  };
72
72
  return mimeTypes[ext] || null;
73
73
  }
74
+ /**
75
+ * Creates a Blob from file content with the given MIME type.
76
+ *
77
+ * Node.js Buffers are Uint8Array subclasses that may share a pooled
78
+ * ArrayBuffer (byteOffset > 0, byteLength < buffer.byteLength). Passing
79
+ * such a Buffer directly to `new Blob([buf])` can include the entire
80
+ * underlying pool on some runtimes, producing a Blob with extra bytes
81
+ * that corrupts multipart uploads.
82
+ *
83
+ * Copying into a standalone Uint8Array ensures the Blob receives only the
84
+ * intended bytes regardless of runtime behaviour.
85
+ */
86
+ export function bytesToBlob(content, contentType) {
87
+ if (content instanceof Uint8Array) {
88
+ return new Blob([new Uint8Array(content)], { type: contentType });
89
+ }
90
+ return new Blob([content], { type: contentType });
91
+ }
74
92
  //# sourceMappingURL=files.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"files.js","sourceRoot":"","sources":["../../../src/lib/files.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,2BAA2B,CAC/C,QAAoC;IAEpC,MAAM,MAAM,GAAG,QAAQ,CAAC,SAAS,EAAE,CAAC;IACpC,MAAM,MAAM,GAAiB,EAAE,CAAC;IAEhC,IAAI,WAAW,GAAG,CAAC,CAAC;IACpB,IAAI,IAAI,GAAG,KAAK,CAAC;IAEjB,OAAO,CAAC,IAAI,EAAE,CAAC;QACb,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,WAAW,EAAE,GAAG,MAAM,MAAM,CAAC,IAAI,EAAE,CAAC;QAEzD,IAAI,WAAW,EAAE,CAAC;YAChB,IAAI,GAAG,IAAI,CAAC;QACd,CAAC;aAAM,CAAC;YACN,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YACnB,WAAW,IAAI,KAAK,CAAC,MAAM,CAAC;QAC9B,CAAC;IACH,CAAC;IAED,MAAM,kBAAkB,GAAG,IAAI,UAAU,CAAC,WAAW,CAAC,CAAC;IACvD,IAAI,MAAM,GAAG,CAAC,CAAC;IAEf,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;QAC3B,kBAAkB,CAAC,GAAG,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;QACtC,MAAM,IA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GAAG,EAAE,UAAU;QACf,GAAG,EAAE,iBAAiB;QACtB,GAAG,EAAE,WAAW;QAChB,GAAG,EAAE,YAAY;QACjB,IAAI,EAAE,YAAY;QAClB,GAAG,EAAE,WAAW;QAChB,GAAG,EAAE,eAAe;QACpB,EAAE,EAAE,wBAAwB;QAC5B,GAAG,EAAE,UAAU;QACf,GAAG,EAAE,iBAAiB;QACtB,GAAG,EAAE,mBAAmB;QACxB,EAAE,EAAE,kBAAkB;QACtB,GAAG,EAAE,WAAW;QAChB,GAAG,EAAE,YAAY;QACjB,GAAG,EAAE,WAAW;QAChB,IAAI,EAAE,YAAY;QAClB,GAAG,EAAE,cAAc;QACnB,IAAI,EAAE,WAAW;QACjB,KAAK,EAAE,YAAY;QACnB,GAAG,EAAE,UAAU;QACf,GAAG,EAAE,UAAU;KAChB,CAAC;IAEF,OAAO,SAAS,CAAC,GAAG,CAAC,IAAI,IAAI,CAAC;AAChC,CAAC;AAED;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,WAAW,CACzB,OAAkE,EAClE,WAAmB;IAEnB,IAAI,OAAO,YAAY,UAAU,EAAE,CAAC;QAClC,OAAO,IAAI,IAAI,CAAC,CAAC,IAAI,UAAU,CAAC,OAAO,CAAC,CAAC,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC,CAAC;IACpE,CAAC;IACD,OAAO,IAAI,IAAI,CAAC,CAAC,OAAmB,CAAC,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC,CAAC;AAChE,CAAC"}
@@ -0,0 +1,26 @@
1
+ import * as z from "zod/v4-mini";
2
+ import { NotraError } from "./notra-error.js";
3
+ /**
4
+ * Content generation is unavailable
5
+ */
6
+ export type ServiceUnavailableErrorData = {
7
+ error: string;
8
+ jobId?: string | undefined;
9
+ };
10
+ /**
11
+ * Content generation is unavailable
12
+ */
13
+ export declare class ServiceUnavailableError extends NotraError {
14
+ error: string;
15
+ jobId?: string | undefined;
16
+ /** The original data that was passed to this error instance. */
17
+ data$: ServiceUnavailableErrorData;
18
+ constructor(err: ServiceUnavailableErrorData, httpMeta: {
19
+ response: Response;
20
+ request: Request;
21
+ body: string;
22
+ });
23
+ }
24
+ /** @internal */
25
+ export declare const ServiceUnavailableError$inboundSchema: z.ZodMiniType<ServiceUnavailableError, unknown>;
26
+ //# sourceMappingURL=create-post-generation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-post-generation.d.ts","sourceRoot":"","sources":["../../../../src/models/errors/create-post-generation.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9C;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG;IACxC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5B,CAAC;AAEF;;GAEG;AACH,qBAAa,uBAAwB,SAAQ,UAAU;IACrD,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAE3B,gEAAgE;IAChE,KAAK,EAAE,2BAA2B,CAAC;gBAGjC,GAAG,EAAE,2BAA2B,EAChC,QAAQ,EAAE;QAAE,QAAQ,EAAE,QAAQ,CAAC;QAAC,OAAO,EAAE,OAAO,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE;CAYnE;AAED,gBAAgB;AAChB,eAAO,MAAM,qCAAqC,EAAE,CAAC,CAAC,WAAW,CAC/D,uBAAuB,EACvB,OAAO,CAgBR,CAAC"}
@@ -0,0 +1,38 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 7dbce1fca443
4
+ */
5
+ import * as z from "zod/v4-mini";
6
+ import * as types from "../../types/primitives.js";
7
+ import { NotraError } from "./notra-error.js";
8
+ /**
9
+ * Content generation is unavailable
10
+ */
11
+ export class ServiceUnavailableError extends NotraError {
12
+ constructor(err, httpMeta) {
13
+ const message = "message" in err && typeof err.message === "string"
14
+ ? err.message
15
+ : `API error occurred: ${JSON.stringify(err)}`;
16
+ super(message, httpMeta);
17
+ this.data$ = err;
18
+ this.error = err.error;
19
+ if (err.jobId != null)
20
+ this.jobId = err.jobId;
21
+ this.name = "ServiceUnavailableError";
22
+ }
23
+ }
24
+ /** @internal */
25
+ export const ServiceUnavailableError$inboundSchema = z.pipe(z.object({
26
+ error: types.string(),
27
+ jobId: types.optional(types.string()),
28
+ request$: z.custom(x => x instanceof Request),
29
+ response$: z.custom(x => x instanceof Response),
30
+ body$: z.string(),
31
+ }), z.transform((v) => {
32
+ return new ServiceUnavailableError(v, {
33
+ request: v.request$,
34
+ response: v.response$,
35
+ body: v.body$,
36
+ });
37
+ }));
38
+ //# sourceMappingURL=create-post-generation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-post-generation.js","sourceRoot":"","sources":["../../../../src/models/errors/create-post-generation.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,KAAK,KAAK,MAAM,2BAA2B,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAU9C;;GAEG;AACH,MAAM,OAAO,uBAAwB,SAAQ,UAAU;IAOrD,YACE,GAAgC,EAChC,QAAgE;QAEhE,MAAM,OAAO,GAAG,SAAS,IAAI,GAAG,IAAI,OAAO,GAAG,CAAC,OAAO,KAAK,QAAQ;YACjE,CAAC,CAAC,GAAG,CAAC,OAAO;YACb,CAAC,CAAC,uBAAuB,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC;QACjD,KAAK,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;QACzB,IAAI,CAAC,KAAK,GAAG,GAAG,CAAC;QACjB,IAAI,CAAC,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC;QACvB,IAAI,GAAG,CAAC,KAAK,IAAI,IAAI;YAAE,IAAI,CAAC,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC;QAE9C,IAAI,CAAC,IAAI,GAAG,yBAAyB,CAAC;IACxC,CAAC;CACF;AAED,gBAAgB;AAChB,MAAM,CAAC,MAAM,qCAAqC,GAG9C,CAAC,CAAC,IAAI,CACR,CAAC,CAAC,MAAM,CAAC;IACP,KAAK,EAAE,KAAK,CAAC,MAAM,EAAE;IACrB,KAAK,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;IACrC,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAU,CAAC,CAAC,EAAE,CAAC,CAAC,YAAY,OAAO,CAAC;IACtD,SAAS,EAAE,CAAC,CAAC,MAAM,CAAW,CAAC,CAAC,EAAE,CAAC,CAAC,YAAY,QAAQ,CAAC;IACzD,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;CAClB,CAAC,EACF,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IAChB,OAAO,IAAI,uBAAuB,CAAC,CAAC,EAAE;QACpC,OAAO,EAAE,CAAC,CAAC,QAAQ;QACnB,QAAQ,EAAE,CAAC,CAAC,SAAS;QACrB,IAAI,EAAE,CAAC,CAAC,KAAK;KACd,CAAC,CAAC;AACL,CAAC,CAAC,CACH,CAAC"}
@@ -1,3 +1,4 @@
1
+ export * from "./create-post-generation.js";
1
2
  export * from "./error-response.js";
2
3
  export * from "./http-client-errors.js";
3
4
  export * from "./notra-default-error.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/models/errors/index.ts"],"names":[],"mappings":"AAKA,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,2BAA2B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/models/errors/index.ts"],"names":[],"mappings":"AAKA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,2BAA2B,CAAC"}
@@ -2,6 +2,7 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  * @generated-id: c4e22507cb83
4
4
  */
5
+ export * from "./create-post-generation.js";
5
6
  export * from "./error-response.js";
6
7
  export * from "./http-client-errors.js";
7
8
  export * from "./notra-default-error.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/errors/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,2BAA2B,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/errors/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,2BAA2B,CAAC"}
@@ -0,0 +1,215 @@
1
+ import * as z from "zod/v4-mini";
2
+ import { ClosedEnum, OpenEnum } from "../../types/enums.js";
3
+ import { Result as SafeParseResult } from "../../types/fp.js";
4
+ import { SDKValidationError } from "../errors/sdk-validation-error.js";
5
+ export declare const ContentTypeRequest: {
6
+ readonly Changelog: "changelog";
7
+ readonly BlogPost: "blog_post";
8
+ readonly LinkedinPost: "linkedin_post";
9
+ readonly TwitterPost: "twitter_post";
10
+ };
11
+ export type ContentTypeRequest = ClosedEnum<typeof ContentTypeRequest>;
12
+ export declare const LookbackWindowRequest: {
13
+ readonly CurrentDay: "current_day";
14
+ readonly Yesterday: "yesterday";
15
+ readonly Last7Days: "last_7_days";
16
+ readonly Last14Days: "last_14_days";
17
+ readonly Last30Days: "last_30_days";
18
+ };
19
+ export type LookbackWindowRequest = ClosedEnum<typeof LookbackWindowRequest>;
20
+ export type Integrations = {
21
+ github?: Array<string> | undefined;
22
+ };
23
+ export type Repository = {
24
+ owner: string;
25
+ repo: string;
26
+ };
27
+ export type CreatePostGenerationGithub = {
28
+ repositories: Array<Repository>;
29
+ };
30
+ export type DataPoints = {
31
+ includePullRequests?: boolean | undefined;
32
+ includeCommits?: boolean | undefined;
33
+ includeReleases?: boolean | undefined;
34
+ includeLinearIssues?: boolean | undefined;
35
+ };
36
+ export type PullRequestNumber = {
37
+ repositoryId: string;
38
+ number: number;
39
+ };
40
+ export type ReleaseTagName = {
41
+ repositoryId: string;
42
+ tagName: string;
43
+ };
44
+ export type ReleaseTagNameUnion = ReleaseTagName | string;
45
+ export type SelectedItems = {
46
+ commitShas?: Array<string> | undefined;
47
+ pullRequestNumbers?: Array<PullRequestNumber> | undefined;
48
+ releaseTagNames?: Array<ReleaseTagName | string> | undefined;
49
+ };
50
+ export type CreatePostGenerationRequest = {
51
+ contentType: ContentTypeRequest;
52
+ lookbackWindow?: LookbackWindowRequest | undefined;
53
+ brandVoiceId?: string | undefined;
54
+ brandIdentityId?: string | null | undefined;
55
+ repositoryIds?: Array<string> | undefined;
56
+ integrations?: Integrations | undefined;
57
+ github?: CreatePostGenerationGithub | undefined;
58
+ dataPoints?: DataPoints | undefined;
59
+ selectedItems?: SelectedItems | undefined;
60
+ };
61
+ export type CreatePostGenerationOrganization = {
62
+ id: string;
63
+ slug: string;
64
+ name: string;
65
+ logo: string | null;
66
+ };
67
+ export declare const CreatePostGenerationStatus: {
68
+ readonly Queued: "queued";
69
+ readonly Running: "running";
70
+ readonly Completed: "completed";
71
+ readonly Failed: "failed";
72
+ };
73
+ export type CreatePostGenerationStatus = OpenEnum<typeof CreatePostGenerationStatus>;
74
+ export declare const CreatePostGenerationContentTypeResponse: {
75
+ readonly Changelog: "changelog";
76
+ readonly BlogPost: "blog_post";
77
+ readonly LinkedinPost: "linkedin_post";
78
+ readonly TwitterPost: "twitter_post";
79
+ };
80
+ export type CreatePostGenerationContentTypeResponse = OpenEnum<typeof CreatePostGenerationContentTypeResponse>;
81
+ export declare const CreatePostGenerationLookbackWindowResponse: {
82
+ readonly CurrentDay: "current_day";
83
+ readonly Yesterday: "yesterday";
84
+ readonly Last7Days: "last_7_days";
85
+ readonly Last14Days: "last_14_days";
86
+ readonly Last30Days: "last_30_days";
87
+ };
88
+ export type CreatePostGenerationLookbackWindowResponse = OpenEnum<typeof CreatePostGenerationLookbackWindowResponse>;
89
+ export declare const CreatePostGenerationSource: {
90
+ readonly Api: "api";
91
+ readonly Dashboard: "dashboard";
92
+ };
93
+ export type CreatePostGenerationSource = OpenEnum<typeof CreatePostGenerationSource>;
94
+ export type CreatePostGenerationJob = {
95
+ id: string;
96
+ organizationId: string;
97
+ status: CreatePostGenerationStatus;
98
+ contentType: CreatePostGenerationContentTypeResponse;
99
+ lookbackWindow: CreatePostGenerationLookbackWindowResponse;
100
+ repositoryIds: Array<string>;
101
+ brandVoiceId: string | null;
102
+ workflowRunId: string | null;
103
+ postId: string | null;
104
+ error: string | null;
105
+ source: CreatePostGenerationSource;
106
+ createdAt: string;
107
+ updatedAt: string;
108
+ completedAt: string | null;
109
+ };
110
+ /**
111
+ * Post generation queued successfully
112
+ */
113
+ export type CreatePostGenerationResponse = {
114
+ organization: CreatePostGenerationOrganization;
115
+ job: CreatePostGenerationJob;
116
+ };
117
+ /** @internal */
118
+ export declare const ContentTypeRequest$outboundSchema: z.ZodMiniEnum<typeof ContentTypeRequest>;
119
+ /** @internal */
120
+ export declare const LookbackWindowRequest$outboundSchema: z.ZodMiniEnum<typeof LookbackWindowRequest>;
121
+ /** @internal */
122
+ export type Integrations$Outbound = {
123
+ github?: Array<string> | undefined;
124
+ };
125
+ /** @internal */
126
+ export declare const Integrations$outboundSchema: z.ZodMiniType<Integrations$Outbound, Integrations>;
127
+ export declare function integrationsToJSON(integrations: Integrations): string;
128
+ /** @internal */
129
+ export type Repository$Outbound = {
130
+ owner: string;
131
+ repo: string;
132
+ };
133
+ /** @internal */
134
+ export declare const Repository$outboundSchema: z.ZodMiniType<Repository$Outbound, Repository>;
135
+ export declare function repositoryToJSON(repository: Repository): string;
136
+ /** @internal */
137
+ export type CreatePostGenerationGithub$Outbound = {
138
+ repositories: Array<Repository$Outbound>;
139
+ };
140
+ /** @internal */
141
+ export declare const CreatePostGenerationGithub$outboundSchema: z.ZodMiniType<CreatePostGenerationGithub$Outbound, CreatePostGenerationGithub>;
142
+ export declare function createPostGenerationGithubToJSON(createPostGenerationGithub: CreatePostGenerationGithub): string;
143
+ /** @internal */
144
+ export type DataPoints$Outbound = {
145
+ includePullRequests: boolean;
146
+ includeCommits: boolean;
147
+ includeReleases: boolean;
148
+ includeLinearIssues: boolean;
149
+ };
150
+ /** @internal */
151
+ export declare const DataPoints$outboundSchema: z.ZodMiniType<DataPoints$Outbound, DataPoints>;
152
+ export declare function dataPointsToJSON(dataPoints: DataPoints): string;
153
+ /** @internal */
154
+ export type PullRequestNumber$Outbound = {
155
+ repositoryId: string;
156
+ number: number;
157
+ };
158
+ /** @internal */
159
+ export declare const PullRequestNumber$outboundSchema: z.ZodMiniType<PullRequestNumber$Outbound, PullRequestNumber>;
160
+ export declare function pullRequestNumberToJSON(pullRequestNumber: PullRequestNumber): string;
161
+ /** @internal */
162
+ export type ReleaseTagName$Outbound = {
163
+ repositoryId: string;
164
+ tagName: string;
165
+ };
166
+ /** @internal */
167
+ export declare const ReleaseTagName$outboundSchema: z.ZodMiniType<ReleaseTagName$Outbound, ReleaseTagName>;
168
+ export declare function releaseTagNameToJSON(releaseTagName: ReleaseTagName): string;
169
+ /** @internal */
170
+ export type ReleaseTagNameUnion$Outbound = ReleaseTagName$Outbound | string;
171
+ /** @internal */
172
+ export declare const ReleaseTagNameUnion$outboundSchema: z.ZodMiniType<ReleaseTagNameUnion$Outbound, ReleaseTagNameUnion>;
173
+ export declare function releaseTagNameUnionToJSON(releaseTagNameUnion: ReleaseTagNameUnion): string;
174
+ /** @internal */
175
+ export type SelectedItems$Outbound = {
176
+ commitShas?: Array<string> | undefined;
177
+ pullRequestNumbers?: Array<PullRequestNumber$Outbound> | undefined;
178
+ releaseTagNames?: Array<ReleaseTagName$Outbound | string> | undefined;
179
+ };
180
+ /** @internal */
181
+ export declare const SelectedItems$outboundSchema: z.ZodMiniType<SelectedItems$Outbound, SelectedItems>;
182
+ export declare function selectedItemsToJSON(selectedItems: SelectedItems): string;
183
+ /** @internal */
184
+ export type CreatePostGenerationRequest$Outbound = {
185
+ contentType: string;
186
+ lookbackWindow: string;
187
+ brandVoiceId?: string | undefined;
188
+ brandIdentityId?: string | null | undefined;
189
+ repositoryIds?: Array<string> | undefined;
190
+ integrations?: Integrations$Outbound | undefined;
191
+ github?: CreatePostGenerationGithub$Outbound | undefined;
192
+ dataPoints?: DataPoints$Outbound | undefined;
193
+ selectedItems?: SelectedItems$Outbound | undefined;
194
+ };
195
+ /** @internal */
196
+ export declare const CreatePostGenerationRequest$outboundSchema: z.ZodMiniType<CreatePostGenerationRequest$Outbound, CreatePostGenerationRequest>;
197
+ export declare function createPostGenerationRequestToJSON(createPostGenerationRequest: CreatePostGenerationRequest): string;
198
+ /** @internal */
199
+ export declare const CreatePostGenerationOrganization$inboundSchema: z.ZodMiniType<CreatePostGenerationOrganization, unknown>;
200
+ export declare function createPostGenerationOrganizationFromJSON(jsonString: string): SafeParseResult<CreatePostGenerationOrganization, SDKValidationError>;
201
+ /** @internal */
202
+ export declare const CreatePostGenerationStatus$inboundSchema: z.ZodMiniType<CreatePostGenerationStatus, unknown>;
203
+ /** @internal */
204
+ export declare const CreatePostGenerationContentTypeResponse$inboundSchema: z.ZodMiniType<CreatePostGenerationContentTypeResponse, unknown>;
205
+ /** @internal */
206
+ export declare const CreatePostGenerationLookbackWindowResponse$inboundSchema: z.ZodMiniType<CreatePostGenerationLookbackWindowResponse, unknown>;
207
+ /** @internal */
208
+ export declare const CreatePostGenerationSource$inboundSchema: z.ZodMiniType<CreatePostGenerationSource, unknown>;
209
+ /** @internal */
210
+ export declare const CreatePostGenerationJob$inboundSchema: z.ZodMiniType<CreatePostGenerationJob, unknown>;
211
+ export declare function createPostGenerationJobFromJSON(jsonString: string): SafeParseResult<CreatePostGenerationJob, SDKValidationError>;
212
+ /** @internal */
213
+ export declare const CreatePostGenerationResponse$inboundSchema: z.ZodMiniType<CreatePostGenerationResponse, unknown>;
214
+ export declare function createPostGenerationResponseFromJSON(jsonString: string): SafeParseResult<CreatePostGenerationResponse, SDKValidationError>;
215
+ //# sourceMappingURL=create-post-generation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-post-generation.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/create-post-generation.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAGjC,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAG9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAEvE,eAAO,MAAM,kBAAkB;;;;;CAKrB,CAAC;AACX,MAAM,MAAM,kBAAkB,GAAG,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEvE,eAAO,MAAM,qBAAqB;;;;;;CAMxB,CAAC;AACX,MAAM,MAAM,qBAAqB,GAAG,UAAU,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAE7E,MAAM,MAAM,YAAY,GAAG;IACzB,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAA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,2BAA2B,GACvD,MAAM,CAMR;AAED,gBAAgB;AAChB,eAAO,MAAM,8CAA8C,EAAE,CAAC,CAAC,WAAW,CACxE,gCAAgC,EAChC,OAAO,CAMP,CAAC;AAEH,wBAAgB,wCAAwC,CACtD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,gCAAgC,EAAE,kBAAkB,CAAC,CAMvE;AAED,gBAAgB;AAChB,eAAO,MAAM,wCAAwC,EAAE,CAAC,CAAC,WAAW,CAClE,0BAA0B,EAC1B,OAAO,CAC8C,CAAC;AAExD,gBAAgB;AAChB,eAAO,MAAM,qDAAqD,EAChE,CAAC,CAAC,WAAW,CAAC,uCAAuC,EAAE,OAAO,CACL,CAAC;AAE5D,gBAAgB;AAChB,eAAO,MAAM,wDAAwD,EACnE,CAAC,CAAC,WAAW,CAAC,0CAA0C,EAAE,OAAO,CACL,CAAC;AAE/D,gBAAgB;AAChB,eAAO,MAAM,wCAAwC,EAAE,CAAC,CAAC,WAAW,CAClE,0BAA0B,EAC1B,OAAO,CAC8C,CAAC;AAExD,gBAAgB;AAChB,eAAO,MAAM,qCAAqC,EAAE,CAAC,CAAC,WAAW,CAC/D,uBAAuB,EACvB,OAAO,CAgBP,CAAC;AAEH,wBAAgB,+BAA+B,CAC7C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,uBAAuB,EAAE,kBAAkB,CAAC,CAM9D;AAED,gBAAgB;AAChB,eAAO,MAAM,0CAA0C,EAAE,CAAC,CAAC,WAAW,CACpE,4BAA4B,EAC5B,OAAO,CAIP,CAAC;AAEH,wBAAgB,oCAAoC,CAClD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,4BAA4B,EAAE,kBAAkB,CAAC,CAMnE"}
@@ -0,0 +1,175 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: ccf209b5fa39
4
+ */
5
+ import * as z from "zod/v4-mini";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import * as openEnums from "../../types/enums.js";
8
+ import * as types from "../../types/primitives.js";
9
+ import { smartUnion } from "../../types/smart-union.js";
10
+ export const ContentTypeRequest = {
11
+ Changelog: "changelog",
12
+ BlogPost: "blog_post",
13
+ LinkedinPost: "linkedin_post",
14
+ TwitterPost: "twitter_post",
15
+ };
16
+ export const LookbackWindowRequest = {
17
+ CurrentDay: "current_day",
18
+ Yesterday: "yesterday",
19
+ Last7Days: "last_7_days",
20
+ Last14Days: "last_14_days",
21
+ Last30Days: "last_30_days",
22
+ };
23
+ export const CreatePostGenerationStatus = {
24
+ Queued: "queued",
25
+ Running: "running",
26
+ Completed: "completed",
27
+ Failed: "failed",
28
+ };
29
+ export const CreatePostGenerationContentTypeResponse = {
30
+ Changelog: "changelog",
31
+ BlogPost: "blog_post",
32
+ LinkedinPost: "linkedin_post",
33
+ TwitterPost: "twitter_post",
34
+ };
35
+ export const CreatePostGenerationLookbackWindowResponse = {
36
+ CurrentDay: "current_day",
37
+ Yesterday: "yesterday",
38
+ Last7Days: "last_7_days",
39
+ Last14Days: "last_14_days",
40
+ Last30Days: "last_30_days",
41
+ };
42
+ export const CreatePostGenerationSource = {
43
+ Api: "api",
44
+ Dashboard: "dashboard",
45
+ };
46
+ /** @internal */
47
+ export const ContentTypeRequest$outboundSchema = z.enum(ContentTypeRequest);
48
+ /** @internal */
49
+ export const LookbackWindowRequest$outboundSchema = z.enum(LookbackWindowRequest);
50
+ /** @internal */
51
+ export const Integrations$outboundSchema = z.object({
52
+ github: z.optional(z.array(z.string())),
53
+ });
54
+ export function integrationsToJSON(integrations) {
55
+ return JSON.stringify(Integrations$outboundSchema.parse(integrations));
56
+ }
57
+ /** @internal */
58
+ export const Repository$outboundSchema = z.object({
59
+ owner: z.string(),
60
+ repo: z.string(),
61
+ });
62
+ export function repositoryToJSON(repository) {
63
+ return JSON.stringify(Repository$outboundSchema.parse(repository));
64
+ }
65
+ /** @internal */
66
+ export const CreatePostGenerationGithub$outboundSchema = z.object({
67
+ repositories: z.array(z.lazy(() => Repository$outboundSchema)),
68
+ });
69
+ export function createPostGenerationGithubToJSON(createPostGenerationGithub) {
70
+ return JSON.stringify(CreatePostGenerationGithub$outboundSchema.parse(createPostGenerationGithub));
71
+ }
72
+ /** @internal */
73
+ export const DataPoints$outboundSchema = z.object({
74
+ includePullRequests: z._default(z.boolean(), true),
75
+ includeCommits: z._default(z.boolean(), true),
76
+ includeReleases: z._default(z.boolean(), true),
77
+ includeLinearIssues: z._default(z.boolean(), false),
78
+ });
79
+ export function dataPointsToJSON(dataPoints) {
80
+ return JSON.stringify(DataPoints$outboundSchema.parse(dataPoints));
81
+ }
82
+ /** @internal */
83
+ export const PullRequestNumber$outboundSchema = z.object({
84
+ repositoryId: z.string(),
85
+ number: z.number(),
86
+ });
87
+ export function pullRequestNumberToJSON(pullRequestNumber) {
88
+ return JSON.stringify(PullRequestNumber$outboundSchema.parse(pullRequestNumber));
89
+ }
90
+ /** @internal */
91
+ export const ReleaseTagName$outboundSchema = z.object({
92
+ repositoryId: z.string(),
93
+ tagName: z.string(),
94
+ });
95
+ export function releaseTagNameToJSON(releaseTagName) {
96
+ return JSON.stringify(ReleaseTagName$outboundSchema.parse(releaseTagName));
97
+ }
98
+ /** @internal */
99
+ export const ReleaseTagNameUnion$outboundSchema = smartUnion([z.lazy(() => ReleaseTagName$outboundSchema), z.string()]);
100
+ export function releaseTagNameUnionToJSON(releaseTagNameUnion) {
101
+ return JSON.stringify(ReleaseTagNameUnion$outboundSchema.parse(releaseTagNameUnion));
102
+ }
103
+ /** @internal */
104
+ export const SelectedItems$outboundSchema = z.object({
105
+ commitShas: z.optional(z.array(z.string())),
106
+ pullRequestNumbers: z.optional(z.array(z.lazy(() => PullRequestNumber$outboundSchema))),
107
+ releaseTagNames: z.optional(z.array(smartUnion([z.lazy(() => ReleaseTagName$outboundSchema), z.string()]))),
108
+ });
109
+ export function selectedItemsToJSON(selectedItems) {
110
+ return JSON.stringify(SelectedItems$outboundSchema.parse(selectedItems));
111
+ }
112
+ /** @internal */
113
+ export const CreatePostGenerationRequest$outboundSchema = z.object({
114
+ contentType: ContentTypeRequest$outboundSchema,
115
+ lookbackWindow: z._default(LookbackWindowRequest$outboundSchema, "last_7_days"),
116
+ brandVoiceId: z.optional(z.string()),
117
+ brandIdentityId: z.optional(z.nullable(z.string())),
118
+ repositoryIds: z.optional(z.array(z.string())),
119
+ integrations: z.optional(z.lazy(() => Integrations$outboundSchema)),
120
+ github: z.optional(z.lazy(() => CreatePostGenerationGithub$outboundSchema)),
121
+ dataPoints: z.optional(z.lazy(() => DataPoints$outboundSchema)),
122
+ selectedItems: z.optional(z.lazy(() => SelectedItems$outboundSchema)),
123
+ });
124
+ export function createPostGenerationRequestToJSON(createPostGenerationRequest) {
125
+ return JSON.stringify(CreatePostGenerationRequest$outboundSchema.parse(createPostGenerationRequest));
126
+ }
127
+ /** @internal */
128
+ export const CreatePostGenerationOrganization$inboundSchema = z.object({
129
+ id: types.string(),
130
+ slug: types.string(),
131
+ name: types.string(),
132
+ logo: types.nullable(types.string()),
133
+ });
134
+ export function createPostGenerationOrganizationFromJSON(jsonString) {
135
+ return safeParse(jsonString, (x) => CreatePostGenerationOrganization$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreatePostGenerationOrganization' from JSON`);
136
+ }
137
+ /** @internal */
138
+ export const CreatePostGenerationStatus$inboundSchema = openEnums.inboundSchema(CreatePostGenerationStatus);
139
+ /** @internal */
140
+ export const CreatePostGenerationContentTypeResponse$inboundSchema = openEnums
141
+ .inboundSchema(CreatePostGenerationContentTypeResponse);
142
+ /** @internal */
143
+ export const CreatePostGenerationLookbackWindowResponse$inboundSchema = openEnums
144
+ .inboundSchema(CreatePostGenerationLookbackWindowResponse);
145
+ /** @internal */
146
+ export const CreatePostGenerationSource$inboundSchema = openEnums.inboundSchema(CreatePostGenerationSource);
147
+ /** @internal */
148
+ export const CreatePostGenerationJob$inboundSchema = z.object({
149
+ id: types.string(),
150
+ organizationId: types.string(),
151
+ status: CreatePostGenerationStatus$inboundSchema,
152
+ contentType: CreatePostGenerationContentTypeResponse$inboundSchema,
153
+ lookbackWindow: CreatePostGenerationLookbackWindowResponse$inboundSchema,
154
+ repositoryIds: z.array(types.string()),
155
+ brandVoiceId: types.nullable(types.string()),
156
+ workflowRunId: types.nullable(types.string()),
157
+ postId: types.nullable(types.string()),
158
+ error: types.nullable(types.string()),
159
+ source: CreatePostGenerationSource$inboundSchema,
160
+ createdAt: types.string(),
161
+ updatedAt: types.string(),
162
+ completedAt: types.nullable(types.string()),
163
+ });
164
+ export function createPostGenerationJobFromJSON(jsonString) {
165
+ return safeParse(jsonString, (x) => CreatePostGenerationJob$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreatePostGenerationJob' from JSON`);
166
+ }
167
+ /** @internal */
168
+ export const CreatePostGenerationResponse$inboundSchema = z.object({
169
+ organization: z.lazy(() => CreatePostGenerationOrganization$inboundSchema),
170
+ job: z.lazy(() => CreatePostGenerationJob$inboundSchema),
171
+ });
172
+ export function createPostGenerationResponseFromJSON(jsonString) {
173
+ return safeParse(jsonString, (x) => CreatePostGenerationResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreatePostGenerationResponse' from JSON`);
174
+ }
175
+ //# sourceMappingURL=create-post-generation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-post-generation.js","sourceRoot":"","sources":["../../../../src/models/operations/create-post-generation.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,KAAK,SAAS,MAAM,sBAAsB,CAAC;AAGlD,OAAO,KAAK,KAAK,MAAM,2BAA2B,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAGxD,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,SAAS,EAAE,WAAW;IACtB,QAAQ,EAAE,WAAW;IACrB,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qCAAqC,CAAC;CACzD,CAAC,CAAC;AAEH,MAAM,UAAU,oCAAoC,CAClD,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,0CAA0C,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACtE,0DAA0D,CAC3D,CAAC;AACJ,CAAC"}
@@ -0,0 +1,41 @@
1
+ import * as z from "zod/v4-mini";
2
+ import { Result as SafeParseResult } from "../../types/fp.js";
3
+ import { SDKValidationError } from "../errors/sdk-validation-error.js";
4
+ export type GetBrandIdentityRequest = {
5
+ brandIdentityId: string;
6
+ };
7
+ export type GetBrandIdentityBrandIdentity = {
8
+ id: string;
9
+ name: string;
10
+ isDefault: boolean;
11
+ };
12
+ export type GetBrandIdentityOrganization = {
13
+ id: string;
14
+ slug: string;
15
+ name: string;
16
+ logo: string | null;
17
+ };
18
+ /**
19
+ * Brand identity fetched successfully
20
+ */
21
+ export type GetBrandIdentityResponse = {
22
+ brandIdentity: GetBrandIdentityBrandIdentity | null;
23
+ organization: GetBrandIdentityOrganization;
24
+ };
25
+ /** @internal */
26
+ export type GetBrandIdentityRequest$Outbound = {
27
+ brandIdentityId: string;
28
+ };
29
+ /** @internal */
30
+ export declare const GetBrandIdentityRequest$outboundSchema: z.ZodMiniType<GetBrandIdentityRequest$Outbound, GetBrandIdentityRequest>;
31
+ export declare function getBrandIdentityRequestToJSON(getBrandIdentityRequest: GetBrandIdentityRequest): string;
32
+ /** @internal */
33
+ export declare const GetBrandIdentityBrandIdentity$inboundSchema: z.ZodMiniType<GetBrandIdentityBrandIdentity, unknown>;
34
+ export declare function getBrandIdentityBrandIdentityFromJSON(jsonString: string): SafeParseResult<GetBrandIdentityBrandIdentity, SDKValidationError>;
35
+ /** @internal */
36
+ export declare const GetBrandIdentityOrganization$inboundSchema: z.ZodMiniType<GetBrandIdentityOrganization, unknown>;
37
+ export declare function getBrandIdentityOrganizationFromJSON(jsonString: string): SafeParseResult<GetBrandIdentityOrganization, SDKValidationError>;
38
+ /** @internal */
39
+ export declare const GetBrandIdentityResponse$inboundSchema: z.ZodMiniType<GetBrandIdentityResponse, unknown>;
40
+ export declare function getBrandIdentityResponseFromJSON(jsonString: string): SafeParseResult<GetBrandIdentityResponse, SDKValidationError>;
41
+ //# sourceMappingURL=get-brand-identity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-brand-identity.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/get-brand-identity.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAEvE,MAAM,MAAM,uBAAuB,GAAG;IACpC,eAAe,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG;IAC1C,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG;IACzC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;CACrB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC,aAAa,EAAE,6BAA6B,GAAG,IAAI,CAAC;IACpD,YAAY,EAAE,4BAA4B,CAAC;CAC5C,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,gCAAgC,GAAG;IAC7C,eAAe,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,sCAAsC,EAAE,CAAC,CAAC,WAAW,CAChE,gCAAgC,EAChC,uBAAuB,CAGvB,CAAC;AAEH,wBAAgB,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