@faable/deploy-sdk 1.0.8 → 1.0.9

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.
@@ -131,5 +131,97 @@ export declare class DeployApi extends FaableApi {
131
131
  }>>;
132
132
  };
133
133
  updateStatus<T>(id: string, data: T): Promise<unknown>;
134
+ listSecrets(id: string): {
135
+ all: () => Promise<{
136
+ id: string;
137
+ profile?: {
138
+ id: string;
139
+ slug: string;
140
+ name?: string;
141
+ description: string;
142
+ is_team: boolean;
143
+ owner_id: string;
144
+ stripe_sub?: string | null;
145
+ createdAt: string;
146
+ } | string | unknown;
147
+ team: string;
148
+ name: string;
149
+ description: string;
150
+ slug: string;
151
+ url: string;
152
+ active: boolean;
153
+ runtime: import("./api/types.js").components["schemas"]["AppRuntime"];
154
+ runtime_strategy: ("next" | "wordpress") | null;
155
+ instance_type: string;
156
+ region: string;
157
+ creator: string;
158
+ metadata: {
159
+ [key: string]: unknown;
160
+ };
161
+ status: import("./api/types.js").components["schemas"]["AppStatus"];
162
+ createdAt: string;
163
+ }[]>;
164
+ first: () => Promise<import("@faable/sdk-base/dist/helpers/paginator.js").Page<{
165
+ id: string;
166
+ profile?: {
167
+ id: string;
168
+ slug: string;
169
+ name?: string;
170
+ description: string;
171
+ is_team: boolean;
172
+ owner_id: string;
173
+ stripe_sub?: string | null;
174
+ createdAt: string;
175
+ } | string | unknown;
176
+ team: string;
177
+ name: string;
178
+ description: string;
179
+ slug: string;
180
+ url: string;
181
+ active: boolean;
182
+ runtime: import("./api/types.js").components["schemas"]["AppRuntime"];
183
+ runtime_strategy: ("next" | "wordpress") | null;
184
+ instance_type: string;
185
+ region: string;
186
+ creator: string;
187
+ metadata: {
188
+ [key: string]: unknown;
189
+ };
190
+ status: import("./api/types.js").components["schemas"]["AppStatus"];
191
+ createdAt: string;
192
+ }>>;
193
+ pass: (params?: {
194
+ cursor?: string;
195
+ pageSize?: string;
196
+ }) => Promise<import("@faable/sdk-base/dist/helpers/paginator.js").Page<{
197
+ id: string;
198
+ profile?: {
199
+ id: string;
200
+ slug: string;
201
+ name?: string;
202
+ description: string;
203
+ is_team: boolean;
204
+ owner_id: string;
205
+ stripe_sub?: string | null;
206
+ createdAt: string;
207
+ } | string | unknown;
208
+ team: string;
209
+ name: string;
210
+ description: string;
211
+ slug: string;
212
+ url: string;
213
+ active: boolean;
214
+ runtime: import("./api/types.js").components["schemas"]["AppRuntime"];
215
+ runtime_strategy: ("next" | "wordpress") | null;
216
+ instance_type: string;
217
+ region: string;
218
+ creator: string;
219
+ metadata: {
220
+ [key: string]: unknown;
221
+ };
222
+ status: import("./api/types.js").components["schemas"]["AppStatus"];
223
+ createdAt: string;
224
+ }>>;
225
+ };
134
226
  }
135
227
  //# sourceMappingURL=FaableDeployApi.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FaableDeployApi.d.ts","sourceRoot":"","sources":["../src/FaableDeployApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAGxD,qBAAa,SAAU,SAAQ,SAAS;gBAC1B,MAAM,CAAC,EAAE,SAAS;IAO9B,aAAa,CAAC,EAAE,EAAE,MAAM;;;;gBAaov2B,8CAAsB;;;;IAVly2B,MAAM,CAAC,EAAE,EAAE,MAAM;;;;;gBAU8qnB,CAAC;;;;sBAA6I,CAAC;;;;;;;;;iBAAyU,8CAAsB;;;;;;;;gBAAyf,8CAAsB;;;IAP5rpB,QAAQ;;;;;;oBAOurnB,CAAC;;;;0BAA6I,CAAC;;;;;;;;;qBAAyU,8CAAsB;;;;;;;;oBAAyf,8CAAsB;;;;;;;;oBAA7/B,CAAC;;;;0BAA6I,CAAC;;;;;;;;;;;;;;;;;;;;;kBAT50nB,CAAC;oBAA0B,CAAC;;;;;;oBASiqnB,CAAC;;;;0BAA6I,CAAC;;;;;;;;;qBAAyU,8CAAsB;;;;;;;;oBAAyf,8CAAsB;;;;IAJ5rpB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
18
18
  updateStatus(id, data) {
19
19
  return this.fetcher.post(`/status/${id}`, data);
20
20
  }
21
+ listSecrets(id) {
22
+ return this.paginator({ url: `/secret/${id}` });
23
+ }
21
24
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@faable/deploy-sdk",
3
3
  "description": "Codebase for SDK building",
4
- "version": "1.0.8",
4
+ "version": "1.0.9",
5
5
  "author": "Marc Pomar <marc@faable.com>",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",