@vrplatform/api 1.3.1-stage.4135 → 1.3.1-stage.4143

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.
@@ -2,6 +2,13 @@ import { useApiClient } from './client';
2
2
  import type { ResponseData } from './types';
3
3
  export type TenantRouting = Pick<ResponseData<'get:/teams/resolve'>, 'id' | 'slug' | 'dataRegion' | 'apiBaseUrl'>;
4
4
  type ApiClientOptions = Parameters<typeof useApiClient>[0];
5
+ /**
6
+ * Resolve a tenant's region and regional `apiBaseUrl` from a connection id,
7
+ * slug, or tenant id — the client entry point for non-API runtimes that need
8
+ * to reach a tenant's home region. Each call is a `/teams/resolve` round trip;
9
+ * hot-loop callers should cache the result (placement changes only on an
10
+ * explicit tenant migration).
11
+ */
5
12
  export declare function resolveTenantRouting({ connectionId, slug, tenantId, auth, ...apiClientOptions }: ApiClientOptions & {
6
13
  connectionId?: string;
7
14
  slug?: string;
@@ -3,6 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.resolveTenantRouting = resolveTenantRouting;
4
4
  const client_1 = require("./client");
5
5
  const error_1 = require("./error");
6
+ /**
7
+ * Resolve a tenant's region and regional `apiBaseUrl` from a connection id,
8
+ * slug, or tenant id — the client entry point for non-API runtimes that need
9
+ * to reach a tenant's home region. Each call is a `/teams/resolve` round trip;
10
+ * hot-loop callers should cache the result (placement changes only on an
11
+ * explicit tenant migration).
12
+ */
6
13
  async function resolveTenantRouting({ connectionId, slug, tenantId, auth, ...apiClientOptions }) {
7
14
  if (!connectionId && !slug && !tenantId) {
8
15
  throw new Error('connectionId, slug, or tenantId is required');
@@ -1 +1 @@
1
- {"version":3,"file":"routing.js","sourceRoot":"src/","sources":["routing.ts"],"names":[],"mappings":";;AAWA,oDAwCC;AAnDD,qCAAwC;AACxC,mCAAuC;AAUhC,KAAK,UAAU,oBAAoB,CAAC,EACzC,YAAY,EACZ,IAAI,EACJ,QAAQ,EACR,IAAI,EACJ,GAAG,gBAAgB,EAKpB;IACC,IAAI,CAAC,YAAY,IAAI,CAAC,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;QACxC,MAAM,IAAI,KAAK,CAAC,6CAA6C,CAAC,CAAC;IACjE,CAAC;IAED,MAAM,QAAQ,GAAG,IAAA,oBAAY,EAC3B,MAAM,IAAA,qBAAY,EAAC;QACjB,GAAG,gBAAgB;QACnB,IAAI,EAAE,QAAQ;YACZ,CAAC,CAAC,GAAG,EAAE;gBACH,MAAM,OAAO,GAAG,OAAO,IAAI,KAAK,UAAU,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC;gBACnE,OAAO;oBACL,GAAG,OAAO;oBACV,QAAQ;iBACe,CAAC;YAC5B,CAAC;YACH,CAAC,CAAC,IAAI;KACT,CAAC,CAAC,GAAG,CAAC,gBAAgB,EAAE;QACvB,MAAM,EAAE;YACN,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,CAAC,CAAC,CAAC,EAAE;SAC9D;KACF,CAAC,CACH,CAAC;IAEF,OAAO;QACL,EAAE,EAAE,QAAQ,CAAC,EAAE;QACf,IAAI,EAAE,QAAQ,CAAC,IAAI;QACnB,UAAU,EAAE,QAAQ,CAAC,UAAU;QAC/B,UAAU,EAAE,IAAI,GAAG,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC;KACvE,CAAC;AACJ,CAAC","sourcesContent":["import { useApiClient } from './client';\nimport { throwIfError } from './error';\nimport type { ApiClientAuth, ResponseData } from './types';\n\nexport type TenantRouting = Pick<\n ResponseData<'get:/teams/resolve'>,\n 'id' | 'slug' | 'dataRegion' | 'apiBaseUrl'\n>;\n\ntype ApiClientOptions = Parameters<typeof useApiClient>[0];\n\nexport async function resolveTenantRouting({\n connectionId,\n slug,\n tenantId,\n auth,\n ...apiClientOptions\n}: ApiClientOptions & {\n connectionId?: string;\n slug?: string;\n tenantId?: string;\n}): Promise<TenantRouting> {\n if (!connectionId && !slug && !tenantId) {\n throw new Error('connectionId, slug, or tenantId is required');\n }\n\n const response = throwIfError(\n await useApiClient({\n ...apiClientOptions,\n auth: tenantId\n ? () => {\n const current = typeof auth === 'function' ? auth() : (auth ?? {});\n return {\n ...current,\n tenantId,\n } satisfies ApiClientAuth;\n }\n : auth,\n }).GET('/teams/resolve', {\n params: {\n query: slug ? { slug } : connectionId ? { connectionId } : {},\n },\n })\n );\n\n return {\n id: response.id,\n slug: response.slug,\n dataRegion: response.dataRegion,\n apiBaseUrl: new URL(response.apiBaseUrl).toString().replace(/\\/$/, ''),\n };\n}\n"]}
1
+ {"version":3,"file":"routing.js","sourceRoot":"src/","sources":["routing.ts"],"names":[],"mappings":";;AAkBA,oDAwCC;AA1DD,qCAAwC;AACxC,mCAAuC;AAUvC;;;;;;GAMG;AACI,KAAK,UAAU,oBAAoB,CAAC,EACzC,YAAY,EACZ,IAAI,EACJ,QAAQ,EACR,IAAI,EACJ,GAAG,gBAAgB,EAKpB;IACC,IAAI,CAAC,YAAY,IAAI,CAAC,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;QACxC,MAAM,IAAI,KAAK,CAAC,6CAA6C,CAAC,CAAC;IACjE,CAAC;IAED,MAAM,QAAQ,GAAG,IAAA,oBAAY,EAC3B,MAAM,IAAA,qBAAY,EAAC;QACjB,GAAG,gBAAgB;QACnB,IAAI,EAAE,QAAQ;YACZ,CAAC,CAAC,GAAG,EAAE;gBACH,MAAM,OAAO,GAAG,OAAO,IAAI,KAAK,UAAU,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC;gBACnE,OAAO;oBACL,GAAG,OAAO;oBACV,QAAQ;iBACe,CAAC;YAC5B,CAAC;YACH,CAAC,CAAC,IAAI;KACT,CAAC,CAAC,GAAG,CAAC,gBAAgB,EAAE;QACvB,MAAM,EAAE;YACN,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,CAAC,CAAC,CAAC,EAAE;SAC9D;KACF,CAAC,CACH,CAAC;IAEF,OAAO;QACL,EAAE,EAAE,QAAQ,CAAC,EAAE;QACf,IAAI,EAAE,QAAQ,CAAC,IAAI;QACnB,UAAU,EAAE,QAAQ,CAAC,UAAU;QAC/B,UAAU,EAAE,IAAI,GAAG,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC;KACvE,CAAC;AACJ,CAAC","sourcesContent":["import { useApiClient } from './client';\nimport { throwIfError } from './error';\nimport type { ApiClientAuth, ResponseData } from './types';\n\nexport type TenantRouting = Pick<\n ResponseData<'get:/teams/resolve'>,\n 'id' | 'slug' | 'dataRegion' | 'apiBaseUrl'\n>;\n\ntype ApiClientOptions = Parameters<typeof useApiClient>[0];\n\n/**\n * Resolve a tenant's region and regional `apiBaseUrl` from a connection id,\n * slug, or tenant id — the client entry point for non-API runtimes that need\n * to reach a tenant's home region. Each call is a `/teams/resolve` round trip;\n * hot-loop callers should cache the result (placement changes only on an\n * explicit tenant migration).\n */\nexport async function resolveTenantRouting({\n connectionId,\n slug,\n tenantId,\n auth,\n ...apiClientOptions\n}: ApiClientOptions & {\n connectionId?: string;\n slug?: string;\n tenantId?: string;\n}): Promise<TenantRouting> {\n if (!connectionId && !slug && !tenantId) {\n throw new Error('connectionId, slug, or tenantId is required');\n }\n\n const response = throwIfError(\n await useApiClient({\n ...apiClientOptions,\n auth: tenantId\n ? () => {\n const current = typeof auth === 'function' ? auth() : (auth ?? {});\n return {\n ...current,\n tenantId,\n } satisfies ApiClientAuth;\n }\n : auth,\n }).GET('/teams/resolve', {\n params: {\n query: slug ? { slug } : connectionId ? { connectionId } : {},\n },\n })\n );\n\n return {\n id: response.id,\n slug: response.slug,\n dataRegion: response.dataRegion,\n apiBaseUrl: new URL(response.apiBaseUrl).toString().replace(/\\/$/, ''),\n };\n}\n"]}
@@ -295,6 +295,23 @@ export interface paths {
295
295
  patch?: never;
296
296
  trace?: never;
297
297
  };
298
+ "/auth/embed/session": {
299
+ parameters: {
300
+ query?: never;
301
+ header?: never;
302
+ path?: never;
303
+ cookie?: never;
304
+ };
305
+ get?: never;
306
+ put?: never;
307
+ /** @description Issue a short-lived embedded session for a provider user. */
308
+ post: operations["postAuthEmbedSession"];
309
+ delete?: never;
310
+ options?: never;
311
+ head?: never;
312
+ patch?: never;
313
+ trace?: never;
314
+ };
298
315
  "/bank-accounts": {
299
316
  parameters: {
300
317
  query?: never;
@@ -3918,6 +3935,40 @@ export interface paths {
3918
3935
  patch?: never;
3919
3936
  trace?: never;
3920
3937
  };
3938
+ "/users": {
3939
+ parameters: {
3940
+ query?: never;
3941
+ header?: never;
3942
+ path?: never;
3943
+ cookie?: never;
3944
+ };
3945
+ get?: never;
3946
+ put?: never;
3947
+ /** @description Create or update a platform user by email, optionally granting an initial team membership. Admin access only; used by the identity provider signup hooks. */
3948
+ post: operations["postUsers"];
3949
+ delete?: never;
3950
+ options?: never;
3951
+ head?: never;
3952
+ patch?: never;
3953
+ trace?: never;
3954
+ };
3955
+ "/users/{id}": {
3956
+ parameters: {
3957
+ query?: never;
3958
+ header?: never;
3959
+ path?: never;
3960
+ cookie?: never;
3961
+ };
3962
+ get?: never;
3963
+ /** @description Update a platform user by id. Admin access only; used by the identity provider profile-update hooks. */
3964
+ put: operations["putUsersById"];
3965
+ post?: never;
3966
+ delete?: never;
3967
+ options?: never;
3968
+ head?: never;
3969
+ patch?: never;
3970
+ trace?: never;
3971
+ };
3921
3972
  }
3922
3973
  export type webhooks = Record<string, never>;
3923
3974
  export interface components {
@@ -8349,6 +8400,154 @@ export interface operations {
8349
8400
  };
8350
8401
  };
8351
8402
  };
8403
+ postAuthEmbedSession: {
8404
+ parameters: {
8405
+ query?: {
8406
+ autoProvision?: boolean;
8407
+ };
8408
+ header?: never;
8409
+ path?: never;
8410
+ cookie?: never;
8411
+ };
8412
+ requestBody?: {
8413
+ content: {
8414
+ "application/json": {
8415
+ sub: string;
8416
+ /** Format: uuid */
8417
+ tenantId: string;
8418
+ ttlMinutes?: number;
8419
+ };
8420
+ };
8421
+ };
8422
+ responses: {
8423
+ /** @description Successful response */
8424
+ 200: {
8425
+ headers: {
8426
+ [name: string]: unknown;
8427
+ };
8428
+ content: {
8429
+ "application/json": {
8430
+ accessToken: string;
8431
+ expiresAt: string;
8432
+ /** Format: uuid */
8433
+ tenantId: string;
8434
+ /** Format: uuid */
8435
+ userId: string;
8436
+ };
8437
+ };
8438
+ };
8439
+ /** @description Bad request */
8440
+ 400: {
8441
+ headers: {
8442
+ [name: string]: unknown;
8443
+ };
8444
+ content: {
8445
+ "application/json": {
8446
+ code: string;
8447
+ message: string;
8448
+ links?: {
8449
+ docs: string;
8450
+ schema: string;
8451
+ };
8452
+ issues?: {
8453
+ message: string;
8454
+ path?: (string | number)[];
8455
+ schema?: string;
8456
+ }[];
8457
+ context?: unknown;
8458
+ };
8459
+ };
8460
+ };
8461
+ /** @description Unauthorized */
8462
+ 401: {
8463
+ headers: {
8464
+ [name: string]: unknown;
8465
+ };
8466
+ content: {
8467
+ "application/json": {
8468
+ code: string;
8469
+ message: string;
8470
+ links?: {
8471
+ docs: string;
8472
+ schema: string;
8473
+ };
8474
+ issues?: {
8475
+ message: string;
8476
+ path?: (string | number)[];
8477
+ schema?: string;
8478
+ }[];
8479
+ context?: unknown;
8480
+ };
8481
+ };
8482
+ };
8483
+ /** @description Forbidden */
8484
+ 403: {
8485
+ headers: {
8486
+ [name: string]: unknown;
8487
+ };
8488
+ content: {
8489
+ "application/json": {
8490
+ code: string;
8491
+ message: string;
8492
+ links?: {
8493
+ docs: string;
8494
+ schema: string;
8495
+ };
8496
+ issues?: {
8497
+ message: string;
8498
+ path?: (string | number)[];
8499
+ schema?: string;
8500
+ }[];
8501
+ context?: unknown;
8502
+ };
8503
+ };
8504
+ };
8505
+ /** @description Not found */
8506
+ 404: {
8507
+ headers: {
8508
+ [name: string]: unknown;
8509
+ };
8510
+ content: {
8511
+ "application/json": {
8512
+ code: string;
8513
+ message: string;
8514
+ links?: {
8515
+ docs: string;
8516
+ schema: string;
8517
+ };
8518
+ issues?: {
8519
+ message: string;
8520
+ path?: (string | number)[];
8521
+ schema?: string;
8522
+ }[];
8523
+ context?: unknown;
8524
+ };
8525
+ };
8526
+ };
8527
+ /** @description Internal server error */
8528
+ 500: {
8529
+ headers: {
8530
+ [name: string]: unknown;
8531
+ };
8532
+ content: {
8533
+ "application/json": {
8534
+ code: string;
8535
+ message: string;
8536
+ links?: {
8537
+ docs: string;
8538
+ schema: string;
8539
+ };
8540
+ issues?: {
8541
+ message: string;
8542
+ path?: (string | number)[];
8543
+ schema?: string;
8544
+ }[];
8545
+ context?: unknown;
8546
+ };
8547
+ };
8548
+ };
8549
+ };
8550
+ };
8352
8551
  getBankAccounts: {
8353
8552
  parameters: {
8354
8553
  query?: {
@@ -59133,7 +59332,7 @@ export interface operations {
59133
59332
  /** Format: uuid */
59134
59333
  id: string;
59135
59334
  /** @enum {string} */
59136
- dataRegion: "eu" | "us" | "ap";
59335
+ dataRegion: "ap" | "crunchy" | "eu" | "us";
59137
59336
  /** @enum {string} */
59138
59337
  storageRealm: "vrintegration" | "vrtrust";
59139
59338
  defaultCurrency?: string | null;
@@ -59418,7 +59617,7 @@ export interface operations {
59418
59617
  content: {
59419
59618
  "application/json": {
59420
59619
  /** @enum {string} */
59421
- dataRegion?: "eu" | "us" | "ap";
59620
+ dataRegion?: "ap" | "crunchy" | "eu" | "us";
59422
59621
  defaultCurrency?: string | null;
59423
59622
  longTermStayNights?: number | null;
59424
59623
  defaultRevenueRecognition?: ("checkIn" | "checkOut" | "proRata") | null;
@@ -59493,7 +59692,7 @@ export interface operations {
59493
59692
  /** Format: uuid */
59494
59693
  id: string;
59495
59694
  /** @enum {string} */
59496
- dataRegion: "eu" | "us" | "ap";
59695
+ dataRegion: "ap" | "crunchy" | "eu" | "us";
59497
59696
  /** @enum {string} */
59498
59697
  storageRealm: "vrintegration" | "vrtrust";
59499
59698
  defaultCurrency?: string | null;
@@ -60554,7 +60753,7 @@ export interface operations {
60554
60753
  /** Format: uuid */
60555
60754
  id: string;
60556
60755
  /** @enum {string} */
60557
- dataRegion: "eu" | "us" | "ap";
60756
+ dataRegion: "ap" | "crunchy" | "eu" | "us";
60558
60757
  /** @enum {string} */
60559
60758
  storageRealm: "vrintegration" | "vrtrust";
60560
60759
  defaultCurrency?: string | null;
@@ -60858,7 +61057,7 @@ export interface operations {
60858
61057
  /** Format: uuid */
60859
61058
  id: string;
60860
61059
  /** @enum {string} */
60861
- dataRegion: "eu" | "us" | "ap";
61060
+ dataRegion: "ap" | "crunchy" | "eu" | "us";
60862
61061
  /** @enum {string} */
60863
61062
  storageRealm: "vrintegration" | "vrtrust";
60864
61063
  defaultCurrency?: string | null;
@@ -61160,7 +61359,7 @@ export interface operations {
61160
61359
  /** Format: uuid */
61161
61360
  id: string;
61162
61361
  /** @enum {string} */
61163
- dataRegion: "eu" | "us" | "ap";
61362
+ dataRegion: "ap" | "crunchy" | "eu" | "us";
61164
61363
  /** @enum {string} */
61165
61364
  storageRealm: "vrintegration" | "vrtrust";
61166
61365
  defaultCurrency?: string | null;
@@ -63483,7 +63682,7 @@ export interface operations {
63483
63682
  /** Format: uuid */
63484
63683
  id: string;
63485
63684
  /** @enum {string} */
63486
- dataRegion: "eu" | "us" | "ap";
63685
+ dataRegion: "ap" | "crunchy" | "eu" | "us";
63487
63686
  /** @enum {string} */
63488
63687
  storageRealm: "vrintegration" | "vrtrust";
63489
63688
  defaultCurrency?: string | null;
@@ -63770,7 +63969,7 @@ export interface operations {
63770
63969
  /** Format: uuid */
63771
63970
  id: string;
63772
63971
  /** @enum {string} */
63773
- dataRegion: "eu" | "us" | "ap";
63972
+ dataRegion: "ap" | "crunchy" | "eu" | "us";
63774
63973
  /** @enum {string} */
63775
63974
  storageRealm: "vrintegration" | "vrtrust";
63776
63975
  defaultCurrency?: string | null;
@@ -64134,7 +64333,7 @@ export interface operations {
64134
64333
  /** Format: uuid */
64135
64334
  id: string;
64136
64335
  /** @enum {string} */
64137
- dataRegion: "eu" | "us" | "ap";
64336
+ dataRegion: "ap" | "crunchy" | "eu" | "us";
64138
64337
  /** @enum {string} */
64139
64338
  storageRealm: "vrintegration" | "vrtrust";
64140
64339
  defaultCurrency?: string | null;
@@ -64993,7 +65192,7 @@ export interface operations {
64993
65192
  /** Format: uuid */
64994
65193
  id: string;
64995
65194
  /** @enum {string} */
64996
- dataRegion: "eu" | "us" | "ap";
65195
+ dataRegion: "ap" | "crunchy" | "eu" | "us";
64997
65196
  /** @enum {string} */
64998
65197
  storageRealm: "vrintegration" | "vrtrust";
64999
65198
  defaultCurrency?: string | null;
@@ -72526,4 +72725,336 @@ export interface operations {
72526
72725
  };
72527
72726
  };
72528
72727
  };
72728
+ postUsers: {
72729
+ parameters: {
72730
+ query?: never;
72731
+ header?: never;
72732
+ path?: never;
72733
+ cookie?: never;
72734
+ };
72735
+ requestBody?: {
72736
+ content: {
72737
+ "application/json": {
72738
+ /** Format: uuid */
72739
+ id?: string;
72740
+ email: string;
72741
+ firstName?: string | null;
72742
+ lastName?: string | null;
72743
+ name?: string | null;
72744
+ /**
72745
+ * @default active
72746
+ * @enum {string}
72747
+ */
72748
+ status?: "active" | "inactive" | "archived" | "unconfirmed";
72749
+ partnerId?: string | null;
72750
+ secondaryEmails?: string[];
72751
+ membership?: {
72752
+ /** Format: uuid */
72753
+ tenantId: string;
72754
+ /**
72755
+ * @default user
72756
+ * @enum {string}
72757
+ */
72758
+ role?: "admin" | "user" | "owner";
72759
+ };
72760
+ };
72761
+ };
72762
+ };
72763
+ responses: {
72764
+ /** @description Successful response */
72765
+ 200: {
72766
+ headers: {
72767
+ [name: string]: unknown;
72768
+ };
72769
+ content: {
72770
+ "application/json": {
72771
+ /** Format: uuid */
72772
+ id: string;
72773
+ isAdmin: boolean;
72774
+ memberships: {
72775
+ /** Format: uuid */
72776
+ tenantId: string;
72777
+ role: string | null;
72778
+ }[];
72779
+ };
72780
+ };
72781
+ };
72782
+ /** @description Bad request */
72783
+ 400: {
72784
+ headers: {
72785
+ [name: string]: unknown;
72786
+ };
72787
+ content: {
72788
+ "application/json": {
72789
+ code: string;
72790
+ message: string;
72791
+ links?: {
72792
+ docs: string;
72793
+ schema: string;
72794
+ };
72795
+ issues?: {
72796
+ message: string;
72797
+ path?: (string | number)[];
72798
+ schema?: string;
72799
+ }[];
72800
+ context?: unknown;
72801
+ };
72802
+ };
72803
+ };
72804
+ /** @description Unauthorized */
72805
+ 401: {
72806
+ headers: {
72807
+ [name: string]: unknown;
72808
+ };
72809
+ content: {
72810
+ "application/json": {
72811
+ code: string;
72812
+ message: string;
72813
+ links?: {
72814
+ docs: string;
72815
+ schema: string;
72816
+ };
72817
+ issues?: {
72818
+ message: string;
72819
+ path?: (string | number)[];
72820
+ schema?: string;
72821
+ }[];
72822
+ context?: unknown;
72823
+ };
72824
+ };
72825
+ };
72826
+ /** @description Forbidden */
72827
+ 403: {
72828
+ headers: {
72829
+ [name: string]: unknown;
72830
+ };
72831
+ content: {
72832
+ "application/json": {
72833
+ code: string;
72834
+ message: string;
72835
+ links?: {
72836
+ docs: string;
72837
+ schema: string;
72838
+ };
72839
+ issues?: {
72840
+ message: string;
72841
+ path?: (string | number)[];
72842
+ schema?: string;
72843
+ }[];
72844
+ context?: unknown;
72845
+ };
72846
+ };
72847
+ };
72848
+ /** @description Not found */
72849
+ 404: {
72850
+ headers: {
72851
+ [name: string]: unknown;
72852
+ };
72853
+ content: {
72854
+ "application/json": {
72855
+ code: string;
72856
+ message: string;
72857
+ links?: {
72858
+ docs: string;
72859
+ schema: string;
72860
+ };
72861
+ issues?: {
72862
+ message: string;
72863
+ path?: (string | number)[];
72864
+ schema?: string;
72865
+ }[];
72866
+ context?: unknown;
72867
+ };
72868
+ };
72869
+ };
72870
+ /** @description Internal server error */
72871
+ 500: {
72872
+ headers: {
72873
+ [name: string]: unknown;
72874
+ };
72875
+ content: {
72876
+ "application/json": {
72877
+ code: string;
72878
+ message: string;
72879
+ links?: {
72880
+ docs: string;
72881
+ schema: string;
72882
+ };
72883
+ issues?: {
72884
+ message: string;
72885
+ path?: (string | number)[];
72886
+ schema?: string;
72887
+ }[];
72888
+ context?: unknown;
72889
+ };
72890
+ };
72891
+ };
72892
+ };
72893
+ };
72894
+ putUsersById: {
72895
+ parameters: {
72896
+ query?: never;
72897
+ header?: never;
72898
+ path: {
72899
+ id: string;
72900
+ };
72901
+ cookie?: never;
72902
+ };
72903
+ requestBody?: {
72904
+ content: {
72905
+ "application/json": {
72906
+ email: string;
72907
+ firstName?: string | null;
72908
+ lastName?: string | null;
72909
+ name?: string | null;
72910
+ /**
72911
+ * @default active
72912
+ * @enum {string}
72913
+ */
72914
+ status?: "active" | "inactive" | "archived" | "unconfirmed";
72915
+ partnerId?: string | null;
72916
+ secondaryEmails?: string[];
72917
+ membership?: {
72918
+ /** Format: uuid */
72919
+ tenantId: string;
72920
+ /**
72921
+ * @default user
72922
+ * @enum {string}
72923
+ */
72924
+ role?: "admin" | "user" | "owner";
72925
+ };
72926
+ };
72927
+ };
72928
+ };
72929
+ responses: {
72930
+ /** @description Successful response */
72931
+ 200: {
72932
+ headers: {
72933
+ [name: string]: unknown;
72934
+ };
72935
+ content: {
72936
+ "application/json": {
72937
+ /** Format: uuid */
72938
+ id: string;
72939
+ isAdmin: boolean;
72940
+ memberships: {
72941
+ /** Format: uuid */
72942
+ tenantId: string;
72943
+ role: string | null;
72944
+ }[];
72945
+ };
72946
+ };
72947
+ };
72948
+ /** @description Bad request */
72949
+ 400: {
72950
+ headers: {
72951
+ [name: string]: unknown;
72952
+ };
72953
+ content: {
72954
+ "application/json": {
72955
+ code: string;
72956
+ message: string;
72957
+ links?: {
72958
+ docs: string;
72959
+ schema: string;
72960
+ };
72961
+ issues?: {
72962
+ message: string;
72963
+ path?: (string | number)[];
72964
+ schema?: string;
72965
+ }[];
72966
+ context?: unknown;
72967
+ };
72968
+ };
72969
+ };
72970
+ /** @description Unauthorized */
72971
+ 401: {
72972
+ headers: {
72973
+ [name: string]: unknown;
72974
+ };
72975
+ content: {
72976
+ "application/json": {
72977
+ code: string;
72978
+ message: string;
72979
+ links?: {
72980
+ docs: string;
72981
+ schema: string;
72982
+ };
72983
+ issues?: {
72984
+ message: string;
72985
+ path?: (string | number)[];
72986
+ schema?: string;
72987
+ }[];
72988
+ context?: unknown;
72989
+ };
72990
+ };
72991
+ };
72992
+ /** @description Forbidden */
72993
+ 403: {
72994
+ headers: {
72995
+ [name: string]: unknown;
72996
+ };
72997
+ content: {
72998
+ "application/json": {
72999
+ code: string;
73000
+ message: string;
73001
+ links?: {
73002
+ docs: string;
73003
+ schema: string;
73004
+ };
73005
+ issues?: {
73006
+ message: string;
73007
+ path?: (string | number)[];
73008
+ schema?: string;
73009
+ }[];
73010
+ context?: unknown;
73011
+ };
73012
+ };
73013
+ };
73014
+ /** @description Not found */
73015
+ 404: {
73016
+ headers: {
73017
+ [name: string]: unknown;
73018
+ };
73019
+ content: {
73020
+ "application/json": {
73021
+ code: string;
73022
+ message: string;
73023
+ links?: {
73024
+ docs: string;
73025
+ schema: string;
73026
+ };
73027
+ issues?: {
73028
+ message: string;
73029
+ path?: (string | number)[];
73030
+ schema?: string;
73031
+ }[];
73032
+ context?: unknown;
73033
+ };
73034
+ };
73035
+ };
73036
+ /** @description Internal server error */
73037
+ 500: {
73038
+ headers: {
73039
+ [name: string]: unknown;
73040
+ };
73041
+ content: {
73042
+ "application/json": {
73043
+ code: string;
73044
+ message: string;
73045
+ links?: {
73046
+ docs: string;
73047
+ schema: string;
73048
+ };
73049
+ issues?: {
73050
+ message: string;
73051
+ path?: (string | number)[];
73052
+ schema?: string;
73053
+ }[];
73054
+ context?: unknown;
73055
+ };
73056
+ };
73057
+ };
73058
+ };
73059
+ };
72529
73060
  }