@zernio/node 0.2.409 → 0.2.411
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/dist/index.d.mts +32 -2
- package/dist/index.d.ts +32 -2
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/generated/sdk.gen.ts +2 -2
- package/src/generated/types.gen.ts +32 -2
package/dist/index.d.mts
CHANGED
|
@@ -4632,6 +4632,18 @@ type ProfileGetResponse = {
|
|
|
4632
4632
|
};
|
|
4633
4633
|
type ProfilesListResponse = {
|
|
4634
4634
|
profiles?: Array<Profile>;
|
|
4635
|
+
/**
|
|
4636
|
+
* Total matching profiles across all pages. Present only when limit or skip was passed.
|
|
4637
|
+
*/
|
|
4638
|
+
total?: number;
|
|
4639
|
+
/**
|
|
4640
|
+
* Offset applied. Present only when limit or skip was passed.
|
|
4641
|
+
*/
|
|
4642
|
+
skip?: number;
|
|
4643
|
+
/**
|
|
4644
|
+
* Echo of the limit query param. Present only when it was passed.
|
|
4645
|
+
*/
|
|
4646
|
+
limit?: number;
|
|
4635
4647
|
};
|
|
4636
4648
|
type ProfileUpdateResponse = {
|
|
4637
4649
|
message?: string;
|
|
@@ -10194,10 +10206,22 @@ type ListProfilesData = {
|
|
|
10194
10206
|
* When true, includes over-limit profiles (marked with isOverLimit: true).
|
|
10195
10207
|
*/
|
|
10196
10208
|
includeOverLimit?: boolean;
|
|
10209
|
+
/**
|
|
10210
|
+
* Page size. When limit or skip is present, the response includes total and skip (and echoes limit).
|
|
10211
|
+
*/
|
|
10212
|
+
limit?: number;
|
|
10213
|
+
/**
|
|
10214
|
+
* Exact-match filter on the profile name. Useful to recover a profile id after an ambiguous create (timeout followed by a 409 on retry).
|
|
10215
|
+
*/
|
|
10216
|
+
name?: string;
|
|
10217
|
+
/**
|
|
10218
|
+
* Number of profiles to skip, applied after sorting and filtering.
|
|
10219
|
+
*/
|
|
10220
|
+
skip?: number;
|
|
10197
10221
|
};
|
|
10198
10222
|
};
|
|
10199
10223
|
type ListProfilesResponse = (ProfilesListResponse);
|
|
10200
|
-
type ListProfilesError = ({
|
|
10224
|
+
type ListProfilesError = (ErrorResponse | {
|
|
10201
10225
|
error?: string;
|
|
10202
10226
|
});
|
|
10203
10227
|
type CreateProfileData = {
|
|
@@ -10206,6 +10230,12 @@ type CreateProfileData = {
|
|
|
10206
10230
|
description?: string;
|
|
10207
10231
|
color?: string;
|
|
10208
10232
|
};
|
|
10233
|
+
headers?: {
|
|
10234
|
+
/**
|
|
10235
|
+
* Optional client-generated unique key (e.g. a UUID) that makes create retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409.
|
|
10236
|
+
*/
|
|
10237
|
+
'Idempotency-Key'?: string;
|
|
10238
|
+
};
|
|
10209
10239
|
};
|
|
10210
10240
|
type CreateProfileResponse = (ProfileCreateResponse);
|
|
10211
10241
|
type CreateProfileError = (unknown | {
|
|
@@ -23694,7 +23724,7 @@ type ListAdCampaignsResponse = ({
|
|
|
23694
23724
|
campaigns?: Array<AdCampaign>;
|
|
23695
23725
|
pagination?: Pagination;
|
|
23696
23726
|
});
|
|
23697
|
-
type ListAdCampaignsError = ({
|
|
23727
|
+
type ListAdCampaignsError = (ErrorResponse | {
|
|
23698
23728
|
error?: string;
|
|
23699
23729
|
} | unknown);
|
|
23700
23730
|
type CreateAdCampaignData = {
|
package/dist/index.d.ts
CHANGED
|
@@ -4632,6 +4632,18 @@ type ProfileGetResponse = {
|
|
|
4632
4632
|
};
|
|
4633
4633
|
type ProfilesListResponse = {
|
|
4634
4634
|
profiles?: Array<Profile>;
|
|
4635
|
+
/**
|
|
4636
|
+
* Total matching profiles across all pages. Present only when limit or skip was passed.
|
|
4637
|
+
*/
|
|
4638
|
+
total?: number;
|
|
4639
|
+
/**
|
|
4640
|
+
* Offset applied. Present only when limit or skip was passed.
|
|
4641
|
+
*/
|
|
4642
|
+
skip?: number;
|
|
4643
|
+
/**
|
|
4644
|
+
* Echo of the limit query param. Present only when it was passed.
|
|
4645
|
+
*/
|
|
4646
|
+
limit?: number;
|
|
4635
4647
|
};
|
|
4636
4648
|
type ProfileUpdateResponse = {
|
|
4637
4649
|
message?: string;
|
|
@@ -10194,10 +10206,22 @@ type ListProfilesData = {
|
|
|
10194
10206
|
* When true, includes over-limit profiles (marked with isOverLimit: true).
|
|
10195
10207
|
*/
|
|
10196
10208
|
includeOverLimit?: boolean;
|
|
10209
|
+
/**
|
|
10210
|
+
* Page size. When limit or skip is present, the response includes total and skip (and echoes limit).
|
|
10211
|
+
*/
|
|
10212
|
+
limit?: number;
|
|
10213
|
+
/**
|
|
10214
|
+
* Exact-match filter on the profile name. Useful to recover a profile id after an ambiguous create (timeout followed by a 409 on retry).
|
|
10215
|
+
*/
|
|
10216
|
+
name?: string;
|
|
10217
|
+
/**
|
|
10218
|
+
* Number of profiles to skip, applied after sorting and filtering.
|
|
10219
|
+
*/
|
|
10220
|
+
skip?: number;
|
|
10197
10221
|
};
|
|
10198
10222
|
};
|
|
10199
10223
|
type ListProfilesResponse = (ProfilesListResponse);
|
|
10200
|
-
type ListProfilesError = ({
|
|
10224
|
+
type ListProfilesError = (ErrorResponse | {
|
|
10201
10225
|
error?: string;
|
|
10202
10226
|
});
|
|
10203
10227
|
type CreateProfileData = {
|
|
@@ -10206,6 +10230,12 @@ type CreateProfileData = {
|
|
|
10206
10230
|
description?: string;
|
|
10207
10231
|
color?: string;
|
|
10208
10232
|
};
|
|
10233
|
+
headers?: {
|
|
10234
|
+
/**
|
|
10235
|
+
* Optional client-generated unique key (e.g. a UUID) that makes create retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409.
|
|
10236
|
+
*/
|
|
10237
|
+
'Idempotency-Key'?: string;
|
|
10238
|
+
};
|
|
10209
10239
|
};
|
|
10210
10240
|
type CreateProfileResponse = (ProfileCreateResponse);
|
|
10211
10241
|
type CreateProfileError = (unknown | {
|
|
@@ -23694,7 +23724,7 @@ type ListAdCampaignsResponse = ({
|
|
|
23694
23724
|
campaigns?: Array<AdCampaign>;
|
|
23695
23725
|
pagination?: Pagination;
|
|
23696
23726
|
});
|
|
23697
|
-
type ListAdCampaignsError = ({
|
|
23727
|
+
type ListAdCampaignsError = (ErrorResponse | {
|
|
23698
23728
|
error?: string;
|
|
23699
23729
|
} | unknown);
|
|
23700
23730
|
type CreateAdCampaignData = {
|
package/dist/index.js
CHANGED
|
@@ -36,7 +36,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
36
36
|
// package.json
|
|
37
37
|
var package_default = {
|
|
38
38
|
name: "@zernio/node",
|
|
39
|
-
version: "0.2.
|
|
39
|
+
version: "0.2.411",
|
|
40
40
|
description: "The official Node.js library for the Zernio API",
|
|
41
41
|
main: "dist/index.js",
|
|
42
42
|
module: "dist/index.mjs",
|
package/dist/index.mjs
CHANGED
|
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
5
5
|
// package.json
|
|
6
6
|
var package_default = {
|
|
7
7
|
name: "@zernio/node",
|
|
8
|
-
version: "0.2.
|
|
8
|
+
version: "0.2.411",
|
|
9
9
|
description: "The official Node.js library for the Zernio API",
|
|
10
10
|
main: "dist/index.js",
|
|
11
11
|
module: "dist/index.mjs",
|
package/package.json
CHANGED
package/src/generated/sdk.gen.ts
CHANGED
|
@@ -978,7 +978,7 @@ export const getUser = <ThrowOnError extends boolean = false>(options: OptionsLe
|
|
|
978
978
|
|
|
979
979
|
/**
|
|
980
980
|
* List profiles
|
|
981
|
-
* Returns profiles sorted by creation date. Use includeOverLimit=true to include profiles that exceed the plan limit.
|
|
981
|
+
* Returns profiles sorted default-first, then by creation date. Filter with name (exact match) and paginate with limit/skip; without those params the full list is returned unchanged. Use includeOverLimit=true to include profiles that exceed the plan limit.
|
|
982
982
|
*/
|
|
983
983
|
export const listProfiles = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<ListProfilesData, ThrowOnError>) => {
|
|
984
984
|
return (options?.client ?? client).get<ListProfilesResponse, ListProfilesError, ThrowOnError>({
|
|
@@ -989,7 +989,7 @@ export const listProfiles = <ThrowOnError extends boolean = false>(options?: Opt
|
|
|
989
989
|
|
|
990
990
|
/**
|
|
991
991
|
* Create profile
|
|
992
|
-
* Creates a new profile with a name, optional description, and color.
|
|
992
|
+
* Creates a new profile with a name, optional description, and color. Names are unique per workspace: a duplicate returns a 409 whose details.existingProfileId carries the id of the existing profile. Send an Idempotency-Key header to make retries safe: a retried create with the same key and body replays the original 201 (same _id) instead of conflicting.
|
|
993
993
|
*/
|
|
994
994
|
export const createProfile = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<CreateProfileData, ThrowOnError>) => {
|
|
995
995
|
return (options?.client ?? client).post<CreateProfileResponse, CreateProfileError, ThrowOnError>({
|
|
@@ -3609,6 +3609,18 @@ export type ProfileGetResponse = {
|
|
|
3609
3609
|
|
|
3610
3610
|
export type ProfilesListResponse = {
|
|
3611
3611
|
profiles?: Array<Profile>;
|
|
3612
|
+
/**
|
|
3613
|
+
* Total matching profiles across all pages. Present only when limit or skip was passed.
|
|
3614
|
+
*/
|
|
3615
|
+
total?: number;
|
|
3616
|
+
/**
|
|
3617
|
+
* Offset applied. Present only when limit or skip was passed.
|
|
3618
|
+
*/
|
|
3619
|
+
skip?: number;
|
|
3620
|
+
/**
|
|
3621
|
+
* Echo of the limit query param. Present only when it was passed.
|
|
3622
|
+
*/
|
|
3623
|
+
limit?: number;
|
|
3612
3624
|
};
|
|
3613
3625
|
|
|
3614
3626
|
export type ProfileUpdateResponse = {
|
|
@@ -9474,12 +9486,24 @@ export type ListProfilesData = {
|
|
|
9474
9486
|
* When true, includes over-limit profiles (marked with isOverLimit: true).
|
|
9475
9487
|
*/
|
|
9476
9488
|
includeOverLimit?: boolean;
|
|
9489
|
+
/**
|
|
9490
|
+
* Page size. When limit or skip is present, the response includes total and skip (and echoes limit).
|
|
9491
|
+
*/
|
|
9492
|
+
limit?: number;
|
|
9493
|
+
/**
|
|
9494
|
+
* Exact-match filter on the profile name. Useful to recover a profile id after an ambiguous create (timeout followed by a 409 on retry).
|
|
9495
|
+
*/
|
|
9496
|
+
name?: string;
|
|
9497
|
+
/**
|
|
9498
|
+
* Number of profiles to skip, applied after sorting and filtering.
|
|
9499
|
+
*/
|
|
9500
|
+
skip?: number;
|
|
9477
9501
|
};
|
|
9478
9502
|
};
|
|
9479
9503
|
|
|
9480
9504
|
export type ListProfilesResponse = (ProfilesListResponse);
|
|
9481
9505
|
|
|
9482
|
-
export type ListProfilesError = ({
|
|
9506
|
+
export type ListProfilesError = (ErrorResponse | {
|
|
9483
9507
|
error?: string;
|
|
9484
9508
|
});
|
|
9485
9509
|
|
|
@@ -9489,6 +9513,12 @@ export type CreateProfileData = {
|
|
|
9489
9513
|
description?: string;
|
|
9490
9514
|
color?: string;
|
|
9491
9515
|
};
|
|
9516
|
+
headers?: {
|
|
9517
|
+
/**
|
|
9518
|
+
* Optional client-generated unique key (e.g. a UUID) that makes create retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409.
|
|
9519
|
+
*/
|
|
9520
|
+
'Idempotency-Key'?: string;
|
|
9521
|
+
};
|
|
9492
9522
|
};
|
|
9493
9523
|
|
|
9494
9524
|
export type CreateProfileResponse = (ProfileCreateResponse);
|
|
@@ -24054,7 +24084,7 @@ export type ListAdCampaignsResponse = ({
|
|
|
24054
24084
|
pagination?: Pagination;
|
|
24055
24085
|
});
|
|
24056
24086
|
|
|
24057
|
-
export type ListAdCampaignsError = ({
|
|
24087
|
+
export type ListAdCampaignsError = (ErrorResponse | {
|
|
24058
24088
|
error?: string;
|
|
24059
24089
|
} | unknown);
|
|
24060
24090
|
|