@uug-ai/models 1.7.87 → 1.7.89

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.
Files changed (2) hide show
  1. package/dist/types.d.ts +247 -72
  2. package/package.json +1 -1
package/dist/types.d.ts CHANGED
@@ -20634,6 +20634,45 @@ export interface paths {
20634
20634
  patch?: never;
20635
20635
  trace?: never;
20636
20636
  };
20637
+ "/internal/invitationassignment": {
20638
+ parameters: {
20639
+ query?: never;
20640
+ header?: never;
20641
+ path?: never;
20642
+ cookie?: never;
20643
+ };
20644
+ /**
20645
+ * Get InvitationAssignment (schema generation only)
20646
+ * @description Internal endpoint used only to ensure InvitationAssignment schema is generated in OpenAPI spec
20647
+ */
20648
+ get: {
20649
+ parameters: {
20650
+ query?: never;
20651
+ header?: never;
20652
+ path?: never;
20653
+ cookie?: never;
20654
+ };
20655
+ requestBody?: never;
20656
+ responses: {
20657
+ /** @description OK */
20658
+ 200: {
20659
+ headers: {
20660
+ [name: string]: unknown;
20661
+ };
20662
+ content: {
20663
+ "application/json": components["schemas"]["models.InvitationAssignment"];
20664
+ };
20665
+ };
20666
+ };
20667
+ };
20668
+ put?: never;
20669
+ post?: never;
20670
+ delete?: never;
20671
+ options?: never;
20672
+ head?: never;
20673
+ patch?: never;
20674
+ trace?: never;
20675
+ };
20637
20676
  "/internal/io": {
20638
20677
  parameters: {
20639
20678
  query?: never;
@@ -24027,6 +24066,45 @@ export interface paths {
24027
24066
  patch?: never;
24028
24067
  trace?: never;
24029
24068
  };
24069
+ "/internal/principal": {
24070
+ parameters: {
24071
+ query?: never;
24072
+ header?: never;
24073
+ path?: never;
24074
+ cookie?: never;
24075
+ };
24076
+ /**
24077
+ * Get Principal (schema generation only)
24078
+ * @description Internal endpoint used only to ensure Principal schema is generated in OpenAPI spec
24079
+ */
24080
+ get: {
24081
+ parameters: {
24082
+ query?: never;
24083
+ header?: never;
24084
+ path?: never;
24085
+ cookie?: never;
24086
+ };
24087
+ requestBody?: never;
24088
+ responses: {
24089
+ /** @description OK */
24090
+ 200: {
24091
+ headers: {
24092
+ [name: string]: unknown;
24093
+ };
24094
+ content: {
24095
+ "application/json": components["schemas"]["models.Principal"];
24096
+ };
24097
+ };
24098
+ };
24099
+ };
24100
+ put?: never;
24101
+ post?: never;
24102
+ delete?: never;
24103
+ options?: never;
24104
+ head?: never;
24105
+ patch?: never;
24106
+ trace?: never;
24107
+ };
24030
24108
  "/internal/processingartifactmetadata": {
24031
24109
  parameters: {
24032
24110
  query?: never;
@@ -25392,6 +25470,45 @@ export interface paths {
25392
25470
  patch?: never;
25393
25471
  trace?: never;
25394
25472
  };
25473
+ "/internal/roleorigin": {
25474
+ parameters: {
25475
+ query?: never;
25476
+ header?: never;
25477
+ path?: never;
25478
+ cookie?: never;
25479
+ };
25480
+ /**
25481
+ * Get RoleOrigin (schema generation only)
25482
+ * @description Internal endpoint used only to ensure RoleOrigin schema is generated in OpenAPI spec
25483
+ */
25484
+ get: {
25485
+ parameters: {
25486
+ query?: never;
25487
+ header?: never;
25488
+ path?: never;
25489
+ cookie?: never;
25490
+ };
25491
+ requestBody?: never;
25492
+ responses: {
25493
+ /** @description OK */
25494
+ 200: {
25495
+ headers: {
25496
+ [name: string]: unknown;
25497
+ };
25498
+ content: {
25499
+ "application/json": components["schemas"]["models.RoleOrigin"];
25500
+ };
25501
+ };
25502
+ };
25503
+ };
25504
+ put?: never;
25505
+ post?: never;
25506
+ delete?: never;
25507
+ options?: never;
25508
+ head?: never;
25509
+ patch?: never;
25510
+ trace?: never;
25511
+ };
25395
25512
  "/internal/rotateaccesstokenerrorresponse": {
25396
25513
  parameters: {
25397
25514
  query?: never;
@@ -28473,6 +28590,45 @@ export interface paths {
28473
28590
  patch?: never;
28474
28591
  trace?: never;
28475
28592
  };
28593
+ "/internal/timewindowrange": {
28594
+ parameters: {
28595
+ query?: never;
28596
+ header?: never;
28597
+ path?: never;
28598
+ cookie?: never;
28599
+ };
28600
+ /**
28601
+ * Get TimeWindowRange (schema generation only)
28602
+ * @description Internal endpoint used only to ensure TimeWindowRange schema is generated in OpenAPI spec
28603
+ */
28604
+ get: {
28605
+ parameters: {
28606
+ query?: never;
28607
+ header?: never;
28608
+ path?: never;
28609
+ cookie?: never;
28610
+ };
28611
+ requestBody?: never;
28612
+ responses: {
28613
+ /** @description OK */
28614
+ 200: {
28615
+ headers: {
28616
+ [name: string]: unknown;
28617
+ };
28618
+ content: {
28619
+ "application/json": components["schemas"]["models.TimeWindowRange"];
28620
+ };
28621
+ };
28622
+ };
28623
+ };
28624
+ put?: never;
28625
+ post?: never;
28626
+ delete?: never;
28627
+ options?: never;
28628
+ head?: never;
28629
+ patch?: never;
28630
+ trace?: never;
28631
+ };
28476
28632
  "/internal/traceresponse": {
28477
28633
  parameters: {
28478
28634
  query?: never;
@@ -39224,7 +39380,7 @@ export interface components {
39224
39380
  userId?: string;
39225
39381
  };
39226
39382
  /** @enum {string} */
39227
- "models.AccessTokenScope": "media.read" | "media.update" | "media.export" | "media.share" | "media.redact" | "media.delete" | "media.forward" | "storage.read" | "storage.update" | "notifications.read" | "notifications.update" | "detections.read" | "detections.create" | "detections.delete" | "sites.read" | "sites.create" | "sites.update" | "sites.delete" | "days.read" | "application" | "videowalls.read" | "videowalls.create" | "videowalls.update" | "videowalls.delete" | "videowalls.assign" | "workflow-runs.create" | "workflow-runs.read" | "workflow-runs.update" | "workflows.read" | "workflows.create" | "workflows.update" | "workflows.delete" | "roles.read" | "roles.create" | "roles.update" | "roles.delete" | "devices.read" | "devices.update" | "devices.delete" | "devices.config" | "devices.managePermissions" | "live.preview" | "live.stream" | "ptz.zoom" | "ptz.panTilt" | "ptz.control" | "ptz.presets" | "devices.manageSystemTags" | "alerts.read" | "alerts.create" | "alerts.update" | "alerts.delete" | "alerts.managePrivacy" | "floorPlans.read" | "floorPlans.create" | "floorPlans.update" | "floorPlans.delete" | "project.update" | "project.manageCredentials" | "project.manageAccess" | "projects.create" | "projects.delete" | "projects.manageAccess" | "organisation.read" | "organisation.update" | "members.read" | "members.invite" | "members.update" | "members.remove" | "labels.read" | "labels.create" | "labels.update" | "labels.delete" | "groups.read" | "groups.create" | "groups.update" | "groups.delete" | "channels.read" | "channels.create" | "channels.update" | "channels.delete" | "analytics.read" | "io.read" | "io.create" | "io.delete" | "io.trigger" | "cases.read" | "cases.create" | "cases.update" | "cases.share" | "cases.export" | "cases.runWorkflow" | "cases.delete" | "cases.manageMembership" | "cases.moderateComments" | "billing.read" | "billing.manage" | "markers.read" | "markers.write" | "markers.all" | "audit.read";
39383
+ "models.AccessTokenScope": "channels.read" | "channels.create" | "channels.update" | "channels.delete" | "markers.read" | "markers.write" | "markers.all" | "sites.read" | "sites.create" | "sites.update" | "sites.delete" | "detections.read" | "detections.create" | "detections.delete" | "labels.read" | "labels.create" | "labels.update" | "labels.delete" | "floor-plans.read" | "floor-plans.create" | "floor-plans.update" | "floor-plans.delete" | "groups.read" | "groups.create" | "groups.update" | "groups.delete" | "cases.read" | "cases.create" | "cases.update" | "cases.share" | "cases.export" | "cases.runWorkflow" | "cases.delete" | "cases.manageMembership" | "cases.moderateComments" | "roles.read" | "roles.create" | "roles.update" | "roles.delete" | "videowalls.read" | "videowalls.create" | "videowalls.update" | "videowalls.delete" | "videowalls.assign" | "days.read" | "organisation.read" | "organisation.update" | "members.read" | "members.invite" | "members.update" | "members.remove" | "workflows.read" | "workflows.create" | "workflows.update" | "workflows.delete" | "io.read" | "io.create" | "io.delete" | "io.trigger" | "analytics.read" | "media.read" | "media.update" | "media.export" | "media.share" | "media.redact" | "media.delete" | "media.forward" | "billing.read" | "billing.manage" | "audit.read" | "storage.read" | "storage.update" | "project.update" | "project.manageCredentials" | "project.manageAccess" | "projects.create" | "projects.delete" | "projects.manageAccess" | "application" | "workflow-runs.create" | "workflow-runs.read" | "workflow-runs.update" | "notifications.read" | "notifications.update" | "alerts.read" | "alerts.create" | "alerts.update" | "alerts.delete" | "alerts.managePrivacy" | "devices.read" | "devices.update" | "devices.delete" | "devices.configure" | "devices.managePermissions" | "live.preview" | "live.stream" | "ptz.zoom" | "ptz.panTilt" | "ptz.control" | "ptz.presets" | "devices.manageSystemTags";
39228
39384
  "models.Account": {
39229
39385
  account?: components["schemas"]["models.AccountBody"];
39230
39386
  };
@@ -39456,6 +39612,8 @@ export interface components {
39456
39612
  totalRegionDurationSeconds?: number;
39457
39613
  totalRegions?: number;
39458
39614
  };
39615
+ /** @enum {string} */
39616
+ "models.AssignmentSource": "manual" | "invitation" | "migration";
39459
39617
  "models.Audit": {
39460
39618
  createdAt?: string;
39461
39619
  createdBy?: string;
@@ -39541,7 +39699,7 @@ export interface components {
39541
39699
  userAgent?: string;
39542
39700
  };
39543
39701
  /** @enum {string} */
39544
- "models.BaseRole": "guest" | "editor" | "admin" | "owner" | "application";
39702
+ "models.BaseRole": "guest" | "editor" | "admin" | "owner";
39545
39703
  "models.CameraMetadata": {
39546
39704
  /** @description kbps */
39547
39705
  bitrate?: number;
@@ -41025,6 +41183,12 @@ export interface components {
41025
41183
  token?: string;
41026
41184
  valid?: boolean;
41027
41185
  };
41186
+ "models.InvitationAssignment": {
41187
+ expiresAt?: string;
41188
+ roleId?: string;
41189
+ scope?: components["schemas"]["models.RoleAssignmentScope"];
41190
+ timeWindow?: components["schemas"]["models.TimeWindow"];
41191
+ };
41028
41192
  /** @enum {string} */
41029
41193
  "models.InvitationStatus": "pending" | "accepted" | "expired" | "revoked";
41030
41194
  "models.KeyPair": {
@@ -41050,6 +41214,8 @@ export interface components {
41050
41214
  "models.LabelWrapper": {
41051
41215
  label?: components["schemas"]["models.Label"];
41052
41216
  };
41217
+ /** @enum {string} */
41218
+ "models.Level": "organisation" | "project";
41053
41219
  "models.LightSensorMetadata": {
41054
41220
  maxLux?: number;
41055
41221
  /** @description Measurable range */
@@ -41731,7 +41897,10 @@ export interface components {
41731
41897
  id?: string;
41732
41898
  isActive?: boolean;
41733
41899
  name?: string;
41734
- /** @description The user who owns this organisation */
41900
+ /** @description OwnerId is the primary owner: the accountable contact for billing and
41901
+ * the contract. Ownership itself is the Owner role (RoleKeyOwner), which
41902
+ * several members can hold; the primary owner must always hold it.
41903
+ * Changing the primary owner moves this field to another current owner. */
41735
41904
  ownerId?: string;
41736
41905
  settings?: components["schemas"]["models.OrganisationSettings"];
41737
41906
  /** @description Slug is a stable, URL-friendly handle for the organisation (e.g. "acme-corp").
@@ -41748,21 +41917,21 @@ export interface components {
41748
41917
  organisationId?: string;
41749
41918
  };
41750
41919
  "models.OrganisationInvitation": {
41920
+ /** @description Assignments are created together with the membership when the
41921
+ * invitation is accepted, each as a RoleAssignment for the invitee with
41922
+ * source invitation. They are checked against the inviter's own access
41923
+ * when the invitation is created. An invitation without assignments only
41924
+ * creates the membership. */
41925
+ assignments?: components["schemas"]["models.InvitationAssignment"][];
41751
41926
  audit?: components["schemas"]["models.Audit"];
41752
41927
  email?: string;
41753
41928
  expiresAt?: string;
41754
41929
  id?: string;
41755
41930
  invitedBy?: string;
41756
41931
  organisationId?: string;
41757
- /** @description Roles to assign upon acceptance */
41758
- roleIds?: string[];
41759
- /** @description Scope is the granular scope applied to every role in RoleIds when the
41760
- * invitation is accepted, i.e. it seeds the Scope of each resulting
41761
- * RoleAssignment. Following the RoleAssignmentScope convention, a zero value
41762
- * grants the roles organisation-wide; populate a dimension to restrict the
41763
- * resulting assignments to specific resources (see RoleAssignmentScope). */
41764
- scope?: components["schemas"]["models.RoleAssignmentScope"];
41765
41932
  status?: components["schemas"]["models.InvitationStatus"];
41933
+ /** @description Token is returned once when the invitation is created and never stored;
41934
+ * TokenHash (see HashInvitationToken) is what lookups match on. */
41766
41935
  token?: string;
41767
41936
  };
41768
41937
  "models.OrganisationMember": {
@@ -41780,8 +41949,6 @@ export interface components {
41780
41949
  allowedDomains?: string[];
41781
41950
  /** @description ISO 4217 currency code, e.g. "EUR" */
41782
41951
  currency?: string;
41783
- /** @description Default role for new members */
41784
- defaultRoleId?: string;
41785
41952
  /** @description Contacts for different purposes */
41786
41953
  financialContact?: components["schemas"]["models.Contact"];
41787
41954
  forceMFA?: boolean;
@@ -41841,14 +42008,14 @@ export interface components {
41841
42008
  videowall?: components["schemas"]["models.Videowall"];
41842
42009
  };
41843
42010
  /** @enum {string} */
41844
- "models.Permission": "media.read" | "media.update" | "media.export" | "media.share" | "media.redact" | "media.delete" | "media.forward" | "storage.read" | "storage.update" | "notifications.read" | "notifications.update" | "detections.read" | "detections.create" | "detections.delete" | "sites.read" | "sites.create" | "sites.update" | "sites.delete" | "days.read" | "application" | "videowalls.read" | "videowalls.create" | "videowalls.update" | "videowalls.delete" | "videowalls.assign" | "workflow-runs.create" | "workflow-runs.read" | "workflow-runs.update" | "workflows.read" | "workflows.create" | "workflows.update" | "workflows.delete" | "roles.read" | "roles.create" | "roles.update" | "roles.delete" | "devices.read" | "devices.update" | "devices.delete" | "devices.config" | "devices.managePermissions" | "live.preview" | "live.stream" | "ptz.zoom" | "ptz.panTilt" | "ptz.control" | "ptz.presets" | "devices.manageSystemTags" | "alerts.read" | "alerts.create" | "alerts.update" | "alerts.delete" | "alerts.managePrivacy" | "floorPlans.read" | "floorPlans.create" | "floorPlans.update" | "floorPlans.delete" | "project.update" | "project.manageCredentials" | "project.manageAccess" | "projects.create" | "projects.delete" | "projects.manageAccess" | "organisation.read" | "organisation.update" | "members.read" | "members.invite" | "members.update" | "members.remove" | "labels.read" | "labels.create" | "labels.update" | "labels.delete" | "groups.read" | "groups.create" | "groups.update" | "groups.delete" | "channels.read" | "channels.create" | "channels.update" | "channels.delete" | "analytics.read" | "io.read" | "io.create" | "io.delete" | "io.trigger" | "cases.read" | "cases.create" | "cases.update" | "cases.share" | "cases.export" | "cases.runWorkflow" | "cases.delete" | "cases.manageMembership" | "cases.moderateComments" | "billing.read" | "billing.manage" | "markers.read" | "markers.write" | "markers.all" | "audit.read";
42011
+ "models.Permission": "channels.read" | "channels.create" | "channels.update" | "channels.delete" | "markers.read" | "markers.write" | "markers.all" | "sites.read" | "sites.create" | "sites.update" | "sites.delete" | "detections.read" | "detections.create" | "detections.delete" | "labels.read" | "labels.create" | "labels.update" | "labels.delete" | "floor-plans.read" | "floor-plans.create" | "floor-plans.update" | "floor-plans.delete" | "groups.read" | "groups.create" | "groups.update" | "groups.delete" | "cases.read" | "cases.create" | "cases.update" | "cases.share" | "cases.export" | "cases.runWorkflow" | "cases.delete" | "cases.manageMembership" | "cases.moderateComments" | "roles.read" | "roles.create" | "roles.update" | "roles.delete" | "videowalls.read" | "videowalls.create" | "videowalls.update" | "videowalls.delete" | "videowalls.assign" | "days.read" | "organisation.read" | "organisation.update" | "members.read" | "members.invite" | "members.update" | "members.remove" | "workflows.read" | "workflows.create" | "workflows.update" | "workflows.delete" | "io.read" | "io.create" | "io.delete" | "io.trigger" | "analytics.read" | "media.read" | "media.update" | "media.export" | "media.share" | "media.redact" | "media.delete" | "media.forward" | "billing.read" | "billing.manage" | "audit.read" | "storage.read" | "storage.update" | "project.update" | "project.manageCredentials" | "project.manageAccess" | "projects.create" | "projects.delete" | "projects.manageAccess" | "application" | "workflow-runs.create" | "workflow-runs.read" | "workflow-runs.update" | "notifications.read" | "notifications.update" | "alerts.read" | "alerts.create" | "alerts.update" | "alerts.delete" | "alerts.managePrivacy" | "devices.read" | "devices.update" | "devices.delete" | "devices.configure" | "devices.managePermissions" | "live.preview" | "live.stream" | "ptz.zoom" | "ptz.panTilt" | "ptz.control" | "ptz.presets" | "devices.manageSystemTags";
41845
42012
  "models.PermissionDefinition": {
41846
42013
  /** @description Implies lists the permissions that holding this one also grants, e.g. a
41847
42014
  * graded capability implies its lower grades. Implied permissions always
41848
- * share the same scope. */
42015
+ * share the same level. */
41849
42016
  implies?: components["schemas"]["models.Permission"][];
42017
+ level?: components["schemas"]["models.Level"];
41850
42018
  permission?: components["schemas"]["models.Permission"];
41851
- scope?: components["schemas"]["models.PermissionScope"];
41852
42019
  /** @description TenantWide marks an organisation permission that affects the whole
41853
42020
  * organisation (billing, the role catalog, removing members). A role holding
41854
42021
  * one can only be assigned to cover all projects; see RoleAssignmentScope. */
@@ -41856,8 +42023,6 @@ export interface components {
41856
42023
  };
41857
42024
  /** @enum {integer} */
41858
42025
  "models.PermissionLevel": 1 | 2 | 3 | 4 | 2 | 3 | 4 | 5 | 2 | 3 | 2 | 2 | 3 | 2 | 3 | 4;
41859
- /** @enum {string} */
41860
- "models.PermissionScope": "organisation" | "project";
41861
42026
  "models.Permissions": {
41862
42027
  featurePermissions?: components["schemas"]["models.FeaturePermissions"];
41863
42028
  pages?: string[];
@@ -41961,6 +42126,12 @@ export interface components {
41961
42126
  x?: number;
41962
42127
  y?: number;
41963
42128
  };
42129
+ "models.Principal": {
42130
+ id?: string;
42131
+ type?: components["schemas"]["models.PrincipalType"];
42132
+ };
42133
+ /** @enum {string} */
42134
+ "models.PrincipalType": "user";
41964
42135
  "models.ProcessingArtifactMetadata": {
41965
42136
  columns?: number;
41966
42137
  count?: number;
@@ -42068,32 +42239,27 @@ export interface components {
42068
42239
  };
42069
42240
  "models.RemoveAlertOutput": Record<string, never>;
42070
42241
  "models.Role": {
42242
+ assignableAt?: components["schemas"]["models.Level"];
42071
42243
  audit?: components["schemas"]["models.Audit"];
42072
42244
  description?: string;
42073
- featurePermissions?: components["schemas"]["models.FeaturePermissions"];
42245
+ /** @description Grants says whether the role grants every permission (all; the Owner
42246
+ * role only, with no Permissions) or exactly the listed Permissions
42247
+ * (selected; an empty list grants nothing). It is required: the zero value
42248
+ * is invalid, so an empty list never means "everything". */
42249
+ grants?: components["schemas"]["models.Selection"];
42074
42250
  id?: string;
42075
42251
  isActive?: boolean;
42252
+ /** @description System and legacy roles only; unique per organisation */
42253
+ key?: components["schemas"]["models.RoleKey"];
42254
+ kind?: components["schemas"]["models.RoleKind"];
42255
+ name?: string;
42076
42256
  /** @description Organisation this role belongs to */
42077
42257
  organisationId?: string;
42078
- /** @description Pages and FeaturePermissions are two orthogonal authorization axes:
42079
- * - Pages controls which UI/nav pages are visible (coarse allow-list).
42080
- * - FeaturePermissions controls the CRUD AccessLevel per feature.
42081
- * Some names appear in both (e.g. sites/groups/roles/settings); that overlap
42082
- * is intentional - visibility and capability are decided independently, and
42083
- * the consuming service resolves them together (page hidden => not shown;
42084
- * feature level => what may be done once on the page). */
42085
- pages?: string[];
42086
- /** @description Permissions is the canonical set of domain.action grants carried by this
42087
- * role. FeaturePermissions remains available during legacy migration. */
42258
+ origin?: components["schemas"]["models.RoleOrigin"];
42259
+ /** @description Permissions is the canonical set of grants carried by a Grants=selected
42260
+ * role, all of the AssignableAt level. Implied permissions (see
42261
+ * ExpandPermissions) are not stored. */
42088
42262
  permissions?: components["schemas"]["models.Permission"][];
42089
- /** @description ParentRole is the built-in BaseRole tier this custom role extends. It is a
42090
- * live tier identifier (NOT an ObjectID reference to another Role document):
42091
- * it sets the effective tier/RoleLevel for coarse gating and bounds which
42092
- * pages the role may grant. See BaseRole. */
42093
- role?: components["schemas"]["models.BaseRole"];
42094
- roleName?: string;
42095
- timeWindow?: components["schemas"]["models.TimeWindow"];
42096
- timeWindowActive?: boolean;
42097
42263
  };
42098
42264
  "models.RoleAssignment": {
42099
42265
  audit?: components["schemas"]["models.Audit"];
@@ -42106,28 +42272,48 @@ export interface components {
42106
42272
  isActive?: boolean;
42107
42273
  /** @description Organisation context for this assignment */
42108
42274
  organisationId?: string;
42109
- /** @description Reference to the organisation-specific Role */
42275
+ principal?: components["schemas"]["models.Principal"];
42276
+ /** @description Reference to the organisation's Role */
42110
42277
  roleId?: string;
42111
- /** @description Optional granular scope within organisation */
42112
42278
  scope?: components["schemas"]["models.RoleAssignmentScope"];
42113
- userId?: string;
42279
+ source?: components["schemas"]["models.AssignmentSource"];
42280
+ /** @description TimeWindow optionally limits when the assignment is in force. */
42281
+ timeWindow?: components["schemas"]["models.TimeWindow"];
42114
42282
  };
42115
42283
  "models.RoleAssignmentScope": {
42116
- /** @description Restrict to these devices (empty = all devices) */
42284
+ /** @description Resources=selected only */
42117
42285
  deviceIds?: string[];
42118
- /** @description Restrict to these groups (empty = all groups) */
42286
+ /** @description Resources=selected only */
42119
42287
  groupIds?: string[];
42120
- /** @description Restrict to these projects (empty = all projects and organisation-wide resources) */
42288
+ level?: components["schemas"]["models.Level"];
42289
+ /** @description Level=project only. */
42290
+ projectId?: string;
42291
+ /** @description Projects=selected only; at least one */
42121
42292
  projectIds?: string[];
42122
- /** @description Restrict to these sites (empty = all sites) */
42293
+ /** @description Level=organisation only. */
42294
+ projects?: components["schemas"]["models.Selection"];
42295
+ resources?: components["schemas"]["models.Selection"];
42296
+ /** @description Resources=selected only */
42123
42297
  siteIds?: string[];
42124
42298
  };
42299
+ /** @enum {string} */
42300
+ "models.RoleKey": "owner" | "organisation-manager" | "billing-admin" | "project-admin" | "editor" | "viewer" | "legacy-guest" | "legacy-editor" | "legacy-admin" | "legacy-admin-organisation";
42301
+ /** @enum {string} */
42302
+ "models.RoleKind": "system" | "legacy" | "custom";
42303
+ "models.RoleOrigin": {
42304
+ /** @description Legacy tier the role reproduces or extended */
42305
+ baseRole?: components["schemas"]["models.BaseRole"];
42306
+ /** @description Legacy custom role it was copied from */
42307
+ legacyRoleId?: string;
42308
+ };
42125
42309
  "models.RuntimeConfig": {
42126
42310
  mqttPassword?: string;
42127
42311
  mqttUsername?: string;
42128
42312
  turnPassword?: string;
42129
42313
  turnUsername?: string;
42130
42314
  };
42315
+ /** @enum {string} */
42316
+ "models.Selection": "all" | "selected";
42131
42317
  "models.Sequence": {
42132
42318
  analysis?: {
42133
42319
  [key: string]: unknown;
@@ -42676,34 +42862,17 @@ export interface components {
42676
42862
  value?: number;
42677
42863
  };
42678
42864
  "models.TimeWindow": {
42679
- timeRange1MaxFriday?: number;
42680
- timeRange1MaxMonday?: number;
42681
- timeRange1MaxSaturday?: number;
42682
- timeRange1MaxSunday?: number;
42683
- timeRange1MaxThursday?: number;
42684
- timeRange1MaxTuesday?: number;
42685
- timeRange1MaxWednesday?: number;
42686
- timeRange1MinFriday?: number;
42687
- timeRange1MinMonday?: number;
42688
- timeRange1MinSaturday?: number;
42689
- timeRange1MinSunday?: number;
42690
- timeRange1MinThursday?: number;
42691
- timeRange1MinTuesday?: number;
42692
- timeRange1MinWednesday?: number;
42693
- timeRange2MaxFriday?: number;
42694
- timeRange2MaxMonday?: number;
42695
- timeRange2MaxSaturday?: number;
42696
- timeRange2MaxSunday?: number;
42697
- timeRange2MaxThursday?: number;
42698
- timeRange2MaxTuesday?: number;
42699
- timeRange2MaxWednesday?: number;
42700
- timeRange2MinFriday?: number;
42701
- timeRange2MinMonday?: number;
42702
- timeRange2MinSaturday?: number;
42703
- timeRange2MinSunday?: number;
42704
- timeRange2MinThursday?: number;
42705
- timeRange2MinTuesday?: number;
42706
- timeRange2MinWednesday?: number;
42865
+ /** @description In force when any range matches */
42866
+ ranges?: components["schemas"]["models.TimeWindowRange"][];
42867
+ /** @description IANA timezone, e.g. "Europe/Brussels" */
42868
+ timezone?: string;
42869
+ };
42870
+ "models.TimeWindowRange": {
42871
+ days?: components["schemas"]["models.Weekday"][];
42872
+ /** @description 1-1440 */
42873
+ endMinute?: number;
42874
+ /** @description 0-1439 */
42875
+ startMinute?: number;
42707
42876
  };
42708
42877
  "models.Timeline": {
42709
42878
  device?: components["schemas"]["models.Device"];
@@ -43096,6 +43265,8 @@ export interface components {
43096
43265
  url?: string;
43097
43266
  valid?: boolean;
43098
43267
  };
43268
+ /** @enum {string} */
43269
+ "models.Weekday": "monday" | "tuesday" | "wednesday" | "thursday" | "friday" | "saturday" | "sunday";
43099
43270
  "models.WeeklySchedule": {
43100
43271
  day?: number;
43101
43272
  enabled?: boolean;
@@ -44051,6 +44222,7 @@ export declare namespace models {
44051
44222
  type HumiditySensorMetadata = components['schemas']['models.HumiditySensorMetadata'];
44052
44223
  type IO = components['schemas']['models.IO'];
44053
44224
  type Ifttt = components['schemas']['models.Ifttt'];
44225
+ type InvitationAssignment = components['schemas']['models.InvitationAssignment'];
44054
44226
  type KeyPair = components['schemas']['models.KeyPair'];
44055
44227
  type Label = components['schemas']['models.Label'];
44056
44228
  type LabelWrapper = components['schemas']['models.LabelWrapper'];
@@ -44111,6 +44283,7 @@ export declare namespace models {
44111
44283
  type PipelineSourceDevice = components['schemas']['models.PipelineSourceDevice'];
44112
44284
  type Plan = components['schemas']['models.Plan'];
44113
44285
  type Point = components['schemas']['models.Point'];
44286
+ type Principal = components['schemas']['models.Principal'];
44114
44287
  type ProcessingArtifactMetadata = components['schemas']['models.ProcessingArtifactMetadata'];
44115
44288
  type ProcessingCompletion = components['schemas']['models.ProcessingCompletion'];
44116
44289
  type ProcessingCompletionTarget = components['schemas']['models.ProcessingCompletionTarget'];
@@ -44129,6 +44302,7 @@ export declare namespace models {
44129
44302
  type Role = components['schemas']['models.Role'];
44130
44303
  type RoleAssignment = components['schemas']['models.RoleAssignment'];
44131
44304
  type RoleAssignmentScope = components['schemas']['models.RoleAssignmentScope'];
44305
+ type RoleOrigin = components['schemas']['models.RoleOrigin'];
44132
44306
  type RuntimeConfig = components['schemas']['models.RuntimeConfig'];
44133
44307
  type Sequence = components['schemas']['models.Sequence'];
44134
44308
  type SequenceStage = components['schemas']['models.SequenceStage'];
@@ -44167,6 +44341,7 @@ export declare namespace models {
44167
44341
  type TimeSeriesChart = components['schemas']['models.TimeSeriesChart'];
44168
44342
  type TimeSeriesDataPoint = components['schemas']['models.TimeSeriesDataPoint'];
44169
44343
  type TimeWindow = components['schemas']['models.TimeWindow'];
44344
+ type TimeWindowRange = components['schemas']['models.TimeWindowRange'];
44170
44345
  type Timeline = components['schemas']['models.Timeline'];
44171
44346
  type TrackBox = components['schemas']['models.TrackBox'];
44172
44347
  type UpdateAlertInput = components['schemas']['models.UpdateAlertInput'];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uug-ai/models",
3
- "version": "1.7.87",
3
+ "version": "1.7.89",
4
4
  "description": "TypeScript type definitions for Go models",
5
5
  "main": "dist/types.js",
6
6
  "types": "dist/types.d.ts",