@zavudev/sdk 0.46.0 → 0.48.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.
Files changed (91) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/client.d.mts +6 -6
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +6 -6
  5. package/client.d.ts.map +1 -1
  6. package/client.js.map +1 -1
  7. package/client.mjs +1 -1
  8. package/client.mjs.map +1 -1
  9. package/package.json +1 -1
  10. package/resources/broadcasts/broadcasts.d.mts +1 -1
  11. package/resources/broadcasts/broadcasts.d.mts.map +1 -1
  12. package/resources/broadcasts/broadcasts.d.ts +1 -1
  13. package/resources/broadcasts/broadcasts.d.ts.map +1 -1
  14. package/resources/broadcasts/broadcasts.js.map +1 -1
  15. package/resources/broadcasts/broadcasts.mjs.map +1 -1
  16. package/resources/contacts/channels.d.mts +1 -1
  17. package/resources/contacts/channels.d.mts.map +1 -1
  18. package/resources/contacts/channels.d.ts +1 -1
  19. package/resources/contacts/channels.d.ts.map +1 -1
  20. package/resources/contacts/contacts.d.mts +2 -2
  21. package/resources/contacts/contacts.d.mts.map +1 -1
  22. package/resources/contacts/contacts.d.ts +2 -2
  23. package/resources/contacts/contacts.d.ts.map +1 -1
  24. package/resources/exports.d.mts +0 -97
  25. package/resources/exports.d.mts.map +1 -1
  26. package/resources/exports.d.ts +0 -97
  27. package/resources/exports.d.ts.map +1 -1
  28. package/resources/exports.js +0 -44
  29. package/resources/exports.js.map +1 -1
  30. package/resources/exports.mjs +0 -44
  31. package/resources/exports.mjs.map +1 -1
  32. package/resources/index.d.mts +3 -3
  33. package/resources/index.d.mts.map +1 -1
  34. package/resources/index.d.ts +3 -3
  35. package/resources/index.d.ts.map +1 -1
  36. package/resources/index.js.map +1 -1
  37. package/resources/index.mjs +1 -1
  38. package/resources/index.mjs.map +1 -1
  39. package/resources/invitations.d.mts +24 -3
  40. package/resources/invitations.d.mts.map +1 -1
  41. package/resources/invitations.d.ts +24 -3
  42. package/resources/invitations.d.ts.map +1 -1
  43. package/resources/invitations.js +12 -3
  44. package/resources/invitations.js.map +1 -1
  45. package/resources/invitations.mjs +12 -3
  46. package/resources/invitations.mjs.map +1 -1
  47. package/resources/messages.d.mts +24 -11
  48. package/resources/messages.d.mts.map +1 -1
  49. package/resources/messages.d.ts +24 -11
  50. package/resources/messages.d.ts.map +1 -1
  51. package/resources/phone-numbers.d.mts +1 -1
  52. package/resources/phone-numbers.d.mts.map +1 -1
  53. package/resources/phone-numbers.d.ts +1 -1
  54. package/resources/phone-numbers.d.ts.map +1 -1
  55. package/resources/plan.d.mts +0 -39
  56. package/resources/plan.d.mts.map +1 -1
  57. package/resources/plan.d.ts +0 -39
  58. package/resources/plan.d.ts.map +1 -1
  59. package/resources/plan.js +0 -7
  60. package/resources/plan.js.map +1 -1
  61. package/resources/plan.mjs +0 -7
  62. package/resources/plan.mjs.map +1 -1
  63. package/resources/urls.d.mts +2 -2
  64. package/resources/urls.d.mts.map +1 -1
  65. package/resources/urls.d.ts +2 -2
  66. package/resources/urls.d.ts.map +1 -1
  67. package/resources/usage.d.mts +0 -32
  68. package/resources/usage.d.mts.map +1 -1
  69. package/resources/usage.d.ts +0 -32
  70. package/resources/usage.d.ts.map +1 -1
  71. package/resources/usage.js +0 -7
  72. package/resources/usage.js.map +1 -1
  73. package/resources/usage.mjs +0 -7
  74. package/resources/usage.mjs.map +1 -1
  75. package/src/client.ts +6 -22
  76. package/src/resources/broadcasts/broadcasts.ts +1 -10
  77. package/src/resources/contacts/channels.ts +1 -1
  78. package/src/resources/contacts/contacts.ts +2 -2
  79. package/src/resources/exports.ts +1 -137
  80. package/src/resources/index.ts +3 -11
  81. package/src/resources/invitations.ts +26 -3
  82. package/src/resources/messages.ts +24 -10
  83. package/src/resources/phone-numbers.ts +1 -1
  84. package/src/resources/plan.ts +1 -58
  85. package/src/resources/urls.ts +2 -2
  86. package/src/resources/usage.ts +1 -44
  87. package/src/version.ts +1 -1
  88. package/version.d.mts +1 -1
  89. package/version.d.ts +1 -1
  90. package/version.js +1 -1
  91. package/version.mjs +1 -1
@@ -1,62 +1,5 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  import { APIResource } from '../core/resource';
4
- import { APIPromise } from '../core/api-promise';
5
- import { RequestOptions } from '../internal/request-options';
6
4
 
7
- export class Plan extends APIResource {
8
- /**
9
- * Get the current subscription plan for the API key's team, including tier,
10
- * billing interval, and period dates.
11
- */
12
- retrieve(options?: RequestOptions): APIPromise<PlanRetrieveResponse> {
13
- return this._client.get('/v1/plan', options);
14
- }
15
- }
16
-
17
- export interface PlanRetrieveResponse {
18
- billingInterval: 'monthly' | 'annual';
19
-
20
- status: 'active' | 'past_due' | 'canceled' | 'trialing';
21
-
22
- /**
23
- * Current subscription tier.
24
- */
25
- tier: 'free' | 'pro' | 'scale' | 'enterprise';
26
-
27
- cancelAtPeriodEnd?: boolean;
28
-
29
- currentPeriodEnd?: string;
30
-
31
- currentPeriodStart?: string;
32
-
33
- limits?: PlanRetrieveResponse.Limits;
34
- }
35
-
36
- export namespace PlanRetrieveResponse {
37
- export interface Limits {
38
- broadcasts?: boolean;
39
-
40
- /**
41
- * Monthly email limit.
42
- */
43
- emails?: number;
44
-
45
- /**
46
- * Monthly A2P message limit.
47
- */
48
- messagesA2P?: number;
49
-
50
- phoneNumbers?: number;
51
-
52
- senders?: number;
53
-
54
- subAccounts?: boolean;
55
-
56
- wabaConnections?: number;
57
- }
58
- }
59
-
60
- export declare namespace Plan {
61
- export { type PlanRetrieveResponse as PlanRetrieveResponse };
62
- }
5
+ export class Plan extends APIResource {}
@@ -76,7 +76,7 @@ export interface VerifiedURL {
76
76
  /**
77
77
  * Status of a verified URL.
78
78
  */
79
- status: 'pending' | 'approved' | 'rejected' | 'malicious';
79
+ status: 'pending' | 'approved' | 'rejected' | 'escalated' | 'malicious';
80
80
 
81
81
  /**
82
82
  * The verified URL.
@@ -103,7 +103,7 @@ export interface URLListVerifiedParams extends CursorParams {
103
103
  /**
104
104
  * Filter by verification status.
105
105
  */
106
- status?: 'pending' | 'approved' | 'rejected' | 'malicious';
106
+ status?: 'pending' | 'approved' | 'rejected' | 'escalated' | 'malicious';
107
107
  }
108
108
 
109
109
  export interface URLSubmitForVerificationParams {
@@ -1,48 +1,5 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  import { APIResource } from '../core/resource';
4
- import { APIPromise } from '../core/api-promise';
5
- import { RequestOptions } from '../internal/request-options';
6
4
 
7
- export class Usage extends APIResource {
8
- /**
9
- * Get the current month's usage counters for A2P messages and emails, along with
10
- * the tier limits.
11
- */
12
- retrieve(options?: RequestOptions): APIPromise<UsageRetrieveResponse> {
13
- return this._client.get('/v1/usage', options);
14
- }
15
- }
16
-
17
- export interface UsageRetrieveResponse {
18
- /**
19
- * Emails sent this month.
20
- */
21
- emailsSent: number;
22
-
23
- limits: UsageRetrieveResponse.Limits;
24
-
25
- /**
26
- * A2P messages sent this month (WhatsApp replies + Telegram).
27
- */
28
- messagesA2P: number;
29
-
30
- /**
31
- * Current month in YYYY-MM format.
32
- */
33
- monthKey: string;
34
-
35
- tier: 'free' | 'pro' | 'scale' | 'enterprise';
36
- }
37
-
38
- export namespace UsageRetrieveResponse {
39
- export interface Limits {
40
- emails?: number;
41
-
42
- messagesA2P?: number;
43
- }
44
- }
45
-
46
- export declare namespace Usage {
47
- export { type UsageRetrieveResponse as UsageRetrieveResponse };
48
- }
5
+ export class Usage extends APIResource {}
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.46.0'; // x-release-please-version
1
+ export const VERSION = '0.48.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.46.0";
1
+ export declare const VERSION = "0.48.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.46.0";
1
+ export declare const VERSION = "0.48.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.46.0'; // x-release-please-version
4
+ exports.VERSION = '0.48.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.46.0'; // x-release-please-version
1
+ export const VERSION = '0.48.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map