@naturali/sdk 0.332.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.
@@ -2767,6 +2768,7 @@ type ApprovalItem = {
2767
2768
  *
2768
2769
  */
2769
2770
  type AssistantGrant = {
2771
+ srn: ResourceSrn;
2770
2772
  /**
2771
2773
  * Public grant ID (agr_ prefix).
2772
2774
  */
@@ -2840,6 +2842,7 @@ type AssistantLinkRedeem = {
2840
2842
  * One conversation with the Assistant in the app.
2841
2843
  */
2842
2844
  type AssistantSession = {
2845
+ srn: ResourceSrn;
2843
2846
  id: string;
2844
2847
  /**
2845
2848
  * The name given to the conversation, else its first message cut to 60 characters; null until either.
@@ -11802,6 +11805,7 @@ type UserUpdate = {
11802
11805
  usage_alerts?: boolean;
11803
11806
  };
11804
11807
  type UserBilling = {
11808
+ srn: ResourceSrn;
11805
11809
  /**
11806
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.
11807
11811
  */
@@ -11896,6 +11900,7 @@ type TopUp = {
11896
11900
  expires_at: Date | null;
11897
11901
  };
11898
11902
  type PaymentMethod = {
11903
+ srn: ResourceSrn;
11899
11904
  /**
11900
11905
  * Card brand, such as `visa`.
11901
11906
  */
@@ -11936,6 +11941,7 @@ type PaymentMethodSetup = {
11936
11941
  expires_at: Date;
11937
11942
  };
11938
11943
  type AutoRecharge = {
11944
+ srn: ResourceSrn;
11939
11945
  /**
11940
11946
  * Whether the balance is topped up automatically.
11941
11947
  */
@@ -11974,6 +11980,7 @@ type UserPlanQuote = {
11974
11980
  charge_usd: number;
11975
11981
  };
11976
11982
  type UserPlanChange = {
11983
+ srn: ResourceSrn;
11977
11984
  /**
11978
11985
  * The plan in effect.
11979
11986
  */
@@ -17313,6 +17320,11 @@ type VerifySignInCodeErrors = {
17313
17320
  *
17314
17321
  */
17315
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;
17316
17328
  };
17317
17329
  type VerifySignInCodeError = VerifySignInCodeErrors[keyof VerifySignInCodeErrors];
17318
17330
  type VerifySignInCodeResponses = {
@@ -17342,6 +17354,11 @@ type SignInWithGoogleErrors = {
17342
17354
  * Google has not verified the address (`EMAIL_NOT_VERIFIED`).
17343
17355
  */
17344
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;
17345
17362
  /**
17346
17363
  * Sign-in with Google is not configured on this deployment (`GOOGLE_SIGN_IN_NOT_CONFIGURED`).
17347
17364
  *
@@ -17372,6 +17389,11 @@ type RefreshSessionErrors = {
17372
17389
  * The refresh token is invalid, expired or was reused.
17373
17390
  */
17374
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;
17375
17397
  };
17376
17398
  type RefreshSessionError = RefreshSessionErrors[keyof RefreshSessionErrors];
17377
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.
@@ -2767,6 +2768,7 @@ type ApprovalItem = {
2767
2768
  *
2768
2769
  */
2769
2770
  type AssistantGrant = {
2771
+ srn: ResourceSrn;
2770
2772
  /**
2771
2773
  * Public grant ID (agr_ prefix).
2772
2774
  */
@@ -2840,6 +2842,7 @@ type AssistantLinkRedeem = {
2840
2842
  * One conversation with the Assistant in the app.
2841
2843
  */
2842
2844
  type AssistantSession = {
2845
+ srn: ResourceSrn;
2843
2846
  id: string;
2844
2847
  /**
2845
2848
  * The name given to the conversation, else its first message cut to 60 characters; null until either.
@@ -11802,6 +11805,7 @@ type UserUpdate = {
11802
11805
  usage_alerts?: boolean;
11803
11806
  };
11804
11807
  type UserBilling = {
11808
+ srn: ResourceSrn;
11805
11809
  /**
11806
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.
11807
11811
  */
@@ -11896,6 +11900,7 @@ type TopUp = {
11896
11900
  expires_at: Date | null;
11897
11901
  };
11898
11902
  type PaymentMethod = {
11903
+ srn: ResourceSrn;
11899
11904
  /**
11900
11905
  * Card brand, such as `visa`.
11901
11906
  */
@@ -11936,6 +11941,7 @@ type PaymentMethodSetup = {
11936
11941
  expires_at: Date;
11937
11942
  };
11938
11943
  type AutoRecharge = {
11944
+ srn: ResourceSrn;
11939
11945
  /**
11940
11946
  * Whether the balance is topped up automatically.
11941
11947
  */
@@ -11974,6 +11980,7 @@ type UserPlanQuote = {
11974
11980
  charge_usd: number;
11975
11981
  };
11976
11982
  type UserPlanChange = {
11983
+ srn: ResourceSrn;
11977
11984
  /**
11978
11985
  * The plan in effect.
11979
11986
  */
@@ -17313,6 +17320,11 @@ type VerifySignInCodeErrors = {
17313
17320
  *
17314
17321
  */
17315
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;
17316
17328
  };
17317
17329
  type VerifySignInCodeError = VerifySignInCodeErrors[keyof VerifySignInCodeErrors];
17318
17330
  type VerifySignInCodeResponses = {
@@ -17342,6 +17354,11 @@ type SignInWithGoogleErrors = {
17342
17354
  * Google has not verified the address (`EMAIL_NOT_VERIFIED`).
17343
17355
  */
17344
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;
17345
17362
  /**
17346
17363
  * Sign-in with Google is not configured on this deployment (`GOOGLE_SIGN_IN_NOT_CONFIGURED`).
17347
17364
  *
@@ -17372,6 +17389,11 @@ type RefreshSessionErrors = {
17372
17389
  * The refresh token is invalid, expired or was reused.
17373
17390
  */
17374
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;
17375
17397
  };
17376
17398
  type RefreshSessionError = RefreshSessionErrors[keyof RefreshSessionErrors];
17377
17399
  type RefreshSessionResponses = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturali/sdk",
3
- "version": "0.332.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.332.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",