@gemina/sdk 0.5.4 → 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.cjs CHANGED
@@ -66,6 +66,7 @@ __export(index_exports, {
66
66
  ChatTranscriptOutDTOToJSONTyped: () => ChatTranscriptOutDTOToJSONTyped,
67
67
  CheckoutOutDTOFromJSON: () => CheckoutOutDTOFromJSON,
68
68
  CheckoutOutDTOFromJSONTyped: () => CheckoutOutDTOFromJSONTyped,
69
+ CheckoutOutDTOStatusEnum: () => CheckoutOutDTOStatusEnum,
69
70
  CheckoutOutDTOToJSON: () => CheckoutOutDTOToJSON,
70
71
  CheckoutOutDTOToJSONTyped: () => CheckoutOutDTOToJSONTyped,
71
72
  ColumnDefinitionDTOFromJSON: () => ColumnDefinitionDTOFromJSON,
@@ -4483,6 +4484,9 @@ var DocumentApi = class extends BaseAPI {
4483
4484
  if (this.configuration && this.configuration.apiKey) {
4484
4485
  headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
4485
4486
  }
4487
+ if (this.configuration && this.configuration.accessToken) {
4488
+ headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2PasswordBearer", []);
4489
+ }
4486
4490
  let urlPath = `/api/v1/documents/extractions/{document_extraction_id}`;
4487
4491
  urlPath = urlPath.replace("{document_extraction_id}", encodeURIComponent(String(requestParameters["documentExtractionId"])));
4488
4492
  return {
@@ -4493,6 +4497,7 @@ var DocumentApi = class extends BaseAPI {
4493
4497
  };
4494
4498
  }
4495
4499
  /**
4500
+ * 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.
4496
4501
  * Get Document Extraction
4497
4502
  */
4498
4503
  async getDocumentExtractionRaw(requestParameters, initOverrides) {
@@ -4501,6 +4506,7 @@ var DocumentApi = class extends BaseAPI {
4501
4506
  return new JSONApiResponse(response, (jsonValue) => ExtractionPrimaryViewOutDTOFromJSON(jsonValue));
4502
4507
  }
4503
4508
  /**
4509
+ * 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.
4504
4510
  * Get Document Extraction
4505
4511
  */
4506
4512
  async getDocumentExtraction(requestParameters, initOverrides) {
@@ -5316,6 +5322,9 @@ var DocumentApi = class extends BaseAPI {
5316
5322
  if (this.configuration && this.configuration.apiKey) {
5317
5323
  headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
5318
5324
  }
5325
+ if (this.configuration && this.configuration.accessToken) {
5326
+ headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2PasswordBearer", []);
5327
+ }
5319
5328
  let urlPath = `/api/v1/documents/extractions/{target_document_extraction_id}/feedback`;
5320
5329
  urlPath = urlPath.replace("{target_document_extraction_id}", encodeURIComponent(String(requestParameters["targetDocumentExtractionId"])));
5321
5330
  return {
@@ -5327,6 +5336,7 @@ var DocumentApi = class extends BaseAPI {
5327
5336
  };
5328
5337
  }
5329
5338
  /**
5339
+ * 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.
5330
5340
  * Validate Document Extraction
5331
5341
  */
5332
5342
  async validateDocumentExtractionRaw(requestParameters, initOverrides) {
@@ -5335,6 +5345,7 @@ var DocumentApi = class extends BaseAPI {
5335
5345
  return new JSONApiResponse(response, (jsonValue) => ExtractionValidationResultOutDTOFromJSON(jsonValue));
5336
5346
  }
5337
5347
  /**
5348
+ * 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.
5338
5349
  * Validate Document Extraction
5339
5350
  */
5340
5351
  async validateDocumentExtraction(requestParameters, initOverrides) {
@@ -7954,6 +7965,7 @@ function SessionTokenInDTOFromJSONTyped(json, ignoreDiscriminator) {
7954
7965
  }
7955
7966
  return {
7956
7967
  "endUserId": json["endUserId"] == null ? void 0 : json["endUserId"],
7968
+ "extractionIds": json["extractionIds"] == null ? void 0 : json["extractionIds"],
7957
7969
  "ttlSeconds": json["ttlSeconds"] == null ? void 0 : json["ttlSeconds"]
7958
7970
  };
7959
7971
  }
@@ -7966,6 +7978,7 @@ function SessionTokenInDTOToJSONTyped(value, ignoreDiscriminator = false) {
7966
7978
  }
7967
7979
  return {
7968
7980
  "endUserId": value["endUserId"],
7981
+ "extractionIds": value["extractionIds"],
7969
7982
  "ttlSeconds": value["ttlSeconds"]
7970
7983
  };
7971
7984
  }
@@ -8106,8 +8119,11 @@ var SessionsApi = class extends BaseAPI {
8106
8119
  };
8107
8120
 
8108
8121
  // src/generated/models/CheckoutOutDTO.ts
8122
+ var CheckoutOutDTOStatusEnum = {
8123
+ CheckoutReady: "checkout_ready",
8124
+ PaymentProcessing: "payment_processing"
8125
+ };
8109
8126
  function instanceOfCheckoutOutDTO(value) {
8110
- if (!("subscriptionId" in value) || value["subscriptionId"] === void 0) return false;
8111
8127
  return true;
8112
8128
  }
8113
8129
  function CheckoutOutDTOFromJSON(json) {
@@ -8122,7 +8138,8 @@ function CheckoutOutDTOFromJSONTyped(json, ignoreDiscriminator) {
8122
8138
  "createdAt": json["createdAt"] == null ? void 0 : new Date(json["createdAt"]),
8123
8139
  "createdAtTimestamp": json["createdAtTimestamp"] == null ? void 0 : json["createdAtTimestamp"],
8124
8140
  "paddleTransactionId": json["paddleTransactionId"] == null ? void 0 : json["paddleTransactionId"],
8125
- "subscriptionId": json["subscriptionId"]
8141
+ "status": json["status"] == null ? void 0 : json["status"],
8142
+ "subscriptionId": json["subscriptionId"] == null ? void 0 : json["subscriptionId"]
8126
8143
  };
8127
8144
  }
8128
8145
  function CheckoutOutDTOToJSON(json) {
@@ -8137,6 +8154,7 @@ function CheckoutOutDTOToJSONTyped(value, ignoreDiscriminator = false) {
8137
8154
  "createdAt": value["createdAt"] == null ? value["createdAt"] : value["createdAt"].toISOString(),
8138
8155
  "createdAtTimestamp": value["createdAtTimestamp"],
8139
8156
  "paddleTransactionId": value["paddleTransactionId"],
8157
+ "status": value["status"],
8140
8158
  "subscriptionId": value["subscriptionId"]
8141
8159
  };
8142
8160
  }
@@ -8483,6 +8501,7 @@ function PlanListOutDTOToJSONTyped(value, ignoreDiscriminator = false) {
8483
8501
 
8484
8502
  // src/generated/models/SubscriptionStatus.ts
8485
8503
  var SubscriptionStatus = {
8504
+ Initializing: "initializing",
8486
8505
  Pending: "pending",
8487
8506
  Active: "active",
8488
8507
  Paused: "paused",
@@ -8514,7 +8533,7 @@ function SubscriptionStatusToJSONTyped(value, ignoreDiscriminator) {
8514
8533
 
8515
8534
  // src/generated/models/ResponseChangePlan.ts
8516
8535
  function instanceOfResponseChangePlan(value) {
8517
- if (!("subscriptionId" in value) || value["subscriptionId"] === void 0) return false;
8536
+ if (!("status" in value) || value["status"] === void 0) return false;
8518
8537
  if (!("creditsRemaining" in value) || value["creditsRemaining"] === void 0) return false;
8519
8538
  if (!("creditsSnapshot" in value) || value["creditsSnapshot"] === void 0) return false;
8520
8539
  if (!("dataResidencyEnabled" in value) || value["dataResidencyEnabled"] === void 0) return false;
@@ -8526,7 +8545,6 @@ function instanceOfResponseChangePlan(value) {
8526
8545
  if (!("monthlyFiletagCredits" in value) || value["monthlyFiletagCredits"] === void 0) return false;
8527
8546
  if (!("planId" in value) || value["planId"] === void 0) return false;
8528
8547
  if (!("priceSnapshotCents" in value) || value["priceSnapshotCents"] === void 0) return false;
8529
- if (!("status" in value) || value["status"] === void 0) return false;
8530
8548
  if (!("supportLevel" in value) || value["supportLevel"] === void 0) return false;
8531
8549
  if (!("userId" in value) || value["userId"] === void 0) return false;
8532
8550
  if (!("webhooksEnabled" in value) || value["webhooksEnabled"] === void 0) return false;
@@ -8544,7 +8562,8 @@ function ResponseChangePlanFromJSONTyped(json, ignoreDiscriminator) {
8544
8562
  "createdAt": json["createdAt"] == null ? void 0 : new Date(json["createdAt"]),
8545
8563
  "createdAtTimestamp": json["createdAtTimestamp"] == null ? void 0 : json["createdAtTimestamp"],
8546
8564
  "paddleTransactionId": json["paddleTransactionId"] == null ? void 0 : json["paddleTransactionId"],
8547
- "subscriptionId": json["subscriptionId"],
8565
+ "status": SubscriptionStatusFromJSON(json["status"]),
8566
+ "subscriptionId": json["subscriptionId"] == null ? void 0 : json["subscriptionId"],
8548
8567
  "cancelScheduledAt": json["cancelScheduledAt"] == null ? void 0 : new Date(json["cancelScheduledAt"]),
8549
8568
  "chatCreditCost": json["chatCreditCost"] == null ? void 0 : json["chatCreditCost"],
8550
8569
  "chatIncludedPerCycle": json["chatIncludedPerCycle"] == null ? void 0 : json["chatIncludedPerCycle"],
@@ -8566,7 +8585,6 @@ function ResponseChangePlanFromJSONTyped(json, ignoreDiscriminator) {
8566
8585
  "planName": json["planName"] == null ? void 0 : json["planName"],
8567
8586
  "priceSnapshotCents": json["priceSnapshotCents"],
8568
8587
  "retrievalRateLimitPerSecond": json["retrievalRateLimitPerSecond"] == null ? void 0 : json["retrievalRateLimitPerSecond"],
8569
- "status": SubscriptionStatusFromJSON(json["status"]),
8570
8588
  "storageCreditCostPerGbMonth": json["storageCreditCostPerGbMonth"] == null ? void 0 : json["storageCreditCostPerGbMonth"],
8571
8589
  "storageIncludedGb": json["storageIncludedGb"] == null ? void 0 : json["storageIncludedGb"],
8572
8590
  "supportLevel": SupportLevelFromJSON(json["supportLevel"]),
@@ -8587,6 +8605,7 @@ function ResponseChangePlanToJSONTyped(value, ignoreDiscriminator = false) {
8587
8605
  "createdAt": value["createdAt"] == null ? value["createdAt"] : value["createdAt"].toISOString(),
8588
8606
  "createdAtTimestamp": value["createdAtTimestamp"],
8589
8607
  "paddleTransactionId": value["paddleTransactionId"],
8608
+ "status": SubscriptionStatusToJSON(value["status"]),
8590
8609
  "subscriptionId": value["subscriptionId"],
8591
8610
  "cancelScheduledAt": value["cancelScheduledAt"] == null ? value["cancelScheduledAt"] : value["cancelScheduledAt"].toISOString(),
8592
8611
  "chatCreditCost": value["chatCreditCost"],
@@ -8609,7 +8628,6 @@ function ResponseChangePlanToJSONTyped(value, ignoreDiscriminator = false) {
8609
8628
  "planName": value["planName"],
8610
8629
  "priceSnapshotCents": value["priceSnapshotCents"],
8611
8630
  "retrievalRateLimitPerSecond": value["retrievalRateLimitPerSecond"],
8612
- "status": SubscriptionStatusToJSON(value["status"]),
8613
8631
  "storageCreditCostPerGbMonth": value["storageCreditCostPerGbMonth"],
8614
8632
  "storageIncludedGb": value["storageIncludedGb"],
8615
8633
  "supportLevel": SupportLevelToJSON(value["supportLevel"]),
@@ -10969,7 +10987,7 @@ async function asProcessingErrorIfFailedResult(error) {
10969
10987
  }
10970
10988
 
10971
10989
  // src/version.ts
10972
- var VERSION = "0.5.4";
10990
+ var VERSION = "0.6.0";
10973
10991
  // Annotate the CommonJS export names for ESM import in node:
10974
10992
  0 && (module.exports = {
10975
10993
  AggregateMetaDTOFromJSON,
@@ -11018,6 +11036,7 @@ var VERSION = "0.5.4";
11018
11036
  ChatTranscriptOutDTOToJSONTyped,
11019
11037
  CheckoutOutDTOFromJSON,
11020
11038
  CheckoutOutDTOFromJSONTyped,
11039
+ CheckoutOutDTOStatusEnum,
11021
11040
  CheckoutOutDTOToJSON,
11022
11041
  CheckoutOutDTOToJSONTyped,
11023
11042
  ColumnDefinitionDTOFromJSON,