@getlatedev/node 0.2.1161 → 0.2.1162

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 CHANGED
@@ -11234,6 +11234,10 @@ type Profile = {
11234
11234
  * IANA timezone new posts on this profile use when the request names no `timezone`. Null means UTC.
11235
11235
  */
11236
11236
  timezone?: (string) | null;
11237
+ /**
11238
+ * Your own identifier for this profile, set on create or update. Null when none is set.
11239
+ */
11240
+ externalId?: (string) | null;
11237
11241
  isDefault?: boolean;
11238
11242
  /**
11239
11243
  * Only present when includeOverLimit=true. Indicates if this profile exceeds the plan limit.
@@ -20355,6 +20359,10 @@ type GetUserError = (ErrorResponse | unknown | {
20355
20359
  });
20356
20360
  type ListProfilesData = {
20357
20361
  query?: {
20362
+ /**
20363
+ * Exact-match filter on the externalId you set on the profile, to find the profile of one of your tenants without storing its Zernio id. Team members can each own a profile with the same externalId, so the result is a list.
20364
+ */
20365
+ externalId?: string;
20358
20366
  /**
20359
20367
  * When true, includes over-limit profiles (marked with isOverLimit: true).
20360
20368
  */
@@ -20384,6 +20392,10 @@ type CreateProfileData = {
20384
20392
  * IANA timezone new posts on this profile use when they name no `timezone`. Omit to keep UTC. An unknown name returns 400.
20385
20393
  */
20386
20394
  timezone?: string;
20395
+ /**
20396
+ * Your own identifier for this profile, typically the id of the tenant or client it serves in your system (1 to 255 characters, trimmed). Unique among the profiles of the user who owns the profile: a duplicate returns 409 profile_external_id_conflict. Look a profile up by it with GET /v1/profiles?externalId=.
20397
+ */
20398
+ externalId?: string;
20387
20399
  };
20388
20400
  headers?: {
20389
20401
  /**
@@ -20470,6 +20482,10 @@ type UpdateProfileData = {
20470
20482
  * IANA timezone new posts on this profile use when they name no `timezone`. Set to null to go back to UTC. An unknown name returns 400.
20471
20483
  */
20472
20484
  timezone?: (string) | null;
20485
+ /**
20486
+ * Your own identifier for this profile (1 to 255 characters, trimmed). Set to null to clear it. A value another profile of the same owner already holds returns 409 profile_external_id_conflict.
20487
+ */
20488
+ externalId?: (string) | null;
20473
20489
  isDefault?: boolean;
20474
20490
  };
20475
20491
  path: {
package/dist/index.d.ts CHANGED
@@ -11234,6 +11234,10 @@ type Profile = {
11234
11234
  * IANA timezone new posts on this profile use when the request names no `timezone`. Null means UTC.
11235
11235
  */
11236
11236
  timezone?: (string) | null;
11237
+ /**
11238
+ * Your own identifier for this profile, set on create or update. Null when none is set.
11239
+ */
11240
+ externalId?: (string) | null;
11237
11241
  isDefault?: boolean;
11238
11242
  /**
11239
11243
  * Only present when includeOverLimit=true. Indicates if this profile exceeds the plan limit.
@@ -20355,6 +20359,10 @@ type GetUserError = (ErrorResponse | unknown | {
20355
20359
  });
20356
20360
  type ListProfilesData = {
20357
20361
  query?: {
20362
+ /**
20363
+ * Exact-match filter on the externalId you set on the profile, to find the profile of one of your tenants without storing its Zernio id. Team members can each own a profile with the same externalId, so the result is a list.
20364
+ */
20365
+ externalId?: string;
20358
20366
  /**
20359
20367
  * When true, includes over-limit profiles (marked with isOverLimit: true).
20360
20368
  */
@@ -20384,6 +20392,10 @@ type CreateProfileData = {
20384
20392
  * IANA timezone new posts on this profile use when they name no `timezone`. Omit to keep UTC. An unknown name returns 400.
20385
20393
  */
20386
20394
  timezone?: string;
20395
+ /**
20396
+ * Your own identifier for this profile, typically the id of the tenant or client it serves in your system (1 to 255 characters, trimmed). Unique among the profiles of the user who owns the profile: a duplicate returns 409 profile_external_id_conflict. Look a profile up by it with GET /v1/profiles?externalId=.
20397
+ */
20398
+ externalId?: string;
20387
20399
  };
20388
20400
  headers?: {
20389
20401
  /**
@@ -20470,6 +20482,10 @@ type UpdateProfileData = {
20470
20482
  * IANA timezone new posts on this profile use when they name no `timezone`. Set to null to go back to UTC. An unknown name returns 400.
20471
20483
  */
20472
20484
  timezone?: (string) | null;
20485
+ /**
20486
+ * Your own identifier for this profile (1 to 255 characters, trimmed). Set to null to clear it. A value another profile of the same owner already holds returns 409 profile_external_id_conflict.
20487
+ */
20488
+ externalId?: (string) | null;
20473
20489
  isDefault?: boolean;
20474
20490
  };
20475
20491
  path: {
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: "@getlatedev/node",
39
- version: "0.2.1161",
39
+ version: "0.2.1162",
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: "@getlatedev/node",
8
- version: "0.2.1161",
8
+ version: "0.2.1162",
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getlatedev/node",
3
- "version": "0.2.1161",
3
+ "version": "0.2.1162",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -1267,7 +1267,7 @@ export const getUser = <ThrowOnError extends boolean = false>(options: OptionsLe
1267
1267
 
1268
1268
  /**
1269
1269
  * List profiles
1270
- * 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.
1270
+ * Returns profiles sorted default-first, then by creation date. Filter with name or externalId (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.
1271
1271
  */
1272
1272
  export const listProfiles = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<ListProfilesData, ThrowOnError>) => {
1273
1273
  return (options?.client ?? client).get<ListProfilesResponse, ListProfilesError, ThrowOnError>({
@@ -1278,7 +1278,7 @@ export const listProfiles = <ThrowOnError extends boolean = false>(options?: Opt
1278
1278
 
1279
1279
  /**
1280
1280
  * Create profile
1281
- * Creates a new profile with a name, optional description, and color. Names are unique per team: 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.
1281
+ * Creates a new profile with a name, optional description, and color. Names are unique per team: a duplicate returns a 409 whose details.existingProfileId carries the id of the existing profile. Set externalId to your own tenant or client id to find the profile later without storing its Zernio id. A duplicate externalId returns the same kind of 409, with code profile_external_id_conflict. 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.
1282
1282
  */
1283
1283
  export const createProfile = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<CreateProfileData, ThrowOnError>) => {
1284
1284
  return (options?.client ?? client).post<CreateProfileResponse, CreateProfileError, ThrowOnError>({
@@ -1300,7 +1300,7 @@ export const getProfile = <ThrowOnError extends boolean = false>(options: Option
1300
1300
 
1301
1301
  /**
1302
1302
  * Update profile
1303
- * Updates a profile's name, description, color, default timezone, or default status.
1303
+ * Updates a profile's name, description, color, default timezone, externalId, or default status.
1304
1304
  */
1305
1305
  export const updateProfile = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<UpdateProfileData, ThrowOnError>) => {
1306
1306
  return (options?.client ?? client).put<UpdateProfileResponse, UpdateProfileError, ThrowOnError>({
@@ -9636,6 +9636,10 @@ export type Profile = {
9636
9636
  * IANA timezone new posts on this profile use when the request names no `timezone`. Null means UTC.
9637
9637
  */
9638
9638
  timezone?: (string) | null;
9639
+ /**
9640
+ * Your own identifier for this profile, set on create or update. Null when none is set.
9641
+ */
9642
+ externalId?: (string) | null;
9639
9643
  isDefault?: boolean;
9640
9644
  /**
9641
9645
  * Only present when includeOverLimit=true. Indicates if this profile exceeds the plan limit.
@@ -19222,6 +19226,10 @@ export type GetUserError = (ErrorResponse | unknown | {
19222
19226
 
19223
19227
  export type ListProfilesData = {
19224
19228
  query?: {
19229
+ /**
19230
+ * Exact-match filter on the externalId you set on the profile, to find the profile of one of your tenants without storing its Zernio id. Team members can each own a profile with the same externalId, so the result is a list.
19231
+ */
19232
+ externalId?: string;
19225
19233
  /**
19226
19234
  * When true, includes over-limit profiles (marked with isOverLimit: true).
19227
19235
  */
@@ -19254,6 +19262,10 @@ export type CreateProfileData = {
19254
19262
  * IANA timezone new posts on this profile use when they name no `timezone`. Omit to keep UTC. An unknown name returns 400.
19255
19263
  */
19256
19264
  timezone?: string;
19265
+ /**
19266
+ * Your own identifier for this profile, typically the id of the tenant or client it serves in your system (1 to 255 characters, trimmed). Unique among the profiles of the user who owns the profile: a duplicate returns 409 profile_external_id_conflict. Look a profile up by it with GET /v1/profiles?externalId=.
19267
+ */
19268
+ externalId?: string;
19257
19269
  };
19258
19270
  headers?: {
19259
19271
  /**
@@ -19346,6 +19358,10 @@ export type UpdateProfileData = {
19346
19358
  * IANA timezone new posts on this profile use when they name no `timezone`. Set to null to go back to UTC. An unknown name returns 400.
19347
19359
  */
19348
19360
  timezone?: (string) | null;
19361
+ /**
19362
+ * Your own identifier for this profile (1 to 255 characters, trimmed). Set to null to clear it. A value another profile of the same owner already holds returns 409 profile_external_id_conflict.
19363
+ */
19364
+ externalId?: (string) | null;
19349
19365
  isDefault?: boolean;
19350
19366
  };
19351
19367
  path: {