@contractspec/example.team-hub 1.44.0 → 1.45.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,104 +1,104 @@
1
- import * as _contractspec_lib_schema257 from "@contractspec/lib.schema";
1
+ import * as _contractspec_lib_schema258 from "@contractspec/lib.schema";
2
2
  import * as _contractspec_lib_contracts12 from "@contractspec/lib.contracts";
3
3
 
4
4
  //#region src/ritual/ritual.operations.d.ts
5
5
  /**
6
6
  * Schedule a ritual.
7
7
  */
8
- declare const ScheduleRitualContract: _contractspec_lib_contracts12.OperationSpec<_contractspec_lib_schema257.SchemaModel<{
8
+ declare const ScheduleRitualContract: _contractspec_lib_contracts12.OperationSpec<_contractspec_lib_schema258.SchemaModel<{
9
9
  spaceId: {
10
- type: _contractspec_lib_schema257.FieldType<string, string>;
10
+ type: _contractspec_lib_schema258.FieldType<string, string>;
11
11
  isOptional: false;
12
12
  };
13
13
  title: {
14
- type: _contractspec_lib_schema257.FieldType<string, string>;
14
+ type: _contractspec_lib_schema258.FieldType<string, string>;
15
15
  isOptional: false;
16
16
  };
17
17
  cadence: {
18
- type: _contractspec_lib_schema257.FieldType<string, string>;
18
+ type: _contractspec_lib_schema258.FieldType<string, string>;
19
19
  isOptional: false;
20
20
  };
21
21
  dayOfWeek: {
22
- type: _contractspec_lib_schema257.FieldType<string, string>;
22
+ type: _contractspec_lib_schema258.FieldType<string, string>;
23
23
  isOptional: true;
24
24
  };
25
25
  time: {
26
- type: _contractspec_lib_schema257.FieldType<string, string>;
26
+ type: _contractspec_lib_schema258.FieldType<string, string>;
27
27
  isOptional: true;
28
28
  };
29
29
  facilitatorId: {
30
- type: _contractspec_lib_schema257.FieldType<string, string>;
30
+ type: _contractspec_lib_schema258.FieldType<string, string>;
31
31
  isOptional: true;
32
32
  };
33
- }>, _contractspec_lib_schema257.SchemaModel<{
33
+ }>, _contractspec_lib_schema258.SchemaModel<{
34
34
  id: {
35
- type: _contractspec_lib_schema257.FieldType<string, string>;
35
+ type: _contractspec_lib_schema258.FieldType<string, string>;
36
36
  isOptional: false;
37
37
  };
38
38
  spaceId: {
39
- type: _contractspec_lib_schema257.FieldType<string, string>;
39
+ type: _contractspec_lib_schema258.FieldType<string, string>;
40
40
  isOptional: false;
41
41
  };
42
42
  title: {
43
- type: _contractspec_lib_schema257.FieldType<string, string>;
43
+ type: _contractspec_lib_schema258.FieldType<string, string>;
44
44
  isOptional: false;
45
45
  };
46
46
  cadence: {
47
- type: _contractspec_lib_schema257.FieldType<string, string>;
47
+ type: _contractspec_lib_schema258.FieldType<string, string>;
48
48
  isOptional: false;
49
49
  };
50
50
  dayOfWeek: {
51
- type: _contractspec_lib_schema257.FieldType<string, string>;
51
+ type: _contractspec_lib_schema258.FieldType<string, string>;
52
52
  isOptional: true;
53
53
  };
54
54
  time: {
55
- type: _contractspec_lib_schema257.FieldType<string, string>;
55
+ type: _contractspec_lib_schema258.FieldType<string, string>;
56
56
  isOptional: true;
57
57
  };
58
58
  }>, undefined>;
59
59
  /**
60
60
  * Log ritual occurrence.
61
61
  */
62
- declare const LogRitualOccurrenceContract: _contractspec_lib_contracts12.OperationSpec<_contractspec_lib_schema257.SchemaModel<{
62
+ declare const LogRitualOccurrenceContract: _contractspec_lib_contracts12.OperationSpec<_contractspec_lib_schema258.SchemaModel<{
63
63
  ritualId: {
64
- type: _contractspec_lib_schema257.FieldType<string, string>;
64
+ type: _contractspec_lib_schema258.FieldType<string, string>;
65
65
  isOptional: false;
66
66
  };
67
67
  scheduledFor: {
68
- type: _contractspec_lib_schema257.FieldType<Date, string>;
68
+ type: _contractspec_lib_schema258.FieldType<Date, string>;
69
69
  isOptional: false;
70
70
  };
71
71
  status: {
72
- type: _contractspec_lib_schema257.FieldType<string, string>;
72
+ type: _contractspec_lib_schema258.FieldType<string, string>;
73
73
  isOptional: false;
74
74
  };
75
75
  summary: {
76
- type: _contractspec_lib_schema257.FieldType<string, string>;
76
+ type: _contractspec_lib_schema258.FieldType<string, string>;
77
77
  isOptional: true;
78
78
  };
79
- }>, _contractspec_lib_schema257.SchemaModel<{
79
+ }>, _contractspec_lib_schema258.SchemaModel<{
80
80
  id: {
81
- type: _contractspec_lib_schema257.FieldType<string, string>;
81
+ type: _contractspec_lib_schema258.FieldType<string, string>;
82
82
  isOptional: false;
83
83
  };
84
84
  spaceId: {
85
- type: _contractspec_lib_schema257.FieldType<string, string>;
85
+ type: _contractspec_lib_schema258.FieldType<string, string>;
86
86
  isOptional: false;
87
87
  };
88
88
  title: {
89
- type: _contractspec_lib_schema257.FieldType<string, string>;
89
+ type: _contractspec_lib_schema258.FieldType<string, string>;
90
90
  isOptional: false;
91
91
  };
92
92
  cadence: {
93
- type: _contractspec_lib_schema257.FieldType<string, string>;
93
+ type: _contractspec_lib_schema258.FieldType<string, string>;
94
94
  isOptional: false;
95
95
  };
96
96
  dayOfWeek: {
97
- type: _contractspec_lib_schema257.FieldType<string, string>;
97
+ type: _contractspec_lib_schema258.FieldType<string, string>;
98
98
  isOptional: true;
99
99
  };
100
100
  time: {
101
- type: _contractspec_lib_schema257.FieldType<string, string>;
101
+ type: _contractspec_lib_schema258.FieldType<string, string>;
102
102
  isOptional: true;
103
103
  };
104
104
  }>, undefined>;
@@ -9,7 +9,7 @@ const OWNERS = ["@examples.team-hub"];
9
9
  const ScheduleRitualContract = defineCommand({
10
10
  meta: {
11
11
  key: "team.ritual.schedule",
12
- version: 1,
12
+ version: "1.0.0",
13
13
  stability: "stable",
14
14
  owners: [...OWNERS],
15
15
  tags: [
@@ -54,7 +54,7 @@ const ScheduleRitualContract = defineCommand({
54
54
  const LogRitualOccurrenceContract = defineCommand({
55
55
  meta: {
56
56
  key: "team.ritual.logOccurrence",
57
- version: 1,
57
+ version: "1.0.0",
58
58
  stability: "stable",
59
59
  owners: [...OWNERS],
60
60
  tags: [
@@ -1 +1 @@
1
- {"version":3,"file":"ritual.operations.js","names":[],"sources":["../../src/ritual/ritual.operations.ts"],"sourcesContent":["import { defineCommand } from '@contractspec/lib.contracts';\nimport {\n LogRitualOccurrenceInputModel,\n RitualModel,\n ScheduleRitualInputModel,\n} from './ritual.schema';\n\nconst OWNERS = ['@examples.team-hub'] as const;\n\n/**\n * Schedule a ritual.\n */\nexport const ScheduleRitualContract = defineCommand({\n meta: {\n key: 'team.ritual.schedule',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['team-hub', 'ritual', 'schedule'],\n description: 'Schedule a recurring ritual.',\n goal: 'Team ceremonies.',\n context: 'Ritual management.',\n },\n io: {\n input: ScheduleRitualInputModel,\n output: RitualModel,\n },\n policy: { auth: 'user' },\n acceptance: {\n scenarios: [\n {\n key: 'schedule-ritual-happy-path',\n given: ['Space exists'],\n when: ['User schedules ritual'],\n then: ['Ritual is scheduled'],\n },\n ],\n examples: [\n {\n key: 'schedule-standup',\n input: {\n spaceId: 'space-123',\n name: 'Daily Standup',\n interval: 'daily',\n time: '10:00',\n },\n output: { id: 'rit-123', status: 'active' },\n },\n ],\n },\n});\n\n/**\n * Log ritual occurrence.\n */\nexport const LogRitualOccurrenceContract = defineCommand({\n meta: {\n key: 'team.ritual.logOccurrence',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['team-hub', 'ritual', 'log'],\n description: 'Log a ritual occurrence.',\n goal: 'Record ritual history.',\n context: 'Ritual management.',\n },\n io: {\n input: LogRitualOccurrenceInputModel,\n output: RitualModel,\n },\n policy: { auth: 'user' },\n acceptance: {\n scenarios: [\n {\n key: 'log-occurrence-happy-path',\n given: ['Ritual is scheduled'],\n when: ['User logs occurrence'],\n then: ['Occurrence is recorded'],\n },\n ],\n examples: [\n {\n key: 'log-standup',\n input: {\n ritualId: 'rit-123',\n date: '2025-01-20',\n attendees: ['user-1', 'user-2'],\n },\n output: { id: 'rit-123', lastOccurrence: '2025-01-20' },\n },\n ],\n },\n});\n"],"mappings":";;;;AAOA,MAAM,SAAS,CAAC,qBAAqB;;;;AAKrC,MAAa,yBAAyB,cAAc;CAClD,MAAM;EACJ,KAAK;EACL,SAAS;EACT,WAAW;EACX,QAAQ,CAAC,GAAG,OAAO;EACnB,MAAM;GAAC;GAAY;GAAU;GAAW;EACxC,aAAa;EACb,MAAM;EACN,SAAS;EACV;CACD,IAAI;EACF,OAAO;EACP,QAAQ;EACT;CACD,QAAQ,EAAE,MAAM,QAAQ;CACxB,YAAY;EACV,WAAW,CACT;GACE,KAAK;GACL,OAAO,CAAC,eAAe;GACvB,MAAM,CAAC,wBAAwB;GAC/B,MAAM,CAAC,sBAAsB;GAC9B,CACF;EACD,UAAU,CACR;GACE,KAAK;GACL,OAAO;IACL,SAAS;IACT,MAAM;IACN,UAAU;IACV,MAAM;IACP;GACD,QAAQ;IAAE,IAAI;IAAW,QAAQ;IAAU;GAC5C,CACF;EACF;CACF,CAAC;;;;AAKF,MAAa,8BAA8B,cAAc;CACvD,MAAM;EACJ,KAAK;EACL,SAAS;EACT,WAAW;EACX,QAAQ,CAAC,GAAG,OAAO;EACnB,MAAM;GAAC;GAAY;GAAU;GAAM;EACnC,aAAa;EACb,MAAM;EACN,SAAS;EACV;CACD,IAAI;EACF,OAAO;EACP,QAAQ;EACT;CACD,QAAQ,EAAE,MAAM,QAAQ;CACxB,YAAY;EACV,WAAW,CACT;GACE,KAAK;GACL,OAAO,CAAC,sBAAsB;GAC9B,MAAM,CAAC,uBAAuB;GAC9B,MAAM,CAAC,yBAAyB;GACjC,CACF;EACD,UAAU,CACR;GACE,KAAK;GACL,OAAO;IACL,UAAU;IACV,MAAM;IACN,WAAW,CAAC,UAAU,SAAS;IAChC;GACD,QAAQ;IAAE,IAAI;IAAW,gBAAgB;IAAc;GACxD,CACF;EACF;CACF,CAAC"}
1
+ {"version":3,"file":"ritual.operations.js","names":[],"sources":["../../src/ritual/ritual.operations.ts"],"sourcesContent":["import { defineCommand } from '@contractspec/lib.contracts';\nimport {\n LogRitualOccurrenceInputModel,\n RitualModel,\n ScheduleRitualInputModel,\n} from './ritual.schema';\n\nconst OWNERS = ['@examples.team-hub'] as const;\n\n/**\n * Schedule a ritual.\n */\nexport const ScheduleRitualContract = defineCommand({\n meta: {\n key: 'team.ritual.schedule',\n version: '1.0.0',\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['team-hub', 'ritual', 'schedule'],\n description: 'Schedule a recurring ritual.',\n goal: 'Team ceremonies.',\n context: 'Ritual management.',\n },\n io: {\n input: ScheduleRitualInputModel,\n output: RitualModel,\n },\n policy: { auth: 'user' },\n acceptance: {\n scenarios: [\n {\n key: 'schedule-ritual-happy-path',\n given: ['Space exists'],\n when: ['User schedules ritual'],\n then: ['Ritual is scheduled'],\n },\n ],\n examples: [\n {\n key: 'schedule-standup',\n input: {\n spaceId: 'space-123',\n name: 'Daily Standup',\n interval: 'daily',\n time: '10:00',\n },\n output: { id: 'rit-123', status: 'active' },\n },\n ],\n },\n});\n\n/**\n * Log ritual occurrence.\n */\nexport const LogRitualOccurrenceContract = defineCommand({\n meta: {\n key: 'team.ritual.logOccurrence',\n version: '1.0.0',\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['team-hub', 'ritual', 'log'],\n description: 'Log a ritual occurrence.',\n goal: 'Record ritual history.',\n context: 'Ritual management.',\n },\n io: {\n input: LogRitualOccurrenceInputModel,\n output: RitualModel,\n },\n policy: { auth: 'user' },\n acceptance: {\n scenarios: [\n {\n key: 'log-occurrence-happy-path',\n given: ['Ritual is scheduled'],\n when: ['User logs occurrence'],\n then: ['Occurrence is recorded'],\n },\n ],\n examples: [\n {\n key: 'log-standup',\n input: {\n ritualId: 'rit-123',\n date: '2025-01-20',\n attendees: ['user-1', 'user-2'],\n },\n output: { id: 'rit-123', lastOccurrence: '2025-01-20' },\n },\n ],\n },\n});\n"],"mappings":";;;;AAOA,MAAM,SAAS,CAAC,qBAAqB;;;;AAKrC,MAAa,yBAAyB,cAAc;CAClD,MAAM;EACJ,KAAK;EACL,SAAS;EACT,WAAW;EACX,QAAQ,CAAC,GAAG,OAAO;EACnB,MAAM;GAAC;GAAY;GAAU;GAAW;EACxC,aAAa;EACb,MAAM;EACN,SAAS;EACV;CACD,IAAI;EACF,OAAO;EACP,QAAQ;EACT;CACD,QAAQ,EAAE,MAAM,QAAQ;CACxB,YAAY;EACV,WAAW,CACT;GACE,KAAK;GACL,OAAO,CAAC,eAAe;GACvB,MAAM,CAAC,wBAAwB;GAC/B,MAAM,CAAC,sBAAsB;GAC9B,CACF;EACD,UAAU,CACR;GACE,KAAK;GACL,OAAO;IACL,SAAS;IACT,MAAM;IACN,UAAU;IACV,MAAM;IACP;GACD,QAAQ;IAAE,IAAI;IAAW,QAAQ;IAAU;GAC5C,CACF;EACF;CACF,CAAC;;;;AAKF,MAAa,8BAA8B,cAAc;CACvD,MAAM;EACJ,KAAK;EACL,SAAS;EACT,WAAW;EACX,QAAQ,CAAC,GAAG,OAAO;EACnB,MAAM;GAAC;GAAY;GAAU;GAAM;EACnC,aAAa;EACb,MAAM;EACN,SAAS;EACV;CACD,IAAI;EACF,OAAO;EACP,QAAQ;EACT;CACD,QAAQ,EAAE,MAAM,QAAQ;CACxB,YAAY;EACV,WAAW,CACT;GACE,KAAK;GACL,OAAO,CAAC,sBAAsB;GAC9B,MAAM,CAAC,uBAAuB;GAC9B,MAAM,CAAC,yBAAyB;GACjC,CACF;EACD,UAAU,CACR;GACE,KAAK;GACL,OAAO;IACL,UAAU;IACV,MAAM;IACN,WAAW,CAAC,UAAU,SAAS;IAChC;GACD,QAAQ;IAAE,IAAI;IAAW,gBAAgB;IAAc;GACxD,CACF;EACF;CACF,CAAC"}
@@ -1,82 +1,82 @@
1
- import * as _contractspec_lib_schema283 from "@contractspec/lib.schema";
1
+ import * as _contractspec_lib_schema103 from "@contractspec/lib.schema";
2
2
 
3
3
  //#region src/ritual/ritual.schema.d.ts
4
4
  /**
5
5
  * Recurring ritual.
6
6
  */
7
- declare const RitualModel: _contractspec_lib_schema283.SchemaModel<{
7
+ declare const RitualModel: _contractspec_lib_schema103.SchemaModel<{
8
8
  id: {
9
- type: _contractspec_lib_schema283.FieldType<string, string>;
9
+ type: _contractspec_lib_schema103.FieldType<string, string>;
10
10
  isOptional: false;
11
11
  };
12
12
  spaceId: {
13
- type: _contractspec_lib_schema283.FieldType<string, string>;
13
+ type: _contractspec_lib_schema103.FieldType<string, string>;
14
14
  isOptional: false;
15
15
  };
16
16
  title: {
17
- type: _contractspec_lib_schema283.FieldType<string, string>;
17
+ type: _contractspec_lib_schema103.FieldType<string, string>;
18
18
  isOptional: false;
19
19
  };
20
20
  cadence: {
21
- type: _contractspec_lib_schema283.FieldType<string, string>;
21
+ type: _contractspec_lib_schema103.FieldType<string, string>;
22
22
  isOptional: false;
23
23
  };
24
24
  dayOfWeek: {
25
- type: _contractspec_lib_schema283.FieldType<string, string>;
25
+ type: _contractspec_lib_schema103.FieldType<string, string>;
26
26
  isOptional: true;
27
27
  };
28
28
  time: {
29
- type: _contractspec_lib_schema283.FieldType<string, string>;
29
+ type: _contractspec_lib_schema103.FieldType<string, string>;
30
30
  isOptional: true;
31
31
  };
32
32
  }>;
33
33
  /**
34
34
  * Input for scheduling a ritual.
35
35
  */
36
- declare const ScheduleRitualInputModel: _contractspec_lib_schema283.SchemaModel<{
36
+ declare const ScheduleRitualInputModel: _contractspec_lib_schema103.SchemaModel<{
37
37
  spaceId: {
38
- type: _contractspec_lib_schema283.FieldType<string, string>;
38
+ type: _contractspec_lib_schema103.FieldType<string, string>;
39
39
  isOptional: false;
40
40
  };
41
41
  title: {
42
- type: _contractspec_lib_schema283.FieldType<string, string>;
42
+ type: _contractspec_lib_schema103.FieldType<string, string>;
43
43
  isOptional: false;
44
44
  };
45
45
  cadence: {
46
- type: _contractspec_lib_schema283.FieldType<string, string>;
46
+ type: _contractspec_lib_schema103.FieldType<string, string>;
47
47
  isOptional: false;
48
48
  };
49
49
  dayOfWeek: {
50
- type: _contractspec_lib_schema283.FieldType<string, string>;
50
+ type: _contractspec_lib_schema103.FieldType<string, string>;
51
51
  isOptional: true;
52
52
  };
53
53
  time: {
54
- type: _contractspec_lib_schema283.FieldType<string, string>;
54
+ type: _contractspec_lib_schema103.FieldType<string, string>;
55
55
  isOptional: true;
56
56
  };
57
57
  facilitatorId: {
58
- type: _contractspec_lib_schema283.FieldType<string, string>;
58
+ type: _contractspec_lib_schema103.FieldType<string, string>;
59
59
  isOptional: true;
60
60
  };
61
61
  }>;
62
62
  /**
63
63
  * Input for logging ritual occurrence.
64
64
  */
65
- declare const LogRitualOccurrenceInputModel: _contractspec_lib_schema283.SchemaModel<{
65
+ declare const LogRitualOccurrenceInputModel: _contractspec_lib_schema103.SchemaModel<{
66
66
  ritualId: {
67
- type: _contractspec_lib_schema283.FieldType<string, string>;
67
+ type: _contractspec_lib_schema103.FieldType<string, string>;
68
68
  isOptional: false;
69
69
  };
70
70
  scheduledFor: {
71
- type: _contractspec_lib_schema283.FieldType<Date, string>;
71
+ type: _contractspec_lib_schema103.FieldType<Date, string>;
72
72
  isOptional: false;
73
73
  };
74
74
  status: {
75
- type: _contractspec_lib_schema283.FieldType<string, string>;
75
+ type: _contractspec_lib_schema103.FieldType<string, string>;
76
76
  isOptional: false;
77
77
  };
78
78
  summary: {
79
- type: _contractspec_lib_schema283.FieldType<string, string>;
79
+ type: _contractspec_lib_schema103.FieldType<string, string>;
80
80
  isOptional: true;
81
81
  };
82
82
  }>;
@@ -1,46 +1,46 @@
1
- import * as _contractspec_lib_schema302 from "@contractspec/lib.schema";
1
+ import * as _contractspec_lib_schema295 from "@contractspec/lib.schema";
2
2
  import * as _contractspec_lib_contracts14 from "@contractspec/lib.contracts";
3
3
 
4
4
  //#region src/space/space.operations.d.ts
5
5
  /**
6
6
  * Create a new team space.
7
7
  */
8
- declare const CreateSpaceContract: _contractspec_lib_contracts14.OperationSpec<_contractspec_lib_schema302.SchemaModel<{
8
+ declare const CreateSpaceContract: _contractspec_lib_contracts14.OperationSpec<_contractspec_lib_schema295.SchemaModel<{
9
9
  name: {
10
- type: _contractspec_lib_schema302.FieldType<string, string>;
10
+ type: _contractspec_lib_schema295.FieldType<string, string>;
11
11
  isOptional: false;
12
12
  };
13
13
  description: {
14
- type: _contractspec_lib_schema302.FieldType<string, string>;
14
+ type: _contractspec_lib_schema295.FieldType<string, string>;
15
15
  isOptional: true;
16
16
  };
17
17
  orgId: {
18
- type: _contractspec_lib_schema302.FieldType<string, string>;
18
+ type: _contractspec_lib_schema295.FieldType<string, string>;
19
19
  isOptional: false;
20
20
  };
21
21
  ownerId: {
22
- type: _contractspec_lib_schema302.FieldType<string, string>;
22
+ type: _contractspec_lib_schema295.FieldType<string, string>;
23
23
  isOptional: false;
24
24
  };
25
- }>, _contractspec_lib_schema302.SchemaModel<{
25
+ }>, _contractspec_lib_schema295.SchemaModel<{
26
26
  id: {
27
- type: _contractspec_lib_schema302.FieldType<string, string>;
27
+ type: _contractspec_lib_schema295.FieldType<string, string>;
28
28
  isOptional: false;
29
29
  };
30
30
  name: {
31
- type: _contractspec_lib_schema302.FieldType<string, string>;
31
+ type: _contractspec_lib_schema295.FieldType<string, string>;
32
32
  isOptional: false;
33
33
  };
34
34
  description: {
35
- type: _contractspec_lib_schema302.FieldType<string, string>;
35
+ type: _contractspec_lib_schema295.FieldType<string, string>;
36
36
  isOptional: true;
37
37
  };
38
38
  orgId: {
39
- type: _contractspec_lib_schema302.FieldType<string, string>;
39
+ type: _contractspec_lib_schema295.FieldType<string, string>;
40
40
  isOptional: false;
41
41
  };
42
42
  ownerId: {
43
- type: _contractspec_lib_schema302.FieldType<string, string>;
43
+ type: _contractspec_lib_schema295.FieldType<string, string>;
44
44
  isOptional: false;
45
45
  };
46
46
  }>, undefined>;
@@ -9,7 +9,7 @@ const OWNERS = ["@examples.team-hub"];
9
9
  const CreateSpaceContract = defineCommand({
10
10
  meta: {
11
11
  key: "team.space.create",
12
- version: 1,
12
+ version: "1.0.0",
13
13
  stability: "stable",
14
14
  owners: [...OWNERS],
15
15
  tags: [
@@ -1 +1 @@
1
- {"version":3,"file":"space.operations.js","names":[],"sources":["../../src/space/space.operations.ts"],"sourcesContent":["import { defineCommand } from '@contractspec/lib.contracts';\nimport { CreateSpaceInputModel, SpaceModel } from './space.schema';\n\nconst OWNERS = ['@examples.team-hub'] as const;\n\n/**\n * Create a new team space.\n */\nexport const CreateSpaceContract = defineCommand({\n meta: {\n key: 'team.space.create',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['team-hub', 'space', 'create'],\n description: 'Create a new team space.',\n goal: 'Organize teams/projects.',\n context: 'Workspace creation.',\n },\n io: {\n input: CreateSpaceInputModel,\n output: SpaceModel,\n },\n policy: { auth: 'user' },\n acceptance: {\n scenarios: [\n {\n key: 'create-space-happy-path',\n given: ['User is authenticated'],\n when: ['User creates a new space'],\n then: ['Space is created'],\n },\n ],\n examples: [\n {\n key: 'create-engineering',\n input: { name: 'Engineering', description: 'Engineering team space' },\n output: { id: 'space-123', name: 'Engineering' },\n },\n ],\n },\n});\n"],"mappings":";;;;AAGA,MAAM,SAAS,CAAC,qBAAqB;;;;AAKrC,MAAa,sBAAsB,cAAc;CAC/C,MAAM;EACJ,KAAK;EACL,SAAS;EACT,WAAW;EACX,QAAQ,CAAC,GAAG,OAAO;EACnB,MAAM;GAAC;GAAY;GAAS;GAAS;EACrC,aAAa;EACb,MAAM;EACN,SAAS;EACV;CACD,IAAI;EACF,OAAO;EACP,QAAQ;EACT;CACD,QAAQ,EAAE,MAAM,QAAQ;CACxB,YAAY;EACV,WAAW,CACT;GACE,KAAK;GACL,OAAO,CAAC,wBAAwB;GAChC,MAAM,CAAC,2BAA2B;GAClC,MAAM,CAAC,mBAAmB;GAC3B,CACF;EACD,UAAU,CACR;GACE,KAAK;GACL,OAAO;IAAE,MAAM;IAAe,aAAa;IAA0B;GACrE,QAAQ;IAAE,IAAI;IAAa,MAAM;IAAe;GACjD,CACF;EACF;CACF,CAAC"}
1
+ {"version":3,"file":"space.operations.js","names":[],"sources":["../../src/space/space.operations.ts"],"sourcesContent":["import { defineCommand } from '@contractspec/lib.contracts';\nimport { CreateSpaceInputModel, SpaceModel } from './space.schema';\n\nconst OWNERS = ['@examples.team-hub'] as const;\n\n/**\n * Create a new team space.\n */\nexport const CreateSpaceContract = defineCommand({\n meta: {\n key: 'team.space.create',\n version: '1.0.0',\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['team-hub', 'space', 'create'],\n description: 'Create a new team space.',\n goal: 'Organize teams/projects.',\n context: 'Workspace creation.',\n },\n io: {\n input: CreateSpaceInputModel,\n output: SpaceModel,\n },\n policy: { auth: 'user' },\n acceptance: {\n scenarios: [\n {\n key: 'create-space-happy-path',\n given: ['User is authenticated'],\n when: ['User creates a new space'],\n then: ['Space is created'],\n },\n ],\n examples: [\n {\n key: 'create-engineering',\n input: { name: 'Engineering', description: 'Engineering team space' },\n output: { id: 'space-123', name: 'Engineering' },\n },\n ],\n },\n});\n"],"mappings":";;;;AAGA,MAAM,SAAS,CAAC,qBAAqB;;;;AAKrC,MAAa,sBAAsB,cAAc;CAC/C,MAAM;EACJ,KAAK;EACL,SAAS;EACT,WAAW;EACX,QAAQ,CAAC,GAAG,OAAO;EACnB,MAAM;GAAC;GAAY;GAAS;GAAS;EACrC,aAAa;EACb,MAAM;EACN,SAAS;EACV;CACD,IAAI;EACF,OAAO;EACP,QAAQ;EACT;CACD,QAAQ,EAAE,MAAM,QAAQ;CACxB,YAAY;EACV,WAAW,CACT;GACE,KAAK;GACL,OAAO,CAAC,wBAAwB;GAChC,MAAM,CAAC,2BAA2B;GAClC,MAAM,CAAC,mBAAmB;GAC3B,CACF;EACD,UAAU,CACR;GACE,KAAK;GACL,OAAO;IAAE,MAAM;IAAe,aAAa;IAA0B;GACrE,QAAQ;IAAE,IAAI;IAAa,MAAM;IAAe;GACjD,CACF;EACF;CACF,CAAC"}
@@ -1,49 +1,49 @@
1
- import * as _contractspec_lib_schema313 from "@contractspec/lib.schema";
1
+ import * as _contractspec_lib_schema284 from "@contractspec/lib.schema";
2
2
 
3
3
  //#region src/space/space.schema.d.ts
4
4
  /**
5
5
  * Team space/project.
6
6
  */
7
- declare const SpaceModel: _contractspec_lib_schema313.SchemaModel<{
7
+ declare const SpaceModel: _contractspec_lib_schema284.SchemaModel<{
8
8
  id: {
9
- type: _contractspec_lib_schema313.FieldType<string, string>;
9
+ type: _contractspec_lib_schema284.FieldType<string, string>;
10
10
  isOptional: false;
11
11
  };
12
12
  name: {
13
- type: _contractspec_lib_schema313.FieldType<string, string>;
13
+ type: _contractspec_lib_schema284.FieldType<string, string>;
14
14
  isOptional: false;
15
15
  };
16
16
  description: {
17
- type: _contractspec_lib_schema313.FieldType<string, string>;
17
+ type: _contractspec_lib_schema284.FieldType<string, string>;
18
18
  isOptional: true;
19
19
  };
20
20
  orgId: {
21
- type: _contractspec_lib_schema313.FieldType<string, string>;
21
+ type: _contractspec_lib_schema284.FieldType<string, string>;
22
22
  isOptional: false;
23
23
  };
24
24
  ownerId: {
25
- type: _contractspec_lib_schema313.FieldType<string, string>;
25
+ type: _contractspec_lib_schema284.FieldType<string, string>;
26
26
  isOptional: false;
27
27
  };
28
28
  }>;
29
29
  /**
30
30
  * Input for creating a space.
31
31
  */
32
- declare const CreateSpaceInputModel: _contractspec_lib_schema313.SchemaModel<{
32
+ declare const CreateSpaceInputModel: _contractspec_lib_schema284.SchemaModel<{
33
33
  name: {
34
- type: _contractspec_lib_schema313.FieldType<string, string>;
34
+ type: _contractspec_lib_schema284.FieldType<string, string>;
35
35
  isOptional: false;
36
36
  };
37
37
  description: {
38
- type: _contractspec_lib_schema313.FieldType<string, string>;
38
+ type: _contractspec_lib_schema284.FieldType<string, string>;
39
39
  isOptional: true;
40
40
  };
41
41
  orgId: {
42
- type: _contractspec_lib_schema313.FieldType<string, string>;
42
+ type: _contractspec_lib_schema284.FieldType<string, string>;
43
43
  isOptional: false;
44
44
  };
45
45
  ownerId: {
46
- type: _contractspec_lib_schema313.FieldType<string, string>;
46
+ type: _contractspec_lib_schema284.FieldType<string, string>;
47
47
  isOptional: false;
48
48
  };
49
49
  }>;