@epilot/sdk 2.8.6 → 2.8.7

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.
@@ -101,189 +101,6 @@
101
101
  }
102
102
  }
103
103
  },
104
- "/v2/users/me/settings": {
105
- "get": {
106
- "operationId": "listUserSettings",
107
- "summary": "listUserSettings",
108
- "description": "List all setting scopes and keys available for the currently logged in user. Does not return setting values.",
109
- "tags": [
110
- "User V2"
111
- ],
112
- "responses": {
113
- "200": {
114
- "description": "List of user setting scopes and keys",
115
- "content": {
116
- "application/json": {
117
- "schema": {
118
- "$ref": "#/components/schemas/UserSettingsListResponse"
119
- }
120
- }
121
- }
122
- }
123
- }
124
- }
125
- },
126
- "/v2/users/me/settings/{scope}": {
127
- "get": {
128
- "operationId": "getUserSettingsScope",
129
- "summary": "getUserSettingsScope",
130
- "description": "Get all setting values for one scope for the currently logged in user.",
131
- "tags": [
132
- "User V2"
133
- ],
134
- "parameters": [
135
- {
136
- "name": "scope",
137
- "in": "path",
138
- "required": true,
139
- "schema": {
140
- "$ref": "#/components/schemas/UserSettingScope"
141
- },
142
- "description": "User setting scope, for example calendar, navigation, or search"
143
- }
144
- ],
145
- "responses": {
146
- "200": {
147
- "description": "User settings for the requested scope",
148
- "content": {
149
- "application/json": {
150
- "schema": {
151
- "$ref": "#/components/schemas/UserSettingsScopeResponse"
152
- }
153
- }
154
- }
155
- }
156
- }
157
- }
158
- },
159
- "/v2/users/me/settings/{scope}/{key}": {
160
- "get": {
161
- "operationId": "getUserSetting",
162
- "summary": "getUserSetting",
163
- "description": "Get one setting value by scope and key for the currently logged in user.",
164
- "tags": [
165
- "User V2"
166
- ],
167
- "parameters": [
168
- {
169
- "name": "scope",
170
- "in": "path",
171
- "required": true,
172
- "schema": {
173
- "$ref": "#/components/schemas/UserSettingScope"
174
- },
175
- "description": "User setting scope"
176
- },
177
- {
178
- "name": "key",
179
- "in": "path",
180
- "required": true,
181
- "schema": {
182
- "$ref": "#/components/schemas/UserSettingKey"
183
- },
184
- "description": "User setting key"
185
- }
186
- ],
187
- "responses": {
188
- "200": {
189
- "description": "User setting",
190
- "content": {
191
- "application/json": {
192
- "schema": {
193
- "$ref": "#/components/schemas/UserSetting"
194
- }
195
- }
196
- }
197
- },
198
- "404": {
199
- "description": "User setting not found"
200
- }
201
- }
202
- },
203
- "put": {
204
- "operationId": "putUserSetting",
205
- "summary": "putUserSetting",
206
- "description": "Create or replace one setting value for the currently logged in user.",
207
- "tags": [
208
- "User V2"
209
- ],
210
- "parameters": [
211
- {
212
- "name": "scope",
213
- "in": "path",
214
- "required": true,
215
- "schema": {
216
- "$ref": "#/components/schemas/UserSettingScope"
217
- },
218
- "description": "User setting scope"
219
- },
220
- {
221
- "name": "key",
222
- "in": "path",
223
- "required": true,
224
- "schema": {
225
- "$ref": "#/components/schemas/UserSettingKey"
226
- },
227
- "description": "User setting key"
228
- }
229
- ],
230
- "requestBody": {
231
- "required": true,
232
- "content": {
233
- "application/json": {
234
- "schema": {
235
- "$ref": "#/components/schemas/UserSettingValue"
236
- }
237
- }
238
- }
239
- },
240
- "responses": {
241
- "200": {
242
- "description": "User setting saved successfully",
243
- "content": {
244
- "application/json": {
245
- "schema": {
246
- "$ref": "#/components/schemas/UserSetting"
247
- }
248
- }
249
- }
250
- }
251
- }
252
- },
253
- "delete": {
254
- "operationId": "deleteUserSetting",
255
- "summary": "deleteUserSetting",
256
- "description": "Delete one setting value for the currently logged in user.",
257
- "tags": [
258
- "User V2"
259
- ],
260
- "parameters": [
261
- {
262
- "name": "scope",
263
- "in": "path",
264
- "required": true,
265
- "schema": {
266
- "$ref": "#/components/schemas/UserSettingScope"
267
- },
268
- "description": "User setting scope"
269
- },
270
- {
271
- "name": "key",
272
- "in": "path",
273
- "required": true,
274
- "schema": {
275
- "$ref": "#/components/schemas/UserSettingKey"
276
- },
277
- "description": "User setting key"
278
- }
279
- ],
280
- "responses": {
281
- "204": {
282
- "description": "User setting deleted successfully"
283
- }
284
- }
285
- }
286
- },
287
104
  "/v2/users": {
288
105
  "get": {
289
106
  "operationId": "listUsersV2",
@@ -531,63 +348,6 @@
531
348
  }
532
349
  }
533
350
  },
534
- "/v2/users:sendPasswordReset": {
535
- "post": {
536
- "operationId": "sendUserPasswordReset",
537
- "summary": "sendUserPasswordReset",
538
- "description": "Send a password reset email to a user in your organization.\nRequires `user:edit` on the target user.\n",
539
- "tags": [
540
- "User V2"
541
- ],
542
- "requestBody": {
543
- "required": true,
544
- "content": {
545
- "application/json": {
546
- "schema": {
547
- "type": "object",
548
- "required": [
549
- "email"
550
- ],
551
- "properties": {
552
- "email": {
553
- "type": "string",
554
- "description": "Email address of the user to reset",
555
- "example": "test@example.com"
556
- }
557
- }
558
- }
559
- }
560
- }
561
- },
562
- "responses": {
563
- "200": {
564
- "description": "Password reset triggered",
565
- "content": {
566
- "application/json": {
567
- "schema": {
568
- "type": "object",
569
- "required": [
570
- "success"
571
- ],
572
- "properties": {
573
- "success": {
574
- "type": "boolean",
575
- "example": true
576
- }
577
- }
578
- }
579
- }
580
- }
581
- },
582
- "400": {
583
- "description": "Invalid email or user not found"
584
- },
585
- "403": {
586
- "description": "Not permitted to reset this user's password"
587
- }
588
- }
589
- }
590
- },
591
351
  "/v2/users/{id}/groups": {
592
352
  "get": {
593
353
  "operationId": "getGroupsForUser",
@@ -949,9 +709,6 @@
949
709
  "summary": "verifyEmailWithToken",
950
710
  "description": "Update new email using an verification token",
951
711
  "security": [],
952
- "x-rate-limit": {
953
- "limit": 10
954
- },
955
712
  "tags": [
956
713
  "User V2"
957
714
  ],
@@ -979,69 +736,8 @@
979
736
  "200": {
980
737
  "description": "Verified successfully"
981
738
  },
982
- "400": {
983
- "description": "No pending email change for this token"
984
- },
985
739
  "404": {
986
740
  "description": "Token not found"
987
- },
988
- "409": {
989
- "description": "Email address already in use"
990
- }
991
- }
992
- }
993
- },
994
- "/v2/users/public/requestPasswordReset": {
995
- "post": {
996
- "operationId": "requestPasswordReset",
997
- "summary": "requestPasswordReset",
998
- "description": "Request a password reset email for the given email address. Always\nreturns a success response whether or not an account exists with that\nemail.\n",
999
- "security": [],
1000
- "x-rate-limit": {
1001
- "limit": 10
1002
- },
1003
- "tags": [
1004
- "User V2"
1005
- ],
1006
- "requestBody": {
1007
- "required": true,
1008
- "content": {
1009
- "application/json": {
1010
- "schema": {
1011
- "type": "object",
1012
- "required": [
1013
- "email"
1014
- ],
1015
- "properties": {
1016
- "email": {
1017
- "type": "string",
1018
- "description": "Email address of the account to reset",
1019
- "example": "test@example.com"
1020
- }
1021
- }
1022
- }
1023
- }
1024
- }
1025
- },
1026
- "responses": {
1027
- "200": {
1028
- "description": "Request accepted",
1029
- "content": {
1030
- "application/json": {
1031
- "schema": {
1032
- "type": "object",
1033
- "required": [
1034
- "message"
1035
- ],
1036
- "properties": {
1037
- "message": {
1038
- "type": "string",
1039
- "example": "If an account exists, a password reset email has been sent."
1040
- }
1041
- }
1042
- }
1043
- }
1044
- }
1045
741
  }
1046
742
  }
1047
743
  }
@@ -1991,13 +1687,6 @@
1991
1687
  "nullable": true,
1992
1688
  "format": "email"
1993
1689
  },
1994
- "draft_email_expires_at": {
1995
- "description": "Server-set expiry for the pending email change verification link (ISO 8601). Read-only.",
1996
- "type": "string",
1997
- "nullable": true,
1998
- "format": "date-time",
1999
- "readOnly": true
2000
- },
2001
1690
  "department": {
2002
1691
  "type": "string",
2003
1692
  "description": "User's department",
@@ -2021,11 +1710,6 @@
2021
1710
  "type": "boolean",
2022
1711
  "example": false
2023
1712
  },
2024
- "has_passkeys": {
2025
- "description": "Whether the user has any registered passkeys",
2026
- "type": "boolean",
2027
- "example": false
2028
- },
2029
1713
  "phone_verified": {
2030
1714
  "description": "User's phone number verification status",
2031
1715
  "type": "boolean",
@@ -2364,13 +2048,6 @@
2364
2048
  },
2365
2049
  "image_uri": {
2366
2050
  "$ref": "#/components/schemas/GroupImageUri"
2367
- },
2368
- "abbreviation": {
2369
- "description": "A short abbreviation for the group, up to 2 characters.",
2370
- "type": "string",
2371
- "maxLength": 2,
2372
- "nullable": true,
2373
- "example": "FN"
2374
2051
  }
2375
2052
  },
2376
2053
  "required": [
@@ -2398,13 +2075,6 @@
2398
2075
  },
2399
2076
  "image_uri": {
2400
2077
  "$ref": "#/components/schemas/GroupImageUri"
2401
- },
2402
- "abbreviation": {
2403
- "description": "A short abbreviation for the group, up to 2 characters.",
2404
- "type": "string",
2405
- "maxLength": 2,
2406
- "nullable": true,
2407
- "example": "FN"
2408
2078
  }
2409
2079
  }
2410
2080
  },
@@ -2462,13 +2132,6 @@
2462
2132
  },
2463
2133
  "image_uri": {
2464
2134
  "$ref": "#/components/schemas/GroupImageUri"
2465
- },
2466
- "abbreviation": {
2467
- "description": "A short abbreviation for the group, up to 2 characters.",
2468
- "type": "string",
2469
- "maxLength": 2,
2470
- "nullable": true,
2471
- "example": "FN"
2472
2135
  }
2473
2136
  },
2474
2137
  "required": [
@@ -2714,110 +2377,6 @@
2714
2377
  }
2715
2378
  }
2716
2379
  },
2717
- "UserSettingScope": {
2718
- "type": "string",
2719
- "description": "User setting scope. Values are limited to 64 characters.",
2720
- "minLength": 1,
2721
- "maxLength": 64,
2722
- "example": "calendar"
2723
- },
2724
- "UserSettingKey": {
2725
- "type": "string",
2726
- "description": "User setting key. Values are limited to 128 characters.",
2727
- "minLength": 1,
2728
- "maxLength": 128,
2729
- "example": "visible_calendars"
2730
- },
2731
- "UserSettingValue": {
2732
- "description": "The JSON value of a user setting. Objects are recommended for extensibility, but any JSON value is accepted up to 64 KiB when serialized as JSON.",
2733
- "x-maxSerializedBytes": 65536
2734
- },
2735
- "UserSetting": {
2736
- "type": "object",
2737
- "properties": {
2738
- "scope": {
2739
- "$ref": "#/components/schemas/UserSettingScope"
2740
- },
2741
- "key": {
2742
- "$ref": "#/components/schemas/UserSettingKey"
2743
- },
2744
- "value": {
2745
- "$ref": "#/components/schemas/UserSettingValue"
2746
- },
2747
- "created_at": {
2748
- "type": "string",
2749
- "format": "date-time"
2750
- },
2751
- "updated_at": {
2752
- "type": "string",
2753
- "format": "date-time"
2754
- }
2755
- },
2756
- "required": [
2757
- "scope",
2758
- "key",
2759
- "value",
2760
- "created_at",
2761
- "updated_at"
2762
- ]
2763
- },
2764
- "UserSettingsListResponse": {
2765
- "type": "object",
2766
- "properties": {
2767
- "results": {
2768
- "type": "array",
2769
- "items": {
2770
- "type": "object",
2771
- "properties": {
2772
- "scope": {
2773
- "$ref": "#/components/schemas/UserSettingScope"
2774
- },
2775
- "keys": {
2776
- "type": "array",
2777
- "items": {
2778
- "$ref": "#/components/schemas/UserSettingKey"
2779
- },
2780
- "example": [
2781
- "visible_calendars"
2782
- ]
2783
- }
2784
- },
2785
- "required": [
2786
- "scope",
2787
- "keys"
2788
- ]
2789
- }
2790
- }
2791
- },
2792
- "required": [
2793
- "results"
2794
- ]
2795
- },
2796
- "UserSettingsScopeResponse": {
2797
- "type": "object",
2798
- "properties": {
2799
- "scope": {
2800
- "$ref": "#/components/schemas/UserSettingScope"
2801
- },
2802
- "settings": {
2803
- "type": "object",
2804
- "additionalProperties": {
2805
- "$ref": "#/components/schemas/UserSettingValue"
2806
- },
2807
- "example": {
2808
- "visible_calendars": {
2809
- "calendar_ids": [
2810
- "holidays"
2811
- ]
2812
- }
2813
- }
2814
- }
2815
- },
2816
- "required": [
2817
- "scope",
2818
- "settings"
2819
- ]
2820
- },
2821
2380
  "Passkey": {
2822
2381
  "type": "object",
2823
2382
  "properties": {
@@ -1265,13 +1265,6 @@
1265
1265
  "eventName": {
1266
1266
  "type": "string"
1267
1267
  },
1268
- "eventVersion": {
1269
- "type": "string",
1270
- "nullable": true,
1271
- "pattern": "^\\d+\\.\\d+$",
1272
- "description": "Pinned schema version of the Event Catalog event this webhook is subscribed to.\nOnly applicable when `eventName` refers to an Event Catalog event (prefixed with `event_`).\nWhen omitted on creation, it is backfilled lazily on first delivery to match the\nevent's own `_event_version` (the latest at that time, stamped on the event itself).\nAlways MAJOR.MINOR (e.g. \"1.0\", \"2.0\"), mirroring exactly what event-catalog-api\nstamps as `_event_version` and in its `_downgrades[].to` values. Absent for legacy\nconfigs that have not yet received an event.\n",
1273
- "example": "1.0"
1274
- },
1275
1268
  "url": {
1276
1269
  "type": "string"
1277
1270
  },
@@ -1373,26 +1366,6 @@
1373
1366
  }
1374
1367
  }
1375
1368
  },
1376
- "retryPolicy": {
1377
- "type": "object",
1378
- "description": "Automatic-retry policy for transient delivery failures (5xx, 429,\nconnection-level errors). Newly-created webhooks are materialized\nwith defaults (`enabled: true`, `maxAttempts: 3`). Webhooks created\nbefore this feature have no policy and are treated as disabled — on\nupdate, omit this field to preserve the existing value. The backoff\ncurve is a fixed Standard Webhooks schedule (5s, 5m, 30m, 2h, 5h);\nonly the first `maxAttempts` intervals are used.\n",
1379
- "properties": {
1380
- "enabled": {
1381
- "type": "boolean",
1382
- "description": "Master on/off switch for automatic retries."
1383
- },
1384
- "maxAttempts": {
1385
- "type": "integer",
1386
- "minimum": 1,
1387
- "maximum": 5,
1388
- "default": 3,
1389
- "description": "Maximum number of automatic retries after the initial delivery attempt."
1390
- }
1391
- },
1392
- "required": [
1393
- "enabled"
1394
- ]
1395
- },
1396
1369
  "filterConditions": {
1397
1370
  "$ref": "#/components/schemas/WebhookConditionGroup"
1398
1371
  },
@@ -1693,10 +1666,6 @@
1693
1666
  "payload": {
1694
1667
  "type": "string",
1695
1668
  "description": "stringified payload of the webhook request"
1696
- },
1697
- "retry_attempt": {
1698
- "type": "integer",
1699
- "description": "Number of automatic delivery retries that preceded this terminal outcome. 0 means the event was delivered (or finally failed) on the first attempt."
1700
1669
  }
1701
1670
  },
1702
1671
  "required": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/sdk",
3
- "version": "2.8.6",
3
+ "version": "2.8.7",
4
4
  "description": "JavaScript/TypeScript SDK for epilot APIs",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -1 +0,0 @@
1
- {"s":"https://snapshot.sls.epilot.io","o":[["createSnapshot","post","/v1/snapshots",null,1],["listSnapshots","get","/v1/snapshots",[["cursor","q"],["size","q"],["resource","q"]]],["captureOrgSnapshot","post","/v1/snapshots:capture-org",null,1],["getSnapshot","get","/v1/snapshots/{id}"],["deleteSnapshot","delete","/v1/snapshots/{id}"],["restoreSnapshot","post","/v1/snapshots/{id}:restore",null,1],["listSnapshotResources","get","/v1/snapshots/{id}/resources"],["getSnapshotResource","get","/v1/snapshots/{id}/resources/{lineage_id}"],["listDependencies","post","/v1/snapshots:list-dependencies",null,1]],"v":"3.0.3","pp":{"/v1/snapshots/{id}":[["id","p",true]],"/v1/snapshots/{id}:restore":[["id","p",true]],"/v1/snapshots/{id}/resources":[["id","p",true]],"/v1/snapshots/{id}/resources/{lineage_id}":[["id","p",true],["lineage_id","p",true]]}}