@gemina/sdk 0.5.3 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -3679,6 +3679,9 @@ var DocumentApi = class extends BaseAPI {
3679
3679
  if (this.configuration && this.configuration.apiKey) {
3680
3680
  headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
3681
3681
  }
3682
+ if (this.configuration && this.configuration.accessToken) {
3683
+ headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2PasswordBearer", []);
3684
+ }
3682
3685
  let urlPath = `/api/v1/documents/extractions/{document_extraction_id}`;
3683
3686
  urlPath = urlPath.replace("{document_extraction_id}", encodeURIComponent(String(requestParameters["documentExtractionId"])));
3684
3687
  return {
@@ -3689,6 +3692,7 @@ var DocumentApi = class extends BaseAPI {
3689
3692
  };
3690
3693
  }
3691
3694
  /**
3695
+ * One extraction, dual-auth: X-API-Key (key-scoped, unchanged) or a Bearer session token (tenant-scoped, gated by the signed xids/euid claims). List/search extraction routes stay key/JWT-only by design.
3692
3696
  * Get Document Extraction
3693
3697
  */
3694
3698
  async getDocumentExtractionRaw(requestParameters, initOverrides) {
@@ -3697,6 +3701,7 @@ var DocumentApi = class extends BaseAPI {
3697
3701
  return new JSONApiResponse(response, (jsonValue) => ExtractionPrimaryViewOutDTOFromJSON(jsonValue));
3698
3702
  }
3699
3703
  /**
3704
+ * One extraction, dual-auth: X-API-Key (key-scoped, unchanged) or a Bearer session token (tenant-scoped, gated by the signed xids/euid claims). List/search extraction routes stay key/JWT-only by design.
3700
3705
  * Get Document Extraction
3701
3706
  */
3702
3707
  async getDocumentExtraction(requestParameters, initOverrides) {
@@ -4512,6 +4517,9 @@ var DocumentApi = class extends BaseAPI {
4512
4517
  if (this.configuration && this.configuration.apiKey) {
4513
4518
  headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
4514
4519
  }
4520
+ if (this.configuration && this.configuration.accessToken) {
4521
+ headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2PasswordBearer", []);
4522
+ }
4515
4523
  let urlPath = `/api/v1/documents/extractions/{target_document_extraction_id}/feedback`;
4516
4524
  urlPath = urlPath.replace("{target_document_extraction_id}", encodeURIComponent(String(requestParameters["targetDocumentExtractionId"])));
4517
4525
  return {
@@ -4523,6 +4531,7 @@ var DocumentApi = class extends BaseAPI {
4523
4531
  };
4524
4532
  }
4525
4533
  /**
4534
+ * One-shot validation feedback, dual-auth: X-API-Key (key-scoped, unchanged) or a Bearer session token (tenant-scoped, gated by the signed xids/euid claims). Semantics untouched: whole-payload, 409 on resubmission, scored server-side by the processor\'s DataValidator.
4526
4535
  * Validate Document Extraction
4527
4536
  */
4528
4537
  async validateDocumentExtractionRaw(requestParameters, initOverrides) {
@@ -4531,6 +4540,7 @@ var DocumentApi = class extends BaseAPI {
4531
4540
  return new JSONApiResponse(response, (jsonValue) => ExtractionValidationResultOutDTOFromJSON(jsonValue));
4532
4541
  }
4533
4542
  /**
4543
+ * One-shot validation feedback, dual-auth: X-API-Key (key-scoped, unchanged) or a Bearer session token (tenant-scoped, gated by the signed xids/euid claims). Semantics untouched: whole-payload, 409 on resubmission, scored server-side by the processor\'s DataValidator.
4534
4544
  * Validate Document Extraction
4535
4545
  */
4536
4546
  async validateDocumentExtraction(requestParameters, initOverrides) {
@@ -7150,6 +7160,7 @@ function SessionTokenInDTOFromJSONTyped(json, ignoreDiscriminator) {
7150
7160
  }
7151
7161
  return {
7152
7162
  "endUserId": json["endUserId"] == null ? void 0 : json["endUserId"],
7163
+ "extractionIds": json["extractionIds"] == null ? void 0 : json["extractionIds"],
7153
7164
  "ttlSeconds": json["ttlSeconds"] == null ? void 0 : json["ttlSeconds"]
7154
7165
  };
7155
7166
  }
@@ -7162,6 +7173,7 @@ function SessionTokenInDTOToJSONTyped(value, ignoreDiscriminator = false) {
7162
7173
  }
7163
7174
  return {
7164
7175
  "endUserId": value["endUserId"],
7176
+ "extractionIds": value["extractionIds"],
7165
7177
  "ttlSeconds": value["ttlSeconds"]
7166
7178
  };
7167
7179
  }
@@ -7302,8 +7314,11 @@ var SessionsApi = class extends BaseAPI {
7302
7314
  };
7303
7315
 
7304
7316
  // src/generated/models/CheckoutOutDTO.ts
7317
+ var CheckoutOutDTOStatusEnum = {
7318
+ CheckoutReady: "checkout_ready",
7319
+ PaymentProcessing: "payment_processing"
7320
+ };
7305
7321
  function instanceOfCheckoutOutDTO(value) {
7306
- if (!("subscriptionId" in value) || value["subscriptionId"] === void 0) return false;
7307
7322
  return true;
7308
7323
  }
7309
7324
  function CheckoutOutDTOFromJSON(json) {
@@ -7318,7 +7333,8 @@ function CheckoutOutDTOFromJSONTyped(json, ignoreDiscriminator) {
7318
7333
  "createdAt": json["createdAt"] == null ? void 0 : new Date(json["createdAt"]),
7319
7334
  "createdAtTimestamp": json["createdAtTimestamp"] == null ? void 0 : json["createdAtTimestamp"],
7320
7335
  "paddleTransactionId": json["paddleTransactionId"] == null ? void 0 : json["paddleTransactionId"],
7321
- "subscriptionId": json["subscriptionId"]
7336
+ "status": json["status"] == null ? void 0 : json["status"],
7337
+ "subscriptionId": json["subscriptionId"] == null ? void 0 : json["subscriptionId"]
7322
7338
  };
7323
7339
  }
7324
7340
  function CheckoutOutDTOToJSON(json) {
@@ -7333,6 +7349,7 @@ function CheckoutOutDTOToJSONTyped(value, ignoreDiscriminator = false) {
7333
7349
  "createdAt": value["createdAt"] == null ? value["createdAt"] : value["createdAt"].toISOString(),
7334
7350
  "createdAtTimestamp": value["createdAtTimestamp"],
7335
7351
  "paddleTransactionId": value["paddleTransactionId"],
7352
+ "status": value["status"],
7336
7353
  "subscriptionId": value["subscriptionId"]
7337
7354
  };
7338
7355
  }
@@ -7679,6 +7696,7 @@ function PlanListOutDTOToJSONTyped(value, ignoreDiscriminator = false) {
7679
7696
 
7680
7697
  // src/generated/models/SubscriptionStatus.ts
7681
7698
  var SubscriptionStatus = {
7699
+ Initializing: "initializing",
7682
7700
  Pending: "pending",
7683
7701
  Active: "active",
7684
7702
  Paused: "paused",
@@ -7710,7 +7728,7 @@ function SubscriptionStatusToJSONTyped(value, ignoreDiscriminator) {
7710
7728
 
7711
7729
  // src/generated/models/ResponseChangePlan.ts
7712
7730
  function instanceOfResponseChangePlan(value) {
7713
- if (!("subscriptionId" in value) || value["subscriptionId"] === void 0) return false;
7731
+ if (!("status" in value) || value["status"] === void 0) return false;
7714
7732
  if (!("creditsRemaining" in value) || value["creditsRemaining"] === void 0) return false;
7715
7733
  if (!("creditsSnapshot" in value) || value["creditsSnapshot"] === void 0) return false;
7716
7734
  if (!("dataResidencyEnabled" in value) || value["dataResidencyEnabled"] === void 0) return false;
@@ -7722,7 +7740,6 @@ function instanceOfResponseChangePlan(value) {
7722
7740
  if (!("monthlyFiletagCredits" in value) || value["monthlyFiletagCredits"] === void 0) return false;
7723
7741
  if (!("planId" in value) || value["planId"] === void 0) return false;
7724
7742
  if (!("priceSnapshotCents" in value) || value["priceSnapshotCents"] === void 0) return false;
7725
- if (!("status" in value) || value["status"] === void 0) return false;
7726
7743
  if (!("supportLevel" in value) || value["supportLevel"] === void 0) return false;
7727
7744
  if (!("userId" in value) || value["userId"] === void 0) return false;
7728
7745
  if (!("webhooksEnabled" in value) || value["webhooksEnabled"] === void 0) return false;
@@ -7740,7 +7757,8 @@ function ResponseChangePlanFromJSONTyped(json, ignoreDiscriminator) {
7740
7757
  "createdAt": json["createdAt"] == null ? void 0 : new Date(json["createdAt"]),
7741
7758
  "createdAtTimestamp": json["createdAtTimestamp"] == null ? void 0 : json["createdAtTimestamp"],
7742
7759
  "paddleTransactionId": json["paddleTransactionId"] == null ? void 0 : json["paddleTransactionId"],
7743
- "subscriptionId": json["subscriptionId"],
7760
+ "status": SubscriptionStatusFromJSON(json["status"]),
7761
+ "subscriptionId": json["subscriptionId"] == null ? void 0 : json["subscriptionId"],
7744
7762
  "cancelScheduledAt": json["cancelScheduledAt"] == null ? void 0 : new Date(json["cancelScheduledAt"]),
7745
7763
  "chatCreditCost": json["chatCreditCost"] == null ? void 0 : json["chatCreditCost"],
7746
7764
  "chatIncludedPerCycle": json["chatIncludedPerCycle"] == null ? void 0 : json["chatIncludedPerCycle"],
@@ -7762,7 +7780,6 @@ function ResponseChangePlanFromJSONTyped(json, ignoreDiscriminator) {
7762
7780
  "planName": json["planName"] == null ? void 0 : json["planName"],
7763
7781
  "priceSnapshotCents": json["priceSnapshotCents"],
7764
7782
  "retrievalRateLimitPerSecond": json["retrievalRateLimitPerSecond"] == null ? void 0 : json["retrievalRateLimitPerSecond"],
7765
- "status": SubscriptionStatusFromJSON(json["status"]),
7766
7783
  "storageCreditCostPerGbMonth": json["storageCreditCostPerGbMonth"] == null ? void 0 : json["storageCreditCostPerGbMonth"],
7767
7784
  "storageIncludedGb": json["storageIncludedGb"] == null ? void 0 : json["storageIncludedGb"],
7768
7785
  "supportLevel": SupportLevelFromJSON(json["supportLevel"]),
@@ -7783,6 +7800,7 @@ function ResponseChangePlanToJSONTyped(value, ignoreDiscriminator = false) {
7783
7800
  "createdAt": value["createdAt"] == null ? value["createdAt"] : value["createdAt"].toISOString(),
7784
7801
  "createdAtTimestamp": value["createdAtTimestamp"],
7785
7802
  "paddleTransactionId": value["paddleTransactionId"],
7803
+ "status": SubscriptionStatusToJSON(value["status"]),
7786
7804
  "subscriptionId": value["subscriptionId"],
7787
7805
  "cancelScheduledAt": value["cancelScheduledAt"] == null ? value["cancelScheduledAt"] : value["cancelScheduledAt"].toISOString(),
7788
7806
  "chatCreditCost": value["chatCreditCost"],
@@ -7805,7 +7823,6 @@ function ResponseChangePlanToJSONTyped(value, ignoreDiscriminator = false) {
7805
7823
  "planName": value["planName"],
7806
7824
  "priceSnapshotCents": value["priceSnapshotCents"],
7807
7825
  "retrievalRateLimitPerSecond": value["retrievalRateLimitPerSecond"],
7808
- "status": SubscriptionStatusToJSON(value["status"]),
7809
7826
  "storageCreditCostPerGbMonth": value["storageCreditCostPerGbMonth"],
7810
7827
  "storageIncludedGb": value["storageIncludedGb"],
7811
7828
  "supportLevel": SupportLevelToJSON(value["supportLevel"]),
@@ -10165,7 +10182,7 @@ async function asProcessingErrorIfFailedResult(error) {
10165
10182
  }
10166
10183
 
10167
10184
  // src/version.ts
10168
- var VERSION = "0.5.3";
10185
+ var VERSION = "0.6.0";
10169
10186
  export {
10170
10187
  AggregateMetaDTOFromJSON,
10171
10188
  AggregateMetaDTOFromJSONTyped,
@@ -10213,6 +10230,7 @@ export {
10213
10230
  ChatTranscriptOutDTOToJSONTyped,
10214
10231
  CheckoutOutDTOFromJSON,
10215
10232
  CheckoutOutDTOFromJSONTyped,
10233
+ CheckoutOutDTOStatusEnum,
10216
10234
  CheckoutOutDTOToJSON,
10217
10235
  CheckoutOutDTOToJSONTyped,
10218
10236
  ColumnDefinitionDTOFromJSON,