@sijilaty/ehr-sdk 1.0.1 → 1.0.2

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 (89) hide show
  1. package/LICENSE.md +1 -1
  2. package/README.md +6 -6
  3. package/dist/cjs/index.cjs +108 -108
  4. package/dist/cjs/index.cjs.map +3 -3
  5. package/dist/esm/index.js +108 -108
  6. package/dist/esm/index.js.map +3 -3
  7. package/dist/types/client/client.d.ts +8 -8
  8. package/dist/types/client/client.d.ts.map +1 -1
  9. package/dist/types/config.d.ts +6 -6
  10. package/dist/types/config.d.ts.map +1 -1
  11. package/dist/types/errors/index.d.ts +2 -2
  12. package/dist/types/errors/index.d.ts.map +1 -1
  13. package/dist/types/index.d.ts +12 -12
  14. package/dist/types/index.d.ts.map +1 -1
  15. package/dist/types/resources/classes/application.d.ts +16 -16
  16. package/dist/types/resources/classes/application.d.ts.map +1 -1
  17. package/dist/types/resources/classes/charge.d.ts +5 -5
  18. package/dist/types/resources/classes/charge.d.ts.map +1 -1
  19. package/dist/types/resources/classes/conversation-ext.d.ts +1 -1
  20. package/dist/types/resources/classes/conversation.d.ts +14 -14
  21. package/dist/types/resources/classes/conversation.d.ts.map +1 -1
  22. package/dist/types/resources/classes/developer.d.ts +18 -18
  23. package/dist/types/resources/classes/developer.d.ts.map +1 -1
  24. package/dist/types/resources/classes/erx.d.ts +22 -22
  25. package/dist/types/resources/classes/erx.d.ts.map +1 -1
  26. package/dist/types/resources/classes/fax.d.ts +10 -10
  27. package/dist/types/resources/classes/fax.d.ts.map +1 -1
  28. package/dist/types/resources/classes/fhir-ext.d.ts +28 -28
  29. package/dist/types/resources/classes/fhir-ext.d.ts.map +1 -1
  30. package/dist/types/resources/classes/fhir.d.ts +3 -3
  31. package/dist/types/resources/classes/fhir.d.ts.map +1 -1
  32. package/dist/types/resources/classes/index.d.ts +4 -4
  33. package/dist/types/resources/classes/index.d.ts.map +1 -1
  34. package/dist/types/resources/classes/lab.d.ts +17 -17
  35. package/dist/types/resources/classes/lab.d.ts.map +1 -1
  36. package/dist/types/resources/classes/m2m.d.ts +22 -22
  37. package/dist/types/resources/classes/m2m.d.ts.map +1 -1
  38. package/dist/types/resources/classes/messaging.d.ts +4 -4
  39. package/dist/types/resources/classes/messaging.d.ts.map +1 -1
  40. package/dist/types/resources/classes/paymentMethod.d.ts +7 -7
  41. package/dist/types/resources/classes/paymentMethod.d.ts.map +1 -1
  42. package/dist/types/resources/classes/project.d.ts +9 -9
  43. package/dist/types/resources/classes/project.d.ts.map +1 -1
  44. package/dist/types/resources/classes/rcm-ext.d.ts +2 -2
  45. package/dist/types/resources/classes/rcm-ext.d.ts.map +1 -1
  46. package/dist/types/resources/classes/rcm.d.ts +10 -10
  47. package/dist/types/resources/classes/rcm.d.ts.map +1 -1
  48. package/dist/types/resources/classes/role.d.ts +13 -13
  49. package/dist/types/resources/classes/role.d.ts.map +1 -1
  50. package/dist/types/resources/classes/secret.d.ts +7 -7
  51. package/dist/types/resources/classes/secret.d.ts.map +1 -1
  52. package/dist/types/resources/classes/telemed.d.ts +6 -6
  53. package/dist/types/resources/classes/telemed.d.ts.map +1 -1
  54. package/dist/types/resources/classes/terminology.d.ts +5 -5
  55. package/dist/types/resources/classes/terminology.d.ts.map +1 -1
  56. package/dist/types/resources/classes/transactionalSMS.d.ts +5 -5
  57. package/dist/types/resources/classes/transactionalSMS.d.ts.map +1 -1
  58. package/dist/types/resources/classes/user.d.ts +26 -26
  59. package/dist/types/resources/classes/user.d.ts.map +1 -1
  60. package/dist/types/resources/classes/version.d.ts +4 -4
  61. package/dist/types/resources/classes/version.d.ts.map +1 -1
  62. package/dist/types/resources/classes/z3-ext.d.ts +1 -1
  63. package/dist/types/resources/classes/z3.d.ts +16 -16
  64. package/dist/types/resources/classes/z3.d.ts.map +1 -1
  65. package/dist/types/resources/classes/zambda.d.ts +21 -21
  66. package/dist/types/resources/classes/zambda.d.ts.map +1 -1
  67. package/dist/types/resources/classes/zambdaLogStream.d.ts +9 -9
  68. package/dist/types/resources/classes/zambdaLogStream.d.ts.map +1 -1
  69. package/dist/types/resources/types/Application.d.ts +6 -6
  70. package/dist/types/resources/types/ApplicationCreateParams.d.ts +6 -6
  71. package/dist/types/resources/types/ApplicationUpdateParams.d.ts +6 -6
  72. package/dist/types/resources/types/ConversationAddParticipantParams.d.ts +1 -1
  73. package/dist/types/resources/types/ConversationCreateResponse.d.ts +1 -1
  74. package/dist/types/resources/types/ConversationRemoveParticipantParams.d.ts +1 -1
  75. package/dist/types/resources/types/FaxSendParams.d.ts +1 -1
  76. package/dist/types/resources/types/FaxSendResponse.d.ts +1 -1
  77. package/dist/types/resources/types/LabOrderSubmitParams.d.ts +2 -2
  78. package/dist/types/resources/types/LabRoute.d.ts +5 -5
  79. package/dist/types/resources/types/LabRouteCreateParams.d.ts +6 -6
  80. package/dist/types/resources/types/Secret.d.ts +1 -1
  81. package/dist/types/resources/types/SecretSetParams.d.ts +1 -1
  82. package/dist/types/resources/types/TelemedCreateMeetingParams.d.ts +1 -1
  83. package/dist/types/resources/types/TelemedCreateMeetingResponse.d.ts +1 -1
  84. package/dist/types/resources/types/ZambdaCreateParams.d.ts +1 -1
  85. package/dist/types/resources/types/ZambdaFunction.d.ts +1 -1
  86. package/dist/types/resources/types/ZambdaUpdateParams.d.ts +1 -1
  87. package/dist/types/sijil/config.d.ts +7 -7
  88. package/dist/types/sijil/config.d.ts.map +1 -1
  89. package/package.json +3 -3
package/dist/esm/index.js CHANGED
@@ -6,12 +6,12 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
6
6
  var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
7
7
 
8
8
  // src/errors/index.ts
9
- var OystehrSdkError = class _OystehrSdkError extends Error {
9
+ var SijilSdkError = class _SijilSdkError extends Error {
10
10
  constructor({ message, code, cause }) {
11
11
  super(message, { cause });
12
- Object.setPrototypeOf(this, _OystehrSdkError.prototype);
12
+ Object.setPrototypeOf(this, _SijilSdkError.prototype);
13
13
  this.code = code;
14
- this.name = "OystehrSdkError";
14
+ this.name = "SijilSdkError";
15
15
  }
16
16
  toString() {
17
17
  return `${this.name}: ${this.message} (code: ${this.code})`;
@@ -37,15 +37,15 @@ function transformOperationOutcomeToErrorMessage(cause) {
37
37
  }
38
38
  return causes.join(",");
39
39
  }
40
- var OystehrFHIRError = class _OystehrFHIRError extends OystehrSdkError {
40
+ var SijilFHIRError = class _SijilFHIRError extends SijilSdkError {
41
41
  constructor({ error, code }) {
42
42
  super({
43
43
  message: transformOperationOutcomeToErrorMessage(error),
44
44
  code
45
45
  });
46
- Object.setPrototypeOf(this, _OystehrFHIRError.prototype);
46
+ Object.setPrototypeOf(this, _SijilFHIRError.prototype);
47
47
  this.cause = error;
48
- this.name = "OystehrFHIRError";
48
+ this.name = "SijilFHIRError";
49
49
  }
50
50
  toJSON() {
51
51
  return {
@@ -122,7 +122,7 @@ var SDKResource = class {
122
122
  } catch (err) {
123
123
  const error = err;
124
124
  this.logger.error(error.message, { code: error.code, cause: error.cause });
125
- throw new OystehrSdkError({ message: error.message, code: error.code, cause: error.cause });
125
+ throw new SijilSdkError({ message: error.message, code: error.code, cause: error.cause });
126
126
  }
127
127
  };
128
128
  }
@@ -136,13 +136,13 @@ var SDKResource = class {
136
136
  } catch (err) {
137
137
  const fullError = err;
138
138
  if (typeof fullError.message === "string") {
139
- throw new OystehrSdkError({
139
+ throw new SijilSdkError({
140
140
  message: fullError.message,
141
141
  code: fullError.code,
142
142
  cause: fullError.cause
143
143
  });
144
144
  }
145
- throw new OystehrFHIRError({
145
+ throw new SijilFHIRError({
146
146
  error: fullError.message,
147
147
  code: fullError.code
148
148
  });
@@ -161,21 +161,21 @@ var SDKResource = class {
161
161
  requestMode
162
162
  );
163
163
  if (raw.status !== 202) {
164
- throw new OystehrSdkError({
164
+ throw new SijilSdkError({
165
165
  message: `Expected start async job to return 202 Accepted, received ${raw.status}`,
166
166
  code: raw.status
167
167
  });
168
168
  }
169
169
  const contentLocation = this.readHeader(raw.headers, "content-location");
170
170
  if (!contentLocation) {
171
- throw new OystehrSdkError({
171
+ throw new SijilSdkError({
172
172
  message: "Start Async job response missing Content-Location header",
173
173
  code: 500
174
174
  });
175
175
  }
176
176
  const jobId = this.parseAsyncJobId(contentLocation);
177
177
  if (!jobId) {
178
- throw new OystehrSdkError({
178
+ throw new SijilSdkError({
179
179
  message: `Could not parse async job id from Content-Location: ${contentLocation}`,
180
180
  code: 500
181
181
  });
@@ -347,7 +347,7 @@ function fetcher(baseUrlThunk4, configThunk, loggerThunk, path, methodParam) {
347
347
  const headers = Object.assign(
348
348
  projectId ? {
349
349
  "x-zapehr-project-id": projectId,
350
- "x-oystehr-project-id": projectId
350
+ "x-sijil-project-id": projectId
351
351
  } : {},
352
352
  {
353
353
  "content-type": requestCtx?.contentType ?? "application/json"
@@ -355,7 +355,7 @@ function fetcher(baseUrlThunk4, configThunk, loggerThunk, path, methodParam) {
355
355
  preferHeader ? { Prefer: preferHeader } : {},
356
356
  accessToken ? { Authorization: `Bearer ${accessToken}` } : {},
357
357
  requestCtx?.ifMatch ? { "If-Match": requestCtx.ifMatch } : {},
358
- { "x-oystehr-request-id": requestCtx?.requestId }
358
+ { "x-sijil-request-id": requestCtx?.requestId }
359
359
  );
360
360
  const retryConfig = {
361
361
  retries: config.retry?.retries ?? 3,
@@ -495,7 +495,7 @@ function subParamsInPath(path, params) {
495
495
  return params[paramName] + "";
496
496
  }
497
497
  if (!params[paramName] || params[paramName] === "") {
498
- throw new OystehrSdkError({ message: `Required path parameter is an empty string: ${paramName}`, code: 400 });
498
+ throw new SijilSdkError({ message: `Required path parameter is an empty string: ${paramName}`, code: 400 });
499
499
  }
500
500
  if (params[paramName]) {
501
501
  return encodeURIComponent(params[paramName] + "");
@@ -531,7 +531,7 @@ var Application = class extends SDKResource {
531
531
  __privateAdd(this, _Application_instances);
532
532
  }
533
533
  /**
534
- * Get a list of Applications. [Applications](https://docs.oystehr.com/oystehr/services/app/applications/) provide authentication in front of the web and mobile apps you build on Oystehr.
534
+ * Get a list of Applications. [Applications](https://docs.sijil.com/sijil/services/app/applications/) provide authentication in front of the web and mobile apps you build on Sijil.
535
535
  *
536
536
  * Access Policy Action: `App:ListAllApplications`
537
537
  * Access Policy Resource: `App:Application`
@@ -540,7 +540,7 @@ var Application = class extends SDKResource {
540
540
  return this.request("/application", "get", __privateMethod(this, _Application_instances, baseUrlThunk_fn).bind(this))(request);
541
541
  }
542
542
  /**
543
- * Create a new Application. [Applications](https://docs.oystehr.com/oystehr/services/app/applications/) provide authentication in front of the web and mobile apps you build on Oystehr.
543
+ * Create a new Application. [Applications](https://docs.sijil.com/sijil/services/app/applications/) provide authentication in front of the web and mobile apps you build on Sijil.
544
544
  *
545
545
  * Access Policy Action: `App:CreateApplication`
546
546
  * Access Policy Resource: `App:Application`
@@ -549,7 +549,7 @@ var Application = class extends SDKResource {
549
549
  return this.request("/application", "post", __privateMethod(this, _Application_instances, baseUrlThunk_fn).bind(this))(params, request);
550
550
  }
551
551
  /**
552
- * Get the Application with the provided ID. [Applications](https://docs.oystehr.com/oystehr/services/app/applications/) provide authentication in front of the web and mobile apps you build on Oystehr.
552
+ * Get the Application with the provided ID. [Applications](https://docs.sijil.com/sijil/services/app/applications/) provide authentication in front of the web and mobile apps you build on Sijil.
553
553
  *
554
554
  * Access Policy Action: `App:GetApplication`
555
555
  * Access Policy Resource: `App:Application`
@@ -558,7 +558,7 @@ var Application = class extends SDKResource {
558
558
  return this.request("/application/{id}", "get", __privateMethod(this, _Application_instances, baseUrlThunk_fn).bind(this))(params, request);
559
559
  }
560
560
  /**
561
- * Update the Application with the provided ID. [Applications](https://docs.oystehr.com/oystehr/services/app/applications/) provide authentication in front of the web and mobile apps you build on Oystehr.
561
+ * Update the Application with the provided ID. [Applications](https://docs.sijil.com/sijil/services/app/applications/) provide authentication in front of the web and mobile apps you build on Sijil.
562
562
  *
563
563
  * Access Policy Action: `App:UpdateApplication`
564
564
  * Access Policy Resource: `App:Application`
@@ -567,7 +567,7 @@ var Application = class extends SDKResource {
567
567
  return this.request("/application/{id}", "patch", __privateMethod(this, _Application_instances, baseUrlThunk_fn).bind(this))(params, request);
568
568
  }
569
569
  /**
570
- * Delete the Application with the provided ID. [Applications](https://docs.oystehr.com/oystehr/services/app/applications/) provide authentication in front of the web and mobile apps you build on Oystehr.
570
+ * Delete the Application with the provided ID. [Applications](https://docs.sijil.com/sijil/services/app/applications/) provide authentication in front of the web and mobile apps you build on Sijil.
571
571
  *
572
572
  * Access Policy Action: `App:DeleteApplication`
573
573
  * Access Policy Resource: `App:Application`
@@ -689,14 +689,14 @@ var Conversation = class extends SDKResource {
689
689
  this.ENCOUNTER_VS_EXTENSION_URL = ENCOUNTER_VS_EXTENSION_URL;
690
690
  this.ENCOUNTER_VS_EXTENSION_RELATIVE_URL = ENCOUNTER_VS_EXTENSION_RELATIVE_URL;
691
691
  /**
692
- * Helper function to get a conversationId from an encounter created as an Oystehr Conversation
692
+ * Helper function to get a conversationId from an encounter created as an Sijil Conversation
693
693
  * @param encounter well-formed FHIR R4B or R5 Encounter
694
694
  * @returns conversationId
695
695
  */
696
696
  this.getConversationIdFromEncounter = getConversationIdFromEncounter;
697
697
  }
698
698
  /**
699
- * Create a new Conversation. [Conversations](https://docs.oystehr.com/oystehr/services/messaging/conversations/) allow you to build multi-channel bi-directional messaging workflows. For example, you might create a Conversation where a provider messages with a patient through a web app, and the patient receives and responds to messages via SMS on their phone.
699
+ * Create a new Conversation. [Conversations](https://docs.sijil.com/sijil/services/messaging/conversations/) allow you to build multi-channel bi-directional messaging workflows. For example, you might create a Conversation where a provider messages with a patient through a web app, and the patient receives and responds to messages via SMS on their phone.
700
700
  *
701
701
  * Access Policy Requirements:
702
702
  * Action: `Messaging:CreateConversation`
@@ -710,7 +710,7 @@ var Conversation = class extends SDKResource {
710
710
  return this.request("/messaging/conversation", "post", __privateMethod(this, _Conversation_instances, baseUrlThunk_fn3).bind(this))(params, request);
711
711
  }
712
712
  /**
713
- * Get a Conversation Token. Conversation Tokens are used to join the Conversation with the Twilio Conversations SDKs. [Conversations](https://docs.oystehr.com/oystehr/services/messaging/conversations/) allow you to build multi-channel bi-directional messaging workflows. For example, you might create a Conversation where a provider messages with a patient through a web app, and the patient receives and responds to messages via SMS on their phone.
713
+ * Get a Conversation Token. Conversation Tokens are used to join the Conversation with the Twilio Conversations SDKs. [Conversations](https://docs.sijil.com/sijil/services/messaging/conversations/) allow you to build multi-channel bi-directional messaging workflows. For example, you might create a Conversation where a provider messages with a patient through a web app, and the patient receives and responds to messages via SMS on their phone.
714
714
  *
715
715
  * Access Policy Action: `Messaging:GetConversationToken`
716
716
  * Access Policy Resource: `Messaging:Conversation`.
@@ -719,7 +719,7 @@ var Conversation = class extends SDKResource {
719
719
  return this.request("/messaging/conversation/token", "get", __privateMethod(this, _Conversation_instances, baseUrlThunk_fn3).bind(this))(request);
720
720
  }
721
721
  /**
722
- * Add a participant to a Conversation. [Conversations](https://docs.oystehr.com/oystehr/services/messaging/conversations/) allow you to build multi-channel bi-directional messaging workflows. For example, you might create a Conversation where a provider messages with a patient through a web app, and the patient receives and responds to messages via SMS on their phone.
722
+ * Add a participant to a Conversation. [Conversations](https://docs.sijil.com/sijil/services/messaging/conversations/) allow you to build multi-channel bi-directional messaging workflows. For example, you might create a Conversation where a provider messages with a patient through a web app, and the patient receives and responds to messages via SMS on their phone.
723
723
  *
724
724
  * Access Policy Requirements:
725
725
  * Action: `Messaging:ConversationAddParticipant`
@@ -737,7 +737,7 @@ var Conversation = class extends SDKResource {
737
737
  )(params, request);
738
738
  }
739
739
  /**
740
- * Remove a participant from a Conversation. [Conversations](https://docs.oystehr.com/oystehr/services/messaging/conversations/) allow you to build multi-channel bi-directional messaging workflows. For example, you might create a Conversation where a provider messages with a patient through a web app, and the patient receives and responds to messages via SMS on their phone.
740
+ * Remove a participant from a Conversation. [Conversations](https://docs.sijil.com/sijil/services/messaging/conversations/) allow you to build multi-channel bi-directional messaging workflows. For example, you might create a Conversation where a provider messages with a patient through a web app, and the patient receives and responds to messages via SMS on their phone.
741
741
  *
742
742
  * Access Policy Requirements:
743
743
  * Action: `Messaging:ConversationRemoveParticipant`
@@ -753,7 +753,7 @@ var Conversation = class extends SDKResource {
753
753
  )(params, request);
754
754
  }
755
755
  /**
756
- * Send a message to a Conversation. [Conversations](https://docs.oystehr.com/oystehr/services/messaging/conversations/) allow you to build multi-channel bi-directional messaging workflows. For example, you might create a Conversation where a provider messages with a patient through a web app, and the patient receives and responds to messages via SMS on their phone.
756
+ * Send a message to a Conversation. [Conversations](https://docs.sijil.com/sijil/services/messaging/conversations/) allow you to build multi-channel bi-directional messaging workflows. For example, you might create a Conversation where a provider messages with a patient through a web app, and the patient receives and responds to messages via SMS on their phone.
757
757
  *
758
758
  * Access Policy Requirements:
759
759
  * Action: `Messaging:ConversationSendMessage`
@@ -780,7 +780,7 @@ var Developer = class extends SDKResource {
780
780
  __privateAdd(this, _Developer_instances);
781
781
  }
782
782
  /**
783
- * Get the Developer with the provided ID. Developer accounts are used to log into the [Developer Console](https://console.oystehr.com/) and administrate [Projects](https://docs.oystehr.com/oystehr/services/project/). [Developers](https://docs.oystehr.com/oystehr/services/iam/developers/) are the only people who can belong to and act across multiple Projects, because they exist above the Project level.
783
+ * Get the Developer with the provided ID. Developer accounts are used to log into the [Developer Console](https://console.sijil.com/) and administrate [Projects](https://docs.sijil.com/sijil/services/project/). [Developers](https://docs.sijil.com/sijil/services/iam/developers/) are the only people who can belong to and act across multiple Projects, because they exist above the Project level.
784
784
  *
785
785
  * Access Policy Action: `IAM:GetDeveloper`
786
786
  * Access Policy Resource: `IAM:Developer`
@@ -789,7 +789,7 @@ var Developer = class extends SDKResource {
789
789
  return this.request("/developer/{id}", "get", __privateMethod(this, _Developer_instances, baseUrlThunk_fn4).bind(this))(params, request);
790
790
  }
791
791
  /**
792
- * Update the Developer with the provided ID. Developer accounts are used to log into the [Developer Console](https://console.oystehr.com/) and administrate [Projects](https://docs.oystehr.com/oystehr/services/project/). [Developers](https://docs.oystehr.com/oystehr/services/iam/developers/) are the only people who can belong to and act across multiple Projects, because they exist above the Project level.
792
+ * Update the Developer with the provided ID. Developer accounts are used to log into the [Developer Console](https://console.sijil.com/) and administrate [Projects](https://docs.sijil.com/sijil/services/project/). [Developers](https://docs.sijil.com/sijil/services/iam/developers/) are the only people who can belong to and act across multiple Projects, because they exist above the Project level.
793
793
  *
794
794
  * Access Policy Action: `IAM:UpdateDeveloper`
795
795
  * Access Policy Resource: `IAM:Developer`
@@ -798,7 +798,7 @@ var Developer = class extends SDKResource {
798
798
  return this.request("/developer/{id}", "patch", __privateMethod(this, _Developer_instances, baseUrlThunk_fn4).bind(this))(params, request);
799
799
  }
800
800
  /**
801
- * Remove the Developer with the provided ID from the project. Developer accounts are used to log into the [Developer Console](https://console.oystehr.com/) and administrate [Projects](https://docs.oystehr.com/oystehr/services/project/). [Developers](https://docs.oystehr.com/oystehr/services/iam/developers/) are the only people who can belong to and act across multiple Projects, because they exist above the Project level.
801
+ * Remove the Developer with the provided ID from the project. Developer accounts are used to log into the [Developer Console](https://console.sijil.com/) and administrate [Projects](https://docs.sijil.com/sijil/services/project/). [Developers](https://docs.sijil.com/sijil/services/iam/developers/) are the only people who can belong to and act across multiple Projects, because they exist above the Project level.
802
802
  *
803
803
  * Access Policy Action: `IAM:RemoveDeveloper`
804
804
  * Access Policy Resource: `IAM:Developer`
@@ -807,7 +807,7 @@ var Developer = class extends SDKResource {
807
807
  return this.request("/developer/{id}", "delete", __privateMethod(this, _Developer_instances, baseUrlThunk_fn4).bind(this))(params, request);
808
808
  }
809
809
  /**
810
- * Invite a new Developer to the Project. Developer accounts are used to log into the [Developer Console](https://console.oystehr.com/) and administrate [Projects](https://docs.oystehr.com/oystehr/services/project/). [Developers](https://docs.oystehr.com/oystehr/services/iam/developers/) are the only people who can belong to and act across multiple Projects, because they exist above the Project level.
810
+ * Invite a new Developer to the Project. Developer accounts are used to log into the [Developer Console](https://console.sijil.com/) and administrate [Projects](https://docs.sijil.com/sijil/services/project/). [Developers](https://docs.sijil.com/sijil/services/iam/developers/) are the only people who can belong to and act across multiple Projects, because they exist above the Project level.
811
811
  *
812
812
  * Access Policy Action: `IAM:InviteDeveloper`
813
813
  * Access Policy Resource: `IAM:Developer`
@@ -816,9 +816,9 @@ var Developer = class extends SDKResource {
816
816
  return this.request("/developer/invite", "post", __privateMethod(this, _Developer_instances, baseUrlThunk_fn4).bind(this))(params, request);
817
817
  }
818
818
  /**
819
- * DEPRECATED. Please use [v2/list](https://api-reference.oystehr.com/reference/get_developer-v2-list) instead.
819
+ * DEPRECATED. Please use [v2/list](https://api-reference.sijil.com/reference/get_developer-v2-list) instead.
820
820
  *
821
- * Get a list of all Developers who are part of the Project. Developer accounts are used to log into the [Developer Console](https://console.oystehr.com/) and administrate [Projects](https://docs.oystehr.com/oystehr/services/project/). [Developers](https://docs.oystehr.com/oystehr/services/iam/developers/) are the only people who can belong to and act across multiple Projects, because they exist above the Project level.
821
+ * Get a list of all Developers who are part of the Project. Developer accounts are used to log into the [Developer Console](https://console.sijil.com/) and administrate [Projects](https://docs.sijil.com/sijil/services/project/). [Developers](https://docs.sijil.com/sijil/services/iam/developers/) are the only people who can belong to and act across multiple Projects, because they exist above the Project level.
822
822
  *
823
823
  * Access Policy Action: `IAM:ListAllDevelopers`
824
824
  * Access Policy Resource: `IAM:Developer`
@@ -827,7 +827,7 @@ var Developer = class extends SDKResource {
827
827
  return this.request("/developer", "get", __privateMethod(this, _Developer_instances, baseUrlThunk_fn4).bind(this))(request);
828
828
  }
829
829
  /**
830
- * Get Developers 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.
830
+ * Get Developers in the Project with pagination, sort, sort order and filtering. [Users](https://docs.sijil.com/sijil/services/app/users/) are the people who log into the [Applications](https://docs.sijil.com/sijil/services/app/applications/) you configure for securing the apps you build on top of Sijil.
831
831
  *
832
832
  * Access Policy Action: `Project:ListAllUsers`
833
833
  * Access Policy Resource: `Project:Settings`
@@ -1010,7 +1010,7 @@ var Fax = class extends SDKResource {
1010
1010
  __privateAdd(this, _Fax_instances);
1011
1011
  }
1012
1012
  /**
1013
- * Offboard a fax number. Oystehr's [offboard](https://docs.oystehr.com/oystehr/services/fax/number/) feature makes it easy to stop using the fax service and release the project's assigned fax number with a single API call. Please note there is no way to guarantee getting the same number back again, so if you think this can break your project in any way we recommend not offboarding and avoid sending faxes until you're sure.
1013
+ * Offboard a fax number. Sijil's [offboard](https://docs.sijil.com/sijil/services/fax/number/) feature makes it easy to stop using the fax service and release the project's assigned fax number with a single API call. Please note there is no way to guarantee getting the same number back again, so if you think this can break your project in any way we recommend not offboarding and avoid sending faxes until you're sure.
1014
1014
  *
1015
1015
  * Access Policy Requirements:
1016
1016
  * Action: `Fax:Offboard`
@@ -1020,7 +1020,7 @@ var Fax = class extends SDKResource {
1020
1020
  return this.request("/offboard", "post", __privateMethod(this, _Fax_instances, baseUrlThunk_fn6).bind(this))(request);
1021
1021
  }
1022
1022
  /**
1023
- * Onboard a fax number. Oystehr's [onboard](https://docs.oystehr.com/oystehr/services/fax/number/) feature makes it easy to start using the fax service and purchase a new fax number for your project with a single API call.
1023
+ * Onboard a fax number. Sijil's [onboard](https://docs.sijil.com/sijil/services/fax/number/) feature makes it easy to start using the fax service and purchase a new fax number for your project with a single API call.
1024
1024
  *
1025
1025
  * Access Policy Requirements:
1026
1026
  * Action: `Fax:Onboard`
@@ -1040,7 +1040,7 @@ var Fax = class extends SDKResource {
1040
1040
  return this.request("/config", "get", __privateMethod(this, _Fax_instances, baseUrlThunk_fn6).bind(this))(request);
1041
1041
  }
1042
1042
  /**
1043
- * Send a fax. Oystehr's [fax sending](https://docs.oystehr.com/oystehr/services/fax/send/) feature makes it easy to send a fax to a chosen recipient with a single API call. You can use this feature to send referrals, medical records, prescriptions, and other documents that require fax transmission e.g. for HIPAA compliance.
1043
+ * Send a fax. Sijil's [fax sending](https://docs.sijil.com/sijil/services/fax/send/) feature makes it easy to send a fax to a chosen recipient with a single API call. You can use this feature to send referrals, medical records, prescriptions, and other documents that require fax transmission e.g. for HIPAA compliance.
1044
1044
  *
1045
1045
  * Access Policy Requirements:
1046
1046
  * Action: `Fax:Send`
@@ -1097,7 +1097,7 @@ function applyTagToResource(config, resource) {
1097
1097
  const resourceTags = resourceLike.meta?.tag ?? [];
1098
1098
  for (const ignored of config.ignoreTags) {
1099
1099
  if (resourceTags.some((t) => codingMatches(t, ignored))) {
1100
- throw new OystehrSdkError({
1100
+ throw new SijilSdkError({
1101
1101
  message: `Resource has an ignored tag (system: "${ignored.system ?? ""}", code: "${ignored.code ?? ""}") and cannot be mutated in ignoreTags mode`,
1102
1102
  code: 400
1103
1103
  });
@@ -1130,7 +1130,7 @@ function applyTagToPatchOperations(config, operations) {
1130
1130
  if (v.code !== void 0) {
1131
1131
  for (const ignored of config.ignoreTags) {
1132
1132
  if (codingMatches(v, ignored)) {
1133
- throw new OystehrSdkError({
1133
+ throw new SijilSdkError({
1134
1134
  message: `Patch operation contains an ignored tag (system: "${ignored.system ?? ""}", code: "${ignored.code ?? ""}") and cannot be applied in ignoreTags mode`,
1135
1135
  code: 400
1136
1136
  });
@@ -1186,7 +1186,7 @@ function assertRetrievedResource(config, resource) {
1186
1186
  if (config.workspaceTag) {
1187
1187
  const tag = config.workspaceTag;
1188
1188
  if (!resourceTags.some((t) => codingMatches(t, tag))) {
1189
- throw new OystehrFHIRError({
1189
+ throw new SijilFHIRError({
1190
1190
  error: {
1191
1191
  resourceType: "OperationOutcome",
1192
1192
  id: "not-found",
@@ -1200,7 +1200,7 @@ function assertRetrievedResource(config, resource) {
1200
1200
  if (config.ignoreTags?.length) {
1201
1201
  for (const ignored of config.ignoreTags) {
1202
1202
  if (resourceTags.some((t) => codingMatches(t, ignored))) {
1203
- throw new OystehrFHIRError({
1203
+ throw new SijilFHIRError({
1204
1204
  error: {
1205
1205
  resourceType: "OperationOutcome",
1206
1206
  id: "not-found",
@@ -1359,7 +1359,7 @@ async function waitForAsyncJob(jobId, options, request) {
1359
1359
  await new Promise((resolve) => setTimeout(resolve, getRetryDelayMs(retryAfter, pollIntervalMs)));
1360
1360
  }
1361
1361
  }
1362
- throw new OystehrSdkError({
1362
+ throw new SijilSdkError({
1363
1363
  message: `Async job ${jobId} did not complete within ${timeoutMs} ms`,
1364
1364
  code: 408
1365
1365
  });
@@ -1514,7 +1514,7 @@ async function batch(input, request) {
1514
1514
  try {
1515
1515
  assertRetrievedResource(this.config, entry.resource);
1516
1516
  } catch (err) {
1517
- if (!(err instanceof OystehrFHIRError)) throw err;
1517
+ if (!(err instanceof SijilFHIRError)) throw err;
1518
1518
  return {
1519
1519
  request: entry.request,
1520
1520
  response: { status: "404", outcome: err.cause }
@@ -1619,7 +1619,7 @@ var Fhir = class extends SDKResource {
1619
1619
  /**
1620
1620
  * Performs a FHIR search and returns the results as a Bundle resource
1621
1621
  * @param options FHIR resource type and FHIR search parameters
1622
- * @param request optional OystehrClientRequest object
1622
+ * @param request optional SijilClientRequest object
1623
1623
  * @returns FHIR Bundle resource
1624
1624
  */
1625
1625
  this.search = search;
@@ -1662,7 +1662,7 @@ var Lab = class extends SDKResource {
1662
1662
  return this.request("/route", "get", __privateMethod(this, _Lab_instances, baseUrlThunk_fn8).bind(this))(request);
1663
1663
  }
1664
1664
  /**
1665
- * Create a route. A Route represents that a lab and particular customer have a relationship, and a Route is necessary to submit an order to a lab. See [Route](https://docs.oystehr.com/oystehr/services/lab/onboarding-a-lab/#create-route) for more details.
1665
+ * Create a route. A Route represents that a lab and particular customer have a relationship, and a Route is necessary to submit an order to a lab. See [Route](https://docs.sijil.com/sijil/services/lab/onboarding-a-lab/#create-route) for more details.
1666
1666
  *
1667
1667
  * Access Policy Requirements:
1668
1668
  * Action: `Lab:CreateRoute`
@@ -1682,7 +1682,7 @@ var Lab = class extends SDKResource {
1682
1682
  return this.request("/route/{routeGuid}", "get", __privateMethod(this, _Lab_instances, baseUrlThunk_fn8).bind(this))(params, request);
1683
1683
  }
1684
1684
  /**
1685
- * Delete a route. Deleting a Route will permanently remove the `routeGuid`. Orders can no longer be submitted to this lab until a new Route is created. See [Route](https://docs.oystehr.com/oystehr/services/lab/onboarding-a-lab/#delete-route) for more details.
1685
+ * Delete a route. Deleting a Route will permanently remove the `routeGuid`. Orders can no longer be submitted to this lab until a new Route is created. See [Route](https://docs.sijil.com/sijil/services/lab/onboarding-a-lab/#delete-route) for more details.
1686
1686
  *
1687
1687
  * Access Policy Requirements:
1688
1688
  * Action: `Lab:DeleteRoute`
@@ -1692,7 +1692,7 @@ var Lab = class extends SDKResource {
1692
1692
  return this.request("/route/{routeGuid}", "delete", __privateMethod(this, _Lab_instances, baseUrlThunk_fn8).bind(this))(params, request);
1693
1693
  }
1694
1694
  /**
1695
- * Returns list of active orderable items for the latest compendium version. Page size is default 25 and max 100 items. See [orderable item Search](https://docs.oystehr.com/oystehr/services/lab/explore-the-compendium/#orderable-item-search) for more details.
1695
+ * Returns list of active orderable items for the latest compendium version. Page size is default 25 and max 100 items. See [orderable item Search](https://docs.sijil.com/sijil/services/lab/explore-the-compendium/#orderable-item-search) for more details.
1696
1696
  *
1697
1697
  * Access Policy Requirements:
1698
1698
  * Action: `Lab:SearchOrderableItems`
@@ -1702,7 +1702,7 @@ var Lab = class extends SDKResource {
1702
1702
  return this.request("/orderableItem", "get", __privateMethod(this, _Lab_instances, baseUrlThunk_fn8).bind(this))(params, request);
1703
1703
  }
1704
1704
  /**
1705
- * Retrieve the AOE (Answer on Entry) Questionnaire for the given orderable item. The orderable item is defined by its labGuid, compendiumVersion, and itemCode. See [AOE](https://docs.oystehr.com/oystehr/services/lab/explore-the-compendium/#AOE) for more details.
1705
+ * Retrieve the AOE (Answer on Entry) Questionnaire for the given orderable item. The orderable item is defined by its labGuid, compendiumVersion, and itemCode. See [AOE](https://docs.sijil.com/sijil/services/lab/explore-the-compendium/#AOE) for more details.
1706
1706
  *
1707
1707
  * Access Policy Requirements:
1708
1708
  * Action: `Lab:SearchOrderableItems`
@@ -1716,7 +1716,7 @@ var Lab = class extends SDKResource {
1716
1716
  )(params, request);
1717
1717
  }
1718
1718
  /**
1719
- * Submit a lab order. Oystehr's [Submit Lab](https://docs.oystehr.com/oystehr/services/lab/submit-an-order/) feature allows users to submit an order consisting of one or more well-configured ServiceRequests to an external lab. In order to successfully submit an order, a [Route](https://docs.oystehr.com/oystehr/services/lab/onboarding-a-lab/#create-route) to and Organization representing that lab must exist. If the lab requires its own requisition document (eReq) or an Advance Beneficiary Notice (ABN), the appropriate DocumentReferences will be included in the response.
1719
+ * Submit a lab order. Sijil's [Submit Lab](https://docs.sijil.com/sijil/services/lab/submit-an-order/) feature allows users to submit an order consisting of one or more well-configured ServiceRequests to an external lab. In order to successfully submit an order, a [Route](https://docs.sijil.com/sijil/services/lab/onboarding-a-lab/#create-route) to and Organization representing that lab must exist. If the lab requires its own requisition document (eReq) or an Advance Beneficiary Notice (ABN), the appropriate DocumentReferences will be included in the response.
1720
1720
  *
1721
1721
  * Access Policy Requirements:
1722
1722
  * Action: `Lab:SubmitOrder`
@@ -1739,9 +1739,9 @@ var M2m = class extends SDKResource {
1739
1739
  __privateAdd(this, _M2m_instances);
1740
1740
  }
1741
1741
  /**
1742
- * DEPRECATED. Please use [v2/list](https://api-reference.oystehr.com/reference/get_m2m-v2-list) instead.
1742
+ * DEPRECATED. Please use [v2/list](https://api-reference.sijil.com/reference/get_m2m-v2-list) instead.
1743
1743
  *
1744
- * 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).
1744
+ * Get a list of all M2M Clients. [M2M Clients](https://docs.sijil.com/sijil/services/iam/m2m-clients) are used to access Sijil APIs from scripts and server-side code like [Zambda Functions](https://docs.sijil.com/sijil/services/zambda).
1745
1745
  *
1746
1746
  * Access Policy Action: `App:ListAllM2MClients`
1747
1747
  * Access Policy Resource: `IAM:M2MClient`
@@ -1750,7 +1750,7 @@ var M2m = class extends SDKResource {
1750
1750
  return this.request("/m2m", "get", __privateMethod(this, _M2m_instances, baseUrlThunk_fn9).bind(this))(request);
1751
1751
  }
1752
1752
  /**
1753
- * 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).
1753
+ * Create a new M2M Client. [M2M Clients](https://docs.sijil.com/sijil/services/iam/m2m-clients) are used to access Sijil APIs from scripts and server-side code like [Zambda Functions](https://docs.sijil.com/sijil/services/zambda).
1754
1754
  *
1755
1755
  * Access Policy Action: `App:CreateM2MClient`
1756
1756
  * Access Policy Resource: `IAM:M2MClient`
@@ -1759,7 +1759,7 @@ var M2m = class extends SDKResource {
1759
1759
  return this.request("/m2m", "post", __privateMethod(this, _M2m_instances, baseUrlThunk_fn9).bind(this))(params, request);
1760
1760
  }
1761
1761
  /**
1762
- * Get information about the calling 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).
1762
+ * Get information about the calling M2M Client. [M2M Clients](https://docs.sijil.com/sijil/services/iam/m2m-clients) are used to access Sijil APIs from scripts and server-side code like [Zambda Functions](https://docs.sijil.com/sijil/services/zambda).
1763
1763
  *
1764
1764
  * Access Policy Action: `App:GetM2MClient`
1765
1765
  * Access Policy Resource: `IAM:M2MClient`
@@ -1768,7 +1768,7 @@ var M2m = class extends SDKResource {
1768
1768
  return this.request("/m2m/me", "get", __privateMethod(this, _M2m_instances, baseUrlThunk_fn9).bind(this))(request);
1769
1769
  }
1770
1770
  /**
1771
- * 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).
1771
+ * Get the M2M Client with the provided ID. [M2M Clients](https://docs.sijil.com/sijil/services/iam/m2m-clients) are used to access Sijil APIs from scripts and server-side code like [Zambda Functions](https://docs.sijil.com/sijil/services/zambda).
1772
1772
  *
1773
1773
  * Access Policy Action: `App:GetM2MClient`
1774
1774
  * Access Policy Resource: `IAM:M2MClient`
@@ -1777,7 +1777,7 @@ var M2m = class extends SDKResource {
1777
1777
  return this.request("/m2m/{id}", "get", __privateMethod(this, _M2m_instances, baseUrlThunk_fn9).bind(this))(params, request);
1778
1778
  }
1779
1779
  /**
1780
- * 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).
1780
+ * Update the M2M Client with the provided ID. [M2M Clients](https://docs.sijil.com/sijil/services/iam/m2m-clients) are used to access Sijil APIs from scripts and server-side code like [Zambda Functions](https://docs.sijil.com/sijil/services/zambda).
1781
1781
  *
1782
1782
  * Access Policy Action: `App:UpdateM2MClient`
1783
1783
  * Access Policy Resource: `IAM:M2MClient`
@@ -1786,7 +1786,7 @@ var M2m = class extends SDKResource {
1786
1786
  return this.request("/m2m/{id}", "patch", __privateMethod(this, _M2m_instances, baseUrlThunk_fn9).bind(this))(params, request);
1787
1787
  }
1788
1788
  /**
1789
- * 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).
1789
+ * Delete the M2M Client with the provided ID. [M2M Clients](https://docs.sijil.com/sijil/services/iam/m2m-clients) are used to access Sijil APIs from scripts and server-side code like [Zambda Functions](https://docs.sijil.com/sijil/services/zambda).
1790
1790
  *
1791
1791
  * Access Policy Action: `App:DeleteM2MClient`
1792
1792
  * Access Policy Resource: `IAM:M2MClient`
@@ -1795,7 +1795,7 @@ var M2m = class extends SDKResource {
1795
1795
  return this.request("/m2m/{id}", "delete", __privateMethod(this, _M2m_instances, baseUrlThunk_fn9).bind(this))(params, request);
1796
1796
  }
1797
1797
  /**
1798
- * 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).
1798
+ * Rotate the client secret for the M2M Client with the provided ID. [M2M Clients](https://docs.sijil.com/sijil/services/iam/m2m-clients) are used to access Sijil APIs from scripts and server-side code like [Zambda Functions](https://docs.sijil.com/sijil/services/zambda).
1799
1799
  *
1800
1800
  * Access Policy Action: `App:RotateM2MClientSecret`
1801
1801
  * Access Policy Resource: `IAM:M2MClient`
@@ -1804,7 +1804,7 @@ var M2m = class extends SDKResource {
1804
1804
  return this.request("/m2m/{id}/rotate-secret", "post", __privateMethod(this, _M2m_instances, baseUrlThunk_fn9).bind(this))(params, request);
1805
1805
  }
1806
1806
  /**
1807
- * 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).
1807
+ * Get M2M clients in the Project with pagination, sort, sort order and filtering. [M2M Clients](https://docs.sijil.com/sijil/services/iam/m2m-clients) are used to access Sijil APIs from scripts and server-side code like [Zambda Functions](https://docs.sijil.com/sijil/services/zambda).
1808
1808
  *
1809
1809
  * Access Policy Action: `App:ListAllM2MClients`
1810
1810
  * Access Policy Resource: `IAM:M2MClient`
@@ -1930,7 +1930,7 @@ var Project = class extends SDKResource {
1930
1930
  __privateAdd(this, _Project_instances);
1931
1931
  }
1932
1932
  /**
1933
- * Get the Project settings for a Project. Developers must specify a [project ID](https://docs.oystehr.com/oystehr/core-documentation/authenticating-api-requests/#x-oystehr-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 .
1933
+ * Get the Project settings for a Project. Developers must specify a [project ID](https://docs.sijil.com/sijil/core-documentation/authenticating-api-requests/#x-sijil-project-id-header) in the header. A Project is the logically-isolated instance of Sijil that segments your data from other Projects. [Projects](https://docs.sijil.com/sijil/services/project/) are completely independent from each other, having their own separate [FHIR store](https://docs.sijil.com/sijil/services/fhir/basics/), [Applications](https://docs.sijil.com/sijil/services/app/applications/), [Users](https://docs.sijil.com/sijil/services/app/users/), etc .
1934
1934
  *
1935
1935
  * Access Policy Action: `Project:GetProjectInfo`
1936
1936
  * Access Policy Resource: `Project:Settings`
@@ -1939,7 +1939,7 @@ var Project = class extends SDKResource {
1939
1939
  return this.request("/project", "get", __privateMethod(this, _Project_instances, baseUrlThunk_fn12).bind(this))(request);
1940
1940
  }
1941
1941
  /**
1942
- * 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 .
1942
+ * Update the Project settings for the Project that corresponds to the project-id in the request header. A [Project](https://docs.sijil.com/sijil/services/project/) is the logically-isolated instance of Sijil that segments your data from other Projects. Projects are completely independent from each other, having their own separate [FHIR store](https://docs.sijil.com/sijil/services/fhir/basics/), [Applications](https://docs.sijil.com/sijil/services/app/applications/), [Users](https://docs.sijil.com/sijil/services/app/users/), etc .
1943
1943
  *
1944
1944
  * Access Policy Action: `Project:UpdateProjectInfo`
1945
1945
  * Access Policy Resource: `Project:Settings`
@@ -1964,7 +1964,7 @@ function constructPayerUrl({
1964
1964
  }
1965
1965
  async function getPayerByUrl({ url }, request) {
1966
1966
  if (!url.startsWith(constructPayerUrl.call(this, { id: "" }))) {
1967
- throw new OystehrSdkError({ code: 400, message: "Invalid payer URL." });
1967
+ throw new SijilSdkError({ code: 400, message: "Invalid payer URL." });
1968
1968
  }
1969
1969
  const urlObj = new URL(url);
1970
1970
  const pathParts = urlObj.pathname.split("/").filter(Boolean);
@@ -1982,7 +1982,7 @@ var Rcm = class extends SDKResource {
1982
1982
  this.getPayerByUrl = getPayerByUrl;
1983
1983
  }
1984
1984
  /**
1985
- * Check [Insurance Eligibility](https://docs.oystehr.com/oystehr/services/rcm/eligibility/).
1985
+ * Check [Insurance Eligibility](https://docs.sijil.com/sijil/services/rcm/eligibility/).
1986
1986
  *
1987
1987
  * Access Policy Action: `RCM:CheckInsuranceEligibility`
1988
1988
  * Access Policy Resource: `RCM:InsuranceEligibility`
@@ -2049,7 +2049,7 @@ var Role = class extends SDKResource {
2049
2049
  __privateAdd(this, _Role_instances);
2050
2050
  }
2051
2051
  /**
2052
- * 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/).
2052
+ * Get a list of all Roles. A [Role](https://docs.sijil.com/sijil/services/iam/roles/) defines an access policy that can be assigned to any number of [Developers](https://docs.sijil.com/sijil/services/iam/developers/), [Users](https://docs.sijil.com/sijil/services/app/users/), and [M2M Clients](https://docs.sijil.com/sijil/services/iam/m2m-clients/).
2053
2053
  *
2054
2054
  * Access Policy Action: `IAM:ListAllRoles`
2055
2055
  * Access Policy Resource: `IAM:Role`
@@ -2058,7 +2058,7 @@ var Role = class extends SDKResource {
2058
2058
  return this.request("/iam/role", "get", __privateMethod(this, _Role_instances, baseUrlThunk_fn14).bind(this))(request);
2059
2059
  }
2060
2060
  /**
2061
- * 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/).
2061
+ * Create a new Role. A [Role](https://docs.sijil.com/sijil/services/iam/roles/) defines an access policy that can be assigned to any number of [Developers](https://docs.sijil.com/sijil/services/iam/developers/), [Users](https://docs.sijil.com/sijil/services/app/users/), and [M2M Clients](https://docs.sijil.com/sijil/services/iam/m2m-clients/).
2062
2062
  *
2063
2063
  * Access Policy Action: `IAM:CreateRole`
2064
2064
  * Access Policy Resource: `IAM:Role`
@@ -2067,7 +2067,7 @@ var Role = class extends SDKResource {
2067
2067
  return this.request("/iam/role", "post", __privateMethod(this, _Role_instances, baseUrlThunk_fn14).bind(this))(params, request);
2068
2068
  }
2069
2069
  /**
2070
- * 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/).
2070
+ * Get the Role with the provided ID. A [Role](https://docs.sijil.com/sijil/services/iam/roles/) defines an access policy that can be assigned to any number of [Developers](https://docs.sijil.com/sijil/services/iam/developers/), [Users](https://docs.sijil.com/sijil/services/app/users/), and [M2M Clients](https://docs.sijil.com/sijil/services/iam/m2m-clients/).
2071
2071
  *
2072
2072
  * Access Policy Action: `IAM:GetRole`
2073
2073
  * Access Policy Resource: `IAM:Role`
@@ -2076,7 +2076,7 @@ var Role = class extends SDKResource {
2076
2076
  return this.request("/iam/role/{roleId}", "get", __privateMethod(this, _Role_instances, baseUrlThunk_fn14).bind(this))(params, request);
2077
2077
  }
2078
2078
  /**
2079
- * 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/).
2079
+ * Update the Role with the provided ID. A [Role](https://docs.sijil.com/sijil/services/iam/roles/) defines an access policy that can be assigned to any number of [Developers](https://docs.sijil.com/sijil/services/iam/developers/), [Users](https://docs.sijil.com/sijil/services/app/users/), and [M2M Clients](https://docs.sijil.com/sijil/services/iam/m2m-clients/).
2080
2080
  *
2081
2081
  * Access Policy Action: `IAM:UpdateRole`
2082
2082
  * Access Policy Resource: `IAM:Role`
@@ -2085,7 +2085,7 @@ var Role = class extends SDKResource {
2085
2085
  return this.request("/iam/role/{roleId}", "patch", __privateMethod(this, _Role_instances, baseUrlThunk_fn14).bind(this))(params, request);
2086
2086
  }
2087
2087
  /**
2088
- * 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/).
2088
+ * Delete the Role with the provided ID. A [Role](https://docs.sijil.com/sijil/services/iam/roles/) defines an access policy that can be assigned to any number of [Developers](https://docs.sijil.com/sijil/services/iam/developers/), [Users](https://docs.sijil.com/sijil/services/app/users/), and [M2M Clients](https://docs.sijil.com/sijil/services/iam/m2m-clients/).
2089
2089
  *
2090
2090
  * Access Policy Action: `IAM:DeleteRole`
2091
2091
  * Access Policy Resource: `IAM:Role`
@@ -2157,7 +2157,7 @@ var Telemed = class extends SDKResource {
2157
2157
  __privateAdd(this, _Telemed_instances);
2158
2158
  }
2159
2159
  /**
2160
- * Create a [telemedicine video meeting](https://docs.oystehr.com/oystehr/services/telemed/).
2160
+ * Create a [telemedicine video meeting](https://docs.sijil.com/sijil/services/telemed/).
2161
2161
  *
2162
2162
  * Access Policy Requirements:
2163
2163
  * Action: `Telemed:CreateMeeting`
@@ -2232,7 +2232,7 @@ var TransactionalSMS = class extends SDKResource {
2232
2232
  __privateAdd(this, _TransactionalSMS_instances);
2233
2233
  }
2234
2234
  /**
2235
- * 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.
2235
+ * Send an SMS to any phone number. Sijil's [Transactional SMS](https://docs.sijil.com/sijil/services/messaging/transactional-sms/) feature makes it easy to send a text message to your [Users](https://docs.sijil.com/sijil/services/app/users/) with a single API call. You can use this feature to send appointment reminders, prescription refill reminders, discharge information, and more.
2236
2236
  *
2237
2237
  * Access Policy Requirements:
2238
2238
  * Action: `Messaging:SendTransactionalSMS`
@@ -2263,7 +2263,7 @@ var User = class extends SDKResource {
2263
2263
  __privateAdd(this, _User_instances);
2264
2264
  }
2265
2265
  /**
2266
- * 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.
2266
+ * Get your own User details. [Users](https://docs.sijil.com/sijil/services/app/users/) are the people who log into the [Applications](https://docs.sijil.com/sijil/services/app/applications/) you configure for securing the apps you build on top of Sijil.
2267
2267
  *
2268
2268
  * Fetch details about the calling User. This endpoint has no access policy requirements, it is available to all authenticated Users.
2269
2269
  */
@@ -2271,7 +2271,7 @@ var User = class extends SDKResource {
2271
2271
  return this.request("/user/me", "get", __privateMethod(this, _User_instances, baseUrlThunk_fn19).bind(this))(request);
2272
2272
  }
2273
2273
  /**
2274
- * 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.
2274
+ * Get the User with the provided ID. [Users](https://docs.sijil.com/sijil/services/app/users/) are the people who log into the [Applications](https://docs.sijil.com/sijil/services/app/applications/) you configure for securing the apps you build on top of Sijil.
2275
2275
  *
2276
2276
  * Access Policy Action: `App:GetUser`
2277
2277
  * Access Policy Resource: `App:User`
@@ -2280,7 +2280,7 @@ var User = class extends SDKResource {
2280
2280
  return this.request("/user/{id}", "get", __privateMethod(this, _User_instances, baseUrlThunk_fn19).bind(this))(params, request);
2281
2281
  }
2282
2282
  /**
2283
- * 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.
2283
+ * Update the User with the provided ID. [Users](https://docs.sijil.com/sijil/services/app/users/) are the people who log into the [Applications](https://docs.sijil.com/sijil/services/app/applications/) you configure for securing the apps you build on top of Sijil.
2284
2284
  *
2285
2285
  * Access Policy Action: `App:UpdateUser`
2286
2286
  * Access Policy Resource: `App:User`
@@ -2289,7 +2289,7 @@ var User = class extends SDKResource {
2289
2289
  return this.request("/user/{id}", "patch", __privateMethod(this, _User_instances, baseUrlThunk_fn19).bind(this))(params, request);
2290
2290
  }
2291
2291
  /**
2292
- * 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.
2292
+ * Delete the User with the provided ID. [Users](https://docs.sijil.com/sijil/services/app/users/) are the people who log into the [Applications](https://docs.sijil.com/sijil/services/app/applications/) you configure for securing the apps you build on top of Sijil.
2293
2293
  *
2294
2294
  * Access Policy Action: `App:DeleteUser`
2295
2295
  * Access Policy Resource: `App:User`
@@ -2298,7 +2298,7 @@ var User = class extends SDKResource {
2298
2298
  return this.request("/user/{id}", "delete", __privateMethod(this, _User_instances, baseUrlThunk_fn19).bind(this))(params, request);
2299
2299
  }
2300
2300
  /**
2301
- * Reset MFA for 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.
2301
+ * Reset MFA for the User with the provided ID. [Users](https://docs.sijil.com/sijil/services/app/users/) are the people who log into the [Applications](https://docs.sijil.com/sijil/services/app/applications/) you configure for securing the apps you build on top of Sijil.
2302
2302
  *
2303
2303
  * Access Policy Action: `App:ResetUserMFA`
2304
2304
  * Access Policy Resource: `App:User`
@@ -2307,7 +2307,7 @@ var User = class extends SDKResource {
2307
2307
  return this.request("/user/{id}/reset-mfa", "post", __privateMethod(this, _User_instances, baseUrlThunk_fn19).bind(this))(params, request);
2308
2308
  }
2309
2309
  /**
2310
- * Creates a password reset link for 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.
2310
+ * Creates a password reset link for the User with the provided ID. [Users](https://docs.sijil.com/sijil/services/app/users/) are the people who log into the [Applications](https://docs.sijil.com/sijil/services/app/applications/) you configure for securing the apps you build on top of Sijil.
2311
2311
  *
2312
2312
  * Access Policy Action: `App:GetUserPasswordResetLink`
2313
2313
  * Access Policy Resource: `App:User`
@@ -2316,7 +2316,7 @@ var User = class extends SDKResource {
2316
2316
  return this.request("/user/{id}/reset-password-link", "post", __privateMethod(this, _User_instances, baseUrlThunk_fn19).bind(this))(params, request);
2317
2317
  }
2318
2318
  /**
2319
- * Automatically changes the password for 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.
2319
+ * Automatically changes the password for the User with the provided ID. [Users](https://docs.sijil.com/sijil/services/app/users/) are the people who log into the [Applications](https://docs.sijil.com/sijil/services/app/applications/) you configure for securing the apps you build on top of Sijil.
2320
2320
  *
2321
2321
  * Access Policy Action: `App:ChangeUserPassword`
2322
2322
  * Access Policy Resource: `App:User`
@@ -2325,7 +2325,7 @@ var User = class extends SDKResource {
2325
2325
  return this.request("/user/{id}/change-password", "post", __privateMethod(this, _User_instances, baseUrlThunk_fn19).bind(this))(params, request);
2326
2326
  }
2327
2327
  /**
2328
- * 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.
2328
+ * Invite a User to the Project. [Users](https://docs.sijil.com/sijil/services/app/users/) are the people who log into the [Applications](https://docs.sijil.com/sijil/services/app/applications/) you configure for securing the apps you build on top of Sijil.
2329
2329
  *
2330
2330
  * Access Policy Action: `App:CreateUser`
2331
2331
  * Access Policy Resource: `App:User`
@@ -2334,9 +2334,9 @@ var User = class extends SDKResource {
2334
2334
  return this.request("/user/invite", "post", __privateMethod(this, _User_instances, baseUrlThunk_fn19).bind(this))(params, request);
2335
2335
  }
2336
2336
  /**
2337
- * DEPRECATED. Please use [v2/list](https://api-reference.oystehr.com/reference/get_user-v2-list) instead.
2337
+ * DEPRECATED. Please use [v2/list](https://api-reference.sijil.com/reference/get_user-v2-list) instead.
2338
2338
  *
2339
- * 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.
2339
+ * Get all Users in the Project. [Users](https://docs.sijil.com/sijil/services/app/users/) are the people who log into the [Applications](https://docs.sijil.com/sijil/services/app/applications/) you configure for securing the apps you build on top of Sijil.
2340
2340
  *
2341
2341
  * Access Policy Action: `App:ListAllUsers`
2342
2342
  * Access Policy Resource: `App:User`
@@ -2345,7 +2345,7 @@ var User = class extends SDKResource {
2345
2345
  return this.request("/user", "get", __privateMethod(this, _User_instances, baseUrlThunk_fn19).bind(this))(request);
2346
2346
  }
2347
2347
  /**
2348
- * 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.
2348
+ * Get Users in the Project with pagination, sort, sort order and filtering. [Users](https://docs.sijil.com/sijil/services/app/users/) are the people who log into the [Applications](https://docs.sijil.com/sijil/services/app/applications/) you configure for securing the apps you build on top of Sijil.
2349
2349
  *
2350
2350
  * Access Policy Action: `Project:ListAllUsers`
2351
2351
  * Access Policy Resource: `Project:Settings`
@@ -2435,7 +2435,7 @@ async function getPresignedUrlForZ3Url(params) {
2435
2435
  bucket = httpsPathParts[0];
2436
2436
  key = httpsPathParts.slice(1).join("/");
2437
2437
  } else {
2438
- throw new OystehrSdkError({ message: "Invalid Z3 URL", code: 400 });
2438
+ throw new SijilSdkError({ message: "Invalid Z3 URL", code: 400 });
2439
2439
  }
2440
2440
  const requestParams = {
2441
2441
  action: "upload",
@@ -2463,14 +2463,14 @@ var Z3 = class extends SDKResource {
2463
2463
  this.downloadFile = downloadFile;
2464
2464
  /**
2465
2465
  * This helper performs a `getPresignedUrl` request for Z3 URLs of the forms
2466
- * `https://projects-api.oystehr.com/v1/z3/<bucket>/<key>` or `z3://<bucket>/<key>`
2466
+ * `https://projects-api.sijil.com/v1/z3/<bucket>/<key>` or `z3://<bucket>/<key>`
2467
2467
  * instead of the standard SDK `Z3GetPresignedUrlParams`.
2468
2468
  * @param params url and action
2469
2469
  */
2470
2470
  this.getPresignedUrlForZ3Url = getPresignedUrlForZ3Url;
2471
2471
  }
2472
2472
  /**
2473
- * List all Z3 Buckets. [Z3](https://docs.oystehr.com/oystehr/services/z3/) is Oystehr's built-in and fully integrated solution for file storage.
2473
+ * List all Z3 Buckets. [Z3](https://docs.sijil.com/sijil/services/z3/) is Sijil's built-in and fully integrated solution for file storage.
2474
2474
  *
2475
2475
  * Access Policy Action: `Z3:ListBuckets`
2476
2476
  * Access Policy Resource: `Z3:BucketName`
@@ -2479,7 +2479,7 @@ var Z3 = class extends SDKResource {
2479
2479
  return this.request("/z3", "get", __privateMethod(this, _Z3_instances, baseUrlThunk_fn21).bind(this))(request);
2480
2480
  }
2481
2481
  /**
2482
- * Create a Z3 Bucket with the provided name. [Z3](https://docs.oystehr.com/oystehr/services/z3/) is Oystehr's built-in and fully integrated solution for file storage.
2482
+ * Create a Z3 Bucket with the provided name. [Z3](https://docs.sijil.com/sijil/services/z3/) is Sijil's built-in and fully integrated solution for file storage.
2483
2483
  *
2484
2484
  * Access Policy Action: `Z3:CreateBucket`
2485
2485
  * Access Policy Resource: `Z3:*`
@@ -2488,7 +2488,7 @@ var Z3 = class extends SDKResource {
2488
2488
  return this.request("/z3/{bucketName}", "put", __privateMethod(this, _Z3_instances, baseUrlThunk_fn21).bind(this))(params, request);
2489
2489
  }
2490
2490
  /**
2491
- * Delete the Z3 Bucket with the provided name. [Z3](https://docs.oystehr.com/oystehr/services/z3/) is Oystehr's built-in and fully integrated solution for file storage.
2491
+ * Delete the Z3 Bucket with the provided name. [Z3](https://docs.sijil.com/sijil/services/z3/) is Sijil's built-in and fully integrated solution for file storage.
2492
2492
  *
2493
2493
  * Access Policy Action: `Z3:DeleteBucket`
2494
2494
  * Access Policy Resource: `Z3:BucketName`
@@ -2497,7 +2497,7 @@ var Z3 = class extends SDKResource {
2497
2497
  return this.request("/z3/{bucketName}", "delete", __privateMethod(this, _Z3_instances, baseUrlThunk_fn21).bind(this))(params, request);
2498
2498
  }
2499
2499
  /**
2500
- * List all Z3 Objects at the provided path in the Bucket with the provided name [Z3](https://docs.oystehr.com/oystehr/services/z3/) is Oystehr's built-in and fully integrated solution for file storage.
2500
+ * List all Z3 Objects at the provided path in the Bucket with the provided name [Z3](https://docs.sijil.com/sijil/services/z3/) is Sijil's built-in and fully integrated solution for file storage.
2501
2501
  *
2502
2502
  * Access Policy Action: `Z3:ListObjects`
2503
2503
  * Access Policy Resource: `Z3:BucketName:ObjectPath`
@@ -2506,7 +2506,7 @@ var Z3 = class extends SDKResource {
2506
2506
  return this.request("/z3/{bucketName}/{objectPath+}", "get", __privateMethod(this, _Z3_instances, baseUrlThunk_fn21).bind(this))(params, request);
2507
2507
  }
2508
2508
  /**
2509
- * Get a link for downloading or uploading a Z3 Object to the provided path in the Bucket with the provided name. [Z3](https://docs.oystehr.com/oystehr/services/z3/) is Oystehr's built-in and fully integrated solution for file storage.
2509
+ * Get a link for downloading or uploading a Z3 Object to the provided path in the Bucket with the provided name. [Z3](https://docs.sijil.com/sijil/services/z3/) is Sijil's built-in and fully integrated solution for file storage.
2510
2510
  *
2511
2511
  * Access Policy Action: `Z3:PutObject` or `Z3:GetObject`
2512
2512
  * Access Policy Resource: `Z3:BucketName:ObjectPath`
@@ -2515,7 +2515,7 @@ var Z3 = class extends SDKResource {
2515
2515
  return this.request("/z3/{bucketName}/{objectPath+}", "post", __privateMethod(this, _Z3_instances, baseUrlThunk_fn21).bind(this))(params, request);
2516
2516
  }
2517
2517
  /**
2518
- * Delete the Z3 Object at the provided path in the Bucket with the provided name. [Z3](https://docs.oystehr.com/oystehr/services/z3/) is Oystehr's built-in and fully integrated solution for file storage.
2518
+ * Delete the Z3 Object at the provided path in the Bucket with the provided name. [Z3](https://docs.sijil.com/sijil/services/z3/) is Sijil's built-in and fully integrated solution for file storage.
2519
2519
  *
2520
2520
  * Access Policy Action: `Z3:DeleteObject`
2521
2521
  * Access Policy Resource: `Z3:BucketName:ObjectPath`
@@ -2548,7 +2548,7 @@ async function uploadFile2({
2548
2548
  body: file
2549
2549
  });
2550
2550
  if (!response.ok) {
2551
- throw new OystehrSdkError({ message: "Failed to upload file", code: response.status, cause: response.statusText });
2551
+ throw new SijilSdkError({ message: "Failed to upload file", code: response.status, cause: response.statusText });
2552
2552
  }
2553
2553
  }
2554
2554
  async function downloadFile2({ id }) {
@@ -2561,7 +2561,7 @@ async function downloadFile2({ id }) {
2561
2561
  method: "GET"
2562
2562
  });
2563
2563
  if (!response.ok) {
2564
- throw new OystehrSdkError({
2564
+ throw new SijilSdkError({
2565
2565
  message: "Failed to download file",
2566
2566
  code: response.status,
2567
2567
  cause: response.statusText
@@ -2580,7 +2580,7 @@ var Zambda = class extends SDKResource {
2580
2580
  this.downloadFile = downloadFile2;
2581
2581
  }
2582
2582
  /**
2583
- * Get a list of all Zambda Functions in the Project. [Zambdas](https://docs.oystehr.com/oystehr/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
2583
+ * Get a list of all Zambda Functions in the Project. [Zambdas](https://docs.sijil.com/sijil/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Sijil's APIs or to perform operations on third-party services.
2584
2584
  *
2585
2585
  * Access Policy Action: `Zambda:ListAllFunctions`
2586
2586
  * Access Policy Resource: `Zambda:Function`
@@ -2589,7 +2589,7 @@ var Zambda = class extends SDKResource {
2589
2589
  return this.request("/zambda", "get", __privateMethod(this, _Zambda_instances, baseUrlThunk_fn22).bind(this))(request);
2590
2590
  }
2591
2591
  /**
2592
- * Create a new Zambda Function. [Zambdas](https://docs.oystehr.com/oystehr/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
2592
+ * Create a new Zambda Function. [Zambdas](https://docs.sijil.com/sijil/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Sijil's APIs or to perform operations on third-party services.
2593
2593
  *
2594
2594
  * Access Policy Action: `Zambda:CreateFunction`
2595
2595
  * Access Policy Resource: `Zambda:Function`
@@ -2598,7 +2598,7 @@ var Zambda = class extends SDKResource {
2598
2598
  return this.request("/zambda", "post", __privateMethod(this, _Zambda_instances, baseUrlThunk_fn22).bind(this))(params, request);
2599
2599
  }
2600
2600
  /**
2601
- * Get the Zambda Function with the provided ID or name. [Zambdas](https://docs.oystehr.com/oystehr/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
2601
+ * Get the Zambda Function with the provided ID or name. [Zambdas](https://docs.sijil.com/sijil/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Sijil's APIs or to perform operations on third-party services.
2602
2602
  *
2603
2603
  * Access Policy Action: `Zambda:GetFunction`
2604
2604
  * Access Policy Resource: `Zambda:Function`
@@ -2607,7 +2607,7 @@ var Zambda = class extends SDKResource {
2607
2607
  return this.request("/zambda/{id}", "get", __privateMethod(this, _Zambda_instances, baseUrlThunk_fn22).bind(this))(params, request);
2608
2608
  }
2609
2609
  /**
2610
- * Update the Zambda Function with the provided ID or name. [Zambdas](https://docs.oystehr.com/oystehr/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
2610
+ * Update the Zambda Function with the provided ID or name. [Zambdas](https://docs.sijil.com/sijil/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Sijil's APIs or to perform operations on third-party services.
2611
2611
  *
2612
2612
  * Access Policy Action: `Zambda:UpdateFunction`
2613
2613
  * Access Policy Resource: `Zambda:Function`
@@ -2616,7 +2616,7 @@ var Zambda = class extends SDKResource {
2616
2616
  return this.request("/zambda/{id}", "patch", __privateMethod(this, _Zambda_instances, baseUrlThunk_fn22).bind(this))(params, request);
2617
2617
  }
2618
2618
  /**
2619
- * Delete the Zambda Function with the provided ID or name. [Zambdas](https://docs.oystehr.com/oystehr/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
2619
+ * Delete the Zambda Function with the provided ID or name. [Zambdas](https://docs.sijil.com/sijil/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Sijil's APIs or to perform operations on third-party services.
2620
2620
  *
2621
2621
  * Access Policy Action: `Zambda:DeleteFunction`
2622
2622
  * Access Policy Resource: `Zambda:Function`
@@ -2625,7 +2625,7 @@ var Zambda = class extends SDKResource {
2625
2625
  return this.request("/zambda/{id}", "delete", __privateMethod(this, _Zambda_instances, baseUrlThunk_fn22).bind(this))(params, request);
2626
2626
  }
2627
2627
  /**
2628
- * Execute the [Authenticated Zambda Function](https://docs.oystehr.com/oystehr/services/zambda/types/authenticated/) with the provided ID. [Zambdas](https://docs.oystehr.com/oystehr/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
2628
+ * Execute the [Authenticated Zambda Function](https://docs.sijil.com/sijil/services/zambda/types/authenticated/) with the provided ID. [Zambdas](https://docs.sijil.com/sijil/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Sijil's APIs or to perform operations on third-party services.
2629
2629
  *
2630
2630
  * Access Policy Action: `Zambda:InvokeFunction`
2631
2631
  * Access Policy Resource: `Zambda:Function`
@@ -2634,7 +2634,7 @@ var Zambda = class extends SDKResource {
2634
2634
  return this.request("/zambda/{id}/execute", "post", __privateMethod(this, _Zambda_instances, baseUrlThunk_fn22).bind(this))(params, request);
2635
2635
  }
2636
2636
  /**
2637
- * Execute the [Public Zambda Function](https://docs.oystehr.com/oystehr/services/zambda/types/public/) with the provided ID. [Zambdas](https://docs.oystehr.com/oystehr/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
2637
+ * Execute the [Public Zambda Function](https://docs.sijil.com/sijil/services/zambda/types/public/) with the provided ID. [Zambdas](https://docs.sijil.com/sijil/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Sijil's APIs or to perform operations on third-party services.
2638
2638
  *
2639
2639
  * Execute a zambda that has method http_open. This endpoint is public so there are no access policy requirements.
2640
2640
  */
@@ -2644,7 +2644,7 @@ var Zambda = class extends SDKResource {
2644
2644
  /**
2645
2645
  * **Deprecated.** Use `POST /zambda/{id}/presigned-url` with `action: "upload"` instead. This endpoint will be removed in future releases.
2646
2646
  *
2647
- * Returns a URL that is used to deploy code to the Zambda Function with the provided ID. [Zambdas](https://docs.oystehr.com/oystehr/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
2647
+ * Returns a URL that is used to deploy code to the Zambda Function with the provided ID. [Zambdas](https://docs.sijil.com/sijil/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Sijil's APIs or to perform operations on third-party services.
2648
2648
  *
2649
2649
  * Access Policy Action: `Zambda:UpdateFunction`
2650
2650
  * Access Policy Resource: `Zambda:Function`
@@ -2653,7 +2653,7 @@ var Zambda = class extends SDKResource {
2653
2653
  return this.request("/zambda/{id}/s3-upload", "post", __privateMethod(this, _Zambda_instances, baseUrlThunk_fn22).bind(this))(params, request);
2654
2654
  }
2655
2655
  /**
2656
- * Returns a presigned URL to upload or download code for the Zambda Function with the provided ID. Pass `action: "upload"` to get a URL for deploying a new code zip, or `action: "download"` to get a URL for retrieving the currently deployed zip. [Zambdas](https://docs.oystehr.com/oystehr/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
2656
+ * Returns a presigned URL to upload or download code for the Zambda Function with the provided ID. Pass `action: "upload"` to get a URL for deploying a new code zip, or `action: "download"` to get a URL for retrieving the currently deployed zip. [Zambdas](https://docs.sijil.com/sijil/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Sijil's APIs or to perform operations on third-party services.
2657
2657
  *
2658
2658
  * Upload: Access Policy Action: `Zambda:UpdateFunction`
2659
2659
  * Download: Access Policy Action: `Zambda:GetFunctionSource`
@@ -2676,7 +2676,7 @@ var ZambdaLogStream = class extends SDKResource {
2676
2676
  __privateAdd(this, _ZambdaLogStream_instances);
2677
2677
  }
2678
2678
  /**
2679
- * Get the log streams for the Zambda Function with the provided ID. [Zambdas](https://docs.oystehr.com/oystehr/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
2679
+ * Get the log streams for the Zambda Function with the provided ID. [Zambdas](https://docs.sijil.com/sijil/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Sijil's APIs or to perform operations on third-party services.
2680
2680
  *
2681
2681
  * Access Policy Action: `Zambda:ReadLogs`
2682
2682
  * Access Policy Resource: `Zambda:Function`
@@ -2685,7 +2685,7 @@ var ZambdaLogStream = class extends SDKResource {
2685
2685
  return this.request("/zambda/{id}/logStream", "post", __privateMethod(this, _ZambdaLogStream_instances, baseUrlThunk_fn23).bind(this))(params, request);
2686
2686
  }
2687
2687
  /**
2688
- * Get all logs for the Zambda Function with the provided ID, filtered by any of: text in messages, minimum start date, and/or maximum end date. [Zambdas](https://docs.oystehr.com/oystehr/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
2688
+ * Get all logs for the Zambda Function with the provided ID, filtered by any of: text in messages, minimum start date, and/or maximum end date. [Zambdas](https://docs.sijil.com/sijil/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Sijil's APIs or to perform operations on third-party services.
2689
2689
  *
2690
2690
  * Access Policy Action: `Zambda:ReadLogs`
2691
2691
  * Access Policy Resource: `Zambda:Function`
@@ -2694,7 +2694,7 @@ var ZambdaLogStream = class extends SDKResource {
2694
2694
  return this.request("/zambda/{id}/logStream/search", "post", __privateMethod(this, _ZambdaLogStream_instances, baseUrlThunk_fn23).bind(this))(params, request);
2695
2695
  }
2696
2696
  /**
2697
- * Get the logs from the specified log stream for the Zambda Function with the provided ID. [Zambdas](https://docs.oystehr.com/oystehr/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Oystehr's APIs or to perform operations on third-party services.
2697
+ * Get the logs from the specified log stream for the Zambda Function with the provided ID. [Zambdas](https://docs.sijil.com/sijil/services/zambda/) are functions that can be used to execute your code. They can be used to process data received from Sijil's APIs or to perform operations on third-party services.
2698
2698
  *
2699
2699
  * Access Policy Action: `Zambda:ReadLogs`
2700
2700
  * Access Policy Resource: `Zambda:Function`
@@ -2713,11 +2713,11 @@ baseUrlThunk_fn23 = function() {
2713
2713
  };
2714
2714
 
2715
2715
  // src/resources/classes/index.ts
2716
- var Oystehr = class {
2716
+ var Sijil = class {
2717
2717
  constructor(config) {
2718
2718
  var _a, _b, _c;
2719
2719
  if (config.workspaceTag && config.ignoreTags) {
2720
- throw new OystehrSdkError({
2720
+ throw new SijilSdkError({
2721
2721
  message: "workspaceTag and ignoreTags are mutually exclusive and cannot both be set in config",
2722
2722
  code: 400
2723
2723
  });
@@ -2764,7 +2764,7 @@ function sijilServiceUrls(apiBaseUrl, fhirPath = "/fhir/r4") {
2764
2764
  }
2765
2765
  function createSijilClient(config) {
2766
2766
  const services = sijilServiceUrls(config.apiBaseUrl, config.fhirPath);
2767
- return new Oystehr({
2767
+ return new Sijil({
2768
2768
  accessToken: config.accessToken,
2769
2769
  projectId: config.projectId,
2770
2770
  logLevel: config.logLevel,
@@ -2787,11 +2787,11 @@ function apiBaseFromViteEnv(fallback = "http://localhost:8080") {
2787
2787
  }
2788
2788
 
2789
2789
  // src/index.ts
2790
- var Oystehr2 = class extends Oystehr {
2790
+ var Sijil2 = class extends Sijil {
2791
2791
  };
2792
- Oystehr2.OystehrFHIRError = OystehrFHIRError;
2793
- Oystehr2.OystehrSdkError = OystehrSdkError;
2794
- var index_default = Oystehr2;
2792
+ Sijil2.SijilFHIRError = SijilFHIRError;
2793
+ Sijil2.SijilSdkError = SijilSdkError;
2794
+ var index_default = Sijil2;
2795
2795
  export {
2796
2796
  apiBaseFromViteEnv,
2797
2797
  createSijilClient,