@rustrak/client 0.24.0 → 0.25.0

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.
@@ -7,6 +7,15 @@ const zAcceptInvitation = zod.object({
7
7
  token: zod.string()
8
8
  });
9
9
  /**
10
+ * Something a grant can allow.
11
+ */
12
+ const zAction = zod.enum([
13
+ "read",
14
+ "create",
15
+ "update",
16
+ "delete"
17
+ ]);
18
+ /**
10
19
  * An entry in an issue's activity log. Comments are stored as activity rows of
11
20
  * type `note` with `{"text": ...}` in `data` (Sentry models notes as activity).
12
21
  */
@@ -174,6 +183,10 @@ const zAssembleResponse = zod.object({
174
183
  missingChunks: zod.array(zod.string()),
175
184
  state: zod.string()
176
185
  });
186
+ const zAssignmentInput = zod.object({
187
+ project_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }).nullish(),
188
+ role_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })
189
+ });
177
190
  /**
178
191
  * The raw bytes of an attachment. Untyped in the spec: the generated
179
192
  * client validates bodies with zod, which has no type for a binary one.
@@ -191,25 +204,6 @@ const zAttachmentInfo = zod.object({
191
204
  size: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })
192
205
  });
193
206
  /**
194
- * Response that includes the full token (only on creation)
195
- */
196
- const zAuthTokenCreatedResponse = zod.object({
197
- created_at: zod.iso.datetime({ offset: true }),
198
- description: zod.string().nullable(),
199
- id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
200
- token: zod.string()
201
- });
202
- /**
203
- * Response for listing (token is masked)
204
- */
205
- const zAuthTokenResponse = zod.object({
206
- created_at: zod.iso.datetime({ offset: true }),
207
- description: zod.string().nullable(),
208
- id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
209
- last_used_at: zod.iso.datetime({ offset: true }).nullable(),
210
- token_prefix: zod.string()
211
- });
212
- /**
213
207
  * What the consent page shows about the client asking.
214
208
  */
215
209
  const zAuthorizationInfo = zod.object({
@@ -412,10 +406,6 @@ const zCreateAlertRule = zod.object({
412
406
  cooldown_minutes: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }).optional(),
413
407
  name: zod.string()
414
408
  });
415
- /**
416
- * DTO for creating a new token
417
- */
418
- const zCreateAuthToken = zod.object({ description: zod.string().nullish() });
419
409
  const zCreateGitHubIssue = zod.object({
420
410
  assignee: zod.string().nullish(),
421
411
  body: zod.string().nullish(),
@@ -472,6 +462,10 @@ const zDifAssembleFile = zod.object({
472
462
  */
473
463
  const zDifUploadBody = zod.record(zod.string(), zod.unknown());
474
464
  /**
465
+ * GET /api/invitations/email-status answer.
466
+ */
467
+ const zEmailStatusResponse = zod.object({ available: zod.boolean() });
468
+ /**
475
469
  * Response for API (full detail)
476
470
  */
477
471
  const zEventDetailResponse = zod.object({
@@ -854,6 +848,21 @@ const zMcpStatus = zod.object({
854
848
  url: zod.string().nullable()
855
849
  });
856
850
  /**
851
+ * Someone who can be made a member.
852
+ */
853
+ const zMemberCandidate = zod.object({
854
+ email: zod.string(),
855
+ id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })
856
+ });
857
+ /**
858
+ * A role someone holds on a project.
859
+ */
860
+ const zMemberRole = zod.object({
861
+ id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
862
+ inherited: zod.boolean(),
863
+ name: zod.string()
864
+ });
865
+ /**
857
866
  * A counter measured over the requested window alongside the same counter
858
867
  * over the window immediately before it.
859
868
  *
@@ -976,6 +985,14 @@ const zProjectListStats = zod.object({
976
985
  open_issues: zod.int(),
977
986
  trend: zod.array(zod.int())
978
987
  });
988
+ /**
989
+ * A member of one project: someone holding a role on it or on every project.
990
+ */
991
+ const zProjectMember = zod.object({
992
+ email: zod.string(),
993
+ roles: zod.array(zMemberRole),
994
+ user_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })
995
+ });
979
996
  const zProjectRepository = zod.object({
980
997
  auto_create_conditions: zod.record(zod.string(), zod.unknown()),
981
998
  auto_create_issues: zod.boolean(),
@@ -996,7 +1013,7 @@ const zProjectResponse = zod.object({
996
1013
  created_at: zod.iso.datetime({ offset: true }),
997
1014
  digested_event_count: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
998
1015
  disabled_products: zod.array(zProduct),
999
- dsn: zod.string(),
1016
+ dsn: zod.string().nullable(),
1000
1017
  id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
1001
1018
  name: zod.string(),
1002
1019
  platform: zod.string().nullable(),
@@ -1004,7 +1021,7 @@ const zProjectResponse = zod.object({
1004
1021
  rate_limit_per_hour: zod.int().nullable(),
1005
1022
  rate_limit_per_minute: zod.int().nullable(),
1006
1023
  rate_limited_event_count: zod.int(),
1007
- sentry_key: zod.string(),
1024
+ sentry_key: zod.string().nullable(),
1008
1025
  slug: zod.string(),
1009
1026
  stats: zProjectListStats.nullish(),
1010
1027
  stored_event_count: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
@@ -1021,33 +1038,6 @@ const zProjectRetention = zod.object({
1021
1038
  transactions_days: zod.int().nullable()
1022
1039
  });
1023
1040
  /**
1024
- * Per-project capability level for a member.
1025
- *
1026
- * Ordered by privilege: `Viewer` < `Editor` < `Admin` (derived `Ord` uses
1027
- * declaration order). An `Action` maps to the minimum role that may perform it.
1028
- */
1029
- const zProjectRole = zod.enum([
1030
- "viewer",
1031
- "editor",
1032
- "admin"
1033
- ]);
1034
- const zProjectMember = zod.object({
1035
- created_at: zod.iso.datetime({ offset: true }),
1036
- id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
1037
- project_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
1038
- role: zProjectRole,
1039
- user_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })
1040
- });
1041
- /**
1042
- * Member row joined with the user's email, for listing a project's team.
1043
- */
1044
- const zProjectMemberResponse = zod.object({
1045
- created_at: zod.iso.datetime({ offset: true }),
1046
- email: zod.string(),
1047
- role: zProjectRole,
1048
- user_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })
1049
- });
1050
- /**
1051
1041
  * Project-wide counters for the overview page, each with its previous-period
1052
1042
  * comparison.
1053
1043
  */
@@ -1181,6 +1171,95 @@ const zIssueGitHub = zod.object({
1181
1171
  suspect_commits: zod.array(zRepoCommit)
1182
1172
  });
1183
1173
  /**
1174
+ * Every resource a permission can name.
1175
+ */
1176
+ const zResource = zod.enum([
1177
+ "projects",
1178
+ "users",
1179
+ "invitations",
1180
+ "roles",
1181
+ "api-tokens",
1182
+ "integrations",
1183
+ "github-app",
1184
+ "storage",
1185
+ "mcp",
1186
+ "telemetry",
1187
+ "issues",
1188
+ "performance",
1189
+ "logs",
1190
+ "sessions",
1191
+ "releases",
1192
+ "source-maps",
1193
+ "alert-rules",
1194
+ "monitors",
1195
+ "project",
1196
+ "client-keys",
1197
+ "project-members",
1198
+ "project-github"
1199
+ ]);
1200
+ /**
1201
+ * One `(resource, action)` grant.
1202
+ */
1203
+ const zPermission = zod.object({
1204
+ action: zAction,
1205
+ resource: zResource
1206
+ });
1207
+ /**
1208
+ * Response that includes the full token (only on creation)
1209
+ */
1210
+ const zAuthTokenCreatedResponse = zod.object({
1211
+ created_at: zod.iso.datetime({ offset: true }),
1212
+ description: zod.string().nullable(),
1213
+ expires_at: zod.iso.datetime({ offset: true }).nullable(),
1214
+ id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
1215
+ permissions: zod.array(zPermission).nullable(),
1216
+ project_ids: zod.array(zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })).nullable(),
1217
+ token: zod.string()
1218
+ });
1219
+ /**
1220
+ * Response for listing (token is masked)
1221
+ */
1222
+ const zAuthTokenResponse = zod.object({
1223
+ created_at: zod.iso.datetime({ offset: true }),
1224
+ description: zod.string().nullable(),
1225
+ expires_at: zod.iso.datetime({ offset: true }).nullable(),
1226
+ id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
1227
+ last_used_at: zod.iso.datetime({ offset: true }).nullable(),
1228
+ permissions: zod.array(zPermission).nullable(),
1229
+ project_ids: zod.array(zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })).nullable(),
1230
+ token_prefix: zod.string(),
1231
+ user_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }).nullable()
1232
+ });
1233
+ /**
1234
+ * DTO for creating a new token
1235
+ */
1236
+ const zCreateAuthToken = zod.object({
1237
+ description: zod.string().nullish(),
1238
+ expires_at: zod.iso.datetime({ offset: true }).nullish(),
1239
+ permissions: zod.array(zPermission).nullish(),
1240
+ project_ids: zod.array(zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })).nullish()
1241
+ });
1242
+ /**
1243
+ * Permissions given to one person directly, without a role of the list.
1244
+ */
1245
+ const zPersonalAccess = zod.object({
1246
+ permissions: zod.array(zPermission),
1247
+ project_ids: zod.array(zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })).nullish()
1248
+ });
1249
+ const zProjectPermissions = zod.object({
1250
+ permissions: zod.array(zPermission),
1251
+ project_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })
1252
+ });
1253
+ /**
1254
+ * What the caller may do. An owner may do everything and gets empty lists.
1255
+ */
1256
+ const zMyAccess = zod.object({
1257
+ all_projects: zod.array(zPermission),
1258
+ instance: zod.array(zPermission),
1259
+ is_owner: zod.boolean(),
1260
+ projects: zod.array(zProjectPermissions)
1261
+ });
1262
+ /**
1184
1263
  * How the last retention cleanup went.
1185
1264
  */
1186
1265
  const zRetentionRun = zod.object({
@@ -1220,6 +1299,46 @@ const zRetentionResponse = zod.object({
1220
1299
  next_run_at: zod.iso.datetime({ offset: true }).nullable(),
1221
1300
  settings: zRetentionSettings
1222
1301
  });
1302
+ /**
1303
+ * A named set of permissions, given to users by an assignment.
1304
+ */
1305
+ const zRole = zod.object({
1306
+ assignment_count: zod.int(),
1307
+ created_at: zod.iso.datetime({ offset: true }),
1308
+ description: zod.string(),
1309
+ id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
1310
+ name: zod.string(),
1311
+ permissions: zod.array(zPermission)
1312
+ });
1313
+ /**
1314
+ * A role given to a user. `project_id = null` reaches every project. A role's
1315
+ * workspace permissions apply wherever it is held.
1316
+ */
1317
+ const zRoleAssignment = zod.object({
1318
+ created_at: zod.iso.datetime({ offset: true }),
1319
+ id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
1320
+ is_personal: zod.boolean(),
1321
+ project_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }).nullable(),
1322
+ role_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
1323
+ role_name: zod.string(),
1324
+ user_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })
1325
+ });
1326
+ const zRoleInput = zod.object({
1327
+ description: zod.string().optional(),
1328
+ name: zod.string(),
1329
+ permissions: zod.array(zPermission)
1330
+ });
1331
+ const zRoleRef = zod.object({
1332
+ id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
1333
+ name: zod.string()
1334
+ });
1335
+ /**
1336
+ * What the caller can choose from when setting a member's roles.
1337
+ */
1338
+ const zMemberCandidates = zod.object({
1339
+ roles: zod.array(zRoleRef),
1340
+ users: zod.array(zMemberCandidate)
1341
+ });
1223
1342
  const zSchedule = zod.union([zod.object({
1224
1343
  type: zod.enum(["crontab"]),
1225
1344
  value: zod.string()
@@ -1279,6 +1398,17 @@ const zPreviewSchedule = zod.object({
1279
1398
  * expect their check-ins and scheduled jobs fire at exactly these instants.
1280
1399
  */
1281
1400
  const zSchedulePreview = zod.object({ next_runs: zod.array(zod.iso.datetime({ offset: true })) });
1401
+ /**
1402
+ * Whether a resource belongs to the workspace or to one project.
1403
+ */
1404
+ const zScope = zod.enum(["instance", "project"]);
1405
+ const zCatalogResource = zod.object({
1406
+ actions: zod.array(zAction),
1407
+ key: zod.string(),
1408
+ module: zod.string(),
1409
+ scope: zScope
1410
+ });
1411
+ const zCatalog = zod.object({ resources: zod.array(zCatalogResource) });
1282
1412
  const zSeenResponse = zod.object({ has_seen: zod.boolean() });
1283
1413
  /**
1284
1414
  * `GroupProjectResponse` (`api/serializers/models/group.py`).
@@ -1434,6 +1564,17 @@ const zSessionTimeseriesPoint = zod.object({
1434
1564
  total: zod.int()
1435
1565
  });
1436
1566
  /**
1567
+ * Everything a user holds.
1568
+ */
1569
+ const zSetAccess = zod.object({
1570
+ assignments: zod.array(zAssignmentInput),
1571
+ personal: zPersonalAccess.nullish()
1572
+ });
1573
+ const zSetProjectMember = zod.object({
1574
+ role_ids: zod.array(zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })),
1575
+ user_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })
1576
+ });
1577
+ /**
1437
1578
  * Sort order direction
1438
1579
  */
1439
1580
  const zSortOrder = zod.enum(["asc", "desc"]);
@@ -1744,9 +1885,12 @@ const zUpdateRelease = zod.object({
1744
1885
  ref: zod.string().nullish(),
1745
1886
  url: zod.string().nullish()
1746
1887
  });
1747
- const zUpsertProjectMember = zod.object({
1748
- role: zProjectRole,
1749
- user_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })
1888
+ /**
1889
+ * Everything a user holds.
1890
+ */
1891
+ const zUserAccess = zod.object({
1892
+ assignments: zod.array(zRoleAssignment),
1893
+ personal_permissions: zod.array(zPermission)
1750
1894
  });
1751
1895
  /**
1752
1896
  * A user feedback report attached to a project/issue/event.
@@ -1779,7 +1923,10 @@ const zUserReportRequest = zod.object({
1779
1923
  const zUserRole = zod.enum(["admin", "member"]);
1780
1924
  const zCreateInvitation = zod.object({
1781
1925
  email: zod.string(),
1782
- role: zUserRole
1926
+ project_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }).nullish(),
1927
+ role: zUserRole,
1928
+ role_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }).nullish(),
1929
+ send_email: zod.boolean().optional()
1783
1930
  });
1784
1931
  /**
1785
1932
  * Public-facing invitation info for the accept page.
@@ -1796,10 +1943,14 @@ const zInvitationInfoResponse = zod.object({
1796
1943
  const zInvitationResponse = zod.object({
1797
1944
  created_at: zod.iso.datetime({ offset: true }),
1798
1945
  email: zod.string(),
1946
+ email_sent_at: zod.iso.datetime({ offset: true }).nullable(),
1799
1947
  expires_at: zod.iso.datetime({ offset: true }),
1948
+ id: zod.string(),
1949
+ project_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }).nullable(),
1800
1950
  role: zUserRole,
1951
+ role_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }).nullable(),
1801
1952
  status: zod.string(),
1802
- token: zod.string()
1953
+ token: zod.string().nullable()
1803
1954
  });
1804
1955
  /**
1805
1956
  * A user as exposed on the team roster.
@@ -1959,6 +2110,14 @@ const zSentrySubmitUserFeedbackPath = zod.object({
1959
2110
  */
1960
2111
  const zSentrySubmitUserFeedbackResponse = zSentryUserReport;
1961
2112
  /**
2113
+ * Every resource a permission can name
2114
+ */
2115
+ const zAccessCatalogResponse = zCatalog;
2116
+ /**
2117
+ * What the caller may do
2118
+ */
2119
+ const zAccessMeResponse = zMyAccess;
2120
+ /**
1962
2121
  * GitHub App removed
1963
2122
  */
1964
2123
  const zGithubDisconnectResponse = zod.void();
@@ -2048,11 +2207,20 @@ const zInvitationsCreateBody = zCreateInvitation;
2048
2207
  * Invitation created
2049
2208
  */
2050
2209
  const zInvitationsCreateResponse = zInvitationResponse;
2051
- const zInvitationsRevokePath = zod.object({ token: zod.string() });
2210
+ /**
2211
+ * Whether invitation emails can be sent
2212
+ */
2213
+ const zInvitationsEmailStatusResponse = zEmailStatusResponse;
2214
+ const zInvitationsRevokePath = zod.object({ id: zod.string() });
2052
2215
  /**
2053
2216
  * Invitation revoked
2054
2217
  */
2055
2218
  const zInvitationsRevokeResponse = zod.void();
2219
+ const zInvitationsResendPath = zod.object({ id: zod.string() });
2220
+ /**
2221
+ * Invitation email sent
2222
+ */
2223
+ const zInvitationsResendResponse = zInvitationResponse;
2056
2224
  const zOauthGetAuthorizationQuery = zod.object({
2057
2225
  response_type: zod.string(),
2058
2226
  client_id: zod.string(),
@@ -2094,7 +2262,7 @@ const zProjectsListResponse = zod.object({
2094
2262
  created_at: zod.iso.datetime({ offset: true }),
2095
2263
  digested_event_count: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
2096
2264
  disabled_products: zod.array(zProduct),
2097
- dsn: zod.string(),
2265
+ dsn: zod.string().nullable(),
2098
2266
  id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
2099
2267
  name: zod.string(),
2100
2268
  platform: zod.string().nullable(),
@@ -2102,7 +2270,7 @@ const zProjectsListResponse = zod.object({
2102
2270
  rate_limit_per_hour: zod.int().nullable(),
2103
2271
  rate_limit_per_minute: zod.int().nullable(),
2104
2272
  rate_limited_event_count: zod.int(),
2105
- sentry_key: zod.string(),
2273
+ sentry_key: zod.string().nullable(),
2106
2274
  slug: zod.string(),
2107
2275
  stats: zProjectListStats.nullish(),
2108
2276
  stored_event_count: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
@@ -2771,21 +2939,26 @@ const zLogsGetPath = zod.object({
2771
2939
  const zLogsGetResponse = zLogResponse;
2772
2940
  const zMembersListPath = zod.object({ project_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }) });
2773
2941
  /**
2774
- * List of project members
2942
+ * Project members
2775
2943
  */
2776
- const zMembersListResponse = zod.array(zProjectMemberResponse);
2777
- const zMembersUpsertBody = zUpsertProjectMember;
2944
+ const zMembersListResponse = zod.array(zProjectMember);
2945
+ const zMembersUpsertBody = zSetProjectMember;
2778
2946
  const zMembersUpsertPath = zod.object({ project_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }) });
2779
2947
  /**
2780
- * Member added or updated
2948
+ * Project members now
2949
+ */
2950
+ const zMembersUpsertResponse = zod.array(zProjectMember);
2951
+ const zMembersCandidatesPath = zod.object({ project_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }) });
2952
+ /**
2953
+ * People and roles the caller can give
2781
2954
  */
2782
- const zMembersUpsertResponse = zProjectMember;
2955
+ const zMembersCandidatesResponse = zMemberCandidates;
2783
2956
  const zMembersRemovePath = zod.object({
2784
2957
  project_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }),
2785
2958
  user_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })
2786
2959
  });
2787
2960
  /**
2788
- * Member removed
2961
+ * Removed
2789
2962
  */
2790
2963
  const zMembersRemoveResponse = zod.void();
2791
2964
  const zMonitorsStatsPath = zod.object({ project_id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }) });
@@ -3166,6 +3339,26 @@ const zTransactionsGetSpansResponse = zod.array(zod.object({
3166
3339
  * The server's per-project limits
3167
3340
  */
3168
3341
  const zProjectsGetRateLimitsResponse = zRateLimitsResponse;
3342
+ /**
3343
+ * Every role
3344
+ */
3345
+ const zRolesListResponse = zod.array(zRole);
3346
+ const zRolesCreateBody = zRoleInput;
3347
+ /**
3348
+ * Created
3349
+ */
3350
+ const zRolesCreateResponse = zRole;
3351
+ const zRolesDeletePath = zod.object({ id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }) });
3352
+ /**
3353
+ * Deleted
3354
+ */
3355
+ const zRolesDeleteResponse = zod.void();
3356
+ const zRolesUpdateBody = zRoleInput;
3357
+ const zRolesUpdatePath = zod.object({ id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }) });
3358
+ /**
3359
+ * Updated
3360
+ */
3361
+ const zRolesUpdateResponse = zRole;
3169
3362
  const zSchedulesPreviewBody = zPreviewSchedule;
3170
3363
  /**
3171
3364
  * The next five runs
@@ -3287,9 +3480,20 @@ const zTokensDeletePath = zod.object({ id: zod.int().min(-2147483648, { error: "
3287
3480
  const zTokensDeleteResponse = zod.void();
3288
3481
  const zTokensGetPath = zod.object({ id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }) });
3289
3482
  /**
3290
- * Token details (full token value)
3483
+ * Token details (masked)
3484
+ */
3485
+ const zTokensGetResponse = zAuthTokenResponse;
3486
+ const zUsersAssignmentsPath = zod.object({ id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }) });
3487
+ /**
3488
+ * What the user holds
3489
+ */
3490
+ const zUsersAssignmentsResponse = zUserAccess;
3491
+ const zUsersSetAssignmentsBody = zSetAccess;
3492
+ const zUsersSetAssignmentsPath = zod.object({ id: zod.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }) });
3493
+ /**
3494
+ * What the user holds now
3291
3495
  */
3292
- const zTokensGetResponse = zAuthTokenCreatedResponse;
3496
+ const zUsersSetAssignmentsResponse = zUserAccess;
3293
3497
  const zAuthAcceptInvitationBody = zAcceptInvitation;
3294
3498
  /**
3295
3499
  * Invitation accepted and user created; signed in unless password login is disabled
@@ -3369,6 +3573,9 @@ const zSentryOpenIssuePath = zod.object({
3369
3573
  });
3370
3574
  exports.zAcceptInvitation = zAcceptInvitation;
3371
3575
  exports.zAcceptInvitationResponse = zAcceptInvitationResponse;
3576
+ exports.zAccessCatalogResponse = zAccessCatalogResponse;
3577
+ exports.zAccessMeResponse = zAccessMeResponse;
3578
+ exports.zAction = zAction;
3372
3579
  exports.zActivityEntry = zActivityEntry;
3373
3580
  exports.zAgentConversation = zAgentConversation;
3374
3581
  exports.zAgentDurationPoint = zAgentDurationPoint;
@@ -3452,6 +3659,7 @@ exports.zAlertStatus = zAlertStatus;
3452
3659
  exports.zAlertType = zAlertType;
3453
3660
  exports.zAssembleBody = zAssembleBody;
3454
3661
  exports.zAssembleResponse = zAssembleResponse;
3662
+ exports.zAssignmentInput = zAssignmentInput;
3455
3663
  exports.zAttachmentBytes = zAttachmentBytes;
3456
3664
  exports.zAttachmentInfo = zAttachmentInfo;
3457
3665
  exports.zAuthAcceptInvitationBody = zAuthAcceptInvitationBody;
@@ -3486,6 +3694,8 @@ exports.zBulkDeleteIssues = zBulkDeleteIssues;
3486
3694
  exports.zBulkDeleteResponse = zBulkDeleteResponse;
3487
3695
  exports.zBulkUpdateIssues = zBulkUpdateIssues;
3488
3696
  exports.zBulkUpdateResponse = zBulkUpdateResponse;
3697
+ exports.zCatalog = zCatalog;
3698
+ exports.zCatalogResource = zCatalogResource;
3489
3699
  exports.zChangePasswordRequest = zChangePasswordRequest;
3490
3700
  exports.zCheckInResponse = zCheckInResponse;
3491
3701
  exports.zCheckInStatus = zCheckInStatus;
@@ -3520,6 +3730,7 @@ exports.zDebugFilesUploadPath = zDebugFilesUploadPath;
3520
3730
  exports.zDebugFilesUploadResponse = zDebugFilesUploadResponse;
3521
3731
  exports.zDifAssembleFile = zDifAssembleFile;
3522
3732
  exports.zDifUploadBody = zDifUploadBody;
3733
+ exports.zEmailStatusResponse = zEmailStatusResponse;
3523
3734
  exports.zEnvironmentsListPath = zEnvironmentsListPath;
3524
3735
  exports.zEnvironmentsListResponse = zEnvironmentsListResponse;
3525
3736
  exports.zErrorDetail = zErrorDetail;
@@ -3593,7 +3804,10 @@ exports.zInvitationInfoResponse = zInvitationInfoResponse;
3593
3804
  exports.zInvitationResponse = zInvitationResponse;
3594
3805
  exports.zInvitationsCreateBody = zInvitationsCreateBody;
3595
3806
  exports.zInvitationsCreateResponse = zInvitationsCreateResponse;
3807
+ exports.zInvitationsEmailStatusResponse = zInvitationsEmailStatusResponse;
3596
3808
  exports.zInvitationsListResponse = zInvitationsListResponse;
3809
+ exports.zInvitationsResendPath = zInvitationsResendPath;
3810
+ exports.zInvitationsResendResponse = zInvitationsResendResponse;
3597
3811
  exports.zInvitationsRevokePath = zInvitationsRevokePath;
3598
3812
  exports.zInvitationsRevokeResponse = zInvitationsRevokeResponse;
3599
3813
  exports.zIssueAggregates = zIssueAggregates;
@@ -3673,6 +3887,11 @@ exports.zManifestRequest = zManifestRequest;
3673
3887
  exports.zManifestResponse = zManifestResponse;
3674
3888
  exports.zMcpSettings = zMcpSettings;
3675
3889
  exports.zMcpStatus = zMcpStatus;
3890
+ exports.zMemberCandidate = zMemberCandidate;
3891
+ exports.zMemberCandidates = zMemberCandidates;
3892
+ exports.zMemberRole = zMemberRole;
3893
+ exports.zMembersCandidatesPath = zMembersCandidatesPath;
3894
+ exports.zMembersCandidatesResponse = zMembersCandidatesResponse;
3676
3895
  exports.zMembersListPath = zMembersListPath;
3677
3896
  exports.zMembersListResponse = zMembersListResponse;
3678
3897
  exports.zMembersRemovePath = zMembersRemovePath;
@@ -3706,6 +3925,7 @@ exports.zMonitorsStatsResponse = zMonitorsStatsResponse;
3706
3925
  exports.zMonitorsUpdateBody = zMonitorsUpdateBody;
3707
3926
  exports.zMonitorsUpdatePath = zMonitorsUpdatePath;
3708
3927
  exports.zMonitorsUpdateResponse = zMonitorsUpdateResponse;
3928
+ exports.zMyAccess = zMyAccess;
3709
3929
  exports.zOAuthGrant = zOAuthGrant;
3710
3930
  exports.zOauthDecideAuthorizationBody = zOauthDecideAuthorizationBody;
3711
3931
  exports.zOauthDecideAuthorizationResponse = zOauthDecideAuthorizationResponse;
@@ -3715,6 +3935,8 @@ exports.zOauthListGrantsResponse = zOauthListGrantsResponse;
3715
3935
  exports.zOauthRevokeGrantPath = zOauthRevokeGrantPath;
3716
3936
  exports.zOauthRevokeGrantResponse = zOauthRevokeGrantResponse;
3717
3937
  exports.zOrgDetails = zOrgDetails;
3938
+ exports.zPermission = zPermission;
3939
+ exports.zPersonalAccess = zPersonalAccess;
3718
3940
  exports.zPreviewSchedule = zPreviewSchedule;
3719
3941
  exports.zPreviewTemplateBody = zPreviewTemplateBody;
3720
3942
  exports.zPreviewTemplateResponse = zPreviewTemplateResponse;
@@ -3722,11 +3944,10 @@ exports.zProduct = zProduct;
3722
3944
  exports.zProjectAge = zProjectAge;
3723
3945
  exports.zProjectListStats = zProjectListStats;
3724
3946
  exports.zProjectMember = zProjectMember;
3725
- exports.zProjectMemberResponse = zProjectMemberResponse;
3947
+ exports.zProjectPermissions = zProjectPermissions;
3726
3948
  exports.zProjectRepository = zProjectRepository;
3727
3949
  exports.zProjectResponse = zProjectResponse;
3728
3950
  exports.zProjectRetention = zProjectRetention;
3729
- exports.zProjectRole = zProjectRole;
3730
3951
  exports.zProjectStatsSummary = zProjectStatsSummary;
3731
3952
  exports.zProjectsCreateBody = zProjectsCreateBody;
3732
3953
  exports.zProjectsCreateResponse = zProjectsCreateResponse;
@@ -3762,14 +3983,28 @@ exports.zReleasesNewIssuesPath = zReleasesNewIssuesPath;
3762
3983
  exports.zReleasesNewIssuesQuery = zReleasesNewIssuesQuery;
3763
3984
  exports.zReleasesNewIssuesResponse = zReleasesNewIssuesResponse;
3764
3985
  exports.zRepoCommit = zRepoCommit;
3986
+ exports.zResource = zResource;
3765
3987
  exports.zRetentionResponse = zRetentionResponse;
3766
3988
  exports.zRetentionRun = zRetentionRun;
3767
3989
  exports.zRetentionSettings = zRetentionSettings;
3768
3990
  exports.zRetentionWindows = zRetentionWindows;
3991
+ exports.zRole = zRole;
3992
+ exports.zRoleAssignment = zRoleAssignment;
3993
+ exports.zRoleInput = zRoleInput;
3994
+ exports.zRoleRef = zRoleRef;
3995
+ exports.zRolesCreateBody = zRolesCreateBody;
3996
+ exports.zRolesCreateResponse = zRolesCreateResponse;
3997
+ exports.zRolesDeletePath = zRolesDeletePath;
3998
+ exports.zRolesDeleteResponse = zRolesDeleteResponse;
3999
+ exports.zRolesListResponse = zRolesListResponse;
4000
+ exports.zRolesUpdateBody = zRolesUpdateBody;
4001
+ exports.zRolesUpdatePath = zRolesUpdatePath;
4002
+ exports.zRolesUpdateResponse = zRolesUpdateResponse;
3769
4003
  exports.zSchedule = zSchedule;
3770
4004
  exports.zSchedulePreview = zSchedulePreview;
3771
4005
  exports.zSchedulesPreviewBody = zSchedulesPreviewBody;
3772
4006
  exports.zSchedulesPreviewResponse = zSchedulesPreviewResponse;
4007
+ exports.zScope = zScope;
3773
4008
  exports.zSeenResponse = zSeenResponse;
3774
4009
  exports.zSentryEvent = zSentryEvent;
3775
4010
  exports.zSentryGetIssuePath = zSentryGetIssuePath;
@@ -3812,6 +4047,8 @@ exports.zSessionsGetSummaryResponse = zSessionsGetSummaryResponse;
3812
4047
  exports.zSessionsGetTimeseriesPath = zSessionsGetTimeseriesPath;
3813
4048
  exports.zSessionsGetTimeseriesQuery = zSessionsGetTimeseriesQuery;
3814
4049
  exports.zSessionsGetTimeseriesResponse = zSessionsGetTimeseriesResponse;
4050
+ exports.zSetAccess = zSetAccess;
4051
+ exports.zSetProjectMember = zSetProjectMember;
3815
4052
  exports.zSettingsGetMcpResponse = zSettingsGetMcpResponse;
3816
4053
  exports.zSettingsUpdateMcpBody = zSettingsUpdateMcpBody;
3817
4054
  exports.zSettingsUpdateMcpResponse = zSettingsUpdateMcpResponse;
@@ -3917,11 +4154,16 @@ exports.zUpdateProject = zUpdateProject;
3917
4154
  exports.zUpdateProjectRepository = zUpdateProjectRepository;
3918
4155
  exports.zUpdateRelease = zUpdateRelease;
3919
4156
  exports.zUpdateUserRole = zUpdateUserRole;
3920
- exports.zUpsertProjectMember = zUpsertProjectMember;
4157
+ exports.zUserAccess = zUserAccess;
3921
4158
  exports.zUserReport = zUserReport;
3922
4159
  exports.zUserReportRequest = zUserReportRequest;
3923
4160
  exports.zUserResponse = zUserResponse;
3924
4161
  exports.zUserRole = zUserRole;
4162
+ exports.zUsersAssignmentsPath = zUsersAssignmentsPath;
4163
+ exports.zUsersAssignmentsResponse = zUsersAssignmentsResponse;
4164
+ exports.zUsersSetAssignmentsBody = zUsersSetAssignmentsBody;
4165
+ exports.zUsersSetAssignmentsPath = zUsersSetAssignmentsPath;
4166
+ exports.zUsersSetAssignmentsResponse = zUsersSetAssignmentsResponse;
3925
4167
  exports.zVersionResponse = zVersionResponse;
3926
4168
 
3927
4169
  //# sourceMappingURL=zod.gen.cjs.map