@vrplatform/api 1.3.1-4565 → 1.3.1-4567

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/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.3.1-4565",
6
+ "version": "1.3.1-4567",
7
7
  "description": "",
8
8
  "main": "build/main/index.js",
9
9
  "module": "build/module/index.js",
@@ -1558,7 +1558,8 @@ export interface paths {
1558
1558
  path?: never;
1559
1559
  cookie?: never;
1560
1560
  };
1561
- get?: never;
1561
+ /** @description List users in one regional data partition with their team memberships and owner accesses. Select the partition with x-data-region. */
1562
+ get: operations["getInternalUsers"];
1562
1563
  put?: never;
1563
1564
  /** @description Create or update a platform user by email, optionally granting an initial team membership. Used by the identity provider signup hooks. A duplicate email belonging to another user is rejected as a user error. */
1564
1565
  post: operations["postInternalUsers"];
@@ -1840,7 +1841,7 @@ export interface paths {
1840
1841
  path?: never;
1841
1842
  cookie?: never;
1842
1843
  };
1843
- /** @description UI bootstrap call: the authenticated user plus the resolved team (embedded-session team, x-team-id header, or the oldest active membership), including membership, owner access, effective feature IDs, issue counts, and frontend setup context. Embedded identities use sub instead of email, so user.email is null for them. */
1844
+ /** @description UI bootstrap call: the authenticated user plus the resolved team (embedded-session team, x-team-id header, or the oldest active membership), including placement, partner managed-team region discovery, membership, owner access, effective feature IDs, issue counts, and frontend setup context. Embedded identities use sub instead of email, so user.email is null for them. */
1844
1845
  get: operations["getMe"];
1845
1846
  put?: never;
1846
1847
  post?: never;
@@ -2246,7 +2247,7 @@ export interface paths {
2246
2247
  path?: never;
2247
2248
  cookie?: never;
2248
2249
  };
2249
- /** @description List members of the partner itself with their child-team memberships */
2250
+ /** @description List members of the partner itself with their partner-team role, status, invitation timestamp, and child-team memberships */
2250
2251
  get: operations["getPartnerMembers"];
2251
2252
  put?: never;
2252
2253
  post?: never;
@@ -2290,6 +2291,23 @@ export interface paths {
2290
2291
  patch?: never;
2291
2292
  trace?: never;
2292
2293
  };
2294
+ "/partner/owner-statements": {
2295
+ parameters: {
2296
+ query?: never;
2297
+ header?: never;
2298
+ path?: never;
2299
+ cookie?: never;
2300
+ };
2301
+ /** @description List VRT teams in one regional partition of the partner portfolio with owner statement counts by status. Supports team-name search, pagination, and ordering by each status count. Select the partition with x-data-region. */
2302
+ get: operations["getPartnerOwnerStatements"];
2303
+ put?: never;
2304
+ post?: never;
2305
+ delete?: never;
2306
+ options?: never;
2307
+ head?: never;
2308
+ patch?: never;
2309
+ trace?: never;
2310
+ };
2293
2311
  "/partner/users": {
2294
2312
  parameters: {
2295
2313
  query?: never;
@@ -2297,7 +2315,7 @@ export interface paths {
2297
2315
  path?: never;
2298
2316
  cookie?: never;
2299
2317
  };
2300
- /** @description List users across the partner portfolio (the partner and all of its teams) with their team memberships and owner accesses */
2318
+ /** @description List child-team users across one regional partition of the partner portfolio with their team memberships and owner accesses. Users who belong to the partner team itself are excluded. Select the partition with x-data-region. */
2301
2319
  get: operations["getPartnerUsers"];
2302
2320
  put?: never;
2303
2321
  post?: never;
@@ -2314,7 +2332,7 @@ export interface paths {
2314
2332
  path?: never;
2315
2333
  cookie?: never;
2316
2334
  };
2317
- /** @description Get a single portfolio user with their memberships across the partner and all of its teams, plus owner accesses */
2335
+ /** @description Get a single portfolio user with memberships and owner accesses from one regional partition. Select the partition with x-data-region. */
2318
2336
  get: operations["getPartnerUser"];
2319
2337
  put?: never;
2320
2338
  post?: never;
@@ -3871,7 +3889,7 @@ export interface paths {
3871
3889
  path?: never;
3872
3890
  cookie?: never;
3873
3891
  };
3874
- /** @description Get List of all Teams */
3892
+ /** @description List accessible teams in one regional data partition. Partner callers can select the partition with x-data-region. */
3875
3893
  get: operations["getTeams"];
3876
3894
  put?: never;
3877
3895
  /** @description Create team */
@@ -3889,7 +3907,7 @@ export interface paths {
3889
3907
  path?: never;
3890
3908
  cookie?: never;
3891
3909
  };
3892
- /** @description List cursor-paginated materialized issue summaries across accessible teams. */
3910
+ /** @description List cursor-paginated materialized issue summaries across accessible teams in one regional data partition. Partner callers can select the partition with x-data-region. */
3893
3911
  get: operations["getTeamsIssues"];
3894
3912
  put?: never;
3895
3913
  post?: never;
@@ -3906,7 +3924,7 @@ export interface paths {
3906
3924
  path?: never;
3907
3925
  cookie?: never;
3908
3926
  };
3909
- /** @description Look up teams by name */
3927
+ /** @description Look up accessible teams by name in one regional data partition. Partner callers can select the partition with x-data-region. */
3910
3928
  get: operations["getTeamsLookup"];
3911
3929
  put?: never;
3912
3930
  post?: never;
@@ -29567,6 +29585,207 @@ export interface operations {
29567
29585
  };
29568
29586
  };
29569
29587
  };
29588
+ getInternalUsers: {
29589
+ parameters: {
29590
+ query?: {
29591
+ /** @description Filter by email, secondary email, first name, last name, or full name */
29592
+ search?: string;
29593
+ limit?: number;
29594
+ page?: number;
29595
+ offset?: number;
29596
+ };
29597
+ header?: {
29598
+ /** @description Selects the regional data partition for this regional collection read. It does not change the authenticated team context. */
29599
+ "x-data-region"?: "ap" | "crunchy" | "eu" | "hostaway" | "us";
29600
+ };
29601
+ path?: never;
29602
+ cookie?: never;
29603
+ };
29604
+ requestBody?: never;
29605
+ responses: {
29606
+ /** @description Successful response */
29607
+ 200: {
29608
+ headers: {
29609
+ [name: string]: unknown;
29610
+ };
29611
+ content: {
29612
+ "application/json": {
29613
+ data: {
29614
+ /** Format: uuid */
29615
+ id: string;
29616
+ firstName: string | null;
29617
+ lastName: string | null;
29618
+ /** Format: email */
29619
+ email: string;
29620
+ secondaryEmails: string[];
29621
+ /** @description User kind (e.g. user, owner) */
29622
+ type?: string | null;
29623
+ lastSeen: string | null;
29624
+ createdAt: string | null;
29625
+ memberships: {
29626
+ /** Format: uuid */
29627
+ teamId: string;
29628
+ teamName: string;
29629
+ role?: string | null;
29630
+ status?: string | null;
29631
+ lastInvitedAt: string | null;
29632
+ }[];
29633
+ ownerAccesses: {
29634
+ /** Format: uuid */
29635
+ teamId: string;
29636
+ contactId: string | null;
29637
+ ownerId: string | null;
29638
+ role?: string | null;
29639
+ /** @description Owner contact name */
29640
+ name?: string | null;
29641
+ }[];
29642
+ }[];
29643
+ pagination: {
29644
+ /** @default 100 */
29645
+ limit: number;
29646
+ /** @default 1 */
29647
+ page: number;
29648
+ total: number;
29649
+ totalPage: number;
29650
+ nextPage?: number;
29651
+ };
29652
+ };
29653
+ };
29654
+ };
29655
+ /** @description Bad request */
29656
+ 400: {
29657
+ headers: {
29658
+ [name: string]: unknown;
29659
+ };
29660
+ content: {
29661
+ "application/json": {
29662
+ code: string;
29663
+ message: string;
29664
+ links?: {
29665
+ docs: string;
29666
+ schema: string;
29667
+ };
29668
+ issues?: {
29669
+ message: string;
29670
+ path?: (string | number)[];
29671
+ schema?: string;
29672
+ }[];
29673
+ context?: unknown;
29674
+ };
29675
+ };
29676
+ };
29677
+ /** @description Unauthorized */
29678
+ 401: {
29679
+ headers: {
29680
+ [name: string]: unknown;
29681
+ };
29682
+ content: {
29683
+ "application/json": {
29684
+ code: string;
29685
+ message: string;
29686
+ links?: {
29687
+ docs: string;
29688
+ schema: string;
29689
+ };
29690
+ issues?: {
29691
+ message: string;
29692
+ path?: (string | number)[];
29693
+ schema?: string;
29694
+ }[];
29695
+ context?: unknown;
29696
+ };
29697
+ };
29698
+ };
29699
+ /** @description Forbidden */
29700
+ 403: {
29701
+ headers: {
29702
+ [name: string]: unknown;
29703
+ };
29704
+ content: {
29705
+ "application/json": {
29706
+ code: string;
29707
+ message: string;
29708
+ links?: {
29709
+ docs: string;
29710
+ schema: string;
29711
+ };
29712
+ issues?: {
29713
+ message: string;
29714
+ path?: (string | number)[];
29715
+ schema?: string;
29716
+ }[];
29717
+ context?: unknown;
29718
+ };
29719
+ };
29720
+ };
29721
+ /** @description Not found */
29722
+ 404: {
29723
+ headers: {
29724
+ [name: string]: unknown;
29725
+ };
29726
+ content: {
29727
+ "application/json": {
29728
+ code: string;
29729
+ message: string;
29730
+ links?: {
29731
+ docs: string;
29732
+ schema: string;
29733
+ };
29734
+ issues?: {
29735
+ message: string;
29736
+ path?: (string | number)[];
29737
+ schema?: string;
29738
+ }[];
29739
+ context?: unknown;
29740
+ };
29741
+ };
29742
+ };
29743
+ /** @description Internal server error */
29744
+ 500: {
29745
+ headers: {
29746
+ [name: string]: unknown;
29747
+ };
29748
+ content: {
29749
+ "application/json": {
29750
+ code: string;
29751
+ message: string;
29752
+ links?: {
29753
+ docs: string;
29754
+ schema: string;
29755
+ };
29756
+ issues?: {
29757
+ message: string;
29758
+ path?: (string | number)[];
29759
+ schema?: string;
29760
+ }[];
29761
+ context?: unknown;
29762
+ };
29763
+ };
29764
+ };
29765
+ /** @description Service unavailable */
29766
+ 503: {
29767
+ headers: {
29768
+ [name: string]: unknown;
29769
+ };
29770
+ content: {
29771
+ "application/json": {
29772
+ code: string;
29773
+ message: string;
29774
+ links?: {
29775
+ docs: string;
29776
+ schema: string;
29777
+ };
29778
+ issues?: {
29779
+ message: string;
29780
+ path?: (string | number)[];
29781
+ schema?: string;
29782
+ }[];
29783
+ context?: unknown;
29784
+ };
29785
+ };
29786
+ };
29787
+ };
29788
+ };
29570
29789
  postInternalUsers: {
29571
29790
  parameters: {
29572
29791
  query?: never;
@@ -35302,6 +35521,10 @@ export interface operations {
35302
35521
  name: string | null;
35303
35522
  slug: string;
35304
35523
  /** @enum {string} */
35524
+ dataRegion: "ap" | "crunchy" | "eu" | "hostaway" | "us";
35525
+ /** Format: uri */
35526
+ apiBaseUrl: string;
35527
+ /** @enum {string} */
35305
35528
  type: "propertyManager" | "partner";
35306
35529
  partnerId: string | null;
35307
35530
  isGeneralLedger: boolean;
@@ -35375,6 +35598,18 @@ export interface operations {
35375
35598
  ownerNeedsReviewId: string | null;
35376
35599
  guideOnboardingStatus: ("skipped" | "completed") | null;
35377
35600
  } | null;
35601
+ partnerContext: {
35602
+ managedTeamRegions: {
35603
+ /** @enum {string} */
35604
+ dataRegion: "ap" | "crunchy" | "eu" | "hostaway" | "us";
35605
+ /** Format: uri */
35606
+ apiBaseUrl: string;
35607
+ counts: {
35608
+ active: number;
35609
+ inactive: number;
35610
+ };
35611
+ }[];
35612
+ } | null;
35378
35613
  };
35379
35614
  };
35380
35615
  };
@@ -39271,6 +39506,10 @@ export interface operations {
39271
39506
  /** Format: email */
39272
39507
  email: string;
39273
39508
  secondaryEmails: string[];
39509
+ /** @enum {string} */
39510
+ role: "admin" | "user";
39511
+ status: ("active" | "inactive" | "unconfirmed") | null;
39512
+ lastInvitedAt: string | null;
39274
39513
  partnerId: string | null;
39275
39514
  name: string | null;
39276
39515
  firstName: string | null;
@@ -39757,6 +39996,198 @@ export interface operations {
39757
39996
  };
39758
39997
  };
39759
39998
  };
39999
+ getPartnerOwnerStatements: {
40000
+ parameters: {
40001
+ query?: {
40002
+ /** @description Filter by team name */
40003
+ search?: string;
40004
+ /** @description Owner statement status count to sort by */
40005
+ sortBy?: "draft" | "inReview" | "published";
40006
+ /** @description Sort direction, defaults to asc */
40007
+ sortDirection?: "asc" | "desc";
40008
+ limit?: number;
40009
+ page?: number;
40010
+ offset?: number;
40011
+ };
40012
+ header?: {
40013
+ /** @description Selects the regional data partition for this regional collection read. It does not change the authenticated team context. */
40014
+ "x-data-region"?: "ap" | "crunchy" | "eu" | "hostaway" | "us";
40015
+ };
40016
+ path?: never;
40017
+ cookie?: never;
40018
+ };
40019
+ requestBody?: never;
40020
+ responses: {
40021
+ /** @description Successful response */
40022
+ 200: {
40023
+ headers: {
40024
+ [name: string]: unknown;
40025
+ };
40026
+ content: {
40027
+ "application/json": {
40028
+ data: {
40029
+ /** Format: uuid */
40030
+ id: string;
40031
+ name: string;
40032
+ logo?: string;
40033
+ /**
40034
+ * Format: date-time
40035
+ * @description Timestamp string with date, time, milliseconds, and timezone.
40036
+ * @example 2024-01-15T12:30:00.000+00:00
40037
+ */
40038
+ createdAt: string;
40039
+ ownerStatements: {
40040
+ draft: number;
40041
+ inReview: number;
40042
+ published: number;
40043
+ };
40044
+ }[];
40045
+ pagination: {
40046
+ /** @default 100 */
40047
+ limit: number;
40048
+ /** @default 1 */
40049
+ page: number;
40050
+ total: number;
40051
+ totalPage: number;
40052
+ nextPage?: number;
40053
+ };
40054
+ };
40055
+ };
40056
+ };
40057
+ /** @description Bad request */
40058
+ 400: {
40059
+ headers: {
40060
+ [name: string]: unknown;
40061
+ };
40062
+ content: {
40063
+ "application/json": {
40064
+ code: string;
40065
+ message: string;
40066
+ links?: {
40067
+ docs: string;
40068
+ schema: string;
40069
+ };
40070
+ issues?: {
40071
+ message: string;
40072
+ path?: (string | number)[];
40073
+ schema?: string;
40074
+ }[];
40075
+ context?: unknown;
40076
+ };
40077
+ };
40078
+ };
40079
+ /** @description Unauthorized */
40080
+ 401: {
40081
+ headers: {
40082
+ [name: string]: unknown;
40083
+ };
40084
+ content: {
40085
+ "application/json": {
40086
+ code: string;
40087
+ message: string;
40088
+ links?: {
40089
+ docs: string;
40090
+ schema: string;
40091
+ };
40092
+ issues?: {
40093
+ message: string;
40094
+ path?: (string | number)[];
40095
+ schema?: string;
40096
+ }[];
40097
+ context?: unknown;
40098
+ };
40099
+ };
40100
+ };
40101
+ /** @description Forbidden */
40102
+ 403: {
40103
+ headers: {
40104
+ [name: string]: unknown;
40105
+ };
40106
+ content: {
40107
+ "application/json": {
40108
+ code: string;
40109
+ message: string;
40110
+ links?: {
40111
+ docs: string;
40112
+ schema: string;
40113
+ };
40114
+ issues?: {
40115
+ message: string;
40116
+ path?: (string | number)[];
40117
+ schema?: string;
40118
+ }[];
40119
+ context?: unknown;
40120
+ };
40121
+ };
40122
+ };
40123
+ /** @description Not found */
40124
+ 404: {
40125
+ headers: {
40126
+ [name: string]: unknown;
40127
+ };
40128
+ content: {
40129
+ "application/json": {
40130
+ code: string;
40131
+ message: string;
40132
+ links?: {
40133
+ docs: string;
40134
+ schema: string;
40135
+ };
40136
+ issues?: {
40137
+ message: string;
40138
+ path?: (string | number)[];
40139
+ schema?: string;
40140
+ }[];
40141
+ context?: unknown;
40142
+ };
40143
+ };
40144
+ };
40145
+ /** @description Internal server error */
40146
+ 500: {
40147
+ headers: {
40148
+ [name: string]: unknown;
40149
+ };
40150
+ content: {
40151
+ "application/json": {
40152
+ code: string;
40153
+ message: string;
40154
+ links?: {
40155
+ docs: string;
40156
+ schema: string;
40157
+ };
40158
+ issues?: {
40159
+ message: string;
40160
+ path?: (string | number)[];
40161
+ schema?: string;
40162
+ }[];
40163
+ context?: unknown;
40164
+ };
40165
+ };
40166
+ };
40167
+ /** @description Service unavailable */
40168
+ 503: {
40169
+ headers: {
40170
+ [name: string]: unknown;
40171
+ };
40172
+ content: {
40173
+ "application/json": {
40174
+ code: string;
40175
+ message: string;
40176
+ links?: {
40177
+ docs: string;
40178
+ schema: string;
40179
+ };
40180
+ issues?: {
40181
+ message: string;
40182
+ path?: (string | number)[];
40183
+ schema?: string;
40184
+ }[];
40185
+ context?: unknown;
40186
+ };
40187
+ };
40188
+ };
40189
+ };
40190
+ };
39760
40191
  getPartnerUsers: {
39761
40192
  parameters: {
39762
40193
  query?: {
@@ -39776,7 +40207,10 @@ export interface operations {
39776
40207
  page?: number;
39777
40208
  offset?: number;
39778
40209
  };
39779
- header?: never;
40210
+ header?: {
40211
+ /** @description Selects the regional data partition for this regional collection read. It does not change the authenticated team context. */
40212
+ "x-data-region"?: "ap" | "crunchy" | "eu" | "hostaway" | "us";
40213
+ };
39780
40214
  path?: never;
39781
40215
  cookie?: never;
39782
40216
  };
@@ -39968,7 +40402,10 @@ export interface operations {
39968
40402
  getPartnerUser: {
39969
40403
  parameters: {
39970
40404
  query?: never;
39971
- header?: never;
40405
+ header?: {
40406
+ /** @description Selects the regional data partition for this regional collection read. It does not change the authenticated team context. */
40407
+ "x-data-region"?: "ap" | "crunchy" | "eu" | "hostaway" | "us";
40408
+ };
39972
40409
  path: {
39973
40410
  id: string;
39974
40411
  };
@@ -77310,7 +77747,10 @@ export interface operations {
77310
77747
  page?: number;
77311
77748
  offset?: number;
77312
77749
  };
77313
- header?: never;
77750
+ header?: {
77751
+ /** @description Selects the regional data partition for this regional collection read. It does not change the authenticated team context. */
77752
+ "x-data-region"?: "ap" | "crunchy" | "eu" | "hostaway" | "us";
77753
+ };
77314
77754
  path?: never;
77315
77755
  cookie?: never;
77316
77756
  };
@@ -78012,7 +78452,10 @@ export interface operations {
78012
78452
  /** @description Opaque pagination cursor returned by a previous response. Pass it back unchanged. */
78013
78453
  cursor?: string;
78014
78454
  };
78015
- header?: never;
78455
+ header?: {
78456
+ /** @description Selects the regional data partition for this regional collection read. It does not change the authenticated team context. */
78457
+ "x-data-region"?: "ap" | "crunchy" | "eu" | "hostaway" | "us";
78458
+ };
78016
78459
  path?: never;
78017
78460
  cookie?: never;
78018
78461
  };
@@ -78864,7 +79307,10 @@ export interface operations {
78864
79307
  page?: number;
78865
79308
  offset?: number;
78866
79309
  };
78867
- header?: never;
79310
+ header?: {
79311
+ /** @description Selects the regional data partition for this regional collection read. It does not change the authenticated team context. */
79312
+ "x-data-region"?: "ap" | "crunchy" | "eu" | "hostaway" | "us";
79313
+ };
78868
79314
  path?: never;
78869
79315
  cookie?: never;
78870
79316
  };