@vrplatform/api 1.3.1-6394 → 1.3.1-6399
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
package/src/generated/v1.ts
CHANGED
|
@@ -3605,6 +3605,27 @@ export interface paths {
|
|
|
3605
3605
|
patch?: never;
|
|
3606
3606
|
trace?: never;
|
|
3607
3607
|
};
|
|
3608
|
+
"/partner/teams": {
|
|
3609
|
+
parameters: {
|
|
3610
|
+
query?: never;
|
|
3611
|
+
header?: never;
|
|
3612
|
+
path?: never;
|
|
3613
|
+
cookie?: never;
|
|
3614
|
+
};
|
|
3615
|
+
/**
|
|
3616
|
+
* @description List property-manager teams managed by the authenticated partner across all data regions. Supports team IDs, name search, lifecycle filtering, deterministic sorting, and pagination.
|
|
3617
|
+
*
|
|
3618
|
+
* Required scope: teams:read
|
|
3619
|
+
*/
|
|
3620
|
+
get: operations["getPartnerTeams"];
|
|
3621
|
+
put?: never;
|
|
3622
|
+
post?: never;
|
|
3623
|
+
delete?: never;
|
|
3624
|
+
options?: never;
|
|
3625
|
+
head?: never;
|
|
3626
|
+
patch?: never;
|
|
3627
|
+
trace?: never;
|
|
3628
|
+
};
|
|
3608
3629
|
"/partner/users": {
|
|
3609
3630
|
parameters: {
|
|
3610
3631
|
query?: never;
|
|
@@ -5957,7 +5978,7 @@ export interface paths {
|
|
|
5957
5978
|
get: operations["getTeams"];
|
|
5958
5979
|
put?: never;
|
|
5959
5980
|
/**
|
|
5960
|
-
* @description Create team. The generic gateway forwards an explicit dataRegion to that regional cell; an omitted region uses the receiving cell. Partner provisioning requires a uniqueRef. An exact repeat of a completed provision fails with 409 and context.existingTeamId identifies the existing team; changed retry payloads fail without it. Fetch that team with GET /teams/
|
|
5981
|
+
* @description Create team. The generic gateway forwards an explicit dataRegion to that regional cell; an omitted region uses the receiving cell. Partner provisioning requires a uniqueRef. An exact repeat of a completed provision fails with 409 and context.existingTeamId identifies the existing team; changed retry payloads fail without it. Fetch that team with GET /me/teams or GET /partner/teams instead of creating it again. Retrying a provisioning request that failed before completing is safe. migratedFromTenantId atomically links a new GL team to a non-GL VRI source managed by the same partner; it is rejected for non-GL targets, GL sources, and sources managed by another partner. Generated and explicit slugs are checked against the global tenant registry before the regional tenant is written. defaultCurrency must exist in the target region currency catalog; unsupported values return 400 before creation. An explicit General Ledger copyFromTeamId must use the target data region; a mismatch returns 400 before either tenant registry is written. useCentralDefaults explicitly opts into the published Control Plane bootstrap and cannot be combined with either copy source.
|
|
5961
5982
|
*
|
|
5962
5983
|
* Required scope: teams:provision
|
|
5963
5984
|
*/
|
|
@@ -5997,7 +6018,8 @@ export interface paths {
|
|
|
5997
6018
|
cookie?: never;
|
|
5998
6019
|
};
|
|
5999
6020
|
/**
|
|
6000
|
-
* @
|
|
6021
|
+
* @deprecated
|
|
6022
|
+
* @description Deprecated: use GET /teams?search= for regional inventory, GET /me/teams for OAuth discovery, or GET /partner/teams for Partner API token discovery. This compatibility route searches accessible team names in one regional data partition; x-team-id is optional and Partner callers can select the partition with x-data-region.
|
|
6001
6023
|
*
|
|
6002
6024
|
* Required scope: teams:read
|
|
6003
6025
|
*/
|
|
@@ -73547,6 +73569,291 @@ export interface operations {
|
|
|
73547
73569
|
};
|
|
73548
73570
|
};
|
|
73549
73571
|
};
|
|
73572
|
+
getPartnerTeams: {
|
|
73573
|
+
parameters: {
|
|
73574
|
+
query?: {
|
|
73575
|
+
/** @description Comma-separated team IDs. */
|
|
73576
|
+
ids?: string;
|
|
73577
|
+
search?: string;
|
|
73578
|
+
status?: "active" | "inactive";
|
|
73579
|
+
/** @description Sort field; prefix with - for descending order */
|
|
73580
|
+
sort?: "created" | "-created" | "name" | "-name" | "type" | "-type";
|
|
73581
|
+
limit?: number;
|
|
73582
|
+
page?: number;
|
|
73583
|
+
offset?: number;
|
|
73584
|
+
};
|
|
73585
|
+
header?: never;
|
|
73586
|
+
path?: never;
|
|
73587
|
+
cookie?: never;
|
|
73588
|
+
};
|
|
73589
|
+
requestBody?: never;
|
|
73590
|
+
responses: {
|
|
73591
|
+
/** @description Successful response */
|
|
73592
|
+
200: {
|
|
73593
|
+
headers: {
|
|
73594
|
+
[name: string]: unknown;
|
|
73595
|
+
};
|
|
73596
|
+
content: {
|
|
73597
|
+
"application/json": {
|
|
73598
|
+
data: {
|
|
73599
|
+
/** Format: uuid */
|
|
73600
|
+
id: string;
|
|
73601
|
+
name: string;
|
|
73602
|
+
slug: string;
|
|
73603
|
+
/** @enum {string} */
|
|
73604
|
+
dataRegion: "ap" | "crunchy" | "eu" | "hostaway" | "us";
|
|
73605
|
+
/** Format: uri */
|
|
73606
|
+
apiBaseUrl: string;
|
|
73607
|
+
/** @constant */
|
|
73608
|
+
type: "propertyManager";
|
|
73609
|
+
/** Format: uuid */
|
|
73610
|
+
partnerId: string;
|
|
73611
|
+
/** @description Effective billing partner ID: the explicit billing partner, otherwise the accounting partner. */
|
|
73612
|
+
billingPartnerId: string | null;
|
|
73613
|
+
/** @enum {string} */
|
|
73614
|
+
status: "active" | "inactive";
|
|
73615
|
+
/** @description Whether the team uses General Ledger, derived from its authoritative control-plane storage realm. */
|
|
73616
|
+
isGeneralLedger: boolean;
|
|
73617
|
+
}[];
|
|
73618
|
+
pagination: {
|
|
73619
|
+
/** @default 100 */
|
|
73620
|
+
limit: number;
|
|
73621
|
+
/** @default 1 */
|
|
73622
|
+
page: number;
|
|
73623
|
+
total: number;
|
|
73624
|
+
totalPage: number;
|
|
73625
|
+
nextPage?: number;
|
|
73626
|
+
};
|
|
73627
|
+
};
|
|
73628
|
+
};
|
|
73629
|
+
};
|
|
73630
|
+
/** @description Bad request */
|
|
73631
|
+
400: {
|
|
73632
|
+
headers: {
|
|
73633
|
+
/** @description Seconds to wait when retryable=true and the server supplies a delay. */
|
|
73634
|
+
"Retry-After"?: number;
|
|
73635
|
+
[name: string]: unknown;
|
|
73636
|
+
};
|
|
73637
|
+
content: {
|
|
73638
|
+
"application/json": {
|
|
73639
|
+
code: string;
|
|
73640
|
+
message: string;
|
|
73641
|
+
links?: {
|
|
73642
|
+
docs: string;
|
|
73643
|
+
schema: string;
|
|
73644
|
+
};
|
|
73645
|
+
issues?: {
|
|
73646
|
+
message: string;
|
|
73647
|
+
path?: (string | number)[];
|
|
73648
|
+
schema?: string;
|
|
73649
|
+
}[];
|
|
73650
|
+
retryable?: boolean;
|
|
73651
|
+
context?: unknown;
|
|
73652
|
+
};
|
|
73653
|
+
};
|
|
73654
|
+
};
|
|
73655
|
+
/** @description Unauthorized */
|
|
73656
|
+
401: {
|
|
73657
|
+
headers: {
|
|
73658
|
+
/** @description Seconds to wait when retryable=true and the server supplies a delay. */
|
|
73659
|
+
"Retry-After"?: number;
|
|
73660
|
+
[name: string]: unknown;
|
|
73661
|
+
};
|
|
73662
|
+
content: {
|
|
73663
|
+
"application/json": {
|
|
73664
|
+
code: string;
|
|
73665
|
+
message: string;
|
|
73666
|
+
links?: {
|
|
73667
|
+
docs: string;
|
|
73668
|
+
schema: string;
|
|
73669
|
+
};
|
|
73670
|
+
issues?: {
|
|
73671
|
+
message: string;
|
|
73672
|
+
path?: (string | number)[];
|
|
73673
|
+
schema?: string;
|
|
73674
|
+
}[];
|
|
73675
|
+
retryable?: boolean;
|
|
73676
|
+
context?: unknown;
|
|
73677
|
+
};
|
|
73678
|
+
};
|
|
73679
|
+
};
|
|
73680
|
+
/** @description Forbidden */
|
|
73681
|
+
403: {
|
|
73682
|
+
headers: {
|
|
73683
|
+
/** @description Seconds to wait when retryable=true and the server supplies a delay. */
|
|
73684
|
+
"Retry-After"?: number;
|
|
73685
|
+
[name: string]: unknown;
|
|
73686
|
+
};
|
|
73687
|
+
content: {
|
|
73688
|
+
"application/json": {
|
|
73689
|
+
code: string;
|
|
73690
|
+
message: string;
|
|
73691
|
+
links?: {
|
|
73692
|
+
docs: string;
|
|
73693
|
+
schema: string;
|
|
73694
|
+
};
|
|
73695
|
+
issues?: {
|
|
73696
|
+
message: string;
|
|
73697
|
+
path?: (string | number)[];
|
|
73698
|
+
schema?: string;
|
|
73699
|
+
}[];
|
|
73700
|
+
retryable?: boolean;
|
|
73701
|
+
context?: unknown;
|
|
73702
|
+
};
|
|
73703
|
+
};
|
|
73704
|
+
};
|
|
73705
|
+
/** @description Not found */
|
|
73706
|
+
404: {
|
|
73707
|
+
headers: {
|
|
73708
|
+
/** @description Seconds to wait when retryable=true and the server supplies a delay. */
|
|
73709
|
+
"Retry-After"?: number;
|
|
73710
|
+
[name: string]: unknown;
|
|
73711
|
+
};
|
|
73712
|
+
content: {
|
|
73713
|
+
"application/json": {
|
|
73714
|
+
code: string;
|
|
73715
|
+
message: string;
|
|
73716
|
+
links?: {
|
|
73717
|
+
docs: string;
|
|
73718
|
+
schema: string;
|
|
73719
|
+
};
|
|
73720
|
+
issues?: {
|
|
73721
|
+
message: string;
|
|
73722
|
+
path?: (string | number)[];
|
|
73723
|
+
schema?: string;
|
|
73724
|
+
}[];
|
|
73725
|
+
retryable?: boolean;
|
|
73726
|
+
context?: unknown;
|
|
73727
|
+
};
|
|
73728
|
+
};
|
|
73729
|
+
};
|
|
73730
|
+
/** @description Conflict */
|
|
73731
|
+
409: {
|
|
73732
|
+
headers: {
|
|
73733
|
+
/** @description Seconds to wait when retryable=true and the server supplies a delay. */
|
|
73734
|
+
"Retry-After"?: number;
|
|
73735
|
+
[name: string]: unknown;
|
|
73736
|
+
};
|
|
73737
|
+
content: {
|
|
73738
|
+
"application/json": {
|
|
73739
|
+
code: string;
|
|
73740
|
+
message: string;
|
|
73741
|
+
links?: {
|
|
73742
|
+
docs: string;
|
|
73743
|
+
schema: string;
|
|
73744
|
+
};
|
|
73745
|
+
issues?: {
|
|
73746
|
+
message: string;
|
|
73747
|
+
path?: (string | number)[];
|
|
73748
|
+
schema?: string;
|
|
73749
|
+
}[];
|
|
73750
|
+
retryable?: boolean;
|
|
73751
|
+
context?: unknown;
|
|
73752
|
+
};
|
|
73753
|
+
};
|
|
73754
|
+
};
|
|
73755
|
+
/** @description Gone */
|
|
73756
|
+
410: {
|
|
73757
|
+
headers: {
|
|
73758
|
+
/** @description Seconds to wait when retryable=true and the server supplies a delay. */
|
|
73759
|
+
"Retry-After"?: number;
|
|
73760
|
+
[name: string]: unknown;
|
|
73761
|
+
};
|
|
73762
|
+
content: {
|
|
73763
|
+
"application/json": {
|
|
73764
|
+
code: string;
|
|
73765
|
+
message: string;
|
|
73766
|
+
links?: {
|
|
73767
|
+
docs: string;
|
|
73768
|
+
schema: string;
|
|
73769
|
+
};
|
|
73770
|
+
issues?: {
|
|
73771
|
+
message: string;
|
|
73772
|
+
path?: (string | number)[];
|
|
73773
|
+
schema?: string;
|
|
73774
|
+
}[];
|
|
73775
|
+
retryable?: boolean;
|
|
73776
|
+
context?: unknown;
|
|
73777
|
+
};
|
|
73778
|
+
};
|
|
73779
|
+
};
|
|
73780
|
+
/** @description Unprocessable content */
|
|
73781
|
+
422: {
|
|
73782
|
+
headers: {
|
|
73783
|
+
/** @description Seconds to wait when retryable=true and the server supplies a delay. */
|
|
73784
|
+
"Retry-After"?: number;
|
|
73785
|
+
[name: string]: unknown;
|
|
73786
|
+
};
|
|
73787
|
+
content: {
|
|
73788
|
+
"application/json": {
|
|
73789
|
+
code: string;
|
|
73790
|
+
message: string;
|
|
73791
|
+
links?: {
|
|
73792
|
+
docs: string;
|
|
73793
|
+
schema: string;
|
|
73794
|
+
};
|
|
73795
|
+
issues?: {
|
|
73796
|
+
message: string;
|
|
73797
|
+
path?: (string | number)[];
|
|
73798
|
+
schema?: string;
|
|
73799
|
+
}[];
|
|
73800
|
+
retryable?: boolean;
|
|
73801
|
+
context?: unknown;
|
|
73802
|
+
};
|
|
73803
|
+
};
|
|
73804
|
+
};
|
|
73805
|
+
/** @description Internal server error */
|
|
73806
|
+
500: {
|
|
73807
|
+
headers: {
|
|
73808
|
+
/** @description Seconds to wait when retryable=true and the server supplies a delay. */
|
|
73809
|
+
"Retry-After"?: number;
|
|
73810
|
+
[name: string]: unknown;
|
|
73811
|
+
};
|
|
73812
|
+
content: {
|
|
73813
|
+
"application/json": {
|
|
73814
|
+
code: string;
|
|
73815
|
+
message: string;
|
|
73816
|
+
links?: {
|
|
73817
|
+
docs: string;
|
|
73818
|
+
schema: string;
|
|
73819
|
+
};
|
|
73820
|
+
issues?: {
|
|
73821
|
+
message: string;
|
|
73822
|
+
path?: (string | number)[];
|
|
73823
|
+
schema?: string;
|
|
73824
|
+
}[];
|
|
73825
|
+
retryable?: boolean;
|
|
73826
|
+
context?: unknown;
|
|
73827
|
+
};
|
|
73828
|
+
};
|
|
73829
|
+
};
|
|
73830
|
+
/** @description Service unavailable */
|
|
73831
|
+
503: {
|
|
73832
|
+
headers: {
|
|
73833
|
+
/** @description Seconds to wait when retryable=true and the server supplies a delay. */
|
|
73834
|
+
"Retry-After"?: number;
|
|
73835
|
+
[name: string]: unknown;
|
|
73836
|
+
};
|
|
73837
|
+
content: {
|
|
73838
|
+
"application/json": {
|
|
73839
|
+
code: string;
|
|
73840
|
+
message: string;
|
|
73841
|
+
links?: {
|
|
73842
|
+
docs: string;
|
|
73843
|
+
schema: string;
|
|
73844
|
+
};
|
|
73845
|
+
issues?: {
|
|
73846
|
+
message: string;
|
|
73847
|
+
path?: (string | number)[];
|
|
73848
|
+
schema?: string;
|
|
73849
|
+
}[];
|
|
73850
|
+
retryable?: boolean;
|
|
73851
|
+
context?: unknown;
|
|
73852
|
+
};
|
|
73853
|
+
};
|
|
73854
|
+
};
|
|
73855
|
+
};
|
|
73856
|
+
};
|
|
73550
73857
|
getPartnerUsers: {
|
|
73551
73858
|
parameters: {
|
|
73552
73859
|
query?: {
|