@aicats/sdk 1.2.1 → 1.3.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.mts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Available media types for AI cat media
3
3
  */
4
- declare enum Type {
4
+ declare enum MediaType {
5
5
  /** All media types */
6
6
  All = "All",
7
7
  /** Image media type (Default) */
@@ -19,7 +19,7 @@ interface SearchResult {
19
19
  /** Direct URL to the cat media */
20
20
  url: string;
21
21
  /** The type of media */
22
- type: Type;
22
+ type: MediaType;
23
23
  }
24
24
 
25
25
  /**
@@ -43,7 +43,9 @@ declare enum Theme {
43
43
  /** New Year's themed cats with celebrations */
44
44
  NewYear = "NewYear",
45
45
  /** Easter-themed cats with bunnies and eggs */
46
- Easter = "Easter"
46
+ Easter = "Easter",
47
+ /** Mystical-themed cats with magical and fantasy elements */
48
+ Mystical = "Mystical"
47
49
  }
48
50
 
49
51
  /**
@@ -61,7 +63,7 @@ interface CatInfo {
61
63
  /** The theme of the cat media */
62
64
  theme: Theme;
63
65
  /** The type of media */
64
- type: Type;
66
+ type: MediaType;
65
67
  }
66
68
 
67
69
  /**
@@ -95,7 +97,7 @@ interface RandomCatOptions<T extends ResponseType = 'blob'> {
95
97
  /** Theme of the cat media */
96
98
  theme?: Theme;
97
99
  /** Filter by media type */
98
- type?: Type;
100
+ type?: MediaType;
99
101
  /** Response format (default: blob) */
100
102
  responseType?: T;
101
103
  }
@@ -114,7 +116,7 @@ interface SearchOptions {
114
116
  /** Media size in results */
115
117
  size?: Size;
116
118
  /** Filter by media type */
117
- type?: Type;
119
+ type?: MediaType;
118
120
  }
119
121
  /** Options for similar cats */
120
122
  interface SimilarOptions {
@@ -128,7 +130,7 @@ interface GetByIdOptions<T extends ResponseType = 'blob'> {
128
130
  /** Media size (default: Large) */
129
131
  size?: Size;
130
132
  /** media type */
131
- type?: Type;
133
+ type?: MediaType;
132
134
  /** Response format (default: blob) */
133
135
  responseType?: T;
134
136
  }
@@ -136,7 +138,7 @@ interface CountOptions {
136
138
  /** Filter by theme */
137
139
  theme?: Theme;
138
140
  /** Filter by media type */
139
- type?: Type;
141
+ type?: MediaType;
140
142
  }
141
143
 
142
144
  declare const AiCats: {
@@ -150,4 +152,4 @@ declare const AiCats: {
150
152
  getCount: (options?: CountOptions) => Promise<number>;
151
153
  };
152
154
 
153
- export { AiCats, type CatInfo, type RandomCatOptions, type SearchOptions, type SearchResult, type SimilarOptions, Size, Theme };
155
+ export { AiCats, type CatInfo, type CountOptions, type GetByIdOptions, MediaType, type RandomCatOptions, type SearchOptions, type SearchResult, type SimilarOptions, Size, Theme };
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Available media types for AI cat media
3
3
  */
4
- declare enum Type {
4
+ declare enum MediaType {
5
5
  /** All media types */
6
6
  All = "All",
7
7
  /** Image media type (Default) */
@@ -19,7 +19,7 @@ interface SearchResult {
19
19
  /** Direct URL to the cat media */
20
20
  url: string;
21
21
  /** The type of media */
22
- type: Type;
22
+ type: MediaType;
23
23
  }
24
24
 
25
25
  /**
@@ -43,7 +43,9 @@ declare enum Theme {
43
43
  /** New Year's themed cats with celebrations */
44
44
  NewYear = "NewYear",
45
45
  /** Easter-themed cats with bunnies and eggs */
46
- Easter = "Easter"
46
+ Easter = "Easter",
47
+ /** Mystical-themed cats with magical and fantasy elements */
48
+ Mystical = "Mystical"
47
49
  }
48
50
 
49
51
  /**
@@ -61,7 +63,7 @@ interface CatInfo {
61
63
  /** The theme of the cat media */
62
64
  theme: Theme;
63
65
  /** The type of media */
64
- type: Type;
66
+ type: MediaType;
65
67
  }
66
68
 
67
69
  /**
@@ -95,7 +97,7 @@ interface RandomCatOptions<T extends ResponseType = 'blob'> {
95
97
  /** Theme of the cat media */
96
98
  theme?: Theme;
97
99
  /** Filter by media type */
98
- type?: Type;
100
+ type?: MediaType;
99
101
  /** Response format (default: blob) */
100
102
  responseType?: T;
101
103
  }
@@ -114,7 +116,7 @@ interface SearchOptions {
114
116
  /** Media size in results */
115
117
  size?: Size;
116
118
  /** Filter by media type */
117
- type?: Type;
119
+ type?: MediaType;
118
120
  }
119
121
  /** Options for similar cats */
120
122
  interface SimilarOptions {
@@ -128,7 +130,7 @@ interface GetByIdOptions<T extends ResponseType = 'blob'> {
128
130
  /** Media size (default: Large) */
129
131
  size?: Size;
130
132
  /** media type */
131
- type?: Type;
133
+ type?: MediaType;
132
134
  /** Response format (default: blob) */
133
135
  responseType?: T;
134
136
  }
@@ -136,7 +138,7 @@ interface CountOptions {
136
138
  /** Filter by theme */
137
139
  theme?: Theme;
138
140
  /** Filter by media type */
139
- type?: Type;
141
+ type?: MediaType;
140
142
  }
141
143
 
142
144
  declare const AiCats: {
@@ -150,4 +152,4 @@ declare const AiCats: {
150
152
  getCount: (options?: CountOptions) => Promise<number>;
151
153
  };
152
154
 
153
- export { AiCats, type CatInfo, type RandomCatOptions, type SearchOptions, type SearchResult, type SimilarOptions, Size, Theme };
155
+ export { AiCats, type CatInfo, type CountOptions, type GetByIdOptions, MediaType, type RandomCatOptions, type SearchOptions, type SearchResult, type SimilarOptions, Size, Theme };
package/dist/index.js CHANGED
@@ -21,6 +21,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
21
21
  var index_exports = {};
22
22
  __export(index_exports, {
23
23
  AiCats: () => AiCats,
24
+ MediaType: () => MediaType,
24
25
  Size: () => Size,
25
26
  Theme: () => Theme
26
27
  });
@@ -49,9 +50,18 @@ var Theme = /* @__PURE__ */ ((Theme2) => {
49
50
  Theme2["Xmas"] = "Xmas";
50
51
  Theme2["NewYear"] = "NewYear";
51
52
  Theme2["Easter"] = "Easter";
53
+ Theme2["Mystical"] = "Mystical";
52
54
  return Theme2;
53
55
  })(Theme || {});
54
56
 
57
+ // src/models/enums/type.enum.ts
58
+ var MediaType = /* @__PURE__ */ ((MediaType2) => {
59
+ MediaType2["All"] = "All";
60
+ MediaType2["Image"] = "Image";
61
+ MediaType2["Video"] = "Video";
62
+ return MediaType2;
63
+ })(MediaType || {});
64
+
55
65
  // src/api/ai-cats-api.ts
56
66
  var ApiUrl = "https://api.ai-cats.net/v1";
57
67
  async function toResponseType(buffer, mediaType = "Image" /* Image */, type = "blob") {
@@ -192,6 +202,7 @@ var AiCats = AiCatsAPI;
192
202
  // Annotate the CommonJS export names for ESM import in node:
193
203
  0 && (module.exports = {
194
204
  AiCats,
205
+ MediaType,
195
206
  Size,
196
207
  Theme
197
208
  });
package/dist/index.mjs CHANGED
@@ -21,9 +21,18 @@ var Theme = /* @__PURE__ */ ((Theme2) => {
21
21
  Theme2["Xmas"] = "Xmas";
22
22
  Theme2["NewYear"] = "NewYear";
23
23
  Theme2["Easter"] = "Easter";
24
+ Theme2["Mystical"] = "Mystical";
24
25
  return Theme2;
25
26
  })(Theme || {});
26
27
 
28
+ // src/models/enums/type.enum.ts
29
+ var MediaType = /* @__PURE__ */ ((MediaType2) => {
30
+ MediaType2["All"] = "All";
31
+ MediaType2["Image"] = "Image";
32
+ MediaType2["Video"] = "Video";
33
+ return MediaType2;
34
+ })(MediaType || {});
35
+
27
36
  // src/api/ai-cats-api.ts
28
37
  var ApiUrl = "https://api.ai-cats.net/v1";
29
38
  async function toResponseType(buffer, mediaType = "Image" /* Image */, type = "blob") {
@@ -163,6 +172,7 @@ var AiCatsAPI = {
163
172
  var AiCats = AiCatsAPI;
164
173
  export {
165
174
  AiCats,
175
+ MediaType,
166
176
  Size,
167
177
  Theme
168
178
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aicats/sdk",
3
- "version": "1.2.1",
3
+ "version": "1.3.0",
4
4
  "description": "Official JavaScript SDK for the ai-cats.net API",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",