@coffer-org/sdk 1.5.0 → 1.6.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.
@@ -39,6 +39,10 @@ export declare function internalApiToken(o: {
39
39
  key: string;
40
40
  label?: string;
41
41
  }): GroupEl;
42
+ export declare function internalOauthGrants(o: {
43
+ key: string;
44
+ label?: string;
45
+ }): GroupEl;
42
46
  export declare function slug(o: TextPresetOpts & {
43
47
  key: string;
44
48
  }): FieldItem;
@@ -247,5 +251,6 @@ export declare const presets: {
247
251
  dimensions: typeof dimensions;
248
252
  country: typeof country;
249
253
  internalApiToken: typeof internalApiToken;
254
+ internalOauthGrants: typeof internalOauthGrants;
250
255
  };
251
256
  export {};
@@ -65,6 +65,19 @@ export function internalApiToken(o) {
65
65
  ],
66
66
  });
67
67
  }
68
+ export function internalOauthGrants(o) {
69
+ return group({
70
+ key: o.key,
71
+ label: o.label ?? o.key,
72
+ multiple: true,
73
+ view: { kind: 'internalOauthGrants' },
74
+ fields: [
75
+ string({ key: 'clientName' }),
76
+ string({ key: 'createdAt' }),
77
+ string({ key: 'lastUsedAt' }),
78
+ ],
79
+ });
80
+ }
68
81
  const SLUG_RE = /^[a-z0-9-]+$/;
69
82
  export function slug(raw) {
70
83
  const o = normalizeOpts(raw);
@@ -324,4 +337,5 @@ export const presets = {
324
337
  dimensions,
325
338
  country,
326
339
  internalApiToken,
340
+ internalOauthGrants,
327
341
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coffer-org/sdk",
3
- "version": "1.5.0",
3
+ "version": "1.6.0",
4
4
  "type": "module",
5
5
  "engines": {
6
6
  "node": ">=24"