@amerged/ohmyhost-sdk 0.1.57 → 0.1.58

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amerged/ohmyhost-sdk",
3
- "version": "0.1.57",
3
+ "version": "0.1.58",
4
4
  "type": "module",
5
5
  "engines": {
6
6
  "node": ">=22"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ohmyhost/sdk-ts",
3
- "version": "0.1.57",
3
+ "version": "0.1.58",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "exports": {
@@ -1838,10 +1838,23 @@ export const getAccountProfile = <ThrowOnError extends boolean = true>(
1838
1838
  export const recordSignupSource = <ThrowOnError extends boolean = true>(
1839
1839
  parameters: {
1840
1840
  source: string | null;
1841
+ utm?: {
1842
+ [key: string]: string;
1843
+ };
1841
1844
  },
1842
1845
  options?: Options<never, ThrowOnError>,
1843
1846
  ): RequestResult<RecordSignupSourceResponses, RecordSignupSourceErrors, ThrowOnError, "data"> => {
1844
- const params = buildClientParams([parameters], [{ args: [{ in: "body", key: "source" }] }]);
1847
+ const params = buildClientParams(
1848
+ [parameters],
1849
+ [
1850
+ {
1851
+ args: [
1852
+ { in: "body", key: "source" },
1853
+ { in: "body", key: "utm" },
1854
+ ],
1855
+ },
1856
+ ],
1857
+ );
1845
1858
  return (options?.client ?? client).put<
1846
1859
  RecordSignupSourceResponses,
1847
1860
  RecordSignupSourceErrors,
@@ -4498,6 +4498,12 @@ export type GetAccountProfileResponse =
4498
4498
  export type RecordSignupSourceData = {
4499
4499
  body: {
4500
4500
  source: string | null;
4501
+ /**
4502
+ * Optional first campaign snapshot; empty freezes an empty snapshot. Up to 20 lowercase utm_ keys, values up to 256 Unicode characters, and at most 1024 UTF-8 bytes as JSON.
4503
+ */
4504
+ utm?: {
4505
+ [key: string]: string;
4506
+ };
4501
4507
  };
4502
4508
  path?: never;
4503
4509
  query?: never;