@naturali/sdk 0.331.0 → 0.333.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.d.cts CHANGED
@@ -1095,6 +1095,7 @@ type StatementLine = {
1095
1095
  amount_usd: number;
1096
1096
  };
1097
1097
  type Statement = {
1098
+ srn: ResourceSrn;
1098
1099
  id: string;
1099
1100
  /**
1100
1101
  * The billing month, `YYYY-MM` in UTC.
@@ -2549,6 +2550,7 @@ type ProviderModelsResponse = Page & {
2549
2550
  }>;
2550
2551
  };
2551
2552
  type ApiKeyRecord = {
2553
+ srn: ResourceSrn;
2552
2554
  /**
2553
2555
  * Public API key ID (key_ prefix).
2554
2556
  */
@@ -2766,6 +2768,7 @@ type ApprovalItem = {
2766
2768
  *
2767
2769
  */
2768
2770
  type AssistantGrant = {
2771
+ srn: ResourceSrn;
2769
2772
  /**
2770
2773
  * Public grant ID (agr_ prefix).
2771
2774
  */
@@ -2839,6 +2842,7 @@ type AssistantLinkRedeem = {
2839
2842
  * One conversation with the Assistant in the app.
2840
2843
  */
2841
2844
  type AssistantSession = {
2845
+ srn: ResourceSrn;
2842
2846
  id: string;
2843
2847
  /**
2844
2848
  * The name given to the conversation, else its first message cut to 60 characters; null until either.
@@ -11801,6 +11805,7 @@ type UserUpdate = {
11801
11805
  usage_alerts?: boolean;
11802
11806
  };
11803
11807
  type UserBilling = {
11808
+ srn: ResourceSrn;
11804
11809
  /**
11805
11810
  * The rung of the infra subscription in effect for this account: the highest it held this month. `free` for an account with no subscription, which is also the least-privileged rung. It gates the feature lines and the resource counts of the pricing table.
11806
11811
  */
@@ -11895,6 +11900,7 @@ type TopUp = {
11895
11900
  expires_at: Date | null;
11896
11901
  };
11897
11902
  type PaymentMethod = {
11903
+ srn: ResourceSrn;
11898
11904
  /**
11899
11905
  * Card brand, such as `visa`.
11900
11906
  */
@@ -11935,6 +11941,7 @@ type PaymentMethodSetup = {
11935
11941
  expires_at: Date;
11936
11942
  };
11937
11943
  type AutoRecharge = {
11944
+ srn: ResourceSrn;
11938
11945
  /**
11939
11946
  * Whether the balance is topped up automatically.
11940
11947
  */
@@ -11973,6 +11980,7 @@ type UserPlanQuote = {
11973
11980
  charge_usd: number;
11974
11981
  };
11975
11982
  type UserPlanChange = {
11983
+ srn: ResourceSrn;
11976
11984
  /**
11977
11985
  * The plan in effect.
11978
11986
  */
@@ -17312,6 +17320,11 @@ type VerifySignInCodeErrors = {
17312
17320
  *
17313
17321
  */
17314
17322
  429: ErrorResponse;
17323
+ /**
17324
+ * The account could not be set up (`UPSTREAM_UNAVAILABLE`), so no session is issued. Retry.
17325
+ *
17326
+ */
17327
+ 502: ErrorResponse;
17315
17328
  };
17316
17329
  type VerifySignInCodeError = VerifySignInCodeErrors[keyof VerifySignInCodeErrors];
17317
17330
  type VerifySignInCodeResponses = {
@@ -17341,6 +17354,11 @@ type SignInWithGoogleErrors = {
17341
17354
  * Google has not verified the address (`EMAIL_NOT_VERIFIED`).
17342
17355
  */
17343
17356
  403: ErrorResponse;
17357
+ /**
17358
+ * The account could not be set up (`UPSTREAM_UNAVAILABLE`), so no session is issued. Retry.
17359
+ *
17360
+ */
17361
+ 502: ErrorResponse;
17344
17362
  /**
17345
17363
  * Sign-in with Google is not configured on this deployment (`GOOGLE_SIGN_IN_NOT_CONFIGURED`).
17346
17364
  *
@@ -17371,6 +17389,11 @@ type RefreshSessionErrors = {
17371
17389
  * The refresh token is invalid, expired or was reused.
17372
17390
  */
17373
17391
  401: ErrorResponse;
17392
+ /**
17393
+ * The account could not be set up (`UPSTREAM_UNAVAILABLE`), so no session is issued. Retry.
17394
+ *
17395
+ */
17396
+ 502: ErrorResponse;
17374
17397
  };
17375
17398
  type RefreshSessionError = RefreshSessionErrors[keyof RefreshSessionErrors];
17376
17399
  type RefreshSessionResponses = {
package/dist/index.d.mts CHANGED
@@ -1095,6 +1095,7 @@ type StatementLine = {
1095
1095
  amount_usd: number;
1096
1096
  };
1097
1097
  type Statement = {
1098
+ srn: ResourceSrn;
1098
1099
  id: string;
1099
1100
  /**
1100
1101
  * The billing month, `YYYY-MM` in UTC.
@@ -2549,6 +2550,7 @@ type ProviderModelsResponse = Page & {
2549
2550
  }>;
2550
2551
  };
2551
2552
  type ApiKeyRecord = {
2553
+ srn: ResourceSrn;
2552
2554
  /**
2553
2555
  * Public API key ID (key_ prefix).
2554
2556
  */
@@ -2766,6 +2768,7 @@ type ApprovalItem = {
2766
2768
  *
2767
2769
  */
2768
2770
  type AssistantGrant = {
2771
+ srn: ResourceSrn;
2769
2772
  /**
2770
2773
  * Public grant ID (agr_ prefix).
2771
2774
  */
@@ -2839,6 +2842,7 @@ type AssistantLinkRedeem = {
2839
2842
  * One conversation with the Assistant in the app.
2840
2843
  */
2841
2844
  type AssistantSession = {
2845
+ srn: ResourceSrn;
2842
2846
  id: string;
2843
2847
  /**
2844
2848
  * The name given to the conversation, else its first message cut to 60 characters; null until either.
@@ -11801,6 +11805,7 @@ type UserUpdate = {
11801
11805
  usage_alerts?: boolean;
11802
11806
  };
11803
11807
  type UserBilling = {
11808
+ srn: ResourceSrn;
11804
11809
  /**
11805
11810
  * The rung of the infra subscription in effect for this account: the highest it held this month. `free` for an account with no subscription, which is also the least-privileged rung. It gates the feature lines and the resource counts of the pricing table.
11806
11811
  */
@@ -11895,6 +11900,7 @@ type TopUp = {
11895
11900
  expires_at: Date | null;
11896
11901
  };
11897
11902
  type PaymentMethod = {
11903
+ srn: ResourceSrn;
11898
11904
  /**
11899
11905
  * Card brand, such as `visa`.
11900
11906
  */
@@ -11935,6 +11941,7 @@ type PaymentMethodSetup = {
11935
11941
  expires_at: Date;
11936
11942
  };
11937
11943
  type AutoRecharge = {
11944
+ srn: ResourceSrn;
11938
11945
  /**
11939
11946
  * Whether the balance is topped up automatically.
11940
11947
  */
@@ -11973,6 +11980,7 @@ type UserPlanQuote = {
11973
11980
  charge_usd: number;
11974
11981
  };
11975
11982
  type UserPlanChange = {
11983
+ srn: ResourceSrn;
11976
11984
  /**
11977
11985
  * The plan in effect.
11978
11986
  */
@@ -17312,6 +17320,11 @@ type VerifySignInCodeErrors = {
17312
17320
  *
17313
17321
  */
17314
17322
  429: ErrorResponse;
17323
+ /**
17324
+ * The account could not be set up (`UPSTREAM_UNAVAILABLE`), so no session is issued. Retry.
17325
+ *
17326
+ */
17327
+ 502: ErrorResponse;
17315
17328
  };
17316
17329
  type VerifySignInCodeError = VerifySignInCodeErrors[keyof VerifySignInCodeErrors];
17317
17330
  type VerifySignInCodeResponses = {
@@ -17341,6 +17354,11 @@ type SignInWithGoogleErrors = {
17341
17354
  * Google has not verified the address (`EMAIL_NOT_VERIFIED`).
17342
17355
  */
17343
17356
  403: ErrorResponse;
17357
+ /**
17358
+ * The account could not be set up (`UPSTREAM_UNAVAILABLE`), so no session is issued. Retry.
17359
+ *
17360
+ */
17361
+ 502: ErrorResponse;
17344
17362
  /**
17345
17363
  * Sign-in with Google is not configured on this deployment (`GOOGLE_SIGN_IN_NOT_CONFIGURED`).
17346
17364
  *
@@ -17371,6 +17389,11 @@ type RefreshSessionErrors = {
17371
17389
  * The refresh token is invalid, expired or was reused.
17372
17390
  */
17373
17391
  401: ErrorResponse;
17392
+ /**
17393
+ * The account could not be set up (`UPSTREAM_UNAVAILABLE`), so no session is issued. Retry.
17394
+ *
17395
+ */
17396
+ 502: ErrorResponse;
17374
17397
  };
17375
17398
  type RefreshSessionError = RefreshSessionErrors[keyof RefreshSessionErrors];
17376
17399
  type RefreshSessionResponses = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturali/sdk",
3
- "version": "0.331.0",
3
+ "version": "0.333.0",
4
4
  "description": "TypeScript SDK for the naturali.ai API, generated from its OpenAPI specs",
5
5
  "keywords": [
6
6
  "naturali",
@@ -38,7 +38,7 @@
38
38
  },
39
39
  "devDependencies": {
40
40
  "@hey-api/openapi-ts": "^0.99.0",
41
- "@naturali/api": "0.331.0",
41
+ "@naturali/api": "0.333.0",
42
42
  "@ttoss/openapi-codegen": "^0.10.1",
43
43
  "@types/node": "^26.5.1",
44
44
  "tsdown": "^0.23.0",