@oystehr/sdk 3.0.7 → 3.0.9

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 (167) hide show
  1. package/README.md +5 -5
  2. package/dist/cjs/index.cjs +278 -233
  3. package/dist/cjs/index.cjs.map +1 -1
  4. package/dist/cjs/index.min.cjs +1 -1
  5. package/dist/cjs/index.min.cjs.map +1 -1
  6. package/dist/cjs/resources/classes/application.d.ts +6 -6
  7. package/dist/cjs/resources/classes/charge.d.ts +1 -1
  8. package/dist/cjs/resources/classes/conversation.d.ts +6 -6
  9. package/dist/cjs/resources/classes/developer.d.ts +14 -7
  10. package/dist/cjs/resources/classes/erx.d.ts +9 -1
  11. package/dist/cjs/resources/classes/fax.d.ts +4 -4
  12. package/dist/cjs/resources/classes/fhir.d.ts +1 -1
  13. package/dist/cjs/resources/classes/m2m.d.ts +15 -8
  14. package/dist/cjs/resources/classes/messaging.d.ts +1 -1
  15. package/dist/cjs/resources/classes/paymentMethod.d.ts +1 -1
  16. package/dist/cjs/resources/classes/project.d.ts +10 -3
  17. package/dist/cjs/resources/classes/rcm.d.ts +4 -4
  18. package/dist/cjs/resources/classes/role.d.ts +6 -6
  19. package/dist/cjs/resources/classes/secret.d.ts +1 -1
  20. package/dist/cjs/resources/classes/telemed.d.ts +2 -2
  21. package/dist/cjs/resources/classes/transactionalSMS.d.ts +2 -2
  22. package/dist/cjs/resources/classes/user.d.ts +15 -8
  23. package/dist/cjs/resources/classes/version.d.ts +1 -1
  24. package/dist/cjs/resources/classes/z3.d.ts +8 -8
  25. package/dist/cjs/resources/classes/zambda.d.ts +9 -9
  26. package/dist/cjs/resources/classes/zambdaLogStream.d.ts +4 -4
  27. package/dist/cjs/resources/types/AccessPolicy.d.ts +8 -3
  28. package/dist/cjs/resources/types/ApplicationCreateParams.d.ts +0 -5
  29. package/dist/cjs/resources/types/ApplicationUpdateParams.d.ts +0 -4
  30. package/dist/cjs/resources/types/ChargeIssueParams.d.ts +1 -1
  31. package/dist/cjs/resources/types/ChargeStatusParams.d.ts +1 -1
  32. package/dist/cjs/resources/types/DeveloperListV2Params.d.ts +2 -2
  33. package/dist/cjs/resources/types/FaxSendParams.d.ts +1 -1
  34. package/dist/cjs/resources/types/M2mListV2Params.d.ts +2 -2
  35. package/dist/cjs/resources/types/M2mRotateSecretResponse.d.ts +1 -1
  36. package/dist/cjs/resources/types/RcmEligibilityCheckParams.d.ts +1 -1
  37. package/dist/cjs/resources/types/RoleUpdateParams.d.ts +0 -4
  38. package/dist/cjs/resources/types/TelemedCreateMeetingParams.d.ts +1 -1
  39. package/dist/cjs/resources/types/UserListV2Params.d.ts +2 -2
  40. package/dist/cjs/resources/types/ZambdaCreateParams.d.ts +1 -1
  41. package/dist/cjs/resources/types/ZambdaFunction.d.ts +1 -1
  42. package/dist/cjs/resources/types/ZambdaUpdateParams.d.ts +2 -2
  43. package/dist/esm/index.min.js +1 -1
  44. package/dist/esm/index.min.js.map +1 -1
  45. package/dist/esm/resources/classes/application.d.ts +6 -6
  46. package/dist/esm/resources/classes/application.js +20 -17
  47. package/dist/esm/resources/classes/application.js.map +1 -1
  48. package/dist/esm/resources/classes/charge.d.ts +1 -1
  49. package/dist/esm/resources/classes/charge.js +9 -6
  50. package/dist/esm/resources/classes/charge.js.map +1 -1
  51. package/dist/esm/resources/classes/conversation.d.ts +6 -6
  52. package/dist/esm/resources/classes/conversation.js +17 -14
  53. package/dist/esm/resources/classes/conversation.js.map +1 -1
  54. package/dist/esm/resources/classes/developer.d.ts +14 -7
  55. package/dist/esm/resources/classes/developer.js +19 -16
  56. package/dist/esm/resources/classes/developer.js.map +1 -1
  57. package/dist/esm/resources/classes/erx.d.ts +9 -1
  58. package/dist/esm/resources/classes/erx.js +13 -10
  59. package/dist/esm/resources/classes/erx.js.map +1 -1
  60. package/dist/esm/resources/classes/fax.d.ts +4 -4
  61. package/dist/esm/resources/classes/fax.js +13 -10
  62. package/dist/esm/resources/classes/fax.js.map +1 -1
  63. package/dist/esm/resources/classes/fhir.d.ts +1 -1
  64. package/dist/esm/resources/classes/fhir.js +3 -4
  65. package/dist/esm/resources/classes/fhir.js.map +1 -1
  66. package/dist/esm/resources/classes/index.js +2 -2
  67. package/dist/esm/resources/classes/index.js.map +1 -1
  68. package/dist/esm/resources/classes/m2m.d.ts +15 -8
  69. package/dist/esm/resources/classes/m2m.js +21 -18
  70. package/dist/esm/resources/classes/m2m.js.map +1 -1
  71. package/dist/esm/resources/classes/messaging.d.ts +1 -1
  72. package/dist/esm/resources/classes/messaging.js +8 -5
  73. package/dist/esm/resources/classes/messaging.js.map +1 -1
  74. package/dist/esm/resources/classes/paymentMethod.d.ts +1 -1
  75. package/dist/esm/resources/classes/paymentMethod.js +11 -8
  76. package/dist/esm/resources/classes/paymentMethod.js.map +1 -1
  77. package/dist/esm/resources/classes/project.d.ts +10 -3
  78. package/dist/esm/resources/classes/project.js +11 -8
  79. package/dist/esm/resources/classes/project.js.map +1 -1
  80. package/dist/esm/resources/classes/rcm.d.ts +4 -4
  81. package/dist/esm/resources/classes/rcm.js +13 -10
  82. package/dist/esm/resources/classes/rcm.js.map +1 -1
  83. package/dist/esm/resources/classes/role.d.ts +6 -6
  84. package/dist/esm/resources/classes/role.js +17 -14
  85. package/dist/esm/resources/classes/role.js.map +1 -1
  86. package/dist/esm/resources/classes/secret.d.ts +1 -1
  87. package/dist/esm/resources/classes/secret.js +11 -8
  88. package/dist/esm/resources/classes/secret.js.map +1 -1
  89. package/dist/esm/resources/classes/telemed.d.ts +2 -2
  90. package/dist/esm/resources/classes/telemed.js +10 -7
  91. package/dist/esm/resources/classes/telemed.js.map +1 -1
  92. package/dist/esm/resources/classes/transactionalSMS.d.ts +2 -2
  93. package/dist/esm/resources/classes/transactionalSMS.js +9 -6
  94. package/dist/esm/resources/classes/transactionalSMS.js.map +1 -1
  95. package/dist/esm/resources/classes/user.d.ts +15 -8
  96. package/dist/esm/resources/classes/user.js +21 -18
  97. package/dist/esm/resources/classes/user.js.map +1 -1
  98. package/dist/esm/resources/classes/version.d.ts +1 -1
  99. package/dist/esm/resources/classes/version.js +8 -5
  100. package/dist/esm/resources/classes/version.js.map +1 -1
  101. package/dist/esm/resources/classes/z3.d.ts +8 -8
  102. package/dist/esm/resources/classes/z3.js +20 -17
  103. package/dist/esm/resources/classes/z3.js.map +1 -1
  104. package/dist/esm/resources/classes/zambda.d.ts +9 -9
  105. package/dist/esm/resources/classes/zambda.js +23 -20
  106. package/dist/esm/resources/classes/zambda.js.map +1 -1
  107. package/dist/esm/resources/classes/zambdaLogStream.d.ts +4 -4
  108. package/dist/esm/resources/classes/zambdaLogStream.js +13 -10
  109. package/dist/esm/resources/classes/zambdaLogStream.js.map +1 -1
  110. package/dist/esm/resources/types/AccessPolicy.d.ts +8 -3
  111. package/dist/esm/resources/types/ApplicationCreateParams.d.ts +0 -5
  112. package/dist/esm/resources/types/ApplicationUpdateParams.d.ts +0 -4
  113. package/dist/esm/resources/types/ChargeIssueParams.d.ts +1 -1
  114. package/dist/esm/resources/types/ChargeStatusParams.d.ts +1 -1
  115. package/dist/esm/resources/types/DeveloperListV2Params.d.ts +2 -2
  116. package/dist/esm/resources/types/FaxSendParams.d.ts +1 -1
  117. package/dist/esm/resources/types/M2mListV2Params.d.ts +2 -2
  118. package/dist/esm/resources/types/M2mRotateSecretResponse.d.ts +1 -1
  119. package/dist/esm/resources/types/RcmEligibilityCheckParams.d.ts +1 -1
  120. package/dist/esm/resources/types/RoleUpdateParams.d.ts +0 -4
  121. package/dist/esm/resources/types/TelemedCreateMeetingParams.d.ts +1 -1
  122. package/dist/esm/resources/types/UserListV2Params.d.ts +2 -2
  123. package/dist/esm/resources/types/ZambdaCreateParams.d.ts +1 -1
  124. package/dist/esm/resources/types/ZambdaFunction.d.ts +1 -1
  125. package/dist/esm/resources/types/ZambdaUpdateParams.d.ts +2 -2
  126. package/package.json +1 -1
  127. package/src/resources/classes/application.ts +18 -14
  128. package/src/resources/classes/charge.ts +3 -3
  129. package/src/resources/classes/conversation.ts +11 -11
  130. package/src/resources/classes/developer.ts +31 -14
  131. package/src/resources/classes/erx.ts +29 -7
  132. package/src/resources/classes/fax.ts +7 -7
  133. package/src/resources/classes/fhir.ts +1 -1
  134. package/src/resources/classes/index.ts +2 -2
  135. package/src/resources/classes/m2m.ts +30 -16
  136. package/src/resources/classes/messaging.ts +2 -2
  137. package/src/resources/classes/paymentMethod.ts +5 -5
  138. package/src/resources/classes/project.ts +23 -6
  139. package/src/resources/classes/rcm.ts +7 -7
  140. package/src/resources/classes/role.ts +11 -11
  141. package/src/resources/classes/secret.ts +5 -5
  142. package/src/resources/classes/telemed.ts +8 -4
  143. package/src/resources/classes/transactionalSMS.ts +3 -3
  144. package/src/resources/classes/user.ts +33 -16
  145. package/src/resources/classes/version.ts +2 -2
  146. package/src/resources/classes/z3.ts +14 -14
  147. package/src/resources/classes/zambda.ts +17 -17
  148. package/src/resources/classes/zambdaLogStream.ts +7 -7
  149. package/src/resources/types/AccessPolicy.ts +12 -3
  150. package/src/resources/types/ApplicationCreateParams.ts +0 -5
  151. package/src/resources/types/ApplicationUpdateParams.ts +0 -4
  152. package/src/resources/types/ChargeIssueParams.ts +1 -1
  153. package/src/resources/types/ChargeStatusParams.ts +1 -1
  154. package/src/resources/types/DeveloperListV2Params.ts +2 -2
  155. package/src/resources/types/FaxSendParams.ts +1 -1
  156. package/src/resources/types/M2mListV2Params.ts +2 -2
  157. package/src/resources/types/M2mRotateSecretResponse.ts +1 -1
  158. package/src/resources/types/RcmEligibilityCheckParams.ts +1 -1
  159. package/src/resources/types/RoleUpdateParams.ts +0 -4
  160. package/src/resources/types/TelemedCreateMeetingParams.ts +1 -1
  161. package/src/resources/types/UserListV2Params.ts +2 -2
  162. package/src/resources/types/ZambdaCreateParams.ts +1 -1
  163. package/src/resources/types/ZambdaFunction.ts +1 -1
  164. package/src/resources/types/ZambdaUpdateParams.ts +2 -2
  165. package/dist/esm/node_modules/tslib/package.json +0 -1
  166. package/dist/esm/node_modules/tslib/tslib.es6.js +0 -34
  167. package/dist/esm/node_modules/tslib/tslib.es6.js.map +0 -1
@@ -22,72 +22,86 @@ export class M2m extends SDKResource {
22
22
  constructor(config: OystehrConfig) {
23
23
  super(config);
24
24
  }
25
- baseUrlThunk(): string {
25
+ #baseUrlThunk(): string {
26
26
  return this.config.services?.['projectApiUrl'] ?? 'https://project-api.zapehr.com/v1';
27
27
  }
28
28
  /**
29
29
  * DEPRECATED. Please use [v2/list](https://api-reference.oystehr.com/reference/get_m2m-v2-list) instead.
30
30
  *
31
- * Get a list of all M2M Clients. [M2M Clients](https://docs.oystehr.com/services/iam/m2m-clients) are used to access Oystehr APIs from scripts and server-side code like [Zambda Functions](https://docs.oystehr.com/services/zambda).
31
+ * Get a list of all M2M Clients. [M2M Clients](https://docs.oystehr.com/oystehr/services/iam/m2m-clients) are used to access Oystehr APIs from scripts and server-side code like [Zambda Functions](https://docs.oystehr.com/oystehr/services/zambda).
32
32
  *
33
33
  * Access Policy Action: `App:ListAllM2MClients`
34
34
  * Access Policy Resource: `IAM:M2MClient`
35
35
  */
36
36
  list(request?: OystehrClientRequest): Promise<M2mListResponse> {
37
- return this.request('/m2m', 'get', this.baseUrlThunk.bind(this))(request);
37
+ return this.request('/m2m', 'get', this.#baseUrlThunk.bind(this))(request);
38
38
  }
39
39
  /**
40
- * Create a new M2M Client. [M2M Clients](https://docs.oystehr.com/services/iam/m2m-clients) are used to access Oystehr APIs from scripts and server-side code like [Zambda Functions](https://docs.oystehr.com/services/zambda).
40
+ * Create a new M2M Client. [M2M Clients](https://docs.oystehr.com/oystehr/services/iam/m2m-clients) are used to access Oystehr APIs from scripts and server-side code like [Zambda Functions](https://docs.oystehr.com/oystehr/services/zambda).
41
41
  *
42
42
  * Access Policy Action: `App:CreateM2MClient`
43
43
  * Access Policy Resource: `IAM:M2MClient`
44
44
  */
45
45
  create(params: M2mCreateParams, request?: OystehrClientRequest): Promise<M2mCreateResponse> {
46
- return this.request('/m2m', 'post', this.baseUrlThunk.bind(this))(params, request);
46
+ return this.request('/m2m', 'post', this.#baseUrlThunk.bind(this))(params, request);
47
47
  }
48
48
  /**
49
- * Get the M2M Client with the provided ID. [M2M Clients](https://docs.oystehr.com/services/iam/m2m-clients) are used to access Oystehr APIs from scripts and server-side code like [Zambda Functions](https://docs.oystehr.com/services/zambda).
49
+ * Get the M2M Client with the provided ID. [M2M Clients](https://docs.oystehr.com/oystehr/services/iam/m2m-clients) are used to access Oystehr APIs from scripts and server-side code like [Zambda Functions](https://docs.oystehr.com/oystehr/services/zambda).
50
50
  *
51
51
  * Access Policy Action: `App:GetM2MClient`
52
52
  * Access Policy Resource: `IAM:M2MClient`
53
53
  */
54
54
  get(params: M2mGetParams, request?: OystehrClientRequest): Promise<M2mGetResponse> {
55
- return this.request('/m2m/{id}', 'get', this.baseUrlThunk.bind(this))(params, request);
55
+ return this.request('/m2m/{id}', 'get', this.#baseUrlThunk.bind(this))(params, request);
56
56
  }
57
57
  /**
58
- * Update the M2M Client with the provided ID. [M2M Clients](https://docs.oystehr.com/services/iam/m2m-clients) are used to access Oystehr APIs from scripts and server-side code like [Zambda Functions](https://docs.oystehr.com/services/zambda).
58
+ * Update the M2M Client with the provided ID. [M2M Clients](https://docs.oystehr.com/oystehr/services/iam/m2m-clients) are used to access Oystehr APIs from scripts and server-side code like [Zambda Functions](https://docs.oystehr.com/oystehr/services/zambda).
59
59
  *
60
60
  * Access Policy Action: `App:UpdateM2MClient`
61
61
  * Access Policy Resource: `IAM:M2MClient`
62
62
  */
63
63
  update(params: M2mUpdateParams, request?: OystehrClientRequest): Promise<M2mUpdateResponse> {
64
- return this.request('/m2m/{id}', 'patch', this.baseUrlThunk.bind(this))(params, request);
64
+ return this.request('/m2m/{id}', 'patch', this.#baseUrlThunk.bind(this))(params, request);
65
65
  }
66
66
  /**
67
- * Delete the M2M Client with the provided ID. [M2M Clients](https://docs.oystehr.com/services/iam/m2m-clients) are used to access Oystehr APIs from scripts and server-side code like [Zambda Functions](https://docs.oystehr.com/services/zambda).
67
+ * Delete the M2M Client with the provided ID. [M2M Clients](https://docs.oystehr.com/oystehr/services/iam/m2m-clients) are used to access Oystehr APIs from scripts and server-side code like [Zambda Functions](https://docs.oystehr.com/oystehr/services/zambda).
68
68
  *
69
69
  * Access Policy Action: `App:DeleteM2MClient`
70
70
  * Access Policy Resource: `IAM:M2MClient`
71
71
  */
72
72
  delete(params: M2mDeleteParams, request?: OystehrClientRequest): Promise<void> {
73
- return this.request('/m2m/{id}', 'delete', this.baseUrlThunk.bind(this))(params, request);
73
+ return this.request('/m2m/{id}', 'delete', this.#baseUrlThunk.bind(this))(params, request);
74
74
  }
75
75
  /**
76
- * Rotate the client secret for the M2M Client with the provided ID. [M2M Clients](https://docs.oystehr.com/services/iam/m2m-clients) are used to access Oystehr APIs from scripts and server-side code like [Zambda Functions](https://docs.oystehr.com/services/zambda).
76
+ * Rotate the client secret for the M2M Client with the provided ID. [M2M Clients](https://docs.oystehr.com/oystehr/services/iam/m2m-clients) are used to access Oystehr APIs from scripts and server-side code like [Zambda Functions](https://docs.oystehr.com/oystehr/services/zambda).
77
77
  *
78
78
  * Access Policy Action: `App:RotateM2MClientSecret`
79
79
  * Access Policy Resource: `IAM:M2MClient`
80
80
  */
81
81
  rotateSecret(params: M2mRotateSecretParams, request?: OystehrClientRequest): Promise<M2mRotateSecretResponse> {
82
- return this.request('/m2m/{id}/rotate-secret', 'post', this.baseUrlThunk.bind(this))(params, request);
82
+ return this.request('/m2m/{id}/rotate-secret', 'post', this.#baseUrlThunk.bind(this))(params, request);
83
83
  }
84
84
  /**
85
- * Get M2M clients in the Project with pagination, sort, sort Order and filtering. [M2M Clients](https://docs.oystehr.com/services/iam/m2m-clients) are used to access Oystehr APIs from scripts and server-side code like [Zambda Functions](https://docs.oystehr.com/services/zambda).
85
+ * Get M2M clients in the Project with pagination, sort, sort Order and filtering. [M2M Clients](https://docs.oystehr.com/oystehr/services/iam/m2m-clients) are used to access Oystehr APIs from scripts and server-side code like [Zambda Functions](https://docs.oystehr.com/oystehr/services/zambda).
86
86
  *
87
87
  * Access Policy Action: `App:ListAllM2MClients`
88
88
  * Access Policy Resource: `IAM:M2MClient`
89
89
  */
90
- listV2(params: M2mListV2Params, request?: OystehrClientRequest): Promise<M2mListV2Response> {
91
- return this.request('/m2m/v2/list', 'get', this.baseUrlThunk.bind(this))(params, request);
90
+ listV2(params: M2mListV2Params, request?: OystehrClientRequest): Promise<M2mListV2Response>;
91
+ /**
92
+ * Get M2M clients in the Project with pagination, sort, sort Order and filtering. [M2M Clients](https://docs.oystehr.com/oystehr/services/iam/m2m-clients) are used to access Oystehr APIs from scripts and server-side code like [Zambda Functions](https://docs.oystehr.com/oystehr/services/zambda).
93
+ *
94
+ * Access Policy Action: `App:ListAllM2MClients`
95
+ * Access Policy Resource: `IAM:M2MClient`
96
+ */
97
+ listV2(request?: OystehrClientRequest): Promise<M2mListV2Response>;
98
+ /**
99
+ * Get M2M clients in the Project with pagination, sort, sort Order and filtering. [M2M Clients](https://docs.oystehr.com/oystehr/services/iam/m2m-clients) are used to access Oystehr APIs from scripts and server-side code like [Zambda Functions](https://docs.oystehr.com/oystehr/services/zambda).
100
+ *
101
+ * Access Policy Action: `App:ListAllM2MClients`
102
+ * Access Policy Resource: `IAM:M2MClient`
103
+ */
104
+ listV2(params?: M2mListV2Params | OystehrClientRequest, request?: OystehrClientRequest): Promise<M2mListV2Response> {
105
+ return this.request('/m2m/v2/list', 'get', this.#baseUrlThunk.bind(this))(params, request);
92
106
  }
93
107
  }
@@ -8,13 +8,13 @@ export class Messaging extends SDKResource {
8
8
  constructor(config: OystehrConfig) {
9
9
  super(config);
10
10
  }
11
- baseUrlThunk(): string {
11
+ #baseUrlThunk(): string {
12
12
  return this.config.services?.['projectApiUrl'] ?? 'https://project-api.zapehr.com/v1';
13
13
  }
14
14
  /**
15
15
  * Get an information about the Messaging services configuration. This information includes phone number, phone number type and also rate limits of each service.
16
16
  */
17
17
  getMessagingConfig(request?: OystehrClientRequest): Promise<MessagingGetMessagingConfigResponse> {
18
- return this.request('/messaging/config', 'get', this.baseUrlThunk.bind(this))(request);
18
+ return this.request('/messaging/config', 'get', this.#baseUrlThunk.bind(this))(request);
19
19
  }
20
20
  }
@@ -16,7 +16,7 @@ export class PaymentMethod extends SDKResource {
16
16
  constructor(config: OystehrConfig) {
17
17
  super(config);
18
18
  }
19
- baseUrlThunk(): string {
19
+ #baseUrlThunk(): string {
20
20
  return this.config.services?.['projectApiUrl'] ?? 'https://project-api.zapehr.com/v1';
21
21
  }
22
22
  /**
@@ -35,7 +35,7 @@ export class PaymentMethod extends SDKResource {
35
35
  * Access Policy Resource: `FHIR:Patient`
36
36
  */
37
37
  setUp(params: PaymentMethodSetUpParams, request?: OystehrClientRequest): Promise<PaymentMethodSetUpResponse> {
38
- return this.request('/payment/payment-method/setup', 'post', this.baseUrlThunk.bind(this))(params, request);
38
+ return this.request('/payment/payment-method/setup', 'post', this.#baseUrlThunk.bind(this))(params, request);
39
39
  }
40
40
  /**
41
41
  * Set a specified payment method for the user as default.
@@ -53,7 +53,7 @@ export class PaymentMethod extends SDKResource {
53
53
  * Access Policy Resource: `FHIR:Patient`
54
54
  */
55
55
  setDefault(params: PaymentMethodSetDefaultParams, request?: OystehrClientRequest): Promise<void> {
56
- return this.request('/payment/payment-method/set-default', 'post', this.baseUrlThunk.bind(this))(params, request);
56
+ return this.request('/payment/payment-method/set-default', 'post', this.#baseUrlThunk.bind(this))(params, request);
57
57
  }
58
58
  /**
59
59
  * Delete a specified payment method for the beneficiary.
@@ -71,7 +71,7 @@ export class PaymentMethod extends SDKResource {
71
71
  * Access Policy Resource: `FHIR:Patient`
72
72
  */
73
73
  delete(params: PaymentMethodDeleteParams, request?: OystehrClientRequest): Promise<void> {
74
- return this.request('/payment/payment-method', 'delete', this.baseUrlThunk.bind(this))(params, request);
74
+ return this.request('/payment/payment-method', 'delete', this.#baseUrlThunk.bind(this))(params, request);
75
75
  }
76
76
  /**
77
77
  * List all payment methods for the patient.
@@ -89,6 +89,6 @@ export class PaymentMethod extends SDKResource {
89
89
  * Access Policy Resource: `FHIR:Patient`
90
90
  */
91
91
  list(params: PaymentMethodListParams, request?: OystehrClientRequest): Promise<PaymentMethodListResponse> {
92
- return this.request('/payment/payment-method/list', 'post', this.baseUrlThunk.bind(this))(params, request);
92
+ return this.request('/payment/payment-method/list', 'post', this.#baseUrlThunk.bind(this))(params, request);
93
93
  }
94
94
  }
@@ -8,25 +8,42 @@ export class Project extends SDKResource {
8
8
  constructor(config: OystehrConfig) {
9
9
  super(config);
10
10
  }
11
- baseUrlThunk(): string {
11
+ #baseUrlThunk(): string {
12
12
  return this.config.services?.['projectApiUrl'] ?? 'https://project-api.zapehr.com/v1';
13
13
  }
14
14
  /**
15
- * Get the Project settings for a Project. Developers must specify a [project ID](https://docs.oystehr.com/core-documentation/authenticating-api-requests/#x-zapehr-project-id-header) in the header. A Project is the logically-isolated instance of Oystehr that segments your data from other Projects. [Projects](https://docs.oystehr.com/services/project/) are completely independent from each other, having their own separate [FHIR store](https://docs.oystehr.com/services/fhir/basics/), [Applications](https://docs.oystehr.com/services/app/applications/), [Users](https://docs.oystehr.com/services/app/users/), etc .
15
+ * Get the Project settings for a Project. Developers must specify a [project ID](https://docs.oystehr.com/oystehr/core-documentation/authenticating-api-requests/#x-zapehr-project-id-header) in the header. A Project is the logically-isolated instance of Oystehr that segments your data from other Projects. [Projects](https://docs.oystehr.com/oystehr/services/project/) are completely independent from each other, having their own separate [FHIR store](https://docs.oystehr.com/oystehr/services/fhir/basics/), [Applications](https://docs.oystehr.com/oystehr/services/app/applications/), [Users](https://docs.oystehr.com/oystehr/services/app/users/), etc .
16
16
  *
17
17
  * Access Policy Action: `Project:GetProjectInfo`
18
18
  * Access Policy Resource: `Project:Settings`
19
19
  */
20
20
  get(request?: OystehrClientRequest): Promise<ProjectGetResponse> {
21
- return this.request('/project', 'get', this.baseUrlThunk.bind(this))(request);
21
+ return this.request('/project', 'get', this.#baseUrlThunk.bind(this))(request);
22
22
  }
23
23
  /**
24
- * Update the Project settings for the Project that corresponds to the project-id in the request header. A [Project](https://docs.oystehr.com/services/project/) is the logically-isolated instance of Oystehr that segments your data from other Projects. Projects are completely independent from each other, having their own separate [FHIR store](https://docs.oystehr.com/services/fhir/basics/), [Applications](https://docs.oystehr.com/services/app/applications/), [Users](https://docs.oystehr.com/services/app/users/), etc .
24
+ * Update the Project settings for the Project that corresponds to the project-id in the request header. A [Project](https://docs.oystehr.com/oystehr/services/project/) is the logically-isolated instance of Oystehr that segments your data from other Projects. Projects are completely independent from each other, having their own separate [FHIR store](https://docs.oystehr.com/oystehr/services/fhir/basics/), [Applications](https://docs.oystehr.com/oystehr/services/app/applications/), [Users](https://docs.oystehr.com/oystehr/services/app/users/), etc .
25
25
  *
26
26
  * Access Policy Action: `Project:UpdateProjectInfo`
27
27
  * Access Policy Resource: `Project:Settings`
28
28
  */
29
- update(params: ProjectUpdateParams, request?: OystehrClientRequest): Promise<ProjectUpdateResponse> {
30
- return this.request('/project', 'patch', this.baseUrlThunk.bind(this))(params, request);
29
+ update(params: ProjectUpdateParams, request?: OystehrClientRequest): Promise<ProjectUpdateResponse>;
30
+ /**
31
+ * Update the Project settings for the Project that corresponds to the project-id in the request header. A [Project](https://docs.oystehr.com/oystehr/services/project/) is the logically-isolated instance of Oystehr that segments your data from other Projects. Projects are completely independent from each other, having their own separate [FHIR store](https://docs.oystehr.com/oystehr/services/fhir/basics/), [Applications](https://docs.oystehr.com/oystehr/services/app/applications/), [Users](https://docs.oystehr.com/oystehr/services/app/users/), etc .
32
+ *
33
+ * Access Policy Action: `Project:UpdateProjectInfo`
34
+ * Access Policy Resource: `Project:Settings`
35
+ */
36
+ update(request?: OystehrClientRequest): Promise<ProjectUpdateResponse>;
37
+ /**
38
+ * Update the Project settings for the Project that corresponds to the project-id in the request header. A [Project](https://docs.oystehr.com/oystehr/services/project/) is the logically-isolated instance of Oystehr that segments your data from other Projects. Projects are completely independent from each other, having their own separate [FHIR store](https://docs.oystehr.com/oystehr/services/fhir/basics/), [Applications](https://docs.oystehr.com/oystehr/services/app/applications/), [Users](https://docs.oystehr.com/oystehr/services/app/users/), etc .
39
+ *
40
+ * Access Policy Action: `Project:UpdateProjectInfo`
41
+ * Access Policy Resource: `Project:Settings`
42
+ */
43
+ update(
44
+ params?: ProjectUpdateParams | OystehrClientRequest,
45
+ request?: OystehrClientRequest
46
+ ): Promise<ProjectUpdateResponse> {
47
+ return this.request('/project', 'patch', this.#baseUrlThunk.bind(this))(params, request);
31
48
  }
32
49
  }
@@ -16,11 +16,11 @@ export class Rcm extends SDKResource {
16
16
  constructor(config: OystehrConfig) {
17
17
  super(config);
18
18
  }
19
- baseUrlThunk(): string {
19
+ #baseUrlThunk(): string {
20
20
  return this.config.services?.['projectApiUrl'] ?? 'https://project-api.zapehr.com/v1';
21
21
  }
22
22
  /**
23
- * Check [Insurance Eligibility](https://docs.oystehr.com/services/rcm/eligibility/).
23
+ * Check [Insurance Eligibility](https://docs.oystehr.com/oystehr/services/rcm/eligibility/).
24
24
  *
25
25
  * Access Policy Action: `RCM:CheckInsuranceEligibility`
26
26
  * Access Policy Resource: `RCM:InsuranceEligibility`
@@ -32,10 +32,10 @@ export class Rcm extends SDKResource {
32
32
  params: RcmEligibilityCheckParams,
33
33
  request?: OystehrClientRequest
34
34
  ): Promise<RcmEligibilityCheckResponse> {
35
- return this.request('/rcm/eligibility-check', 'post', this.baseUrlThunk.bind(this))(params, request);
35
+ return this.request('/rcm/eligibility-check', 'post', this.#baseUrlThunk.bind(this))(params, request);
36
36
  }
37
37
  /**
38
- * Check [Validate Professional Claim](https://docs.oystehr.com/services/rcm/professional-claim-submission/).
38
+ * Check [Validate Professional Claim](https://docs.oystehr.com/oystehr/services/rcm/professional-claim-submission/).
39
39
  *
40
40
  * Access Policy Action: `RCM:ValidateProfessionalClaim`
41
41
  * Access Policy Resource: `RCM:Claim`
@@ -47,10 +47,10 @@ export class Rcm extends SDKResource {
47
47
  params: RcmValidateProfessionalClaimParams,
48
48
  request?: OystehrClientRequest
49
49
  ): Promise<RcmValidateProfessionalClaimResponse> {
50
- return this.request('/rcm/professional-claim/validate', 'post', this.baseUrlThunk.bind(this))(params, request);
50
+ return this.request('/rcm/professional-claim/validate', 'post', this.#baseUrlThunk.bind(this))(params, request);
51
51
  }
52
52
  /**
53
- * Check [Submit Professional Claim](https://docs.oystehr.com/services/rcm/professional-claim-submission/).
53
+ * Check [Submit Professional Claim](https://docs.oystehr.com/oystehr/services/rcm/professional-claim-submission/).
54
54
  *
55
55
  * Access Policy Action: `RCM:SubmitProfessionalClaim`
56
56
  * Access Policy Resource: `RCM:Claim`
@@ -65,6 +65,6 @@ export class Rcm extends SDKResource {
65
65
  params: RcmSubmitProfessionalClaimParams,
66
66
  request?: OystehrClientRequest
67
67
  ): Promise<RcmSubmitProfessionalClaimResponse> {
68
- return this.request('/rcm/professional-claim/submit', 'post', this.baseUrlThunk.bind(this))(params, request);
68
+ return this.request('/rcm/professional-claim/submit', 'post', this.#baseUrlThunk.bind(this))(params, request);
69
69
  }
70
70
  }
@@ -18,53 +18,53 @@ export class Role extends SDKResource {
18
18
  constructor(config: OystehrConfig) {
19
19
  super(config);
20
20
  }
21
- baseUrlThunk(): string {
21
+ #baseUrlThunk(): string {
22
22
  return this.config.services?.['projectApiUrl'] ?? 'https://project-api.zapehr.com/v1';
23
23
  }
24
24
  /**
25
- * Get a list of all Roles. A [Role](https://docs.oystehr.com/services/iam/roles/) defines an access policy that can be assigned to any number of [Developers](https://docs.oystehr.com/services/iam/developers/), [Users](https://docs.oystehr.com/services/app/users/), and [M2M Clients](https://docs.oystehr.com/services/iam/m2m-clients/).
25
+ * Get a list of all Roles. A [Role](https://docs.oystehr.com/oystehr/services/iam/roles/) defines an access policy that can be assigned to any number of [Developers](https://docs.oystehr.com/oystehr/services/iam/developers/), [Users](https://docs.oystehr.com/oystehr/services/app/users/), and [M2M Clients](https://docs.oystehr.com/oystehr/services/iam/m2m-clients/).
26
26
  *
27
27
  * Access Policy Action: `IAM:ListAllRoles`
28
28
  * Access Policy Resource: `IAM:Role`
29
29
  */
30
30
  list(request?: OystehrClientRequest): Promise<RoleListResponse> {
31
- return this.request('/iam/role', 'get', this.baseUrlThunk.bind(this))(request);
31
+ return this.request('/iam/role', 'get', this.#baseUrlThunk.bind(this))(request);
32
32
  }
33
33
  /**
34
- * Create a new Role. A [Role](https://docs.oystehr.com/services/iam/roles/) defines an access policy that can be assigned to any number of [Developers](https://docs.oystehr.com/services/iam/developers/), [Users](https://docs.oystehr.com/services/app/users/), and [M2M Clients](https://docs.oystehr.com/services/iam/m2m-clients/).
34
+ * Create a new Role. A [Role](https://docs.oystehr.com/oystehr/services/iam/roles/) defines an access policy that can be assigned to any number of [Developers](https://docs.oystehr.com/oystehr/services/iam/developers/), [Users](https://docs.oystehr.com/oystehr/services/app/users/), and [M2M Clients](https://docs.oystehr.com/oystehr/services/iam/m2m-clients/).
35
35
  *
36
36
  * Access Policy Action: `IAM:CreateRole`
37
37
  * Access Policy Resource: `IAM:Role`
38
38
  */
39
39
  create(params: RoleCreateParams, request?: OystehrClientRequest): Promise<RoleCreateResponse> {
40
- return this.request('/iam/role', 'post', this.baseUrlThunk.bind(this))(params, request);
40
+ return this.request('/iam/role', 'post', this.#baseUrlThunk.bind(this))(params, request);
41
41
  }
42
42
  /**
43
- * Get the Role with the provided ID. A [Role](https://docs.oystehr.com/services/iam/roles/) defines an access policy that can be assigned to any number of [Developers](https://docs.oystehr.com/services/iam/developers/), [Users](https://docs.oystehr.com/services/app/users/), and [M2M Clients](https://docs.oystehr.com/services/iam/m2m-clients/).
43
+ * Get the Role with the provided ID. A [Role](https://docs.oystehr.com/oystehr/services/iam/roles/) defines an access policy that can be assigned to any number of [Developers](https://docs.oystehr.com/oystehr/services/iam/developers/), [Users](https://docs.oystehr.com/oystehr/services/app/users/), and [M2M Clients](https://docs.oystehr.com/oystehr/services/iam/m2m-clients/).
44
44
  *
45
45
  * Access Policy Action: `IAM:GetRole`
46
46
  * Access Policy Resource: `IAM:Role`
47
47
  */
48
48
  get(params: RoleGetParams, request?: OystehrClientRequest): Promise<RoleGetResponse> {
49
- return this.request('/iam/role/{roleId}', 'get', this.baseUrlThunk.bind(this))(params, request);
49
+ return this.request('/iam/role/{roleId}', 'get', this.#baseUrlThunk.bind(this))(params, request);
50
50
  }
51
51
  /**
52
- * Update the Role with the provided ID. A [Role](https://docs.oystehr.com/services/iam/roles/) defines an access policy that can be assigned to any number of [Developers](https://docs.oystehr.com/services/iam/developers/), [Users](https://docs.oystehr.com/services/app/users/), and [M2M Clients](https://docs.oystehr.com/services/iam/m2m-clients/).
52
+ * Update the Role with the provided ID. A [Role](https://docs.oystehr.com/oystehr/services/iam/roles/) defines an access policy that can be assigned to any number of [Developers](https://docs.oystehr.com/oystehr/services/iam/developers/), [Users](https://docs.oystehr.com/oystehr/services/app/users/), and [M2M Clients](https://docs.oystehr.com/oystehr/services/iam/m2m-clients/).
53
53
  *
54
54
  * Access Policy Action: `IAM:UpdateRole`
55
55
  * Access Policy Resource: `IAM:Role`
56
56
  */
57
57
  update(params: RoleUpdateParams, request?: OystehrClientRequest): Promise<RoleUpdateResponse> {
58
- return this.request('/iam/role/{roleId}', 'patch', this.baseUrlThunk.bind(this))(params, request);
58
+ return this.request('/iam/role/{roleId}', 'patch', this.#baseUrlThunk.bind(this))(params, request);
59
59
  }
60
60
  /**
61
- * Delete the Role with the provided ID. A [Role](https://docs.oystehr.com/services/iam/roles/) defines an access policy that can be assigned to any number of [Developers](https://docs.oystehr.com/services/iam/developers/), [Users](https://docs.oystehr.com/services/app/users/), and [M2M Clients](https://docs.oystehr.com/services/iam/m2m-clients/).
61
+ * Delete the Role with the provided ID. A [Role](https://docs.oystehr.com/oystehr/services/iam/roles/) defines an access policy that can be assigned to any number of [Developers](https://docs.oystehr.com/oystehr/services/iam/developers/), [Users](https://docs.oystehr.com/oystehr/services/app/users/), and [M2M Clients](https://docs.oystehr.com/oystehr/services/iam/m2m-clients/).
62
62
  *
63
63
  * Access Policy Action: `IAM:DeleteRole`
64
64
  * Access Policy Resource: `IAM:Role`
65
65
  * Will fail if any entities hold the Role or if Role is assigned as the default patient role for the project
66
66
  */
67
67
  delete(params: RoleDeleteParams, request?: OystehrClientRequest): Promise<void> {
68
- return this.request('/iam/role/{roleId}', 'delete', this.baseUrlThunk.bind(this))(params, request);
68
+ return this.request('/iam/role/{roleId}', 'delete', this.#baseUrlThunk.bind(this))(params, request);
69
69
  }
70
70
  }
@@ -16,7 +16,7 @@ export class Secret extends SDKResource {
16
16
  constructor(config: OystehrConfig) {
17
17
  super(config);
18
18
  }
19
- baseUrlThunk(): string {
19
+ #baseUrlThunk(): string {
20
20
  return this.config.services?.['projectApiUrl'] ?? 'https://project-api.zapehr.com/v1';
21
21
  }
22
22
  /**
@@ -26,7 +26,7 @@ export class Secret extends SDKResource {
26
26
  * Access Policy Resource: `Zambda:Secret`
27
27
  */
28
28
  list(request?: OystehrClientRequest): Promise<SecretListResponse> {
29
- return this.request('/secret', 'get', this.baseUrlThunk.bind(this))(request);
29
+ return this.request('/secret', 'get', this.#baseUrlThunk.bind(this))(request);
30
30
  }
31
31
  /**
32
32
  * Create a secret for a project. If the secret is already defined, update it.
@@ -35,7 +35,7 @@ export class Secret extends SDKResource {
35
35
  * Access Policy Resource: `Zambda:Secret`
36
36
  */
37
37
  set(params: SecretSetParams, request?: OystehrClientRequest): Promise<SecretSetResponse> {
38
- return this.request('/secret', 'post', this.baseUrlThunk.bind(this))(params, request);
38
+ return this.request('/secret', 'post', this.#baseUrlThunk.bind(this))(params, request);
39
39
  }
40
40
  /**
41
41
  * Get the secret with the provided name.
@@ -44,7 +44,7 @@ export class Secret extends SDKResource {
44
44
  * Access Policy Resource: `Zambda:Secret`
45
45
  */
46
46
  get(params: SecretGetParams, request?: OystehrClientRequest): Promise<SecretGetResponse> {
47
- return this.request('/secret/{name}', 'get', this.baseUrlThunk.bind(this))(params, request);
47
+ return this.request('/secret/{name}', 'get', this.#baseUrlThunk.bind(this))(params, request);
48
48
  }
49
49
  /**
50
50
  * Delete the secret with the provided name.
@@ -53,6 +53,6 @@ export class Secret extends SDKResource {
53
53
  * Access Policy Resource: `Zambda:Secret`
54
54
  */
55
55
  delete(params: SecretDeleteParams, request?: OystehrClientRequest): Promise<void> {
56
- return this.request('/secret/{name}', 'delete', this.baseUrlThunk.bind(this))(params, request);
56
+ return this.request('/secret/{name}', 'delete', this.#baseUrlThunk.bind(this))(params, request);
57
57
  }
58
58
  }
@@ -14,11 +14,11 @@ export class Telemed extends SDKResource {
14
14
  constructor(config: OystehrConfig) {
15
15
  super(config);
16
16
  }
17
- baseUrlThunk(): string {
17
+ #baseUrlThunk(): string {
18
18
  return this.config.services?.['projectApiUrl'] ?? 'https://project-api.zapehr.com/v1';
19
19
  }
20
20
  /**
21
- * Create a [telemedicine video meeting](https://docs.oystehr.com/services/telemed/).
21
+ * Create a [telemedicine video meeting](https://docs.oystehr.com/oystehr/services/telemed/).
22
22
  *
23
23
  * Access Policy Requirements:
24
24
  * Action: `Telemed:CreateMeeting`
@@ -32,7 +32,7 @@ export class Telemed extends SDKResource {
32
32
  params: TelemedCreateMeetingParams,
33
33
  request?: OystehrClientRequest
34
34
  ): Promise<TelemedCreateMeetingResponse> {
35
- return this.request('/telemed/v2/meeting', 'post', this.baseUrlThunk.bind(this))(params, request);
35
+ return this.request('/telemed/v2/meeting', 'post', this.#baseUrlThunk.bind(this))(params, request);
36
36
  }
37
37
  /**
38
38
  * Get Meeting and Attendee objects necessary to join a telemedicine video meeting.
@@ -45,6 +45,10 @@ export class Telemed extends SDKResource {
45
45
  * Access Policy Resource: `Telemed:Meeting`
46
46
  */
47
47
  joinMeeting(params: TelemedJoinMeetingParams, request?: OystehrClientRequest): Promise<TelemedJoinMeetingResponse> {
48
- return this.request('/telemed/v2/meeting/{encounterId}/join', 'get', this.baseUrlThunk.bind(this))(params, request);
48
+ return this.request(
49
+ '/telemed/v2/meeting/{encounterId}/join',
50
+ 'get',
51
+ this.#baseUrlThunk.bind(this)
52
+ )(params, request);
49
53
  }
50
54
  }
@@ -8,11 +8,11 @@ export class TransactionalSMS extends SDKResource {
8
8
  constructor(config: OystehrConfig) {
9
9
  super(config);
10
10
  }
11
- baseUrlThunk(): string {
11
+ #baseUrlThunk(): string {
12
12
  return this.config.services?.['projectApiUrl'] ?? 'https://project-api.zapehr.com/v1';
13
13
  }
14
14
  /**
15
- * Send an SMS to any phone number. Oystehr's [Transactional SMS](https://docs.oystehr.com/services/messaging/transactional-sms/) feature makes it easy to send a text message to your [Users](https://docs.oystehr.com/services/app/users/) with a single API call. You can use this feature to send appointment reminders, prescription refill reminders, discharge information, and more.
15
+ * Send an SMS to any phone number. Oystehr's [Transactional SMS](https://docs.oystehr.com/oystehr/services/messaging/transactional-sms/) feature makes it easy to send a text message to your [Users](https://docs.oystehr.com/oystehr/services/app/users/) with a single API call. You can use this feature to send appointment reminders, prescription refill reminders, discharge information, and more.
16
16
  *
17
17
  * Access Policy Requirements:
18
18
  * Action: `Messaging:SendTransactionalSMS`
@@ -27,6 +27,6 @@ export class TransactionalSMS extends SDKResource {
27
27
  * Access Policy Resource: `FHIR:Patient`
28
28
  */
29
29
  send(params: TransactionalSMSSendParams, request?: OystehrClientRequest): Promise<TransactionalSMSSendResponse> {
30
- return this.request('/messaging/transactional-sms/send', 'post', this.baseUrlThunk.bind(this))(params, request);
30
+ return this.request('/messaging/transactional-sms/send', 'post', this.#baseUrlThunk.bind(this))(params, request);
31
31
  }
32
32
  }
@@ -21,71 +21,88 @@ export class User extends SDKResource {
21
21
  constructor(config: OystehrConfig) {
22
22
  super(config);
23
23
  }
24
- baseUrlThunk(): string {
24
+ #baseUrlThunk(): string {
25
25
  return this.config.services?.['projectApiUrl'] ?? 'https://project-api.zapehr.com/v1';
26
26
  }
27
27
  /**
28
- * Get your own User details. [Users](https://docs.oystehr.com/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
28
+ * Get your own User details. [Users](https://docs.oystehr.com/oystehr/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/oystehr/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
29
29
  *
30
30
  * Fetch details about the calling User. This endpoint has no access policy requirements, it is available to all authenticated Users.
31
31
  */
32
32
  me(request?: OystehrClientRequest): Promise<UserMeResponse> {
33
- return this.request('/user/me', 'get', this.baseUrlThunk.bind(this))(request);
33
+ return this.request('/user/me', 'get', this.#baseUrlThunk.bind(this))(request);
34
34
  }
35
35
  /**
36
- * Get the User with the provided ID. [Users](https://docs.oystehr.com/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
36
+ * Get the User with the provided ID. [Users](https://docs.oystehr.com/oystehr/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/oystehr/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
37
37
  *
38
38
  * Access Policy Action: `App:GetUser`
39
39
  * Access Policy Resource: `App:User`
40
40
  */
41
41
  get(params: UserGetParams, request?: OystehrClientRequest): Promise<UserGetResponse> {
42
- return this.request('/user/{id}', 'get', this.baseUrlThunk.bind(this))(params, request);
42
+ return this.request('/user/{id}', 'get', this.#baseUrlThunk.bind(this))(params, request);
43
43
  }
44
44
  /**
45
- * Update the User with the provided ID. [Users](https://docs.oystehr.com/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
45
+ * Update the User with the provided ID. [Users](https://docs.oystehr.com/oystehr/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/oystehr/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
46
46
  *
47
47
  * Access Policy Action: `App:UpdateUser`
48
48
  * Access Policy Resource: `App:User`
49
49
  */
50
50
  update(params: UserUpdateParams, request?: OystehrClientRequest): Promise<UserUpdateResponse> {
51
- return this.request('/user/{id}', 'patch', this.baseUrlThunk.bind(this))(params, request);
51
+ return this.request('/user/{id}', 'patch', this.#baseUrlThunk.bind(this))(params, request);
52
52
  }
53
53
  /**
54
- * Delete the User with the provided ID. [Users](https://docs.oystehr.com/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
54
+ * Delete the User with the provided ID. [Users](https://docs.oystehr.com/oystehr/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/oystehr/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
55
55
  *
56
56
  * Access Policy Action: `App:DeleteUser`
57
57
  * Access Policy Resource: `App:User`
58
58
  */
59
59
  delete(params: UserDeleteParams, request?: OystehrClientRequest): Promise<void> {
60
- return this.request('/user/{id}', 'delete', this.baseUrlThunk.bind(this))(params, request);
60
+ return this.request('/user/{id}', 'delete', this.#baseUrlThunk.bind(this))(params, request);
61
61
  }
62
62
  /**
63
- * Invite a User to the Project. [Users](https://docs.oystehr.com/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
63
+ * Invite a User to the Project. [Users](https://docs.oystehr.com/oystehr/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/oystehr/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
64
64
  *
65
65
  * Access Policy Action: `App:CreateUser`
66
66
  * Access Policy Resource: `App:User`
67
67
  */
68
68
  invite(params: UserInviteParams, request?: OystehrClientRequest): Promise<UserInviteResponse> {
69
- return this.request('/user/invite', 'post', this.baseUrlThunk.bind(this))(params, request);
69
+ return this.request('/user/invite', 'post', this.#baseUrlThunk.bind(this))(params, request);
70
70
  }
71
71
  /**
72
72
  * DEPRECATED. Please use [v2/list](https://api-reference.oystehr.com/reference/get_user-v2-list) instead.
73
73
  *
74
- * Get all Users in the Project. [Users](https://docs.oystehr.com/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
74
+ * Get all Users in the Project. [Users](https://docs.oystehr.com/oystehr/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/oystehr/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
75
75
  *
76
76
  * Access Policy Action: `App:ListAllUsers`
77
77
  * Access Policy Resource: `App:User`
78
78
  */
79
79
  list(request?: OystehrClientRequest): Promise<UserListResponse> {
80
- return this.request('/user', 'get', this.baseUrlThunk.bind(this))(request);
80
+ return this.request('/user', 'get', this.#baseUrlThunk.bind(this))(request);
81
81
  }
82
82
  /**
83
- * Get Users in the Project with pagination, sort, sort Order and filtering. [Users](https://docs.oystehr.com/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
83
+ * Get Users in the Project with pagination, sort, sort Order and filtering. [Users](https://docs.oystehr.com/oystehr/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/oystehr/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
84
84
  *
85
85
  * Access Policy Action: `Project:ListAllUsers`
86
86
  * Access Policy Resource: `Project:Settings`
87
87
  */
88
- listV2(params: UserListV2Params, request?: OystehrClientRequest): Promise<UserListV2Response> {
89
- return this.request('/user/v2/list', 'get', this.baseUrlThunk.bind(this))(params, request);
88
+ listV2(params: UserListV2Params, request?: OystehrClientRequest): Promise<UserListV2Response>;
89
+ /**
90
+ * Get Users in the Project with pagination, sort, sort Order and filtering. [Users](https://docs.oystehr.com/oystehr/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/oystehr/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
91
+ *
92
+ * Access Policy Action: `Project:ListAllUsers`
93
+ * Access Policy Resource: `Project:Settings`
94
+ */
95
+ listV2(request?: OystehrClientRequest): Promise<UserListV2Response>;
96
+ /**
97
+ * Get Users in the Project with pagination, sort, sort Order and filtering. [Users](https://docs.oystehr.com/oystehr/services/app/users/) are the people who log into the [Applications](https://docs.oystehr.com/oystehr/services/app/applications/) you configure for securing the apps you build on top of Oystehr.
98
+ *
99
+ * Access Policy Action: `Project:ListAllUsers`
100
+ * Access Policy Resource: `Project:Settings`
101
+ */
102
+ listV2(
103
+ params?: UserListV2Params | OystehrClientRequest,
104
+ request?: OystehrClientRequest
105
+ ): Promise<UserListV2Response> {
106
+ return this.request('/user/v2/list', 'get', this.#baseUrlThunk.bind(this))(params, request);
90
107
  }
91
108
  }
@@ -8,13 +8,13 @@ export class Version extends SDKResource {
8
8
  constructor(config: OystehrConfig) {
9
9
  super(config);
10
10
  }
11
- baseUrlThunk(): string {
11
+ #baseUrlThunk(): string {
12
12
  return this.config.services?.['projectApiUrl'] ?? 'https://project-api.zapehr.com/v1';
13
13
  }
14
14
  /**
15
15
  * Get project API version. This endpoint is public so there are no access policy requirements.
16
16
  */
17
17
  get(request?: OystehrClientRequest): Promise<VersionGetResponse> {
18
- return this.request('/version', 'get', this.baseUrlThunk.bind(this))(request);
18
+ return this.request('/version', 'get', this.#baseUrlThunk.bind(this))(request);
19
19
  }
20
20
  }