@coworkee/client 0.0.1032 → 0.0.1034

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/schema.d.ts CHANGED
@@ -1069,6 +1069,50 @@ export interface paths {
1069
1069
  patch?: never;
1070
1070
  trace?: never;
1071
1071
  };
1072
+ "/api/v1/identity/users/{id}/passkeys/reset": {
1073
+ parameters: {
1074
+ query?: never;
1075
+ header?: never;
1076
+ path?: never;
1077
+ cookie?: never;
1078
+ };
1079
+ get?: never;
1080
+ put?: never;
1081
+ post: {
1082
+ parameters: {
1083
+ query?: never;
1084
+ header?: never;
1085
+ path: {
1086
+ id: string;
1087
+ };
1088
+ cookie?: never;
1089
+ };
1090
+ requestBody?: never;
1091
+ responses: {
1092
+ /** @description No Content */
1093
+ 204: {
1094
+ headers: {
1095
+ [name: string]: unknown;
1096
+ };
1097
+ content?: never;
1098
+ };
1099
+ /** @description Bad Request */
1100
+ 400: {
1101
+ headers: {
1102
+ [name: string]: unknown;
1103
+ };
1104
+ content: {
1105
+ "application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
1106
+ };
1107
+ };
1108
+ };
1109
+ };
1110
+ delete?: never;
1111
+ options?: never;
1112
+ head?: never;
1113
+ patch?: never;
1114
+ trace?: never;
1115
+ };
1072
1116
  "/api/v1/identity/users/{id}/logins": {
1073
1117
  parameters: {
1074
1118
  query?: never;
@@ -11111,6 +11155,8 @@ export interface components {
11111
11155
  EntityHistoryPreviewDto: {
11112
11156
  undeletes: boolean;
11113
11157
  fields: components["schemas"]["EntityHistoryFieldDto"][];
11158
+ /** @default */
11159
+ version: string;
11114
11160
  };
11115
11161
  /**
11116
11162
  * @default After
@@ -11122,6 +11168,7 @@ export interface components {
11122
11168
  entryId: string;
11123
11169
  property?: null | string;
11124
11170
  mode: components["schemas"]["EntityHistoryRestoreMode"];
11171
+ version?: null | string;
11125
11172
  };
11126
11173
  EntityHistorySetDto: {
11127
11174
  entityType: string;
@@ -11647,6 +11694,11 @@ export interface components {
11647
11694
  address?: null | components["schemas"]["PostalAddress"];
11648
11695
  /** @default true */
11649
11696
  hasPassword: boolean;
11697
+ /**
11698
+ * Format: int32
11699
+ * @default 0
11700
+ */
11701
+ passkeyCount: number | string;
11650
11702
  };
11651
11703
  PushDeviceDto: {
11652
11704
  /** Format: uuid */
@@ -12188,6 +12240,11 @@ export interface components {
12188
12240
  /** @default false */
12189
12241
  hasAvatar: boolean;
12190
12242
  logins?: null | components["schemas"]["UserLoginDto"][];
12243
+ /**
12244
+ * Format: int32
12245
+ * @default 0
12246
+ */
12247
+ passkeyCount: number | string;
12191
12248
  };
12192
12249
  UserDto: {
12193
12250
  /** Format: uuid */
package/openapi.json CHANGED
@@ -952,6 +952,39 @@
952
952
  }
953
953
  }
954
954
  },
955
+ "/api/v1/identity/users/{id}/passkeys/reset": {
956
+ "post": {
957
+ "tags": [
958
+ "Identity"
959
+ ],
960
+ "parameters": [
961
+ {
962
+ "name": "id",
963
+ "in": "path",
964
+ "required": true,
965
+ "schema": {
966
+ "type": "string",
967
+ "format": "uuid"
968
+ }
969
+ }
970
+ ],
971
+ "responses": {
972
+ "204": {
973
+ "description": "No Content"
974
+ },
975
+ "400": {
976
+ "description": "Bad Request",
977
+ "content": {
978
+ "application/problem+json": {
979
+ "schema": {
980
+ "$ref": "#/components/schemas/HttpValidationProblemDetails"
981
+ }
982
+ }
983
+ }
984
+ }
985
+ }
986
+ }
987
+ },
955
988
  "/api/v1/identity/users/{id}/logins": {
956
989
  "delete": {
957
990
  "tags": [
@@ -11801,6 +11834,10 @@
11801
11834
  "items": {
11802
11835
  "$ref": "#/components/schemas/EntityHistoryFieldDto"
11803
11836
  }
11837
+ },
11838
+ "version": {
11839
+ "type": "string",
11840
+ "default": ""
11804
11841
  }
11805
11842
  }
11806
11843
  },
@@ -11831,6 +11868,12 @@
11831
11868
  },
11832
11869
  "mode": {
11833
11870
  "$ref": "#/components/schemas/EntityHistoryRestoreMode"
11871
+ },
11872
+ "version": {
11873
+ "type": [
11874
+ "null",
11875
+ "string"
11876
+ ]
11834
11877
  }
11835
11878
  }
11836
11879
  },
@@ -14046,7 +14089,8 @@
14046
14089
  "firstName",
14047
14090
  "lastName",
14048
14091
  "phoneNumber",
14049
- "hasPassword"
14092
+ "hasPassword",
14093
+ "passkeyCount"
14050
14094
  ],
14051
14095
  "type": "object",
14052
14096
  "properties": {
@@ -14090,6 +14134,15 @@
14090
14134
  "hasPassword": {
14091
14135
  "type": "boolean",
14092
14136
  "default": true
14137
+ },
14138
+ "passkeyCount": {
14139
+ "pattern": "^-?(?:0|[1-9]\\d*)$",
14140
+ "type": [
14141
+ "integer",
14142
+ "string"
14143
+ ],
14144
+ "format": "int32",
14145
+ "default": 0
14093
14146
  }
14094
14147
  }
14095
14148
  },
@@ -16340,7 +16393,8 @@
16340
16393
  "groups",
16341
16394
  "mustChangePassword",
16342
16395
  "hasPassword",
16343
- "hasAvatar"
16396
+ "hasAvatar",
16397
+ "passkeyCount"
16344
16398
  ],
16345
16399
  "type": "object",
16346
16400
  "properties": {
@@ -16437,6 +16491,15 @@
16437
16491
  "items": {
16438
16492
  "$ref": "#/components/schemas/UserLoginDto"
16439
16493
  }
16494
+ },
16495
+ "passkeyCount": {
16496
+ "pattern": "^-?(?:0|[1-9]\\d*)$",
16497
+ "type": [
16498
+ "integer",
16499
+ "string"
16500
+ ],
16501
+ "format": "int32",
16502
+ "default": 0
16440
16503
  }
16441
16504
  }
16442
16505
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coworkee/client",
3
- "version": "0.0.1032",
3
+ "version": "0.0.1034",
4
4
  "description": "Typed client for the API of Coworkee apps: OpenAPI types, BFF session, theme, texts and OData helpers",
5
5
  "license": "MIT",
6
6
  "homepage": "https://fgilde.github.io/CoworkeeLib/web/airworks/",
@@ -35,6 +35,7 @@
35
35
  "scripts": {
36
36
  "openapi": "node scripts/openapi.mjs",
37
37
  "generate": "openapi-typescript openapi.json -o src/schema.ts",
38
+ "prebuild": "node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true})\"",
38
39
  "build": "tsc -p tsconfig.json",
39
40
  "test": "node --test \"test/**/*.test.ts\""
40
41
  },