graze-client 0.10.0 → 0.11.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.
@@ -1,8 +1,8 @@
1
1
  import { Config, Context, Effect, Layer, Schema } from "effect";
2
2
  import * as Form from "./schema/UpdateAlgorithmPayload.js";
3
- import * as HttpApiClient from "effect/unstable/httpapi/HttpApiClient";
4
- import * as HttpApiEndpoint from "effect/unstable/httpapi/HttpApiEndpoint";
5
- import * as HttpClient from "effect/unstable/http/HttpClient";
3
+ import * as HttpApiClient from "effect/http-api/HttpApiClient";
4
+ import * as HttpApiEndpoint from "effect/http-api/HttpApiEndpoint";
5
+ import * as HttpClient from "effect/http/HttpClient";
6
6
  declare const grazeLive: Effect.Effect<{
7
7
  updateAlgorithm: (data: Form.FullForm) => Effect.Effect<{
8
8
  readonly message: string;
@@ -28,7 +28,7 @@ declare const grazeLive: Effect.Effect<{
28
28
  readonly updated_at: Date;
29
29
  readonly deleted_at: Date | null;
30
30
  };
31
- }, import("effect/unstable/http/HttpClientError").HttpClientError | Schema.SchemaError, never>;
31
+ }, import("effect/http/HttpClientError").HttpClientError | Schema.SchemaError, never>;
32
32
  getFeeds: () => HttpApiClient.Client.MethodReturn<HttpApiEndpoint.HttpApiEndpoint<"getFeeds", "GET", "/app/my_feeds", never, Schema.toCodecStringTree<Schema.Struct<{
33
33
  readonly user_id: Schema.NumberFromString;
34
34
  }>>, never, never, Schema.toCodecJson<Schema.Struct<{
@@ -63,7 +63,7 @@ declare const grazeLive: Effect.Effect<{
63
63
  readonly updated_at: Schema.DateFromString;
64
64
  readonly deleted_at: Schema.Union<readonly [Schema.DateFromString, Schema.Null]>;
65
65
  }>>;
66
- }>>, never, never, never>, never, never, HttpApiEndpoint.ClientResponseMode>;
66
+ }>>, never, never, never>, never, never, "decoded-only">;
67
67
  stickyposts: {
68
68
  readonly create: HttpApiClient.Client.Method<HttpApiEndpoint.HttpApiEndpoint<"create", "POST", "/app/api/v1/feed-management/sticky-posts", never, never, Schema.toCodecJson<Schema.Struct<{
69
69
  readonly is_active: Schema.Boolean;
@@ -213,7 +213,7 @@ declare const GrazeClient_base: Context.ServiceClass<GrazeClient, "GrazeClient",
213
213
  readonly updated_at: Date;
214
214
  readonly deleted_at: Date | null;
215
215
  };
216
- }, import("effect/unstable/http/HttpClientError").HttpClientError | Schema.SchemaError, never>;
216
+ }, import("effect/http/HttpClientError").HttpClientError | Schema.SchemaError, never>;
217
217
  getFeeds: () => HttpApiClient.Client.MethodReturn<HttpApiEndpoint.HttpApiEndpoint<"getFeeds", "GET", "/app/my_feeds", never, Schema.toCodecStringTree<Schema.Struct<{
218
218
  readonly user_id: Schema.NumberFromString;
219
219
  }>>, never, never, Schema.toCodecJson<Schema.Struct<{
@@ -248,7 +248,7 @@ declare const GrazeClient_base: Context.ServiceClass<GrazeClient, "GrazeClient",
248
248
  readonly updated_at: Schema.DateFromString;
249
249
  readonly deleted_at: Schema.Union<readonly [Schema.DateFromString, Schema.Null]>;
250
250
  }>>;
251
- }>>, never, never, never>, never, never, HttpApiEndpoint.ClientResponseMode>;
251
+ }>>, never, never, never>, never, never, "decoded-only">;
252
252
  stickyposts: {
253
253
  readonly create: HttpApiClient.Client.Method<HttpApiEndpoint.HttpApiEndpoint<"create", "POST", "/app/api/v1/feed-management/sticky-posts", never, never, Schema.toCodecJson<Schema.Struct<{
254
254
  readonly is_active: Schema.Boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"GrazeClient.d.ts","sourceRoot":"","sources":["../../src/GrazeClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,OAAO,EAAQ,MAAM,EAAE,KAAK,EAAY,MAAM,EAAE,MAAM,QAAQ,CAAC;AAUhF,OAAO,KAAK,IAAI,MAAM,oCAAoC,CAAC;AAI3D,OAAO,KAAK,aAAa,MAAM,uCAAuC,CAAC;AACvE,OAAO,KAAK,eAAe,MAAM,yCAAyC,CAAC;AAG3E,OAAO,KAAK,UAAU,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AAGnE,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AAoErD,QAAA,MAAM,SAAS;4BAiBkB,IAAI,CAAC,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6CAc5C,CAAC;;4BAd8B,IAAI,CAAC,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgB9C,qBAAa,WAAY,SAAQ,gBAGf;IAChB,MAAM,CAAC,QAAQ,CAAC,KAAK,sDAEnB;CACH;AAED,8EAA8E;AAC9E,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,OAAO,CAAC,OAAO,SAAS,CAAC,CAAC;;;;AAElE,qBAAa,UAAW,SAAQ,gBAA+B;IAC7D,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,OAAO,CAAC;CACf,CAAC;CAAG"}
@@ -1,18 +1,18 @@
1
1
  import { Effect } from "effect";
2
- import { type GrazeClientService } from "./GrazeClient.js";
3
- type Promisify<T> = T extends (...args: Array<any>) => Effect.Effect<infer A, infer _E, never> ? (...args: Parameters<T>) => Promise<A> : never;
2
+ import { GrazeClient } from "./GrazeClient.js";
3
+ type GrazePromiseApi = Effect.Success<typeof setup>;
4
4
  export declare class GrazeService {
5
- getFeed: Promisify<GrazeClientService["getFeed"]>;
6
- getFeeds: Promisify<GrazeClientService["getFeeds"]>;
7
- hidePost: Promisify<GrazeClientService["hidePost"]>;
8
- unhidePost: Promisify<GrazeClientService["unhidePost"]>;
9
- updateAlgorithm: Promisify<GrazeClientService["updateAlgorithm"]>;
10
- publishAlgorithm: Promisify<GrazeClientService["publishAlgorithm"]>;
5
+ getFeed: GrazePromiseApi["getFeed"];
6
+ getFeeds: GrazePromiseApi["getFeeds"];
7
+ hidePost: GrazePromiseApi["hidePost"];
8
+ unhidePost: GrazePromiseApi["unhidePost"];
9
+ updateAlgorithm: GrazePromiseApi["updateAlgorithm"];
10
+ publishAlgorithm: GrazePromiseApi["publishAlgorithm"];
11
11
  stickyposts: {
12
- get: Promisify<GrazeClientService["stickyposts"]["get"]>;
13
- create: Promisify<GrazeClientService["stickyposts"]["create"]>;
14
- delete: Promisify<GrazeClientService["stickyposts"]["delete"]>;
15
- update: Promisify<GrazeClientService["stickyposts"]["update"]>;
12
+ get: GrazePromiseApi["getStickyPosts"];
13
+ create: GrazePromiseApi["createStickyPost"];
14
+ delete: GrazePromiseApi["deleteStickyPost"];
15
+ update: GrazePromiseApi["updateStickyPost"];
16
16
  };
17
17
  constructor({ apiUrl, cookie, userId, }: {
18
18
  apiUrl: string;
@@ -20,6 +20,277 @@ export declare class GrazeService {
20
20
  userId: number;
21
21
  });
22
22
  }
23
+ declare const setup: Effect.Effect<{
24
+ getFeed: (request: {
25
+ readonly params: {
26
+ readonly feedId: number;
27
+ };
28
+ readonly responseMode?: "decoded-only";
29
+ readonly sseOptions?: import("effect/encoding/Sse").DecodeOptions | undefined;
30
+ }) => Promise<{
31
+ readonly draft_algorithm_manifest: unknown;
32
+ readonly algorithm_manifest: unknown;
33
+ readonly stats: unknown;
34
+ readonly latest_error: unknown;
35
+ readonly latest_compute_cycle: unknown;
36
+ readonly subscriber_lists: unknown;
37
+ readonly algorithm_uri: string;
38
+ readonly algorithm_manifest_id: number | null;
39
+ readonly draft_algorithm_manifest_id: number;
40
+ readonly record_name: string;
41
+ readonly display_name: string;
42
+ readonly description: string;
43
+ readonly feed_did: string;
44
+ readonly avatar_url: string | null;
45
+ readonly cpm_cents: number | null;
46
+ readonly deleted: boolean;
47
+ readonly active: boolean;
48
+ readonly public: boolean;
49
+ readonly monetization_available: boolean;
50
+ readonly status: string | null;
51
+ readonly unique_operator_ids: readonly number[];
52
+ readonly user_id: number;
53
+ readonly id: number;
54
+ readonly created_at: Date;
55
+ readonly updated_at: Date;
56
+ readonly deleted_at: Date | null;
57
+ }>;
58
+ getFeeds: () => Promise<{
59
+ readonly page: number;
60
+ readonly page_size: number;
61
+ readonly total_items: number;
62
+ readonly total_pages: number;
63
+ readonly user_algos: readonly {
64
+ readonly stats: {
65
+ readonly page_renders: number;
66
+ readonly unique_users: number;
67
+ readonly post_renders: number;
68
+ };
69
+ readonly algorithm_uri: string;
70
+ readonly algorithm_manifest_id: number | null;
71
+ readonly draft_algorithm_manifest_id: number;
72
+ readonly record_name: string;
73
+ readonly display_name: string;
74
+ readonly description: string;
75
+ readonly feed_did: string;
76
+ readonly avatar_url: string | null;
77
+ readonly cpm_cents: number | null;
78
+ readonly deleted: boolean;
79
+ readonly active: boolean;
80
+ readonly public: boolean;
81
+ readonly monetization_available: boolean;
82
+ readonly status: string | null;
83
+ readonly unique_operator_ids: readonly number[];
84
+ readonly user_id: number;
85
+ readonly id: number;
86
+ readonly created_at: Date;
87
+ readonly updated_at: Date;
88
+ readonly deleted_at: Date | null;
89
+ }[];
90
+ }>;
91
+ hidePost: (request: {
92
+ readonly payload: {
93
+ readonly algo_id: number;
94
+ readonly at_uri: string;
95
+ };
96
+ readonly responseMode?: "decoded-only";
97
+ readonly sseOptions?: import("effect/encoding/Sse").DecodeOptions | undefined;
98
+ }) => Promise<unknown>;
99
+ unhidePost: (request: {
100
+ readonly payload: {
101
+ readonly algo_id: number;
102
+ readonly at_uri: string;
103
+ };
104
+ readonly responseMode?: "decoded-only";
105
+ readonly sseOptions?: import("effect/encoding/Sse").DecodeOptions | undefined;
106
+ }) => Promise<unknown>;
107
+ updateAlgorithm: (data: {
108
+ readonly record_name: string;
109
+ readonly display_name: string;
110
+ readonly user_id: number;
111
+ readonly id: number;
112
+ readonly algorithm_manifest: {
113
+ readonly filter: Readonly<{
114
+ and: ReadonlyArray<import("./schema/UpdateAlgorithmPayload.js").Filter>;
115
+ }> | Readonly<{
116
+ or: ReadonlyArray<import("./schema/UpdateAlgorithmPayload.js").Filter>;
117
+ }> | Readonly<{
118
+ list_member: readonly [import("./schema/UpdateAlgorithmPayload.js").ListUri, "in" | "not_in"];
119
+ }> | Readonly<{
120
+ attribute_compare: readonly [import("./schema/UpdateAlgorithmPayload.js").AttributeName, import("./schema/UpdateAlgorithmPayload.js").AttributeComparison, import("./schema/UpdateAlgorithmPayload.js").AttributeValue];
121
+ }> | Readonly<{
122
+ regex_matches: readonly [import("./schema/UpdateAlgorithmPayload.js").AttributeName, string, boolean];
123
+ }> | Readonly<{
124
+ regex_negation_matches: readonly [import("./schema/UpdateAlgorithmPayload.js").AttributeName, string, boolean];
125
+ }> | Readonly<{
126
+ regex_any: readonly [import("./schema/UpdateAlgorithmPayload.js").AttributeName, ReadonlyArray<string>, boolean, boolean];
127
+ }> | Readonly<{
128
+ regex_none: readonly [import("./schema/UpdateAlgorithmPayload.js").AttributeName, ReadonlyArray<string>, boolean, boolean];
129
+ }> | Readonly<{
130
+ content_moderation: readonly ["OK", ">=", number];
131
+ }> | Readonly<{
132
+ entity_excludes: readonly ["labels", readonly ["porn", "sexual", "nudity"]];
133
+ }> | Readonly<{
134
+ embed_type: readonly ["==" | "!=", "video" | "image" | "link" | "post" | "gif" | "image_group"];
135
+ }> | Readonly<{
136
+ social_graph: readonly [string, "in" | "not_in", "follows" | "followers"];
137
+ }> | Readonly<{
138
+ post_type: readonly ["in" | "not_in", ReadonlyArray<import("./schema/UpdateAlgorithmPayload.js").PostType>];
139
+ }>;
140
+ readonly sort_settings?: {
141
+ readonly time_window: number;
142
+ readonly decay_penalty: number;
143
+ readonly like_count_multiplier: number;
144
+ readonly reply_count_multiplier: number;
145
+ readonly repost_count_multiplier: number;
146
+ readonly reader_like_count_multiplier: number;
147
+ readonly reader_reply_count_multiplier: number;
148
+ readonly reader_repost_count_multiplier: number;
149
+ } | undefined;
150
+ };
151
+ readonly order: "new" | "trending" | "blend" | "hackernews" | "old";
152
+ readonly description?: string | undefined;
153
+ readonly file?: unknown;
154
+ readonly metadata?: {
155
+ readonly document?: unknown;
156
+ readonly schema?: {
157
+ readonly schemaVersion: 2;
158
+ readonly sequences: {
159
+ readonly [x: string]: number;
160
+ };
161
+ } | undefined;
162
+ readonly session?: unknown;
163
+ } | undefined;
164
+ }) => Promise<{
165
+ readonly message: string;
166
+ readonly algorithm: {
167
+ readonly algorithm_uri: string;
168
+ readonly algorithm_manifest_id: number | null;
169
+ readonly draft_algorithm_manifest_id: number;
170
+ readonly record_name: string;
171
+ readonly display_name: string;
172
+ readonly description: string;
173
+ readonly feed_did: string;
174
+ readonly avatar_url: string | null;
175
+ readonly cpm_cents: number | null;
176
+ readonly deleted: boolean;
177
+ readonly active: boolean;
178
+ readonly public: boolean;
179
+ readonly monetization_available: boolean;
180
+ readonly status: string | null;
181
+ readonly unique_operator_ids: readonly number[];
182
+ readonly user_id: number;
183
+ readonly id: number;
184
+ readonly created_at: Date;
185
+ readonly updated_at: Date;
186
+ readonly deleted_at: Date | null;
187
+ };
188
+ }>;
189
+ publishAlgorithm: (request: {
190
+ readonly params: {
191
+ readonly feedId: number;
192
+ };
193
+ readonly responseMode?: "decoded-only";
194
+ readonly sseOptions?: import("effect/encoding/Sse").DecodeOptions | undefined;
195
+ }) => Promise<unknown>;
196
+ getStickyPosts: (request: {
197
+ readonly params: {
198
+ readonly feedId: number;
199
+ };
200
+ readonly responseMode?: "decoded-only";
201
+ readonly sseOptions?: import("effect/encoding/Sse").DecodeOptions | undefined;
202
+ }) => Promise<{
203
+ readonly sticky_posts: readonly {
204
+ readonly id: number;
205
+ readonly created_at: string;
206
+ readonly updated_at: string;
207
+ readonly post: {
208
+ readonly cid: string;
209
+ readonly uri: string;
210
+ readonly $type: string;
211
+ readonly embed: any;
212
+ readonly author: {
213
+ readonly did: string;
214
+ readonly $type: string;
215
+ readonly avatar: string;
216
+ readonly handle: string;
217
+ readonly labels: readonly any[];
218
+ readonly viewer: any;
219
+ readonly createdAt: string;
220
+ readonly associated: any;
221
+ readonly displayName: string;
222
+ };
223
+ readonly labels: any;
224
+ readonly record: {
225
+ readonly tags: any;
226
+ readonly text: string;
227
+ readonly $type: string;
228
+ readonly embed: any;
229
+ readonly langs: readonly string[] | null;
230
+ readonly reply: any;
231
+ readonly facets: readonly any[] | null;
232
+ readonly labels: any;
233
+ readonly entities: any;
234
+ readonly createdAt: string;
235
+ };
236
+ readonly viewer: any;
237
+ readonly indexedAt: string;
238
+ readonly likeCount: number;
239
+ readonly quoteCount: number;
240
+ readonly replyCount: number;
241
+ readonly threadgate: unknown;
242
+ readonly repostCount: number;
243
+ };
244
+ readonly uri: string;
245
+ readonly author: string;
246
+ readonly is_active: boolean;
247
+ readonly sticky_type: "pinned" | "rotating";
248
+ readonly hidden: boolean;
249
+ readonly stopping_criteria?: {
250
+ readonly expiration_time?: number | undefined;
251
+ } | undefined;
252
+ }[];
253
+ }>;
254
+ createStickyPost: (request: {
255
+ readonly payload: {
256
+ readonly algo_id: number;
257
+ readonly is_active: boolean;
258
+ readonly sticky_type: "pinned" | "rotating";
259
+ readonly post_url: string;
260
+ readonly stopping_criteria?: {
261
+ readonly expiration_time?: number | undefined;
262
+ } | undefined;
263
+ };
264
+ readonly responseMode?: "decoded-only";
265
+ readonly sseOptions?: import("effect/encoding/Sse").DecodeOptions | undefined;
266
+ }) => Promise<{
267
+ readonly message: string;
268
+ }>;
269
+ deleteStickyPost: (request: {
270
+ readonly params: {
271
+ readonly feedId: number;
272
+ readonly stickyPostId: number;
273
+ };
274
+ readonly responseMode?: "decoded-only";
275
+ readonly sseOptions?: import("effect/encoding/Sse").DecodeOptions | undefined;
276
+ }) => Promise<{
277
+ readonly message: string;
278
+ }>;
279
+ updateStickyPost: (request: {
280
+ readonly params: {
281
+ readonly feedId: number;
282
+ readonly stickyPostId: number;
283
+ };
284
+ readonly query: {
285
+ readonly is_active: boolean;
286
+ readonly sticky_type: "pinned" | "rotating";
287
+ };
288
+ readonly responseMode?: "decoded-only";
289
+ readonly sseOptions?: import("effect/encoding/Sse").DecodeOptions | undefined;
290
+ }) => Promise<{
291
+ readonly message: string;
292
+ }>;
293
+ }, never, GrazeClient>;
23
294
  export { Algo, F } from "./builder.js";
24
295
  export * from "./schema/index.js";
25
296
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChD,OAAO,EAAe,KAAK,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAExE,KAAK,SAAS,CAAC,CAAC,IAAI,CAAC,SAAS,CAC5B,GAAG,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,KAChB,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,EAAE,KAAK,CAAC,GACxC,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,CAAC,CAAC,GACtC,KAAK,CAAC;AAEV,qBAAa,YAAY;IACvB,OAAO,EAAE,SAAS,CAAC,kBAAkB,CAAC,SAAS,CAAC,CAAC,CAAC;IAClD,QAAQ,EAAE,SAAS,CAAC,kBAAkB,CAAC,UAAU,CAAC,CAAC,CAAC;IACpD,QAAQ,EAAE,SAAS,CAAC,kBAAkB,CAAC,UAAU,CAAC,CAAC,CAAC;IACpD,UAAU,EAAE,SAAS,CAAC,kBAAkB,CAAC,YAAY,CAAC,CAAC,CAAC;IACxD,eAAe,EAAE,SAAS,CAAC,kBAAkB,CAAC,iBAAiB,CAAC,CAAC,CAAC;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AC,kBAAkB,CAAC,CAAC;IACtD,WAAW,EAAE;QACX,GAAG,EAAE,eAAe,CAAC,gBAAgB,CAAC,CAAC;QACvC,MAAM,EAAE,eAAe,CAAC,kBAAkB,CAAC,CAAC;QAC5C,MAAM,EAAE,eAAe,CAAC,kBAAkB,CAAC,CAAC;QAC5C,MAAM,EAAE,eAAe,CAAC,kBAAkB,CAAC,CAAC;KAC7C,CAAC;gBAEU,EACV,MAAM,EACN,MAAM,EACN,MAAM,GACP,EAAE;QACD,MAAM,EAAE,MAAM,CAAC;QACf,MAAM,EAAE,MAAM,CAAC;QACf,MAAM,EAAE,MAAM,CAAC;KAChB;CA+BF;AAED,QAAA,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBA4CT,CAAC;AAEH,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,cAAc,CAAC;AACvC,cAAc,mBAAmB,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { Schema } from "effect";
2
- import * as HttpApiEndpoint from "effect/unstable/httpapi/HttpApiEndpoint";
3
- import * as HttpApiGroup from "effect/unstable/httpapi/HttpApiGroup";
2
+ import * as HttpApiEndpoint from "effect/http-api/HttpApiEndpoint";
3
+ import * as HttpApiGroup from "effect/http-api/HttpApiGroup";
4
4
  export declare const StickyPostsApiGroup: HttpApiGroup.HttpApiGroup<"stickyposts", HttpApiEndpoint.HttpApiEndpoint<"create", "POST", "/app/api/v1/feed-management/sticky-posts", never, never, Schema.toCodecJson<Schema.Struct<{
5
5
  readonly is_active: Schema.Boolean;
6
6
  readonly sticky_type: Schema.Literals<readonly ["pinned", "rotating"]>;
@@ -1 +1 @@
1
- {"version":3,"file":"stickyposts.d.ts","sourceRoot":"","sources":["../../src/stickyposts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAwB,MAAM,QAAQ,CAAC;AAStD,OAAO,KAAK,eAAe,MAAM,yCAAyC,CAAC;AAC3E,OAAO,KAAK,YAAY,MAAM,sCAAsC,CAAC;AAarE,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAwC7B,CAAC"}
1
+ {"version":3,"file":"stickyposts.d.ts","sourceRoot":"","sources":["../../src/stickyposts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAwB,MAAM,QAAQ,CAAC;AAStD,OAAO,KAAK,eAAe,MAAM,iCAAiC,CAAC;AACnE,OAAO,KAAK,YAAY,MAAM,8BAA8B,CAAC;AAa7D,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAwC7B,CAAC"}
@@ -3,14 +3,14 @@ import { AlgoUpdateResponse, GetAlgoResponse, GetAlgorithmsResponse, HidePostBod
3
3
  import { FeedIdParam, UserIdParam } from "./common.js";
4
4
  import * as Form from "./schema/UpdateAlgorithmPayload.js";
5
5
  import { StickyPostsApiGroup } from "./stickyposts.js";
6
- import * as FetchHttpClient from "effect/unstable/http/FetchHttpClient";
7
- import * as HttpApi from "effect/unstable/httpapi/HttpApi";
8
- import * as HttpApiClient from "effect/unstable/httpapi/HttpApiClient";
9
- import * as HttpApiEndpoint from "effect/unstable/httpapi/HttpApiEndpoint";
10
- import * as HttpApiGroup from "effect/unstable/httpapi/HttpApiGroup";
11
- import * as HttpApiSchema from "effect/unstable/httpapi/HttpApiSchema";
12
- import * as HttpClient from "effect/unstable/http/HttpClient";
13
- import * as HttpClientRequest from "effect/unstable/http/HttpClientRequest";
6
+ import * as FetchHttpClient from "effect/http/FetchHttpClient";
7
+ import * as HttpApi from "effect/http-api/HttpApi";
8
+ import * as HttpApiClient from "effect/http-api/HttpApiClient";
9
+ import * as HttpApiEndpoint from "effect/http-api/HttpApiEndpoint";
10
+ import * as HttpApiGroup from "effect/http-api/HttpApiGroup";
11
+ import * as HttpApiSchema from "effect/http-api/HttpApiSchema";
12
+ import * as HttpClient from "effect/http/HttpClient";
13
+ import * as HttpClientRequest from "effect/http/HttpClientRequest";
14
14
  function isStringOrBlob(val) {
15
15
  return typeof val === "string" || val instanceof Blob;
16
16
  }
@@ -1 +1 @@
1
- {"version":3,"file":"GrazeClient.js","sourceRoot":"","sources":["../../src/GrazeClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChF,OAAO,EACL,kBAAkB,EAClB,eAAe,EACf,qBAAqB,EACrB,YAAY,EACZ,cAAc,GACf,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AACvD,OAAO,KAAK,IAAI,MAAM,oCAAoC,CAAC;AAC3D,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,eAAe,MAAM,sCAAsC,CAAC;AACxE,OAAO,KAAK,OAAO,MAAM,iCAAiC,CAAC;AAC3D,OAAO,KAAK,aAAa,MAAM,uCAAuC,CAAC;AACvE,OAAO,KAAK,eAAe,MAAM,yCAAyC,CAAC;AAC3E,OAAO,KAAK,YAAY,MAAM,sCAAsC,CAAC;AACrE,OAAO,KAAK,aAAa,MAAM,uCAAuC,CAAC;AACvE,OAAO,KAAK,UAAU,MAAM,iCAAiC,CA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,UAAU,CAAC,CAAC;IAChE,MAAM,gBAAgB,GAAG,CACvB,GAAG,IAAkE,EACrE,EAAE,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;IAChE,MAAM,gBAAgB,GAAG,CACvB,GAAG,IAAkE,EACrE,EAAE,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;IAEhE,OAAO;QACL,OAAO;QACP,QAAQ;QACR,QAAQ;QACR,UAAU;QACV,eAAe;QACf,gBAAgB;QAChB,cAAc;QACd,gBAAgB;QAChB,gBAAgB;QAChB,gBAAgB;KACjB,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,cAAc,CAAC;AACvC,cAAc,mBAAmB,CAAC"}
@@ -1,8 +1,8 @@
1
1
  import { Schema, SchemaTransformation } from "effect";
2
2
  import { FeedIdParam } from "./common.js";
3
3
  import { CreateStickyPostBody, GetStickyPostsBody, StickyPostIdParam, StickyPostSuccess, StickyType, } from "./schema/StickyPosts.js";
4
- import * as HttpApiEndpoint from "effect/unstable/httpapi/HttpApiEndpoint";
5
- import * as HttpApiGroup from "effect/unstable/httpapi/HttpApiGroup";
4
+ import * as HttpApiEndpoint from "effect/http-api/HttpApiEndpoint";
5
+ import * as HttpApiGroup from "effect/http-api/HttpApiGroup";
6
6
  // v4 dropped `Schema.BooleanFromString`; decode the query strings "true"/"false".
7
7
  const BooleanFromString = Schema.Literals(["true", "false"]).pipe(Schema.decodeTo(Schema.Boolean, SchemaTransformation.transform({
8
8
  decode: (s) => s === "true",
@@ -1 +1 @@
1
- {"version":3,"file":"stickyposts.js","sourceRoot":"","sources":["../../src/stickyposts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,oBAAoB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0CAA0C,EAAE;IACzE,OAAO,EAAE,oBAAoB;IAC7B,OAAO,EAAE,iBAAiB;CAC3B,CAAC,CACH;KACA,GAAG,CACF,eAAe,CAAC,GAAG,CACjB,KAAK,EACL,kDAAkD,EAClD;IACE,MAAM,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE;IAC/B,OAAO,EAAE,kBAAkB;CAC5B,CACF,CACF;KACA,GAAG,CACF,eAAe,CAAC,GAAG,CACjB,QAAQ,EACR,gEAAgE,EAChE;IACE,MAAM,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE,YAAY,EAAE,iBAAiB,EAAE;IAChE,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC;QACnB,SAAS,EAAE,iBAAiB;QAC5B,WAAW,EAAE,UAAU;KACxB,CAAC;IACF,OAAO,EAAE,iBAAiB;CAC3B,CACF,CACF;KACA,GAAG,CACF,eAAe,CAAC,IAAI,CAAC,QAAQ,CAAC,CAC5B,QAAQ,EACR,gEAAgE,EAChE;IACE,MAAM,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE,YAAY,EAAE,iBAAiB,EAAE;IAChE,OAAO,EAAE,iBAAiB;CAC3B,CACF,CACF,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graze-client",
3
- "version": "0.10.0",
3
+ "version": "0.11.0",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "description": "A Typescript Graze API client.",
@@ -50,7 +50,7 @@
50
50
  },
51
51
  "dependencies": {},
52
52
  "peerDependencies": {
53
- "effect": "^4.0.0-rc.116"
53
+ "effect": "^4.0.0"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@babel/cli": "^7.24.8",
@@ -62,8 +62,8 @@
62
62
  "@changesets/cli": "^2.27.8",
63
63
  "@effect/build-utils": "^0.8.9",
64
64
  "@effect/eslint-plugin": "^0.3.2",
65
- "@effect/language-service": "^0.87.1",
66
- "@effect/vitest": "4.0.0-rc.116",
65
+ "@effect/language-service": "^0.87.5",
66
+ "@effect/vitest": "4.0.5",
67
67
  "@eslint/compat": "1.1.1",
68
68
  "@eslint/eslintrc": "3.1.0",
69
69
  "@eslint/js": "9.10.0",
@@ -80,6 +80,6 @@
80
80
  "tsx": "^4.17.0",
81
81
  "typescript": "^5.6.2",
82
82
  "vitest": "^4.1.11",
83
- "effect": "4.0.0-rc.116"
83
+ "effect": "4.0.5"
84
84
  }
85
85
  }
@@ -10,14 +10,14 @@ import {
10
10
  import { FeedIdParam, UserIdParam } from "./common.js";
11
11
  import * as Form from "./schema/UpdateAlgorithmPayload.js";
12
12
  import { StickyPostsApiGroup } from "./stickyposts.js";
13
- import * as FetchHttpClient from "effect/unstable/http/FetchHttpClient";
14
- import * as HttpApi from "effect/unstable/httpapi/HttpApi";
15
- import * as HttpApiClient from "effect/unstable/httpapi/HttpApiClient";
16
- import * as HttpApiEndpoint from "effect/unstable/httpapi/HttpApiEndpoint";
17
- import * as HttpApiGroup from "effect/unstable/httpapi/HttpApiGroup";
18
- import * as HttpApiSchema from "effect/unstable/httpapi/HttpApiSchema";
19
- import * as HttpClient from "effect/unstable/http/HttpClient";
20
- import * as HttpClientRequest from "effect/unstable/http/HttpClientRequest";
13
+ import * as FetchHttpClient from "effect/http/FetchHttpClient";
14
+ import * as HttpApi from "effect/http-api/HttpApi";
15
+ import * as HttpApiClient from "effect/http-api/HttpApiClient";
16
+ import * as HttpApiEndpoint from "effect/http-api/HttpApiEndpoint";
17
+ import * as HttpApiGroup from "effect/http-api/HttpApiGroup";
18
+ import * as HttpApiSchema from "effect/http-api/HttpApiSchema";
19
+ import * as HttpClient from "effect/http/HttpClient";
20
+ import * as HttpClientRequest from "effect/http/HttpClientRequest";
21
21
 
22
22
  function isStringOrBlob(val: unknown): val is string | Blob {
23
23
  return typeof val === "string" || val instanceof Blob;
package/src/index.ts CHANGED
@@ -1,24 +1,20 @@
1
1
  import { ConfigProvider, Effect } from "effect";
2
- import { GrazeClient, type GrazeClientService } from "./GrazeClient.js";
2
+ import { GrazeClient } from "./GrazeClient.js";
3
3
 
4
- type Promisify<T> = T extends (
5
- ...args: Array<any>
6
- ) => Effect.Effect<infer A, infer _E, never>
7
- ? (...args: Parameters<T>) => Promise<A>
8
- : never;
4
+ type GrazePromiseApi = Effect.Success<typeof setup>;
9
5
 
10
6
  export class GrazeService {
11
- getFeed: Promisify<GrazeClientService["getFeed"]>;
12
- getFeeds: Promisify<GrazeClientService["getFeeds"]>;
13
- hidePost: Promisify<GrazeClientService["hidePost"]>;
14
- unhidePost: Promisify<GrazeClientService["unhidePost"]>;
15
- updateAlgorithm: Promisify<GrazeClientService["updateAlgorithm"]>;
16
- publishAlgorithm: Promisify<GrazeClientService["publishAlgorithm"]>;
7
+ getFeed: GrazePromiseApi["getFeed"];
8
+ getFeeds: GrazePromiseApi["getFeeds"];
9
+ hidePost: GrazePromiseApi["hidePost"];
10
+ unhidePost: GrazePromiseApi["unhidePost"];
11
+ updateAlgorithm: GrazePromiseApi["updateAlgorithm"];
12
+ publishAlgorithm: GrazePromiseApi["publishAlgorithm"];
17
13
  stickyposts: {
18
- get: Promisify<GrazeClientService["stickyposts"]["get"]>;
19
- create: Promisify<GrazeClientService["stickyposts"]["create"]>;
20
- delete: Promisify<GrazeClientService["stickyposts"]["delete"]>;
21
- update: Promisify<GrazeClientService["stickyposts"]["update"]>;
14
+ get: GrazePromiseApi["getStickyPosts"];
15
+ create: GrazePromiseApi["createStickyPost"];
16
+ delete: GrazePromiseApi["deleteStickyPost"];
17
+ update: GrazePromiseApi["updateStickyPost"];
22
18
  };
23
19
 
24
20
  constructor({
@@ -64,30 +60,34 @@ export class GrazeService {
64
60
 
65
61
  const setup = Effect.gen(function* () {
66
62
  const client = yield* GrazeClient;
67
- const getFeed = (...args: Parameters<typeof client.getFeed>) =>
68
- client.getFeed(...args).pipe(Effect.runPromise);
63
+ const getFeed = (
64
+ ...args: Parameters<typeof client.getFeed<"decoded-only">>
65
+ ) => client.getFeed(...args).pipe(Effect.runPromise);
69
66
  const getFeeds = (...args: Parameters<typeof client.getFeeds>) =>
70
67
  client.getFeeds(...args).pipe(Effect.runPromise);
71
- const hidePost = (...args: Parameters<typeof client.hidePost>) =>
72
- client.hidePost(...args).pipe(Effect.runPromise);
73
- const unhidePost = (...args: Parameters<typeof client.unhidePost>) =>
74
- client.unhidePost(...args).pipe(Effect.runPromise);
68
+ const hidePost = (
69
+ ...args: Parameters<typeof client.hidePost<"decoded-only">>
70
+ ) => client.hidePost(...args).pipe(Effect.runPromise);
71
+ const unhidePost = (
72
+ ...args: Parameters<typeof client.unhidePost<"decoded-only">>
73
+ ) => client.unhidePost(...args).pipe(Effect.runPromise);
75
74
  const updateAlgorithm = (
76
75
  ...args: Parameters<typeof client.updateAlgorithm>
77
76
  ) => client.updateAlgorithm(...args).pipe(Effect.runPromise);
78
77
  const publishAlgorithm = (
79
- ...args: Parameters<typeof client.publishAlgorithm>
78
+ ...args: Parameters<typeof client.publishAlgorithm<"decoded-only">>
80
79
  ) => client.publishAlgorithm(...args).pipe(Effect.runPromise);
81
- const getStickyPosts = (...args: Parameters<typeof client.stickyposts.get>) =>
82
- client.stickyposts.get(...args).pipe(Effect.runPromise);
80
+ const getStickyPosts = (
81
+ ...args: Parameters<typeof client.stickyposts.get<"decoded-only">>
82
+ ) => client.stickyposts.get(...args).pipe(Effect.runPromise);
83
83
  const createStickyPost = (
84
- ...args: Parameters<typeof client.stickyposts.create>
84
+ ...args: Parameters<typeof client.stickyposts.create<"decoded-only">>
85
85
  ) => client.stickyposts.create(...args).pipe(Effect.runPromise);
86
86
  const deleteStickyPost = (
87
- ...args: Parameters<typeof client.stickyposts.delete>
87
+ ...args: Parameters<typeof client.stickyposts.delete<"decoded-only">>
88
88
  ) => client.stickyposts.delete(...args).pipe(Effect.runPromise);
89
89
  const updateStickyPost = (
90
- ...args: Parameters<typeof client.stickyposts.update>
90
+ ...args: Parameters<typeof client.stickyposts.update<"decoded-only">>
91
91
  ) => client.stickyposts.update(...args).pipe(Effect.runPromise);
92
92
 
93
93
  return {
@@ -7,8 +7,8 @@ import {
7
7
  StickyPostSuccess,
8
8
  StickyType,
9
9
  } from "./schema/StickyPosts.js";
10
- import * as HttpApiEndpoint from "effect/unstable/httpapi/HttpApiEndpoint";
11
- import * as HttpApiGroup from "effect/unstable/httpapi/HttpApiGroup";
10
+ import * as HttpApiEndpoint from "effect/http-api/HttpApiEndpoint";
11
+ import * as HttpApiGroup from "effect/http-api/HttpApiGroup";
12
12
 
13
13
  // v4 dropped `Schema.BooleanFromString`; decode the query strings "true"/"false".
14
14
  const BooleanFromString = Schema.Literals(["true", "false"]).pipe(