@zilfu/sdk 0.0.1 → 0.1.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.cjs CHANGED
@@ -27,14 +27,11 @@ var formDataBodySerializer = {
27
27
  }
28
28
  };
29
29
  var jsonBodySerializer = {
30
- bodySerializer: (body) => JSON.stringify(
31
- body,
32
- (_key, value) => typeof value === "bigint" ? value.toString() : value
33
- )
30
+ bodySerializer: (body) => JSON.stringify(body, (_key, value) => typeof value === "bigint" ? value.toString() : value)
34
31
  };
35
32
 
36
33
  // src/generated/core/serverSentEvents.gen.ts
37
- var createSseClient = ({
34
+ function createSseClient({
38
35
  onRequest,
39
36
  onSseError,
40
37
  onSseEvent,
@@ -46,7 +43,7 @@ var createSseClient = ({
46
43
  sseSleepFn,
47
44
  url,
48
45
  ...options
49
- }) => {
46
+ }) {
50
47
  let lastEventId;
51
48
  const sleep = sseSleepFn ?? ((ms) => new Promise((resolve) => setTimeout(resolve, ms)));
52
49
  const createStream = async function* () {
@@ -74,10 +71,7 @@ var createSseClient = ({
74
71
  }
75
72
  const _fetch = options.fetch ?? globalThis.fetch;
76
73
  const response = await _fetch(request);
77
- if (!response.ok)
78
- throw new Error(
79
- `SSE failed: ${response.status} ${response.statusText}`
80
- );
74
+ if (!response.ok) throw new Error(`SSE failed: ${response.status} ${response.statusText}`);
81
75
  if (!response.body) throw new Error("No body in SSE response");
82
76
  const reader = response.body.pipeThrough(new TextDecoderStream()).getReader();
83
77
  let buffer = "";
@@ -93,6 +87,7 @@ var createSseClient = ({
93
87
  const { done, value } = await reader.read();
94
88
  if (done) break;
95
89
  buffer += value;
90
+ buffer = buffer.replace(/\r\n?/g, "\n");
96
91
  const chunks = buffer.split("\n\n");
97
92
  buffer = chunks.pop() ?? "";
98
93
  for (const chunk of chunks) {
@@ -107,10 +102,7 @@ var createSseClient = ({
107
102
  } else if (line.startsWith("id:")) {
108
103
  lastEventId = line.replace(/^id:\s*/, "");
109
104
  } else if (line.startsWith("retry:")) {
110
- const parsed = Number.parseInt(
111
- line.replace(/^retry:\s*/, ""),
112
- 10
113
- );
105
+ const parsed = Number.parseInt(line.replace(/^retry:\s*/, ""), 10);
114
106
  if (!Number.isNaN(parsed)) {
115
107
  retryDelay = parsed;
116
108
  }
@@ -156,17 +148,14 @@ var createSseClient = ({
156
148
  if (sseMaxRetryAttempts !== void 0 && attempt >= sseMaxRetryAttempts) {
157
149
  break;
158
150
  }
159
- const backoff = Math.min(
160
- retryDelay * 2 ** (attempt - 1),
161
- sseMaxRetryDelay ?? 3e4
162
- );
151
+ const backoff = Math.min(retryDelay * 2 ** (attempt - 1), sseMaxRetryDelay ?? 3e4);
163
152
  await sleep(backoff);
164
153
  }
165
154
  }
166
155
  };
167
156
  const stream = createStream();
168
157
  return { stream };
169
- };
158
+ }
170
159
 
171
160
  // src/generated/core/pathSerializer.gen.ts
172
161
  var separatorArrayExplode = (style) => {
@@ -267,11 +256,7 @@ var serializeObjectParam = ({
267
256
  if (style !== "deepObject" && !explode) {
268
257
  let values = [];
269
258
  Object.entries(value).forEach(([key, v]) => {
270
- values = [
271
- ...values,
272
- key,
273
- allowReserved ? v : encodeURIComponent(v)
274
- ];
259
+ values = [...values, key, allowReserved ? v : encodeURIComponent(v)];
275
260
  });
276
261
  const joinedValues2 = values.join(",");
277
262
  switch (style) {
@@ -322,10 +307,7 @@ var defaultPathSerializer = ({ path, url: _url }) => {
322
307
  continue;
323
308
  }
324
309
  if (Array.isArray(value)) {
325
- url = url.replace(
326
- match,
327
- serializeArrayParam({ explode, name, style, value })
328
- );
310
+ url = url.replace(match, serializeArrayParam({ explode, name, style, value }));
329
311
  continue;
330
312
  }
331
313
  if (typeof value === "object") {
@@ -413,9 +395,8 @@ var getAuthToken = async (auth, callback) => {
413
395
 
414
396
  // src/generated/client/utils.gen.ts
415
397
  var createQuerySerializer = ({
416
- allowReserved,
417
- array,
418
- object
398
+ parameters = {},
399
+ ...args
419
400
  } = {}) => {
420
401
  const querySerializer = (queryParams) => {
421
402
  const search = [];
@@ -425,29 +406,30 @@ var createQuerySerializer = ({
425
406
  if (value === void 0 || value === null) {
426
407
  continue;
427
408
  }
409
+ const options = parameters[name] || args;
428
410
  if (Array.isArray(value)) {
429
411
  const serializedArray = serializeArrayParam({
430
- allowReserved,
412
+ allowReserved: options.allowReserved,
431
413
  explode: true,
432
414
  name,
433
415
  style: "form",
434
416
  value,
435
- ...array
417
+ ...options.array
436
418
  });
437
419
  if (serializedArray) search.push(serializedArray);
438
420
  } else if (typeof value === "object") {
439
421
  const serializedObject = serializeObjectParam({
440
- allowReserved,
422
+ allowReserved: options.allowReserved,
441
423
  explode: true,
442
424
  name,
443
425
  style: "deepObject",
444
426
  value,
445
- ...object
427
+ ...options.object
446
428
  });
447
429
  if (serializedObject) search.push(serializedObject);
448
430
  } else {
449
431
  const serializedPrimitive = serializePrimitiveParam({
450
- allowReserved,
432
+ allowReserved: options.allowReserved,
451
433
  name,
452
434
  value
453
435
  });
@@ -473,9 +455,7 @@ var getParseAs = (contentType) => {
473
455
  if (cleanContent === "multipart/form-data") {
474
456
  return "formData";
475
457
  }
476
- if (["application/", "audio/", "image/", "video/"].some(
477
- (type) => cleanContent.startsWith(type)
478
- )) {
458
+ if (["application/", "audio/", "image/", "video/"].some((type) => cleanContent.startsWith(type))) {
479
459
  return "blob";
480
460
  }
481
461
  if (cleanContent.startsWith("text/")) {
@@ -661,108 +641,121 @@ var createClient = (config = {}) => {
661
641
  if (opts.body === void 0 || opts.serializedBody === "") {
662
642
  opts.headers.delete("Content-Type");
663
643
  }
664
- const url = buildUrl(opts);
665
- return { opts, url };
644
+ const resolvedOpts = opts;
645
+ const url = buildUrl(resolvedOpts);
646
+ return { opts: resolvedOpts, url };
666
647
  };
667
648
  const request = async (options) => {
668
- const { opts, url } = await beforeRequest(options);
669
- const requestInit = {
670
- redirect: "follow",
671
- ...opts,
672
- body: getValidRequestBody(opts)
673
- };
674
- let request2 = new Request(url, requestInit);
675
- for (const fn of interceptors.request.fns) {
676
- if (fn) {
677
- request2 = await fn(request2, opts);
649
+ const throwOnError = options.throwOnError ?? _config.throwOnError;
650
+ const responseStyle = options.responseStyle ?? _config.responseStyle;
651
+ let request2;
652
+ let response;
653
+ try {
654
+ const { opts, url } = await beforeRequest(options);
655
+ const requestInit = {
656
+ redirect: "follow",
657
+ ...opts,
658
+ body: getValidRequestBody(opts)
659
+ };
660
+ request2 = new Request(url, requestInit);
661
+ for (const fn of interceptors.request.fns) {
662
+ if (fn) {
663
+ request2 = await fn(request2, opts);
664
+ }
678
665
  }
679
- }
680
- const _fetch = opts.fetch;
681
- let response = await _fetch(request2);
682
- for (const fn of interceptors.response.fns) {
683
- if (fn) {
684
- response = await fn(response, request2, opts);
666
+ const _fetch = opts.fetch;
667
+ response = await _fetch(request2);
668
+ for (const fn of interceptors.response.fns) {
669
+ if (fn) {
670
+ response = await fn(response, request2, opts);
671
+ }
685
672
  }
686
- }
687
- const result = {
688
- request: request2,
689
- response
690
- };
691
- if (response.ok) {
692
- const parseAs = (opts.parseAs === "auto" ? getParseAs(response.headers.get("Content-Type")) : opts.parseAs) ?? "json";
693
- if (response.status === 204 || response.headers.get("Content-Length") === "0") {
694
- let emptyData;
673
+ const result = {
674
+ request: request2,
675
+ response
676
+ };
677
+ if (response.ok) {
678
+ const parseAs = (opts.parseAs === "auto" ? getParseAs(response.headers.get("Content-Type")) : opts.parseAs) ?? "json";
679
+ if (response.status === 204 || response.headers.get("Content-Length") === "0") {
680
+ let emptyData;
681
+ switch (parseAs) {
682
+ case "arrayBuffer":
683
+ case "blob":
684
+ case "text":
685
+ emptyData = await response[parseAs]();
686
+ break;
687
+ case "formData":
688
+ emptyData = new FormData();
689
+ break;
690
+ case "stream":
691
+ emptyData = response.body;
692
+ break;
693
+ case "json":
694
+ default:
695
+ emptyData = {};
696
+ break;
697
+ }
698
+ return opts.responseStyle === "data" ? emptyData : {
699
+ data: emptyData,
700
+ ...result
701
+ };
702
+ }
703
+ let data;
695
704
  switch (parseAs) {
696
705
  case "arrayBuffer":
697
706
  case "blob":
707
+ case "formData":
698
708
  case "text":
699
- emptyData = await response[parseAs]();
709
+ data = await response[parseAs]();
700
710
  break;
701
- case "formData":
702
- emptyData = new FormData();
711
+ case "json": {
712
+ const text = await response.text();
713
+ data = text ? JSON.parse(text) : {};
703
714
  break;
715
+ }
704
716
  case "stream":
705
- emptyData = response.body;
706
- break;
707
- case "json":
708
- default:
709
- emptyData = {};
710
- break;
717
+ return opts.responseStyle === "data" ? response.body : {
718
+ data: response.body,
719
+ ...result
720
+ };
721
+ }
722
+ if (parseAs === "json") {
723
+ if (opts.responseValidator) {
724
+ await opts.responseValidator(data);
725
+ }
726
+ if (opts.responseTransformer) {
727
+ data = await opts.responseTransformer(data);
728
+ }
711
729
  }
712
- return opts.responseStyle === "data" ? emptyData : {
713
- data: emptyData,
730
+ return opts.responseStyle === "data" ? data : {
731
+ data,
714
732
  ...result
715
733
  };
716
734
  }
717
- let data;
718
- switch (parseAs) {
719
- case "arrayBuffer":
720
- case "blob":
721
- case "formData":
722
- case "json":
723
- case "text":
724
- data = await response[parseAs]();
725
- break;
726
- case "stream":
727
- return opts.responseStyle === "data" ? response.body : {
728
- data: response.body,
729
- ...result
730
- };
735
+ const textError = await response.text();
736
+ let jsonError;
737
+ try {
738
+ jsonError = JSON.parse(textError);
739
+ } catch {
731
740
  }
732
- if (parseAs === "json") {
733
- if (opts.responseValidator) {
734
- await opts.responseValidator(data);
735
- }
736
- if (opts.responseTransformer) {
737
- data = await opts.responseTransformer(data);
741
+ throw jsonError ?? textError;
742
+ } catch (error) {
743
+ let finalError = error;
744
+ for (const fn of interceptors.error.fns) {
745
+ if (fn) {
746
+ finalError = await fn(finalError, response, request2, options);
738
747
  }
739
748
  }
740
- return opts.responseStyle === "data" ? data : {
741
- data,
742
- ...result
743
- };
744
- }
745
- const textError = await response.text();
746
- let jsonError;
747
- try {
748
- jsonError = JSON.parse(textError);
749
- } catch {
750
- }
751
- const error = jsonError ?? textError;
752
- let finalError = error;
753
- for (const fn of interceptors.error.fns) {
754
- if (fn) {
755
- finalError = await fn(error, response, request2, opts);
749
+ finalError = finalError || {};
750
+ if (throwOnError) {
751
+ throw finalError;
756
752
  }
753
+ return responseStyle === "data" ? void 0 : {
754
+ error: finalError,
755
+ request: request2,
756
+ response
757
+ };
757
758
  }
758
- finalError = finalError || {};
759
- if (opts.throwOnError) {
760
- throw finalError;
761
- }
762
- return opts.responseStyle === "data" ? void 0 : {
763
- error: finalError,
764
- ...result
765
- };
766
759
  };
767
760
  const makeMethodFn = (method) => (options) => request({ ...options, method });
768
761
  const makeSseFn = (method) => async (options) => {
@@ -770,7 +763,6 @@ var createClient = (config = {}) => {
770
763
  return createSseClient({
771
764
  ...opts,
772
765
  body: opts.body,
773
- headers: opts.headers,
774
766
  method,
775
767
  onRequest: async (url2, init) => {
776
768
  let request2 = new Request(url2, init);
@@ -781,11 +773,13 @@ var createClient = (config = {}) => {
781
773
  }
782
774
  return request2;
783
775
  },
776
+ serializedBody: getValidRequestBody(opts),
784
777
  url
785
778
  });
786
779
  };
780
+ const _buildUrl = (options) => buildUrl({ ..._config, ...options });
787
781
  return {
788
- buildUrl,
782
+ buildUrl: _buildUrl,
789
783
  connect: makeMethodFn("CONNECT"),
790
784
  delete: makeMethodFn("DELETE"),
791
785
  get: makeMethodFn("GET"),
@@ -814,583 +808,611 @@ var createClient = (config = {}) => {
814
808
  };
815
809
 
816
810
  // src/generated/client.gen.ts
817
- var client = createClient(createConfig({
818
- baseUrl: "https://zilfu.app/api"
819
- }));
820
-
821
- // src/client.ts
822
- function createZilfuClient(options) {
823
- const { baseUrl, token, fetch: fetchImpl } = options;
824
- client.setConfig({
825
- baseUrl,
826
- auth: typeof token === "function" ? token : token,
827
- ...fetchImpl ? { fetch: fetchImpl } : {}
828
- });
829
- }
811
+ var client = createClient(createConfig({ baseUrl: "https://zilfu.app/api" }));
830
812
 
831
813
  // src/generated/sdk.gen.ts
832
- var accountsDestroyMany = (options) => {
833
- return (options.client ?? client).delete({
834
- security: [
835
- {
836
- scheme: "bearer",
837
- type: "http"
838
- }
839
- ],
840
- url: "/spaces/{space}/accounts",
841
- ...options
842
- });
843
- };
844
- var accountsIndex = (options) => {
845
- return (options.client ?? client).get({
846
- security: [
847
- {
848
- scheme: "bearer",
849
- type: "http"
850
- }
851
- ],
852
- url: "/spaces/{space}/accounts",
853
- ...options
854
- });
855
- };
856
- var accountsActivate = (options) => {
857
- return (options.client ?? client).patch({
858
- security: [
859
- {
860
- scheme: "bearer",
861
- type: "http"
862
- }
863
- ],
864
- url: "/spaces/{space}/accounts/{account}/activate",
865
- ...options
866
- });
867
- };
868
- var accountsBoards = (options) => {
869
- return (options.client ?? client).get({
870
- security: [
871
- {
872
- scheme: "bearer",
873
- type: "http"
874
- }
875
- ],
876
- url: "/spaces/{space}/accounts/{account}/boards",
877
- ...options
878
- });
879
- };
880
- var accountsDestroy = (options) => {
881
- return (options.client ?? client).delete({
882
- security: [
883
- {
884
- scheme: "bearer",
885
- type: "http"
886
- }
887
- ],
888
- url: "/spaces/{space}/accounts/{account}",
889
- ...options
890
- });
891
- };
892
- var apiTokensStore = (options) => {
893
- return (options.client ?? client).post({
894
- security: [
895
- {
896
- scheme: "bearer",
897
- type: "http"
898
- }
899
- ],
900
- url: "/api-tokens",
901
- ...options,
902
- headers: {
903
- "Content-Type": "application/json",
904
- ...options.headers
905
- }
906
- });
907
- };
908
- var apiTokensDestroy = (options) => {
909
- return (options.client ?? client).delete({
910
- security: [
911
- {
912
- scheme: "bearer",
913
- type: "http"
914
- }
915
- ],
916
- url: "/api-tokens/{tokenId}",
917
- ...options
918
- });
919
- };
920
- var bioBlocksIndex = (options) => {
921
- return (options.client ?? client).get({
922
- security: [
923
- {
924
- scheme: "bearer",
925
- type: "http"
926
- }
927
- ],
928
- url: "/spaces/{space}/bio/blocks",
929
- ...options
930
- });
931
- };
932
- var bioBlocksStore = (options) => {
933
- return (options.client ?? client).post({
934
- security: [
935
- {
936
- scheme: "bearer",
937
- type: "http"
938
- }
939
- ],
940
- url: "/spaces/{space}/bio/blocks",
941
- ...options,
942
- headers: {
943
- "Content-Type": "application/json",
944
- ...options.headers
945
- }
946
- });
947
- };
948
- var bioBlocksDestroy = (options) => {
949
- return (options.client ?? client).delete({
950
- security: [
951
- {
952
- scheme: "bearer",
953
- type: "http"
954
- }
955
- ],
956
- url: "/spaces/{space}/bio/blocks/{block}",
957
- ...options
958
- });
959
- };
960
- var bioBlocksUpdate = (options) => {
961
- return (options.client ?? client).put({
962
- security: [
963
- {
964
- scheme: "bearer",
965
- type: "http"
966
- }
967
- ],
968
- url: "/spaces/{space}/bio/blocks/{block}",
969
- ...options,
970
- headers: {
971
- "Content-Type": "application/json",
972
- ...options.headers
973
- }
974
- });
975
- };
976
- var bioBlocksReorder = (options) => {
977
- return (options.client ?? client).post({
978
- security: [
979
- {
980
- scheme: "bearer",
981
- type: "http"
982
- }
983
- ],
984
- url: "/spaces/{space}/bio/blocks/{block}/reorder",
985
- ...options,
986
- headers: {
987
- "Content-Type": "application/json",
988
- ...options.headers
989
- }
990
- });
991
- };
992
- var bioShow = (options) => {
993
- return (options.client ?? client).get({
994
- security: [
995
- {
996
- scheme: "bearer",
997
- type: "http"
998
- }
999
- ],
1000
- url: "/spaces/{space}/bio",
1001
- ...options
1002
- });
1003
- };
1004
- var bioStore = (options) => {
1005
- return (options.client ?? client).post({
1006
- security: [
1007
- {
1008
- scheme: "bearer",
1009
- type: "http"
1010
- }
1011
- ],
1012
- url: "/spaces/{space}/bio",
1013
- ...options,
1014
- headers: {
1015
- "Content-Type": "application/json",
1016
- ...options.headers
1017
- }
1018
- });
1019
- };
1020
- var bioUpdate = (options) => {
1021
- return (options.client ?? client).put({
1022
- security: [
1023
- {
1024
- scheme: "bearer",
1025
- type: "http"
1026
- }
1027
- ],
1028
- url: "/spaces/{space}/bio",
1029
- ...options,
1030
- headers: {
1031
- "Content-Type": "application/json",
1032
- ...options.headers
1033
- }
1034
- });
1035
- };
1036
- var bioAvatar = (options) => {
1037
- return (options.client ?? client).post({
1038
- ...formDataBodySerializer,
1039
- security: [
1040
- {
1041
- scheme: "bearer",
1042
- type: "http"
1043
- }
1044
- ],
1045
- url: "/spaces/{space}/bio/avatar",
1046
- ...options,
1047
- headers: {
1048
- "Content-Type": null,
1049
- ...options.headers
1050
- }
1051
- });
814
+ var HeyApiClient = class {
815
+ client;
816
+ constructor(args) {
817
+ this.client = args?.client ?? client;
818
+ }
1052
819
  };
1053
- var mediaStore = (options) => {
1054
- return (options.client ?? client).post({
1055
- ...formDataBodySerializer,
1056
- security: [
1057
- {
1058
- scheme: "bearer",
1059
- type: "http"
1060
- }
1061
- ],
1062
- url: "/media",
1063
- ...options,
1064
- headers: {
1065
- "Content-Type": null,
1066
- ...options.headers
820
+ var HeyApiRegistry = class {
821
+ defaultKey = "default";
822
+ instances = /* @__PURE__ */ new Map();
823
+ get(key) {
824
+ const instance = this.instances.get(key ?? this.defaultKey);
825
+ if (!instance) {
826
+ throw new Error(`No SDK client found. Create one with "new ZilfuClient()" to fix this error.`);
1067
827
  }
1068
- });
828
+ return instance;
829
+ }
830
+ set(value, key) {
831
+ this.instances.set(key ?? this.defaultKey, value);
832
+ }
1069
833
  };
1070
- var mediaDestroy = (options) => {
1071
- return (options.client ?? client).delete({
1072
- security: [
1073
- {
1074
- scheme: "bearer",
1075
- type: "http"
1076
- }
1077
- ],
1078
- url: "/media/{media}",
1079
- ...options
1080
- });
834
+ var Accounts = class extends HeyApiClient {
835
+ /**
836
+ * Disconnect multiple accounts
837
+ *
838
+ * Removes several social account connections in a single request and dispatches a webhook event for each.
839
+ */
840
+ deleteMany(options) {
841
+ return (options.client ?? this.client).delete({
842
+ security: [{ scheme: "bearer", type: "http" }],
843
+ url: "/spaces/{space}/accounts",
844
+ ...options
845
+ });
846
+ }
847
+ /**
848
+ * List accounts
849
+ *
850
+ * Returns all connected social accounts for the given space.
851
+ */
852
+ list(options) {
853
+ return (options.client ?? this.client).get({
854
+ security: [{ scheme: "bearer", type: "http" }],
855
+ url: "/spaces/{space}/accounts",
856
+ ...options
857
+ });
858
+ }
859
+ /**
860
+ * Activate an account
861
+ *
862
+ * Activates the given account and deactivates all other accounts on the same platform within the space.
863
+ */
864
+ activate(options) {
865
+ return (options.client ?? this.client).patch({
866
+ security: [{ scheme: "bearer", type: "http" }],
867
+ url: "/spaces/{space}/accounts/{account}/activate",
868
+ ...options
869
+ });
870
+ }
871
+ /**
872
+ * List Pinterest boards
873
+ *
874
+ * Returns the Pinterest boards available for the given account.
875
+ */
876
+ boards(options) {
877
+ return (options.client ?? this.client).get({
878
+ security: [{ scheme: "bearer", type: "http" }],
879
+ url: "/spaces/{space}/accounts/{account}/boards",
880
+ ...options
881
+ });
882
+ }
883
+ /**
884
+ * Disconnect an account
885
+ *
886
+ * Removes the social account connection and dispatches a webhook event.
887
+ */
888
+ delete(options) {
889
+ return (options.client ?? this.client).delete({
890
+ security: [{ scheme: "bearer", type: "http" }],
891
+ url: "/spaces/{space}/accounts/{account}",
892
+ ...options
893
+ });
894
+ }
1081
895
  };
1082
- var postsIndex = (options) => {
1083
- return (options.client ?? client).get({
1084
- security: [
1085
- {
1086
- scheme: "bearer",
1087
- type: "http"
896
+ var Tokens = class extends HeyApiClient {
897
+ /**
898
+ * Create an API token
899
+ *
900
+ * Generates a new personal access token for the authenticated user.
901
+ */
902
+ create(options) {
903
+ return (options.client ?? this.client).post({
904
+ security: [{ scheme: "bearer", type: "http" }],
905
+ url: "/api-tokens",
906
+ ...options,
907
+ headers: {
908
+ "Content-Type": "application/json",
909
+ ...options.headers
1088
910
  }
1089
- ],
1090
- url: "/spaces/{space}/posts",
1091
- ...options
1092
- });
911
+ });
912
+ }
913
+ /**
914
+ * Revoke an API token
915
+ *
916
+ * Deletes the specified personal access token.
917
+ */
918
+ delete(options) {
919
+ return (options.client ?? this.client).delete({
920
+ security: [{ scheme: "bearer", type: "http" }],
921
+ url: "/api-tokens/{tokenId}",
922
+ ...options
923
+ });
924
+ }
1093
925
  };
1094
- var postsStore = (options) => {
1095
- return (options.client ?? client).post({
1096
- security: [
1097
- {
1098
- scheme: "bearer",
1099
- type: "http"
926
+ var BioBlocks = class extends HeyApiClient {
927
+ list(options) {
928
+ return (options.client ?? this.client).get({
929
+ security: [{ scheme: "bearer", type: "http" }],
930
+ url: "/spaces/{space}/bio/blocks",
931
+ ...options
932
+ });
933
+ }
934
+ create(options) {
935
+ return (options.client ?? this.client).post({
936
+ security: [{ scheme: "bearer", type: "http" }],
937
+ url: "/spaces/{space}/bio/blocks",
938
+ ...options,
939
+ headers: {
940
+ "Content-Type": "application/json",
941
+ ...options.headers
1100
942
  }
1101
- ],
1102
- url: "/spaces/{space}/posts",
1103
- ...options,
1104
- headers: {
1105
- "Content-Type": "application/json",
1106
- ...options.headers
1107
- }
1108
- });
1109
- };
1110
- var postsDestroy = (options) => {
1111
- return (options.client ?? client).delete({
1112
- security: [
1113
- {
1114
- scheme: "bearer",
1115
- type: "http"
943
+ });
944
+ }
945
+ delete(options) {
946
+ return (options.client ?? this.client).delete({
947
+ security: [{ scheme: "bearer", type: "http" }],
948
+ url: "/spaces/{space}/bio/blocks/{block}",
949
+ ...options
950
+ });
951
+ }
952
+ update(options) {
953
+ return (options.client ?? this.client).put({
954
+ security: [{ scheme: "bearer", type: "http" }],
955
+ url: "/spaces/{space}/bio/blocks/{block}",
956
+ ...options,
957
+ headers: {
958
+ "Content-Type": "application/json",
959
+ ...options.headers
1116
960
  }
1117
- ],
1118
- url: "/spaces/{space}/posts/{post}",
1119
- ...options
1120
- });
1121
- };
1122
- var postsShow = (options) => {
1123
- return (options.client ?? client).get({
1124
- security: [
1125
- {
1126
- scheme: "bearer",
1127
- type: "http"
961
+ });
962
+ }
963
+ reorder(options) {
964
+ return (options.client ?? this.client).post({
965
+ security: [{ scheme: "bearer", type: "http" }],
966
+ url: "/spaces/{space}/bio/blocks/{block}/reorder",
967
+ ...options,
968
+ headers: {
969
+ "Content-Type": "application/json",
970
+ ...options.headers
1128
971
  }
1129
- ],
1130
- url: "/spaces/{space}/posts/{post}",
1131
- ...options
1132
- });
972
+ });
973
+ }
1133
974
  };
1134
- var postsUpdate = (options) => {
1135
- return (options.client ?? client).put({
1136
- security: [
1137
- {
1138
- scheme: "bearer",
1139
- type: "http"
975
+ var Bio = class extends HeyApiClient {
976
+ get(options) {
977
+ return (options.client ?? this.client).get({
978
+ security: [{ scheme: "bearer", type: "http" }],
979
+ url: "/spaces/{space}/bio",
980
+ ...options
981
+ });
982
+ }
983
+ create(options) {
984
+ return (options.client ?? this.client).post({
985
+ security: [{ scheme: "bearer", type: "http" }],
986
+ url: "/spaces/{space}/bio",
987
+ ...options,
988
+ headers: {
989
+ "Content-Type": "application/json",
990
+ ...options.headers
1140
991
  }
1141
- ],
1142
- url: "/spaces/{space}/posts/{post}",
1143
- ...options,
1144
- headers: {
1145
- "Content-Type": "application/json",
1146
- ...options.headers
1147
- }
1148
- });
1149
- };
1150
- var clustersUpdate = (options) => {
1151
- return (options.client ?? client).put({
1152
- security: [
1153
- {
1154
- scheme: "bearer",
1155
- type: "http"
992
+ });
993
+ }
994
+ update(options) {
995
+ return (options.client ?? this.client).put({
996
+ security: [{ scheme: "bearer", type: "http" }],
997
+ url: "/spaces/{space}/bio",
998
+ ...options,
999
+ headers: {
1000
+ "Content-Type": "application/json",
1001
+ ...options.headers
1156
1002
  }
1157
- ],
1158
- url: "/spaces/{space}/clusters/{cluster_id}",
1159
- ...options,
1160
- headers: {
1161
- "Content-Type": "application/json",
1162
- ...options.headers
1163
- }
1164
- });
1165
- };
1166
- var queueIndex = (options) => {
1167
- return (options.client ?? client).get({
1168
- security: [
1169
- {
1170
- scheme: "bearer",
1171
- type: "http"
1003
+ });
1004
+ }
1005
+ uploadAvatar(options) {
1006
+ return (options.client ?? this.client).post({
1007
+ ...formDataBodySerializer,
1008
+ security: [{ scheme: "bearer", type: "http" }],
1009
+ url: "/spaces/{space}/bio/avatar",
1010
+ ...options,
1011
+ headers: {
1012
+ "Content-Type": null,
1013
+ ...options.headers
1172
1014
  }
1173
- ],
1174
- url: "/spaces/{space}/queue",
1175
- ...options
1176
- });
1015
+ });
1016
+ }
1177
1017
  };
1178
- var slotsIndex = (options) => {
1179
- return (options.client ?? client).get({
1180
- security: [
1181
- {
1182
- scheme: "bearer",
1183
- type: "http"
1018
+ var Media = class extends HeyApiClient {
1019
+ /**
1020
+ * Upload a media file
1021
+ *
1022
+ * Accepts images (JPEG, PNG, WebP) and videos (MP4, QuickTime). Images are auto-optimized.
1023
+ */
1024
+ create(options) {
1025
+ return (options.client ?? this.client).post({
1026
+ ...formDataBodySerializer,
1027
+ security: [{ scheme: "bearer", type: "http" }],
1028
+ url: "/media",
1029
+ ...options,
1030
+ headers: {
1031
+ "Content-Type": null,
1032
+ ...options.headers
1184
1033
  }
1185
- ],
1186
- url: "/spaces/{space}/slots",
1187
- ...options
1188
- });
1034
+ });
1035
+ }
1036
+ /**
1037
+ * Delete a media file
1038
+ *
1039
+ * Removes the media file from storage and deletes the record.
1040
+ */
1041
+ delete(options) {
1042
+ return (options.client ?? this.client).delete({
1043
+ security: [{ scheme: "bearer", type: "http" }],
1044
+ url: "/media/{media}",
1045
+ ...options
1046
+ });
1047
+ }
1189
1048
  };
1190
- var slotsStore = (options) => {
1191
- return (options.client ?? client).post({
1192
- security: [
1193
- {
1194
- scheme: "bearer",
1195
- type: "http"
1049
+ var Posts = class extends HeyApiClient {
1050
+ /**
1051
+ * List posts
1052
+ *
1053
+ * Returns paginated posts for the space. Filterable by status, account, and date range via query parameters.
1054
+ */
1055
+ list(options) {
1056
+ return (options.client ?? this.client).get({
1057
+ security: [{ scheme: "bearer", type: "http" }],
1058
+ url: "/spaces/{space}/posts",
1059
+ ...options
1060
+ });
1061
+ }
1062
+ /**
1063
+ * Create posts
1064
+ *
1065
+ * Creates one or more posts as a cluster. Supports draft, scheduled, or immediate publishing modes.
1066
+ */
1067
+ create(options) {
1068
+ return (options.client ?? this.client).post({
1069
+ security: [{ scheme: "bearer", type: "http" }],
1070
+ url: "/spaces/{space}/posts",
1071
+ ...options,
1072
+ headers: {
1073
+ "Content-Type": "application/json",
1074
+ ...options.headers
1196
1075
  }
1197
- ],
1198
- url: "/spaces/{space}/slots",
1199
- ...options,
1200
- headers: {
1201
- "Content-Type": "application/json",
1202
- ...options.headers
1203
- }
1204
- });
1205
- };
1206
- var slotsDestroy = (options) => {
1207
- return (options.client ?? client).delete({
1208
- security: [
1209
- {
1210
- scheme: "bearer",
1211
- type: "http"
1076
+ });
1077
+ }
1078
+ /**
1079
+ * Delete a post
1080
+ *
1081
+ * Permanently deletes the given post.
1082
+ */
1083
+ delete(options) {
1084
+ return (options.client ?? this.client).delete({
1085
+ security: [{ scheme: "bearer", type: "http" }],
1086
+ url: "/spaces/{space}/posts/{post}",
1087
+ ...options
1088
+ });
1089
+ }
1090
+ /**
1091
+ * Get a post
1092
+ *
1093
+ * Returns a single post with its account, children, and media.
1094
+ */
1095
+ get(options) {
1096
+ return (options.client ?? this.client).get({
1097
+ security: [{ scheme: "bearer", type: "http" }],
1098
+ url: "/spaces/{space}/posts/{post}",
1099
+ ...options
1100
+ });
1101
+ }
1102
+ /**
1103
+ * Update a post
1104
+ *
1105
+ * Updates a single post's content, schedule, and media attachments.
1106
+ */
1107
+ update(options) {
1108
+ return (options.client ?? this.client).put({
1109
+ security: [{ scheme: "bearer", type: "http" }],
1110
+ url: "/spaces/{space}/posts/{post}",
1111
+ ...options,
1112
+ headers: {
1113
+ "Content-Type": "application/json",
1114
+ ...options.headers
1212
1115
  }
1213
- ],
1214
- url: "/spaces/{space}/slots/{slot}",
1215
- ...options
1216
- });
1116
+ });
1117
+ }
1217
1118
  };
1218
- var spacesIndex = (options) => {
1219
- return (options?.client ?? client).get({
1220
- security: [
1221
- {
1222
- scheme: "bearer",
1223
- type: "http"
1119
+ var Clusters = class extends HeyApiClient {
1120
+ /**
1121
+ * Update a cluster of posts
1122
+ *
1123
+ * Updates all posts sharing the given cluster ID. Handles adding/removing accounts and re-scheduling.
1124
+ */
1125
+ update(options) {
1126
+ return (options.client ?? this.client).put({
1127
+ security: [{ scheme: "bearer", type: "http" }],
1128
+ url: "/spaces/{space}/clusters/{cluster_id}",
1129
+ ...options,
1130
+ headers: {
1131
+ "Content-Type": "application/json",
1132
+ ...options.headers
1224
1133
  }
1225
- ],
1226
- url: "/spaces",
1227
- ...options
1228
- });
1134
+ });
1135
+ }
1229
1136
  };
1230
- var spacesStore = (options) => {
1231
- return (options.client ?? client).post({
1232
- security: [
1233
- {
1234
- scheme: "bearer",
1235
- type: "http"
1236
- }
1237
- ],
1238
- url: "/spaces",
1239
- ...options,
1240
- headers: {
1241
- "Content-Type": "application/json",
1242
- ...options.headers
1243
- }
1244
- });
1137
+ var Queue = class extends HeyApiClient {
1138
+ /**
1139
+ * Get next available queue slots
1140
+ *
1141
+ * Returns up to 9 upcoming available time slots based on the space's scheduling configuration.
1142
+ */
1143
+ list(options) {
1144
+ return (options.client ?? this.client).get({
1145
+ security: [{ scheme: "bearer", type: "http" }],
1146
+ url: "/spaces/{space}/queue",
1147
+ ...options
1148
+ });
1149
+ }
1245
1150
  };
1246
- var spacesDestroy = (options) => {
1247
- return (options.client ?? client).delete({
1248
- security: [
1249
- {
1250
- scheme: "bearer",
1251
- type: "http"
1151
+ var Slots = class extends HeyApiClient {
1152
+ /**
1153
+ * List slots
1154
+ *
1155
+ * Returns all scheduling slots for the space, ordered by day and time.
1156
+ */
1157
+ list(options) {
1158
+ return (options.client ?? this.client).get({
1159
+ security: [{ scheme: "bearer", type: "http" }],
1160
+ url: "/spaces/{space}/slots",
1161
+ ...options
1162
+ });
1163
+ }
1164
+ /**
1165
+ * Create slots
1166
+ *
1167
+ * Creates scheduling slots for the given days of the week and time.
1168
+ */
1169
+ create(options) {
1170
+ return (options.client ?? this.client).post({
1171
+ security: [{ scheme: "bearer", type: "http" }],
1172
+ url: "/spaces/{space}/slots",
1173
+ ...options,
1174
+ headers: {
1175
+ "Content-Type": "application/json",
1176
+ ...options.headers
1252
1177
  }
1253
- ],
1254
- url: "/spaces/{space}",
1255
- ...options
1256
- });
1178
+ });
1179
+ }
1180
+ /**
1181
+ * Delete a slot
1182
+ *
1183
+ * Removes a scheduling slot from the space.
1184
+ */
1185
+ delete(options) {
1186
+ return (options.client ?? this.client).delete({
1187
+ security: [{ scheme: "bearer", type: "http" }],
1188
+ url: "/spaces/{space}/slots/{slot}",
1189
+ ...options
1190
+ });
1191
+ }
1257
1192
  };
1258
- var spacesShow = (options) => {
1259
- return (options.client ?? client).get({
1260
- security: [
1261
- {
1262
- scheme: "bearer",
1263
- type: "http"
1193
+ var Spaces = class extends HeyApiClient {
1194
+ /**
1195
+ * List spaces
1196
+ *
1197
+ * Returns all spaces belonging to the authenticated user, ordered by most recent.
1198
+ */
1199
+ list(options) {
1200
+ return (options?.client ?? this.client).get({
1201
+ security: [{ scheme: "bearer", type: "http" }],
1202
+ url: "/spaces",
1203
+ ...options
1204
+ });
1205
+ }
1206
+ /**
1207
+ * Create a space
1208
+ *
1209
+ * Creates a new space for the authenticated user.
1210
+ */
1211
+ create(options) {
1212
+ return (options.client ?? this.client).post({
1213
+ security: [{ scheme: "bearer", type: "http" }],
1214
+ url: "/spaces",
1215
+ ...options,
1216
+ headers: {
1217
+ "Content-Type": "application/json",
1218
+ ...options.headers
1264
1219
  }
1265
- ],
1266
- url: "/spaces/{space}",
1267
- ...options
1268
- });
1269
- };
1270
- var spacesUpdate = (options) => {
1271
- return (options.client ?? client).put({
1272
- security: [
1273
- {
1274
- scheme: "bearer",
1275
- type: "http"
1220
+ });
1221
+ }
1222
+ /**
1223
+ * Delete a space
1224
+ *
1225
+ * Permanently deletes the given space and all associated data.
1226
+ */
1227
+ delete(options) {
1228
+ return (options.client ?? this.client).delete({
1229
+ security: [{ scheme: "bearer", type: "http" }],
1230
+ url: "/spaces/{space}",
1231
+ ...options
1232
+ });
1233
+ }
1234
+ /**
1235
+ * Get a space
1236
+ *
1237
+ * Returns a single space by ID.
1238
+ */
1239
+ get(options) {
1240
+ return (options.client ?? this.client).get({
1241
+ security: [{ scheme: "bearer", type: "http" }],
1242
+ url: "/spaces/{space}",
1243
+ ...options
1244
+ });
1245
+ }
1246
+ /**
1247
+ * Update a space
1248
+ *
1249
+ * Updates the given space's settings.
1250
+ */
1251
+ update(options) {
1252
+ return (options.client ?? this.client).put({
1253
+ security: [{ scheme: "bearer", type: "http" }],
1254
+ url: "/spaces/{space}",
1255
+ ...options,
1256
+ headers: {
1257
+ "Content-Type": "application/json",
1258
+ ...options.headers
1276
1259
  }
1277
- ],
1278
- url: "/spaces/{space}",
1279
- ...options,
1280
- headers: {
1281
- "Content-Type": "application/json",
1282
- ...options.headers
1283
- }
1284
- });
1260
+ });
1261
+ }
1285
1262
  };
1286
- var subscriptionShow = (options) => {
1287
- return (options?.client ?? client).get({
1288
- security: [
1289
- {
1290
- scheme: "bearer",
1291
- type: "http"
1292
- }
1293
- ],
1294
- url: "/subscription",
1295
- ...options
1296
- });
1263
+ var Subscription = class extends HeyApiClient {
1264
+ /**
1265
+ * Get subscription details
1266
+ *
1267
+ * Returns the current plan, usage limits, trial status, and cancellation state.
1268
+ */
1269
+ get(options) {
1270
+ return (options?.client ?? this.client).get({
1271
+ security: [{ scheme: "bearer", type: "http" }],
1272
+ url: "/subscription",
1273
+ ...options
1274
+ });
1275
+ }
1297
1276
  };
1298
- var webhooksIndex = (options) => {
1299
- return (options.client ?? client).get({
1300
- security: [
1301
- {
1302
- scheme: "bearer",
1303
- type: "http"
1277
+ var Webhooks = class extends HeyApiClient {
1278
+ /**
1279
+ * List webhooks
1280
+ *
1281
+ * Returns all webhooks configured for the given space.
1282
+ */
1283
+ list(options) {
1284
+ return (options.client ?? this.client).get({
1285
+ security: [{ scheme: "bearer", type: "http" }],
1286
+ url: "/spaces/{space}/webhooks",
1287
+ ...options
1288
+ });
1289
+ }
1290
+ /**
1291
+ * Create a webhook
1292
+ *
1293
+ * Registers a new webhook endpoint with an auto-generated signing secret.
1294
+ */
1295
+ create(options) {
1296
+ return (options.client ?? this.client).post({
1297
+ security: [{ scheme: "bearer", type: "http" }],
1298
+ url: "/spaces/{space}/webhooks",
1299
+ ...options,
1300
+ headers: {
1301
+ "Content-Type": "application/json",
1302
+ ...options.headers
1304
1303
  }
1305
- ],
1306
- url: "/spaces/{space}/webhooks",
1307
- ...options
1308
- });
1309
- };
1310
- var webhooksStore = (options) => {
1311
- return (options.client ?? client).post({
1312
- security: [
1313
- {
1314
- scheme: "bearer",
1315
- type: "http"
1304
+ });
1305
+ }
1306
+ /**
1307
+ * Delete a webhook
1308
+ *
1309
+ * Permanently removes the webhook endpoint.
1310
+ */
1311
+ delete(options) {
1312
+ return (options.client ?? this.client).delete({
1313
+ security: [{ scheme: "bearer", type: "http" }],
1314
+ url: "/spaces/{space}/webhooks/{webhook}",
1315
+ ...options
1316
+ });
1317
+ }
1318
+ /**
1319
+ * Update a webhook
1320
+ *
1321
+ * Updates the webhook's URL, events, or active status.
1322
+ */
1323
+ update(options) {
1324
+ return (options.client ?? this.client).put({
1325
+ security: [{ scheme: "bearer", type: "http" }],
1326
+ url: "/spaces/{space}/webhooks/{webhook}",
1327
+ ...options,
1328
+ headers: {
1329
+ "Content-Type": "application/json",
1330
+ ...options.headers
1316
1331
  }
1317
- ],
1318
- url: "/spaces/{space}/webhooks",
1319
- ...options,
1320
- headers: {
1321
- "Content-Type": "application/json",
1322
- ...options.headers
1323
- }
1324
- });
1332
+ });
1333
+ }
1325
1334
  };
1326
- var webhooksDestroy = (options) => {
1327
- return (options.client ?? client).delete({
1328
- security: [
1329
- {
1330
- scheme: "bearer",
1331
- type: "http"
1332
- }
1333
- ],
1334
- url: "/spaces/{space}/webhooks/{webhook}",
1335
- ...options
1336
- });
1335
+ var ZilfuClient = class _ZilfuClient extends HeyApiClient {
1336
+ static __registry = new HeyApiRegistry();
1337
+ constructor(args) {
1338
+ super(args);
1339
+ _ZilfuClient.__registry.set(this, args?.key);
1340
+ }
1341
+ _accounts;
1342
+ get accounts() {
1343
+ return this._accounts ??= new Accounts({ client: this.client });
1344
+ }
1345
+ _tokens;
1346
+ get tokens() {
1347
+ return this._tokens ??= new Tokens({ client: this.client });
1348
+ }
1349
+ _bioBlocks;
1350
+ get bioBlocks() {
1351
+ return this._bioBlocks ??= new BioBlocks({ client: this.client });
1352
+ }
1353
+ _bio;
1354
+ get bio() {
1355
+ return this._bio ??= new Bio({ client: this.client });
1356
+ }
1357
+ _media;
1358
+ get media() {
1359
+ return this._media ??= new Media({ client: this.client });
1360
+ }
1361
+ _posts;
1362
+ get posts() {
1363
+ return this._posts ??= new Posts({ client: this.client });
1364
+ }
1365
+ _clusters;
1366
+ get clusters() {
1367
+ return this._clusters ??= new Clusters({ client: this.client });
1368
+ }
1369
+ _queue;
1370
+ get queue() {
1371
+ return this._queue ??= new Queue({ client: this.client });
1372
+ }
1373
+ _slots;
1374
+ get slots() {
1375
+ return this._slots ??= new Slots({ client: this.client });
1376
+ }
1377
+ _spaces;
1378
+ get spaces() {
1379
+ return this._spaces ??= new Spaces({ client: this.client });
1380
+ }
1381
+ _subscription;
1382
+ get subscription() {
1383
+ return this._subscription ??= new Subscription({ client: this.client });
1384
+ }
1385
+ _webhooks;
1386
+ get webhooks() {
1387
+ return this._webhooks ??= new Webhooks({ client: this.client });
1388
+ }
1337
1389
  };
1338
- var webhooksUpdate = (options) => {
1339
- return (options.client ?? client).put({
1340
- security: [
1341
- {
1342
- scheme: "bearer",
1343
- type: "http"
1344
- }
1345
- ],
1346
- url: "/spaces/{space}/webhooks/{webhook}",
1347
- ...options,
1348
- headers: {
1349
- "Content-Type": "application/json",
1350
- ...options.headers
1351
- }
1390
+
1391
+ // src/client.ts
1392
+ function createZilfuClient(options) {
1393
+ const { baseUrl, token, fetch: fetchImpl } = options;
1394
+ client.setConfig({
1395
+ baseUrl,
1396
+ auth: token,
1397
+ ...fetchImpl ? { fetch: fetchImpl } : {}
1352
1398
  });
1353
- };
1399
+ return new ZilfuClient();
1400
+ }
1354
1401
 
1355
- exports.accountsActivate = accountsActivate;
1356
- exports.accountsBoards = accountsBoards;
1357
- exports.accountsDestroy = accountsDestroy;
1358
- exports.accountsDestroyMany = accountsDestroyMany;
1359
- exports.accountsIndex = accountsIndex;
1360
- exports.apiTokensDestroy = apiTokensDestroy;
1361
- exports.apiTokensStore = apiTokensStore;
1362
- exports.bioAvatar = bioAvatar;
1363
- exports.bioBlocksDestroy = bioBlocksDestroy;
1364
- exports.bioBlocksIndex = bioBlocksIndex;
1365
- exports.bioBlocksReorder = bioBlocksReorder;
1366
- exports.bioBlocksStore = bioBlocksStore;
1367
- exports.bioBlocksUpdate = bioBlocksUpdate;
1368
- exports.bioShow = bioShow;
1369
- exports.bioStore = bioStore;
1370
- exports.bioUpdate = bioUpdate;
1402
+ exports.Accounts = Accounts;
1403
+ exports.Bio = Bio;
1404
+ exports.BioBlocks = BioBlocks;
1405
+ exports.Clusters = Clusters;
1406
+ exports.Media = Media;
1407
+ exports.Posts = Posts;
1408
+ exports.Queue = Queue;
1409
+ exports.Slots = Slots;
1410
+ exports.Spaces = Spaces;
1411
+ exports.Subscription = Subscription;
1412
+ exports.Tokens = Tokens;
1413
+ exports.Webhooks = Webhooks;
1414
+ exports.ZilfuClient = ZilfuClient;
1371
1415
  exports.client = client;
1372
- exports.clustersUpdate = clustersUpdate;
1373
1416
  exports.createZilfuClient = createZilfuClient;
1374
- exports.mediaDestroy = mediaDestroy;
1375
- exports.mediaStore = mediaStore;
1376
- exports.postsDestroy = postsDestroy;
1377
- exports.postsIndex = postsIndex;
1378
- exports.postsShow = postsShow;
1379
- exports.postsStore = postsStore;
1380
- exports.postsUpdate = postsUpdate;
1381
- exports.queueIndex = queueIndex;
1382
- exports.slotsDestroy = slotsDestroy;
1383
- exports.slotsIndex = slotsIndex;
1384
- exports.slotsStore = slotsStore;
1385
- exports.spacesDestroy = spacesDestroy;
1386
- exports.spacesIndex = spacesIndex;
1387
- exports.spacesShow = spacesShow;
1388
- exports.spacesStore = spacesStore;
1389
- exports.spacesUpdate = spacesUpdate;
1390
- exports.subscriptionShow = subscriptionShow;
1391
- exports.webhooksDestroy = webhooksDestroy;
1392
- exports.webhooksIndex = webhooksIndex;
1393
- exports.webhooksStore = webhooksStore;
1394
- exports.webhooksUpdate = webhooksUpdate;
1395
1417
  //# sourceMappingURL=index.cjs.map
1396
1418
  //# sourceMappingURL=index.cjs.map